1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3902],{55162:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=666)}([function(e,t,n){"use strict";n.d(t,"d",function(){return k.d}),n.d(t,"e",function(){return k.e}),n.d(t,"f",function(){return k.f}),n.d(t,"g",function(){return k.g}),n.d(t,"jc",function(){return k.jc}),n.d(t,"uc",function(){return k.uc}),n.d(t,"vc",function(){return k.vc}),n.d(t,"Cc",function(){return k.Cc}),n.d(t,"Xc",function(){return k.Xc}),n.d(t,"Dd",function(){return k.Dd}),n.d(t,"Ed",function(){return k.Ed}),n.d(t,"Od",function(){return k.Od}),n.d(t,"Hc",function(){return k.Hc}),n.d(t,"ri",function(){return k.ri}),n.d(t,"Qi",function(){return k.Qi}),n.d(t,"Rd",function(){return k.Rd}),n.d(t,"Sd",function(){return k.Sd}),n.d(t,"Td",function(){return k.Td}),n.d(t,"Ud",function(){return k.Ud}),n.d(t,"Vd",function(){return k.Vd}),n.d(t,"Wd",function(){return k.Wd}),n.d(t,"Xd",function(){return k.Xd}),n.d(t,"Yd",function(){return k.Yd}),n.d(t,"Zd",function(){return k.Zd}),n.d(t,"ae",function(){return k.ae}),n.d(t,"be",function(){return k.be}),n.d(t,"ce",function(){return k.ce}),n.d(t,"de",function(){return k.de}),n.d(t,"ee",function(){return k.ee}),n.d(t,"fe",function(){return k.fe}),n.d(t,"ge",function(){return k.ge}),n.d(t,"je",function(){return k.je}),n.d(t,"oe",function(){return k.oe}),n.d(t,"ke",function(){return k.ke}),n.d(t,"le",function(){return k.le}),n.d(t,"me",function(){return k.me}),n.d(t,"ne",function(){return k.ne}),n.d(t,"pe",function(){return k.pe}),n.d(t,"qe",function(){return k.qe}),n.d(t,"se",function(){return k.se}),n.d(t,"te",function(){return k.te}),n.d(t,"we",function(){return k.we}),n.d(t,"xe",function(){return k.xe}),n.d(t,"ye",function(){return k.ye}),n.d(t,"ze",function(){return k.ze}),n.d(t,"Ae",function(){return k.Ae}),n.d(t,"Be",function(){return k.Be}),n.d(t,"Ce",function(){return k.Ce}),n.d(t,"De",function(){return k.De}),n.d(t,"Ee",function(){return k.Ee}),n.d(t,"Fe",function(){return k.Fe}),n.d(t,"Ge",function(){return k.Ge}),n.d(t,"He",function(){return k.He}),n.d(t,"Ie",function(){return k.Ie}),n.d(t,"Je",function(){return k.Je}),n.d(t,"Ke",function(){return k.Ke}),n.d(t,"Le",function(){return k.Le}),n.d(t,"Ne",function(){return k.Ne}),n.d(t,"Oe",function(){return k.Oe}),n.d(t,"Qe",function(){return k.Qe}),n.d(t,"Re",function(){return k.Re}),n.d(t,"Te",function(){return k.Te}),n.d(t,"Ve",function(){return k.Ve}),n.d(t,"We",function(){return k.We}),n.d(t,"Ye",function(){return k.Ye}),n.d(t,"Ze",function(){return k.Ze}),n.d(t,"df",function(){return k.df}),n.d(t,"ef",function(){return k.ef}),n.d(t,"ff",function(){return k.ff}),n.d(t,"hf",function(){return k.hf}),n.d(t,"if",function(){return k.if}),n.d(t,"nf",function(){return k.nf}),n.d(t,"pf",function(){return k.pf}),n.d(t,"qf",function(){return k.qf}),n.d(t,"rf",function(){return k.rf}),n.d(t,"sf",function(){return k.sf}),n.d(t,"tf",function(){return k.tf}),n.d(t,"uf",function(){return k.uf}),n.d(t,"vf",function(){return k.vf}),n.d(t,"xf",function(){return k.xf}),n.d(t,"Af",function(){return k.Af}),n.d(t,"Bf",function(){return k.Bf}),n.d(t,"Df",function(){return k.Df}),n.d(t,"Mf",function(){return k.Mf}),n.d(t,"Nf",function(){return k.Nf}),n.d(t,"Pf",function(){return k.Pf}),n.d(t,"Uf",function(){return k.Uf}),n.d(t,"Vf",function(){return k.Vf}),n.d(t,"Wf",function(){return k.Wf}),n.d(t,"Zf",function(){return k.Zf}),n.d(t,"ag",function(){return k.ag}),n.d(t,"bg",function(){return k.bg}),n.d(t,"dg",function(){return k.dg}),n.d(t,"eg",function(){return k.eg}),n.d(t,"fg",function(){return k.fg}),n.d(t,"gg",function(){return k.gg}),n.d(t,"hg",function(){return k.hg}),n.d(t,"ig",function(){return k.ig}),n.d(t,"jg",function(){return k.jg}),n.d(t,"kg",function(){return k.kg}),n.d(t,"lg",function(){return k.lg}),n.d(t,"mg",function(){return k.mg}),n.d(t,"ng",function(){return k.ng}),n.d(t,"pg",function(){return k.pg}),n.d(t,"qg",function(){return k.qg}),n.d(t,"sg",function(){return k.sg}),n.d(t,"tg",function(){return k.tg}),n.d(t,"ug",function(){return k.ug}),n.d(t,"vg",function(){return k.vg}),n.d(t,"wg",function(){return k.wg}),n.d(t,"xg",function(){return k.xg}),n.d(t,"zg",function(){return k.zg}),n.d(t,"Ag",function(){return k.Ag}),n.d(t,"Bg",function(){return k.Bg}),n.d(t,"Cg",function(){return k.Cg}),n.d(t,"Dg",function(){return k.Dg}),n.d(t,"Eg",function(){return k.Eg}),n.d(t,"Gg",function(){return k.Gg}),n.d(t,"Hg",function(){return k.Hg}),n.d(t,"Ig",function(){return k.Ig}),n.d(t,"Jg",function(){return k.Jg}),n.d(t,"Mg",function(){return k.Mg}),n.d(t,"Ng",function(){return k.Ng}),n.d(t,"Og",function(){return k.Og}),n.d(t,"Pg",function(){return k.Pg}),n.d(t,"Rg",function(){return k.Rg}),n.d(t,"Sg",function(){return k.Sg}),n.d(t,"Tg",function(){return k.Tg}),n.d(t,"Ug",function(){return k.Ug}),n.d(t,"Vg",function(){return k.Vg}),n.d(t,"Wg",function(){return k.Wg}),n.d(t,"Xg",function(){return k.Xg}),n.d(t,"Yg",function(){return k.Yg}),n.d(t,"Zg",function(){return k.Zg}),n.d(t,"ah",function(){return k.ah}),n.d(t,"bh",function(){return k.bh}),n.d(t,"dh",function(){return k.dh}),n.d(t,"eh",function(){return k.eh}),n.d(t,"fh",function(){return k.fh}),n.d(t,"gh",function(){return k.gh}),n.d(t,"hh",function(){return k.hh}),n.d(t,"ih",function(){return k.ih}),n.d(t,"jh",function(){return k.jh}),n.d(t,"kh",function(){return k.kh}),n.d(t,"lh",function(){return k.lh}),n.d(t,"mh",function(){return k.mh}),n.d(t,"oh",function(){return k.oh}),n.d(t,"ph",function(){return k.ph}),n.d(t,"th",function(){return k.th}),n.d(t,"uh",function(){return k.uh}),n.d(t,"wh",function(){return k.wh}),n.d(t,"xh",function(){return k.xh}),n.d(t,"yh",function(){return k.yh}),n.d(t,"zh",function(){return k.zh}),n.d(t,"Ah",function(){return k.Ah}),n.d(t,"Bh",function(){return k.Bh}),n.d(t,"Dh",function(){return k.Dh}),n.d(t,"Eh",function(){return k.Eh}),n.d(t,"Fh",function(){return k.Fh}),n.d(t,"Jh",function(){return k.Jh}),n.d(t,"Kh",function(){return k.Kh}),n.d(t,"Oh",function(){return k.Oh}),n.d(t,"Ph",function(){return k.Ph}),n.d(t,"Qh",function(){return k.Qh}),n.d(t,"Sh",function(){return k.Sh}),n.d(t,"Th",function(){return k.Th}),n.d(t,"Uh",function(){return k.Uh}),n.d(t,"Vh",function(){return k.Vh}),n.d(t,"Wh",function(){return k.Wh}),n.d(t,"Xh",function(){return k.Xh}),n.d(t,"Yh",function(){return k.Yh}),n.d(t,"ai",function(){return k.ai}),n.d(t,"bi",function(){return k.bi}),n.d(t,"ci",function(){return k.ci}),n.d(t,"wf",function(){return k.wf}),n.d(t,"Of",function(){return k.Of}),n.d(t,"Tf",function(){return k.Tf}),n.d(t,"Ch",function(){return k.Ch}),n.d(t,"gi",function(){return k.gi}),n.d(t,"hi",function(){return k.hi}),n.d(t,"ii",function(){return k.ii}),n.d(t,"ji",function(){return k.ji}),n.d(t,"ki",function(){return k.ki}),n.d(t,"li",function(){return k.li}),n.d(t,"mi",function(){return k.mi}),n.d(t,"ni",function(){return k.ni}),n.d(t,"pi",function(){return k.pi}),n.d(t,"qi",function(){return k.qi}),n.d(t,"si",function(){return k.si}),n.d(t,"ti",function(){return k.ti}),n.d(t,"ui",function(){return k.ui}),n.d(t,"vi",function(){return k.vi}),n.d(t,"wi",function(){return k.wi}),n.d(t,"xi",function(){return k.xi}),n.d(t,"yi",function(){return k.yi}),n.d(t,"zi",function(){return k.zi}),n.d(t,"Ai",function(){return k.Ai}),n.d(t,"Bi",function(){return k.Bi}),n.d(t,"Fi",function(){return k.Fi}),n.d(t,"Hi",function(){return k.Hi}),n.d(t,"Ki",function(){return k.Ki}),n.d(t,"Li",function(){return k.Li}),n.d(t,"Oi",function(){return k.Oi}),n.d(t,"Pi",function(){return k.Pi}),n.d(t,"Ri",function(){return k.Ri}),n.d(t,"Vi",function(){return k.Vi}),n.d(t,"Yi",function(){return k.Yi}),n.d(t,"Zi",function(){return k.Zi}),n.d(t,"aj",function(){return k.aj}),n.d(t,"bj",function(){return k.bj}),n.d(t,"re",function(){return k.re}),n.d(t,"Ji",function(){return k.Ji}),n.d(t,"Lg",function(){return k.Lg}),n.d(t,"Fg",function(){return k.Fg}),n.d(t,"Gh",function(){return k.Gh}),n.d(t,"Ih",function(){return k.Ih}),n.d(t,"ei",function(){return k.ei}),n.d(t,"Ef",function(){return k.Ef}),n.d(t,"gf",function(){return k.gf}),n.d(t,"lf",function(){return k.lf}),n.d(t,"Pe",function(){return k.Pe}),n.d(t,"Rf",function(){return k.Rf}),n.d(t,"Qg",function(){return k.Qg}),n.d(t,"rc",function(){return k.rc}),n.d(t,"Qf",function(){return k.Qf}),n.d(t,"cg",function(){return k.cg}),n.d(t,"og",function(){return k.og}),n.d(t,"fi",function(){return k.fi}),n.d(t,"Cf",function(){return k.Cf}),n.d(t,"Rh",function(){return k.Rh}),n.d(t,"di",function(){return k.di}),n.d(t,"oi",function(){return k.oi}),n.d(t,"Lc",function(){return k.Lc}),n.d(t,"Ii",function(){return k.Ii}),n.d(t,"kf",function(){return k.kf}),n.d(t,"jf",function(){return k.jf}),n.d(t,"af",function(){return k.af}),n.d(t,"Ue",function(){return k.Ue}),n.d(t,"cf",function(){return k.cf}),n.d(t,"mf",function(){return k.mf}),n.d(t,"yg",function(){return k.yg}),n.d(t,"ch",function(){return k.ch}),n.d(t,"Ei",function(){return k.Ei}),n.d(t,"bf",function(){return k.bf}),n.d(t,"Xf",function(){return k.Xf}),n.d(t,"Gi",function(){return k.Gi}),n.d(t,"Mh",function(){return k.Mh}),n.d(t,"nh",function(){return k.nh}),n.d(t,"Gf",function(){return k.Gf}),n.d(t,"vh",function(){return k.vh}),n.d(t,"yf",function(){return k.yf}),n.d(t,"zf",function(){return k.zf}),n.d(t,"qh",function(){return k.qh}),n.d(t,"he",function(){return k.he}),n.d(t,"Nh",function(){return k.Nh}),n.d(t,"If",function(){return k.If}),n.d(t,"Hf",function(){return k.Hf}),n.d(t,"Jf",function(){return k.Jf}),n.d(t,"sh",function(){return k.sh}),n.d(t,"rh",function(){return k.rh}),n.d(t,"Ni",function(){return k.Ni}),n.d(t,"Mi",function(){return k.Mi}),n.d(t,"Me",function(){return k.Me}),n.d(t,"Se",function(){return k.Se}),n.d(t,"Kf",function(){return k.Kf}),n.d(t,"Lf",function(){return k.Lf}),n.d(t,"Ti",function(){return k.Ti}),n.d(t,"Ui",function(){return k.Ui}),n.d(t,"Wi",function(){return k.Wi}),n.d(t,"ib",function(){return k.ib}),n.d(t,"of",function(){return k.of}),n.d(t,"eb",function(){return k.eb}),n.d(t,"Xi",function(){return k.Xi}),n.d(t,"Kg",function(){return k.Kg}),n.d(t,"ve",function(){return k.ve}),n.d(t,"Sf",function(){return k.Sf}),n.d(t,"rg",function(){return k.rg}),n.d(t,"Lh",function(){return k.Lh}),n.d(t,"Di",function(){return k.Di}),n.d(t,"Si",function(){return k.Si}),n.d(t,"ie",function(){return k.ie}),n.d(t,"ue",function(){return k.ue}),n.d(t,"Ci",function(){return k.Ci}),n.d(t,"Zh",function(){return k.Zh}),n.d(t,"Ff",function(){return k.Ff}),n.d(t,"Hh",function(){return k.Hh}),n.d(t,"Xe",function(){return k.Xe}),n.d(t,"Yf",function(){return k.Yf}),n.d(t,"Hb",function(){return k.Hb}),n.d(t,"T",function(){return k.T}),n.d(t,"a",function(){return k.a}),n.d(t,"b",function(){return k.b}),n.d(t,"c",function(){return k.c}),n.d(t,"h",function(){return k.h}),n.d(t,"i",function(){return k.i}),n.d(t,"j",function(){return k.j}),n.d(t,"k",function(){return k.k}),n.d(t,"l",function(){return k.l}),n.d(t,"m",function(){return k.m}),n.d(t,"n",function(){return k.n}),n.d(t,"o",function(){return k.o}),n.d(t,"p",function(){return k.p}),n.d(t,"r",function(){return k.r}),n.d(t,"q",function(){return k.q}),n.d(t,"s",function(){return k.s}),n.d(t,"v",function(){return k.v}),n.d(t,"t",function(){return k.t}),n.d(t,"u",function(){return k.u}),n.d(t,"w",function(){return k.w}),n.d(t,"x",function(){return k.x}),n.d(t,"y",function(){return k.y}),n.d(t,"z",function(){return k.z}),n.d(t,"B",function(){return k.B}),n.d(t,"A",function(){return k.A}),n.d(t,"C",function(){return k.C}),n.d(t,"D",function(){return k.D}),n.d(t,"E",function(){return k.E}),n.d(t,"F",function(){return k.F}),n.d(t,"G",function(){return k.G}),n.d(t,"H",function(){return k.H}),n.d(t,"I",function(){return k.I}),n.d(t,"J",function(){return k.J}),n.d(t,"K",function(){return k.K}),n.d(t,"L",function(){return k.L}),n.d(t,"M",function(){return k.M}),n.d(t,"N",function(){return k.N}),n.d(t,"O",function(){return k.O}),n.d(t,"P",function(){return k.P}),n.d(t,"R",function(){return k.R}),n.d(t,"S",function(){return k.S}),n.d(t,"Q",function(){return k.Q}),n.d(t,"U",function(){return k.U}),n.d(t,"V",function(){return k.V}),n.d(t,"W",function(){return k.W}),n.d(t,"X",function(){return k.X}),n.d(t,"Y",function(){return k.Y}),n.d(t,"Z",function(){return k.Z}),n.d(t,"ab",function(){return k.ab}),n.d(t,"cb",function(){return k.cb}),n.d(t,"bb",function(){return k.bb}),n.d(t,"db",function(){return k.db}),n.d(t,"Jc",function(){return k.Jc}),n.d(t,"fb",function(){return k.fb}),n.d(t,"gb",function(){return k.gb}),n.d(t,"hb",function(){return k.hb}),n.d(t,"kb",function(){return k.kb}),n.d(t,"jb",function(){return k.jb}),n.d(t,"lb",function(){return k.lb}),n.d(t,"mb",function(){return k.mb}),n.d(t,"nb",function(){return k.nb}),n.d(t,"ob",function(){return k.ob}),n.d(t,"pb",function(){return k.pb}),n.d(t,"qb",function(){return k.qb}),n.d(t,"rb",function(){return k.rb}),n.d(t,"sb",function(){return k.sb}),n.d(t,"ub",function(){return k.ub}),n.d(t,"yb",function(){return k.yb}),n.d(t,"xb",function(){return k.xb}),n.d(t,"zb",function(){return k.zb}),n.d(t,"Ab",function(){return k.Ab}),n.d(t,"Cb",function(){return k.Cb}),n.d(t,"Bb",function(){return k.Bb}),n.d(t,"Db",function(){return k.Db}),n.d(t,"Eb",function(){return k.Eb}),n.d(t,"Fb",function(){return k.Fb}),n.d(t,"Gb",function(){return k.Gb}),n.d(t,"Kb",function(){return k.Kb}),n.d(t,"Lb",function(){return k.Lb}),n.d(t,"Mb",function(){return k.Mb}),n.d(t,"Nb",function(){return k.Nb}),n.d(t,"Ob",function(){return k.Ob}),n.d(t,"Pb",function(){return k.Pb}),n.d(t,"Rb",function(){return k.Rb}),n.d(t,"Sb",function(){return k.Sb}),n.d(t,"Tb",function(){return k.Tb}),n.d(t,"Ub",function(){return k.Ub}),n.d(t,"Qb",function(){return k.Qb}),n.d(t,"Vb",function(){return k.Vb}),n.d(t,"Ib",function(){return k.Ib}),n.d(t,"Jb",function(){return k.Jb}),n.d(t,"Wb",function(){return k.Wb}),n.d(t,"Xb",function(){return k.Xb}),n.d(t,"dc",function(){return k.dc}),n.d(t,"Yb",function(){return k.Yb}),n.d(t,"bc",function(){return k.bc}),n.d(t,"Zb",function(){return k.Zb}),n.d(t,"ac",function(){return k.ac}),n.d(t,"cc",function(){return k.cc}),n.d(t,"ec",function(){return k.ec}),n.d(t,"fc",function(){return k.fc}),n.d(t,"gc",function(){return k.gc}),n.d(t,"hc",function(){return k.hc}),n.d(t,"ic",function(){return k.ic}),n.d(t,"kc",function(){return k.kc}),n.d(t,"lc",function(){return k.lc}),n.d(t,"mc",function(){return k.mc}),n.d(t,"qc",function(){return k.qc}),n.d(t,"nc",function(){return k.nc}),n.d(t,"oc",function(){return k.oc}),n.d(t,"pc",function(){return k.pc}),n.d(t,"tc",function(){return k.tc}),n.d(t,"sc",function(){return k.sc}),n.d(t,"wc",function(){return k.wc}),n.d(t,"xc",function(){return k.xc}),n.d(t,"yc",function(){return k.yc}
1),n.d(t,"zc",function(){return k.zc}),n.d(t,"Ac",function(){return k.Ac}),n.d(t,"Bc",function(){return k.Bc}),n.d(t,"Dc",function(){return k.Dc}),n.d(t,"Ec",function(){return k.Ec}),n.d(t,"Fc",function(){return k.Fc}),n.d(t,"Gc",function(){return k.Gc}),n.d(t,"Ic",function(){return k.Ic}),n.d(t,"Kc",function(){return k.Kc}),n.d(t,"Mc",function(){return k.Mc}),n.d(t,"Oc",function(){return k.Oc}),n.d(t,"Rc",function(){return k.Rc}),n.d(t,"Sc",function(){return k.Sc}),n.d(t,"Pc",function(){return k.Pc}),n.d(t,"Qc",function(){return k.Qc}),n.d(t,"Nc",function(){return k.Nc}),n.d(t,"Tc",function(){return k.Tc}),n.d(t,"Vc",function(){return k.Vc}),n.d(t,"Wc",function(){return k.Wc}),n.d(t,"Yc",function(){return k.Yc}),n.d(t,"Fd",function(){return k.Fd}),n.d(t,"Zc",function(){return k.Zc}),n.d(t,"ad",function(){return k.ad}),n.d(t,"bd",function(){return k.bd}),n.d(t,"gd",function(){return k.gd}),n.d(t,"ed",function(){return k.ed}),n.d(t,"fd",function(){return k.fd}),n.d(t,"dd",function(){return k.dd}),n.d(t,"cd",function(){return k.cd}),n.d(t,"id",function(){return k.id}),n.d(t,"qd",function(){return k.qd}),n.d(t,"Ad",function(){return k.Ad}),n.d(t,"jd",function(){return k.jd}),n.d(t,"pd",function(){return k.pd}),n.d(t,"hd",function(){return k.hd}),n.d(t,"kd",function(){return k.kd}),n.d(t,"ld",function(){return k.ld}),n.d(t,"md",function(){return k.md}),n.d(t,"nd",function(){return k.nd}),n.d(t,"od",function(){return k.od}),n.d(t,"sd",function(){return k.sd}),n.d(t,"rd",function(){return k.rd}),n.d(t,"td",function(){return k.td}),n.d(t,"vd",function(){return k.vd}),n.d(t,"wd",function(){return k.wd}),n.d(t,"xd",function(){return k.xd}),n.d(t,"yd",function(){return k.yd}),n.d(t,"zd",function(){return k.zd}),n.d(t,"Bd",function(){return k.Bd}),n.d(t,"Cd",function(){return k.Cd}),n.d(t,"Gd",function(){return k.Gd}),n.d(t,"Hd",function(){return k.Hd}),n.d(t,"Id",function(){return k.Id}),n.d(t,"Jd",function(){return k.Jd}),n.d(t,"Kd",function(){return k.Kd}),n.d(t,"Ld",function(){return k.Ld}),n.d(t,"Md",function(){return k.Md}),n.d(t,"Nd",function(){return k.Nd}),n.d(t,"Pd",function(){return k.Pd}),n.d(t,"ud",function(){return k.ud}),n.d(t,"tb",function(){return k.tb}),n.d(t,"Uc",function(){return k.Uc}),n.d(t,"Qd",function(){return k.Qd}),n.d(t,"vb",function(){return k.vb}),n.d(t,"wb",function(){return k.wb});var r=n(5),i=(n(204),n(24)),a=n(263),o=n(264),s=n(126),l=n(262);class u{constructor(){this.messageName="setTimeoutCustom",this.functionRefs=[],this.handledMessageCount=0,this.hasEventListener=!1}fetch(e,t){return fetch(e,t)}now(){return performance.now()}encode(e,t){if("utf-8"!==t&&"utf8"!==t)throw Error("Browser's encoder only supports utf-8, but got "+t);return null==this.textEncoder&&(this.textEncoder=new TextEncoder),this.textEncoder.encode(e)}decode(e,t){return new TextDecoder(t).decode(e)}setTimeoutCustom(e,t){"undefined"!=typeof window&&Object(i.c)().getBool("USE_SETTIMEOUTCUSTOM")?(this.functionRefs.push(e),setTimeout(()=>{window.postMessage({name:this.messageName,index:this.functionRefs.length-1},"*")},t),this.hasEventListener||(this.hasEventListener=!0,window.addEventListener("message",e=>{e.source===window&&e.data.name===this.messageName&&(e.stopPropagation(),(0,this.functionRefs[e.data.index])(),this.handledMessageCount++,this.handledMessageCount===this.functionRefs.length&&(this.functionRefs=[],this.handledMessageCount=0))},!0))):setTimeout(e,t)}isTypedArray(e){return Object(l.a)(e)}}if(Object(i.c)().get("IS_BROWSER")){Object(i.c)().setPlatform("browser",new u);try{s.a.registerManager(o.a.URL_SCHEME,new o.b)}catch(e){}try{s.a.registerManager(a.a.URL_SCHEME,new a.b)}catch(e){}}n(645);var c=n(67),p=n(16),d=n(92),f=n(228),h=n(6);Object(r.b)();let g={buffer:c.a,cast:p.a,clone:d.a,print:f.a};Object(h.f)(g);var b=n(164),m=n(167),y=n(168),S=n(169),v=n(170),O=n(171),x=n(129),I=n(165);let N=[b.a,m.a,y.a,S.a,v.a,O.a,x.a];var k=n(210);!function(){for(let e of N)Object(I.registerClass)(e)}()},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"g",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return p});var r=n(0);function i(e,t,n,i,o){let s=t.inputParams[e];if(s&&void 0!==s.inputIndexStart){let e=s.inputIndexStart,l=0===s.inputIndexEnd?void 0:void 0===s.inputIndexEnd?e+1:s.inputIndexEnd,u=e<0?t.inputNames.length+e:e;if("tensor"===s.type)return a(t.inputNames[u],n,i,o);if("tensors"===s.type){let r=t.inputs.slice(e,l);return t.inputNames.slice(e,l).filter((e,t)=>
1{var n;return"NoOp"!==(null==(n=r[t])?void 0:n.op)}).map(e=>a(e,n,i,o))}let c=a(t.inputNames[u],n,i,o),p=c.dataSync();return"number"===s.type?p[0]:r.Si.toNestedArray(c.shape,p)}let l=t.attrParams[e];return l&&l.value}function a(e,t,n,r){let[i,a]=u(e,n);if(null!=r){let e=r.getHashTableHandleByName(i);if(null!=e)return e}let o=n.currentContextIds.find(e=>!!t[l(i,e)]);return void 0!==o?t[l(i,o)][a]:void 0}function o(e,t,n){return t[l(e,n.currentContextId)]}function s(e,t){let[n,r,i]=u(e,t);return[l(n,t&&t.currentContextId),r,i]}function l(e,t){return t?`${e}-${t}`:e}function u(e,t){let n;if(""===e)return["",0,void 0];let r=null!=t&&null!=t.parseNodeNameCache;if(r){let n=t.parseNodeNameCache.get(e);if(null!=n)return n}let i=e.split(":");if(1===i.length)n=[e,0,void 0];else{let e=i[0],t=3===i.length?i[1]:void 0;n=[e,Number(i[i.length-1]),t]}return r&&t.parseNodeNameCache.set(e,n),n}function c(e,t,n){let r=i("pad",e,t,n);if("explicit"===r){r=i("explicitPaddings",e,t,n);let a=[[0,0],[0,0],[0,0],[0,0]];for(let e=0;e<4;e++)a[e][0]=r[2*e],a[e][1]=r[2*e+1];return a}return r}function p(e){return e.kept?e:Object(r.Ae)(e)}},function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return p}),n.d(t,"b",function(){return d});var r=n(5),i=n(24),a=n(6),o=n(78),s=n(12),l=n(10);function u(e,t){let n=e;if(Object(s.isTypedArray)(e))return"string"===t?[]:[e.length];if(Object(o.b)(e)){let t=e.channels||"RGBA";return[e.height,e.width*t.length]}if(Object(o.c)(e))return[e.buffer.size/(null==t?4:Object(l.h)(t))];if(!Array.isArray(e))return[];let r=[];for(;Array.isArray(n)||Object(s.isTypedArray)(n)&&"string"!==t;)r.push(n.length),n=n[0];return Array.isArray(e)&&Object(i.c)().getBool("TENSORLIKE_CHECK_SHAPE_CONSISTENCY")&&function e(t,n,r){if(r=r||[],!Array.isArray(t)&&!Object(s.isTypedArray)(t))return void Object(l.c)(0===n.length,()=>`Element arr[${r.join("][")}] is a primitive, but should be an array/TypedArray of ${n[0]} elements`);Object(l.c)(n.length>0,()=>`Element arr[${r.join("][")}] should be a primitive, but is an array of ${t.length} elements`),Object(l.c)(t.length===n[0],()=>`Element arr[${r.join("][")}] should have ${n[0]} elements, but has ${t.length} elements`);let i=n.slice(1);for(let n=0;n<t.length;++n)e(t[n],i,r.concat(n))}(e,r,[]),r}function c(e,t,n,r){if("string_or_numeric"!==e){if(null==e)throw Error("Expected dtype cannot be null.");if("numeric"!==e&&e!==t||"numeric"===e&&"string"===t)throw Error(`Argument '${n}' passed to '${r}' must be ${e} tensor, but got ${t} tensor`)}}function p(e,t,n,i="numeric"){if(e instanceof Object(a.d)())return c(i,e.dtype,t,n),e;let o=Object(l.s)(e);if("string"!==o&&["bool","int32","float32"].indexOf(i)>=0&&(o=i),c(i,o,t,n),null==e||!Object(s.isTypedArray)(e)&&!Array.isArray(e)&&"number"!=typeof e&&"boolean"!=typeof e&&"string"!=typeof e){let r=null==e?"null":e.constructor.name;throw Error(`Argument '${t}' passed to '${n}' must be a Tensor or TensorLike, but got '${r}'`)}let d=u(e,o);Object(s.isTypedArray)(e)||Array.isArray(e)||(e=[e]);let f="string"!==o?Object(s.toTypedArray)(e,o):Object(s.flatten)(e,[],!0);return r.a.makeTensor(f,d,o)}function d(e,t,n,r="numeric"){if(!Array.isArray(e))throw Error(`Argument ${t} passed to ${n} must be a \`Tensor[]\` or \`TensorLike[]\``);return e.map((e,i)=>p(e,`${t}[${i}]`,n,r))}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return c}),n.d(t,"i",function(){return p}),n.d(t,"j",function(){return d}),n.d(t,"k",function(){return f}),n.d(t,"l",function(){return h}),n.d(t,"n",function(){return g}),n.d(t,"m",function(){return b}),n.d(t,"o",function(){return m}),n.d(t,"r",function(){return y}),n.d(t,"p",function(){return S}),n.d(t,"q",function(){return v}),n.d(t,"s",function(){return O}),n.d(t,"t",function(){return x}),n.d(t,"u",function(){return I}),n.d(t,"v",function(){return N}),n.d(t,"x",function(){return k}),n.d(t,"w",function(){return T}),n.d(t,"y",function(){return w}),n.d(t,"z",function(){return j}),n.d(t,"A",function(){return F}),n.d(t,"B",function(){return _}),n.d(t,"C",function(){return E}),n.d(t,"D",function(){return R}),n.d(t,"E",function(){return D}),n.d(t,"F",function(){return C}),n.d(t,"G",function(){return A}),n.d(t,"H",function(){return M}),n.d(t,"I",function(){return $}),n.d(t,"J",function(){return U}),n.d(t,"K",function(){return P}),n.d(t,"L",function(){return B}),n.d(t,"N",function(){return L}),n.d(t,"O",function(){return W}),n.d(t,"M",function(){return z}),n.d(t,"P",function(){return G}),n.d(t,"Q",function(){return V}),n.d(t,"R",function(){return H}),n.d(t,"S",function(){return q}),n.d(t,"T",function(){return K}),n.d(t,"U",function(){return X}),n.d(t,"V",function(){return Y}),n.d(t,"X",function(){return Q}),n.d(t,"W",function(){return J}),n.d(t,"Y",function(){return Z}),n.d(t,"vc",function(){return ee}),n.d(t,"Z",function(){return et}),n.d(t,"ab",function(){return en}),n.d(t,"bb",function(){return er}),n.d(t,"db",function(){return ei}),n.d(t,"cb",function(){return ea}),n.d(t,"eb",function(){return eo}),n.d(t,"fb",function(){return es}),n.d(t,"gb",function(){return el}),n.d(t,"hb",function(){return eu}),n.d(t,"ib",function(){return ec}),n.d(t,"jb",function(){return ep}
1),n.d(t,"kb",function(){return ed}),n.d(t,"lb",function(){return ef}),n.d(t,"nb",function(){return eh}),n.d(t,"rb",function(){return eg}),n.d(t,"qb",function(){return eb}),n.d(t,"sb",function(){return em}),n.d(t,"tb",function(){return ey}),n.d(t,"vb",function(){return eS}),n.d(t,"ub",function(){return ev}),n.d(t,"wb",function(){return eO}),n.d(t,"xb",function(){return ex}),n.d(t,"yb",function(){return eI}),n.d(t,"zb",function(){return eN}),n.d(t,"Cb",function(){return ek}),n.d(t,"Db",function(){return eT}),n.d(t,"Eb",function(){return ew}),n.d(t,"Fb",function(){return ej}),n.d(t,"Gb",function(){return eF}),n.d(t,"Hb",function(){return e_}),n.d(t,"Jb",function(){return eE}),n.d(t,"Kb",function(){return eR}),n.d(t,"Lb",function(){return eD}),n.d(t,"Mb",function(){return eC}),n.d(t,"Ib",function(){return eA}),n.d(t,"Nb",function(){return eM}),n.d(t,"Ab",function(){return e$}),n.d(t,"Bb",function(){return eU}),n.d(t,"Ob",function(){return eP}),n.d(t,"Pb",function(){return eB}),n.d(t,"Vb",function(){return eL}),n.d(t,"Qb",function(){return eW}),n.d(t,"Tb",function(){return ez}),n.d(t,"Rb",function(){return eG}),n.d(t,"Sb",function(){return eV}),n.d(t,"Ub",function(){return eH}),n.d(t,"Wb",function(){return eq}),n.d(t,"Xb",function(){return eK}),n.d(t,"Yb",function(){return eX}),n.d(t,"Zb",function(){return eY}),n.d(t,"ac",function(){return eQ}),n.d(t,"bc",function(){return eJ}),n.d(t,"cc",function(){return eZ}),n.d(t,"dc",function(){return e0}),n.d(t,"hc",function(){return e1}),n.d(t,"ec",function(){return e2}),n.d(t,"fc",function(){return e3}),n.d(t,"gc",function(){return e4}),n.d(t,"jc",function(){return e6}),n.d(t,"ic",function(){return e5}),n.d(t,"kc",function(){return e8}),n.d(t,"lc",function(){return e7}),n.d(t,"mc",function(){return e9}),n.d(t,"nc",function(){return te}),n.d(t,"oc",function(){return tt}),n.d(t,"pc",function(){return tn}),n.d(t,"qc",function(){return tr}),n.d(t,"rc",function(){return ti}),n.d(t,"sc",function(){return ta}),n.d(t,"tc",function(){return to}),n.d(t,"uc",function(){return ts}),n.d(t,"wc",function(){return tl}),n.d(t,"xc",function(){return tu}),n.d(t,"zc",function(){return tc}),n.d(t,"Cc",function(){return tp}),n.d(t,"Dc",function(){return td}),n.d(t,"Ac",function(){return tf}),n.d(t,"Bc",function(){return th}),n.d(t,"yc",function(){return tg}),n.d(t,"Ec",function(){return tb}),n.d(t,"Gc",function(){return tm}),n.d(t,"Hc",function(){return ty}),n.d(t,"Ic",function(){return tS}),n.d(t,"nd",function(){return tv}),n.d(t,"Jc",function(){return tO}),n.d(t,"Kc",function(){return tx}),n.d(t,"Lc",function(){return tI}),n.d(t,"Qc",function(){return tN}),n.d(t,"Oc",function(){return tk}),n.d(t,"Pc",function(){return tT}),n.d(t,"Nc",function(){return tw}),n.d(t,"Mc",function(){return tj}),n.d(t,"Sc",function(){return tF}),n.d(t,"ad",function(){return t_}),n.d(t,"kd",function(){return tE}),n.d(t,"Tc",function(){return tR}),n.d(t,"Zc",function(){return tD}),n.d(t,"Rc",function(){return tC}),n.d(t,"Uc",function(){return tA}),n.d(t,"Vc",function(){return tM}),n.d(t,"Wc",function(){return t$}),n.d(t,"Xc",function(){return tU}),n.d(t,"Yc",function(){return tP}),n.d(t,"cd",function(){return tB}),n.d(t,"bd",function(){return tL}),n.d(t,"dd",function(){return tW}),n.d(t,"fd",function(){return tz}),n.d(t,"gd",function(){return tG}),n.d(t,"hd",function(){return tV}),n.d(t,"id",function(){return tH}),n.d(t,"jd",function(){return tq}),n.d(t,"ld",function(){return tK}),n.d(t,"md",function(){return tX}),n.d(t,"od",function(){return tY}),n.d(t,"pd",function(){return tQ}),n.d(t,"qd",function(){return tJ}),n.d(t,"rd",function(){return tZ}),n.d(t,"sd",function(){return t0}),n.d(t,"td",function(){return t1}),n.d(t,"ud",function(){return t2}),n.d(t,"vd",function(){return t3}),n.d(t,"wd",function(){return t4}),n.d(t,"ed",function(){return t6}),n.d(t,"mb",function(){return t5}),n.d(t,"Fc",function(){return t8}),n.d(t,"xd",function(){return t7}),n.d(t,"ob",function(){return t9}),n.d(t,"pb",function(){return ne});let r="Abs",i="Acos",a="Acosh",o="Add",s="AddN",l="All",u="Any",c="ArgMax",p="ArgMin",d="Asin",f="Asinh",h="Atan",g="Atanh",b="Atan2",m="AvgPool",y="AvgPoolGrad",S="AvgPool3D",v="AvgPool3DGrad",O="BatchMatMul",x="BatchToSpaceND",I="Bincount",N="BitwiseAnd",k="BroadcastTo",T="BroadcastArgs",w="Cast",j="Ceil",F="ClipByValue",_="Complex",E="ComplexAbs",R="Concat",D="Conv2D",C="Conv2DBackpropFilter",A="Conv2DBackpropInput",M="Conv3D",$="Conv3DBackpropFilterV2",U="Conv3DBackpropInputV2",P="Cos",B="Cosh",L="Cumprod",W="Cumsum",z="CropAndResize",G="DenseBincount",V="DepthToSpace",H="DepthwiseConv2dNative",q="DepthwiseConv2dNativeBackpropFilter",K="DepthwiseConv2dNativeBackpropInput",X="Diag",Y="Dilation2D",Q="Dilation2DBackpropInput",J="Dilation2DBackpropFilter",Z="Draw",ee="RealDiv",et="Einsum",en="Elu",er="EluGrad",ei="Erf",ea="Equal",eo="Exp",es="ExpandDims",el="Expm1",eu="FFT",ec="Fill",ep="FlipLeftRight",ed="Floor",ef="FloorDiv",eh="FusedBatchNorm",eg="GatherV2",eb="GatherNd",em="Greater",ey="GreaterEqual",eS="Identity",ev="IFFT",eO="Imag",ex="IsFinite",eI="IsInf",eN="IsNan",ek="LeakyRelu",eT="Less",ew="LessEqual",ej="LinSpace",eF="Log",e_="Log1p",eE="LogicalAnd",eR="LogicalNot",eD="LogicalOr",eC="LogicalXor",eA="LogSoftmax",eM="LowerBound",e$="LRN",eU="LRNGrad",eP="MatrixBandPart",eB="Max",eL="Maximum",eW="MaxPool",ez="MaxPoolGrad",eG="MaxPool3D",eV="MaxPool3DGrad",eH="MaxPoolWithArgmax",eq="Mean",eK="Min",eX="Minimum",eY="MirrorPad",eQ="Mod",eJ="Multinomial",eZ="Multiply",e0="Neg",e1="NotEqual",e2="NonMaxSuppressionV3",e3="NonMaxSuppressionV4",e4="NonMaxSuppressionV5",e6="OnesLike",e5="OneHot",e8="Pack",e7="PadV2",e9="Pool",te="Pow",tt="Prelu",tn="Prod",tr="RaggedGather",ti="RaggedRange",ta="RaggedTensorToTensor",to="Range",ts="Real",tl="Reciprocal",tu="Relu",tc="Reshape",tp="ResizeNearestNeighbor",td="ResizeNearestNeighborGrad",tf="ResizeBilinear",th="ResizeBilinearGrad",tg="Relu6",tb="Reverse",tm="Round",ty="Rsqrt",tS="ScatterNd",tv="TensorScatterUpdate",tO="SearchSorted",tx="Select",tI="Selu",tN="Slice",tk="Sin",tT="Sinh",tw="Sign",tj="Sigmoid",tF="Softplus",t_="Sqrt",tE="Sum",tR="SpaceToBatchND",tD="SplitV",tC="Softmax",tA="SparseFillEmptyRows",tM="SparseReshape",t$="SparseSegmentMean",tU="SparseSegmentSum",tP="SparseToDense",tB="SquaredDifference",tL="Square",tW="StaticRegexReplace",tz="StridedSlice",tG="StringNGrams",tV="StringSplit",tH="StringToHashBucketFast",tq="Sub",tK="Tan",tX="Tanh",tY="Tile",tQ="TopK",tJ="Transform",tZ="Transpose",t0="Unique",t1="Unpack",t2="UnsortedSegmentSum",t3="UpperBound",t4="ZerosLike",t6="Step",t5="FromPixels",t8="RotateWithOffset",t7="_FusedMatMul",t9="FusedConv2D",ne="FusedDepthwiseConv2D"},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o}
1);var r=n(5),i=n(10);let a="__op";function o(e){let t=Object.keys(e);if(1!==t.length)throw Error("Please provide an object with a single key (operation name) mapping to a function. Got an object with "+t.length+" keys.");let n=t[0],o=e[n];n.endsWith("_")&&(n=n.substring(0,n.length-1));let s=(...e)=>{r.a.startScope(n);try{let t=o(...e);return Object(i.y)(t)&&console.error("Cannot return a Promise inside of tidy."),r.a.endScope(t),t}catch(e){throw r.a.endScope(null),e}};return Object.defineProperty(s,"name",{value:n+=a,configurable:!0}),s}},function(e,t,n){"use strict";n.d(t,"b",function(){return S}),n.d(t,"a",function(){return v});var r=n(206),i=n(24),a=n(150),o=n(3),s=n(82),l=n(100),u=n(12),c=n(10);class p{constructor(e,t){this.backendTimer=e,this.logger=t,null==t&&(this.logger=new f)}profileKernel(e,t,n){let r,a,o=()=>{r=n()},s=u.now();if(this.backendTimer.timerAvailable())a=this.backendTimer.time(o);else{for(let e of(o(),r))e.dataSync();a=Promise.resolve({kernelMs:u.now()-s})}if(Object(i.c)().getBool("CHECK_COMPUTATION_FOR_ERRORS"))for(let t=0;t<r.length;t++){let n=r[t];n.data().then(t=>{d(t,n.dtype,e)})}return{kernelName:e,outputs:r,inputs:t,timeMs:a.then(e=>e.kernelMs),extraInfo:a.then(e=>null!=e.getExtraProfileInfo?e.getExtraProfileInfo():"")}}logKernelProfile(e){let{kernelName:t,outputs:n,timeMs:r,inputs:i,extraInfo:a}=e;n.forEach(e=>{Promise.all([e.data(),r,a]).then(n=>{this.logger.logKernelProfile(t,e,n[0],n[1],i,n[2])})})}}function d(e,t,n){if("float32"!==t)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(isNaN(r)||!isFinite(r))return console.warn(`Found ${r} in the result of '${n}'`),!0}return!1}class f{logKernelProfile(e,t,n,r,i,a){let o="number"==typeof r?c.L(r+"ms",9):r.error,s=c.L(e,25),l=t.rank,u=t.size,p=c.L(t.shape.toString(),14),d="";for(let e in i){let n=i[e];if(null!=n){let r=n.shape||t.shape,i=r.length;d+=`${e}: ${i}D ${i>0?r:""} `}}console.log(`%c${s} %c${o} %c${l}D ${p} %c${u} %c${d} %c${a}`,"font-weight:bold","color:red","color:blue","color: orange","color: green","color: steelblue")}}var h=n(6),g=n(29);function b(e){return null!=e.kernelName}class m{constructor(){this.registeredVariables={},this.nextTapeNodeId=0,this.numBytes=0,this.numTensors=0,this.numStringTensors=0,this.numDataBuffers=0,this.gradientDepth=0,this.kernelDepth=0,this.scopeStack=[],this.numDataMovesStack=[],this.nextScopeId=0,this.tensorInfo=new WeakMap,this.profiling=!1,this.activeProfile={newBytes:0,newTensors:0,peakBytes:0,kernels:[],result:null,get kernelNames(){return Array.from(new Set(this.kernels.map(e=>e.name)))}}}dispose(){for(let e in this.registeredVariables)this.registeredVariables[e].dispose()}}class y{constructor(e){this.ENV=e,this.registry={},this.registryFactory={},this.pendingBackendInitId=0,this.state=new m}async ready(){if(null!=this.pendingBackendInit)return this.pendingBackendInit.then(()=>{});if(null!=this.backendInstance)return;let e=this.getSortedBackends();for(let t=0;t<e.length;t++){let n=e[t];if(await this.initializeBackend(n).success)return void await this.setBackend(n)}throw Error("Could not initialize any backends, all backend initializations failed.")}get backend(){if(null!=this.pendingBackendInit)throw Error(`Backend '${this.backendName}' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods`);if(null==this.backendInstance){let{name:e,asyncInit:t}=this.initializeBackendsAndReturnBest();if(t)throw Error(`The highest priority backend '${e}' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods`);this.setBackend(e)}return this.backendInstance}backendNames(){return Object.keys(this.registryFactory)}findBackend(e){if(!(e in this.registry)){if(!(e in this.registryFactory))return null;{let{asyncInit:t}=this.initializeBackend(e);if(t)return null}}return this.registry[e]}findBackendFactory(e){return e in this.registryFactory?this.registryFactory[e].factory:null}registerBackend(e,t,n=1){return e in this.registryFactory?(l.b(e+" backend was already registered. Reusing existing backend factory."),!1):(this.registryFactory[e]={factory:t,priority:n},!0)}async setBackend(e){if(null==this.registryFactory[e])throw Error(`Backend name '${e}' not found in registry`);
1if(this.backendName=e,null==this.registry[e]){this.backendInstance=null;let{success:t,asyncInit:n}=this.initializeBackend(e);if(!(n?await t:t))return!1}return this.backendInstance=this.registry[e],this.setupRegisteredKernels(),this.profiler=new p(this.backendInstance),!0}setupRegisteredKernels(){Object(s.d)(this.backendName).forEach(e=>{null!=e.setupFunc&&e.setupFunc(this.backendInstance)})}disposeRegisteredKernels(e){Object(s.d)(e).forEach(t=>{null!=t.disposeFunc&&t.disposeFunc(this.registry[e])})}initializeBackend(e){let t=this.registryFactory[e];if(null==t)throw Error(`Cannot initialize backend ${e}, no registration found.`);try{let n=t.factory();if(!n||n instanceof r.b||"function"!=typeof n.then)return this.registry[e]=n,{success:!0,asyncInit:!1};{let t=++this.pendingBackendInitId,r=n.then(n=>!(t<this.pendingBackendInitId)&&(this.registry[e]=n,this.pendingBackendInit=null,!0)).catch(n=>(t<this.pendingBackendInitId||(this.pendingBackendInit=null,l.b(`Initialization of backend ${e} failed`),l.b(n.stack||n.message)),!1));return this.pendingBackendInit=r,{success:r,asyncInit:!0}}}catch(t){return l.b(`Initialization of backend ${e} failed`),l.b(t.stack||t.message),{success:!1,asyncInit:!1}}}removeBackend(e){if(!(e in this.registryFactory))throw Error(e+" backend not found in registry");this.backendName===e&&null!=this.pendingBackendInit&&this.pendingBackendInitId++,e in this.registry&&(this.disposeRegisteredKernels(e),this.registry[e].dispose(),delete this.registry[e]),delete this.registryFactory[e],this.backendName===e&&(this.pendingBackendInit=null,this.backendName=null,this.backendInstance=null)}getSortedBackends(){if(0===Object.keys(this.registryFactory).length)throw Error("No backend found in registry.");return Object.keys(this.registryFactory).sort((e,t)=>this.registryFactory[t].priority-this.registryFactory[e].priority)}initializeBackendsAndReturnBest(){let e=this.getSortedBackends();for(let t=0;t<e.length;t++){let n=e[t],{success:r,asyncInit:i}=this.initializeBackend(n);if(i||r)return{name:n,asyncInit:i}}throw Error("Could not initialize any backends, all backend initializations failed.")}moveData(e,t){let n=this.state.tensorInfo.get(t),r=n.backend,i=this.readSync(t),a=r.refCount(t);r.disposeData(t,!0),n.backend=e,e.move(t,i,n.shape,n.dtype,a),this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack[this.state.numDataMovesStack.length-1]++}tidy(e,t){let n,r=null;if(null==t){if("function"!=typeof e)throw Error("Please provide a function to tidy()");t=e}else{if("string"!=typeof e&&!(e instanceof String))throw Error("When calling with two arguments, the first argument to tidy() must be a string");if("function"!=typeof t)throw Error("When calling with two arguments, the 2nd argument to tidy() must be a function");r=e}return this.scopedRun(()=>this.startScope(r),()=>this.endScope(n),()=>((n=t())instanceof Promise&&console.error("Cannot return a Promise inside of tidy."),n))}scopedRun(e,t,n){e();try{let e=n();return t(),e}catch(e){throw t(),e}}nextTensorId(){return y.nextTensorId++}nextVariableId(){return y.nextVariableId++}clone(e){let t=v.runKernel(o.vb,{x:e}),n={x:e};return this.addTapeNode(this.state.activeScope.name,n,[t],e=>({x:()=>{let t={x:e},n={dtype:"float32"};return v.runKernel(o.y,t,n)}}),[],{}),t}runKernel(e,t,n){if(null==this.backendName&&this.backend,null==Object(s.c)(e,this.backendName))throw Error(`Kernel '${e}' not registered for backend '${this.backendName}'`);return this.runKernelFunc({kernelName:e,inputs:t,attrs:n})}shouldCheckForMemLeaks(){return this.ENV.getBool("IS_TEST")}checkKernelForMemLeak(e,t,n){let r=this.backend.numDataIds(),i=0;n.forEach(e=>{i+="complex64"===e.dtype?3:1});let a=this.state.numDataMovesStack[this.state.numDataMovesStack.length-1],o=r-t-i-a;if(o>0)throw Error(`Backend '${this.backendName}' has an internal memory leak (${o} data ids) after running '${e}'`)}runKernelFunc(e){let t,n,r,i,a=[],o=this.isTapeOn(),l=this.state.numBytes,u=this.state.numTensors;this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack.push(0),null==this.backendName&&this.backend;let p=b(e)?e.kernelName:null!=this.state.activeScope?this.state.activeScope.name:"";if(b(e)){let{kernelName:r,inputs:i,attrs:l}=e;null==this.backendName&&this.backend;let u=Object(s.c)(r,this.backendName);c.c(null!=u,()=>`Cannot find registered kernel '${r}' for backend '${this.backendName}'`),t=()=>{let e=this.backend.numDataIds(),t=Array.isArray(n=u.kernelFunc({input
1s:i,attrs:l,backend:this.backend}))?n:[n];this.shouldCheckForMemLeaks()&&this.checkKernelForMemLeak(r,e,t);let s=t.map(e=>null!=e.rank?e:this.makeTensorFromTensorInfo(e));if(o){let e=this.getTensorsForGradient(r,i,s);a=this.saveTensorsForBackwardMode(e)}return s}}else{let{forwardFunc:r}=e,i=e=>{o&&(a=e.map(e=>this.keep(this.clone(e))))};t=()=>{let e=this.backend.numDataIds(),t=Array.isArray(n=this.tidy(()=>r(this.backend,i)))?n:[n];return this.shouldCheckForMemLeaks()&&this.checkKernelForMemLeak(p,e,t),t}}let{inputs:d,attrs:f}=e,h=b(e)?null:e.backwardsFunc;return this.scopedRun(()=>this.state.kernelDepth++,()=>this.state.kernelDepth--,()=>{this.ENV.getBool("DEBUG")||this.state.profiling?(r=this.profiler.profileKernel(p,d,()=>t()),this.ENV.getBool("DEBUG")&&this.profiler.logKernelProfile(r),i=r.outputs):i=t()}),o&&this.addTapeNode(p,d,i,h,a,f),this.state.profiling&&this.state.activeProfile.kernels.push({name:p,bytesAdded:this.state.numBytes-l,totalBytesSnapshot:this.state.numBytes,tensorsAdded:this.state.numTensors-u,totalTensorsSnapshot:this.state.numTensors,inputShapes:Object.keys(d).map(e=>null!=d[e]?d[e].shape:null),outputShapes:i.map(e=>e.shape),kernelTimeMs:r.timeMs,extraInfo:r.extraInfo}),Array.isArray(n)?i:i[0]}saveTensorsForBackwardMode(e){return e.map(e=>this.keep(this.clone(e)))}getTensorsForGradient(e,t,n){let r=Object(s.b)(e);if(null!=r){let e,i=r.inputsToSave||[],a=r.outputsToSave||[];r.saveAllInputs?(c.c(Array.isArray(t),()=>"saveAllInputs is true, expected inputs to be an array."),e=Object.keys(t).map(e=>t[e])):e=i.map(e=>t[e]);let o=n.filter((e,t)=>a[t]);return e.concat(o)}return[]}makeTensor(e,t,n,r){if(null==e)throw Error("Values passed to engine.makeTensor() are null");n=n||"float32",r=r||this.backend;let i=e;"string"===n&&c.A(e[0])&&(i=e.map(e=>u.encodeString(e)));let a=r.write(i,t,n),o=new h.a(t,n,a,this.nextTensorId());if(this.trackTensor(o,r),"string"===n){let e=this.state.tensorInfo.get(a),t=Object(c.g)(i);this.state.numBytes+=t-e.bytes,e.bytes=t}return o}makeTensorFromDataId(e,t,n,r){let i={dataId:e,shape:t,dtype:n=n||"float32"};return this.makeTensorFromTensorInfo(i,r)}makeTensorFromTensorInfo(e,t){let{dataId:n,shape:r,dtype:i}=e,a=new h.a(r,i,n,this.nextTensorId());return this.trackTensor(a,t),a}makeVariable(e,t=!0,n,r){n=n||this.nextVariableId().toString(),null!=r&&r!==e.dtype&&(e=e.cast(r));let i=new h.c(e,t,n,this.nextTensorId());if(null!=this.state.registeredVariables[i.name])throw Error(`Variable with name ${i.name} was already registered`);return this.state.registeredVariables[i.name]=i,this.incRef(i,this.backend),i}trackTensor(e,t){this.state.numTensors++,"string"===e.dtype&&this.state.numStringTensors++;let n=0;"complex64"!==e.dtype&&"string"!==e.dtype&&(n=e.size*c.h(e.dtype)),this.state.numBytes+=n,this.state.tensorInfo.has(e.dataId)||(this.state.numDataBuffers++,this.state.tensorInfo.set(e.dataId,{backend:t||this.backend,dtype:e.dtype,shape:e.shape,bytes:n})),e instanceof h.c||this.track(e)}incRef(e,t){this.trackTensor(e,t),this.backend.incRef(e.dataId)}removeDataId(e,t){this.state.tensorInfo.has(e)&&this.state.tensorInfo.get(e).backend===t&&(this.state.tensorInfo.delete(e),this.state.numDataBuffers--)}disposeTensor(e){if(!this.state.tensorInfo.has(e.dataId))return;let t=this.state.tensorInfo.get(e.dataId);if(this.state.numTensors--,"string"===e.dtype&&(this.state.numStringTensors--,this.state.numBytes-=t.bytes),"complex64"!==e.dtype&&"string"!==e.dtype){let t=e.size*c.h(e.dtype);this.state.numBytes-=t}t.backend.disposeData(e.dataId)&&this.removeDataId(e.dataId,t.backend)}disposeVariables(){for(let e in this.state.registeredVariables){let t=this.state.registeredVariables[e];this.disposeVariable(t)}}disposeVariable(e){this.disposeTensor(e),null!=this.state.registeredVariables[e.name]&&delete this.state.registeredVariables[e.name]}memory(){let e=this.backend.memory();return e.numTensors=this.state.numTensors,e.numDataBuffers=this.state.numDataBuffers,e.numBytes=this.state.numBytes,this.state.numStringTensors>0&&(e.unreliable=!0,null==e.reasons&&(e.reasons=[]),e.reasons.push("Memory usage by string tensors is approximate (2 bytes per character)")),e}async profile(e){this.state.profiling=!0;let t=this.state.numBytes,n=this.state.numTensors;for(let r of(this.state.activeProfile.kernels=[],this.state.activeProfile.result=await e(),this.state.profiling=!1,this.state.activeProfile.peakBytes=Math.max(...this.state.activeProfile.kernels.map(e=>e.totalBytesSnapshot)),this.state.activeProfile.newBytes=this.state.numBytes-t,this.state.activeProfile.newTensors=this.state.numTensors-n,this.state.activeProfile.kernels))r.kernelTimeMs=await r.kernelTimeMs,r.extraInfo=await r.extraInfo;return this.state.activeProfile}isTapeOn(){return this.state.gradientDepth>
10&&0===this.state.kernelDepth}addTapeNode(e,t,n,r,i,a){let o={id:this.state.nextTapeNodeId++,kernelName:e,inputs:t,outputs:n,saved:i},l=Object(s.b)(e);null!=l&&(r=l.gradFunc),null!=r&&(o.gradient=e=>(e=e.map((e,t)=>{if(null==e){let e=n[t],r=c.F(e.size,e.dtype);return this.makeTensor(r,e.shape,e.dtype)}return e}),r(e.length>1?e:e[0],i,a))),this.state.activeTape.push(o)}keep(e){return e.kept=!0,e}startTape(){0===this.state.gradientDepth&&(this.state.activeTape=[]),this.state.gradientDepth++}endTape(){this.state.gradientDepth--}startScope(e){let t={track:[],name:"unnamed scope",id:this.state.nextScopeId++};e&&(t.name=e),this.state.scopeStack.push(t),this.state.activeScope=t}endScope(e){let t=Object(g.getTensorsInContainer)(e),n=new Set(t.map(e=>e.id));for(let e=0;e<this.state.activeScope.track.length;e++){let t=this.state.activeScope.track[e];t.kept||n.has(t.id)||t.dispose()}let r=this.state.scopeStack.pop();this.state.activeScope=0===this.state.scopeStack.length?null:this.state.scopeStack[this.state.scopeStack.length-1],t.forEach(e=>{e.kept||e.scopeId!==r.id||this.track(e)})}gradients(e,t,n,r=!1){if(c.c(t.length>0,()=>"gradients() received an empty list of xs."),null!=n&&"float32"!==n.dtype)throw Error(`dy must have 'float32' dtype, but has '${n.dtype}'`);let i=this.scopedRun(()=>this.startTape(),()=>this.endTape(),()=>this.tidy("forward",e));c.c(i instanceof h.a,()=>"The result y returned by f() must be a tensor.");let a=function(e,t,n){let r={},i={};for(let e=0;e<t.length;e++)r[t[e].id]=!0;for(let n=0;n<e.length;n++){let a=e[n],o=a.inputs;for(let e in o){let n=o[e],s=!1;for(let e=0;e<t.length;e++)if(r[n.id]){a.outputs.forEach(e=>r[e.id]=!0),s=!0,i[a.id]=!0;break}if(s)break}}let a={};a[n.id]=!0;let o={};for(let t=e.length-1;t>=0;t--){let n=e[t],r=n.inputs;for(let e=0;e<n.outputs.length;e++)if(a[n.outputs[e].id]){for(let e in r)a[r[e].id]=!0,o[n.id]=!0;break}}let s=[];for(let t=0;t<e.length;t++){let n=e[t];if(i[n.id]&&o[n.id]){let e={};for(let t in n.inputs){let i=n.inputs[t];r[i.id]&&(e[t]=i)}let t=Object.assign({},n);t.inputs=e,t.outputs=n.outputs,s.push(t)}}return s}(this.state.activeTape,t,i);if(!r&&0===a.length&&t.length>0)throw Error("Cannot compute gradient of y=f(x) with respect to x. Make sure that the f you passed encloses all operations that lead from x to y.");return this.tidy("backward",()=>{let e={};e[i.id]=null==n?function(e){let t=Object(c.D)(Object(c.O)(e),"float32");return v.makeTensor(t,e,"float32")}(i.shape):n,function(e,t,n,r){for(let i=t.length-1;i>=0;i--){let a=t[i],o=[];if(a.outputs.forEach(t=>{let n=e[t.id];null!=n?o.push(n):o.push(null)}),null==a.gradient)throw Error(`Cannot compute gradient: gradient function not found for ${a.kernelName}.`);let s=a.gradient(o);for(let t in a.inputs){if(!(t in s))throw Error(`Cannot backprop through input ${t}. Available gradients found: ${Object.keys(s)}.`);let i=n(()=>s[t]());if("float32"!==i.dtype)throw Error(`Error in gradient for op ${a.kernelName}. The gradient of input ${t} must have 'float32' dtype, but has '${i.dtype}'`);let o=a.inputs[t];if(!c.a(i.shape,o.shape))throw Error(`Error in gradient for op ${a.kernelName}. The gradient of input '${t}' has shape '${i.shape}', which does not match the shape of the input '${o.shape}'`);if(null==e[o.id])e[o.id]=i;else{let t=e[o.id];e[o.id]=r(t,i),t.dispose()}}}}(e,a,e=>this.tidy(e),O);let r=t.map(t=>e[t.id]);return 0===this.state.gradientDepth&&(this.state.activeTape.forEach(e=>{for(let t of e.saved)t.dispose()}),this.state.activeTape=null),{value:i,grads:r}})}customGrad(e){return c.c(c.v(e),()=>"The f passed in customGrad(f) must be a function."),(...t)=>{let n;c.c(t.every(e=>e instanceof h.a),()=>"The args passed in customGrad(f)(x1, x2,...) must all be tensors");let r={};return t.forEach((e,t)=>{r[t]=e}),this.runKernelFunc({forwardFunc:(r,i)=>(n=e(...t,i),c.c(n.value instanceof h.a,()=>"The function f passed in customGrad(f) must return an object where `obj.value` is a tensor"),c.c(c.v(n.gradFunc),()=>"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function."),n.value),backwardsFunc:(e,r)=>{let i=n.gradFunc(e,r),a=Array.isArray(i)?i:[i];c.c(a.length===t.length,()=>"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function that returns the same number of tensors as inputs passed to f(...)."),c.c(a.every(e=>e instanceof h.a),()=>"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function that returns a list of only tensors.");let o={};return a.forEach((e,t)=>{o[t]=()=>e}),o},inputs:r})}}readSync(e){return this.state.tensorInfo.get(e).backend.readSync(e)}read(e){return this.state.tensorInfo.get(e).backend.read(e)}readToGPU(e,t){return this.state.tensorInfo.get(e).backend.readToGPU(e,t)}async time(e){let t=Object(u.now)(),n=await this.backend.time(e);return n.wallMs=Object(u.now)()-t,n}track(e){return null!=this.state.activeScope&&(e.scopeId=this.state.activeScope.id,this.state.activeScope.track.push(e)),e}get registeredVariables(){return this.state.registeredVariables}reset(){for(let e in this.pendingBackendInitId++,this.state.dispose(),this.ENV.reset(),this.state=new m,this.registry)this.disposeRegisteredKernels(e),this.registry[e].dispose(),delete this.registry[e];this.backendName=null,this.backendInstance=null,this.pendingBackendInit=null}}function S(){let e=Object(a.b)();if(null==e._tfengine){let t=new i.b(e);e._tfengine=new y(t)}return Object(i.d)(e._tfengine.ENV),Object(h.g)(()=>e._tfengine),e._tfengine}y.nextTensorId=0,y.nextVariableId=0;let v=S();function O(e,t){let n={a:e,b:t};return v.runKernel(o.d,n)}},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"g",function(){return h}),n.d(t,"f",function(){return g}),n.d(t,"e",function(){return b}),n.d(t,"a",function(){return m}),n.d(t,"d",function(){return y}),n.d(t,"c",function(){return S});var r=n(150),i=n(10);function a(e,t,n,r){let a=Object(i.k)(t),u=function(e,t,n,r){let a=Object(i.O)(t),s=r[r.length-1],u=Array(s).fill(0),c=t.length,p="complex64"===n?l(e):e;if(c>1)for(let e=0;e<a/s;e++){let t=e*s;for(let e=0;e<s;e++)u[e]=Math.max(u[e],o(p[t+e],0,n).length)}return u}(e,t,n,a),c=t.length,p=function e(t,n,r,i,a,u=!0){let c="complex64"===r?2:1,p=n[0],d=n.length;if(0===d)return"complex64"===r?[o(l(t)[0],0,r)]:"bool"===r?[s(t[0])]:[t[0].toString()];if(1===d){if(p>20){let e=3*c,n=Array.from(t.slice(0,e)),i=Array.from(t.slice((p-3)*c,p*c));return"complex64"===r&&(n=l(n),i=l(i)),["["+n.map((e,t)=>o(e,a[t],r)).join(", ")+", ..., "+i.map((e,t)=>o(e,a[p-3+t],r)).join(", ")+"]"]}return["["+("complex64"===r?l(t):Array.from(t)).map((e,t)=>o(e,a[t],r)).join(", ")+"]"]}let f=n.slice(1),h=i.slice(1),g=i[0]*c,b=[];if(p>20){for(let n=0;n<3;n++){let i=n*g,o=i+g;b.push(...e(t.slice(i,o),f,r,h,a,!1))}b.push("...");for(let n=p-3;n<p;n++){let i=n*g,o=i+g;b.push(...e(t.slice(i,o),f,r,h,a,n===p-1))}}else for(let n=0;n<p;n++){let i=n*g,o=i+g;b.push(...e(t.slice(i,o),f,r,h,a,n===p-1))}let m=2===d?",":"";b[0]="["+(p>0?b[0]+m:"");for(let e=1;e<b.length-1;e++)b[e]=" "+b[e]+m;let y=",\n";for(let e=2;e<d;e++)y+="\n";
vendor: 4,780 bytes, line 1
1return b[b.length-1]=" "+b[b.length-1]+"]"+(u?"":y),b}(e,t,n,a,u),d=["Tensor"];return r&&(d.push(" dtype: "+n),d.push(" rank: "+c),d.push(` shape: [${t}]`),d.push(" values:")),d.push(p.map(e=>" "+e).join("\n")),d.join("\n")}function o(e,t,n){let r;return r=Array.isArray(e)?parseFloat(e[0].toFixed(7))+" + "+parseFloat(e[1].toFixed(7))+"j":Object(i.A)(e)?`'${e}'`:"bool"===n?s(e):parseFloat(e.toFixed(7)).toString(),Object(i.L)(r,t)}function s(e){return 0===e?"false":"true"}function l(e){let t=[];for(let n=0;n<e.length;n+=2)t.push([e[n],e[n+1]]);return t}var u=n(12);class c{constructor(e,t,n){if(this.dtype=t,this.shape=e.slice(),this.size=i.O(e),null!=n){let e=n.length;i.c(e===this.size,()=>`Length of values '${e}' does not match the size inferred by the shape '${this.size}'.`)}if("complex64"===t)throw Error("complex64 dtype TensorBuffers are not supported. Please create a TensorBuffer for the real and imaginary parts separately and call tf.complex(real, imag).");this.values=n||i.o(t,this.size),this.strides=Object(i.k)(e)}set(e,...t){0===t.length&&(t=[0]),i.c(t.length===this.rank,()=>`The number of provided coordinates (${t.length}) must match the rank (${this.rank})`);let n=this.locToIndex(t);this.values[n]=e}get(...e){0===e.length&&(e=[0]);let t=0;for(let n of e){if(n<0||n>=this.shape[t])throw Error(`Requested out of range element at ${e}. Buffer shape=`+this.shape);t++}let n=e[e.length-1];for(let t=0;t<e.length-1;++t)n+=this.strides[t]*e[t];return this.values[n]}locToIndex(e){if(0===this.rank)return 0;if(1===this.rank)return e[0];let t=e[e.length-1];for(let n=0;n<e.length-1;++n)t+=this.strides[n]*e[n];return t}indexToLoc(e){if(0===this.rank)return[];if(1===this.rank)return[e];let t=Array(this.shape.length);for(let n=0;n<t.length-1;++n)t[n]=Math.floor(e/this.strides[n]),e-=t[n]*this.strides[n];return t[t.length-1]=e,t}get rank(){return this.shape.length}toTensor(){return p().makeTensor(this.values,this.shape,this.dtype)}}let p=null,d=null,f=null;function h(e){p=e}function g(e){d=e}function b(e){f=e}class m{constructor(e,t,n,r){this.kept=!1,this.isDisposedInternal=!1,this.shape=e.slice(),this.dtype=t||"float32",this.size=i.O(e),this.strides=Object(i.k)(e),this.dataId=n,this.id=r,this.rankType=this.rank<5?this.rank.toString():"higher"}get rank(){return this.shape.length}async buffer(){let e=await this.data();return d.buffer(this.shape,this.dtype,e)}bufferSync(){return d.buffer(this.shape,this.dtype,this.dataSync())}async array(){let e=await this.data();return Object(i.U)(this.shape,e,"complex64"===this.dtype)}arraySync(){return Object(i.U)(this.shape,this.dataSync(),"complex64"===this.dtype)}async data(){this.throwIfDisposed();let e=p().read(this.dataId);if("string"===this.dtype){let t=await e;try{return t.map(e=>u.decodeString(e))}catch(e){throw Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}}return e}dataToGPU(e){return this.throwIfDisposed(),p().readToGPU(this.dataId,e)}dataSync(){this.throwIfDisposed();let e=p().readSync(this.dataId);if("string"===this.dtype)try{return e.map(e=>u.decodeString(e))}catch(e){throw Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}return e}async bytes(){this.throwIfDisposed();let e=await p().read(this.dataId);return"string"===this.dtype?e:new Uint8Array(e.buffer)}dispose(){this.isDisposed||(this.kerasMask&&this.kerasMask.dispose(),p().disposeTensor(this),this.isDisposedInternal=!0)}get isDisposed(){return this.isDisposedInternal}throwIfDisposed(){if(this.isDisposed)throw Error("Tensor is disposed.")}print(e=!1){return d.print(this,e)}clone(){return this.throwIfDisposed(),d.clone(this)}toString(e=!1){return a(this.dataSync(),this.shape,this.dtype,e)}cast(e){return this.throwIfDisposed(),d.cast(this,e)}variable(e=!0,t,n){return this.throwIfDisposed(),p().makeVariable(this,e,t,n)}}function y(){return Object(r.a)("Tensor",()=>m)}Object.defineProperty(m,Symbol.hasInstance,{value:e=>!!e&&null!=e.data&&null!=e.dataSync&&null!=e.throwIfDisposed}),y();class S extends m{constructor(e,t,n,r){super(e.shape,e.dtype,e.dataId,r),this.trainable=t,this.name=n}assign(e){if(e.dtype!==this.dtype)throw Error(`dtype of the new value (${e.dtype}) and previous value (${this.dtype}) must match`);if(!i.a(e.shape,this.shape))throw Error(`shape of the new value (${e.shape}) and previous value (${this.shape}) must match`);p().disposeTensor(this),this.dataId=e.dataId,p().incRef(this,null)}dispose(){p().disposeVariable(this),this.isDisposedInternal=!0}}Object.defineProperty(S,Symbol.hasInstance,{value:e=>e instanceof m&&null!=e.assign&&e.assign instanceof Function})},function(e,t){e.exports=__webpack_require__(63780)},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({reshape_:function(e,t){let n={x:Object(a.a)(e,"x","reshape","string_or_numeric")},o={shape:t};return r.a.runKernel(i.zc,n,o)}})},function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p});var r=n(13),i=n(28),a=n(42),o=n(39),s=n(22);function l(e,t){let n=e;if(Object(o.p)(e))return"string"===t?[]:[e.length];if(!Array.isArray(e))return[];let r=[];for(;Array.isArray(n)||Object(o.p)(n)&&"string"!==t;)r.push(n.length),n=n[0];return Array.isArray(e)&&Object(i.b)().getBool("TENSORLIKE_CHECK_SHAPE_CONSISTENCY")&&function e(t,n,r){if(r=r||[],!Array.isArray(t)&&!Object(o.p)(t))return void Object(o.b)(0===n.length,()=>`Element arr[${r.join("][")}] is a primitive, but should be an array/TypedArray of ${n[0]} elements`);Object(o.b)(n.length>0,()=>`Element arr[${r.join("][")}] should be a primitive, but is an array of ${t.length} elements`),Object(o.b)(t.length===n[0],()=>`Element arr[${r.join("][")}] should have ${n[0]} elements, but has ${t.length} elements`);let i=n.slice(1);for(let n=0;n<t.length;++n)e(t[n],i,r.concat(n))}(e,r,[]),r}function u(e,t,n,r){if("string_or_numeric"!==e){if(null==e)throw Error("Expected dtype cannot be null.");if("numeric"!==e&&e!==t||"numeric"===e&&"string"===t)throw Error(`Argument '${n}' passed to '${r}' must be ${e} tensor, but got ${t} tensor`)}}function c(e,t,n,i="numeric"){if(e instanceof a.a)return u(i,e.dtype,t,n),e;let p=Object(o.l)(e);if("string"!==p&&["bool","int32","float32"].indexOf(i)>=0&&(p=i),u(i,p,t,n),null==e||!Object(o.p)(e)&&!Array.isArray(e)&&"number"!=typeof e&&"boolean"!=typeof e&&"string"!=typeof e){let r=null==e?"null":e.constructor.name;throw Error(`Argument '${t}' passed to '${n}' must be a Tensor or TensorLike, but got '${r}'`)}let d=l(e,p);Object(o.p)(e)||Array.isArray(e)||(e=[e]);let f="string"!==p?Object(s.d)(e,p):Object(o.j)(e,[],!0);return r.a.makeTensor(f,d,p)}function p(e,t,n,r="numeric"){if(!Array.isArray(e))throw Error(`Argument ${t} passed to ${n} must be a \`Tensor[]\` or \`TensorLike[]\``);return e.map((e,i)=>c(e,`${t}[${i}]`,n,r))}},function(e,t,n){"use strict";function r(e){let t=e.length,n=0;for(;t>0;)n=Math.random()*t|0,s(e,--t,n)}function i(e,t){if(e.length!==t.length)throw Error("Array sizes must match to be shuffled together First array length was "+e.length+"Second array length was "+t.length);let n=e.length,r=0;for(;n>0;)r=Math.random()*n|0,s(e,--n,r),s(t,n,r)}function a(e,t,n){return Math.max(e,Math.min(t,n))}function o(e){return e%2==0?e:e+1}function s(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function l(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t}function u(e,t){let n=Math.random();return t*n+(1-n)*e}function c(e,t){let n=0;for(let r=0;r<e.length;r++){let i=Number(e[r])-Number(t[r]);n+=i*i}return n}function p(e,t){if(!e)throw Error("string"==typeof t?t:t())}function d(e,t,n=""){p(m(e,t),()=>n+` Shapes ${e} and ${t} must match`)}function f(e){p(null!=e,()=>"The input to the tensor constructor must be a non-null value.")}function h(e){if(0===e.length)return 1;let t=e[0];for(let n=1;n<e.length;n++)t*=e[n];return t}function g(e){return 0===e.length}function b(e,t){if(e===t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(null!==e[n]&&null!==t[n]&&e[n]!==t[n])return!1;return!0}function m(e,t){if(e===t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function y(e){return e%1==0}function S(e){if(null!=Math.tanh)return Math.tanh(e);if(e===1/0)return 1;if(e===-1/0)return -1;{let t=Math.exp(2*e);return(t-1)/(t+1)}}function v(e){let t=Math.ceil(Math.sqrt(e));return[t,Math.ceil(e/t)]}function O(e){let t=new Uint32Array(e);for(let n=0;n<e;++n)t[n]=n;return r(t),t}function x(e,t){return t<=e.length?e:e+" ".repeat(t-e.length)}function I(e,t=e=>0,n,r){return new Promise((i,a)=>{let o=0,s=()=>{if(e())return void i();let l=t(++o);null!=n&&o>=n?a():null!=r?r(s,l):setTimeout(s,l)};s()})}function N(e,t){let n=1,r=-1;for(let t=0;t<e.length;++t)if(e[t]>=0)n*=e[t];else if(-1===e[t]){if(-1!==r)throw Error(`Shapes can only have 1 implicit size. Found -1 at dim ${r} and dim ${t}`);r=t}else if(e[t]<0)throw Error(`Shapes can not be < 0. Found ${e[t]} at dim ${t}`);if(-1===r){if(t>0&&t!==n)throw Error(`Size(${t}) must match the product of shape ${e}`);return e}if(0===n)throw Error(`Cannot infer the missing size in [${e}] when there are 0 elements`);if(t%n!=0)throw Error(`The implicit shape can't be a fractional number. Got ${t} / ${n}`);let i=e.slice();return i[r]=t/n,i}function k(e,t){let n=t.length;return p((e=null==e?t.map((e,t)=>t):[].concat(e)).every(e=>e>=-n&&e<n),()=>`All values in axis param must be in range [-${n}, ${n}) but got axis `+e),p(e.every(e=>y(e)),()=>"All values in axis param must be integers but got axis "+e),e.map(e=>e<0?n+e:e)}function T(e,t){let n=[],r=[],i=null!=t&&Array.isArray(t)&&0===t.length,a=null==t||i?null:k(t,e).sort(),o=0;for(let t=0;t<e.length;
1++t){if(null!=a){if(a[o]===t&&1!==e[t])throw Error(`Can't squeeze axis ${t} since its dim '${e[t]}' is not 1`);(null==a[o]||a[o]>t)&&1===e[t]&&(n.push(e[t]),r.push(t)),a[o]<=t&&o++}1!==e[t]&&(n.push(e[t]),r.push(t))}return{newShape:n,keptDims:r}}function w(e,t){return j(e,t)}function j(e,t){let n=null;if(null==e||"float32"===e)n=new Float32Array(t);else if("int32"===e)n=new Int32Array(t);else if("bool"===e)n=new Uint8Array(t);else{if("string"!==e)throw Error("Unknown data type "+e);n=Array(t)}return n}function F(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(isNaN(r)||!isFinite(r))throw Error(`A tensor of type ${t} being uploaded contains ${r}.`)}}function _(e){return"bool"===e||"complex64"===e||"float32"===e||"int32"===e||"string"===e}function E(e,t){return"complex64"!==t&&("float32"!==t||"complex64"===e)&&("int32"!==t||"float32"===e||"complex64"===e)&&("bool"!==t||"bool"!==e)}function R(e){if("float32"===e||"int32"===e)return 4;if("complex64"===e)return 8;if("bool"===e)return 1;throw Error("Unknown dtype "+e)}function D(e){if(null==e)return 0;let t=0;return e.forEach(e=>t+=e.length),t}function C(e){return"string"==typeof e||e instanceof String}function A(e){return"boolean"==typeof e}function M(e){return"number"==typeof e}function $(e){return Array.isArray(e)?$(e[0]):e instanceof Float32Array?"float32":e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray?"int32":M(e)?"float32":C(e)?"string":A(e)?"bool":"float32"}function U(e){return!!(e&&e.constructor&&e.call&&e.apply)}function P(e,t){for(let n=t;n<e;++n)if(e%n==0)return n;return e}function B(e){let t=e.length;if(t<2)return[];let n=Array(t-1);n[t-2]=e[t-1];for(let r=t-3;r>=0;--r)n[r]=n[r+1]*e[r+1];return n}function L(e,t,n=!1){if(0===e.length)return t[0];let r=e.reduce((e,t)=>e*t)*(n?2:1);if(0===r)return[];if(r!==t.length)throw Error(`[${e}] does not match the input size ${t.length}${n?" for a complex tensor":""}.`);return function e(t,n,r,i=!1){let a=[];if(1===n.length){let e=n[0]*(i?2:1);for(let n=0;n<e;n++)a[n]=r[t+n]}else{let o=n[0],s=n.slice(1),l=s.reduce((e,t)=>e*t)*(i?2:1);for(let n=0;n<o;n++)a[n]=e(t+n*l,s,r,i)}return a}(0,e,t,n)}function W(e,t){if(Array.isArray(e))return e;if("float32"===t)return e instanceof Float32Array?e:new Float32Array(e);if("int32"===t)return e instanceof Int32Array?e:new Int32Array(e);if("bool"===t||"string"===t)return Uint8Array.from(new Int32Array(e));throw Error("Unknown dtype "+t)}function z(e,t){let n=G(e,t);for(let e=0;e<n.length;e++)n[e]=1;return n}function G(e,t){if(null==t||"float32"===t||"complex64"===t)return new Float32Array(e);if("int32"===t)return new Int32Array(e);if("bool"===t)return new Uint8Array(e);throw Error("Unknown data type "+t)}function V(e,t){let n=e.reduce((e,t)=>e*t,1);if(null==t||"float32"===t)return L(e,new Float32Array(n));if("int32"===t)return L(e,new Int32Array(n));if("bool"===t)return L(e,new Uint8Array(n));throw Error("Unknown data type "+t)}function H(e){e.forEach(t=>{p(Number.isInteger(t)&&t>=0,()=>`Tensor must have a shape comprised of positive integers but got shape [${e}].`)})}function q(e,t,n){if(0===t)return 0;if(1===t)return e[0];let r=e[e.length-1];for(let t=0;t<e.length-1;++t)r+=n[t]*e[t];return r}function K(e,t,n){if(0===t)return[];if(1===t)return[e];let r=Array(t);for(let t=0;t<r.length-1;++t)r[t]=Math.floor(e/n[t]),e-=r[t]*n[t];return r[r.length-1]=e,r}function X(e){return e&&e.then&&"function"==typeof e.then}n.d(t,"M",function(){return r}),n.d(t,"N",function(){return i}),n.d(t,"j",function(){return a}),n.d(t,"H",function(){return o}),n.d(t,"S",function(){return s}),n.d(t,"R",function(){return l}),n.d(t,"J",function(){return u}),n.d(t,"n",function(){return c}),n.d(t,"c",function(){return p}),n.d(t,"f",function(){return d}),n.d(t,"e",function(){return f}),n.d(t,"O",function(){return h}),n.d(t,"z",function(){return g}),n.d(t,"b",function(){return b}),n.d(t,"a",function(){return m}),n.d(t,"w",function(){return y}),n.d(t,"T",function(){return S}),n.d(t,"P",function(){return v}),n.d(t,"m",function(){return O}),n.d(t,"L",function(){return x}),n.d(t,"K",function(){return I}),n.d(t,"t",function(){return N}),n.d(t,"I",function(){return k}),n.d(t,"Q",function(){return T}),n.d(t,"p",function(){return w}),n.d(t,"o",function(){return j}),n.d(t,"i",function(){return F}),n.d(t,"B",function(){return _}),n.d(t,"q",function(){return E}),n.d(t,"h",function(){return R}),n.d(t,"g",function(){return D}),n.d(t,"A",function(){return C}),n.d(t,"u",function(){return A}),n.d(t,"x",function(){return M}),n.d(t,"s",function(){return $}),n.d(t,"v",function(){return U}),n.d(t,"G",function(){return P}),n.d(t,"k",function(){return B}),n.d(t,"U",function(){return L}),n.d(t,"l",function(){return W}),n.d(t,"D",function(){return z}),n.d(t,"F",function(){return G}),n.d(t,"E",function(){return V}),n.d(t,"d",function(){return H}),n.d(t,"C",function(){return q}),n.d(t,"r",function(){return K}),n.d(t,"y",function(){return X})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(29),o=n(2);let s=Object(n(4).b)({mul_:function(e,t){let n=Object(o.a)(e,"a","mul"),s=Object(o.a)(t,"b","mul");[n,s]=Object(a.makeTypesMatch)(n,s);let l={a:n,b:s};return r.a.runKernel(i.cc,l)}})},function(e,t,n){"use strict";n.r(t),n.d(t,"shuffle",function(){return a.M}),n.d(t,"shuffleCombo",function(){return a.N}),n.d(t,"clamp",function(){return a.j}),n.d(t,"nearestLargerEven",function(){return a.H}),n.d(t,"swap",function(){return a.S}),n.d(t,"sum",function(){return a.R}),n.d(t,"randUniform",function(){return a.J}),n.d(t,"distSquared",function(){return a.n}),n.d(t,"assert",function(){return a.c}),n.d(t,"assertShapesMatch",function(){return a.f}),n.d(t,"assertNonNull",function(){return a.e}),n.d(t,"sizeFromShape",function(){return a.O}),n.d(t,"isScalarShape",function(){return a.z}),n.d(t,"arraysEqualWithNull",function(){return a.b}),n.d(t,"arraysEqual",function(){return a.a}),n.d(t,"isInt",function(){return a.w}),n.d(t,"tanh",function(){return a.T}),n.d(t,"sizeToSquarishShape",function(){return a.P}),n.d(t,"createShuffledIndices",function(){return a.m}),n.d(t,"rightPad",function(){return a.L}),n.d(t,"repeatedTry",function(){return a.K}),n.d(t,"inferFromImplicitShape",function(){return a.t}),n.d(t,"parseAxisParam",function(){return a.I}),n.d(t,"squeezeShape",function(){return a.Q}),n.d(t,"getTypedArrayFromDType",function(){return a.p}
vendor: 4,150 bytes, line 1
1),n.d(t,"getArrayFromDType",function(){return a.o}),n.d(t,"checkConversionForErrors",function(){return a.i}),n.d(t,"isValidDtype",function(){return a.B}),n.d(t,"hasEncodingLoss",function(){return a.q}),n.d(t,"bytesPerElement",function(){return a.h}),n.d(t,"bytesFromStringArray",function(){return a.g}),n.d(t,"isString",function(){return a.A}),n.d(t,"isBoolean",function(){return a.u}),n.d(t,"isNumber",function(){return a.x}),n.d(t,"inferDtype",function(){return a.s}),n.d(t,"isFunction",function(){return a.v}),n.d(t,"nearestDivisor",function(){return a.G}),n.d(t,"computeStrides",function(){return a.k}),n.d(t,"toNestedArray",function(){return a.U}),n.d(t,"convertBackendValuesAndArrayBuffer",function(){return a.l}),n.d(t,"makeOnesTypedArray",function(){return a.D}),n.d(t,"makeZerosTypedArray",function(){return a.F}),n.d(t,"makeZerosNestedTypedArray",function(){return a.E}),n.d(t,"assertNonNegativeIntegerDimensions",function(){return a.d}),n.d(t,"locToIndex",function(){return a.C}),n.d(t,"indexToLoc",function(){return a.r}),n.d(t,"isPromise",function(){return a.y}),n.d(t,"hexToLong",function(){return l}),n.d(t,"fingerPrint64",function(){return S}),n.d(t,"createScalarValue",function(){return v}),n.d(t,"toTypedArray",function(){return O}),n.d(t,"now",function(){return x}),n.d(t,"fetch",function(){return I}),n.d(t,"encodeString",function(){return N}),n.d(t,"decodeString",function(){return k}),n.d(t,"isTypedArray",function(){return T}),n.d(t,"flatten",function(){return w});var r=n(24),i=n(262),a=n(10),o=n(295);let s=n.n(o).a||o;function l(e){return s.fromString(e,!0,16)}let u=l("c3a5c85c97cb3127"),c=l("b492b66fbe98f273"),p=l("9ae16a3b2f90404f");function d(e){return e.xor(e.shru(47))}function f(e,t,n){let r=e.slice(t,t+n);return s.fromBytes(Array.from(r),!0,!0)}function h(e,t){return f(e,t,8)}function g(e,t){return f(e,t,4)}function b(e,t){return 0===t?e:e.shru(t).or(e.shl(64-t))}function m(e,t,n=l("9ddfea08eb382d69")){let r=e.xor(t).mul(n);r=r.xor(r.shru(47));let i=t.xor(r).mul(n);return(i=i.xor(i.shru(47))).mul(n)}function y(e,t,n,r){return function(e,t,n,r,i,a){i=i.add(e),a=b(a.add(i).add(r),21);let o=i;return i=(i=i.add(t)).add(n),a=a.add(b(i,44)),[i.add(r),a.add(o)]}(h(e,t),h(e,t+8),h(e,t+16),h(e,t+24),n,r)}function S(e,t=e.length){let n=s.fromNumber(81,!0);if(t<=32)return t<=16?function(e,t=e.length){if(t>=8){let n=p.add(2*t),r=h(e,0).add(p),i=h(e,t-8);return m(b(i,37).mul(n).add(r),b(r,25).add(i).mul(n),n)}if(t>=4){let n=p.add(2*t);return m(g(e,0).shl(3).add(t),g(e,t-4),n)}if(t>0){let n=e[0]+(e[t>>1]<<8),r=t+(e[t-1]<<2);return d(p.mul(n).xor(u.mul(r))).mul(p)}return p}(e,t):function(e,t=e.length){let n=p.add(2*t),r=h(e,0).mul(c),i=h(e,8),a=h(e,t-8).mul(n),o=h(e,t-16).mul(p);return m(b(r.add(i),43).add(b(a,30)).add(o),r.add(b(i.add(p),18)).add(a),n)}(e,t);if(t<=64)return function(e,t=e.length){let n=p.add(2*t),r=h(e,0).mul(p),i=h(e,8),a=h(e,t-8).mul(n),o=h(e,t-16).mul(p),s=b(r.add(i),43).add(b(a,30)).add(o),l=m(s,r.add(b(i.add(p),18)).add(a),n),u=h(e,16).mul(n),c=h(e,24),d=s.add(h(e,t-32)).mul(n),f=l.add(h(e,t-24)).mul(n);return m(b(u.add(c),43).add(b(d,30)).add(f),u.add(b(c.add(r),18)).add(d),n)}(e,t);let r=n,i=n.mul(c).add(113),a=d(i.mul(p).add(113)).mul(p),o=[s.UZERO,s.UZERO],l=[s.UZERO,s.UZERO];r=r.mul(p).add(h(e,0));let f=0,v=64*(t-1>>6),O=v+(t-1&63)-63;do r=b(r.add(i).add(o[0]).add(h(e,f+8)),37).mul(c),i=b(i.add(o[1]).add(h(e,f+48)),42).mul(c),r=r.xor(l[1]),i=i.add(o[0]).add(h(e,f+40)),a=b(a.add(l[0]),33).mul(c),o=y(e,f,o[1].mul(c),r.add(l[0])),l=y(e,f+32,a.add(l[1]),i.add(h(e,f+16))),[a,r]=[r,a],f+=64;while(f!==v);let x=c.add(a.and(255).shl(1));return f=O,l[0]=l[0].add(t-1&63),o[0]=o[0].add(l[0]),l[0]=l[0].add(o[0]),r=b(r.add(i).add(o[0]).add(h(e,f+8)),37).mul(x),i=b(i.add(o[1]).add(h(e,f+48)),42).mul(x),r=r.xor(l[1].mul(9)),i=i.add(o[0].mul(9).add(h(e,f+40))),a=b(a.add(l[0]),33).mul(x),o=y(e,f,o[1].mul(x),r.add(l[0])),l=y(e,f+32,a.add(l[1]),i.add(h(e,f+16))),[a,r]=[r,a],m(m(o[0],l[0],x).add(d(i).mul(u)).add(a),m(o[1],l[1],x).add(r),x)}function v(e,t){return"string"===t?N(e):O([e],t)}function O(e,t){if("string"===t)throw Error("Cannot convert a string[] to a TypedArray");
1if(Array.isArray(e)&&(e=w(e)),Object(r.c)().getBool("DEBUG")&&a.i(e,t),function(e,t){return e instanceof Float32Array&&"float32"===t||e instanceof Int32Array&&"int32"===t||e instanceof Uint8Array&&"bool"===t}(e,t))return e;if(null==t||"float32"===t||"complex64"===t)return new Float32Array(e);if("int32"===t)return new Int32Array(e);if("bool"===t){let t=new Uint8Array(e.length);for(let n=0;n<t.length;++n)0!==Math.round(e[n])&&(t[n]=1);return t}throw Error("Unknown data type "+t)}function x(){return Object(r.c)().platform.now()}function I(e,t){return Object(r.c)().platform.fetch(e,t)}function N(e,t="utf-8"){return t=t||"utf-8",Object(r.c)().platform.encode(e,t)}function k(e,t="utf-8"){return t=t||"utf-8",Object(r.c)().platform.decode(e,t)}function T(e){return null!=Object(r.c)().platform.isTypedArray?Object(r.c)().platform.isTypedArray(e):Object(i.a)(e)}function w(e,t=[],n=!1){if(null==t&&(t=[]),"boolean"==typeof e||"number"==typeof e||"string"==typeof e||a.y(e)||null==e||T(e)&&n)t.push(e);else if(Array.isArray(e)||T(e))for(let r=0;r<e.length;++r)w(e[r],t,n);else{let r=-1;for(let t of Object.keys(e))/^([1-9]+[0-9]*|0)$/.test(t)&&(r=Math.max(r,Number(t)));for(let i=0;i<=r;i++)w(e[i],t,n)}return t}},function(e,t,n){"use strict";n.d(t,"b",function(){return S}),n.d(t,"a",function(){return v});var r=n(207),i=n(28),a=n(151),o=n(15),s=n(121),l=n(123),u=n(22),c=n(39);class p{constructor(e,t){this.backendTimer=e,this.logger=t,null==t&&(this.logger=new f)}profileKernel(e,t,n){let r,a,o=()=>{r=n()},s=u.c();if(this.backendTimer.timerAvailable())a=this.backendTimer.time(o);else{for(let e of(o(),r))e.dataSync();a=Promise.resolve({kernelMs:u.c()-s})}if(Object(i.b)().getBool("CHECK_COMPUTATION_FOR_ERRORS"))for(let t=0;t<r.length;t++){let n=r[t];n.data().then(t=>{d(t,n.dtype,e)})}return{kernelName:e,outputs:r,inputs:t,timeMs:a.then(e=>e.kernelMs),extraInfo:a.then(e=>null!=e.getExtraProfileInfo?e.getExtraProfileInfo():"")}}logKernelProfile(e){let{kernelName:t,outputs:n,timeMs:r,inputs:i,extraInfo:a}=e;n.forEach(e=>{Promise.all([e.data(),r,a]).then(n=>{this.logger.logKernelProfile(t,e,n[0],n[1],i,n[2])})})}}function d(e,t,n){if("float32"!==t)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(isNaN(r)||!isFinite(r))return console.warn(`Found ${r} in the result of '${n}'`),!0}return!1}class f{logKernelProfile(e,t,n,r,i,a){let o="number"==typeof r?c.u(r+"ms",9):r.error,s=c.u(e,25),l=t.rank,u=t.size,p=c.u(t.shape.toString(),14),d="";for(let e in i){let n=i[e];if(null!=n){let r=n.shape||t.shape,i=r.length;d+=`${e}: ${i}D ${i>0?r:""} `}}console.log(`%c${s} %c${o} %c${l}D ${p} %c${u} %c${d} %c${a}`,"font-weight:bold","color:red","color:blue","color: orange","color: green","color: steelblue")}}var h=n(42),g=n(38);function b(e){return null!=e.kernelName}class m{constructor(){this.registeredVariables={},this.nextTapeNodeId=0,this.numBytes=0,this.numTensors=0,this.numStringTensors=0,this.numDataBuffers=0,this.gradientDepth=0,this.kernelDepth=0,this.scopeStack=[],this.numDataMovesStack=[],this.nextScopeId=0,this.tensorInfo=new WeakMap,this.profiling=!1,this.activeProfile={newBytes:0,newTensors:0,peakBytes:0,kernels:[],result:null,get kernelNames(){return Array.from(new Set(this.kernels.map(e=>e.name)))}}}dispose(){for(let e in this.registeredVariables)this.registeredVariables[e].dispose()}}class y{constructor(e){this.ENV=e,this.registry={},this.registryFactory={},this.pendingBackendInitId=0,this.state=new m}async ready(){if(null!=this.pendingBackendInit)return this.pendingBackendInit.then(()=>{});if(null!=this.backendInstance)return;let e=this.getSortedBackends();for(let t=0;t<e.length;t++){let n=e[t];if(await this.initializeBackend(n).success)return void await this.setBackend(n)}throw Error("Could not initialize any backends, all backend initializations failed.")}get backend(){if(null!=this.pendingBackendInit)throw Error(`Backend '${this.backendName}' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods`);if(null==this.backendInstance){let{name:e,asyncInit:t}=this.initializeBackendsAndReturnBest();if(t)throw Error(`The highest priority backend '${e}' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods`);this.setBackend(e)}return this.backendInstance}backendNames(){return Object.keys(this.registryFactory)}findBackend(e){if(!(e in this.registry)){if(!(e in this.registryFactory))return null;{let{asyncInit:t}=this.initializeBackend(e);if(t)return null}}return this.registry[e]}findBackendFactory(e){return e in this.registryFactory?this.registryFactory[e].factory:null}registerBackend(e,t,n=1){return e in this.registryFactory?(l.a(e+" backend was already registered. Reusing existing backend factory."),!1):(this.registryFactory[e]={factory:t,priority:n},!0)}async setBackend(e){if(null==this.registryFactory[e])throw Error(`Backend name '${e}' not found in registry`);
1if(this.backendName=e,null==this.registry[e]){this.backendInstance=null;let{success:t,asyncInit:n}=this.initializeBackend(e);if(!(n?await t:t))return!1}return this.backendInstance=this.registry[e],this.setupRegisteredKernels(),this.profiler=new p(this.backendInstance),!0}setupRegisteredKernels(){Object(s.c)(this.backendName).forEach(e=>{null!=e.setupFunc&&e.setupFunc(this.backendInstance)})}disposeRegisteredKernels(e){Object(s.c)(e).forEach(t=>{null!=t.disposeFunc&&t.disposeFunc(this.registry[e])})}initializeBackend(e){let t=this.registryFactory[e];if(null==t)throw Error(`Cannot initialize backend ${e}, no registration found.`);try{let n=t.factory();if(!n||n instanceof r.a||"function"!=typeof n.then)return this.registry[e]=n,{success:!0,asyncInit:!1};{let t=++this.pendingBackendInitId,r=n.then(n=>!(t<this.pendingBackendInitId)&&(this.registry[e]=n,this.pendingBackendInit=null,!0)).catch(n=>(t<this.pendingBackendInitId||(this.pendingBackendInit=null,l.a(`Initialization of backend ${e} failed`),l.a(n.stack||n.message)),!1));return this.pendingBackendInit=r,{success:r,asyncInit:!0}}}catch(t){return l.a(`Initialization of backend ${e} failed`),l.a(t.stack||t.message),{success:!1,asyncInit:!1}}}removeBackend(e){if(!(e in this.registryFactory))throw Error(e+" backend not found in registry");this.backendName===e&&null!=this.pendingBackendInit&&this.pendingBackendInitId++,e in this.registry&&(this.disposeRegisteredKernels(e),this.registry[e].dispose(),delete this.registry[e]),delete this.registryFactory[e],this.backendName===e&&(this.pendingBackendInit=null,this.backendName=null,this.backendInstance=null)}getSortedBackends(){if(0===Object.keys(this.registryFactory).length)throw Error("No backend found in registry.");return Object.keys(this.registryFactory).sort((e,t)=>this.registryFactory[t].priority-this.registryFactory[e].priority)}initializeBackendsAndReturnBest(){let e=this.getSortedBackends();for(let t=0;t<e.length;t++){let n=e[t],{success:r,asyncInit:i}=this.initializeBackend(n);if(i||r)return{name:n,asyncInit:i}}throw Error("Could not initialize any backends, all backend initializations failed.")}moveData(e,t){let n=this.state.tensorInfo.get(t),r=n.backend,i=this.readSync(t),a=r.refCount(t);r.disposeData(t,!0),n.backend=e,e.move(t,i,n.shape,n.dtype,a),this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack[this.state.numDataMovesStack.length-1]++}tidy(e,t){let n,r=null;if(null==t){if("function"!=typeof e)throw Error("Please provide a function to tidy()");t=e}else{if("string"!=typeof e&&!(e instanceof String))throw Error("When calling with two arguments, the first argument to tidy() must be a string");if("function"!=typeof t)throw Error("When calling with two arguments, the 2nd argument to tidy() must be a function");r=e}return this.scopedRun(()=>this.startScope(r),()=>this.endScope(n),()=>((n=t())instanceof Promise&&console.error("Cannot return a Promise inside of tidy."),n))}scopedRun(e,t,n){e();try{let e=n();return t(),e}catch(e){throw t(),e}}nextTensorId(){return y.nextTensorId++}nextVariableId(){return y.nextVariableId++}clone(e){let t=v.runKernel(o.s,{x:e}),n={x:e};return this.addTapeNode(this.state.activeScope.name,n,[t],e=>({x:()=>{let t={x:e},n={dtype:"float32"};return v.runKernel(o.e,t,n)}}),[],{}),t}runKernel(e,t,n){if(null==this.backendName&&this.backend,null==Object(s.b)(e,this.backendName))throw Error(`Kernel '${e}' not registered for backend '${this.backendName}'`);return this.runKernelFunc({kernelName:e,inputs:t,attrs:n})}shouldCheckForMemLeaks(){return this.ENV.getBool("IS_TEST")}checkKernelForMemLeak(e,t,n){let r=this.backend.numDataIds(),i=0;n.forEach(e=>{i+="complex64"===e.dtype?3:1});let a=this.state.numDataMovesStack[this.state.numDataMovesStack.length-1],o=r-t-i-a;if(o>0)throw Error(`Backend '${this.backendName}' has an internal memory leak (${o} data ids) after running '${e}'`)}runKernelFunc(e){let t,n,r,i,a=[],o=this.isTapeOn(),l=this.state.numBytes,u=this.state.numTensors;this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack.push(0),null==this.backendName&&this.backend;let p=b(e)?e.kernelName:null!=this.state.activeScope?this.state.activeScope.name:"";if(b(e)){let{kernelName:r,inputs:i,attrs:l}=e;null==this.backendName&&this.backend;let u=Object(s.b)(r,this.backendName);c.b(null!=u,()=>`Cannot find registered kernel '${r}' for backend '${this.backendName}'`),t=()=>{let e=this.backend.numDataIds(),t=Array.isArray(n=u.kernelFunc({input
1s:i,attrs:l,backend:this.backend}))?n:[n];this.shouldCheckForMemLeaks()&&this.checkKernelForMemLeak(r,e,t);let s=t.map(e=>null!=e.rank?e:this.makeTensorFromTensorInfo(e));if(o){let e=this.getTensorsForGradient(r,i,s);a=this.saveTensorsForBackwardMode(e)}return s}}else{let{forwardFunc:r}=e,i=e=>{o&&(a=e.map(e=>this.keep(this.clone(e))))};t=()=>{let e=this.backend.numDataIds(),t=Array.isArray(n=this.tidy(()=>r(this.backend,i)))?n:[n];return this.shouldCheckForMemLeaks()&&this.checkKernelForMemLeak(p,e,t),t}}let{inputs:d,attrs:f}=e,h=b(e)?null:e.backwardsFunc;return this.scopedRun(()=>this.state.kernelDepth++,()=>this.state.kernelDepth--,()=>{this.ENV.getBool("DEBUG")||this.state.profiling?(r=this.profiler.profileKernel(p,d,()=>t()),this.ENV.getBool("DEBUG")&&this.profiler.logKernelProfile(r),i=r.outputs):i=t()}),o&&this.addTapeNode(p,d,i,h,a,f),this.state.profiling&&this.state.activeProfile.kernels.push({name:p,bytesAdded:this.state.numBytes-l,totalBytesSnapshot:this.state.numBytes,tensorsAdded:this.state.numTensors-u,totalTensorsSnapshot:this.state.numTensors,inputShapes:Object.keys(d).map(e=>null!=d[e]?d[e].shape:null),outputShapes:i.map(e=>e.shape),kernelTimeMs:r.timeMs,extraInfo:r.extraInfo}),Array.isArray(n)?i:i[0]}saveTensorsForBackwardMode(e){return e.map(e=>this.keep(this.clone(e)))}getTensorsForGradient(e,t,n){let r=Object(s.a)(e);if(null!=r){let e,i=r.inputsToSave||[],a=r.outputsToSave||[];r.saveAllInputs?(c.b(Array.isArray(t),()=>"saveAllInputs is true, expected inputs to be an array."),e=Object.keys(t).map(e=>t[e])):e=i.map(e=>t[e]);let o=n.filter((e,t)=>a[t]);return e.concat(o)}return[]}makeTensor(e,t,n,r){if(null==e)throw Error("Values passed to engine.makeTensor() are null");n=n||"float32",r=r||this.backend;let i=e;"string"===n&&c.o(e[0])&&(i=e.map(e=>u.b(e)));let a=r.write(i,t,n),o=new h.a(t,n,a,this.nextTensorId());if(this.trackTensor(o,r),"string"===n){let e=this.state.tensorInfo.get(a),t=Object(c.f)(i);this.state.numBytes+=t-e.bytes,e.bytes=t}return o}makeTensorFromDataId(e,t,n,r){let i={dataId:e,shape:t,dtype:n=n||"float32"};return this.makeTensorFromTensorInfo(i,r)}makeTensorFromTensorInfo(e,t){let{dataId:n,shape:r,dtype:i}=e,a=new h.a(r,i,n,this.nextTensorId());return this.trackTensor(a,t),a}makeVariable(e,t=!0,n,r){n=n||this.nextVariableId().toString(),null!=r&&r!==e.dtype&&(e=e.cast(r));let i=new h.c(e,t,n,this.nextTensorId());if(null!=this.state.registeredVariables[i.name])throw Error(`Variable with name ${i.name} was already registered`);return this.state.registeredVariables[i.name]=i,this.incRef(i,this.backend),i}trackTensor(e,t){this.state.numTensors++,"string"===e.dtype&&this.state.numStringTensors++;let n=0;"complex64"!==e.dtype&&"string"!==e.dtype&&(n=e.size*c.g(e.dtype)),this.state.numBytes+=n,this.state.tensorInfo.has(e.dataId)||(this.state.numDataBuffers++,this.state.tensorInfo.set(e.dataId,{backend:t||this.backend,dtype:e.dtype,shape:e.shape,bytes:n})),e instanceof h.c||this.track(e)}incRef(e,t){this.trackTensor(e,t),this.backend.incRef(e.dataId)}removeDataId(e,t){this.state.tensorInfo.has(e)&&this.state.tensorInfo.get(e).backend===t&&(this.state.tensorInfo.delete(e),this.state.numDataBuffers--)}disposeTensor(e){if(!this.state.tensorInfo.has(e.dataId))return;let t=this.state.tensorInfo.get(e.dataId);if(this.state.numTensors--,"string"===e.dtype&&(this.state.numStringTensors--,this.state.numBytes-=t.bytes),"complex64"!==e.dtype&&"string"!==e.dtype){let t=e.size*c.g(e.dtype);this.state.numBytes-=t}t.backend.disposeData(e.dataId)&&this.removeDataId(e.dataId,t.backend)}disposeVariables(){for(let e in this.state.registeredVariables){let t=this.state.registeredVariables[e];this.disposeVariable(t)}}disposeVariable(e){this.disposeTensor(e),null!=this.state.registeredVariables[e.name]&&delete this.state.registeredVariables[e.name]}memory(){let e=this.backend.memory();return e.numTensors=this.state.numTensors,e.numDataBuffers=this.state.numDataBuffers,e.numBytes=this.state.numBytes,this.state.numStringTensors>0&&(e.unreliable=!0,null==e.reasons&&(e.reasons=[]),e.reasons.push("Memory usage by string tensors is approximate (2 bytes per character)")),e}async profile(e){this.state.profiling=!0;let t=this.state.numBytes,n=this.state.numTensors;for(let r of(this.state.activeProfile.kernels=[],this.state.activeProfile.result=await e(),this.state.profiling=!1,this.state.activeProfile.peakBytes=Math.max(...this.state.activeProfile.kernels.map(e=>e.totalBytesSnapshot)),this.state.activeProfile.newBytes=this.state.numBytes-t,this.state.activeProfile.newTensors=this.state.numTensors-n,this.state.activeProfile.kernels))r.kernelTimeMs=await r.kernelTimeMs,r.extraInfo=await r.extraInfo;return this.state.activeProfile}isTapeOn(){return this.state.gradientDepth>
10&&0===this.state.kernelDepth}addTapeNode(e,t,n,r,i,a){let o={id:this.state.nextTapeNodeId++,kernelName:e,inputs:t,outputs:n,saved:i},l=Object(s.a)(e);null!=l&&(r=l.gradFunc),null!=r&&(o.gradient=e=>(e=e.map((e,t)=>{if(null==e){let e=n[t],r=c.s(e.size,e.dtype);return this.makeTensor(r,e.shape,e.dtype)}return e}),r(e.length>1?e:e[0],i,a))),this.state.activeTape.push(o)}keep(e){return e.kept=!0,e}startTape(){0===this.state.gradientDepth&&(this.state.activeTape=[]),this.state.gradientDepth++}endTape(){this.state.gradientDepth--}startScope(e){let t={track:[],name:"unnamed scope",id:this.state.nextScopeId++};e&&(t.name=e),this.state.scopeStack.push(t),this.state.activeScope=t}endScope(e){let t=Object(g.a)(e),n=new Set(t.map(e=>e.id));for(let e=0;e<this.state.activeScope.track.length;e++){let t=this.state.activeScope.track[e];t.kept||n.has(t.id)||t.dispose()}let r=this.state.scopeStack.pop();this.state.activeScope=0===this.state.scopeStack.length?null:this.state.scopeStack[this.state.scopeStack.length-1],t.forEach(e=>{e.kept||e.scopeId!==r.id||this.track(e)})}gradients(e,t,n,r=!1){if(c.b(t.length>0,()=>"gradients() received an empty list of xs."),null!=n&&"float32"!==n.dtype)throw Error(`dy must have 'float32' dtype, but has '${n.dtype}'`);let i=this.scopedRun(()=>this.startTape(),()=>this.endTape(),()=>this.tidy("forward",e));c.b(i instanceof h.a,()=>"The result y returned by f() must be a tensor.");let a=function(e,t,n){let r={},i={};for(let e=0;e<t.length;e++)r[t[e].id]=!0;for(let n=0;n<e.length;n++){let a=e[n],o=a.inputs;for(let e in o){let n=o[e],s=!1;for(let e=0;e<t.length;e++)if(r[n.id]){a.outputs.forEach(e=>r[e.id]=!0),s=!0,i[a.id]=!0;break}if(s)break}}let a={};a[n.id]=!0;let o={};for(let t=e.length-1;t>=0;t--){let n=e[t],r=n.inputs;for(let e=0;e<n.outputs.length;e++)if(a[n.outputs[e].id]){for(let e in r)a[r[e].id]=!0,o[n.id]=!0;break}}let s=[];for(let t=0;t<e.length;t++){let n=e[t];if(i[n.id]&&o[n.id]){let e={};for(let t in n.inputs){let i=n.inputs[t];r[i.id]&&(e[t]=i)}let t=Object.assign({},n);t.inputs=e,t.outputs=n.outputs,s.push(t)}}return s}(this.state.activeTape,t,i);if(!r&&0===a.length&&t.length>0)throw Error("Cannot compute gradient of y=f(x) with respect to x. Make sure that the f you passed encloses all operations that lead from x to y.");return this.tidy("backward",()=>{let e={};e[i.id]=null==n?function(e){let t=Object(c.r)(Object(c.v)(e),"float32");return v.makeTensor(t,e,"float32")}(i.shape):n,function(e,t,n,r){for(let i=t.length-1;i>=0;i--){let a=t[i],o=[];if(a.outputs.forEach(t=>{let n=e[t.id];null!=n?o.push(n):o.push(null)}),null==a.gradient)throw Error(`Cannot compute gradient: gradient function not found for ${a.kernelName}.`);let s=a.gradient(o);for(let t in a.inputs){if(!(t in s))throw Error(`Cannot backprop through input ${t}. Available gradients found: ${Object.keys(s)}.`);let i=n(()=>s[t]());if("float32"!==i.dtype)throw Error(`Error in gradient for op ${a.kernelName}. The gradient of input ${t} must have 'float32' dtype, but has '${i.dtype}'`);let o=a.inputs[t];if(!c.a(i.shape,o.shape))throw Error(`Error in gradient for op ${a.kernelName}. The gradient of input '${t}' has shape '${i.shape}', which does not match the shape of the input '${o.shape}'`);if(null==e[o.id])e[o.id]=i;else{let t=e[o.id];e[o.id]=r(t,i),t.dispose()}}}}(e,a,e=>this.tidy(e),O);let r=t.map(t=>e[t.id]);return 0===this.state.gradientDepth&&(this.state.activeTape.forEach(e=>{for(let t of e.saved)t.dispose()}),this.state.activeTape=null),{value:i,grads:r}})}customGrad(e){return c.b(c.m(e),()=>"The f passed in customGrad(f) must be a function."),(...t)=>{let n;c.b(t.every(e=>e instanceof h.a),()=>"The args passed in customGrad(f)(x1, x2,...) must all be tensors");let r={};return t.forEach((e,t)=>{r[t]=e}),this.runKernelFunc({forwardFunc:(r,i)=>(n=e(...t,i),c.b(n.value instanceof h.a,()=>"The function f passed in customGrad(f) must return an object where `obj.value` is a tensor"),c.b(c.m(n.gradFunc),()=>"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function."),n.value),backwardsFunc:(e,r)=>{let i=n.gradFunc(e,r),a=Array.isArray(i)?i:[i];c.b(a.length===t.length,()=>"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function that returns the same number of tensors as inputs passed to f(...)."),c.b(a.every(e=>e instanceof h.a),()=>"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function that returns a list of only tensors.");let o={};return a.forEach((e,t)=>{o[t]=()=>e}),o},inputs:r})}}readSync(e){return this.state.tensorInfo.get(e).backend.readSync(e)}read(e){return this.state.tensorInfo.get(e).backend.read(e)}readToGPU(e,t){return this.state.tensorInfo.get(e).backend.readToGPU(e,t)}async time(e){let t=Object(u.c)(),n=await this.backend.time(e);return n.wallMs=Object(u.c)()-t,n}track(e){return null!=this.state.activeScope&&(e.scopeId=this.state.activeScope.id,this.state.activeScope.track.push(e)),e}get registeredVariables(){return this.state.registeredVariables}reset(){for(let e in this.pendingBackendInitId++,this.state.dispose(),this.ENV.reset(),this.state=new m,this.registry)this.disposeRegisteredKernels(e),this.registry[e].dispose(),delete this.registry[e];this.backendName=null,this.backendInstance=null,this.pendingBackendInit=null}}function S(){let e=Object(a.b)();if(null==e._tfengine){let t=new i.a(e);e._tfengine=new y(t)}return Object(i.c)(e._tfengine.ENV),Object(h.f)(()=>e._tfengine),e._tfengine}y.nextTensorId=0,y.nextVariableId=0;let v=S();function O(e,t){let n={a:e,b:t};return v.runKernel(o.b,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(13),i=n(39);function a(e){let t=Object.keys(e);if(1!==t.length)throw Error("Please provide an object with a single key (operation name) mapping to a function. Got an object with "+t.length+" keys.");let n=t[0],a=e[n];n.endsWith("_")&&(n=n.substring(0,n.length-1));let o=(...e)=>{r.a.startScope(n);try{let t=a(...e);return Object(i.n)(t)&&console.error("Cannot return a Promise inside of tidy."),r.a.endScope(t),t}catch(e){throw r.a.endScope(null),e}};return Object.defineProperty(o,"name",{value:n+="__op",configurable:!0}),o}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return o}
1),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return c}),n.d(t,"i",function(){return p}),n.d(t,"M",function(){return d}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return h}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return b}),n.d(t,"n",function(){return m}),n.d(t,"o",function(){return y}),n.d(t,"p",function(){return S}),n.d(t,"q",function(){return v}),n.d(t,"s",function(){return O}),n.d(t,"r",function(){return x}),n.d(t,"t",function(){return I}),n.d(t,"u",function(){return N}),n.d(t,"v",function(){return k}),n.d(t,"w",function(){return T}),n.d(t,"x",function(){return w}),n.d(t,"y",function(){return j}),n.d(t,"z",function(){return F}),n.d(t,"A",function(){return _}),n.d(t,"B",function(){return E}),n.d(t,"C",function(){return R}),n.d(t,"D",function(){return D}),n.d(t,"H",function(){return C}),n.d(t,"E",function(){return A}),n.d(t,"F",function(){return M}),n.d(t,"G",function(){return $}),n.d(t,"I",function(){return U}),n.d(t,"J",function(){return P}),n.d(t,"K",function(){return B}),n.d(t,"L",function(){return L}),n.d(t,"N",function(){return W}),n.d(t,"O",function(){return z}),n.d(t,"Q",function(){return G}),n.d(t,"P",function(){return V}),n.d(t,"R",function(){return H}),n.d(t,"T",function(){return q}),n.d(t,"U",function(){return K}),n.d(t,"V",function(){return X}),n.d(t,"bb",function(){return Y}),n.d(t,"hb",function(){return Q}),n.d(t,"ab",function(){return J}),n.d(t,"W",function(){return Z}),n.d(t,"X",function(){return ee}),n.d(t,"Y",function(){return et}),n.d(t,"Z",function(){return en}),n.d(t,"cb",function(){return er}),n.d(t,"db",function(){return ei}),n.d(t,"eb",function(){return ea}),n.d(t,"fb",function(){return eo}),n.d(t,"gb",function(){return es}),n.d(t,"ib",function(){return el}),n.d(t,"jb",function(){return eu}),n.d(t,"kb",function(){return ec}),n.d(t,"lb",function(){return ep}),n.d(t,"mb",function(){return ed}),n.d(t,"S",function(){return ef});let r="Abs",i="Add",a="BatchMatMul",o="Bincount",s="Cast",l="Complex",u="ComplexAbs",c="Concat",p="CropAndResize",d="RealDiv",f="Exp",h="ExpandDims",g="FFT",b="Fill",m="FlipLeftRight",y="FloorDiv",S="Greater",v="GreaterEqual",O="Identity",x="IFFT",I="Imag",N="LessEqual",k="Log",T="Log1p",w="LogicalAnd",j="Max",F="Mean",_="Min",E="Minimum",R="Multiply",D="Neg",C="NotEqual",A="NonMaxSuppressionV3",M="NonMaxSuppressionV4",$="NonMaxSuppressionV5",U="Pack",P="Pow",B="Range",L="Real",W="Relu",z="Reshape",G="ResizeNearestNeighbor",V="ResizeBilinear",H="Reverse",q="Round",K="Select",X="Slice",Y="Sqrt",Q="Sum",J="SplitV",Z="SparseFillEmptyRows",ee="SparseReshape",et="SparseSegmentMean",en="SparseSegmentSum",er="SquaredDifference",ei="StringNGrams",ea="StringSplit",eo="StringToHashBucketFast",es="Sub",el="Tile",eu="Transform",ec="Transpose",ep="Unpack",ed="ZerosLike",ef="RotateWithOffset"},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({cast_:function(e,t){let n=Object(a.a)(e,"x","cast");if(!o.B(t))throw Error("Failed to cast to unknown dtype "+t);if("string"===t&&"string"!==n.dtype||"string"!==t&&"string"===n.dtype)throw Error("Only strings can be casted to strings");let s={x:n},l={dtype:t};return r.a.runKernel(i.y,s,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(29),o=n(2);let s=Object(n(4).b)({add_:function(e,t){let n=Object(o.a)(e,"a","add"),s=Object(o.a)(t,"b","add");[n,s]=Object(a.makeTypesMatch)(n,s);let l={a:n,b:s};return r.a.runKernel(i.d,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(29),o=n(2);let s=Object(n(4).b)({sub_:function(e,t){let n=Object(o.a)(e,"a","sub"),s=Object(o.a)(t,"b","sub");[n,s]=Object(a.makeTypesMatch)(n,s);let l={a:n,b:s};return r.a.runKernel(i.jd,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(166);let l=Object(n(4).b)({div_:function(e,t){let n=Object(o.a)(e,"a","div"),l=Object(o.a)(t,"b","div");if([n,l]=Object(a.makeTypesMatch)(n,l),"int32"===n.dtype&&"int32"===l.dtype)return Object(s.a)(n,l);let u={a:n,b:l};return r.a.runKernel(i.vc,u,{})}})},function(e,t,n){"use strict";function r(e,t){let n=e.length,r=[];for(let i=0;i<n;i++){let a=n-1-i,o=e[a]||1;(t[t.length-1-i]||1)>1&&1===o&&r.unshift(a)}return r}function i(e,t){let n=[];for(let r=0;r<t.length;r++){let i=e[e.length-r-1],a=t.length-r-1,o=t[a];(null==i||1===i&&o>1)&&n.unshift(a)}return n}function a(e,t){let n=Math.max(e.length,t.length),r=Array(n);for(let i=0;i<n;i++){let a=e[e.length-i-1];null==a&&(a=1);let o=t[t.length-i-1];if(null==o&&(o=1),1===a)r[n-i-1]=o;else if(1===o)r[n-i-1]=a;else{if(a!==o)throw Error(`Operands could not be broadcast together with shapes ${e} and ${t}.`);r[n-i-1]=a}}return r}n.r(t),n.d(t,"getBroadcastDims",function(){return r}),n.d(t,"getReductionAxes",function(){return i}),n.d(t,"assertAndGetBroadcastShape",function(){return a})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(16);let s=Object(n(4).b)({sum_:function(e,t=null,n=!1){let s=Object(a.a)(e,"x","sum");"bool"===s.dtype&&(s=Object(o.a)(s,"int32"));let l={x:s},u={axis:t,keepDims:n};return r.a.runKernel(i.kd,l,u)}})},function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"c",function(){return o}
1),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return l});var r=n(28),i=n(39);function a(e,t){if("string"===t)throw Error("Cannot convert a string[] to a TypedArray");if(Array.isArray(e)&&(e=i.j(e)),Object(r.b)().getBool("DEBUG")&&i.h(e,t),function(e,t){return e instanceof Float32Array&&"float32"===t||e instanceof Int32Array&&"int32"===t||e instanceof Uint8Array&&"bool"===t}(e,t))return e;if(null==t||"float32"===t||"complex64"===t)return new Float32Array(e);if("int32"===t)return new Int32Array(e);if("bool"===t){let t=new Uint8Array(e.length);for(let n=0;n<t.length;++n)0!==Math.round(e[n])&&(t[n]=1);return t}throw Error("Unknown data type "+t)}function o(){return Object(r.b)().platform.now()}function s(e,t="utf-8"){return t=t||"utf-8",Object(r.b)().platform.encode(e,t)}function l(e,t="utf-8"){return t=t||"utf-8",Object(r.b)().platform.decode(e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(12),i=n(71);function a(e,t){if((Object(r.isTypedArray)(e)&&"string"!==t||Array.isArray(e))&&"complex64"!==t)throw Error("Error creating a new Scalar: value must be a primitive (number|boolean|string)");if("string"===t&&Object(r.isTypedArray)(e)&&!(e instanceof Uint8Array))throw Error("When making a scalar from encoded string, the value must be `Uint8Array`.");return Object(i.a)(e,[],[],t)}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return l});var r=n(10);class i{constructor(e){this.global=e,this.flags={},this.flagRegistry={},this.urlFlags={},this.getQueryParams=a,this.populateURLFlags()}setPlatform(e,t){null!=this.platform&&(o().getBool("IS_TEST")||o().getBool("PROD")||console.warn(`Platform ${this.platformName} has already been set. Overwriting the platform with ${e}.`)),this.platformName=e,this.platform=t}registerFlag(e,t,n){if(this.flagRegistry[e]={evaluationFn:t,setHook:n},null!=this.urlFlags[e]){let t=this.urlFlags[e];o().getBool("IS_TEST")||o().getBool("PROD")||console.warn(`Setting feature override from URL ${e}: ${t}.`),this.set(e,t)}}async getAsync(e){return e in this.flags||(this.flags[e]=await this.evaluateFlag(e)),this.flags[e]}get(e){if(e in this.flags)return this.flags[e];let t=this.evaluateFlag(e);if(Object(r.y)(t))throw Error(`Flag ${e} cannot be synchronously evaluated. Please use getAsync() instead.`);return this.flags[e]=t,this.flags[e]}getNumber(e){return this.get(e)}getBool(e){return this.get(e)}getString(e){return this.get(e)}getFlags(){return this.flags}get features(){return this.flags}set(e,t){if(null==this.flagRegistry[e])throw Error(`Cannot set flag ${e} as it has not been registered.`);this.flags[e]=t,null!=this.flagRegistry[e].setHook&&this.flagRegistry[e].setHook(t)}evaluateFlag(e){if(null==this.flagRegistry[e])throw Error(`Cannot evaluate flag '${e}': no evaluation function found.`);return this.flagRegistry[e].evaluationFn()}setFlags(e){this.flags=Object.assign({},e)}reset(){this.flags={},this.urlFlags={},this.populateURLFlags()}populateURLFlags(){if(void 0===this.global||void 0===this.global.location||void 0===this.global.location.search)return;let e=this.getQueryParams(this.global.location.search);"tfjsflags"in e&&e.tfjsflags.split(",").forEach(e=>{let[t,n]=e.split(":");this.urlFlags[t]=function(e,t){let n=t.toLowerCase();return"true"===n||"false"===n?"true"===n:""+ +n===n?+n:t}(0,n)})}}function a(e){let t={};return e.replace(/[?&]([^=?&]+)(?:=([^&]*))?/g,(e,...n)=>((function(e,t,n){e[decodeURIComponent(t)]=decodeURIComponent(n||"")})(t,n[0],n[1]),n.join("="))),t}function o(){return s}let s=null;function l(e){s=e}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({zerosLike_:function(e){let t={x:Object(a.a)(e,"x","zerosLike")};return r.a.runKernel(i.wd,t)}})},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"k",function(){return h}),n.d(t,"i",function(){return g}),n.d(t,"j",function(){return b}),n.d(t,"h",function(){return m}),n.d(t,"a",function(){return y});var r=n(10);function i(e,t,n,r,a="NHWC",o){return s(e,[...t,e[3]],n,o,r,null,null,m(a))}function a(e,t,n,r,i,o,l="channelsLast"){let u,[p,d]=c(t);
1if("channelsLast"===l)u=[p,d,e[3],e[3]];else{if("channelsFirst"!==l)throw Error("Unknown dataFormat "+l);u=[p,d,e[1],e[1]]}return s(e,u,n,r,i,o,!1,l)}function o(e,t,n,r,i,a,s="NDHWC"){let u,c,[d,f,h]=p(t);if("NDHWC"===s)c="channelsLast",u=[d,f,h,e[4],e[4]];else{if("NCDHW"!==s)throw Error("Unknown dataFormat "+s);c="channelsFirst",u=[d,f,h,e[1],e[1]]}return l(e,u,n,r,i,!1,c,a)}function s(e,t,n,r,i,a,o=!1,l="channelsLast"){let p,[h,g,b,m]=[-1,-1,-1,-1];if("channelsLast"===l)[h,g,b,m]=e;else{if("channelsFirst"!==l)throw Error("Unknown dataFormat "+l);[h,m,g,b]=e}let[y,S,,v]=t,[O,x]=c(n),[I,N]=c(r),k=d(y,I),T=d(S,N),{padInfo:w,outHeight:j,outWidth:F}=function(e,t,n,r,i,a,o,s,l){let c,p,d;if("number"==typeof e){c={top:e,bottom:e,left:e,right:e,type:0===e?"VALID":"NUMBER"};let i=function(e,t,n,r,i){null==r&&(r=u(e,t,n));let a=e[0],o=e[1];return[f((a-t+2*r)/n+1,i),f((o-t+2*r)/n+1,i)]}([t,n],a,r,e,s);p=i[0],d=i[1]}else if("same"===e){p=Math.ceil(t/r),d=Math.ceil(n/i);let e=Math.max(0,(p-1)*r+a-t),s=Math.max(0,(d-1)*i+o-n),l=Math.floor(e/2),u=e-l,f=Math.floor(s/2);c={top:l,bottom:u,left:f,right:s-f,type:"SAME"}}else if("valid"===e)c={top:0,bottom:0,left:0,right:0,type:"VALID"},p=Math.ceil((t-a+1)/r),d=Math.ceil((n-o+1)/i);else{if("object"!=typeof e)throw Error("Unknown padding parameter: "+e);{let u="channelsLast"===l?e[1][0]:e[2][0],h="channelsLast"===l?e[1][1]:e[2][1],g="channelsLast"===l?e[2][0]:e[3][0],b="channelsLast"===l?e[2][1]:e[3][1];c={top:u,bottom:h,left:g,right:b,type:0===u&&0===h&&0===g&&0===b?"VALID":"EXPLICIT"},p=f((t-a+u+h)/r+1,s),d=f((n-o+g+b)/i+1,s)}}return{padInfo:c,outHeight:p,outWidth:d}}(i,g,b,O,x,k,T,a,l),_=o?v*m:v;return"channelsFirst"===l?p=[h,_,j,F]:"channelsLast"===l&&(p=[h,j,F,_]),{batchSize:h,dataFormat:l,inHeight:g,inWidth:b,inChannels:m,outHeight:j,outWidth:F,outChannels:_,padInfo:w,strideHeight:O,strideWidth:x,filterHeight:y,filterWidth:S,effectiveFilterHeight:k,effectiveFilterWidth:T,dilationHeight:I,dilationWidth:N,inShape:e,outShape:p,filterShape:t}}function l(e,t,n,r,i,a=!1,o="channelsLast",s){let c,[h,g,b,m,y]=[-1,-1,-1,-1,-1];if("channelsLast"===o)[h,g,b,m,y]=e;else{if("channelsFirst"!==o)throw Error("Unknown dataFormat "+o);[h,y,g,b,m]=e}let[S,v,O,,x]=t,[I,N,k]=p(n),[T,w,j]=p(r),F=d(S,T),_=d(v,w),E=d(O,j),{padInfo:R,outDepth:D,outHeight:C,outWidth:A}=function(e,t,n,r,i,a,o,s,l,c,p){let d,h,g,b;if("valid"===e&&(e=0),"number"==typeof e){d={top:e,bottom:e,left:e,right:e,front:e,back:e,type:0===e?"VALID":"NUMBER"};let m=function(e,t,n,r,i,a){null==i&&(i=u(e,t[0],r[0]));let o=[0,0,0,1];for(let n=0;n<3;n++)e[n]+2*i>=t[n]&&(o[n]=f((e[n]-t[n]+2*i)/r[n]+1,a));return o}([t,n,r,1],[s,l,c],0,[i,a,o],e,p);h=m[0],g=m[1],b=m[2]}else{if("same"!==e)throw Error("Unknown padding parameter: "+e);{h=Math.ceil(t/i),g=Math.ceil(n/a),b=Math.ceil(r/o);let e=(h-1)*i+s-t,u=(g-1)*a+l-n,p=(b-1)*o+c-r,f=Math.floor(e/2),m=e-f,y=Math.floor(u/2),S=u-y,v=Math.floor(p/2);d={top:y,bottom:S,left:v,right:p-v,front:f,back:m,type:"SAME"}}}return{padInfo:d,outDepth:h,outHeight:g,outWidth:b}}(i,g,b,m,I,N,k,F,_,E,s),M=a?x*y:x;return"channelsFirst"===o?c=[h,M,D,C,A]:"channelsLast"===o&&(c=[h,D,C,A,M]),{batchSize:h,dataFormat:o,inDepth:g,inHeight:b,inWidth:m,inChannels:y,outDepth:D,outHeight:C,outWidth:A,outChannels:M,padInfo:R,strideDepth:I,strideHeight:N,strideWidth:k,filterDepth:S,filterHeight:v,filterWidth:O,effectiveFilterDepth:F,effectiveFilterHeight:_,effectiveFilterWidth:E,dilationDepth:T,dilationHeight:w,dilationWidth:j,inShape:e,outShape:c,filterShape:t}}function u(e,t,n,r=1){let i=d(t,r);return Math.floor((e[0]*(n-1)-n+i)/2)}function c(e){return"number"==typeof e?[e,e,e]:2===e.length?[e[0],e[1],1]:e}function p(e){return"number"==typeof e?[e,e,e]:e}function d(e,t){return t<=1?e:e+(e-1)*(t-1)}function f(e,t){if(!t)return Math.trunc(e);switch(t){case"round":return Math.round(e);case"ceil":return Math.ceil(e);case"floor":return Math.floor(e);default:throw Error("Unknown roundingMode "+t)}}function h(e){let[t,n,r]=c(e);return 1===t&&1===n&&1===r}function g(e,t){return h(e)||h(t)}function b(e){return c(e).every(e=>e>0)}function m(e){if("NHWC"===e)return"channelsLast";if("NCHW"===e)return"channelsFirst";throw Error("Unknown dataFormat "+e)}function y(e,t,n){if(null!=n){if("string"==typeof t)throw Error(`Error in ${e}: pad must be an integer when using dimRoundingMode ${n} but got pad ${t}.`);if("number"==typeof t)r.c(r.w(t),()=>`Error in ${e}: pad must be an integer when using dimRoundingMode ${n} but got pad ${t}.`);else{if("object"!=typeof t)throw Error(`Error in ${e}: Unknown padding parameter: ${t}`);t.forEach(t=>{t.forEach(t=>{r.c(r.w(t),()=>`Error in ${e}: pad must be an integer when using dimRoundingMode ${n} but got pad ${t}.`)})})}}}},function(e,t,n){"use strict";n.d(t,"b",function(){return i.a}),n.d(t,"c",function(){return a.a}),n.d(t,"d",function(){return o.a}),n.d(t,"e",function(){return s.a}),n.d(t,"f",function(){return f}),n.d(t,"g",function(){return h.a}),n.d(t,"h",function(){return g.a}),n.d(t,"i",function(){return b.a}),n.d(t,"j",function(){return m.a}),n.d(t,"k",function(){return y.a}),n.d(t,"l",function(){return S.a}),n.d(t,"m",function(){return v.a}),n.d(t,"n",function(){return O.a}),n.d(t,"o",function(){return x.a}),n.d(t,"p",function(){return I.a}),n.d(t,"q",function(){return w}),n.d(t,"r",function(){return C}),n.d(t,"w",function(){return A.a}),n.d(t,"s",function(){return M.a}
1),n.d(t,"t",function(){return $}),n.d(t,"u",function(){return U}),n.d(t,"v",function(){return P}),n.d(t,"x",function(){return B}),n.d(t,"y",function(){return L}),n.d(t,"A",function(){return W}),n.d(t,"B",function(){return z.a}),n.d(t,"C",function(){return G.a}),n.d(t,"D",function(){return N.a}),n.d(t,"E",function(){return V.a}),n.d(t,"F",function(){return H.a}),n.d(t,"G",function(){return q.a}),n.d(t,"H",function(){return K.a}),n.d(t,"I",function(){return j.a}),n.d(t,"J",function(){return X}),n.d(t,"K",function(){return Y}),n.d(t,"L",function(){return Q}),n.d(t,"M",function(){return J}),n.d(t,"N",function(){return Z.a}),n.d(t,"O",function(){return ee.a}),n.d(t,"P",function(){return et.a}),n.d(t,"Q",function(){return en}),n.d(t,"R",function(){return ei}),n.d(t,"S",function(){return ea.a}),n.d(t,"T",function(){return eo.a}),n.d(t,"V",function(){return es.a}),n.d(t,"W",function(){return el.a}),n.d(t,"X",function(){return eu}),n.d(t,"Y",function(){return ec.a}),n.d(t,"Z",function(){return ep.a}),n.d(t,"ab",function(){return ed}),n.d(t,"bb",function(){return ef.a}),n.d(t,"cb",function(){return eh.a}),n.d(t,"db",function(){return eg.a}),n.d(t,"eb",function(){return eb.a}),n.d(t,"gb",function(){return em}),n.d(t,"hb",function(){return ey.a}),n.d(t,"jb",function(){return eS}),n.d(t,"kb",function(){return ev.a}),n.d(t,"lb",function(){return eO.a}),n.d(t,"mb",function(){return ex.a}),n.d(t,"nb",function(){return eI.a}),n.d(t,"ob",function(){return eN.a}),n.d(t,"pb",function(){return ek.a}),n.d(t,"qb",function(){return ew}),n.d(t,"sb",function(){return ej.a}),n.d(t,"tb",function(){return eF.a}),n.d(t,"ub",function(){return e_.a}),n.d(t,"wb",function(){return eE.a}),n.d(t,"yb",function(){return eR.a}),n.d(t,"zb",function(){return eD.a}),n.d(t,"Bb",function(){return eC.a}),n.d(t,"Fb",function(){return eA.a}),n.d(t,"Gb",function(){return eM.a}),n.d(t,"Hb",function(){return e$.a}),n.d(t,"Ib",function(){return eU.a}),n.d(t,"Jb",function(){return eP.a}),n.d(t,"Kb",function(){return eB.a}),n.d(t,"Mb",function(){return eL}),n.d(t,"Nb",function(){return eW.a}),n.d(t,"Ob",function(){return ez.a}),n.d(t,"Pb",function(){return eG.a}),n.d(t,"Qb",function(){return eV.a}),n.d(t,"Rb",function(){return eH.a}),n.d(t,"Sb",function(){return eq.a}),n.d(t,"Tb",function(){return eK.a}),n.d(t,"Ub",function(){return eX.a}),n.d(t,"Vb",function(){return eY.a}),n.d(t,"Wb",function(){return eQ.a}
1),n.d(t,"Yb",function(){return eZ}),n.d(t,"Zb",function(){return F.a}),n.d(t,"ac",function(){return e0.a}),n.d(t,"bc",function(){return e1.a}),n.d(t,"cc",function(){return e2}),n.d(t,"dc",function(){return e3}),n.d(t,"ec",function(){return e4.a}),n.d(t,"fc",function(){return e6.a}),n.d(t,"gc",function(){return e7}),n.d(t,"hc",function(){return e9.a}),n.d(t,"ic",function(){return te.a}),n.d(t,"jc",function(){return tt.a}),n.d(t,"kc",function(){return tn.a}),n.d(t,"lc",function(){return to}),n.d(t,"nc",function(){return _.a}),n.d(t,"oc",function(){return ts}),n.d(t,"pc",function(){return tl}),n.d(t,"qc",function(){return tu.a}),n.d(t,"sc",function(){return tc.a}),n.d(t,"tc",function(){return tp.a}),n.d(t,"uc",function(){return e5.a}),n.d(t,"vc",function(){return td.a}),n.d(t,"xc",function(){return tf}),n.d(t,"yc",function(){return th.a}),n.d(t,"zc",function(){return tg}),n.d(t,"Ac",function(){return tb}),n.d(t,"Bc",function(){return tm}),n.d(t,"Cc",function(){return ty}),n.d(t,"Dc",function(){return tS.a}),n.d(t,"Ec",function(){return tv.a}),n.d(t,"Fc",function(){return tO.a}),n.d(t,"Gc",function(){return tx.a}),n.d(t,"Hc",function(){return tI.a}),n.d(t,"Ic",function(){return tN}),n.d(t,"Jc",function(){return tk}),n.d(t,"Kc",function(){return tT}),n.d(t,"Lc",function(){return tw}),n.d(t,"Mc",function(){return tR}),n.d(t,"Nc",function(){return tD}),n.d(t,"Oc",function(){return tC}),n.d(t,"Pc",function(){return tA}),n.d(t,"Qc",function(){return tM}),n.d(t,"Rc",function(){return t$}),n.d(t,"Sc",function(){return tU.a}),n.d(t,"Tc",function(){return tP.a}),n.d(t,"Uc",function(){return tB.a}),n.d(t,"Vc",function(){return tL.a}),n.d(t,"Wc",function(){return T.a}),n.d(t,"Xc",function(){return tW.a}),n.d(t,"Yc",function(){return tz}),n.d(t,"Zc",function(){return tG}),n.d(t,"ad",function(){return tV}),n.d(t,"bd",function(){return tH}),n.d(t,"dd",function(){return tq.a}),n.d(t,"ed",function(){return tK.a}),n.d(t,"fd",function(){return tX.a}),n.d(t,"id",function(){return tY.a}),n.d(t,"jd",function(){return tQ.a}),n.d(t,"kd",function(){return tJ}),n.d(t,"ld",function(){return E.a}),n.d(t,"md",function(){return tZ.a}),n.d(t,"od",function(){return t0.a}),n.d(t,"pd",function(){return t1.a}),n.d(t,"qd",function(){return R.a}),n.d(t,"rd",function(){return t2}),n.d(t,"sd",function(){return t3}),n.d(t,"td",function(){return t4}),n.d(t,"ud",function(){return t6}),n.d(t,"vd",function(){return t5.a}),n.d(t,"wd",function(){return t8.a}),n.d(t,"xd",function(){return t7.a}),n.d(t,"rb",function(){return t9.a}),n.d(t,"Ab",function(){return ne.a}),n.d(t,"Eb",function(){return nt.a}),n.d(t,"cd",function(){return nn.a}),n.d(t,"Bd",function(){return nr.a}),n.d(t,"Cd",function(){return ni.a}),n.d(t,"Dd",function(){return ti.a}),n.d(t,"Ed",function(){return na.a}),n.d(t,"Fd",function(){return no.a}),n.d(t,"Gd",function(){return ns.a}),n.d(t,"Hd",function(){return nl.a}),n.d(t,"Id",function(){return nu.a}),n.d(t,"Kd",function(){return ta.a}),n.d(t,"Ld",function(){return nc.a}),n.d(t,"Md",function(){return np.a}),n.d(t,"Nd",function(){return D.a}),n.d(t,"Od",function(){return nd.a}),n.d(t,"Pd",function(){return nh}),n.d(t,"Qd",function(){return ng}),n.d(t,"Rd",function(){return nb.a}),n.d(t,"Sd",function(){return nm}),n.d(t,"Td",function(){return ny}),n.d(t,"Ud",function(){return nS}),n.d(t,"Vd",function(){return nO}),n.d(t,"Wd",function(){return eT.a}),n.d(t,"Xd",function(){return nx.a}),n.d(t,"Zd",function(){return nI}),n.d(t,"ae",function(){return nN.a}),n.d(t,"be",function(){return nk.a}),n.d(t,"ce",function(){return nT.a}),n.d(t,"de",function(){return nw}),n.d(t,"ee",function(){return nj}),n.d(t,"fe",function(){return nF.a}),n.d(t,"ge",function(){return nE}),n.d(t,"he",function(){return nR.a}),n.d(t,"ie",function(){return nD.a}),n.d(t,"z",function(){return nC}),n.d(t,"Yd",function(){return nA.a}),n.d(t,"rc",function(){return nM.a}),n.d(t,"mc",function(){return nU}),n.d(t,"gd",function(){return nP}),n.d(t,"hd",function(){return eJ}),n.d(t,"zd",function(){return nB}),n.d(t,"xb",function(){return nL}),n.d(t,"fb",function(){return nW}),n.d(t,"ib",function(){return nz}),n.d(t,"U",function(){return nG}),n.d(t,"Db",function(){return nV}),n.d(t,"wc",function(){return d.b}),n.d(t,"a",function(){return d.a}),n.d(t,"Cb",function(){return rU}),n.d(t,"Lb",function(){return rP}),n.d(t,"Xb",function(){return rB}),n.d(t,"Ad",function(){return rM}),n.d(t,"vb",function(){return r}),n.d(t,"nd",function(){return r$}),n.d(t,"yd",function(){return rL}),n.d(t,"Jd",function(){return rW});var r={};n.r(r),n.d(r,"conv2d",function(){return nQ}),n.d(r,"depthwiseConv2d",function(){return n0}),n.d(r,"matMul",function(){return n1});var i=n(62),a=n(338),o=n(339),s=n(17),l=n(5),u=n(3),c=n(2),p=n(10),d=n(4);let f=Object(d.b)({addN_:function(e){p.c(Array.isArray(e),()=>"The argument passed to tf.addN() must be a list of tensors"),p.c(e.length>=1,()=>"Must pass at least one tensor to tf.addN(), but got "+e.length);let t=e.map((e,t)=>Object(c.a)(e,"tensors"+t,"addN")),n=t[0];
1t.forEach(e=>{if(e.dtype!==n.dtype)throw Error("All tensors passed to tf.addN() must have the same dtype")}),t.forEach(e=>{if(!p.a(e.shape,n.shape))throw Error("All tensors passed to tf.addN() must have the same shape")});let r=t;return l.a.runKernel(u.e,r)}});var h=n(229),g=n(230),b=n(231),m=n(232),y=n(340),S=n(341),v=n(342),O=n(233),x=n(343),I=n(172),N=n(16),k=n(26),T=n(8);let w=Object(d.b)({avgPool3d_:function(e,t,n,r,i,a="NDHWC"){let o=Object(c.a)(e,"x","avgPool3d","float32"),s=o,d=!1;4===o.rank&&(d=!0,s=Object(T.a)(o,[1,o.shape[0],o.shape[1],o.shape[2],o.shape[3]])),p.c(5===s.rank,()=>`Error in avgPool3d: x must be rank 5 but got rank ${s.rank}.`),p.c("NDHWC"===a,()=>"Error in avgPool3d: Only NDHWC is currently supported, but got dataFormat of "+a),p.c("number"==typeof n&&n>0||Array.isArray(n)&&n[0]>0&&n[1]>0&&n[2]>0,()=>`Error in avgPool3d: Stride must be > 0, but got '${n}'`),Object(k.a)("avgPool3d",r,i);let f={x:s},h={filterSize:t,strides:n,pad:r,dimRoundingMode:i,dataFormat:a},g=l.a.runKernel(u.p,f,h);return g=Object(N.a)(g,s.dtype),d?Object(T.a)(g,[g.shape[1],g.shape[2],g.shape[3],g.shape[4]]):g}});var j=n(44),F=n(31),_=n(11),E=n(93),R=n(34),D=n(208);let C=Object(d.b)({basicLSTMCell_:function(e,t,n,r,i,a){let o=Object(c.a)(e,"forgetBias","basicLSTMCell"),l=Object(c.a)(t,"lstmKernel","basicLSTMCell"),u=Object(c.a)(n,"lstmBias","basicLSTMCell"),p=Object(c.a)(r,"data","basicLSTMCell"),d=Object(c.a)(i,"c","basicLSTMCell"),f=Object(c.a)(a,"h","basicLSTMCell"),h=Object(j.a)([p,f],1),g=Object(F.a)(h,l),b=Object(s.a)(g,u),m=b.shape[0],y=b.shape[1]/4,S=[m,y],v=Object(R.a)(b,[0,0],S),O=Object(R.a)(b,[0,y],S),x=Object(R.a)(b,[0,2*y],S),I=Object(R.a)(b,[0,3*y],S),N=Object(s.a)(Object(_.a)(Object(E.a)(v),Object(D.a)(O)),Object(_.a)(d,Object(E.a)(Object(s.a)(o,x))));return[N,Object(_.a)(Object(D.a)(N),Object(E.a)(I))]}});var A=n(130),M=n(111);let $=Object(d.b)({batchNorm2d_:function(e,t,n,r,i,a){let o,s,l=Object(c.a)(e,"x","batchNorm"),u=Object(c.a)(t,"mean","batchNorm"),d=Object(c.a)(n,"variance","batchNorm");return null!=i&&(o=Object(c.a)(i,"scale","batchNorm")),null!=r&&(s=Object(c.a)(r,"offset","batchNorm")),p.c(2===l.rank,()=>"Error in batchNorm2D: x must be rank 2 but got rank "+l.rank+"."),p.c(2===u.rank||1===u.rank,()=>`Error in batchNorm2D: mean must be rank 2 or rank 1 but got rank ${u.rank}.`),p.c(2===d.rank||1===d.rank,()=>`Error in batchNorm2D: variance must be rank 2 or rank 1 but got rank ${d.rank}.`),null!=o&&p.c(2===o.rank||1===o.rank,()=>`Error in batchNorm2D: scale must be rank 2 or rank 1 but got rank ${o.rank}.`),null!=s&&p.c(2===s.rank||1===s.rank,()=>`Error in batchNorm2D: offset must be rank 2 or rank 1 but got rank ${s.rank}.`),Object(M.a)(l,u,d,s,o,a)}}),U=Object(d.b)({batchNorm3d_:function(e,t,n,r,i,a){let o,s,l=Object(c.a)(e,"x","batchNorm"),u=Object(c.a)(t,"mean","batchNorm"),d=Object(c.a)(n,"variance","batchNorm");return null!=i&&(o=Object(c.a)(i,"scale","batchNorm")),null!=r&&(s=Object(c.a)(r,"offset","batchNorm")),p.c(3===l.rank,()=>"Error in batchNorm3D: x must be rank 3 but got rank "+l.rank+"."),p.c(3===u.rank||1===u.rank,()=>`Error in batchNorm3D: mean must be rank 3 or rank 1 but got rank ${u.rank}.`),p.c(3===d.rank||1===d.rank,()=>`Error in batchNorm3D: variance must be rank 3 or rank 1 but got rank ${d.rank}.`),null!=o&&p.c(3===o.rank||1===o.rank,()=>`Error in batchNorm3D: scale must be rank 3 or rank 1 but got rank ${o.rank}.`),null!=s&&p.c(3===s.rank||1===s.rank,()=>`Error in batchNorm3D: offset must be rank 3 or rank 1 but got rank ${s.rank}.`),Object(M.a)(l,u,d,s,o,a)}}),P=Object(d.b)({batchNorm4d_:function(e,t,n,r,i,a){let o,s,l=Object(c.a)(e,"x","batchNorm"),u=Object(c.a)(t,"mean","batchNorm"),d=Object(c.a)(n,"variance","batchNorm");return null!=i&&(o=Object(c.a)(i,"scale","batchNorm")),null!=r&&(s=Object(c.a)(r,"offset","batchNorm")),p.c(4===l.rank,()=>"Error in batchNorm4D: x must be rank 4 but got rank "+l.rank+"."),p.c(4===u.rank||1===u.rank,()=>`Error in batchNorm4D: mean must be rank 4 or rank 1 but got rank ${u.rank}.`),p.c(4===d.rank||1===d.rank,()=>`Error in batchNorm4D: variance must be rank 4 or rank 1 but got rank ${d.rank}.`),null!=o&&p.c(4===o.rank||1===o.rank,()=>`Error in batchNorm4D: scale must be rank 4 or rank 1 but got rank ${o.rank}.`),null!=s&&p.c(4===s.rank||1===s.rank,()=>`Error in batchNorm4D: offset must be rank 4 or rank 1 but got rank ${s.rank}
1.`),Object(M.a)(l,u,d,s,o,a)}}),B=Object(d.b)({bincount_:function(e,t,n){let r=Object(c.a)(e,"x","bincount"),i=Object(c.a)(t,"weights","bincount");p.c("int32"===r.dtype,()=>"Error in bincount: input dtype must be int32, but got "+r.dtype),p.c(n>=0,()=>`size must be non-negative, but got ${n}.`),p.c(i.size===r.size||0===i.size,()=>`Error in bincount: weights must have the same size as input or0-length, but got input shape: ${r.shape}, weights shape: `+i.shape+".");let a={x:r,weights:i},o={size:n};return l.a.runKernel(u.u,a,o)}}),L=Object(d.b)({bitwiseAnd_:function(e,t){let n=Object(c.a)(e,"x","bitwiseAnd"),r=Object(c.a)(t,"y","bitwiseAnd");if(!Object(p.a)(n.shape,r.shape))throw Error(`BitwiseAnd: Tensors must have the same shape. x: ${n.shape}, y: ${r.shape}`);if("int32"!==n.dtype||"int32"!==r.dtype)throw Error(`BitwiseAnd: Only supports 'int32' values in tensor, found type of x: ${n.dtype} and type of y: ${r.dtype}`);let i={a:n,b:r};return l.a.runKernel(u.v,i)}}),W=Object(d.b)({broadcastArgs_:function(e,t){let n=Object(c.a)(e,"s0","broadcastArgs","int32"),r=Object(c.a)(t,"s1","broadcastArgs","int32");if(1!==n.rank)throw Error("broadcastArgs(): first input must be a vector (rank=1). Has rank "+n.rank);if(1!==r.rank)throw Error("broadcastArgs(): second input must be a vector (rank=1). Has rank "+r.rank);let i={s0:n,s1:r};return l.a.runKernel(u.w,i)}});var z=n(139),G=n(67),V=n(344),H=n(345),q=n(92),K=n(72);let X=Object(d.b)({concat1d_:function(e){return Object(j.a)(e,0)}}),Y=Object(d.b)({concat2d_:function(e,t){return Object(j.a)(e,t)}}),Q=Object(d.b)({concat3d_:function(e,t){return Object(j.a)(e,t)}}),J=Object(d.b)({concat4d_:function(e,t){return Object(j.a)(e,t)}});var Z=n(234),ee=n(90),et=n(235);let en=Object(d.b)({conv3d_:function(e,t,n,r,i="NDHWC",a=[1,1,1]){let o=Object(c.a)(e,"x","conv3d"),s=Object(c.a)(t,"filter","conv3d"),d=o,f=!1;4===o.rank&&(f=!0,d=Object(T.a)(o,[1,o.shape[0],o.shape[1],o.shape[2],o.shape[3]])),p.c(5===d.rank,()=>`Error in conv3d: input must be rank 5, but got rank ${d.rank}.`),p.c(5===s.rank,()=>"Error in conv3d: filter must be rank 5, but got rank "+s.rank+"."),p.c(d.shape[4]===s.shape[3],()=>`Error in conv3d: depth of input (${d.shape[4]}) must match input depth for filter ${s.shape[3]}.`),p.c(Object(k.i)(n,a),()=>`Error in conv3D: Either strides or dilations must be 1. Got strides ${n} and dilations '${a}'`),p.c("NDHWC"===i,()=>`Error in conv3d: got dataFormat of ${i} but only NDHWC is currently supported.`),p.c(Object(k.j)(a),()=>"Error in conv3D: Dilated rates should be larger than 0."),p.c(Object(k.j)(n),()=>"Error in conv3D: Strides should be larger than 0.");let h={x:d,filter:s},g={strides:n,pad:r,dataFormat:i,dilations:a},b=l.a.runKernel(u.H,h,g);return f?Object(T.a)(b,[b.shape[1],b.shape[2],b.shape[3],b.shape[4]]):b}});var er=n(265);let ei=Object(d.b)({conv3dTranspose_:function(e,t,n,r,i){let a=Object(c.a)(e,"x","conv3dTranspose"),o=Object(c.a)(t,"filter","conv3dTranspose");return Object(er.a)(n,a,o,r,i)}});var ea=n(173),eo=n(236),es=n(146),el=n(174);let eu=Object(d.b)({denseBincount_:function(e,t,n,r=!1){let i=Object(c.a)(e,"x","denseBincount"),a=Object(c.a)(t,"weights","denseBincount");p.c("int32"===i.dtype,()=>"Error in denseBincount: input dtype must be int32, but got "+i.dtype),p.c(i.rank<=2,()=>`Error in denseBincount: input must be at most rank 2, but got rank ${i.rank}.`),p.c(n>=0,()=>`size must be non-negative, but got ${n}.`),p.c(a.size===i.size||0===a.size,()=>`Error in denseBincount: weights must have the same shape as x or 0-length, but got x shape: ${i.shape}, weights shape: `+a.shape+".");let o={x:i,weights:a},s={size:n,binaryOutput:r};return l.a.runKernel(u.P,o,s)}});var ec=n(237),ep=n(131);let ed=Object(d.b)({diag_:function(e){let t={x:Object(c.a)(e,"x","diag")};return l.a.runKernel(u.U,t)}});var ef=n(238),eh=n(19),eg=n(239),eb=n(240);let em=Object(d.b)({einsum_:function(e,...t){let n=t.map((e,t)=>Object(c.a)(e,"tensors"+t,"einsum")),r={equation:e};return l.a.runKernel(u.Z,n,r)}});var ey=n(175);let eS=Object(d.b)({ensureShape_:function(e,t){let n=Object(c.a)(e,"x","ensureShape","string_or_numeric");if(!Object(p.b)(n.shape,t))throw Error(`EnsureShape: Shape of tensor ${n.shape} is not compatible with expected shape ${t}`);return e}});var ev=n(132),eO=n(346),ex=n(241),eI=n(56),eN=n(77),ek=n(347),eT=n(95);let ew=Object(d.b)({eye_:function(e,t,n,r="float32"){null==t&&(t=e);let i=Object(G.a)([e,t],r),a=e<=t?e:t;for(let e=0;e<a;++e)i.set(1,e,e);let o=Object(T.a)(i.toTensor(),[e,t]);if(null==n)return o;if(1===n.length)return Object(eT.a)(Object(eN.a)(o,0),[n[0],1,1]);if(2===n.length)return Object(eT.a)(Object(eN.a)(Object(eN.a)(o,0),0),[n[0],n[1],1,1]);if(3===n.length)return Object(eT.a)(Object(eN.a)(Object(eN.a)(Object(eN.a)(o,0),0),0),[n[0],n[1],n[2],
11,1]);throw Error(`eye() currently supports only 1D and 2D batchShapes, but received ${n.length}D.`)}});var ej=n(106),eF=n(176),e_=n(166),eE=n(134),eR=n(60),eD=n(91),eC=n(135),eA=n(348),eM=n(349),e$=n(350),eU=n(177),eP=n(117),eB=n(80);function eL(e,t,n){if(n<=0)throw Error("The number of values should be positive.");let r={start:e,stop:t,num:n};return l.a.runKernel(u.Fb,{},r)}var eW=n(242),ez=n(99),eG=n(243),eV=n(351),eH=n(352),eq=n(178),eK=n(84),eX=n(136),eY=n(179),eQ=n(245);let eJ=Object(d.b)({searchSorted_:function(e,t,n="left"){let r=Object(c.a)(e,"sortedSequence","searchSorted"),i=Object(c.a)(t,"values","searchSorted"),a=r.shape[r.shape.length-1],o=i.shape[i.shape.length-1],s=Object(T.a)(r,[-1,a]),d=Object(T.a)(i,[-1,o]);if(s.rank<2)throw Error("Sorted input argument must be at least 2-dimensional");if(s.shape[0]!==d.shape[0])throw Error("Leading dimension of 'sortedSequence' and 'values' must match.");if(Object(p.O)(d.shape)>=0x80000000)throw Error("values tensor size must less than 2147483648");if(s.shape[1]>=0x80000000)throw Error("trailing dim_size must less than 2147483648 for int32 output type, was "+s.shape[1]);let f={sortedSequence:s,values:d},h={side:n};return l.a.runKernel(u.Jc,f,h)}});function eZ(e,t){return eJ(e,t,"left")}var e0=n(94),e1=n(180);let e2=Object(d.b)({maxPool3d_:function(e,t=[1,1,1],n,r,i,a="NDHWC"){let o=Object(c.a)(e,"x","maxPool3d"),s=o,d=!1;4===o.rank&&(d=!0,s=Object(T.a)(o,[1,o.shape[0],o.shape[1],o.shape[2],o.shape[3]])),p.c(5===s.rank,()=>`Error in maxPool3d: x must be rank 5 but got rank ${s.rank}.`),p.c("NDHWC"===a,()=>"Error in maxPool3d: Only NDHWC is currently supported, but got dataFormat of "+a),Object(k.a)("maxPool3d",r,i);let f={x:s},h={filterSize:t,strides:n,pad:r,dimRoundingMode:i,dataFormat:a},g=l.a.runKernel(u.Rb,f,h);return d?Object(T.a)(g,[g.shape[1],g.shape[2],g.shape[3],g.shape[4]]):g}}),e3=Object(d.b)({maxPoolWithArgmax_:function(e,t,n,r,i=!1){let a={x:Object(c.a)(e,"x","maxPoolWithArgmax")},o={filterSize:t,strides:n,pad:r,includeBatchInIndex:i},s=l.a.runKernel(u.Ub,a,o);return{result:s[0],indexes:s[1]}}});var e4=n(128),e6=n(118),e5=n(76),e8=n(6);function e7(e,t,{indexing:n="xy"}={}){if("xy"!==n&&"ij"!==n)throw TypeError(n+" is not a valid third argument to meshgrid");if(void 0===e)return[];let r=Object(c.a)(e,"x","meshgrid",e instanceof e8.a?e.dtype:"float32");if(void 0===t)return[r];let i=Object(c.a)(t,"y","meshgrid",t instanceof e8.a?t.dtype:"float32"),a=Object(p.O)(r.shape),o=Object(p.O)(i.shape);return"xy"===n?(r=Object(T.a)(r,[1,-1]),i=Object(T.a)(i,[-1,1]),[Object(F.a)(Object(e5.a)([o,1],r.dtype),r),Object(F.a)(i,Object(e5.a)([1,a],i.dtype))]):(r=Object(T.a)(r,[-1,1]),i=Object(T.a)(i,[1,-1]),[Object(F.a)(r,Object(e5.a)([1,o],r.dtype)),Object(F.a)(Object(e5.a)([a,1],i.dtype),i)])}var e9=n(147),te=n(119),tt=n(246),tn=n(247),tr=n(55),ti=n(32),ta=n(18);let to=Object(d.b)({moments_:function(e,t=null,n=!1){e=Object(c.a)(e,"x","moments");let r=Object(p.I)(t,e.shape),i=Object(e6.a)(e,r,n),a=i.shape;n||(a=Object(tr.e)(i.shape,r));let o=Object(ti.a)(Object(ta.a)(Object(N.a)(e,"float32"),Object(T.a)(i,a)));return{mean:i,variance:Object(e6.a)(o,r,n)}}}),ts=Object(d.b)({multiRNNCell_:function(e,t,n,r){let i=Object(c.a)(t,"data","multiRNNCell"),a=Object(c.b)(n,"c","multiRNNCell"),o=Object(c.b)(r,"h","multiRNNCell"),s=i,l=[];for(let t=0;t<e.length;t++){let n=e[t](s,a[t],o[t]);l.push(n[0]),l.push(n[1]),s=n[1]}let u=[],p=[];for(let e=0;e<l.length;e+=2)u.push(l[e]),p.push(l[e+1]);return[u,p]}}),tl=Object(d.b)({multinomial_:function(e,t,n,r=!1){let i=Object(c.a)(e,"logits","multinomial"),a=i.size,o=i.rank;if(a<2)throw Error("Error in multinomial: you need at least 2 outcomes, but got "+a+".");if(o>2)throw Error("Rank of probabilities must be 1 or 2, but is "+o);n=n||Math.random();let s={logits:1===o?Object(T.a)(i,[1,-1]):i},p={numSamples:t,seed:n,normalized:r},d=l.a.runKernel(u.bc,s,p);return 1===o?Object(T.a)(d,[d.size]):d}});var tu=n(36),tc=n(181),tp=n(148),td=n(353);let tf=Object(d.b)({outerProduct_:function(e,t){let n=Object(c.a)(e,"v1","outerProduct"),r=Object(c.a)(t,"v2","outerProduct");p.c(1===n.rank&&1===r.rank,()=>`Error in outerProduct: inputs must be rank 1, but got ranks ${n.rank}
1 and ${r.rank}.`);let i=Object(T.a)(n,[-1,1]),a=Object(T.a)(r,[1,-1]);return Object(F.a)(i,a)}});var th=n(81);let tg=Object(d.b)({pad1d_:function(e,t,n=0){return Object(p.c)(2===t.length,()=>"Invalid number of paddings. Must be length of 2."),Object(th.a)(e,[t],n)}}),tb=Object(d.b)({pad2d_:function(e,t,n=0){return Object(p.c)(2===t.length&&2===t[0].length&&2===t[1].length,()=>"Invalid number of paddings. Must be length of 2 each."),Object(th.a)(e,t,n)}}),tm=Object(d.b)({pad3d_:function(e,t,n=0){return Object(p.c)(3===t.length&&2===t[0].length&&2===t[1].length&&2===t[2].length,()=>"Invalid number of paddings. Must be length of 2 each."),Object(th.a)(e,t,n)}}),ty=Object(d.b)({pad4d_:function(e,t,n=0){return Object(p.c)(4===t.length&&2===t[0].length&&2===t[1].length&&2===t[2].length&&2===t[3].length,()=>"Invalid number of paddings. Must be length of 2 each."),Object(th.a)(e,t,n)}});var tS=n(248),tv=n(73),tO=n(182),tx=n(228),tI=n(249);let tN=Object(d.b)({raggedGather_:function(e,t,n,r){let i={paramsNestedSplits:e.map((e,t)=>Object(c.a)(e,"tensors"+t,"raggedGather","int32")),paramsDenseValues:Object(c.a)(t,"paramsDenseValues","raggedGather"),indices:Object(c.a)(n,"indices","raggedGather","int32")},a={outputRaggedRank:r},o=l.a.runKernel(u.qc,i,a);return{outputNestedSplits:o.slice(0,o.length-1),outputDenseValues:o[o.length-1]}}}),tk=Object(d.b)({raggedRange_:function(e,t,n){let r=Object(c.a)(e,"starts","raggedRange"),i={starts:r,limits:Object(c.a)(t,"limits","raggedRange",r.dtype),deltas:Object(c.a)(n,"deltas","raggedRange",r.dtype)},a=l.a.runKernel(u.rc,i);return{rtNestedSplits:a[0],rtDenseValues:a[1]}}}),tT=Object(d.b)({raggedTensorToTensor_:function(e,t,n,r,i){let a=Object(c.a)(e,"shape","raggedTensorToTensor","int32"),o=Object(c.a)(t,"values","raggedTensorToTensor"),s={shape:a,values:o,defaultValue:Object(c.a)(n,"defaultValue","raggedTensorToTensor",o.dtype),rowPartitionTensors:r.map((e,t)=>Object(c.a)(e,"tensors"+t,"raggedTensorToTensor","int32"))},p={rowPartitionTypes:i};return l.a.runKernel(u.sc,s,p)}}),tw=Object(d.b)({rand_:function(e,t,n){Object(p.d)(e);let r=Object(p.O)(e),i=null;if(null==n||"float32"===n)i=new Float32Array(r);else if("int32"===n)i=new Int32Array(r);else{if("bool"!==n)throw Error("Unknown data type "+n);i=new Uint8Array(r)}for(let e=0;e<r;e++)i[e]=t();return l.a.makeTensor(i,e,n)}});var tj=n(113);n(189);class tF{constructor(e,t,n,r,i){this.mean=e,this.stdDev=t,this.dtype=n,this.nextVal=NaN,this.truncated=r,this.truncated&&(this.upper=this.mean+2*this.stdDev,this.lower=this.mean-2*this.stdDev);let a=i||Math.random();this.random=tj.alea(a.toString())}nextValue(){if(!isNaN(this.nextVal)){let e=this.nextVal;return this.nextVal=NaN,e}let e,t,n=!1;for(;!n;){let r,i,a;do a=(r=2*this.random()-1)*r+(i=2*this.random()-1)*i;while(a>=1||0===a);let o=Math.sqrt(-2*Math.log(a)/a);e=this.mean+this.stdDev*r*o,t=this.mean+this.stdDev*i*o,this.truncated&&!this.isValidTruncated(e)||(n=!0)}return this.truncated&&!this.isValidTruncated(t)||(this.nextVal=this.convertValue(t)),this.convertValue(e)}convertValue(e){return null==this.dtype||"float32"===this.dtype?e:Math.round(e)}isValidTruncated(e){return e<=this.upper&&e>=this.lower}}class t_{constructor(e,t,n,r){this.alpha=e,this.beta=1/t,this.dtype=n;let i=r||Math.random();this.randu=tj.alea(i.toString()),this.randn=new tF(0,1,n,!1,this.randu()),this.d=e<1?e+2/3:e-1/3,this.c=1/Math.sqrt(9*this.d)}nextValue(){let e,t,n,r,i,a;for(;;){do r=this.randn.nextValue(),a=1+this.c*r;while(a<=0);if(a*=a*a,t=1-.331*(e=r*r)*e,n=.5*e+this.d*(1-a+Math.log(a)),(i=this.randu())<t||Math.log(i)<n)break}return a=1/this.beta*this.d*a,this.alpha<1&&(a*=Math.pow(this.randu(),1/this.alpha)),this.convertValue(a)}convertValue(e){return"float32"===this.dtype?e:Math.round(e)}}class tE{constructor(e=0,t=1,n,r){if(this.canReturnFloat=()=>null==this.dtype||"float32"===this.dtype,this.min=e,this.range=t-e,this.dtype=n,null==r&&(r=Math.random()),"number"==typeof r&&(r=r.toString()),!this.canReturnFloat()&&this.range<=1)throw Error(`The difference between ${e} - ${t} <= 1 and dtype is not float`);this.random=tj.alea(r)}convertValue(e){return this.canReturnFloat()?e:Math.round(e)}
1nextValue(){return this.convertValue(this.min+this.range*this.random())}}let tR=Object(d.b)({randomGamma_:function(e,t,n=1,r="float32",i){if(Object(p.d)(e),null==n&&(n=1),null==r&&(r="float32"),"float32"!==r&&"int32"!==r)throw Error("Unsupported data type "+r);let a=new t_(t,n,r,i),o=Object(G.a)(e,r);for(let e=0;e<o.values.length;e++)o.values[e]=a.nextValue();return o.toTensor()}}),tD=Object(d.b)({randomNormal_:function(e,t=0,n=1,r,i){if(Object(p.d)(e),null!=r&&"bool"===r)throw Error("Unsupported data type "+r);let a=new tF(t,n,r,!1,i),o=Object(G.a)(e,r);for(let e=0;e<o.values.length;e++)o.values[e]=a.nextValue();return o.toTensor()}}),tC=Object(d.b)({randomStandardNormal_:function(e,t,n){if(null!=t&&"bool"===t)throw Error("Unsupported data type "+t);return tD(e,0,1,t,n)}}),tA=Object(d.b)({randomUniform_:function(e,t=0,n=1,r="float32",i){Object(p.d)(e);let a=Object(G.a)(e,r),o=new tE(t,n,null,i);for(let e=0;e<a.values.length;e++)a.values[e]=o.nextValue();return a.toTensor()}}),tM=Object(d.b)({randomUniformInt_:function(e,t,n,r){return tA(e,t,n,"int32",r)}});function t$(e,t,n=1,r="float32"){if(0===n)throw Error("Cannot have a step of zero");let i={start:e,stop:t,step:n,dtype:r};return l.a.runKernel(u.tc,{},i)}var tU=n(120),tP=n(354),tB=n(108),tL=n(183),tW=n(68);let tz=Object(d.b)({reverse1d_:function(e){let t=Object(c.a)(e,"x","reverse");return p.c(1===t.rank,()=>`Error in reverse1D: x must be rank 1 but got rank ${t.rank}.`),Object(tW.a)(t,0)}}),tG=Object(d.b)({reverse2d_:function(e,t){let n=Object(c.a)(e,"x","reverse");return p.c(2===n.rank,()=>`Error in reverse2D: x must be rank 2 but got rank ${n.rank}.`),Object(tW.a)(n,t)}}),tV=Object(d.b)({reverse3d_:function(e,t){let n=Object(c.a)(e,"x","reverse");return p.c(3===n.rank,()=>`Error in reverse3D: x must be rank 3 but got rank ${n.rank}.`),Object(tW.a)(n,t)}}),tH=Object(d.b)({reverse4d_:function(e,t){let n=Object(c.a)(e,"x","reverse");return p.c(4===n.rank,()=>`Error in reverse4D: x must be rank 4 but got rank ${n.rank}.`),Object(tW.a)(n,t)}});var tq=n(250),tK=n(251),tX=n(23),tY=n(252),tQ=n(253);let tJ=async function(e,t){let n=Object(c.a)(e,"x","setdiff1d"),r=Object(c.a)(t,"y","setdiff1d");p.c(n.dtype===r.dtype,()=>`x and y should have the same dtype, but got x (${n.dtype}) and y (${r.dtype}).`),p.c(1===n.rank,()=>`x should be 1D tensor, but got x (${n.shape}).`),p.c(1===r.rank,()=>`y should be 1D tensor, but got y (${r.shape}).`);let i=await n.data(),a=new Set(await r.data()),o=0;for(let e=0;e<i.length;e++)a.has(i[e])||o++;let s=new e8.b([o],n.dtype),l=new e8.b([o],"int32");for(let e=0,t=0;e<i.length;e++)a.has(i[e])||(s.values[t]=i[e],l.values[t]=e,t++);return[s.toTensor(),l.toTensor()]};var tZ=n(355),t0=n(254),t1=n(255);let t2=Object(d.b)({slice1d_:function(e,t,n){let r=Object(c.a)(e,"x","slice1d");return p.c(1===r.rank,()=>`slice1d expects a rank-1 tensor, but got a rank-${r.rank} tensor`),Object(R.a)(r,[t],[n])}}),t3=Object(d.b)({slice2d_:function(e,t,n){let r=Object(c.a)(e,"x","slice2d");return p.c(2===r.rank,()=>`slice2d expects a rank-2 tensor, but got a rank-${r.rank} tensor`),Object(R.a)(r,t,n)}}),t4=Object(d.b)({slice3d_:function(e,t,n){let r=Object(c.a)(e,"x","slice3d");return p.c(3===r.rank,()=>`slice3d expects a rank-3 tensor, but got a rank-${r.rank} tensor`),Object(R.a)(r,t,n)}}),t6=Object(d.b)({slice4d_:function(e,t,n){let r=Object(c.a)(e,"x","slice4d");return p.c(4===r.rank,()=>`slice4d expects a rank-4 tensor, but got a rank-${r.rank} tensor`),Object(R.a)(r,t,n)}});var t5=n(356),t8=n(244),t7=n(137),t9=n(184),ne=n(149),nt=n(256),nn=n(185),nr=n(85),ni=n(51),na=n(186),no=n(138),ns=n(74),nl=n(109),nu=n(357),nc=n(21),np=n(358),nd=n(112),nf=n(71);function nh(e,t){Object(p.e)(e);let n=Object(c.c)(e,t);if(1!==n.length)throw Error("tensor1d() requires values to be a flat/TypedArray");return Object(nf.a)(e,null,n,t)}function ng(e,t,n){if(Object(p.e)(e),null!=t&&2!==t.length)throw Error("tensor2d() requires shape to have two numbers");let r=Object(c.c)(e,n);if(2!==r.length&&1!==r.length)throw Error("tensor2d() requires values to be number[][] or flat/TypedArray");if(1===r.length&&null==t)throw Error("tensor2d() requires shape to be provided when `values` are a flat/TypedArray");return Object(nf.a)(e,t,r,n)}var nb=n(257);function nm(e,t,n){if(Object(p.e)(e),null!=t&&4!==t.length)throw Error("tensor4d() requires shape to have four numbers");let r=Object(c.c)(e,n);if(4!==r.length&&1!==r.length)throw Error("tensor4d() requires values to be number[][][][] or flat/TypedArray");if(1===r.length&&null==t)throw Error("tensor4d() requires shape to be provided when `values` are a flat array");return Object(nf.a)(e,t,r,n)}function ny(e,t,n){if(Object(p.e)(e),null!=t&&5!==t.length)throw Error("tensor5d() requires shape to have five numbers");let r=Object(c.c)(e,n);if(5!==r.length&&1!==r.length)throw Error("tensor5d() requires values to be number[][][][][] or flat/TypedArray");if(1===r.length&&null==t)throw Error("tensor5d() requires shape to be provided when `values` are a flat array");return Object(nf.a)(e,t,r,n)}function nS(e,t,n){if(Object(p.e)(e),null!=t&&6!==t.length)throw Error("tensor6d() requires shape to have six numbers");let r=Object(c.c)(e,n);if(6!==r.length&&1!==r.length)throw Error("tensor6d() requires values to be number[][][][][][] or flat/TypedArray");if(1===r.length&&null==t)throw Error("tensor6d() requires shape to be provided when `values` are a flat array");return t=t||r,Object(nf.a)(e,t,r,n)}var nv=n(127);let nO=Object(d.b)({tensorScatterUpdate_:function(e,t,n){let r=Object(c.a)(e,"tensor","tensorScatterupdate"),i=Object(c.a)(t,"indices","tensorScatterupdate","int32"),a=Object(c.a)(n,"updates","tensorScatterupdate");if(nv.validateInput(a,i,r.shape),r.dtype!==a.dtype)throw Error(`tensor and updates must have the same dtype, instead they are ${r.dtype} and ${a.dtype}.`);let o={tensor:r,indices:i,updates:a};return l.a.runKernel(u.nd,o,{})}});var nx=n(258);let nI=Object(d.b)({truncatedNormal_:function(e,t=0,n=1,r,i){if(Object(p.d)(e),null!=r&&"bool"===r)throw Error("Unsupported data type $ { dtype }");let a=new tF(t,n,r,!0,i),o=Object(G.a)(e,r);for(let e=0;e<o.values.length;e++)o.values[e]=a.nextValue();return o.toTensor()}});var nN=n(259),nk=n(187),nT=n(110);function nw(e,t){return eJ(e,t,"right")}function nj(e,t=!0,n,r){return l.a.makeVariable(e,t,n,r)}var nF=n(45),n_=n(260);let nE=async function(e){let t=Object(c.a)(e,"condition","whereAsync","bool"),n=await t.data(),r=Object(n_.a)(t.shape,n);
1return e!==t&&t.dispose(),r};var nR=n(107),nD=n(25);let nC=async function(e,t,n){let r=Object(c.a)(e,"tensor","boolMask"),i=Object(c.a)(t,"mask","boolMask","bool"),a=null==n?0:n,o=i.rank,s=r.shape;p.c(o>0,()=>"mask cannot be scalar"),p.f(s.slice(a,a+o),i.shape,"mask's shape must match the first K dimensions of tensor's shape,");let l=1;for(let e=a;e<a+o;e++)l*=s[e];let u=s.slice(0,a).concat([l],s.slice(a+o)),d=Object(T.a)(r,u),f=Object(T.a)(i,[-1]),h=await nE(f),g=Object(no.a)(h,[1]),b=Object(eE.a)(d,g,a);return e!==r&&r.dispose(),t!==i&&i.dispose(),g.dispose(),d.dispose(),f.dispose(),h.dispose(),b};var nA=n(61),nM=n(133),n$=n(29);let nU=Object(d.b)({movingAverage_:function(e,t,n,r,i=!0){let a=Object(c.a)(e,"v","movingAverage"),o=Object(c.a)(t,"x","movingAverage"),l=Object(c.a)(n,"decay","movingAverage");Object(n$.assertTypesMatch)(a,o),p.c(p.a(a.shape,o.shape),()=>"Shape mismatch in v and x");let u=Object(tX.a)(1),d=Object(ta.a)(u,l),f=Object(_.a)(Object(ta.a)(o,a),d);if(i){p.c(null!=r,()=>"When using zeroDebias: true, step is required.");let e=Object(c.a)(r,"step","movingAverage");f=Object(eh.a)(f,Object(ta.a)(u,Object(tv.a)(l,e)))}return Object(s.a)(a,f)}}),nP=Object(d.b)({scatterND_:function(e,t,n){Object(p.d)(n);let r=Object(c.a)(e,"indices","scatterND","int32"),i=Object(c.a)(t,"updates","scatterND");nv.validateInput(i,r,n);let a={indices:r,updates:i},o={shape:n};return l.a.runKernel(u.Ic,a,o)}}),nB=Object(d.b)({sparseToDense_:function(e,t,n,r=0){Object(p.d)(n);let i=Object(c.a)(e,"sparseIndices","sparseToDense","int32"),a=Object(c.a)(t,"sparseValues","sparseToDense","string_or_numeric"),o=Object(c.a)(r,"defaultValue","sparseToDense",a.dtype);!function(e,t,n,r){if("int32"!==e.dtype)throw Error(`tf.sparseToDense() expects the indices to be int32 type, but the dtype was ${e.dtype}.`);if(e.rank>2)throw Error(`sparseIndices should be a scalar, vector, or matrix, but got shape ${e.shape}.`);let i=e.rank>0?e.shape[0]:1,a=e.rank>1?e.shape[1]:1;if(n.length!==a)throw Error(`outputShape has incorrect number of elements:, ${n.length}, should be: ${a}.`);let o=t.size;if(0!==t.rank&&(1!==t.rank||o!==i))throw Error(`sparseValues has incorrect shape ${t.shape}, should be [] or [${i}]`);if(t.dtype!==r.dtype)throw Error("sparseValues.dtype must match defaultValues.dtype")}(i,a,n,o);let s={sparseIndices:i,sparseValues:a,defaultValue:o},d={outputShape:n};return l.a.runKernel(u.Yc,s,d)}}),nL=Object(d.b)({gatherND_:function(e,t){let n=Object(c.a)(t,"indices","gatherND","int32"),r={params:Object(c.a)(e,"x","gatherND","string_or_numeric"),indices:n};return l.a.runKernel(u.qb,r)}}),nW=Object(d.b)({dropout_:function(e,t,n,r){let i=Object(c.a)(e,"x","dropout");if(p.c("float32"===i.dtype,()=>`x has to be a floating point tensor since it's going to be scaled, but got a ${i.dtype} tensor instead.`),p.c(t>=0&&t<1,()=>`rate must be a float in the range [0, 1), but got ${t}.`),0===t)return e instanceof e8.a?i.clone():i;let a=function(e,t){if(null==t)return e.shape.slice();if(p.a(e.shape,t))return t;if(e.shape.length===t.length){let n=[];for(let r=0;r<e.shape.length;r++)null==t[r]&&null!=e.shape[r]?n.push(e.shape[r]):n.push(t[r]);return n}return t}(i,n),o=1-t,l=Object(eh.a)(Object(eF.a)(Object(s.a)(tA(a,0,1,"float32",r),o)),o);return Object(_.a)(i,l)}});function nz(e){return Math.floor(Math.pow(2,Math.ceil(Math.log(e)/Math.log(2))))}function nG(e,t,n){let r=1-e%2,i=new Float32Array(e);for(let a=0;a<e;++a){let o=2*Math.PI*a/(e+r-1);i[a]=t-n*Math.cos(o)}return nh(i,"float32")}let nV=async function(e,t,n=1){let r=Object(c.a)(e,"predictions","inTopK"),i=Object(c.a)(t,"targets","inTopK");Object(p.c)(r.rank>1,()=>"inTopK() expects the predictions to be of rank 2 or higher, but got "+r.rank),Object(p.c)(r.rank-1===i.rank,()=>`predictions rank should be 1 larger than targets rank, but got predictions rank ${r.rank} and targets rank ${i.rank}`),Object(p.f)(r.shape.slice(0,r.shape.length-1),i.shape,"predictions's shape should be align with the targets' shape, except the last dimension.");let a=r.shape[r.shape.length-1];Object(p.c)(n>0&&n<=a,()=>`'k' passed to inTopK() must be > 0 && <= the predictions last dimension (${a}), but got ${n}`);let o=await r.data(),s=await i.data(),[l,u]=[o.length/a,a],d=Object(p.p)("bool",l);for(let e=0;e<l;e++){let t=e*u,r=o.subarray(t,t+u),i=[];for(let e=0;e<r.length;e++)i.push({value:r[e],index:e});i.sort((e,t)=>
1t.value-e.value),d[e]=0;for(let t=0;t<n;t++)if(i[t].index===s[e]){d[e]=1;break}}return e!==r&&r.dispose(),t!==i&&i.dispose(),Object(nd.a)(d,i.shape,"bool")};var nH=n(50),nq=n(20),nK=n(190),nX=n(188),nY=n(63);let nQ=Object(d.b)({fusedConv2d_:function({x:e,filter:t,strides:n,pad:r,dataFormat:i="NHWC",dilations:a=[1,1],dimRoundingMode:o,bias:d,activation:f="linear",preluActivationWeights:h,leakyreluAlpha:g}){let b,m;if(f=f||"linear",!1===Object(nY.d)(l.a.state.gradientDepth,f)){p.c("NHWC"===i,()=>`Error in fused conv2d: got dataFormat of ${i} but only NHWC is currently supported for the case of gradient depth is 0 and the activation is not linear.`);let l=Object(ee.a)(e,t,n,r,i,a,o);return null!=d&&(l=Object(s.a)(l,d)),Object(nY.a)(l,f,h,g)}let y=Object(c.a)(e,"x","conv2d","float32"),S=Object(c.a)(t,"filter","conv2d","float32"),v=y,O=!1;3===y.rank&&(O=!0,v=Object(T.a)(y,[1,y.shape[0],y.shape[1],y.shape[2]])),p.c(4===v.rank,()=>"Error in fused conv2d: input must be rank 4, but got rank "+v.rank+"."),p.c(4===S.rank,()=>"Error in fused conv2d: filter must be rank 4, but got rank "+S.rank+"."),k.a("fused conv2d",r,o);let x="NHWC"===i?v.shape[3]:v.shape[1];p.c(S.shape[2]===x,()=>`Error in conv2d: depth of input (${x}) must match input depth for filter ${S.shape[2]}.`),p.c(k.i(n,a),()=>`Error in conv2D: Either strides or dilations must be 1. Got strides ${n} and dilations '${a}'`);let I=k.b(v.shape,S.shape,n,a,r,o);if(null!=d&&(b=Object(c.a)(d,"bias","fused conv2d"),[b]=Object(n$.makeTypesMatch)(b,y),"NHWC"===i?nq.assertAndGetBroadcastShape(I.outShape,b.shape):(p.c(b.shape.length<=1,()=>`Error in fused conv2d: only supports scalar or 1-D Tensor bias for NCHW format but got the bias of rank-${b.shape.length}.`),p.c(0===b.shape.length||b.shape[0]===I.outChannels||1===b.shape[0],()=>`Error in fused conv2d: bias shape (${b.shape}) is not compatible with the number of output channels (${I.outChannels})`))),null!=h){let e=h.shape;if(p.c(e.length<=1||3===e.length,()=>`Error in fused conv2d: only supports scalar, 1-D Tensor or 3-D Tensor PReLU activation weights but got a tensor of rank-${e.length}
1.`),1===e.length)p.c(1===e[0]||e[0]===I.outChannels,()=>`Error in fused conv2d: PReLU activation weights (${e}) is not compatible with the number of output channels (${I.outChannels}).`);else if(3===e.length)try{nq.assertAndGetBroadcastShape(e,I.outShape)}catch(t){throw Error(`Error in fused conv2d: PReLU activation weights (${e}) is not compatible with the output shape of the conv2d (${I.outShape}).`)}m=Object(c.a)(h,"prelu weights","fused conv2d")}let N=(e,t)=>{p.c("NHWC"===i,()=>`Error in gradient of fused conv2D: got dataFormat of ${i} but only NHWC is currently supported.`);let[o,s,l,u]=t,c=Object(nY.c)(e,l,f);p.c(k.k(a),()=>`Error in gradient of fused conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '${a}'`);let d=[Object(nX.a)(s.shape,c,o,n,r),Object(nK.a)(s,c,o.shape,n,r)];if(null!=u){let e=Object(nY.b)(u,c);d.push(e)}return d},w={x:v,filter:S,bias:b,preluActivationWeights:m},j={strides:n,pad:r,dataFormat:i,dilations:a,dimRoundingMode:o,activation:f,leakyreluAlpha:g};return null==d?Object(nH.a)((e,t,n)=>{let r=l.a.runKernel(u.ob,w,j);return n([t,e,r]),O&&(r=Object(T.a)(r,[r.shape[1],r.shape[2],r.shape[3]])),{value:r,gradFunc:N}})(v,S):Object(nH.a)((e,t,n,r)=>{let i=l.a.runKernel(u.ob,w,j);return r([t,e,i,n]),O&&(i=Object(T.a)(i,[i.shape[1],i.shape[2],i.shape[3]])),{value:i,gradFunc:N}})(v,S,b)}});var nJ=n(269),nZ=n(268);let n0=Object(d.b)({fusedDepthwiseConv2d_:function({x:e,filter:t,strides:n,pad:r,dataFormat:i="NHWC",dilations:a=[1,1],dimRoundingMode:o,bias:d,activation:f="linear",preluActivationWeights:h,leakyreluAlpha:g}){let b,m;if(!1===Object(nY.d)(l.a.state.gradientDepth,f)){let l=Object(ep.a)(e,t,n,r,i,a,o);return null!=d&&(l=Object(s.a)(l,d)),Object(nY.a)(l,f,h,g)}let y=Object(c.a)(e,"x","depthwiseConv2d","float32"),S=Object(c.a)(t,"filter","depthwiseConv2d","float32"),v=y,O=!1;3===y.rank&&(O=!0,v=Object(T.a)(y,[1,y.shape[0],y.shape[1],y.shape[2]])),p.c(4===v.rank,()=>`Error in fused depthwiseConv2d: input must be rank 4, but got rank ${v.rank}.`),p.c(4===S.rank,()=>`Error in fused depthwiseConv2d: filter must be rank 4, but got rank ${S.rank}.`),p.c(v.shape[3]===S.shape[2],()=>`Error in fused depthwiseConv2d: number of input channels (${v.shape[3]}) must match the inChannels dimension in filter ${S.shape[2]}.`),null==a&&(a=[1,1]),p.c(k.i(n,a),()=>`Error in fused depthwiseConv2d: Either strides or dilations must be 1. Got strides ${n} and dilations '${a}'`),k.a("fused depthwiseConv2d",r,o);let x=k.b(v.shape,S.shape,n,a,r,o,!0);null!=d&&(b=Object(c.a)(d,"bias","fused conv2d"),[b]=Object(n$.makeTypesMatch)(b,y),nq.assertAndGetBroadcastShape(x.outShape,b.shape)),null!=h&&(m=Object(c.a)(h,"prelu weights","fused depthwiseConv2d"));let I=(e,t)=>{p.c(k.k(a),()=>`Error in gradient of fused depthwiseConv2d: dilation rates greater than 1 are not yet supported. Got dilations '${a}'`);let[i,s,l,u]=t,c=Object(nY.c)(e,l,f),d=Object(nZ.a)(s.shape,c,i,n,r,a,o),h=Object(nJ.a)(s,c,i.shape,n,r,a,o);return null!=u?[d,h,Object(nY.b)(b,c)]:[d,h]},N={x:v,filter:S,bias:b,preluActivationWeights:m},w={strides:n,pad:r,dataFormat:i,dilations:a,dimRoundingMode:o,activation:f,leakyreluAlpha:g};return null==d?Object(nH.a)((e,t,n)=>{let r=l.a.runKernel(u.pb,N,w);return n([t,e,r]),O&&(r=Object(T.a)(r,[r.shape[1],r.shape[2],r.shape[3]])),{value:r,gradFunc:I}})(v,S):Object(nH.a)((e,t,n,r)=>{let i=l.a.runKernel(u.pb,N,w);return r([t,e,i,n]),O&&(i=Object(T.a)(i,[i.shape[1],i.shape[2],i.shape[3]])),{value:i,gradFunc:I}})(v,S,b)}}),n1=Object(d.b)({fusedMatMul_:function({a:e,b:t,transposeA:n=!1,transposeB:r=!1,bias:i,activation:a="linear",preluActivationWeights:o,leakyreluAlpha:d=.2}){let f,h;if(!1===Object(nY.d)(l.a.state.gradientDepth,a)){let l=Object(F.a)(e,t,n,r);return null!=i&&(l=Object(s.a)(l,i)),Object(nY.a)(l,a,o,d)}let g=Object(c.a)(e,"a","fused matMul"),b=Object(c.a)(t,"b","fused matMul");[g,b]=Object(n$.makeTypesMatch)(g,b);let m=n?g.shape[g.rank-2]:g.shape[g.rank-1],y=r?b.shape[b.rank-1]:b.shape[b.rank-2],S=n?g.shape[g.rank-1]:g.shape[g.rank-2],v=r?b.shape[b.rank-2]:b.shape[b.rank-1],O=g.shape.slice(0,-2),x=b.shape.slice(0,-2),I=p.O(O),N=p.O(x);p.c(m===y,()=>`Error in fused matMul: inner shapes (${m}) and (${y}) of Tensors with shapes ${g.shape} and ${b.shape} and transposeA=${n} and transposeB=${r} must match.`);let k=nq.assertAndGetBroadcastShape(g.shape.slice(0,-2),b.shape.slice(0,-2)).c
1oncat([S,v]),w=n?Object(T.a)(g,[I,m,S]):Object(T.a)(g,[I,S,m]),j=r?Object(T.a)(b,[N,v,y]):Object(T.a)(b,[N,y,v]);null!=i&&(f=Object(c.a)(i,"bias","fused matMul"),[f]=Object(n$.makeTypesMatch)(f,g),nq.assertAndGetBroadcastShape(k,f.shape)),null!=o&&(h=Object(c.a)(o,"prelu weights","fused matMul"));let _=(e,t)=>{let o,s,[l,u,c,p]=t,d=Object(nY.c)(Object(T.a)(e,c.shape),c,a);return(n||r?!n&&r?(o=Object(F.a)(d,u,!1,!1),s=Object(F.a)(d,l,!0,!1)):n&&!r?(o=Object(F.a)(u,d,!1,!0),s=Object(F.a)(l,d,!1,!1)):(o=Object(F.a)(u,d,!0,!0),s=Object(F.a)(d,l,!0,!0)):(o=Object(F.a)(d,u,!1,!0),s=Object(F.a)(l,d,!0,!1)),null!=i)?[o,s,Object(nY.b)(p,d)]:[o,s]},E={a:w,b:j,bias:f,preluActivationWeights:h},R={transposeA:n,transposeB:r,activation:a,leakyreluAlpha:d};return null==i?Object(nH.a)((e,t,n)=>{let r=l.a.runKernel(u.xd,E,R);return n([e,t,r]),{value:Object(T.a)(r,k),gradFunc:_}})(w,j):Object(nH.a)((e,t,n,r)=>{let i=l.a.runKernel(u.xd,E,R);return r([e,t,i,n]),{value:Object(T.a)(i,k),gradFunc:_}})(w,j,f)}}),n2=Object(d.b)({hammingWindow_:function(e){return nG(e,.54,.46)}}),n3=Object(d.b)({hannWindow_:function(e){return nG(e,.5,.5)}}),n4=Object(d.b)({frame_:function(e,t,n,r=!1,i=0){let a=0,o=[];for(;a+t<=e.size;)o.push(Object(R.a)(e,a,t)),a+=n;if(r)for(;a<e.size;){let r=a+t-e.size,s=Object(j.a)([Object(R.a)(e,a,t-r),Object(ej.a)([r],i)]);o.push(s),a+=n}return 0===o.length?ng([],[0,t]):Object(T.a)(Object(j.a)(o),[o.length,t])}}),n6=Object(d.b)({stft_:function(e,t,n,r,i=n3){null==r&&(r=nz(t));let a=n4(e,t,n),o=Object(_.a)(a,i(t));return Object(nn.a)(o,r)}}),n5=Object(d.b)({cropAndResize_:function(e,t,n,r,i="bilinear",a=0){let o=Object(c.a)(e,"image","cropAndResize"),s=Object(c.a)(t,"boxes","cropAndResize","float32"),d=Object(c.a)(n,"boxInd","cropAndResize","int32"),f=s.shape[0];p.c(4===o.rank,()=>`Error in cropAndResize: image must be rank 4,but got rank ${o.rank}.`),p.c(2===s.rank&&4===s.shape[1],()=>`Error in cropAndResize: boxes must be have size [${f},4] but had shape ${s.shape}.`),p.c(1===d.rank&&d.shape[0]===f,()=>`Error in cropAndResize: boxInd must be have size [${f}] but had shape ${s.shape}.`),p.c(2===r.length,()=>`Error in cropAndResize: cropSize must be of length 2, but got length ${r.length}.`),p.c(r[0]>=1&&r[1]>=1,()=>"cropSize must be atleast [1,1], but was "+r),p.c("bilinear"===i||"nearest"===i,()=>"method must be bilinear or nearest, but was "+i);let h={image:o,boxes:s,boxInd:d},g={method:i,extrapolationValue:a,cropSize:r};return l.a.runKernel(u.M,h,g)}}),n8=Object(d.b)({flipLeftRight_:function(e){let t=Object(c.a)(e,"image","flipLeftRight","float32");p.c(4===t.rank,()=>`Error in flipLeftRight: image must be rank 4,but got rank ${t.rank}.`);let n={image:t};return l.a.runKernel(u.jb,n,{})}}),n7=Object(d.b)({grayscaleToRGB_:function(e){let t=Object(c.a)(e,"image","grayscaleToRGB"),n=t.rank-1,r=t.shape[n];p.c(t.rank>=2,()=>`Error in grayscaleToRGB: images must be at least rank 2, but got rank ${t.rank}.`),p.c(1===r,()=>`Error in grayscaleToRGB: last dimension of a grayscale image should be size 1, but got size ${r}.`);let i=Array(t.rank);return i.fill(1,0,n),i[n]=3,Object(eT.a)(t,i)}}),n9=Object(d.b)({rgbToGrayscale_:function(e){let t,n=Object(c.a)(e,"image","RGBToGrayscale"),r=n.rank-1,i=n.shape[r];p.c(n.rank>=2,()=>`Error in RGBToGrayscale: images must be at least rank 2, but got rank ${n.rank}.`),p.c(3===i,()=>`Error in RGBToGrayscale: last dimension of an RGB image should be size 3, but got size ${i}.`);let a=n.dtype,o=Object(N.a)(n,"float32"),s=nh([.2989,.587,.114]);switch(n.rank){case 2:t=em("ij,j->i",o,s);break;case 3:t=em("ijk,k->ij",o,s);break;case 4:t=em("ijkl,l->ijk",o,s);break;case 5:t=em("ijklm,m->ijkl",o,s);break;case 6:t=em("ijklmn,n->ijklm",o,s);break;default:throw Error("Not a valid tensor rank.")}return t=Object(eN.a)(t,-1),Object(N.a)(t,a)}}),re=Object(d.b)({rotateWithOffset_:function(e,t,n=0,r=.5){let i=Object(c.a)(e,"image","rotateWithOffset","float32");p.c(4===i.rank,()=>`Error in rotateWithOffset: image must be rank 4,but got rank ${i.rank}.`);let a={image:i},o={radians:t,fillValue:n,center:r};return l.a.runKernel(u.Fc,a,o)}});function rt(e,t,n,r,i,a){null==r&&(r=.5),null==i&&(i=-1/0),null==a&&(a=0);let o=e.shape[0];return n=Math.min(n,o),p.c(0<=r&&r<=1,()=>`iouThreshold must be in [0, 1], but was '${r}'`),p.c(2===e.rank,()=>`boxes must be a 2D tensor, but was of rank '${e.rank}'`),p.c(4===e.shape[1],()=>"boxes must have 4 columns, but 2nd dimension was "+e.shape[1]),p.c(1===t.rank,()=>
1"scores must be a 1D tensor"),p.c(t.shape[0]===o,()=>`scores has incompatible shape with boxes. Expected ${o}, but was `+t.shape[0]),p.c(0<=a&&a<=1,()=>`softNmsSigma must be in [0, 1], but was '${a}'`),{maxOutputSize:n,iouThreshold:r,scoreThreshold:i,softNmsSigma:a}}let rn=Object(d.b)({nonMaxSuppression_:function(e,t,n,r=.5,i=-1/0){let a=Object(c.a)(e,"boxes","nonMaxSuppression","float32"),o=Object(c.a)(t,"scores","nonMaxSuppression","float32"),s=rt(a,o,n,r,i),p={maxOutputSize:n=s.maxOutputSize,iouThreshold:r=s.iouThreshold,scoreThreshold:i=s.scoreThreshold};return l.a.runKernel(u.ec,{boxes:a,scores:o},p)}});var rr=n(105);let ri=async function(e,t,n,r=.5,i=-1/0){let a=Object(c.a)(e,"boxes","nonMaxSuppressionAsync"),o=Object(c.a)(t,"scores","nonMaxSuppressionAsync"),s=rt(a,o,n,r,i);n=s.maxOutputSize,r=s.iouThreshold,i=s.scoreThreshold;let l=await Promise.all([a.data(),o.data()]),u=l[0],p=l[1],{selectedIndices:d}=Object(rr.a)(u,p,n,r,i);return a!==e&&a.dispose(),o!==t&&o.dispose(),nh(d,"int32")},ra=Object(d.b)({nonMaxSuppressionWithScore_:function(e,t,n,r=.5,i=-1/0,a=0){let o=Object(c.a)(e,"boxes","nonMaxSuppression"),s=Object(c.a)(t,"scores","nonMaxSuppression"),p=rt(o,s,n,r,i,a),d={boxes:o,scores:s},f={maxOutputSize:n=p.maxOutputSize,iouThreshold:r=p.iouThreshold,scoreThreshold:i=p.scoreThreshold,softNmsSigma:a=p.softNmsSigma},h=l.a.runKernel(u.gc,d,f);return{selectedIndices:h[0],selectedScores:h[1]}}}),ro=async function(e,t,n,r=.5,i=-1/0,a=0){let o=Object(c.a)(e,"boxes","nonMaxSuppressionAsync"),s=Object(c.a)(t,"scores","nonMaxSuppressionAsync"),l=rt(o,s,n,r,i,a);n=l.maxOutputSize,r=l.iouThreshold,i=l.scoreThreshold,a=l.softNmsSigma;let u=await Promise.all([o.data(),s.data()]),p=u[0],d=u[1],{selectedIndices:f,selectedScores:h}=Object(rr.c)(p,d,n,r,i,a);return o!==e&&o.dispose(),s!==t&&s.dispose(),{selectedIndices:nh(f,"int32"),selectedScores:nh(h)}},rs=Object(d.b)({nonMaxSuppressionPadded_:function(e,t,n,r=.5,i=-1/0,a=!1){let o=Object(c.a)(e,"boxes","nonMaxSuppression"),s=Object(c.a)(t,"scores","nonMaxSuppression"),p=rt(o,s,n,r,i,null),d={boxes:o,scores:s},f={maxOutputSize:p.maxOutputSize,iouThreshold:p.iouThreshold,scoreThreshold:p.scoreThreshold,padToMaxOutputSize:a},h=l.a.runKernel(u.fc,d,f);return{selectedIndices:h[0],validOutputs:h[1]}}}),rl=async function(e,t,n,r=.5,i=-1/0,a=!1){let o=Object(c.a)(e,"boxes","nonMaxSuppressionAsync"),s=Object(c.a)(t,"scores","nonMaxSuppressionAsync"),l=rt(o,s,n,r,i,null),u=l.maxOutputSize,p=l.iouThreshold,d=l.scoreThreshold,[f,h]=await Promise.all([o.data(),s.data()]),{selectedIndices:g,validOutputs:b}=Object(rr.b)(f,h,u,p,d,a);return o!==e&&o.dispose(),s!==t&&s.dispose(),{selectedIndices:nh(g,"int32"),validOutputs:Object(tX.a)(b,"int32")}};var ru=n(267),rc=n(266);let rp=Object(d.b)({threshold_:function(e,t="binary",n=!1,r=.5){let i=Object(c.a)(e,"image","threshold"),a=i.shape[0]*i.shape[1],o,l,u,d,f=Object(_.a)(nh([r]),255);if(p.c(3===i.rank,()=>`Error in threshold: image must be rank 3,but got rank ${i.rank}.`),p.c(3===i.shape[2]||1===i.shape[2],()=>`Error in threshold: image color channel must be equal to 3 or 1but got ${i.shape[2]}.`),p.c("int32"===i.dtype||"float32"===i.dtype,()=>`Error in dtype: image dtype must be int32 or float32,but got dtype ${i.dtype}.`),p.c("otsu"===t||"binary"===t,()=>"Method must be binary or otsu, but was "+t),3===i.shape[2]){[o,l,u]=Object(nr.a)(i,[1,1,1],-1);let e=Object(_.a)(o,.2989),t=Object(_.a)(l,.587),n=Object(_.a)(u,.114);d=Object(s.a)(Object(s.a)(e,t),n)}else d=e;"otsu"===t&&(f=function(e,t){let n,r,i,a,o,l,u=nh([-1]),c=nh([0]),p=nh([0]);for(let d=0;d<e.size-1;d++){n=Object(R.a)(e,0,d+1),r=Object(R.a)(e,d+1),o=Object(eh.a)(Object(nc.a)(n),t),l=Object(eh.a)(Object(nc.a)(r),t);let f=Object(nc.a)(Object(_.a)(n,t$(0,n.size)));i=Object(eh.a)(f,Object(nc.a)(n));let h=Object(ej.a)(r.shape,n.size),g=Object(s.a)(t$(0,r.size),h),b=Object(_.a)(r,g);a=Object(eh.a)(Object(nc.a)(b),Object(nc.a)(r));let m=Object(ta.a)(i,a),y=Object(ta.a)(i,a),S=Object(_.a)(o,l);p=Object(_.a)(Object(_.a)(S,m),y);let v=Object(eR.a)(p,c);c=Object(nF.a)(v,p,c),u=Object(nF.a)(v,nh([d]),u)}return u}(B(Object(N.a)(Object(tq.a)(d),"int32"),Object(nd.a)([]),256),a));let h=n?Object(eB.a)(d,f):Object(eR.a)(d,f);return Object(N.a)(Object(_.a)(h,255),"int32")}}),rd=Object(d.b)({transform_:function(e,t,n="nearest",r="constant",i=0,a){let o=Object(c.a)(e,"image","transform","float32"),s=Object(c.a)(t,"transforms","transform","float32");p.c(4===o.rank,()=>`Error in transform: image must be rank 4,but got rank ${o.rank}.`),p.c(2===s.rank&&(s.shape[0]===o.shape[0]||1===s.shape[0])&&8===s.shape[1],()=>"Error in transform: Input transform should be batch x 8 or 1 x 8"),p.c(null==a||2===a.length,()=>`Error in transform: outputShape must be [height, width] or null, but got ${a}.`);let d={image:o,transforms:s},f={interpolation:n,fillMode:r,fillValue:i,outputShape:a};return l.a.runKernel(u.qd,d,f)}}),rf=Object(d.b)({bandPart_:function(e,t,n){let r,i,a=Object(c.a)(e,"a","bandPart");Object(p.c)(a.rank>=2,()=>`bandPart(): Rank must be at least 2, got ${a.rank}.`);let o=a.shape,[s,l]=a.shape.slice(-2);"number"==typeof t?(Object(p.c)(t%1==0,()=>`bandPart(): numLower must be an integer, got ${t}
1.`),Object(p.c)(t<=s,()=>`bandPart(): numLower (${t}) must not be greater than the number of rows (${s}).`),r=Object(c.a)(t<0?s:t,"numLower","bandPart")):(Object(p.c)("int32"===t.dtype,()=>"bandPart(): numLower's dtype must be an int32."),r=Object(nF.a)(Object(eP.a)(t,0),s,Object(te.a)(t,s))),"number"==typeof n?(Object(p.c)(n%1==0,()=>`bandPart(): numUpper must be an integer, got ${n}.`),Object(p.c)(n<=l,()=>`bandPart(): numUpper (${n}) must not be greater than the number of columns (${l}).`),i=Object(c.a)(n<0?l:n,"numUpper","bandPart")):(Object(p.c)("int32"===n.dtype,()=>"bandPart(): numUpper's dtype must be an int32."),i=Object(nF.a)(Object(eP.a)(n,0),l,Object(te.a)(n,l)));let u=Object(T.a)(t$(0,s,1,"int32"),[-1,1]),d=t$(0,l,1,"int32"),f=Object(ta.a)(u,d),h=Object(eK.a)(Object(eB.a)(f,r),Object(eD.a)(f,Object(tu.a)(i))),g=Object(nR.a)([s,l],a.dtype);return Object(T.a)(Object(ns.a)(Object(nT.a)(Object(T.a)(a,[-1,s,l])).map(e=>Object(nF.a)(h,e,g))),o)}}),rh=Object(d.b)({gramSchmidt_:function(e){let t;if(Array.isArray(e)){t=!1,Object(p.c)(null!=e&&e.length>0,()=>"Gram-Schmidt process: input must not be null, undefined, or empty");let n=e[0].shape[0];for(let t=1;t<e.length;++t)Object(p.c)(e[t].shape[0]===n,()=>`Gram-Schmidt: Non-unique lengths found in the input vectors: (${e[t].shape[0]} vs. ${n})`)}else t=!0,e=Object(nr.a)(e,e.shape[0],0).map(e=>Object(no.a)(e,[0]));Object(p.c)(e.length<=e[0].shape[0],()=>`Gram-Schmidt: Number of vectors (${e.length}) exceeds number of dimensions (${e[0].shape[0]}).`);let n=[],r=e;for(let t=0;t<e.length;++t)n.push(l.a.tidy(()=>{let e=r[t];if(t>0)for(let r=0;r<t;++r){let t=Object(_.a)(Object(nc.a)(Object(_.a)(n[r],e)),n[r]);e=Object(ta.a)(e,t)}return Object(eh.a)(e,Object(nM.a)(e,"euclidean"))}));return t?Object(ns.a)(n,0):n}});var rg=n(30);function rb(e,t=!1){return l.a.tidy(()=>{Object(p.c)(2===e.shape.length,()=>`qr2d() requires a 2D Tensor, but got a ${e.shape.length}D Tensor.`);let n=e.shape[0],r=e.shape[1],i=ew(n),a=Object(q.a)(e),o=ng([[1]],[1,1]),s=Object(q.a)(o),u=n>=r?r:n;for(let e=0;e<u;++e){let t=a,u=s,c=i;[s,a,i]=l.a.tidy(()=>{let t=Object(R.a)(a,[e,e],[n-e,1]),l=Object(nM.a)(t),u=Object(R.a)(a,[e,e],[1,1]),c=Object(nF.a)(Object(eR.a)(u,0),ng([[-1]]),ng([[1]])),p=Object(ta.a)(u,Object(_.a)(c,l)),d=Object(eh.a)(t,p);s=1===d.shape[0]?Object(q.a)(o):Object(j.a)([o,Object(R.a)(d,[1,0],[d.shape[0]-1,d.shape[1]])],0);let f=Object(tu.a)(Object(eh.a)(Object(F.a)(c,p),l)),h=Object(R.a)(a,[e,0],[n-e,r]),g=Object(_.a)(f,s),b=Object(nA.a)(s);if(0===e)a=Object(ta.a)(h,Object(F.a)(g,Object(F.a)(b,h)));else{let t=Object(ta.a)(h,Object(F.a)(g,Object(F.a)(b,h)));a=Object(j.a)([Object(R.a)(a,[0,0],[e,r]),t],0)}let m=Object(nA.a)(g),y=Object(R.a)(i,[0,e],[n,i.shape[1]-e]);if(0===e)i=Object(ta.a)(y,Object(F.a)(Object(F.a)(y,s),m));else{let t=Object(ta.a)(y,Object(F.a)(Object(F.a)(y,s),m));i=Object(j.a)([Object(R.a)(i,[0,0],[n,e]),t],1)}return[s,a,i]}),Object(rg.d)([t,u,c])}return!t&&n>r&&(i=Object(R.a)(i,[0,0],[n,r]),a=Object(R.a)(a,[0,0],[r,r])),[i,a]})}let rm=Object(d.b)({qr_:function(e,t=!1){if(Object(p.c)(e.rank>=2,()=>"qr() requires input tensor to have a rank >= 2, but got rank "+e.rank),2===e.rank)return rb(e,t);{let n=e.shape.slice(0,e.shape.length-2).reduce((e,t)=>e*t),r=Object(nT.a)(Object(T.a)(e,[n,e.shape[e.shape.length-2],e.shape[e.shape.length-1]]),0),i=[],a=[];return r.forEach(e=>{let[n,r]=rb(e,t);i.push(n),a.push(r)}),[Object(T.a)(Object(ns.a)(i,0),e.shape),Object(T.a)(Object(ns.a)(a,0),e.shape)]}}});var ry=n(52);let rS=Object(d.b)({computeWeightedLoss_:function(e,t,n=ry.a.SUM_BY_NONZERO_WEIGHTS){let r=Object(c.a)(e,"losses","computeWeightedLoss"),i=null;null!=t&&(i=Object(c.a)(t,"weights","computeWeightedLoss"));let a=null==i?r:Object(_.a)(r,i);if(n===ry.a.NONE)return a;if(n===ry.a.SUM)return Object(nc.a)(a);if(n===ry.a.MEAN){if(null==i)return Object(e6.a)(a);{let e=r.size/i.size,t=Object(eh.a)(Object(nc.a)(a),Object(nc.a)(i));return e>1?Object(eh.a)(t,Object(tX.a)(e)):t}}if(n===ry.a.SUM_BY_NONZERO_WEIGHTS){if(null==i)return Object(eh.a)(Object(nc.a)(a),Object(tX.a)(r.size));{let e=Object(_.a)(i,Object(e5.a)(r.shape)),t=Object(N.a)(Object(nc.a)(Object(tc.a)(e,Object(tX.a)(0))),"float32");return Object(eh.a)(Object(nc.a)(a),t)}}throw Error("Unknown reduction: "+n)}}),rv=Object(d.b)({absoluteDifference_:function(e,t,n,r=ry.a.SUM_BY_NONZERO_WEIGHTS){let a=Object(c.a)(e,"labels","absoluteDifference"),o=Object(c.a)(t,"predictions","absoluteDifference"),s=null;return null!=n&&(s=Object(c.a)(n,"weights","absoluteDifference")),Object(p.f)(a.shape,o.shape,"Error in absoluteDifference: "),rS(Object(i.a)(Object(ta.a)(a,o)),s,r)}}),rO=Object(d.b)({cosineDistance_:function(e,t,n,r,i=ry.a.SUM_BY_NONZERO_WEIGHTS){let a=Object(c.a)(e,"labels","cosineDistance"),o=Object(c.a)(t,"predictions","cosineDistance"),s=null;null!=r&&(s=Object(c.a)(r,"weights","cosineDistance")),Object(p.f)(a.shape,o.shape,"Error in cosineDistance: ");let l=Object(tX.a)(1);return rS(Object(ta.a)(l,Object(nc.a)(Object(_.a)(a,o),n,!0)),s,i)}}),rx=Object(d.b)({hingeLoss_:function(e,t,n,r=ry.a.SUM_BY_NONZERO_WEIGHTS){let i=Object(c.a)(e,"labels","hingeLoss"),a=Object(c.a)(t,"predictions","hingeLoss"),o=null;null!=n&&(o=Object(c.a)(n,"weights","hingeLoss")),Object(p.f)(i.shape,a.shape,"Error in hingeLoss: ");let s=Object(tX.a)(1);return i=Object(ta.a)(Object(_.a)(Object(tX.a)(2),i),s),rS(Object(tB.a)(Object(ta.a)(s,Object(_.a)(i,a))),o,r)}}),rI=Object(d.b)({huberLoss_:function(e,t,n,r=1,a=ry.a.SUM_BY_NONZERO_WEIGHTS){let o=Object(c.a)(e,"labels","huberLoss"),l=Object(c.a)(t,"predictions","huberLoss"),u=null;null!=n&&(u=Object(c.a)(n,"weights","huberLoss")),Object(p.f)(o.shape,l.shape,"Error in huberLoss: ");let d=Object(tX.a)(r),f=Object(i.a)(Object(ta.a)(l,o)),h=Object(te.a)(f,d),g=Object(ta.a)(f,h);
1return rS(Object(s.a)(Object(_.a)(Object(tX.a)(.5),Object(ti.a)(h)),Object(_.a)(d,g)),u,a)}}),rN=Object(d.b)({logLoss_:function(e,t,n,r=1e-7,i=ry.a.SUM_BY_NONZERO_WEIGHTS){let a=Object(c.a)(e,"labels","logLoss"),o=Object(c.a)(t,"predictions","logLoss"),l=null;null!=n&&(l=Object(c.a)(n,"weights","logLoss")),Object(p.f)(a.shape,o.shape,"Error in logLoss: ");let u=Object(tX.a)(1),d=Object(tX.a)(r),f=Object(tu.a)(Object(_.a)(a,Object(ez.a)(Object(s.a)(o,d)))),h=Object(_.a)(Object(ta.a)(u,a),Object(ez.a)(Object(s.a)(Object(ta.a)(u,o),d)));return rS(Object(ta.a)(f,h),l,i)}}),rk=Object(d.b)({meanSquaredError_:function(e,t,n,r=ry.a.SUM_BY_NONZERO_WEIGHTS){let i=Object(c.a)(e,"labels","meanSquaredError"),a=Object(c.a)(t,"predictions","meanSquaredError"),o=null;return null!=n&&(o=Object(c.a)(n,"weights","meanSquaredError")),Object(p.f)(i.shape,a.shape,"Error in meanSquaredError: "),rS(Object(na.a)(i,a),o,r)}}),rT=Object(d.b)({sigmoidCrossEntropy_:function(e,t,n,r=0,a=ry.a.SUM_BY_NONZERO_WEIGHTS){let o=Object(c.a)(e,"multiClassLabels","sigmoidCrossEntropy"),l=Object(c.a)(t,"logits","sigmoidCrossEntropy"),u=null;if(null!=n&&(u=Object(c.a)(n,"weights","sigmoidCrossEntropy")),Object(p.f)(o.shape,l.shape,"Error in sigmoidCrossEntropy: "),r>0){let e=Object(tX.a)(r),t=Object(tX.a)(1),n=Object(tX.a)(.5);o=Object(s.a)(Object(_.a)(o,Object(ta.a)(t,e)),Object(_.a)(n,e))}return rS(function(e,t){let n=Object(c.a)(e,"labels","sigmoidCrossEntropyWithLogits"),r=Object(c.a)(t,"logits","sigmoidCrossEntropyWithLogits");Object(p.f)(n.shape,r.shape,"Error in sigmoidCrossEntropyWithLogits: ");let a=Object(tB.a)(r),o=Object(_.a)(r,n),l=Object(eG.a)(Object(eI.a)(Object(tu.a)(Object(i.a)(r))));return Object(s.a)(Object(ta.a)(a,o),l)}(o,l),u,a)}}),rw=Object(d.b)({softmaxCrossEntropy_:function(e,t,n,r=0,i=ry.a.SUM_BY_NONZERO_WEIGHTS){let a=Object(c.a)(e,"onehotLabels","softmaxCrossEntropy"),o=Object(c.a)(t,"logits","softmaxCrossEntropy"),l=null;if(null!=n&&(l=Object(c.a)(n,"weights","softmaxCrossEntropy")),Object(p.f)(a.shape,o.shape,"Error in softmaxCrossEntropy: "),r>0){let e=Object(tX.a)(r),t=Object(tX.a)(1),n=Object(tX.a)(a.shape[1]);a=Object(s.a)(Object(_.a)(a,Object(ta.a)(t,e)),Object(eh.a)(e,n))}return rS(function(e,t,n=-1){if(-1===n&&(n=t.rank-1),n!==t.rank-1)throw Error(`Softmax cross entropy along a non-last dimension is not yet supported. Labels / logits was rank ${t.rank} and dim was `+n);return Object(nH.a)((e,t,r)=>{let i=Object(eq.a)(t,[n],!0),a=Object(ta.a)(Object(N.a)(t,"float32"),i);r([e,a]);let o=Object(tu.a)(Object(_.a)(a,e));return{value:Object(nc.a)(o,[n]),gradFunc:(e,t)=>{let[r,i]=t,a=Object(tr.e)(e.shape,[n]);return[Object(_.a)(Object(T.a)(e,a),Object(ta.a)(Object(N.a)(r,"float32"),Object(eI.a)(i))),Object(_.a)(Object(T.a)(e,a),Object(ta.a)(Object(eI.a)(i),Object(N.a)(r,"float32")))]}}})(e,t)}(a,o),l,i)}}),rj=Object(d.b)({sparseFillEmptyRows_:function(e,t,n,r){let i=Object(c.a)(e,"indices","sparseFillEmptyRows","int32"),a=Object(c.a)(t,"values","sparseFillEmptyRows"),o=Object(c.a)(n,"denseShape","sparseFillEmptyRows","int32"),s=Object(c.a)(r,"defaultValue","sparseFillEmptyRows",a.dtype);if(2!==i.rank)throw Error("Indices should be Tensor2D but received shape\n "+i.shape);if(1!==a.rank)throw Error("Values should be Tensor1D but received shape "+a.shape);if(1!==o.rank)throw Error("Dense shape should be Tensor1D but received shape "+o.shape);if(0!==s.rank)throw Error("Default value should be a scalar but received shape "+s.shape);let p={indices:i,values:a,denseShape:o,defaultValue:s},d=l.a.runKernel(u.Uc,p);return{outputIndices:d[0],outputValues:d[1],emptyRowIndicator:d[2],reverseIndexMap:d[3]}}}),rF=Object(d.b)({sparseReshape_:function(e,t,n){let r=Object(c.a)(e,"inputIndices","sparseReshape","int32"),i=Object(c.a)(t,"inputShape","sparseReshape","int32"),a=Object(c.a)(n,"newShape","sparseReshape","int32");if(2!==r.rank)throw Error("Input indices should be Tensor2D but received shape\n "+r.shape);if(1!==i.rank)throw Error("Input shape should be Tensor1D but received shape "+i.shape);if(1!==a.rank)throw Error("New shape should be Tensor1D but received shape "+a.shape);let o={inputIndices:r,inputShape:i,newShape:a},s=l.a.runKernel(u.Vc,o);return{outputIndices:s[0],outputShape:s[1]}}}),r_=Object(d.b)({sparseSegmentMean_:function(e,t,n){let r=Object(c.a)(e,"data","sparseSegmentMean"),i=Object(c.a)(t,"indices","sparseSegmentMean","int32"),a=Object(c.a)(n,"segmentIds","sparseSegmentMean","int32");if(r.rank<1)throw Error("Data should be at least 1 dimensional but received scalar");
1if(1!==i.rank)throw Error("Indices should be Tensor1D but received shape\n "+i.shape);if(1!==a.rank)throw Error("Segment ids should be Tensor1D but received shape\n "+a.shape);let o={data:r,indices:i,segmentIds:a};return l.a.runKernel(u.Wc,o)}}),rE=Object(d.b)({sparseSegmentSum_:function(e,t,n){let r=Object(c.a)(e,"data","sparseSegmentSum"),i=Object(c.a)(t,"indices","sparseSegmentSum","int32"),a=Object(c.a)(n,"segmentIds","sparseSegmentSum","int32");if(r.rank<1)throw Error("Data should be at least 1 dimensional but received scalar");if(1!==i.rank)throw Error("Indices should be Tensor1D but received shape\n "+i.shape);if(1!==a.rank)throw Error("Segment ids should be Tensor1D but received shape\n "+a.shape);let o={data:r,indices:i,segmentIds:a};return l.a.runKernel(u.Xc,o)}}),rR=Object(d.b)({stringNGrams_:function(e,t,n,r,i,a,o,s){let p=Object(c.a)(e,"data","stringNGrams","string");if("string"!==p.dtype)throw Error("Data must be of datatype string");if(1!==p.shape.length)throw Error("Data must be a vector, saw: "+p.shape);let d=Object(c.a)(t,"dataSplits","stringNGrams");if("int32"!==d.dtype)throw Error("Data splits must be of datatype int32");let f={separator:n,nGramWidths:r,leftPad:i,rightPad:a,padWidth:o,preserveShortSequences:s},h={data:p,dataSplits:d},g=l.a.runKernel(u.gd,h,f);return{nGrams:g[0],nGramsSplits:g[1]}}}),rD=Object(d.b)({stringSplit_:function(e,t,n=!0){let r=Object(c.a)(e,"input","stringSplit","string"),i=Object(c.a)(t,"delimiter","stringSplit","string");if(1!==r.rank)throw Error("Input should be Tensor1D but received shape "+r.shape);if(0!==i.rank)throw Error("Delimiter should be a scalar but received shape "+i.shape);let a={skipEmpty:n},o={input:r,delimiter:i},s=l.a.runKernel(u.hd,o,a);return{indices:s[0],values:s[1],shape:s[2]}}}),rC=Object(d.b)({stringToHashBucketFast_:function(e,t){let n=Object(c.a)(e,"input","stringToHashBucketFast","string"),r={numBuckets:t};if(t<=0)throw Error("Number of buckets must be at least 1");let i={input:n};return l.a.runKernel(u.id,i,r)}}),rA=Object(d.b)({staticRegexReplace_:function(e,t,n,r=!0){let i=Object(c.a)(e,"input","staticRegexReplace","string"),a={pattern:t,rewrite:n,replaceGlobal:r};return l.a.runKernel(u.dd,{x:i},a)}}),rM={fft:t9.a,ifft:ne.a,rfft:nn.a,irfft:nt.a},r$={hammingWindow:n2,hannWindow:n3,frame:n4,stft:n6},rU={flipLeftRight:n8,grayscaleToRGB:n7,resizeNearestNeighbor:rc.a,resizeBilinear:ru.a,rgbToGrayscale:n9,rotateWithOffset:re,cropAndResize:n5,nonMaxSuppression:rn,nonMaxSuppressionAsync:ri,nonMaxSuppressionWithScore:ra,nonMaxSuppressionWithScoreAsync:ro,nonMaxSuppressionPadded:rs,nonMaxSuppressionPaddedAsync:rl,threshold:rp,transform:rd},rP={bandPart:rf,gramSchmidt:rh,qr:rm},rB={absoluteDifference:rv,computeWeightedLoss:rS,cosineDistance:rO,hingeLoss:rx,huberLoss:rI,logLoss:rN,meanSquaredError:rk,sigmoidCrossEntropy:rT,softmaxCrossEntropy:rw},rL={sparseFillEmptyRows:rj,sparseReshape:rF,sparseSegmentMean:r_,sparseSegmentSum:rE},rW={stringNGrams:rR,stringSplit:rD,stringToHashBucketFast:rC,staticRegexReplace:rA}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return l});var r=n(39);class i{constructor(e){this.global=e,this.flags={},this.flagRegistry={},this.urlFlags={},this.getQueryParams=a,this.populateURLFlags()}setPlatform(e,t){null!=this.platform&&(o().getBool("IS_TEST")||o().getBool("PROD")||console.warn(`Platform ${this.platformName} has already been set. Overwriting the platform with ${e}.`)),this.platformName=e,this.platform=t}registerFlag(e,t,n){if(this.flagRegistry[e]={evaluationFn:t,setHook:n},null!=this.urlFlags[e]){let t=this.urlFlags[e];o().getBool("IS_TEST")||o().getBool("PROD")||console.warn(`Setting feature override from URL ${e}: ${t}.`),this.set(e,t)}}async getAsync(e){return e in this.flags||(this.flags[e]=await this.evaluateFlag(e)),this.flags[e]}get(e){if(e in this.flags)return this.flags[e];let t=this.evaluateFlag(e);if(Object(r.n)(t))throw Error(`Flag ${e} cannot be synchronously evaluated. Please use getAsync() instead.`);return this.flags[e]=t,this.flags[e]}getNumber(e){return this.get(e)}getBool(e){return this.get(e)}getFlags(){return this.flags}get features(){return this.flags}set(e,t){if(null==this.flagRegistry[e])throw Error(`Cannot set flag ${e} as it has not been registered.`);this.flags[e]=t,null!=this.flagRegistry[e].setHook&&this.flagRegistry[e].setHook(t)}evaluateFlag(e){if(null==this.flagRegistry[e])throw Error(`Cannot evaluate flag '${e}': no evaluation function found.`);return this.flagRegistry[e].evaluationFn()}setFlags(e){this.flags=Object.assign({},e)}reset(){this.flags={},this.urlFlags={},this.populateURLFlags()}populateURLFlags(){if(void 0===this.global||void 0===this.global.location||void 0===this.global.location.search)return;let e=this.getQueryParams(this.global.location.search);
1"tfjsflags"in e&&e.tfjsflags.split(",").forEach(e=>{let[t,n]=e.split(":");this.urlFlags[t]=function(e,t){if("true"===(t=t.toLowerCase())||"false"===t)return"true"===t;if(""+ +t===t)return+t;throw Error(`Could not parse value flag value ${t} for flag ${e}.`)}(t,n)})}}function a(e){let t={};return e.replace(/[?&]([^=?&]+)(?:=([^&]*))?/g,(e,...n)=>((function(e,t,n){e[decodeURIComponent(t)]=decodeURIComponent(n||"")})(t,n[0],n[1]),n.join("="))),t}function o(){return s}let s=null;function l(e){s=e}},function(e,t,n){"use strict";n.r(t),n.d(t,"makeTypesMatch",function(){return o}),n.d(t,"assertTypesMatch",function(){return s}),n.d(t,"isTensorInList",function(){return l}),n.d(t,"getTensorsInContainer",function(){return u});var r=n(6),i=n(78),a=n(10);function o(e,t){if(e.dtype===t.dtype)return[e,t];let n=Object(i.e)(e.dtype,t.dtype);return[e.cast(n),t.cast(n)]}function s(e,t){Object(a.c)(e.dtype===t.dtype,()=>`The dtypes of the first(${e.dtype}) and second(${t.dtype}) input must match`)}function l(e,t){return t.some(t=>t.id===e.id)}function u(e){let t=[];return function e(t,n,i){var a;if(null==t)return;if(t instanceof r.a)return void n.push(t);if(!Array.isArray(a=t)&&"object"!=typeof a)return;let o=t;for(let t in o){let r=o[t];i.has(r)||(i.add(r),e(r,n,i))}}(e,t,new Set),t}},function(e,t,n){"use strict";n.d(t,"g",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"e",function(){return p}),n.d(t,"h",function(){return d}),n.d(t,"m",function(){return f}),n.d(t,"n",function(){return h}),n.d(t,"t",function(){return g}),n.d(t,"d",function(){return b}),n.d(t,"l",function(){return m}),n.d(t,"u",function(){return y}),n.d(t,"r",function(){return S}),n.d(t,"o",function(){return v}),n.d(t,"k",function(){return O}),n.d(t,"q",function(){return x}),n.d(t,"i",function(){return I}),n.d(t,"j",function(){return N}),n.d(t,"p",function(){return k}),n.d(t,"a",function(){return T}),n.d(t,"s",function(){return w});var r=n(5),i=n(24),a=n(6),o=n(29);function s(){Object(i.c)().set("PROD",!0)}function l(){Object(i.c)().set("DEBUG",!0)}function u(){Object(i.c)().set("DEPRECATION_WARNINGS_ENABLED",!1),console.warn("TensorFlow.js deprecation warnings have been disabled.")}function c(e){Object(i.c)().getBool("DEPRECATION_WARNINGS_ENABLED")&&console.warn(e+" You can disable deprecation warnings with tf.disableDeprecationWarnings().")}function p(){r.a.disposeVariables()}function d(){return r.a}function f(){return r.a.memory()}function h(e){return r.a.profile(e)}function g(e,t){return r.a.tidy(e,t)}function b(e){Object(o.getTensorsInContainer)(e).forEach(e=>e.dispose())}function m(e){return r.a.keep(e)}function y(e){return r.a.time(e)}function S(e){return r.a.setBackend(e)}function v(){return r.a.ready()}function O(){return r.a.backendName}function x(e){r.a.removeBackend(e)}function I(e){return r.a.findBackend(e)}function N(e){return r.a.findBackendFactory(e)}function k(e,t,n=1){return r.a.registerBackend(e,t,n)}function T(){return r.a.backend}function w(e,t){Object(i.c)().setPlatform(e,t)}Object(a.e)(c)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(29),o=n(2);let s=Object(n(4).b)({matMul_:function(e,t,n=!1,s=!1){let l=Object(o.a)(e,"a","matMul"),u=Object(o.a)(t,"b","matMul");[l,u]=Object(a.makeTypesMatch)(l,u);let c={a:l,b:u},p={transposeA:n,transposeB:s};return r.a.runKernel(i.s,c,p)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(5),i=n(2);let a=Object(n(4).b)({square_:function(e){let t=Object(i.a)(e,"x","square");return r.a.runKernel("Square",{x:t},{})}})},function(e,t,n){var r=n(316);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({slice_:function(e,t,n){let o=Object(a.a)(e,"x","slice","string_or_numeric");if(0===o.rank)throw Error("Slicing scalar is not possible");let s={x:o},l={begin:t,size:n};return r.a.runKernel(i.Qc,s,l)}})},function(e,t,n){var r=n(572)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({neg_:function(e){let t={x:Object(a.a)(e,"x","neg")};return r.a.runKernel(i.dc,t)}})},function(e,t,n){"use strict";var r=n(46),i=n(152).f,a=n(156),o=n(104),s=n(274),l=n(303),u=n(282);e.exports=function(e,t){var n,c,p,d,f,h=e.target,g=e.global,b=e.stat;if(n=g?r:b?r[h]||s(h,{}):r[h]&&r[h].prototype)for(c in t){if(d=t[c],p=e.dontCallGetSet?(f=i(n,c))&&f.value:n[c],!u(g?c:h+(b?".":"#")+c,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;l(d,p)}(e.sham||p&&p.sham)&&a(d,"sham",!0),o(n,c,d,e)}}},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return o});var r=n(42),i=n(163);function a(e,t){if(e.dtype===t.dtype)return[e,t];let n=Object(i.a)(e.dtype,t.dtype);return[e.cast(n),t.cast(n)]}function o(e){let t=[];return function e(t,n,i){var a;if(null==t)return;if(t instanceof r.a)return void n.push(t);if(!Array.isArray(a=t)&&"object"!=typeof a)return;let o=t;for(let t in o){let r=o[t];i.has(r)||(i.add(r),e(r,n,i))}}(e,t,new Set),t}n(39)},function(e,t,n){"use strict";function r(e,t){if(!e)throw Error("string"==typeof t?t:t())}function i(e,t,n=""){r(l(e,t),()=>n+` Shapes ${e} and ${t} must match`)}function a(e){r(null!=e,()=>"The input to the tensor constructor must be a non-null value.")}function o(e,t=[],n=!1){if(null==t&&(t=[]),Array.isArray(e)||g(e)&&!n)for(let r=0;r<e.length;++r)o(e[r],t,n);else t.push(e);return t}function s(e){if(0===e.length)return 1;let t=e[0];for(let n=1;n<e.length;n++)t*=e[n];return t}function l(e,t){if(e===t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function u(e,t){return t<=e.length?e:e+" ".repeat(t-e.length)}function c(e,t){let n=t.length;return r((e=null==e?t.map((e,t)=>t):[].concat(e)).every(e=>e>=-n&&e<n),()=>`All values in axis param must be in range [-${n}, ${n}) but got axis `+e),r(e.every(e=>e%1==0),()=>"All values in axis param must be integers but got axis "+e),e.map(e=>e<0?n+e:e)}function p(e,t){let n=[],r=[],i=null!=t&&Array.isArray(t)&&0===t.length,a=null==t||i?null:c(t,e).sort(),o=0;for(let t=0;t<e.length;++t){if(null!=a){if(a[o]===t&&1!==e[t])throw Error(`Can't squeeze axis ${t} since its dim '${e[t]}' is not 1`);(null==a[o]||a[o]>t)&&1===e[t]&&(n.push(e[t]),r.push(t)),a[o]<=t&&o++}1!==e[t]&&(n.push(e[t]),r.push(t))}return{newShape:n,keptDims:r}}function d(e,t){let n=null;if(null==e||"float32"===e)n=new Float32Array(t);else if("int32"===e)n=new Int32Array(t);else if("bool"===e)n=new Uint8Array(t);else{if("string"!==e)throw Error("Unknown data type "+e);n=Array(t)}return n}function f(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(isNaN(r)||!isFinite(r))throw Error(`A tensor of type ${t} being uploaded contains ${r}.`)}}function h(e){return"bool"===e||"complex64"===e||"float32"===e||"int32"===e||"string"===e}function g(e){return e instanceof Float32Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray}function b(e){if("float32"===e||"int32"===e)return 4;if("complex64"===e)return 8;if("bool"===e)return 1;throw Error("Unknown dtype "+e)}function m(e){if(null==e)return 0;let t=0;return e.forEach(e=>t+=e.length),t}function y(e){return"string"==typeof e||e instanceof String}function S(e){return Array.isArray(e)?S(e[0]):e instanceof Float32Array?"float32":e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray?"int32":"number"==typeof e?"float32":y(e)?"string":!function(e){return"boolean"==typeof e}(e)?"float32":"bool"}function v(e){return!!(e&&e.constructor&&e.call&&e.apply)}function O(e){let t=e.length;if(t<2)return[];let n=Array(t-1);n[t-2]=e[t-1];for(let r=t-3;r>=0;--r)n[r]=n[r+1]*e[r+1];return n}function x(e,t,n=!1){if(0===e.length)return t[0];let r=e.reduce((e,t)=>e*t)*(n?2:1);if(0===r)return[];if(r!==t.length)throw Error(`[${e}] does not match the input size ${t.length}${n?" for a complex tensor":""}.`);return function e(t,n,r,i=!1){let a=[];if(1===n.length){let e=n[0]*(i?2:1);for(let n=0;n<e;n++)a[n]=r[t+n]}else{let o=n[0],s=n.slice(1),l=s.reduce((e,t)=>e*t)*(i?2:1);for(let n=0;n<o;n++)a[n]=e(t+n*l,s,r,i)}return a}(0,e,t,n)}function I(e,t){let n=N(e,t);for(let e=0;e<n.length;e++)n[e]=1;return n}function N(e,t){if(null==t||"float32"===t||"complex64"===t)return new Float32Array(e);if("int32"===t)return new Int32Array(e);if("bool"===t)return new Uint8Array(e);throw Error("Unknown data type "+t)}function k(e){e.forEach(t=>{r(Number.isInteger(t)&&t>=0,()=>`Tensor must have a shape comprised of positive integers but got shape [${e}].`)})}function T(e){return e&&e.then&&"function"==typeof e.then}n.d(t,"b",function(){return r}),n.d(t,"e",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"j",function(){return o}
1),n.d(t,"v",function(){return s}),n.d(t,"a",function(){return l}),n.d(t,"u",function(){return u}),n.d(t,"t",function(){return c}),n.d(t,"w",function(){return p}),n.d(t,"k",function(){return d}),n.d(t,"h",function(){return f}),n.d(t,"q",function(){return h}),n.d(t,"p",function(){return g}),n.d(t,"g",function(){return b}),n.d(t,"f",function(){return m}),n.d(t,"o",function(){return y}),n.d(t,"l",function(){return S}),n.d(t,"m",function(){return v}),n.d(t,"i",function(){return O}),n.d(t,"x",function(){return x}),n.d(t,"r",function(){return I}),n.d(t,"s",function(){return N}),n.d(t,"c",function(){return k}),n.d(t,"n",function(){return T})},function(e,t,n){"use strict";(function(e){n.d(t,"g",function(){return c}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return b}),n.d(t,"a",function(){return v}),n.d(t,"b",function(){return O}),n.d(t,"d",function(){return x}),n.d(t,"c",function(){return I}),n.d(t,"k",function(){return N}),n.d(t,"i",function(){return k}),n.d(t,"h",function(){return T}),n.d(t,"j",function(){return w}),n.d(t,"l",function(){return j});var r=n(72),i=n(112),a=n(10),o=n(122),s=n(70),l=n(30),u=n(24);async function c(e,t){let n=[],r=[],i=Array.isArray(e)?e.map(e=>e.name):Object.keys(e);for(let a=0;a<i.length;++a){let o=i[a],s=Array.isArray(e)?e[a].tensor:e[o];if("float32"!==s.dtype&&"int32"!==s.dtype&&"bool"!==s.dtype&&"string"!==s.dtype&&"complex64"!==s.dtype)throw Error(`Unsupported dtype in weight '${o}': ${s.dtype}`);let l={name:o,shape:s.shape,dtype:s.dtype};if("string"===s.dtype){let e=new Promise(async e=>{let t=await s.bytes(),n=new Uint8Array(t.reduce((e,t)=>e+t.length,0)+4*t.length),r=0;for(let e=0;e<t.length;e++){let i=t[e],a=new Uint8Array(new Uint32Array([i.length]).buffer);n.set(a,r),r+=4,n.set(i,r),r+=i.length}e(n)});r.push(e)}else r.push(s.data());null!=t&&(l.group=t),n.push(l)}return{data:m(await Promise.all(r)),specs:n}}function p(e,t){let n=new s.a(e),r={},i=0;for(let e of t){let t=d(e,(e,t)=>n.slice(i+e,i+t));r[e.name]=h(e,n.slice(i,i+t)),i+=t}return r}function d(e,t){let n,r=Object(a.O)(e.shape);if("quantization"in e){let t=e.quantization;n=o.a[t.dtype]}else{if("string"===e.dtype){let e=0;for(let n=0;n<r;n++)e+=4+new Uint32Array(t(e,e+4))[0];return e}n=o.a[e.dtype]}return r*n}async function f(e,t){let n,r=Object(a.O)(e.shape);if("quantization"in e){let t=e.quantization;n=o.a[t.dtype]}else{if("string"===e.dtype){let e=0;for(let n=0;n<r;n++)e+=4+new Uint32Array(await t(e,e+4))[0];return e}n=o.a[e.dtype]}return r*n}function h(e,t){let n=e.name,s=e.dtype,l=e.shape,u=Object(a.O)(l),c,p=0;if("quantization"in e){let r=e.quantization;if("uint8"===r.dtype||"uint16"===r.dtype){if(!("min"in r)||!("scale"in r))throw Error(`Weight ${e.name} with quantization ${r.dtype} doesn't have corresponding metadata min and scale.`)}else{if("float16"!==r.dtype)throw Error(`Weight ${e.name} has unknown quantization dtype ${r.dtype}. Supported quantization dtypes are: 'uint8', 'uint16', and 'float16'.`);if("float32"!==s)throw Error(`Weight ${e.name} is quantized with ${r.dtype} which only supports weights of type float32 not ${s}.`)}let i=o.a[r.dtype],a="uint8"===r.dtype?new Uint8Array(t):new Uint16Array(t);if("float32"===s)if("uint8"===r.dtype||"uint16"===r.dtype){c=new Float32Array(a.length);for(let e=0;e<a.length;e++){let t=a[e];c[e]=t*r.scale+r.min}}else{if("float16"!==r.dtype)throw Error(`Unsupported quantization type ${r.dtype} for weight type float32.`);c=(function(){let e=function(){let e=e=>{let t=e<<13,n=0;for(;0==(8388608&t);)n-=8388608,t<<=1;return(t&=-8388609)|(n+=0x38800000)},t=new Uint32Array(2048);t[0]=0;for(let n=1;n<1024;n++)t[n]=e(n);for(let e=1024;e<2048;e++)t[e]=0x38000000+(e-1024<<13);return t}(),t=function(){let e=new Uint32Array(64);e[0]=0,e[31]=0x47800000,e[32]=0x80000000,e[63]=0xc7800000;for(let t=1;t<31;t++)e[t]=t<<23;for(let t=33;t<63;t++)e[t]=0x80000000+(t-32<<23);return e}(),n=function(){let e=new Uint32Array(64);for(let t=0;t<64;t++)e[t]=1024;return e[0]=e[32]=0,e}();return r=>{let i=new ArrayBuffer(4*r.length),a=new Uint32Array(i);for(let i=0;i<r.length;i++){let o=r[i],s=e[n[o>>10]+(1023&o)]+t[o>>10];a[i]=s}return new Float32Array(i)}})()(a)}else{if("int32"!==s)throw Error(`Unsupported dtype in weight '${n}': ${s}`);if("uint8"!==r.dtype&&"uint16"!==r.dtype)throw Error(`Unsupported quantization type ${r.dtype} for weight type int32.`);c=new Int32Array(a.length);for(let e=0;e<a.length;e++){let t=a[e];c[e]=Math.round(t*r.scale+r.min)}}p+=u*i}else if("string"===s){let n=Object(a.O)(e.shape);c=[];for(let e=0;e<n;e++){let e=new Uint32Array(t.slice(p,p+4))[0];p+=4;let n=new Uint8Array(t.slice(p,p+e));c.push(n),p+=e}}else{let e=o.a[s];if("float32"===s)c=new Float32Array(t);else if("int32"===s)c=new Int32Array(t);else{if("bool"!==s){if("complex64"===s){c=new Float32Array(t);let e=new Float32Array(c.length/2),n=new Float32Array(c.length/2);for(let t=0;t<e.length;t++)e[t]=c[2*t],n[t]=c[2*t+1];let a=Object(i.a)(e,l,"float32"),o=Object(i.a)(n,l,"float32"),s=Object(r.a)(a,o);return a.dispose(),o.dispose(),s}throw Error(`Unsupported dtype in weight '${n}': ${s}`)}c=new Uint8Array(t)}p+=u*e}return Object(i.a)(c,l,s)}async function g(e,t,n){let r=new Uint8Array(t);for(;r.byteLength<n;){let{done:t,value:i}=await e.read();if(t&&null==i){let e=n-r.byteLength;throw Error(`Reader is done but ${e} bytes are still expected`)}let a=new Uint8Array(r.length+i.byteLength);a.set(r,0),a.set(new Uint8Array(i),r.length),r=a}return r.buffer}async function b(e,t){let n={},r=e.getReader(),i=new ArrayBuffer(0);for(let e of t){let t=await f(e,async(e,t)=>(i=await g(r,i,t)).slice(e,t)),o=(i=await g(r,i,t)).slice(0,t);i=i.slice(t);let s=h(e,o);if(n[e.name]=s,"webgpu"===Object(l.k)()){let e=Object(l.a)();"uploadToGPU"in e&&Object(a.O)(s.shape)>=Object(u.c)().get("WEBGPU_CPU_HANDOFF_SIZE_THRESHOLD")&&e.uploadToGPU(s.dataId)}}return n}function m(e){if(null===e)throw Error("Invalid input value: "+JSON.stringify(e));let t=0,n=[];
1e.forEach(e=>{if(t+=e.byteLength,n.push(e.byteLength===e.buffer.byteLength?e:new e.constructor(e)),!(e instanceof Float32Array||e instanceof Int32Array||e instanceof Uint8Array))throw Error("Unsupported TypedArray subtype: "+e.constructor.name)});let r=new Uint8Array(t),i=0;return n.forEach(e=>{r.set(new Uint8Array(e.buffer),i),i+=e.byteLength}),r.buffer}let y=void 0!==e&&("undefined"==typeof Blob||"undefined"==typeof atob||"undefined"==typeof btoa);function S(t){return y?e.byteLength(t,"utf8"):new Blob([t]).size}function v(t){if(y)return e.from(t).toString("base64");let n=new Uint8Array(t),r="";for(let e=0,t=n.length;e<t;e++)r+=String.fromCharCode(n[e]);return btoa(r)}function O(t){if(y){let n=e.from(t,"base64");return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;++e)r.set([n.charCodeAt(e)],e);return r.buffer}function x(e){return s.a.join(e)}function I(e){for(e=e.trim();e.endsWith("/");)e=e.slice(0,e.length-1);let t=e.split("/");return t[t.length-1]}function N(e,t){let n={modelTopology:e.modelTopology,format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy,weightsManifest:t};return null!=e.signature&&(n.signature=e.signature),null!=e.userDefinedMetadata&&(n.userDefinedMetadata=e.userDefinedMetadata),null!=e.modelInitializer&&(n.modelInitializer=e.modelInitializer),null!=e.initializerSignature&&(n.initializerSignature=e.initializerSignature),null!=e.trainingConfig&&(n.trainingConfig=e.trainingConfig),n}function k(e,t,n){let r={modelTopology:e.modelTopology,format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy};if(null!=e.trainingConfig&&(r.trainingConfig=e.trainingConfig),null!=e.weightsManifest){if(!t)throw Error("modelJSON has weightsManifest but weightSpecs is null");if(!n)throw Error("modelJSON has weightsManifest but weightData is null");r.weightSpecs=t,r.weightData=n}return null!=e.signature&&(r.signature=e.signature),null!=e.userDefinedMetadata&&(r.userDefinedMetadata=e.userDefinedMetadata),null!=e.modelInitializer&&(r.modelInitializer=e.modelInitializer),null!=e.initializerSignature&&(r.initializerSignature=e.initializerSignature),r}async function T(e,t){let n,r;return null!=e.weightsManifest&&([n,r]=await t(e.weightsManifest)),k(e,n,r)}function w(e){if(e.modelTopology instanceof ArrayBuffer)throw Error("Expected JSON model topology, received ArrayBuffer.");return{dateSaved:new Date,modelTopologyType:"JSON",modelTopologyBytes:null==e.modelTopology?0:S(JSON.stringify(e.modelTopology)),weightSpecsBytes:null==e.weightSpecs?0:S(JSON.stringify(e.weightSpecs)),weightDataBytes:null==e.weightData?0:new s.a(e.weightData).byteLength}}function j(e){let t=[];for(let n of e)t.push(...n.weights);return t}}
1).call(this,n(226).Buffer)},function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"f",function(){return h}),n.d(t,"e",function(){return g}),n.d(t,"d",function(){return b}),n.d(t,"a",function(){return m}),n.d(t,"c",function(){return y});var r=n(151),i=n(39);function a(e,t,n,r){let a=Object(i.i)(t),u=function(e,t,n,r){let a=Object(i.v)(t),s=r[r.length-1],u=Array(s).fill(0),c=t.length,p="complex64"===n?l(e):e;if(c>1)for(let e=0;e<a/s;e++){let t=e*s;for(let e=0;e<s;e++)u[e]=Math.max(u[e],o(p[t+e],0,n).length)}return u}(e,t,n,a),c=t.length,p=function e(t,n,r,i,a,u=!0){let c="complex64"===r?2:1,p=n[0],d=n.length;if(0===d)return"complex64"===r?[o(l(t)[0],0,r)]:"bool"===r?[s(t[0])]:[t[0].toString()];if(1===d){if(p>20){let e=3*c,n=Array.from(t.slice(0,e)),i=Array.from(t.slice((p-3)*c,p*c));return"complex64"===r&&(n=l(n),i=l(i)),["["+n.map((e,t)=>o(e,a[t],r)).join(", ")+", ..., "+i.map((e,t)=>o(e,a[p-3+t],r)).join(", ")+"]"]}return["["+("complex64"===r?l(t):Array.from(t)).map((e,t)=>o(e,a[t],r)).join(", ")+"]"]}let f=n.slice(1),h=i.slice(1),g=i[0]*c,b=[];if(p>20){for(let n=0;n<3;n++){let i=n*g,o=i+g;b.push(...e(t.slice(i,o),f,r,h,a,!1))}b.push("...");for(let n=p-3;n<p;n++){let i=n*g,o=i+g;b.push(...e(t.slice(i,o),f,r,h,a,n===p-1))}}else for(let n=0;n<p;n++){let i=n*g,o=i+g;b.push(...e(t.slice(i,o),f,r,h,a,n===p-1))}let m=2===d?",":"";b[0]="["+b[0]+m;for(let e=1;e<b.length-1;e++)b[e]=" "+b[e]+m;let y=",\n";for(let e=2;e<d;e++)y+="\n";return b[b.length-1]=" "+b[b.length-1]+"]"+(u?"":y),b}(e,t,n,a,u),d=["Tensor"];return r&&(d.push(" dtype: "+n),d.push(" rank: "+c),d.push(` shape: [${t}]`),d.push(" values:")),d.push(p.map(e=>" "+e).join("\n")),d.join("\n")}function o(e,t,n){let r;return r=Array.isArray(e)?parseFloat(e[0].toFixed(7))+" + "+parseFloat(e[1].toFixed(7))+"j":Object(i.o)(e)?`'${e}'`:"bool"===n?s(e):parseFloat(e.toFixed(7)).toString(),Object(i.u)(r,t)}function s(e){return 0===e?"false":"true"}function l(e){let t=[];for(let n=0;n<e.length;n+=2)t.push([e[n],e[n+1]]);return t}var u=n(22);class c{constructor(e,t,n){if(this.dtype=t,this.shape=e.slice(),this.size=i.v(e),null!=n){let e=n.length;i.b(e===this.size,()=>`Length of values '${e}' does not match the size inferred by the shape '${this.size}'.`)}if("complex64"===t)throw Error("complex64 dtype TensorBuffers are not supported. Please create a TensorBuffer for the real and imaginary parts separately and call tf.complex(real, imag).");this.values=n||i.k(t,this.size),this.strides=Object(i.i)(e)}set(e,...t){0===t.length&&(t=[0]),i.b(t.length===this.rank,()=>`The number of provided coordinates (${t.length}) must match the rank (${this.rank})`);let n=this.locToIndex(t);this.values[n]=e}get(...e){0===e.length&&(e=[0]);let t=0;for(let n of e){if(n<0||n>=this.shape[t])throw Error(`Requested out of range element at ${e}. Buffer shape=`+this.shape);t++}let n=e[e.length-1];for(let t=0;t<e.length-1;++t)n+=this.strides[t]*e[t];return this.values[n]}locToIndex(e){if(0===this.rank)return 0;if(1===this.rank)return e[0];let t=e[e.length-1];for(let n=0;n<e.length-1;++n)t+=this.strides[n]*e[n];return t}indexToLoc(e){if(0===this.rank)return[];if(1===this.rank)return[e];let t=Array(this.shape.length);for(let n=0;n<t.length-1;++n)t[n]=Math.floor(e/this.strides[n]),e-=t[n]*this.strides[n];return t[t.length-1]=e,t}get rank(){return this.shape.length}toTensor(){return p().makeTensor(this.values,this.shape,this.dtype)}}let p=null,d=null,f=null;function h(e){p=e}function g(e){d=e}function b(e){f=e}class m{constructor(e,t,n,r){this.kept=!1,this.isDisposedInternal=!1,this.shape=e.slice(),this.dtype=t||"float32",this.size=i.v(e),this.strides=Object(i.i)(e),this.dataId=n,this.id=r,this.rankType=this.rank<5?this.rank.toString():"higher"}get rank(){return this.shape.length}async buffer(){let e=await this.data();return d.buffer(this.shape,this.dtype,e)}bufferSync(){return d.buffer(this.shape,this.dtype,this.dataSync())}async array(){let e=await this.data();return Object(i.x)(this.shape,e,"complex64"===this.dtype)}arraySync(){return Object(i.x)(this.shape,this.dataSync(),"complex64"===this.dtype)}async data(){this.throwIfDisposed();let e=p().read(this.dataId);if("string"===this.dtype){let t=await e;
1try{return t.map(e=>u.a(e))}catch(e){throw Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}}return e}dataToGPU(e){return this.throwIfDisposed(),p().readToGPU(this.dataId,e)}dataSync(){this.throwIfDisposed();let e=p().readSync(this.dataId);if("string"===this.dtype)try{return e.map(e=>u.a(e))}catch(e){throw Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}return e}async bytes(){this.throwIfDisposed();let e=await p().read(this.dataId);return"string"===this.dtype?e:new Uint8Array(e.buffer)}dispose(){this.isDisposed||(p().disposeTensor(this),this.isDisposedInternal=!0)}get isDisposed(){return this.isDisposedInternal}throwIfDisposed(){if(this.isDisposed)throw Error("Tensor is disposed.")}print(e=!1){return d.print(this,e)}clone(){return this.throwIfDisposed(),d.clone(this)}toString(e=!1){return a(this.dataSync(),this.shape,this.dtype,e)}cast(e){return this.throwIfDisposed(),d.cast(this,e)}variable(e=!0,t,n){return this.throwIfDisposed(),p().makeVariable(this,e,t,n)}}Object.defineProperty(m,Symbol.hasInstance,{value:e=>!!e&&null!=e.data&&null!=e.dataSync&&null!=e.throwIfDisposed}),Object(r.a)("Tensor",()=>m);class y extends m{constructor(e,t,n,r){super(e.shape,e.dtype,e.dataId,r),this.trainable=t,this.name=n}assign(e){if(e.dtype!==this.dtype)throw Error(`dtype of the new value (${e.dtype}) and previous value (${this.dtype}) must match`);if(!i.a(e.shape,this.shape))throw Error(`shape of the new value (${e.shape}) and previous value (${this.shape}) must match`);p().disposeTensor(this),this.dataId=e.dataId,p().incRef(this,null)}dispose(){p().disposeVariable(this),this.isDisposedInternal=!0}}Object.defineProperty(y,Symbol.hasInstance,{value:e=>e instanceof m&&null!=e.assign&&e.assign instanceof Function})},function(e,t,n){"use strict";var r=n(192),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(92);let l=Object(n(4).b)({concat_:function(e,t=0){Object(o.c)(e.length>=1,()=>"Pass at least one tensor to concat");let n=Object(a.b)(e,"tensors","concat","string_or_numeric");
1if("complex64"===n[0].dtype&&n.forEach(e=>{if("complex64"!==e.dtype)throw Error(`Cannot concatenate complex64 tensors with a tensor 2 with dtype ${e.dtype}. `)}),1===n.length)return Object(s.a)(n[0]);let l=n,u={axis:t};return r.a.runKernel(i.D,l,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(2),o=n(139),s=n(20);let l=Object(n(4).b)({where_:function(e,t,n){let l=Object(a.a)(t,"a","where"),u=Object(a.a)(n,"b","where"),c=Object(a.a)(e,"condition","where","bool"),p=Object(s.assertAndGetBroadcastShape)(Object(s.assertAndGetBroadcastShape)(c.shape,l.shape),u.shape),d={condition:Object(o.a)(c,p),t:Object(o.a)(l,p),e:Object(o.a)(u,p)};return r.a.runKernel(i.Kc,d)}})},function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n(114))},function(e,t,n){"use strict";(function(e){n.d(t,"e",function(){return s}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return f}),n.d(t,"h",function(){return h}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return b});var r=n(75),i=n(140),a=n(39),o=n(211);function s(e,t){let n={},s,l=0;for(let u of t){let t,c=u.name,p=u.dtype,d=u.shape,f=Object(a.v)(d);if("quantization"in u){let n=u.quantization;if("uint8"===n.dtype||"uint16"===n.dtype){if(!("min"in n)||!("scale"in n))throw Error(`Weight ${u.name} with quantization ${n.dtype} doesn't have corresponding metadata min and scale.`)}else{if("float16"!==n.dtype)throw Error(`Weight ${u.name} has unknown quantization dtype ${n.dtype}. Supported quantization dtypes are: 'uint8', 'uint16', and 'float16'.`);if("float32"!==p)throw Error(`Weight ${u.name} is quantized with ${n.dtype} which only supports weights of type float32 not ${p}.`)}let r=o.a[n.dtype],i=e.slice(l,l+f*r),a="uint8"===n.dtype?new Uint8Array(i):new Uint16Array(i);if("float32"===p)if("uint8"===n.dtype||"uint16"===n.dtype){t=new Float32Array(a.length);for(let e=0;e<a.length;e++){let r=a[e];t[e]=r*n.scale+n.min}}else{if("float16"!==n.dtype)throw Error(`Unsupported quantization type ${n.dtype} for weight type float32.`);void 0===s&&(s=m()),t=s(a)}else{if("int32"!==p)throw Error(`Unsupported dtype in weight '${c}': ${p}`);if("uint8"!==n.dtype&&"uint16"!==n.dtype)throw Error(`Unsupported quantization type ${n.dtype} for weight type int32.`);t=new Int32Array(a.length);for(let e=0;e<a.length;e++){let r=a[e];t[e]=Math.round(r*n.scale+n.min)}}l+=f*r}else if("string"===p){let n=Object(a.v)(u.shape);t=[];for(let r=0;r<n;r++){let n=new Uint32Array(e.slice(l,l+4))[0];l+=4;let r=new Uint8Array(e.slice(l,l+n));t.push(r),l+=n}}else{let a=o.a[p],s=e.slice(l,l+f*a);if("float32"===p)t=new Float32Array(s);else if("int32"===p)t=new Int32Array(s);else if("bool"===p)t=new Uint8Array(s);else{if("complex64"!==p)throw Error(`Unsupported dtype in weight '${c}': ${p}`);{t=new Float32Array(s);let e=new Float32Array(t.length/2),a=new Float32Array(t.length/2);for(let n=0;n<e.length;n++)e[n]=t[2*n],a[n]=t[2*n+1];let o=Object(i.a)(e,d,"float32"),l=Object(i.a)(a,d,"float32");n[c]=Object(r.a)(o,l),o.dispose(),l.dispose()}}l+=f*a}"complex64"!==p&&(n[c]=Object(i.a)(t,d,p))}return n}let l=void 0!==e&&("undefined"==typeof Blob||"undefined"==typeof atob||"undefined"==typeof btoa);function u(t){return l?e.byteLength(t):new Blob([t]).size}function c(t){if(l)return e.from(t).toString("base64");let n=new Uint8Array(t),r="";for(let e=0,t=n.length;e<t;e++)r+=String.fromCharCode(n[e]);return btoa(r)}function p(t){if(l){let n=e.from(t,"base64");return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;++e)r.set([n.charCodeAt(e)],e);return r.buffer}function d(e){if(1===e.length)return e[0];let t=0;e.forEach(e=>{t+=e.byteLength});let n=new Uint8Array(t),r=0;return e.forEach(e=>{n.set(new Uint8Array(e),r),r+=e.byteLength}),n.buffer}function f(e){for(e=e.trim();e.endsWith("/");)e=e.slice(0,e.length-1);let t=e.split("/");return t[t.length-1]}function h(e,t){let n={modelTopology:e.modelTopology,format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy,weightsManifest:t};return null!=e.signature&&(n.signature=e.signature),null!=e.userDefinedMetadata&&(n.userDefinedMetadata=e.userDefinedMetadata),null!=e.modelInitializer&&(n.modelInitializer=e.modelInitializer),null!=e.trainingConfig&&(n.trainingConfig=e.trainingConfig),n}async function g(e,t){let n={modelTopology:e.modelTopology,format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy};if(null!=e.trainingConfig&&(n.trainingConfig=e.trainingConfig),null!=e.weightsManifest){let[r,i]=await t(e.weightsManifest);n.weightSpecs=r,n.weightData=i}return null!=e.signature&&(n.signature=e.signature),null!=e.userDefinedMetadata&&(n.userDefinedMetadata=e.userDefinedMetadata),null!=e.modelInitializer&&(n.modelInitializer=e.modelInitializer),n}function b(e){if(e.modelTopology instanceof ArrayBuffer)throw Error("Expected JSON model topology, received ArrayBuffer.");return{dateSaved:new Date,modelTopologyType:"JSON",modelTopologyBytes:null==e.modelTopology?0:u(JSON.stringify(e.modelTopology)),weightSpecsBytes:null==e.weightSpecs?0:u(JSON.stringify(e.weightSpecs)),weightDataBytes:null==e.weightData?0:e.weightData.byteLength}}function m(){let e=function(){let e=e=>{let t=e<<13,n=0;for(;0==(8388608&t);)n-=8388608,t<<=1;return(t&=-8388609)|(n+=0x38800000)},t=new Uint32Array(2048);t[0]=0;for(let n=1;n<1024;n++)t[n]=e(n);for(let e=1024;e<2048;e++)t[e]=0x38000000+(e-1024<<13);return t}(),t=function(){let e=new Uint32Array(64);e[0]=0,e[31]=0x47800000,e[32]=0x80000000,e[63]=0xc7800000;for(let t=1;t<31;t++)e[t]=t<<23;
2for(let t=33;t<63;t++)e[t]=0x80000000+(t-32<<23);return e}(),n=function(){let e=new Uint32Array(64);for(let t=0;t<64;t++)e[t]=1024;return e[0]=e[32]=0,e}();return r=>{let i=new ArrayBuffer(4*r.length),a=new Uint32Array(i);for(let i=0;i<r.length;i++){let o=r[i],s=e[n[o>>10]+(1023&o)]+t[o>>10];a[i]=s}return new Float32Array(i)}}}).call(this,n(226).Buffer)},function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r=n(46),i=n(155),a=n(65),o=n(275),s=n(153),l=n(299),u=r.Symbol,c=i("wks"),p=l?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)||(c[e]=s&&a(u,e)?u[e]:p("Symbol."+e)),c[e]}},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l});var r=n(5),i=n(6),a=n(2),o=n(10);function s(e){return o.c(o.v(e),()=>"The f passed in grad(f) must be a function"),(t,n)=>{let i=Object(a.a)(t,"x","tf.grad","string_or_numeric"),s=null!=n?Object(a.a)(n,"dy","tf.grad"):null;return r.a.tidy(()=>{let{value:t,grads:n}=r.a.gradients(()=>e(i),[i],s);return null!=s&&o.f(t.shape,s.shape,"The shape of dy passed in grad(f)(x, dy) must match the shape returned by f(x)"),f(n),n[0]})}}function l(e){return o.c(o.v(e),()=>"The f passed in grads(f) must be a function"),(t,n)=>{o.c(Array.isArray(t),()=>"The args passed in grads(f)(args) must be an array of `Tensor`s or `TensorLike`s");let i=Object(a.b)(t,"args","tf.grads","string_or_numeric"),s=null!=n?Object(a.a)(n,"dy","tf.grads"):null;return r.a.tidy(()=>{let{value:t,grads:n}=r.a.gradients(()=>e(...i),i,s);return null!=s&&o.f(t.shape,s.shape,"The shape of dy passed in grads(f)([x1,...], dy) must match the shape returned by f([x1,...])"),f(n),n})}}function u(e){return o.c(o.v(e),()=>"The f passed in valueAndGrad(f) must be a function"),(t,n)=>{o.c(t instanceof i.a,()=>"The x passed in valueAndGrad(f)(x) must be a tensor"),o.c(null==n||n instanceof i.a,()=>"The dy passed in valueAndGrad(f)(x, dy) must be a tensor");let{grads:a,value:s}=r.a.gradients(()=>e(t),[t],n);return f(a),{grad:a[0],value:s}}}function c(e){return o.c(o.v(e),()=>"The f passed in valueAndGrads(f) must be a function"),(t,n)=>{o.c(Array.isArray(t)&&t.every(e=>e instanceof i.a),()=>"The args passed in valueAndGrads(f)(args) must be array of tensors"),o.c(null==n||n instanceof i.a,()=>"The dy passed in valueAndGrads(f)(args, dy) must be a tensor");let a=r.a.gradients(()=>e(...t),t,n);return null!=n&&o.f(a.value.shape,n.shape,"The shape of dy passed in valueAndGrads(f)([x1,...], dy) must match the shape returned by f([x1,...])"),f(a.grads),a}}function p(e,t){o.c(o.v(e),()=>"The f passed in variableGrads(f) must be a function"),o.c(null==t||Array.isArray(t)&&t.every(e=>e instanceof i.c),()=>"The varList passed in variableGrads(f, varList) must be an array of variables");let n=null!=t;if(!n)for(let e in t=[],r.a.registeredVariables)t.push(r.a.registeredVariables[e]);let a=n?t.filter(e=>!e.trainable):null,s=t.length;t=t.filter(e=>e.trainable),o.c(t.length>0,()=>`variableGrads() expects at least one of the input variables to be trainable, but none of the ${s} variables is trainable.`);let{value:l,grads:u}=r.a.gradients(e,t,null,!0);o.c(u.some(e=>null!=e),()=>"Cannot find a connection between any variable and the result of the loss function y=f(x). Please make sure the operations that use variables are inside the function f passed to minimize()."),o.c(0===l.rank,()=>`The f passed in variableGrads(f) must return a scalar, but it returned a rank-${l.rank} tensor`);let c={};return t.forEach((e,t)=>{null!=u[t]&&(c[e.name]=u[t])}),null!=a&&a.forEach(e=>c[e.name]=null),{value:l,grads:c}}function d(e){return r.a.customGrad(e)}function f(e){if(e.filter(e=>null==e).length>0)throw Error("Cannot compute gradient of y=f(x) with respect to x. Make sure that\n the f you passed encloses all operations that lead from x to y.")}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({sqrt_:function(e){let t={x:Object(a.a)(e,"x","sqrt","float32")};return r.a.runKernel(i.ad,t)}})},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.NONE=0]="NONE",e[e.MEAN=1]="MEAN",e[e.SUM=2]="SUM",e[e.SUM_BY_NONZERO_WEIGHTS=3]="SUM_BY_NONZERO_WEIGHTS"}(r||(r={}))},function(module,exports,__nested_webpack_require_216888__){(function(global){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$",$jscomp.polyfill=function(e,t,n,r){t&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,t,n,r):$jscomp.polyfillUnisolated(e,t,n,r))},$jscomp.polyfillUnisolated=function(e,t){var n=$jscomp.global;e=e.split(".");for(var r=0;r<e.length-1;r++){var i=e[r];if(!(i in n))return;n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:t})},$jscomp.polyfillIsolated=function(e,t,n){var r=e.split(".");e=1===r.length;var i=r[0];i=!e&&i in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var a=0;a<r.length-1;a++){var o=r[a];if(!(o in i))return;i=i[o]}r=r[r.length-1],null!=(t=t(n=$jscomp.IS_SYMBOL_NATIVE&&"es6"===n?i[r]:null))&&(e?$jscomp.defineProperty($jscomp.polyfills,r,{configurable:!0,writable:!0,value:t}):t!==n&&(void 0===$jscomp.propertyToPolyfillSymbol[r]&&(e=1e9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[r]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(r):$jscomp.POLYFILL_PREFIX+e+"$"+r),$jscomp.defineProperty(i,$jscomp.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:t})))},$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(e){if(e)return e;var t=function(e,t){this.$jscomp$symbol$id_=e,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0,i=function(e){if(this instanceof i)throw TypeError("Symbol is not a constructor");return new t(n+(e||"")+"_"+r++,e)};return i},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var r=$jscomp.global[t[n]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&$jscomp.defineProperty(r.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6","es3"),$jscomp.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},$jscomp.createTemplateTagFirstArg=function(e){return e.raw=e},$jscomp.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,e},$jscomp.makeIterator=function(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):$jscomp.arrayIterator(e)},$jscomp.arrayFromIterator=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n},$jscomp.arrayFromIterable=function(e){return e instanceof Array?e:$jscomp.arrayFromIterator($jscomp.makeIterator(e))},$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(e){var t=function(){};return t.prototype=e,new t},$jscomp.getConstructImplementation=function(){if($jscomp.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(function(){function e(){}return new e,Reflect.construct(e,[],function(){}),new e instanceof e}())return Reflect.construct;var e=Reflect.construct;return function(t,n,r){return t=e(t,n),r&&Reflect.setPrototypeOf(t,r.prototype),t}}return function(e,t,n){return void 0===n&&(n=e),n=$jscomp.objectCreate(n.prototype||Ob
vendor: 21,562 bytes, line 2
2ject.prototype),Function.prototype.apply.call(e,n,t)||n}},$jscomp.construct=$jscomp.getConstructImplementation(),$jscomp.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw TypeError(e+" is not extensible");return e}:null,$jscomp.inherits=function(e,t){if(e.prototype=$jscomp.objectCreate(t.prototype),e.prototype.constructor=e,$jscomp.setPrototypeOf){var n=$jscomp.setPrototypeOf;n(e,t)}else for(n in t)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.superClass_=t.prototype},$jscomp.generator={},$jscomp.generator.ensureIteratorResultIsObject_=function(e){if(!(e instanceof Object))throw TypeError("Iterator result "+e+" is not an object")},$jscomp.generator.Context=function(){this.isRunning_=!1,this.yieldAllIterator_=null,this.yieldResult=void 0,this.nextAddress=1,this.finallyAddress_=this.catchAddress_=0,this.finallyContexts_=this.abruptCompletion_=null},$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw TypeError("Generator is already running");this.isRunning_=!0},$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1},$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_},$jscomp.generator.Context.prototype.next_=function(e){this.yieldResult=e},$jscomp.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0},this.jumpToErrorHandler_()},$jscomp.generator.Context.prototype.return=function(e){this.abruptCompletion_={return:e},this.nextAddress=this.finallyAddress_},$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(e){this.abruptCompletion_={jumpTo:e},this.nextAddress=this.finallyAddress_},$jscomp.generator.Context.prototype.yield=function(e,t){return this.nextAddress=t,{value:e}},$jscomp.generator.Context.prototype.yieldAll=function(e,t){var n=(e=$jscomp.makeIterator(e)).next();if($jscomp.generator.ensureIteratorResultIsObject_(n),!n.done)return this.yieldAllIterator_=e,this.yield(n.value,t);this.yieldResult=n.value,this.nextAddress=t},$jscomp.generator.Context.prototype.jumpTo=function(e){this.nextAddress=e},$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0},$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(e,t){this.catchAddress_=e,void 0!=t&&(this.finallyAddress_=t)},$jscomp.generator.Context.prototype.setFinallyBlock=function(e){this.catchAddress_=0,this.finallyAddress_=e||0},$jscomp.generator.Context.prototype.leaveTryBlock=function(e,t){this.nextAddress=e,this.catchAddress_=t||0},$jscomp.generator.Context.prototype.enterCatchBlock=function(e){return this.catchAddress_=e||0,e=this.abruptCompletion_.exception,this.abruptCompletion_=null,e},$jscomp.generator.Context.prototype.enterFinallyBlock=function(e,t,n){n?this.finallyContexts_[n]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_],this.catchAddress_=e||0,this.finallyAddress_=t||0},$jscomp.generator.Context.prototype.leaveFinallyBlock=function(e,t){if(t=this.finallyContexts_.splice(t||0)[0],t=this.abruptCompletion_=this.abruptCompletion_||t){if(t.isException)return this.jumpToErrorHandler_();void 0!=t.jumpTo&&this.finallyAddress_<t.jumpTo?(this.nextAddress=t.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=e},$jscomp.generator.Context.prototype.forIn=function(e){return new $jscomp.generator.Context.PropertyIterator(e)},$jscomp.generator.Context.PropertyIterator=function(e){for(var t in this.object_=e,this.properties_=[],e)this.properties_.push(t);this.properties_.reverse()},$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var e=this.properties_.pop();if(e in this.object_)return e}return null},$jscomp.generator.Engine_=function(e){this.context_=new $jscomp.generator.Context,this.program_=e},$jscomp.generator.Engine_.prototype.next_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.next,e,this.context_.next_):(this.context_.next_(e),this.nextStep_())},$jscomp.generator.Engine_.prototype.return_=function(e){this.context_.start_();var t=this.context_.yieldAllIterator_;return t?this.yieldAllStep_("return"in t?t.return:function(e){return{value:e,done:!0}},e,this.context_.return):(this.context_.return(e),this.nextStep_())},$jscomp.generator.Engine_.prototype.throw_=function(e){return this.context_.start_(),this.context_.yieldAllIterator_?this.yieldAllStep_(this.context_.yieldAllIterator_.throw,e,this.context_.next_):(this.context_.throw_(e),this.nextStep_())},$jscomp.generator.Engine_.prototype.yieldAllStep_=function(e,t,n){try{var r=e.call(this.context_.yieldAllIterator_,t);if($jscomp.generator.ensureIteratorResultIsObject_(r),!r.done)return this.context_.stop_(),r;var i=r.value}catch(e){return this.context_.yieldAllIterator_=null,this.context_.throw_(e),this.nextStep_()}return this.context_.yieldAllIterator_=null,n.call(this.context_,i),this.nextStep_()},$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var e=this.program_(this.context_);if(e)return this.context_.stop_(),{value:e.value,done:!1}}catch(e){this.context_.yieldResult=void 0,this.context_.throw_(e)}if(this.context_.stop_(),this.context_.abruptCompletion_){if(e=this.context_.abruptCompletion_,this.context_.abruptCompletion_=null,e.isException)throw e.exception;return{value:e.return,done:!0}}return{value:void 0,done:!0}},$jscomp.generator.Generator_=function(e){this.next=function(t){return e.next_(t)},this.throw=function(t){return e.throw_(t)},this.return=function(t){return e.return_(t)},this[Symbol.iterator]=function(){return this}},$jscomp.generator.createGenerator=function(e,t){return t=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(t)),$jscomp.setPrototypeOf&&e.prototype&&$jscomp.setPrototypeOf(t,e.prototype),t},$jscomp.asyncExecutePromiseGenerator=function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise(function(r,i){!function e(a){a.done?r(a.value):Promise.resolve(a.value).then(t,n).then(e,i)}(e.next())})},$jscomp.asyncExecutePromiseGeneratorFunction=function(e){return $jscomp.asyncExecutePromiseGenerator(e())},$jscomp.asyncExecutePromiseGeneratorProgram=function(e){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(e)))},$jscomp.polyfill("Reflect",function(e){return e||{}},"es6","es3"),$jscomp.polyfill("Reflect.construct",function(){return $jscomp.construct},"es6","es3"),$jscomp.polyfill("Reflect.setPrototypeOf",function(e){if(e)return e;if($jscomp.setPrototypeOf){var t=$jscomp.setPrototypeOf;return function(e,n){try{return t(e,n),!0}catch(e){return!1}}}return null},"es6","es5"),$jscomp.polyfill("Promise",function(e){function t(){this.batch_=null}function n(e){return e instanceof s?e:new s(function(t){t(e)})}if(e&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&void 0===$jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return e;t.prototype.asyncExecute=function(e){if(null==this.batch_){this.batch_=[];var t=this;this.asyncExecuteFunction(function(){t.executeBatch_()})}this.batch_.push(e)};var r=$jscomp.global.setTimeout;t.prototype.asyncExecuteFunction=function(e){r(e,0)},t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var e=this.batch_;this.batch_=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.asyncThrow_(e)}}}this.batch_=null},t.prototype.asyncThrow_=function(e){this.asyncExecuteFunction(function(){throw e})};var i=0,a=1,o=2,s=function(e){this.state_=i,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var t=this.createResolveAndReject_();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}};s.prototype.createResolveAndReject_=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.resolveTo_),reject:e(this.reject_)}},s.prototype.resolveTo_=function(e){if(e===this)this.reject_(TypeError("A Promise cannot resolve to itself"));else if(e instanceof s)this.settleSameAsPromise_(e);else{switch(typeof e){case"object":var t=null!=e;break;case"function":t=!0;break;default:t=!1}t?this.resolveToNonPromiseObj_(e):this.fulfill_(e)}},s.prototype.resolveToNonPromiseObj_=function(e){var t=void 0;try{t=e.then}catch(e){return void this.reject_(e)}"function"==typeof t?this.settleSameAsThenable_(t,e):this.fulfill_(e)},s.prototype.reject_=function(e){this.settle_(o,e)},s.prototype.fulfill_=function(e){this.settle_(a,e)},s.prototype.settle_=function(e,t){if(this.state_!=i)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.state_);this.state_=e,this.result_=t,this.state_===o&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},s.prototype.scheduleUnhandledRejectionCheck_=function(){var e=this;r(function(){if(e.notifyUnhandledRejection_()){var t=$jscomp.global.console;void 0!==t&&t.error(e.result_)}},1)},s.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var e=$jscomp.global.CustomEvent,t=$jscomp.global.Event,n=$jscomp.global.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=$jscomp.global.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.result_,n(e))},s.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var e=0;e<this.onSettledCallbacks_.length;++e)l.asyncExecute(this.onSettledCallbacks_[e]);this.onSettledCallbacks_=null}};var l=new t;return s.prototype.settleSameAsPromise_=function(e){var t=this.createResolveAndReject_();e.callWhenSettled_(t.resolve,t.reject)},s.prototype.settleSameAsThenable_=function(e,t){var n=this.createResolveAndReject_();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},s.prototype.then=function(e,t){function n(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(e){i(e)}}:t}var r,i,a=new s(function(e,t){r=e,i=t});return this.callWhenSettled_(n(e,r),n(t,i)),a},s.prototype.catch=function(e){return this.then(void 0,e)},s.prototype.callWhenSettled_=function(e,t){function n(){switch(r.state_){case a:e(r.result_);break;case o:t(r.result_);break;default:throw Error("Unexpected state: "+r.state_)}}var r=this;null==this.onSettledCallbacks_?l.asyncExecute(n):this.onSettledCallbacks_.push(n),this.isRejectionHandled_=!0},s.resolve=n,s.reject=function(e){return new s(function(t,n){n(e)})},s.race=function(e){return new s(function(t,r){for(var i=$jscomp.makeIterator(e),a=i.next();!a.done;a=i.next())n(a.value).callWhenSettled_(t,r)})},s.all=function(e){var t=$jscomp.makeIterator(e),r=t.next();return r.done?n([]):new s(function(e,i){function a(t){return function(n){o[t]=n,0==--s&&e(o)}}var o=[],s=0;do o.push(void 0),s++,n(r.value).callWhenSettled_(a(o.length-1),i),r=t.next();while(!r.done)})},s},"es6","es3"),$jscomp.findInternal=function(e,t,n){e instanceof String&&(e=String(e));for(var r=e.length,i=0;i<r;i++){var a=e[i];if(t.call(n,a,i,e))return{i:i,v:a}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}},"es6","es3"),$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},t=Object.create(new $jscomp.global.Proxy(e,{get:function(n,r,i){return n==e&&"q"==r&&i==t}}));return!0===t.q}catch(e){return!1}},$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy(),$jscomp.owns=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},$jscomp.polyfill("WeakMap",function(e){function t(){}function n(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function r(e){if(!$jscomp.owns(e,a)){var n=new t;$jscomp.defineProperty(e,a,{value:n})}}function i(e){if(!$jscomp.ISOLATE_POLYFILLS){var n=Object[e];n&&(Object[e]=function(e){return e instanceof t?e:(Object.isExtensible(e)&&r(e),n(e))})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),r=new e([[t,2],[n,3]]);return 2==r.get(t)&&3==r.get(n)&&(r.delete(t),r.set(n,4),!r.has(t)&&4==r.get(n))}catch(e){return!1}}())return e;var a="$jscomp_hidden_"+Math.random();i("freeze"),i("preventExtensions"),i("seal");var o=0,s=function(e){if(this.id_=(o+=Math.random()+1).toString(),e){e=$jscomp.makeIterator(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}};return s.prototype.set=function(e,t){if(!n(e))throw Error("Invalid WeakMap key");if(r(e),!$jscomp.owns(e,a))throw Error("WeakMap key fail: "+e);return e[a][this.id_]=t,this},s.prototype.get=function(e){return n(e)&&$jscomp.owns(e,a)?e[a][this.id_]:void 0},s.prototype.has=function(e){return n(e)&&$jscomp.owns(e,a)&&$jscomp.owns(e[a],this.id_)},s.prototype.delete=function(e){return!!(n(e)&&$jscomp.owns(e,a)&&$jscomp.owns(e[a],this.id_))&&delete e[a][this.id_]},s},"es6","es3"),$jscomp.MapEntry=function(){},$jscomp.polyfill("Map",function(e){if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(function(){if($jscomp.ASSUME_NO_NATIVE_MAP||!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e($jscomp.makeIterator([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&"s"==i.value[1]&&!((i=r.next()).done||4!=i.value[0].x||"t"!=i.value[1]||!r.next().done)}catch(e){return!1}}())return e;var t=new WeakMap,n=function(e){if(this.data_={},this.head_=a(),this.size=0,e){e=$jscomp.makeIterator(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}};n.prototype.set=function(e,t){var n=r(this,e=0===e?0:e);return n.list||(n.list=this.data_[n.id]=[]),n.entry?n.entry.value=t:(n.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:t},n.list.push(n.entry),this.head_.previous.next=n.entry,this.head_.previous=n.entry,this.size++),this},n.prototype.delete=function(e){return!(!(e=r(this,e)).entry||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this.data_[e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,!0)},n.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=a(),this.size=0},n.prototype.has=function(e){return!!r(this,e).entry},n.prototype.get=function(e){return(e=r(this,e).entry)&&e.value},n.prototype.entries=function(){return i(this,function(e){return[e.key,e.value]})},n.prototype.keys=function(){return i(this,function(e){return e.key})},n.prototype.values=function(){return i(this,function(e){return e.value})},n.prototype.forEach=function(e,t){for(var n,r=this.entries();!(n=r.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},n.prototype[Symbol.iterator]=n.prototype.entries;var r=function(e,n){var r=n&&typeof n;"object"==r||"function"==r?t.has(n)?r=t.get(n):(r=""+ ++o,t.set(n,r)):r="p_"+n;var i=e.data_[r];if(i&&$jscomp.owns(e.data_,r))for(e=0;e<i.length;e++){var a=i[e];if(n!=n&&a.key!=a.key||n===a.key)return{id:r,list:i,index:e,entry:a}}return{id:r,list:i,index:-1,entry:void 0}},i=function(e,t){var n=e.head_;return $jscomp.iteratorPrototype(function(){if(n){for(;n.head!=e.head_;)n=n.previous;for(;n.next!=n.head;)return{done:!1,value:t(n=n.next)};n=null}return{done:!0,value:void 0}})},a=function(){var e={};return e.previous=e.next=e.head=e},o=0;return n},"es6","es3"),$jscomp.polyfill("Number.isFinite",function(e){return e||function(e){return"number"==typeof e&&!isNaN(e)&&1/0!==e&&-1/0!==e}},"es6","es3"),$jscomp.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i},$jscomp.polyfill("Array.prototype.entries",function(e){return e||function(){return $jscomp.iteratorFromArray(this,function(e,t){return[e,t]})}},"es6","es3"),$jscomp.polyfill("Array.from",function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var r=[],i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof i){e=i.call(e);for(var a=0;!(i=e.next()).done;)r.push(t.call(n,i.value,a++))}else for(i=e.length,a=0;a<i;a++)r.push(t.call(n,e[a],a));return r}},"es6","es3"),$jscomp.polyfill("Array.prototype.keys",function(e){return e||function(){return $jscomp.iteratorFromArray(this,function(e){return e})}},"es6","es3"),$jscomp.polyfill("Number.isNaN",function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}},"es6","es3"),$jscomp.polyfill("Array.prototype.fill",function(e){return e||function(e,t,n){var r=this.length||0;for(0>t&&(t=Math.max(0,r+t)),(null==n||n>r)&&(n=r),0>(n=Number(n))&&(n=Math.max(0,r+n)),t=Number(t||0);t<n;t++)this[t]=e;return this}},"es6","es3"),$jscomp.typedArrayFill=function(e){return e||Array.prototype.fill},$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"),$jscomp.polyfill("Object.setPrototypeOf",function(e){return e||$jscomp.setPrototypeOf},"es6","es5"),$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)$jscomp.owns(r,i)&&(e[i]=r[i])}return e},$jscomp.polyfill("Object.assign",function(e){return e||$jscomp.assign},"es6","es3"),$jscomp.polyfill("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)$jscomp.owns(e,t)&&n.push([t,e[t]]);return n}},"es8","es3"),$jscomp.checkStringArgs=function(e,t,n){if(null==e)throw TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""},$jscomp.polyfill("String.prototype.endsWith",function(e){return e||function(e,t){var n=$jscomp.checkStringArgs(this,e,"endsWith");e+="",void 0===t&&(t=n.length),t=Math.max(0,Math.min(0|t,n.length));for(var r=e.length;0<r&&0<t;)if(n[--t]!=e[--r])return!1;return 0>=r}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(e){return e||function(e,t){var n=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var r=n.length,i=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var a=0;a<i&&t<r;)if(n[t++]!=e[a++])return!1;return a>=i}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||0x4fffffff<e)throw RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}},"es6","es3");var goog=goog||{};goog.global=this||self,goog.exportPath_=function(e,t,n,r){e=e.split("."),r=r||goog.global,e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(var i;e.length&&(i=e.shift());)if(e.length||void 0===t)r=r[i]&&r[i]!==Object.prototype[i]?r[i]:r[i]={};else if(!n&&goog.isObject(t)&&goog.isObject(r[i]))for(var a in t)t.hasOwnProperty(a)&&(r[i][a]=t[a]);else r[i]=t},goog.define=function(e,t){return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.getLocale=function(){return"en"},goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.readFlagInternalDoNotUseOrElse=function(e,t){var n=goog.getObjectByName(goog.FLAGS_OBJECT_);return null!=(e=n&&n[e])?e:t},goog.FLAGS_OBJECT_="CLOSURE_FLAGS",goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t,n){goog.exportPath_(e,t,n)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.getScriptNonce_=function(e){return(e=(e=(e||goog.global).document).querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if("string"!=typeof e||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as
2normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=e},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&"function"==typeof e.getCurrentModulePath&&!!e.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||"function"!=typeof t.getCurrentModulePath)throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw Error("Importing test-only code into non-debug environment"+((e=e||"")?": "+e:"."))},goog.forwardDeclare=function(){},goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var n=0;n<e.length;n++)if(null==(t=t[e[n]]))return null;return t},goog.addDependency=function(){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(){},goog.requireType=function(){return{}},goog.basePath="",goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!1,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRUSTED_TYPES_POLICY_NAME="goog",goog.hasBadLetScoping=null,goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var n={},r=n;if("function"==typeof e)r=e.call(void 0,r);else{if("string"!=typeof e)throw Error("Invalid module definition");r=goog.loadModuleFromSource_.call(void 0,r,e)}var i=goog.moduleLoaderState_.moduleName;if("string"!=typeof i||!i)throw Error('Invalid module name "'+i+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(i,r,n!==r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof r&&null!=r&&Object.seal(r),goog.loadedModules_[i]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName}}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a,b){return eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(b)),a},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)"."==e[t]?e.splice(t,1):t&&".."==e[t]&&e[t-1]&&".."!=e[t-1]?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),0==t.status||200==t.status?t.responseText:null}catch(e){return null}},goog.typeOf=function(e){var t=typeof e;return"object"!=t?t:e?Array.isArray(e)?"array":t:"null"},goog.isArrayLike=function(e){var t=goog.typeOf(e);return"array"==t||"object"==t&&"number"==typeof e.length},goog.isDateLike=function(e){return goog.isObject(e)&&"function"==typeof e.getFullYear},goog.isObject=function(e){var t=typeof e;return"object"==t&&null!=e||"function"==t},goog.getUid=function(e){return Object.prototype.hasOwnProperty.call(e,goog.UID_PROPERTY_)&&e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){null!==e&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch(e){}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();if("undefined"!=typeof Map&&e instanceof Map)return new Map(e);if("undefined"!=typeof Set&&e instanceof Set)return new Set(e);for(var n in t="array"==t?[]:{},e)t[n]=goog.cloneObject(e[n]);return t}return e},goog.bindNative_=function(e,t,n){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,n){return Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var n=Array.prototype.slice.call(arguments,1
vendor: 22,635 bytes, line 2
2);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}},goog.now=function(){return Date.now()},goog.globalEval=function(e){(0,eval)(e)},goog.getCssName=function(e,t){if("."==String(e).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var n=function(e){return goog.cssNameMapping_[e]||e},r=function(e){e=e.split("-");for(var t=[],r=0;r<e.length;r++)t.push(n(e[r]));return t.join("-")};return r=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?n:r:function(e){return e},e=t?e+"-"+r(t):r(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},goog.GetMsgOptions=function(){},goog.getMsg=function(e,t,n){return n&&n.html&&(e=e.replace(/</g,"<")),n&&n.unescapeHtmlEntities&&(e=e.replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,'"').replace(/&/g,"&")),t&&(e=e.replace(/\{\$([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e},goog.getMsgWithFallback=function(e){return e},goog.exportSymbol=function(e,t,n){goog.exportPath_(e,t,!0,n)},goog.exportProperty=function(e,t,n){e[t]=n},goog.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.base=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},goog.defineClass=function(e,t){var n=t.constructor,r=t.statics;return n&&n!=Object.prototype.constructor||(n=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),n=goog.defineClass.createSealingConstructor_(n,e),e&&goog.inherits(n,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(n.prototype,t),null!=r&&(r instanceof Function?r(n):goog.defineClass.applyProperties_(n,r)),n},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e){return goog.defineClass.SEAL_CLASS_INSTANCES?function(){var t=e.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],t}:e},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);for(var r=0;r<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;r++)n=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[r],Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var t=null,n=goog.global.trustedTypes;if(!n||!n.createPolicy)return t;try{t=n.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_})}catch(e){goog.logToConsole_(e.message)}return t};var module$exports$jspb$immutable_api_token={ImmutableApiToken:function(){throw Error("cannot instantiate ImmutableApiToken")},IMMUTABLE_API_TOKEN:{}};function module$contents$jspb$immutable_api_token_checkImmutableAccessAllowed(e){if(e!==module$exports$jspb$immutable_api_token.IMMUTABLE_API_TOKEN)throw Error("requires a valid immutable API token")}function module$contents$goog$debug$Error_DebugError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,module$contents$goog$debug$Error_DebugError);else{var n=Error().stack;n&&(this.stack=n)}e&&(this.message=String(e)),void 0!==t&&(this.cause=t),this.reportErrorToServer=!0}function module$contents$goog$asserts_AssertionError(e,t){for(var n=module$contents$goog$debug$Error_DebugError.call,r=e.split("%s"),i="",a=r.length-1,o=0;o<a;o++)i+=r[o]+(o<t.length?t[o]:"%s");n.call(module$contents$goog$debug$Error_DebugError,this,i+r[a]),this.messagePattern=e}module$exports$jspb$immutable_api_token.checkImmutableAccessAllowed=module$contents$jspb$immutable_api_token_checkImmutableAccessAllowed,goog.debug={},goog.inherits(module$contents$goog$debug$Error_DebugError,Error),module$contents$goog$debug$Error_DebugError.prototype.name="CustomError",goog.debug.Error=module$contents$goog$debug$Error_DebugError,goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.inherits(module$contents$goog$asserts_AssertionError,module$contents$goog$debug$Error_DebugError),goog.asserts.AssertionError=module$contents$goog$asserts_AssertionError,module$contents$goog$asserts_AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e};var module$contents$goog$asserts_errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER;function module$contents$goog$asserts_doAssertFailure(e,t,n,r){var i="Assertion failed";if(n){i+=": "+n;var a=r}else e&&(i+=": "+e,a=t);e=new module$contents$goog$asserts_AssertionError(""+i,a||[]),module$contents$goog$asserts_errorHandler_(e)}function module$contents$goog$asserts_getType(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e}goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(module$contents$goog$asserts_errorHandler_=e)},goog.asserts.assert=function(e,t,n){return goog.asserts.ENABLE_ASSERTS&&!e&&module$contents$goog$asserts_doAssertFailure("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,t,n){return goog.asserts.ENABLE_ASSERTS&&null==e&&module$contents$goog$asserts_doAssertFailure("Expected to exist: %s.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&module$contents$goog$asserts_errorHandler_(new module$contents$goog$asserts_AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,n){return goog.asserts.ENABLE_ASSERTS&&"number"!=typeof e&&module$contents$goog$asserts_doAssertFailure("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,n){return goog.asserts.ENABLE_ASSERTS&&"string"!=typeof e&&module$contents$goog$asserts_doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,n){return goog.asserts.ENABLE_ASSERTS&&"function"!=typeof e&&module$contents$goog$asserts_doAssertFailure("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,n){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&module$contents$goog$asserts_doAssertFailure("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,n){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(e)&&module$contents$goog$asserts_doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,n){return goog.asserts.ENABLE_ASSERTS&&"boolean"!=typeof e&&module$contents$goog$asserts_doAssertFailure("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,n){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||module$contents$goog$asserts_doAssertFailure("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,n,r){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||module$contents$goog$asserts_doAssertFailure("Expected instanceof %s but got %s.",[module$contents$goog$asserts_getType(t),module$contents$goog$asserts_getType(e)],n,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,t,n){return!goog.asserts.ENABLE_ASSERTS||"number"==typeof e&&isFinite(e)||module$contents$goog$asserts_doAssertFailure("Expected %s to be a finite number but it is not.",[e],t,Array.prototype.slice.call(arguments,2)),e};var module$contents$jspb$binary$utf8_USE_TEXT_ENCODING=2020<=goog.FEATURESET_YEAR;function module$contents$jspb$binary$utf8_invalid(e,t){if(e)throw Error("Invalid UTF8");t.push(65533)}function module$contents$jspb$binary$utf8_codeUnitsToString(e,t){return t=String.fromCharCode.apply(null,t),null==e?t:e+t}function module$contents$jspb$binary$utf8_polyfillDecodeUtf8(e,t,n,r){n=t+n;for(var i,a,o,s,l=[],u=null;t<n;)128>(i=e[t++])?l.push(i):224>i?t>=n?module$contents$jspb$binary$utf8_invalid(r,l):(a=e[t++],194>i||128!=(192&a)?(t--,module$contents$jspb$binary$utf8_invalid(r,l)):(i=(31&i)<<6|63&a,(0,goog.asserts.assert)(128<=i&&2047>=i),l.push(i))):240>i?t>=n-1?module$contents$jspb$binary$utf8_invalid(r,l):128!=(192&(a=e[t++]))||224===i&&160>a||237===i&&160<=a||128!=(192&(o=e[t++]))?(t--,module$contents$jspb$binary$utf8_invalid(r,l)):(i=(15&i)<<12|(63&a)<<6|63&o,(0,goog.asserts.assert)(2048<=i&&65535>=i),(0,goog.asserts.assert)(55296>i||57343<i),l.push(i)):244>=i?t>=n-2?module$contents$jspb$binary$utf8_invalid(r,l):128!=(192&(a=e[t++]))||0!=a-144+(i<<28)>>30||128!=(192&(o=e[t++]))||128!=(192&(s=e[t++]))?(t--,module$contents$jspb$binary$utf8_invalid(r,l)):(i=(7&i)<<18|(63&a)<<12|(63&o)<<6|63&s,(0,goog.asserts.assert)(65536<=i&&1114111>=i),i-=65536,l.push(55296+(i>>10&1023),56320+(1023&i))):module$contents$jspb$binary$utf8_invalid(r,l),8192<=l.length&&(u=module$contents$jspb$binary$utf8_codeUnitsToString(u,l),l.length=0);return(0,goog.asserts.assert)(t===n,"expected "+t+" === "+n),module$contents$jspb$binary$utf8_codeUnitsToString(u,l)}var module$contents$jspb$binary$utf8_fatalDecoderInstance,module$contents$jspb$binary$utf8_nonFatalDecoderInstance,module$contents$jspb$binary$utf8_isFatalTextDecoderCachableAfterThrowing_=2020<=goog.FEATURESET_YEAR||void 0;function module$contents$jspb$binary$utf8_textDecoderDecodeUtf8(e,t,n,r){var i;r?(i=module$contents$jspb$binary$utf8_fatalDecoderInstance)||(i=module$contents$jspb$binary$utf8_fatalDecoderInstance=new TextDecoder("utf-8",{fatal:!0})):(i=module$contents$jspb$binary$utf8_nonFatalDecoderInstance)||(i=module$contents$jspb$binary$utf8_nonFatalDecoderInstance=new TextDecoder("utf-8",{fatal:!1})),n=t+n,e=0===t&&n===e.length?e:e.subarray(t,n);try{return i.decode(e)}catch(t){if(e=r){if(void 0===module$contents$jspb$binary$utf8_isFatalTextDecoderCachableAfterThrowing_){try{i.decode(new Uint8Array([128]))}catch(e){}try{i.decode(new Uint8Array([97])),module$contents$jspb$binary$utf8_isFatalTextDecoderCachableAfterThrowing_=!0}catch(e){module$contents$jspb$binary$utf8_isFatalTextDecoderCachableAfterThrowing_=!1}}e=!module$contents$jspb$binary$utf8_isFatalTextDecoderCachableAfterThrowing_}throw e&&(module$contents$jspb$binary$utf8_fatalDecoderInstance=void 0),t}}var module$contents$jspb$binary$utf8_textEncoderInstance,module$contents$jspb$binary$utf8_useTextDecoderDecode=module$contents$jspb$binary$utf8_USE_TEXT_ENCODING||"undefined"!=typeof TextDecoder,module$contents$jspb$binary$utf8_useTextEncoderEncode=module$contents$jspb$binary$utf8_USE_TEXT_ENCODING||"undefined"!=typeof TextEncoder;function module$contents$jspb$binary$utf8_encodeUtf8(e,t){if(t=void 0!==t&&t,(0,goog.asserts.assertString)(e),module$contents$jspb$binary$utf8_useTextEncoderEncode){if(t&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e))throw Error("Found an unpaired surrogate");e=(module$contents$jspb$binary$utf8_textEncoderInstance||(module$contents$jspb$binary$utf8_textEncoderInstance=new TextEncoder)).encode(e)}else{for(var n=0,r=new Uint8Array(3*e.length),i=0;i<e.length;i++){var a=e.charCodeAt(i);if(128>a)r[n++]=a;else{if(2048>a)r[n++]=a>>6|192;else{if((0,goog.asserts.assert)(65536>a),55296<=a&&57343>=a){if(56319>=a&&i<e.length){var o=e.charCodeAt(++i);if(56320<=o&&57343>=o){a=1024*(a-55296)+o-56320+65536,r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128;continue}i--}if(t)throw Error("Found an unpaired surrogate");a=65533}r[n++]=a>>12|224,r[n++]=a>>6&63|128}r[n++]=63&a|128}}e=n===r.length?r:r.subarray(0,n)}return e}function module$contents$goog$async$throwException_throwException(e){goog.global.setTimeout(function(){throw e},0)}goog.async={},goog.async.throwException=module$contents$goog$async$throwException_throwException,goog.crypt={},goog.crypt.ASYNC_THROW_ON_UNICODE_TO_BYTE=goog.DEBUG,goog.crypt.TEST_ONLY={},goog.crypt.TEST_ONLY.throwException=module$contents$goog$async$throwException_throwException,goog.crypt.binaryStringToByteArray=function(e){return goog.crypt.stringToByteArray(e,!0)},goog.crypt.stringToByteArray=function(e,t){for(var n=[],r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);if(255<a){var o=Error("go/unicode-to-byte-error");if(t)throw o;goog.crypt.ASYNC_THROW_ON_UNICODE_TO_BYTE&&goog.crypt.TEST_ONLY.throwException(o),n[r++]=255&a,a>>=8}n[r++]=a}return n},goog.crypt.byteArrayToString=function(e){return goog.crypt.byteArrayToBinaryString(e)},goog.crypt.byteArrayToBinaryString=function(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",n=0;n<e.length;n+=8192){var r=Array.prototype.slice.call(e,n,n+8192);t+=String.fromCharCode.apply(null,r)}return t},goog.crypt.byteArrayToHex=function(e,t){return Array.prototype.map.call(e,function(e){return 1<(e=e.toString(16)).length?e:"0"+e}).join(t||"")},goog.crypt.hexToByteArray=function(e){goog.asserts.assert(0==e.length%2,"Key string length must be multiple of 2");for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substring(n,n+2),16));return t},goog.crypt.stringToUtf8ByteArray=function(e){return goog.crypt.textToByteArray(e)},goog.crypt.textToByteArray=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);128>i?t[n++]=i:(2048>i?t[n++]=i>>6|192:(55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return t},goog.crypt.utf8ByteArrayToString=function(e){return goog.crypt.byteArrayToText(e)},goog.crypt.byteArrayToText=function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(128>i)t[r++]=String.fromCharCode(i);else if(191<i&&224>i){var a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(239<i&&365>i){a=e[n++];var o=e[n++];i=((7&i)<<18|(63&a)<<12|(63&o)<<6|63&e[n++])-65536,t[r++]=String.fromCharCode(55296+(i>>10)),t[r++]=String.fromCharCode(56320+(1023&i))}else a=e[n++],o=e[n++],t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&o)}return t.join("")},goog.crypt.xorByteArray=function(e,t){goog.asserts.assert(e.length==t.length,"XOR array lengths must match");for(var n=[],r=0;r<e.length;r++)n.push(e[r]^t[r]);return n},goog.string={},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.internal.endsWith=function(e,t){var n=e.length-t.length;return 0<=n&&e.indexOf(t,n)==n},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.slice(0,t.length))},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.slice(e.length-t.length))},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:+(e!=t)},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.internal.AMP_RE_,"&")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.internal.LT_RE_,"<")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.internal.GT_RE_,">")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.internal.QUOT_RE_,""")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.internal.NULL_RE_,"�"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.internal.contains=function(e,t){return -1!=e.indexOf(t)},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var n=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var r=Math.max(e.length,t.length),i=0;0==n&&i<r;i++){var a=e[i]||"",o=t[i]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],0==a[0].length&&0==o[0].length)break;n=goog.string.internal.compareElements_(0==a[1].length?0:parseInt(a[1],10),0==o[1].length?0:parseInt(o[1],10))||goog.string.internal.compareElements_(0==a[2].length,0==o[2].length)||goog.string.internal.compareElements_(a[2],o[2]),a=a[3],o=o[3]}while(0==n)}return n},goog.string.internal.compareElements_=function(e,t){return e<t?-1:+(e>t)},goog.labs={},goog.labs.userAgent={};var module$contents$goog$labs$userAgent_forceClientHintsInTests=!1;function module$contents$goog$labs$userAgent$util_getNativeUserAgentString(){var e=goog.global.navigator;return e&&(e=e.userAgent)?e:""}function module$contents$goog$labs$userAgent$util_getNativeUserAgentData(){var e=goog.global.navigator;return e&&e.userAgentData||null}goog.labs.userAgent.setUseClientHintsForTesting=function(e){module$contents$goog$labs$userAgent_forceClientHintsInTests=e},goog.labs.userAgent.useClientHints=function(){return module$contents$goog$labs$userAgent_forceClientHintsInTests},goog.labs.userAgent.util={};var module$contents$goog$labs$userAgent$util_userAgentInternal=null,module$contents$goog$labs$userAgent$util_userAgentDataInternal=module$contents$goog$labs$userAgent$util_getNativeUserAgentData();function module$contents$goog$labs$userAgent$util_getUserAgent(){return null==module$contents$goog$labs$userAgent$util_userAgentInternal?module$contents$goog$labs$userAgent$util_getNativeUserAgentString():module$contents$goog$labs$userAgent$util_userAgentInternal}function module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(e){return!!(0,goog.labs.userAgent.useClientHints)()&&!!module$contents$goog$labs$userAgent$util_userAgentDataInternal&&module$contents$goog$labs$userAgent$util_userAgentDataInternal.brands.some(function(t){return(t=t.brand)&&(0,goog.string.internal.contains)(t,e)})}function module$contents$goog$labs$userAgent$util_matchUserAgent(e){return(0,goog.string.internal.contains)(module$contents$goog$labs$userAgent$util_getUserAgent(),e)}function module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase(e){return(0,goog.string.internal.caseInsensitiveContains)(module$contents$goog$labs$userAgent$util_getUserAgent(),e)}function module$contents$goog$labs$userAgent$util_extractVersionTuples(e){for(var t,n=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),r=[];t=n.exec(e);)r.push([t[1],t[2],t[3]||void 0]);return r}goog.labs.userAgent.util.ASSUME_CLIENT_HINTS_SUPPORT=!1,goog.labs.userAgent.util.extractVersionTuples=module$contents$goog$labs$userAgent$util_extractVersionTuples,goog.labs.userAgent.util.getNativeUserAgentString=module$contents$goog$labs$userAgent$util_getNativeUserAgentString,goog.labs.userAgent.util.getUserAgent=module$contents$goog$labs$userAgent$util_getUserAgent,goog.labs.userAgent.util.getUserAgentData=function(){return module$contents$goog$labs$userAgent$util_userAgentDataInternal},goog.labs.userAgent.util.matchUserAgent=module$contents$goog$labs$userAgent$util_matchUserAgent,goog.labs.userAgent.util.matchUserAgentDataBrand=module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand,goog.labs.userAgent.util.matchUserAgentIgnoreCase=module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase,goog.labs.userAgent.util.resetUserAgentData=function(){module$contents$goog$labs$userAgent$util_userAgentDataInternal=module$contents$goog$labs$userAgent$util_getNativeUserAgentData()},goog.labs.userAgent.util.setUserAgent=function(e){module$contents$goog$labs$userAgent$util_userAgentInternal="string"==typeof e?e:module$contents$goog$labs$userAgent$util_getNativeUserAgentString()},goog.labs.userAgent.util.setUserAgentData=function(e){module$contents$goog$labs$userAgent$util_userAgentDataInternal=e};var module$exports$goog$labs$userAgent$highEntropy$highEntropyValue={AsyncValue:function(){}};module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.AsyncValue.prototype.getIfLoaded=function(){},module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.AsyncValue.prototype.load=function(){},module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue=function(e){this.key_=e,this.promise_=this.value_=void 0,this.pending_=!1},module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.getIfLoaded=function(){if(module$contents$goog$labs$userAgent$util_userAgentDataInternal)return this.value_},module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.load=function(){var e,t=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){return 1==n.nextAddress?(e=module$contents$goog$labs$userAgent$util_userAgentDataInternal)?(t.promise_||(t.pen
2ding_=!0,t.promise_=function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){return 1==n.nextAddress?(n.setFinallyBlock(2),n.yield(e.getHighEntropyValues([t.key_]),4)):2!=n.nextAddress?(t.value_=n.yieldResult[t.key_],n.return(t.value_)):(n.enterFinallyBlock(),t.pending_=!1,n.leaveFinallyBlock(0))})}()),n.yield(t.promise_,2)):n.return(void 0):n.return(n.yieldResult)})},module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.resetForTesting=function(){if(this.pending_)throw Error("Unsafe call to resetForTesting");this.value_=this.promise_=void 0,this.pending_=!1},module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version=function(e){this.versionString_=e},module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototype.toVersionStringForLogging=function(){return this.versionString_},module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototype.isAtLeast=function(e){return 0<=(0,goog.string.internal.compareVersions)(this.versionString_,e)};var module$exports$goog$labs$userAgent$highEntropy$highEntropyData={};module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList=new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue("fullVersionList"),module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion=new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue("platformVersion"),goog.labs.userAgent.browser={};var module$contents$goog$labs$userAgent$browser_Brand={ANDROID_BROWSER:"Android Browser",CHROMIUM:"Chromium",EDGE:"Microsoft Edge",FIREFOX:"Firefox",IE:"Internet Explorer",OPERA:"Opera",SAFARI:"Safari",SILK:"Silk"};function module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(e){return!!(void 0!==e&&e||(0,goog.labs.userAgent.useClientHints)())&&!!(e=module$contents$goog$labs$userAgent$util_userAgentDataInternal)&&0<e.brands.length}function module$contents$goog$labs$userAgent$browser_matchOpera(){return!module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()&&module$contents$goog$labs$userAgent$util_matchUserAgent("Opera")}function module$contents$goog$labs$userAgent$browser_matchIE(){return!module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()&&(module$contents$goog$labs$userAgent$util_matchUserAgent("Trident")||module$contents$goog$labs$userAgent$util_matchUserAgent("MSIE"))}function module$contents$goog$labs$userAgent$browser_matchEdgeHtml(){return!module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()&&module$contents$goog$labs$userAgent$util_matchUserAgent("Edge")}function module$contents$goog$labs$userAgent$browser_matchEdgeChromium(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(module$contents$goog$labs$userAgent$browser_Brand.EDGE):module$contents$goog$labs$userAgent$util_matchUserAgent("Edg/")}function module$contents$goog$labs$userAgent$browser_matchOperaChromium(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(module$contents$goog$labs$userAgent$browser_Brand.OPERA):module$contents$goog$labs$userAgent$util_matchUserAgent("OPR")}function module$contents$goog$labs$userAgent$browser_matchFirefox(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Firefox")||module$contents$goog$labs$userAgent$util_matchUserAgent("FxiOS")}function module$contents$goog$labs$userAgent$browser_matchSafari(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Safari")&&!(module$contents$goog$labs$userAgent$browser_matchChrome()||module$contents$goog$labs$userAgent$browser_matchCoast()||module$contents$goog$labs$userAgent$browser_matchOpera()||module$contents$goog$labs$userAgent$browser_matchEdgeHtml()||module$contents$goog$labs$userAgent$browser_matchEdgeChromium()||module$contents$goog$labs$userAgent$browser_matchOperaChromium()||module$contents$goog$labs$userAgent$browser_matchFirefox()||module$contents$goog$labs$userAgent$browser_isSilk()||module$contents$goog$labs$userAgent$util_matchUserAgent("Android"))}function module$contents$goog$labs$userAgent$browser_matchCoast(){return!module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()&&module$contents$goog$labs$userAgent$util_matchUserAgent("Coast")}function module$contents$goog$labs$userAgent$browser_matchChrome(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM):(module$contents$goog$labs$userAgent$util_matchUserAgent("Chrome")||module$contents$goog$labs$userAgent$util_matchUserAgent("CriOS"))&&!module$contents$goog$labs$userAgent$browser_matchEdgeHtml()||module$contents$goog$labs$userAgent$browser_isSilk()}function module$contents$goog$labs$userAgent$browser_matchAndroid
vendor: 5,738 bytes, line 2
2Browser(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Android")&&!(module$contents$goog$labs$userAgent$browser_matchChrome()||module$contents$goog$labs$userAgent$browser_matchFirefox()||module$contents$goog$labs$userAgent$browser_matchOpera()||module$contents$goog$labs$userAgent$browser_isSilk())}function module$contents$goog$labs$userAgent$browser_isSilk(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Silk")}function module$contents$goog$labs$userAgent$browser_createVersionMap(e){var t={};return e.forEach(function(e){t[e[0]]=e[1]}),function(e){return t[e.find(function(e){return e in t})]||""}}function module$contents$goog$labs$userAgent$browser_getVersion(){var e=module$contents$goog$labs$userAgent$util_getUserAgent();if(module$contents$goog$labs$userAgent$browser_matchIE())return module$contents$goog$labs$userAgent$browser_getIEVersion(e);var t=module$contents$goog$labs$userAgent$browser_createVersionMap(e=module$contents$goog$labs$userAgent$util_extractVersionTuples(e));return module$contents$goog$labs$userAgent$browser_matchOpera()?t(["Version","Opera"]):module$contents$goog$labs$userAgent$browser_matchEdgeHtml()?t(["Edge"]):module$contents$goog$labs$userAgent$browser_matchEdgeChromium()?t(["Edg"]):module$contents$goog$labs$userAgent$browser_isSilk()?t(["Silk"]):module$contents$goog$labs$userAgent$browser_matchChrome()?t(["Chrome","CriOS","HeadlessChrome"]):(e=e[2])&&e[1]||""}function module$contents$goog$labs$userAgent$browser_getIEVersion(e){var t=/rv: *([\d\.]*)/.exec(e);if(t&&t[1])return t[1];t="";var n=/MSIE +([\d\.]+)/.exec(e);if(n&&n[1])if(e=/Trident\/(\d.\d)/.exec(e),"7.0"==n[1])if(e&&e[1])switch(e[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=n[1];return t}function module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString(e){var t=module$contents$goog$labs$userAgent$util_getUserAgent();if(e===module$contents$goog$labs$userAgent$browser_Brand.IE)return module$contents$goog$labs$userAgent$browser_matchIE()?module$contents$goog$labs$userAgent$browser_getIEVersion(t):"";var n=module$contents$goog$labs$userAgent$browser_createVersionMap(t=module$contents$goog$labs$userAgent$util_extractVersionTuples(t));switch(e){case module$contents$goog$labs$userAgent$browser_Brand.OPERA:if(module$contents$goog$labs$userAgent$browser_matchOpera())return n(["Version","Opera"]);if(module$contents$goog$labs$userAgent$browser_matchOperaChromium())return n(["OPR"]);break;case module$contents$goog$labs$userAgent$browser_Brand.EDGE:if(module$contents$goog$labs$userAgent$browser_matchEdgeHtml())return n(["Edge"]);if(module$contents$goog$labs$userAgent$browser_matchEdgeChromium())return n(["Edg"]);break;case module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM:if(module$contents$goog$labs$userAgent$browser_matchChrome())return n(["Chrome","CriOS","HeadlessChrome"])}return(e===module$contents$goog$labs$userAgent$browser_Brand.FIREFOX&&module$contents$goog$labs$userAgent$browser_matchFirefox()||e===module$contents$goog$labs$userAgent$browser_Brand.SAFARI&&module$contents$goog$labs$userAgent$browser_matchSafari()||e===module$contents$goog$labs$userAgent$browser_Brand.ANDROID_BROWSER&&module$contents$goog$labs$userAgent$browser_matchAndroidBrowser()||e===module$contents$goog$labs$userAgent$browser_Brand.SILK&&module$contents$goog$labs$userAgent$browser_isSilk())&&(e=t[2])&&e[1]||""}function module$contents$goog$labs$userAgent$browser_versionOf_(e){if(module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()&&e!==module$contents$goog$labs$userAgent$browser_Brand.SILK){var t=module$contents$goog$labs$userAgent$util_userAgentDataInternal.brands.find(function(t){return t.brand===e});if(!t||!t.version)return NaN;t=t.version.split(".")}else{if(""===(t=module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString(e)))return NaN;t=t.split(".")}return 0===t.length?NaN:Number(t[0])}function module$contents$goog$labs$userAgent$browser_isAtLeast(e,t){return(0,goog.asserts.assert)(Math.floor(t)===t,"Major version must be an integer"),module$contents$goog$labs$userAgent$browser_versionOf_(e)>=t}goog.labs.userAgent.browser.Brand=module$contents$goog$labs$userAgent$browser_Brand,goog.labs.userAgent.browser.isOpera=module$contents$goog$labs$userAgent$browser_matchOpera,goog.labs.userAgent.browser.isIE=module$contents$goog$labs$userAgent$browser_matchIE,goog.labs.userAgent.browser.isEdge=module$contents$goog$labs$userAgent$browser_matchEdgeHtml,goog.labs.userAgent.browser.isEdgeChromium=module$contents$goog$labs$userAgent$browser_matchEdgeChromium,goog.labs.userAgent.browser.isOperaChromium=module$contents$goog$labs$userAgent$browser_matchOperaChromium,goog.labs.userAgent.browser.isFirefox=module$contents$goog$labs$userAgent$browser_matchFirefox,goog.labs.userAgent.browser.isSafari=module$contents$goog$labs$userAgent$browser_matchSafari,goog.labs.userAgent.browser.isCoast=module$contents$goog$labs$userAgent$browser_matchCoast,goog.labs.userAgent.browser.isIosWebview=function(){return(module$contents$goog$labs$userAgent$util_matchUserAgent("iPad")||module$contents$goog$labs$userAgent$util_matchUserAgent("iPhone"))&&!module$contents$goog$labs$userAgent$browser_matchSafari()&&!module$contents$goog$labs$userAgent$browser_matchChrome()&&!module$contents$goog$labs$userAgent$browser_matchCoast()&&!module$contents$goog$labs$userAgent$browser_matchFirefox()&&module$contents$goog$labs$userAgent$util_matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.isChrome=module$contents$goog$labs$userAgent$browser_matchChrome,goog.labs.userAgent.browser.isAndroidBrowser=module$contents$goog$labs$userAgent$browser_matchAndroid
2Browser,goog.labs.userAgent.browser.isSilk=module$contents$goog$labs$userAgent$browser_isSilk,goog.labs.userAgent.browser.getVersion=module$contents$goog$labs$userAgent$browser_getVersion,goog.labs.userAgent.browser.isVersionOrHigher=function(e){return 0<=(0,goog.string.internal.compareVersions)(module$contents$goog$labs$userAgent$browser_getVersion(),e)},goog.labs.userAgent.browser.isAtLeast=module$contents$goog$labs$userAgent$browser_isAtLeast,goog.labs.userAgent.browser.isAtMost=function(e,t){return(0,goog.asserts.assert)(Math.floor(t)===t,"Major version must be an integer"),module$contents$goog$labs$userAgent$browser_versionOf_(e)<=t};var module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion=function(e,t,n){this.brand_=e,this.version_=new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(n),this.useUach_=t};module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.getIfLoaded=function(){var e=this;if(this.useUach_){var t=module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.getIfLoaded();if(void 0!==t)return t=t.find(function(t){return e.brand_===t.brand}),(0,goog.asserts.assertExists)(t),new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(t.version)}if(module$contents$goog$labs$userAgent$browser_preUachHasLoaded)return this.version_},module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.load=function(){var e,t,n=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(r){return 1==r.nextAddress?n.useUach_?r.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(),5):r.yield(0,3):3!=r.nextAddress&&void 0!==(e=r.yieldResult)?(t=e.find(function(e){return n.brand_===e.brand}),(0,goog.asserts.assertExists)(t),r.return(new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(t.version))):(module$contents$goog$labs$userAgent$browser_preUachHasLoaded=!0,r.return(n.version_))})};var module$contents$goog$labs$userAgent$browser_preUachHasLoaded=!1;function module$contents$goog$labs$userAgent$browser_fullVersionOf(e){var t="";module$contents$goog$labs$userAgent$browser_isAtLeast(module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM,98)||(t=module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString(e));var n=e!==module$contents$goog$labs$userAgent$browser_Brand.SILK&&module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0);if(n){if(!module$contents$goog$labs$userAgent$util_userAgentDataInternal.brands.find(function(t){return t.brand===e}))return}else if(""===t)return;return new module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion(e,n,t)}function module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform(e){return!!(void 0!==e&&e||(0,goog.labs.userAgent.useClientHints)())&&!!(e=module$contents$goog$labs$userAgent$util_userAgentDataInternal)&&!!e.platform}function module$contents$goog$labs$userAgent$platform_isAndroid(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?"Android"===module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform:module$contents$goog$labs$userAgent$util_matchUserAgent("Android")}function module$contents$goog$labs$userAgent$platform_isIpod(){return module$contents$goog$labs$userAgent$util_matchUserAgent("iPod")}function module$contents$goog$labs$userAgent$platform_isIphone(){return module$contents$goog$labs$userAgent$util_matchUserAgent("iPhone")&&!module$contents$goog$labs$userAgent$util_matchUserAgent("iPod")&&!module$contents$goog$labs$userAgent$util_matchUserAgent("iPad")}function module$contents$goog$labs$userAgent$platform_isIpad(){return module$contents$goog$labs$userAgent$util_matchUserAgent("iPad")}function module$contents$goog$labs$userAgent$platform_isIos(){return module$contents$goog$labs$userAgent$platform_isIphone()||module$contents$goog$labs$userAgent$platform_isIpad()||module$contents$goog$labs$userAgent$platform_isIpod()}function module$contents$goog$labs$userAgent$platform_isMacintosh(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?"macOS"===module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform:module$contents$goog$labs$userAgent$util_matchUserAgent("Macintosh")}function module$contents$goog$labs$userAgent$platform_isLinux(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?"Linux"===module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform:module$contents$goog$labs$userAgent$util_matchUserAgent("Linux")}function module$contents$goog$labs$userAgent$platform_isWindows(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?"Windows"===module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform:module$contents$goog$labs$userAgent$util_matchUserAgent("Windows")}function module$contents$goog$labs$userAgent$platform_isChromeOS(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?"Chrome OS"===module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform:module$contents$goog$labs$userAgent$util_matchUserAgent("CrOS")}function module$contents$goog$labs$userAgent$platform_isKaiOS(){return module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase("KaiOS")}function module$contents$goog$labs$userAgent$platform_getVersion(){var e=module$contents$goog$labs$userAgent$util_getUserAgent(),t="";return module$contents$goog$labs$userAgent$platform_isWindows()?t=(e=(t=/Windows (?:NT|Phone) ([0-9.]+)/).exec(e))?e[1]:"0.0":module$contents$goog$labs$userAgent$platform_isIos()?t=(e=(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/).exec(e))&&e[1].replace(/_/g,"."):module$contents$goog$labs$userAgent$platform_isMacintosh()?t=(e
vendor: 44,092 bytes, line 2
2=(t=/Mac OS X ([0-9_.]+)/).exec(e))?e[1].replace(/_/g,"."):"10":module$contents$goog$labs$userAgent$platform_isKaiOS()?t=(e=(t=/(?:KaiOS)\/(\S+)/i).exec(e))&&e[1]:module$contents$goog$labs$userAgent$platform_isAndroid()?t=(e=(t=/Android\s+([^\);]+)(\)|;)/).exec(e))&&e[1]:module$contents$goog$labs$userAgent$platform_isChromeOS()&&(t=(e=(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/).exec(e))&&e[1]),t||""}goog.labs.userAgent.browser.loadFullVersions=function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){if(1==e.nextAddress)return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0)?e.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(),2):e.jumpTo(2);module$contents$goog$labs$userAgent$browser_preUachHasLoaded=!0,e.jumpToEnd()})},goog.labs.userAgent.browser.resetForTesting=function(){module$contents$goog$labs$userAgent$browser_preUachHasLoaded=!1,module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.resetForTesting()},goog.labs.userAgent.browser.fullVersionOf=module$contents$goog$labs$userAgent$browser_fullVersionOf,goog.labs.userAgent.browser.getVersionStringForLogging=function(e){if(module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0)){var t=module$contents$goog$labs$userAgent$browser_fullVersionOf(e);return t?(t=t.getIfLoaded())?t.toVersionStringForLogging():(t=module$contents$goog$labs$userAgent$util_userAgentDataInternal.brands.find(function(t){return t.brand===e}),(0,goog.asserts.assertExists)(t),t.version):""}return module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString(e)},goog.labs.userAgent.platform={};var module$contents$goog$labs$userAgent$platform_PlatformVersion=function(){this.preUachHasLoaded_=!1};module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.getIfLoaded=function(){if(module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform(!0)){var e=module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.getIfLoaded();return void 0===e?void 0:new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(e)}if(this.preUachHasLoaded_)return new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(module$contents$goog$labs$userAgent$platform_getVersion())},module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.load=function(){var e,t=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){return 1==n.nextAddress?module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform(!0)?(e=module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version,n.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.load(),3)):(t.preUachHasLoaded_=!0,n.return(new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(module$contents$goog$labs$userAgent$platform_getVersion()))):n.return(new e(n.yieldResult))})},module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.resetForTesting=function(){module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.resetForTesting(),this.preUachHasLoaded_=!1};var module$contents$goog$labs$userAgent$platform_version=new module$contents$goog$labs$userAgent$platform_PlatformVersion;goog.labs.userAgent.platform.getVersion=module$contents$goog$labs$userAgent$platform_getVersion,goog.labs.userAgent.platform.isAndroid=module$contents$goog$labs$userAgent$platform_isAndroid,goog.labs.userAgent.platform.isChromeOS=module$contents$goog$labs$userAgent$platform_isChromeOS,goog.labs.userAgent.platform.isChromecast=function(){return module$contents$goog$labs$userAgent$util_matchUserAgent("CrKey")},goog.labs.userAgent.platform.isIos=module$contents$goog$labs$userAgent$platform_isIos,goog.labs.userAgent.platform.isIpad=module$contents$goog$labs$userAgent$platform_isIpad,goog.labs.userAgent.platform.isIphone=module$contents$goog$labs$userAgent$platform_isIphone,goog.labs.userAgent.platform.isIpod=module$contents$goog$labs$userAgent$platform_isIpod,goog.labs.userAgent.platform.isKaiOS=module$contents$goog$labs$userAgent$platform_isKaiOS,goog.labs.userAgent.platform.isLinux=module$contents$goog$labs$userAgent$platform_isLinux,goog.labs.userAgent.platform.isMacintosh=module$contents$goog$labs$userAgent$platform_isMacintosh,goog.labs.userAgent.platform.isVersionOrHigher=function(e){return 0<=goog.string.internal.compareVersions(module$contents$goog$labs$userAgent$platform_getVersion(),e)},goog.labs.userAgent.platform.isWindows=module$contents$goog$labs$userAgent$platform_isWindows,goog.labs.userAgent.platform.version=module$contents$goog$labs$userAgent$platform_version,goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR;function module$contents$goog$array_peek(e){return e[e.length-1]}goog.array.ASSUME_NATIVE_FUNCTIONS=module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS,goog.array.peek=module$contents$goog$array_peek,goog.array.last=module$contents$goog$array_peek;var module$contents$goog$array_indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,t,n){return goog.asserts.assert(null!=e.length),Array.prototype.indexOf.call(e,t,n)}:function(e,t,n){if(n=null==n?0:0>n?Math.max(0,e.length+n):n,"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,n);for(;n<e.length;n++)if(n in e&&e[n]===t)return n;return -1};goog.array.indexOf=module$contents$goog$array_indexOf;var module$contents$goog$array_lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,t,n){return goog.asserts.assert(null!=e.length),Array.prototype.lastIndexOf.call(e,t,null==n?e.length-1:n)}:function(e,t,n){if(0>(n=null==n?e.length-1:n)&&(n=Math.max(0,e.length+n)),"string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.lastIndexOf(t,n);for(;0<=n;n--)if(n in e&&e[n]===t)return n;return -1};goog.array.lastIndexOf=module$contents$goog$array_lastIndexOf;var module$contents$goog$array_forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,n){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"==typeof e?e.split(""):e,a=0;a<r;a++)a in i&&t.call(n,i[a],a,e)};function module$contents$goog$array_forEachRight(e,t,n){var r=e.length,i="string"==typeof e?e.split(""):e;for(--r;0<=r;--r)r in i&&t.call(n,i[r],r,e)}goog.array.forEach=module$contents$goog$array_forEach,goog.array.forEachRight=module$contents$goog$array_forEachRight,goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,t,n){return goog.asserts.assert(null!=e.length),Array.prototype.filter.call(e,t,n)}:function(e,t,n){for(var r=e.length,i=[],a=0,o="string"==typeof e?e.split(""):e,s=0;s<r;s++)if(s in o){var l=o[s];t.call(n,l,s,e)&&(i[a++]=l)}return i};var module$contents$goog$array_map=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,t,n){return goog.asserts.assert(null!=e.length),Array.prototype.map.call(e,t,n)}:function(e,t,n){for(var r=e.length,i=Array(r),a="string"==typeof e?e.split(""):e,o=0;o<r;o++)o in a&&(i[o]=t.call(n,a[o],o,e));return i};goog.array.map=module$contents$goog$array_map,goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,t,n,r){return goog.asserts.assert(null!=e.length),r&&(t=goog.bind(t,r)),Array.prototype.reduce.call(e,t,n)}:function(e,t,n,r){var i=n;return module$contents$goog$array_forEach(e,function(n,a){i=t.call(r,i,n,a,e)}),i},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,t,n,r){return goog.asserts.assert(null!=e.length),goog.asserts.assert(null!=t),r&&(t=goog.bind(t,r)),Array.prototype.reduceRight.call(e,t,n)}:function(e,t,n,r){var i=n;return module$contents$goog$array_forEachRight(e,function(n,a){i=t.call(r,i,n,a,e)}),i},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,t,n){return goog.asserts.assert(null!=e.length),Array.prototype.some.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"==typeof e?e.split(""):e,a=0;a<r;a++)if(a in i&&t.call(n,i[a],a,e))return!0;return!1};var JSCompiler_inline_result$jscomp$97,module$contents$goog$array_every=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,t,n){return goog.asserts.assert(null!=e.length),Array.prototype.every.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"==typeof e?e.split(""):e,a=0;a<r;a++)if(a in i&&!t.call(n,i[a],a,e))return!1;return!0};function module$contents$goog$array_find(e,t,n){return 0>(t=module$contents$goog$array_findIndex(e,t,n))?null:"string"==typeof e?e.charAt(t):e[t]}function module$contents$goog$array_findIndex(e,t,n){for(var r=e.length,i="string"==typeof e?e.split(""):e,a=0;a<r;a++)if(a in i&&t.call(n,i[a],a,e))return a;return -1}function module$contents$goog$array_findIndexRight(e,t,n){var r=e.length,i="string"==typeof e?e.split(""):e;for(--r;0<=r;r--)if(r in i&&t.call(n,i[r],r,e))return r;return -1}function module$contents$goog$array_contains(e,t){return 0<=module$contents$goog$array_indexOf(e,t)}function module$contents$goog$array_insertAt(e,t,n){module$contents$goog$array_splice(e,n,0,t)}function module$contents$goog$array_removeAt(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length}function module$contents$goog$array_concat(e){return Array.prototype.concat.apply([],arguments)}function module$contents$goog$array_toArray(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function module$contents$goog$array_splice(e,t,n,r){return goog.asserts.assert(null!=e.length),Array.prototype.splice.apply(e,module$contents$goog$array_slice(arguments,1))}function module$contents$goog$array_slice(e,t,n){return goog.asserts.assert(null!=e.length),2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,n)}function module$contents$goog$array_binarySearch(e,t,n){return module$contents$goog$array_binarySearch_(e,n||module$contents$goog$array_defaultCompare,!1,t)}function module$contents$goog$array_binarySearch_(e,t,n,r,i){for(var a,o=0,s=e.length;o<s;){var l=o+(s-o>>>1),u=n?t.call(i,e[l],l,e):t(r,e[l]);0<u?o=l+1:(s=l,a=!u)}return a?o:-o-1}function module$contents$goog$array_sort(e,t){e.sort(t||module$contents$goog$array_defaultCompare)}function module$contents$goog$array_sortByKey(e,t,n){var r=n||module$contents$goog$array_defaultCompare;module$contents$goog$array_sort(e,function(e,n){return r(t(e),t(n))})}function module$contents$goog$array_defaultCompare(e,t){return e>t?1:e<t?-1:0}function module$contents$goog$array_defaultCompareEquality(e,t){return e===t}function module$contents$goog$array_flatten(e){for(var t=[],n=0;n<arguments.length;n++){var r=arguments[n];if(Array.isArray(r))for(var i=0;i<r.length;i+=8192){var a=module$contents$goog$array_slice(r,i,i+8192);a=module$contents$goog$array_flatten.apply(null,a);for(var o=0;o<a.length;o++)t.push(a[o])}else t.push(r)}return t}function module$contents$goog$labs$userAgent$engine_isTrident(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Trident")||module$contents$goog$labs$userAgent$util_matchUserAgent("MSIE")}function module$contents$goog$labs$userAgent$engine_isEdge(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Edge")}function module$contents$goog$labs$userAgent$engine_isWebKit(){return module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase("WebKit")&&!module$contents$goog$labs$userAgent$engine_isEdge()}function module$contents$goog$labs$userAgent$engine_isGecko(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Gecko")&&!module$contents$goog$labs$userAgent$engine_isWebKit()&&!module$contents$goog$labs$userAgent$engine_isTrident()&&!module$contents$goog$labs$userAgent$engine_isEdge()}function module$contents$goog$labs$userAgent$engine_getVersion(){var e,t,n=module$contents$goog$labs$userAgent$util_getUserAgent();if(n){n=module$contents$goog$labs$userAgent$util_extractVersionTuples(n);e:if(module$contents$goog$labs$userAgent$engine_isEdge()){for(e=0;e<n.length;e++){var r=n[e];if("Edge"==r[0]){e=r;break e}}e=void 0}else e=n[1];if(e)return"Gecko"==e[0]?module$contents$goog$labs$userAgent$engine_getVersionForKey(n,"Firefox"):e[1];if((n=n[0])&&(t=n[2])&&(t=/Trident\/([^\s;]+)/.exec(t)))return t[1]}return""}function module$contents$goog$labs$userAgent$engine_getVersionForKey(e,t){return(e=module$contents$goog$array_find(e,function(e){return t==e[0]}))&&e[1]||""}JSCompiler_inline_result$jscomp$97=(goog.array.every=module$contents$goog$array_every,goog.array.count=function(e,t,n){var r=0;return module$contents$goog$array_forEach(e,function(e,i,a){t.call(n,e,i,a)&&++r},n),r},goog.array.find=module$contents$goog$array_find,goog.array.findIndex=module$contents$goog$array_findIndex,goog.array.findRight=function(e,t,n){return 0>(t=module$contents$goog$array_findIndexRight(e,t,n))?null:"string"==typeof e?e.charAt(t):e[t]},goog.array.findIndexRight=module$contents$goog$array_findIndexRight,goog.array.contains=module$contents$goog$array_contains,goog.array.isEmpty=function(e){return 0==e.length},goog.array.clear=function(e){if(!Array.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0},goog.array.insert=function(e,t){module$contents$goog$array_contains(e,t)||e.push(t)},goog.array.insertAt=module$contents$goog$array_insertAt,goog.array.insertArrayAt=function(e,t,n){goog.partial(module$contents$goog$array_splice,e,n,0).apply(null,t)},goog.array.insertBefore=function(e,t,n){var r;2==arguments.length||0>(r=module$contents$goog$array_indexOf(e,n))?e.push(t):module$contents$goog$array_insertAt(e,t,r)},goog.array.remove=function(e,t){var n;return(n=0<=(t=module$contents$goog$array_indexOf(e,t)))&&module$contents$goog$array_removeAt(e,t),n},goog.array.removeLast=function(e,t){return 0<=(t=module$contents$goog$array_lastIndexOf(e,t))&&(module$contents$goog$array_removeAt(e,t),!0)},goog.array.removeAt=module$contents$goog$array_removeAt,goog.array.removeIf=function(e,t,n){return 0<=(t=module$contents$goog$array_findIndex(e,t,n))&&(module$contents$goog$array_removeAt(e,t),!0)},goog.array.removeAllIf=function(e,t,n){var r=0;return module$contents$goog$array_forEachRight(e,function(i,a){t.call(n,i,a,e)&&module$contents$goog$array_removeAt(e,a)&&r++}),r},goog.array.concat=module$contents$goog$array_concat,goog.array.join=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=module$contents$goog$array_toArray,goog.array.clone=module$contents$goog$array_toArray,goog.array.extend=function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(goog.isArrayLike(r)){var i=e.length||0,a=r.length||0;e.length=i+a;for(var o=0;o<a;o++)e[i+o]=r[o]}else e.push(r)}},goog.array.splice=module$contents$goog$array_splice,goog.array.slice=module$contents$goog$array_slice,goog.array.removeDuplicates=function(e,t,n){t=t||e;var r=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};n=n||r;for(var i=r=0,a={};i<e.length;){var o=e[i++],s=n(o);Object.prototype.hasOwnProperty.call(a,s)||(a[s]=!0,t[r++]=o)}t.length=r},goog.array.binarySearch=module$contents$goog$array_binarySearch,goog.array.binarySelect=function(e,t,n){return module$contents$goog$array_binarySearch_(e,t,!0,void 0,n)},goog.array.sort=module$contents$goog$array_sort,goog.array.stableSort=function(e,t){for(var n=Array(e.length),r=0;r<e.length;r++)n[r]={index:r,value:e[r]};var i=t||module$contents$goog$array_defaultCompare;for(module$contents$goog$array_sort(n,function(e,t){return i(e.value,t.value)||e.index-t.index}),t=0;t<e.length;t++)e[t]=n[t].value},goog.array.sortByKey=module$contents$goog$array_sortByKey,goog.array.sortObjectsByKey=function(e,t,n){module$contents$goog$array_sortByKey(e,function(e){return e[t]},n)},goog.array.isSorted=function(e,t,n){t=t||module$contents$goog$array_defaultCompare;for(var r=1;r<e.length;r++){var i=t(e[r-1],e[r]);if(0<i||0==i&&n)return!1}return!0},goog.array.equals=function(e,t,n){if(!goog.isArrayLike(e)||!goog.isArrayLike(t)||e.length!=t.length)return!1;var r=e.length;n=n||module$contents$goog$array_defaultCompareEquality;for(var i=0;i<r;i++)if(!n(e[i],t[i]))return!1;return!0},goog.array.compare3=function(e,t,n){n=n||module$contents$goog$array_defaultCompare;for(var r=Math.min(e.length,t.length),i=0;i<r;i++){var a=n(e[i],t[i]);if(0!=a)return a}return module$contents$goog$array_defaultCompare(e.length,t.length)},goog.array.defaultCompare=module$contents$goog$array_defaultCompare,goog.array.inverseDefaultCompare=function(e,t){return-module$contents$goog$array_defaultCompare(e,t)},goog.array.defaultCompareEquality=module$contents$goog$array_defaultCompareEquality,goog.array.binaryInsert=function(e,t,n){return 0>(n=module$contents$goog$array_binarySearch(e,t,n))&&(module$contents$goog$array_insertAt(e,t,-(n+1)),!0)},goog.array.binaryRemove=function(e,t,n){return 0<=(t=module$contents$goog$array_binarySearch(e,t,n))&&module$contents$goog$array_removeAt(e,t)},goog.array.bucket=function(e,t,n){for(var r={},i=0;i<e.length;i++){var a=e[i],o=t.call(n,a,i,e);void 0!==o&&(r[o]||(r[o]=[])).push(a)}return r},goog.array.bucketToMap=function(e,t){for(var n=new Map,r=0;r<e.length;r++){var i=e[r],a=t(i,r,e);if(void 0!==a){var o=n.get(a);o||(o=[],n.set(a,o)),o.push(i)}}return n},goog.array.toObject=function(e,t,n){var r={};return module$contents$goog$array_forEach(e,function(i,a){r[t.call(n,i,a,e)]=i}),r},goog.array.toMap=function(e,t){for(var n=new Map,r=0;r<e.length;r++){var i=e[r];n.set(t(i,r,e),i)}return n},goog.array.range=function(e,t,n){var r=[],i=0,a=e;if(void 0!==t&&(i=e,a=t),0>(n=n||1)*(a-i))return[];if(0<n)for(e=i;e<a;e+=n)r.push(e);else for(e=i;e>a;e+=n)r.push(e);return r},goog.array.repeat=function(e,t){for(var n=[],r=0;r<t;r++)n[r]=e;return n},goog.array.flatten=module$contents$goog$array_flatten,goog.array.rotate=function(e,t){return goog.asserts.assert(null!=e.length),e.length&&(0<(t%=e.length)?Array.prototype.unshift.apply(e,e.splice(-t,t)):0>t&&Array.prototype.push.apply(e,e.splice(0,-t))),e},goog.array.moveItem=function(e,t,n){goog.asserts.assert(0<=t&&t<e.length),goog.asserts.assert(0<=n&&n<e.length),t=Array.prototype.splice.call(e,t,1),Array.prototype.splice.call(e,n,0,t[0])},goog.array.zip=function(e){if(!arguments.length)return[];for(var t=[],n=arguments[0].length,r=1;r<arguments.length;r++)arguments[r].length<n&&(n=arguments[r].length);for(r=0;r<n;r++){for(var i=[],a=0;a<arguments.length;a++)i.push(arguments[a][r]);t.push(i)}return t},goog.array.shuffle=function(e,t){t=t||Math.random;for(var n=e.length-1;0<n;n--){var r=Math.floor(t()*(n+1)),i=e[n];e[n]=e[r],e[r]=i}},goog.array.copyByIndex=function(e,t){var n=[];return module$contents$goog$array_forEach(t,function(t){n.push(e[t])}),n},goog.array.concatMap=function(e,t,n){return module$contents$goog$array_concat.apply([],module$contents$goog$array_map(e,t,n))},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.getVersion=module$contents$goog$labs$userAgent$engine_getVersion,goog.labs.userAgent.engine.isEdge=module$contents$goog$labs$userAgent$engine_isEdge,goog.labs.userAgent.engine.isGecko=module$contents$goog$labs$userAgent$engine_isGecko,goog.labs.userAgent.engine.isPresto=function(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=module$contents$goog$labs$userAgent$engine_isTrident,goog.labs.userAgent.engine.isVersionOrHigher=function(e){return 0<=goog.string.internal.compareVersions(module$contents$goog$labs$userAgent$engine_getVersion(),e)},goog.labs.userAgent.engine.isWebKit=module$contents$goog$labs$userAgent$engine_isWebKit,goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=function(){},goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch(e){}return!1},goog.reflect.cache=function(e,t,n,r){return r=r?r(t):t,Object.prototype.hasOwnProperty.call(e,r)?e[r]:e[r]=n(t)},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return module$contents$goog$labs$userAgent$util_getUserAgent()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:module$contents$goog$labs$userAgent$browser_matchOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:module$contents$goog$labs$userAgent$browser_matchIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:module$contents$goog$labs$userAgent$engine_isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:module$contents$goog$labs$userAgent$engine_isGecko(),goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:module$contents$goog$labs$userAgent$engine_isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&module$contents$goog$labs$userAgent$util_matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var e=goog.userAgent.getNavigatorTyped();return e&&e.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.ASSUME_IPOD=!1,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:module$contents$goog$labs$userAgent$platform_isMacintosh(),goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:module$contents$goog$labs$userAgent$platform_isWindows(),goog.userAgent.isLegacyLinux_=function(){return module$contents$goog$labs$userAgent$platform_isLinux()||module$contents$goog$labs$userAgent$platform_isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var e=goog.userAgent.getNavigatorTyped();return!!e&&goog.string.internal.contains(e.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:module$contents$goog$labs$userAgent$platform_isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:module$contents$goog$labs$userAgent$platform_isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:module$contents$goog$labs$userAgent$platform_isIpad(),goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:module$contents$goog$labs$userAgent$platform_isIpod(),goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:module$contents$goog$labs$userAgent$platform_isIos(),goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:module$contents$goog$labs$userAgent$platform_isKaiOS(),goog.userAgent.determineVersion_=function(){var e="",t=goog.userAgent.getVersionRegexResult_();return t&&(e=t?t[1]:""),goog.userAgent.IE&&null!=(t=goog.userAgent.getDocumentMode_())&&t>parseFloat(e)?String(t):e},goog.userAgent.getVersionRegexResult_=function(){var e=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(e):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(e):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(e):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(e):void 0},goog.userAgent.getDocumentMode_=function(){var e=goog.global.document;return e?e.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(e,t){return goog.string.internal.compareVersions(e,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(e){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,e,function(){return 0<=goog.string.internal.compareVersions(goog.userAgent.VERSION,e)})},goog.userAgent.isDocumentModeOrHigher=function(e){return Number(goog.userAgent.DOCUMENT_MODE)>=e},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.global.document&&goog.userAgent.IE&&(goog.userAgent.getDocumentMode_()||parseInt(goog.userAgent.VERSION,10))||void 0),goog.userAgent.DOCUMENT_MODE=JSCompiler_inline_result$jscomp$97,goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:module$contents$goog$labs$userAgent$browser_matchFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return module$contents$goog$labs$userAgent$platform_isIphone()||module$contents$goog$labs$userAgent$platform_isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:module$contents$goog$labs$userAgent$platform_isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:module$contents$goog$labs$userAgent$browser_matchAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:module$contents$goog$labs$userAgent$browser_matchChrome(),goog.userAgent.product.isSafariDesktop_=function(){return module$contents$goog$labs$userAgent$browser_matchSafari()&&!module$contents$goog$labs$userAgent$platform_isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(e){return goog.string.internal.contains(goog.crypt.base64.paddingChars_,e)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||"function"==typeof goog.global.btoa,goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&"function"==typeof goog.global.atob,goog.crypt.base64.encodeByteArray=function(e,t){goog.asserts.assert(goog.isArrayLike(e),"encodeByteArray takes an array as a parameter"),void 0===t&&(t=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),t=goog.crypt.base64.byteToCharMaps_[t];for(var n=Array(Math.floor(e.length/3)),r=t[64]||"",i=0,a=0;i<e.length-2;i+=3){var o=e[i],s=e[i+1],l=e[i+2],u=t[o>>2];o=t[(3&o)<<4|s>>4],s=t[(15&s)<<2|l>>6],l=t[63&l],n[a++]=""+u+o+s+l}switch(u=0,l=r,e.length-i){case 2:l=t[(15&(u=e[i+1]))<<2]||r;case 1:e=e[i],n[a]=""+t[e>>2]+t[(3&e)<<4|u>>4]+l+r}return n.join("")},goog.crypt.base64.encodeBinaryString=function(e,t){return goog.crypt.base64.encodeString(e,t,!0)},goog.crypt.base64.encodeString=function(e,t,n){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(e):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(e,n),t)},goog.crypt.base64.encodeStringUtf8=function(e,t){return goog.crypt.base64.encodeText(e,t)},goog.crypt.base64.encodeText=function(e,t){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(unescape(encodeURIComponent(e))):goog.crypt.base64.encodeByteArray(goog.crypt.stringToUtf8ByteArray(e),t)},goog.crypt.base64.decodeToBinaryString=function(e,t){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!t)return goog.global.atob(e);var n="";return goog.crypt.base64.decodeStringInternal_(e,function(e){n+=String.fromCharCode(e)}),n},goog.crypt.base64.decodeString=goog.crypt.base64.decodeToBinaryString,goog.crypt.base64.decodeStringUtf8=function(e,t){return goog.crypt.base64.decodeToText(e,t)},goog.crypt.base64.decodeToText=function(e,t){return decodeURIComponent(escape(goog.crypt.base64.decodeString(e,t)))},goog.crypt.base64.decodeStringToByteArray=function(e){var t=[];return goog.crypt.base64.decodeStringInternal_(e,function(e){t.push(e)}),t},goog.crypt.base64.decodeStringToUint8Array=function(e){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var t=e.length,n=3*t/4;n%3?n=Math.floor(n):goog.crypt.base64.isPadding_(e[t-1])&&(n=goog.crypt.base64.isPadding_(e[t-2])?n-2:n-1);var r=new Uint8Array(n),i=0;return goog.crypt.base64.decodeStringInternal_(e,function(e){r[i++]=e}),i!==n?r.subarray(0,i):r},goog.crypt.base64.decodeStringInternal_=function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=goog.crypt.base64.charToByteMap_[n];if(null!=i)return i;if(!goog.string.internal.isEmptyOrWhitespace(n))throw Error("Unknown base64 encoding at char: "+n)}return t}goog.crypt.base64.init_();for(var r=0;;){var i=n(-1),a=n(0),o=n(64),s=n(64);if(64===s&&-1===i)break;t(i<<2|a>>4),64!=o&&(t(a<<4&240|o>>2),64!=s&&t(o<<6&192|s))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var e=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=e.concat(t[n].split(""));goog.crypt.base64.byteToCharMaps_[n]=r;for(var i=0;i<r.length;i++){var a=r[i],o=goog.crypt.base64.charToByteMap_[a];void 0===o?goog.crypt.base64.charToByteMap_[a]=i:goog.asserts.assert(o===i)}}}};var module$contents$jspb$internal_bytes_emptyUint8Array_,module$exports$jspb$internal_bytes={};function module$contents$jspb$internal_bytes_dataAsU8(e){return null==e||module$contents$jspb$internal_bytes_isU8(e)?e:"string"==typeof e?goog.crypt.base64.decodeStringToUint8Array(e):((0,goog.asserts.fail)("Cannot coerce to Uint8Array: "+goog.typeOf(e)),null)}function module$contents$jspb$internal_bytes_isU8(e){return module$exports$jspb$internal_bytes.SUPPORTS_UINT8ARRAY&&null!=e&&e instanceof Uint8Array}function module$contents$jspb$internal_bytes_emptyUint8Array(){return module$contents$jspb$internal_bytes_emptyUint8Array_||(module$contents$jspb$internal_bytes_emptyUint8Array_=new Uint8Array(0))}module$exports$jspb$internal_bytes.SUPPORTS_UINT8ARRAY="undefined"!=typeof Uint8Array,module$exports$jspb$internal_bytes.I_AM_INTERNAL={},module$exports$jspb$internal_bytes.SUPPORTS_STRUCTURED_CLONE=2022<goog.FEATURESET_YEAR||"undefined"!=typeof structuredClone,module$exports$jspb$internal_bytes.dataAsU8=module$contents$jspb$internal_bytes_dataAsU8,module$exports$jspb$internal_bytes.emptyUint8Array=module$contents$jspb$internal_bytes_emptyUint8Array,module$exports$jspb$internal_bytes.isU8=module$contents$jspb$internal_bytes_isU8;var module$contents$jspb$bytestring_emptyByteString,module$exports$jspb$bytestring={};function module$contents$jspb$bytestring_checkAllowedCaller(e){if(e!==module$exports$jspb$internal_bytes.I_AM_INTERNAL)throw Error("illegal external caller")}function module$contents$jspb$bytestring_structuredCloneBasedOnMessageChannel(e,t){return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){return n.return(new Promise(function(n,r){var i=new MessageChannel;i.port2.onmessage=function(e){n(e.data)};try{i.port1.postMessage(e,t)}catch(e){r(e)}}))})}var module$contents$jspb$bytestring_structuredClonePonyfill=module$exports$jspb$internal_bytes.SUPPORTS_STRUCTURED_CLONE?function(e,t){return Promise.resolve(structuredClone(e,{transfer:t}))}:module$contents$jspb$bytestring_structuredCloneBasedOnMessageChannel;function module$contents$jspb$bytestring_dontPassByteStringToStructuredClone(){}module$exports$jspb$bytestring.ByteString=function(e,t){if(module$contents$jspb$bytestring_checkAllowedCaller(t),this.value_=e,null!=e&&0===e.length)throw Error("ByteString should be constructed with non-empty values");goog.DEBUG&&(this.dontPassByteStringToStructuredClone=module$contents$jspb$bytestring_dontPassByteStringToStructuredClone)},module$exports$jspb$bytestring.ByteString.fromBase64=function(e){return(0,goog.asserts.assertString)(e),e?new module$exports$jspb$bytestring.ByteString(e,module$exports$jspb$internal_bytes.I_AM_INTERNAL):module$exports$jspb$bytestring.ByteString.empty()},module$exports$jspb$bytestring.ByteString.fromUint8Array=function(e){return(0,goog.asserts.assertInstanceof)(e,Uint8Array),e.length?new module$exports$jspb$bytestring.ByteString(new Uint8Array(e),module$exports$jspb$internal_bytes.I_AM_INTERNAL):module$exports$jspb$bytestring.ByteString.empty()},module$exports$jspb$bytestring.ByteString.fromTransferredUint8Array=function(e){var t,n;return $jscomp.asyncExecutePromiseGeneratorProgram(function(r){return 1==r.nextAddress?((0,goog.asserts.assertInstanceof)(e,Uint8Array),e.length?(n=module$exports$jspb$bytestring.ByteString,r.yield(module$contents$jspb$bytestring_structuredClonePonyfill(e,[e.buffer]),3)):(t=module$exports$jspb$bytestring.ByteString.empty(),r.jumpTo(2))):(2!=r.nextAddress&&(t=new n(r.yieldResult,module$exports$jspb$internal_bytes.I_AM_INTERNAL)),r.return(t))})},module$exports$jspb$bytestring.ByteString.fromStringUtf8=function(e){return(0,goog.asserts.assertString)(e),e.length?new module$exports$jspb$bytestring.ByteString(module$contents$jspb$binary$utf8_encodeUtf8(e,!0),module$exports$jspb$internal_bytes.I_AM_INTERNAL):module$exports$jspb$bytestring.ByteString.empty()},module$exports$jspb$bytestring.ByteString.empty=function(){return module$contents$jspb$bytestring_emptyByteString||(module$contents$jspb$bytestring_emptyByteString=new module$exports$jspb$bytestring.ByteString(null,module$exports$jspb$internal_bytes.I_AM_INTERNAL))},module$exports$jspb$bytestring.ByteString.prototype.asBase64=function(){var e=this.value_;return null==e?"":"string"==typeof e?e:this.value_=goog.crypt.base64.encodeByteArray(e)},module$exports$jspb$bytestring.ByteString.prototype.asUint8Array=function(){var e=this.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL);return e?new Uint8Array(e):module$contents$jspb$internal_bytes_emptyUint8Array()},module$exports$jspb$bytestring.ByteString.prototype.isEmpty=function(){return null==this.value_},module$exports$jspb$bytestring.ByteString.prototype.sizeBytes=function(){var e=this.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL);return e?e.length:0},module$exports$jspb$bytestring.ByteString.prototype.asStringUtf8=function(e){e=void 0===(e=void 0===e?{}:e).parsingErrorsAreFatal||e.parsingErrorsAreFatal;var t=this.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL);if(t){var n=t.length;e=module$contents$jspb$binary$utf8_useTextDecoderDecode?module$contents$jspb$binary$utf8_textDecoderDecodeUtf8(t,0,n,e):module$contents$jspb$binary$utf8_polyfillDecodeUtf8(t,0,n,e)}else e="";return e},module$exports$jspb$bytestring.ByteString.prototype.legacyUnwrap=function(){var e=this.value_||"";return"string"==typeof e?e:new Uint8Array(e)},module$exports$jspb$bytestring.ByteString.prototype.equalsByteString=function(e){if((0,goog.asserts.assertInstanceof)(e,module$exports$jspb$bytestring.ByteString),!this.value_||!e.value_||this.value_===e.value_)return this.value_===e.value_;if("string"==typeof this.value_&&"string"==typeof e.value_){var t=this.value_,n=e.value_;if(e.value_.length>this.value_.length&&(n=this.value_,t=e.value_),0!==t.lastIndexOf(n,0))return!1;for(e=n.length;e<t.length;e++)if("="!==t[e])return!1;return!0}if(t=this.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL),e=e.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL),t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},module$exports$jspb$bytestring.ByteString.prototype.internalBytesUnsafe=function(e){return module$contents$jspb$bytestring_checkAllowedCaller(e),null==(e=module$contents$jspb$internal_bytes_dataAsU8(this.value_))?e:this.value_=e},module$exports$jspb$bytestring.ByteString.prototype.internalUnwrap=function(e){return module$contents$jspb$bytestring_checkAllowedCaller(e),this.value_||""};var module$exports$jspb$internal_array_state={},module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL=2018<=goog.FEATURESET_YEAR||"function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol(goog.DEBUG?"INTERNAL_ARRAY_STATE":void 0):void 0;module$exports$jspb$internal_array_state.DEFAULT_ARRAY_STATE=0,module$exports$jspb$internal_array_state.ArrayStateFlags={IS_REPEATED_FIELD:1,IS_IMMUTABLE_ARRAY:2,IS_API_FORMATTED:4,ONLY_MUTABLE_VALUES:8,MUTABLE_REFERENCES_ARE_OWNED:16,CONSTRUCTED:32,TRANSFERRED:64};var module$contents$jspb$internal_array_state_ALL_FLAGS=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES|module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED|module$exports$jspb$internal_array_state.ArrayStateFlags.TRANSFERRED;function module$contents$jspb$internal_array_state_assertValidFlags(e){goog.asserts.assert((e&module$contents$jspb$internal_array_state_ALL_FLAGS)==e)}function module$contents$jspb$internal_array_state_addFlags(e,t){module$contents$jspb$internal_array_state_assertValidFlags(t),goog.asserts.assertArray(e),Object.isFrozen(e)||(module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL?e[module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL]|=t:void 0!==e.internalArrayState?e.internalArrayState|=t:Object.defineProperties(e,{internalArrayState:{value:t,configurable:!0,writable:!0,enumerable:!1}}))}function module$contents$jspb$internal_array_state_clearFlags(e,t){module$contents$jspb$internal_array_state_assertValidFlags(t),goog.asserts.assertArray(e),Object.isExtensible(e)&&(module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL?e[module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL]&&(e[module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL]&=~t):void 0!==e.internalArrayState&&(e.internalArrayState&=~t))}if(goog.DEBUG){var prev=Object.getOwnPropertyDescriptor(Array.prototype,"jspbArrayState");Object.defineProperties(Array.prototype,{jspbArrayState:{get:function(){var e=module$contents$jspb$internal_array_state_getState(this),t=[],n=function(n,r){n&e&&t.push(r)};return n(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD,"IS_REPEATED_FIELD"),n(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY,"IS_IMMUTABLE_ARRAY"),n(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED,"IS_API_FORMATTED"),n(module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES,"ONLY_MUTABLE_VALUES"),n(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED,"MUTABLE_REFERENCES_ARE_OWNED"),n(module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED,"CONSTRUCTED"),n(module$exports$jspb$internal_array_state.ArrayStateFlags.TRANSFERRED,"TRANSFERRED"),n=t.join(","),prev?prev.get.call(this)+"|"+n:n},configurable:!0,enumerable:!1}})}function module$contents$jspb$internal_array_state_getState(e){return null==(e=module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL?e[module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL]:e.internalArrayState)?module$exports$jspb$internal_array_state.DEFAULT_ARRAY_STATE:e}function module$contents$jspb$internal_array_state_setState(e,t){goog.asserts.assertArray(e,"state is only maintained on arrays."),module$contents$jspb$internal_array_state_assertValidFlags(t),module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL?e[module$contents$jspb$internal_array_state_ARRAY_STATE_SYMBOL]=t:void 0!==e.internalArrayState?e.internalArrayState=t:Object.defineProperties(e,{internalArrayState:{value:t,configurable:!0,writable:!0,enumerable:!1}})}function module$contents$jspb$internal_array_state_isRepeatedField(e){return!!e&&!!(module$contents$jspb$internal_array_state_getState(e)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD)}function module$contents$jspb$internal_array_state_markImmutableAndRepeatedField(e){return goog.asserts.assertArray(e,"state is only maintained on arrays."),module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD),e}function module$contents$jspb$internal_array_state_markRepeatedField(e){return goog.asserts.assertArray(e,"state is only maintained on arrays."),module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD),e}function module$contents$jspb$internal_array_state_canMarkImmutableInPlaceIfParentIsOwned(e){return goog.asserts.assertArray(e,"state is only maintained on arrays."),!((e=module$contents$jspb$internal_array_state_getState(e))&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED)&&(!!(e&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED)||e=
vendor: 10,159 bytes, line 2
2==module$exports$jspb$internal_array_state.DEFAULT_ARRAY_STATE)}function module$contents$jspb$internal_array_state_markRepeatedWrapperFieldAsConstructed(e,t){if(Object.isFrozen(e))return e;goog.asserts.assertArray(e,"state is only maintained on arrays.");var n=module$contents$jspb$internal_array_state_getState(e)|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED;return module$contents$jspb$internal_array_state_setState(e,n=t?n|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES:n&~module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES),e}function module$contents$jspb$internal_array_state_markRepeatedAndOwned(e){return goog.asserts.assertArray(e,"state is only maintained on arrays."),module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED),e}function module$contents$jspb$internal_array_state_markApiFormattedField(e){return goog.asserts.assertArray(e,"state is only maintained on arrays."),module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD),e}function module$contents$jspb$internal_array_state_isApiFormattedField(e){return goog.asserts.assertArray(e,"state is only maintained on arrays."),!!(module$contents$jspb$internal_array_state_getState(e)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED)}function module$contents$jspb$internal_array_state_isImmutableArray(e){return!!e&&!!(module$contents$jspb$internal_array_state_getState(e)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)}function module$contents$jspb$internal_array_state_markArrayImmutable(e){return module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY),e}function module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(e){return module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED),e}function module$contents$jspb$internal_array_state_markOwnedAndConstructed(e){return module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED),e}function module$contents$jspb$internal_array_state_markShared(e){if(!Array.isArray(e))throw Error("cannot mark non-array as shared mutably");return module$contents$jspb$internal_array_state_clearFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED),e}function module$contents$jspb$internal_array_state_areMutableReferencesOwned(e){return!!(module$contents$jspb$internal_array_state_getState(e)&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED)}function module$contents$jspb$internal_array_state_getAndSetConstructed(e,t){var n=module$contents$jspb$internal_array_state_getState(e);return module$contents$jspb$internal_array_state_setState(e,void 0===t||t?n|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED:n&~module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED),!!(n&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED)}function module$contents$jspb$internal_array_state_isConstructed(e){return!!(module$contents$jspb$internal_array_state_getState(e)&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED)}function module$contents$jspb$internal_array_state_hasOnlyMutableValues(e){if(!e)throw Error("cannot check mutability state of non-array");return!!(module$contents$jspb$internal_array_state_getState(e)&module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES)}function module$contents$jspb$internal_array_state_markOnlyMutableValues(e,t){return t?module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES):module$contents$jspb$internal_array_state_clearFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES),e}function module$contents$jspb$internal_array_state_copyArrayBitsForClone(e,t){module$contents$jspb$internal_array_state_setState(t,(0|module$contents$jspb$internal_array_state_getState(e))&~(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED|module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED))}function module$contents$jspb$internal_array_state_copyArrayBitsForCloneImmutable(e,t){module$contents$jspb$internal_array_state_setState(t,(module$contents$jspb$internal_array_state_getState(e)|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED)&~module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED)}function module$contents$jspb$internal_array_state_mergeArrayState(e,t){module$contents$jspb$internal_array_state_addFlags(t,module$contents$jspb$internal_array_state_getState(e)&~module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED)}function module$contents$jspb$internal_array_state_markArrayTransferred(e,t){var n=module$contents$jspb$internal_array_state_getState(e);n!==module$exports$jspb$internal_array_state.DEFAULT_ARRAY_STATE&&t(),module$contents$jspb$internal_array_state_setState(e,n|module$exports$jspb$internal_array_state.ArrayStateFlags.TRANSFERRED)}function module$contents$jspb$unsafe_bytestring_unsafeUint8ArrayFromByteString(e){return(0,goog.asserts.assertInstanceof)(e,module$exports$jspb$bytestring.ByteString),e.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL)||module$contents$jspb$internal_bytes_emptyUint8Array()}module$exports$jspb$internal_array_state.areMutableReferencesOwned=module$contents$jspb$internal_array_state_areMutableReferencesOwned,module$exports$jspb$internal_array_state.canMarkImmutableInPlaceIfParentIsOwned=module$contents$jspb$internal_array_state_canMarkImmutableInPlaceIfParentIsOwned,module$exports$jspb$internal_array_state.copyArrayBitsForClone=module$contents$jspb$internal_array_state_copyArrayBitsForClone,module$exports$jspb$internal_array_state.copyArrayBitsForCloneImmutable=module$contents$jspb$internal_array_state_copyArrayBitsForCloneImmutable,module$exports$jspb$internal_array_state.getAndSetConstructed=module$contents$jspb$internal_array_state_getAndSetConstructed,module$exports$jspb$internal_array_state.getArrayState=module$contents$jspb$internal_array_state_getState,module$exports$jspb$internal_array_state.setArrayState=module$contents$jspb$internal_array_state_setState,module$exports$jspb$internal_array_state.addArrayStateFlags=module$contents$jspb$internal_array_state_addFlags,module$exports$jspb$internal_array_state.hasOnlyMutableValues=module$contents$jspb$internal_array_state_hasOnlyMutableValues,module$exports$jspb$internal_array_state.isApiFormattedField=module$contents$jspb$internal_array_state_isApiFormattedField,module$exports$jspb$internal_array_state.isConstructed=module$contents$jspb$internal_array_state_isConstructed,module$exports$jspb$internal_array_state.isImmutableArray=module$contents$jspb$internal_array_state_isImmutableArray,module$exports$jspb$internal_array_state.isRepeatedField=module$contents$jspb$internal_array_state_isRepeatedField,module$exports$jspb$internal_array_state.markApiFormattedField=module$contents$jspb$internal_array_state_markApiFormattedField,module$exports$jspb$internal_array_state.markArrayImmutable=module$contents$jspb$internal_array_state_markArrayImmutable,module$exports$jspb$internal_array_state.markArrayTransferred=module$contents$jspb$internal_array_state_markArrayTransferred,module$exports$jspb$internal_array_state.markConstructed=function(e){return module$contents$jspb$internal_array_state_addFlags(e,module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED),e},module$exports$jspb$internal_array_state.markMutableReferencesAreOwned=module$contents$jspb$internal_array_state_markMutableReferencesAreOwned,module$exports$jspb$internal_array_state.markOwnedAndConstructed=module$contents$jspb$internal_array_state_markOwnedAndConstructed,module$exports$jspb$internal_array_state.mergeArrayState=module$contents$jspb$internal_array_state_mergeArrayState,module$exports$jspb$internal_array_state.mergeArrayStateAndMarkImmutable=function(e,t){module$contents$jspb$internal_array_state_addFlags(t,module$contents$jspb$internal_array_state_getState(e)&~module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)},module$exports$jspb$internal_array_state.markImmutableAndRepeatedField=module$contents$jspb$internal_array_state_markImmutableAndRepeatedField,module$exports$jspb$internal_array_state.markOnlyMutableValues=module$contents$jspb$internal_array_state_markOnlyMutableValues,module$exports$jspb$internal_array_state.markRepeatedAndOwned=module$contents$jspb$internal_array_state_markRepeatedAndOwned,module$exports$jspb$internal_array_state.markRepeatedField=module$contents$jspb$internal_array_state_markRepeatedField,module$exports$jspb$internal_array_state.markRepeatedWrapperFieldAsConstructed=module$contents$jspb$internal_array_state_markRepeatedWrapperFieldAsConstructed,module$exports$jspb$internal_array_state.markShared=module$contents$jspb$internal_array_state_markShared,module$exports$jspb$internal_array_state.newImmutableRepeatedField=function(){var e=[];return module$contents$jspb$internal_array_state_setState(e,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD),e};var module$
vendor: 89,890 bytes, line 2
2contents$jspb$internal_inSerialize,module$exports$jspb$internal={InternalMessage:function(){},MESSAGE_PROTOTYPE_MARKER_VALUE:{}};function module$contents$jspb$internal_isMessage(e){return e.messagePrototypeMarker===module$exports$jspb$internal.MESSAGE_PROTOTYPE_MARKER_VALUE}function module$contents$jspb$internal_isImmutableMessage(e){return module$contents$jspb$internal_array_state_isImmutableArray(e.internalArray_)}function module$contents$jspb$internal_internalMarkMessageImmutable(e){module$contents$jspb$internal_array_state_markArrayImmutable(e.internalArray_)}function module$contents$jspb$internal_isExtensionObject(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)&&e.constructor===Object}function module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(e,t){return goog.TRUSTED_SITE||Object.prototype.hasOwnProperty.call(e,t)}function module$contents$jspb$internal_newRepeatedField(){return module$contents$jspb$internal_array_state_markRepeatedField([])}function module$contents$jspb$internal_invalidBytes(e){throw goog.DEBUG?Error("cannot coerce "+e+" to a ByteString, expected a uint8Array, a base64 encoded string or a ByteString"):Error()}function module$contents$jspb$internal_bytesAsByteString(e,t,n){return null==e?n?e:module$contents$jspb$internal_invalidBytes(e):"string"==typeof e?module$exports$jspb$bytestring.ByteString.fromBase64(e):e.constructor===module$exports$jspb$bytestring.ByteString?e:module$contents$jspb$internal_bytes_isU8(e)?module$exports$jspb$bytestring.ByteString.fromUint8Array(e):t?void 0:module$contents$jspb$internal_invalidBytes(e)}function module$contents$jspb$internal_maybeUnsafeUnwrapByteString(e){return e instanceof module$exports$jspb$bytestring.ByteString&&((0,goog.asserts.assertInstanceof)(e,module$exports$jspb$bytestring.ByteString),e=e.internalUnwrap(module$exports$jspb$internal_bytes.I_AM_INTERNAL)),e}function module$contents$jspb$internal_isEmptyRepeatedField(e){return Array.isArray(e)&&module$contents$jspb$internal_array_state_isRepeatedField(e)&&!e.length}function module$contents$jspb$internal_invisiblePropValue(e){return{value:e,configurable:!1,writable:!1,enumerable:!1}}function module$contents$jspb$internal_disallowPassingToStructuredClone(e){goog.DEBUG&&(e.preventPassingToStructuredClone=module$contents$jspb$internal_dontPassJspbTypeToStructuredClone)}function module$contents$jspb$internal_dontPassJspbTypeToStructuredClone(){}module$exports$jspb$internal.EXEMPTED_SUBCLASS_MARKER=goog.asserts.ENABLE_ASSERTS?Symbol(goog.DEBUG?"exempted jspb subclass":void 0):void 0,module$exports$jspb$internal.GENERATED_SUBCLASS_MARKER=goog.asserts.ENABLE_ASSERTS?Symbol(goog.DEBUG?"generated by jspb":void 0):void 0,module$exports$jspb$internal.EMPTY_LIST_SENTINEL=Object.freeze(module$contents$jspb$internal_array_state_markImmutableAndRepeatedField([])),module$exports$jspb$internal.FIXED_GROUP_FLAG="g",module$exports$jspb$internal.checkNotImmutable=function(e){if(module$contents$jspb$internal_isImmutableMessage(e))throw Error("Cannot mutate an immutable Message")},module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE=2018<=goog.FEATURESET_YEAR||"undefined"!=typeof Symbol&&void 0!==Symbol.hasInstance,module$exports$jspb$internal.ArrayIteratorIterable=function(e){this.idx_=0,this.arr_=e},module$exports$jspb$internal.ArrayIteratorIterable.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},module$exports$jspb$internal.ArrayIteratorIterable.prototype[Symbol.iterator]=function(){return this},module$exports$jspb$internal.bytesAsByteString=module$contents$jspb$internal_bytesAsByteString,module$exports$jspb$internal.bytesAsU8=function(e){return module$contents$jspb$internal_bytes_dataAsU8(module$contents$jspb$internal_maybeUnsafeUnwrapByteString(e))},module$exports$jspb$internal.disallowPassingToStructuredClone=module$contents$jspb$internal_disallowPassingToStructuredClone,module$exports$jspb$internal.fieldNumberFromIndex=function(e,t){return t-e.arrayIndexOffset},module$exports$jspb$internal.getInSerialize=function(){return module$contents$jspb$internal_inSerialize},module$exports$jspb$internal.hasOwnPropertyIfNotTrusted=module$contents$jspb$internal_hasOwnPropertyIfNotTrusted,module$exports$jspb$internal.indexFromFieldNumber=function(e,t){return t+e.arrayIndexOffset},module$exports$jspb$internal.internalMarkMessageImmutable=module$contents$jspb$internal_internalMarkMessageImmutable,module$exports$jspb$internal.invisiblePropValue=module$contents$jspb$internal_invisiblePropValue,module$exports$jspb$internal.isEmptyRepeatedField=module$contents$jspb$internal_isEmptyRepeatedField,module$exports$jspb$internal.isExtensionObject=module$contents$jspb$internal_isExtensionObject,module$exports$jspb$internal.isImmutableMessage=module$contents$jspb$internal_isImmutableMessage,module$exports$jspb$internal.maybeUnsafeUnwrapByteString=module$contents$jspb$internal_maybeUnsafeUnwrapByteString,module$exports$jspb$internal.newRepeatedField=module$contents$jspb$internal_newRepeatedField,module$exports$jspb$internal.setInSerialize=function(e){module$contents$jspb$internal_inSerialize=e},module$exports$jspb$internal.isMessage=module$contents$jspb$internal_isMessage;var module$contents$jspb$internal_options_useDeterministicStructure,module$exports$jspb$internal_options={},module$contents$jspb$internal_options_skipMessageIdValidation=!0,module$contents$jspb$internal_options_skipMessageArgumentTypeValidation=!0;module$exports$jspb$internal_options.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,module$exports$jspb$internal_options.writeLowIndexExtensionsInline=!1,module$exports$jspb$internal_options.fixGroupsB171736612=!1,module$exports$jspb$internal_options.CheckLevel={OFF:0,THROW:1};var module$contents$jspb$internal_options_submessageTypeChecks=module$exports$jspb$internal_options.CheckLevel.THROW,module$contents$jspb$internal_options_typeCheckStringFields=!1;function module$contents$jspb$internal_accessor_helpers_checkFloat(e){goog.asserts.assert(null==e||"number"==typeof e,"Value of float field must be a number, found %s: %s",typeof e,e)}function module$contents$jspb$internal_accessor_helpers_checkDouble(e){goog.asserts.assert(null==e||"number"==typeof e,"Value of double field must be a number, found %s: %s",typeof e,e)}function module$contents$jspb$internal_accessor_helpers_ctorName(e){return e.displayName||e.name||"unknown type name"}function module$contents$jspb$internal_accessor_helpers_checkString(e){if(module$contents$jspb$internal_options_typeCheckStringFields&&"string"!=typeof e)throw Error("Expected a string but got "+e+" a "+goog.typeOf(e));return e}function module$contents$jspb$internal_accessor_helpers_checkNullishString(e){if(module$contents$jspb$internal_options_typeCheckStringFields&&null!=e&&"string"!=typeof e)throw Error("Expected a string or null or undefined but got "+e+" a "+goog.typeOf(e));return e}function module$contents$jspb$internal_accessor_helpers_coerceToNullishString(e){return module$contents$jspb$internal_options_typeCheckStringFields?null==e||"string"==typeof e?e:void 0:e}function module$contents$jspb$internal_accessor_helpers_checkMessageType(e,t){if(module$contents$jspb$internal_options_submessageTypeChecks===module$exports$jspb$internal_options.CheckLevel.THROW&&!(e instanceof t))throw Error("Expected instanceof "+module$contents$jspb$internal_accessor_helpers_ctorName(t)+" but got "+(e&&module$contents$jspb$internal_accessor_helpers_ctorName(e.constructor)));return e}function module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(e,t,n){var r=!1;return null!=e&&"object"==typeof e&&!(r=Array.isArray(e))&&module$contents$jspb$internal_isMessage(e)?e:r?new t(e):n?new t:void 0}function module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(e){return goog.asserts.assertArray(e),e}module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY=goog.DEBUG&&!1,module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS=!1,module$exports$jspb$internal_options.getUseDeterministicStructure=function(){return null!=module$contents$jspb$internal_options_useDeterministicStructure&&module$contents$jspb$internal_options_useDeterministicStructure},module$exports$jspb$internal_options.setMessageArgumentTypeValidation=function(e){module$contents$jspb$internal_options_skipMessageArgumentTypeValidation=!e},module$exports$jspb$internal_options.setUseDeterministicStructure=function(e){module$contents$jspb$internal_options_useDeterministicStructure=e},module$exports$jspb$internal_options.setValidateMessageIds=function(e){module$contents$jspb$internal_options_skipMessageIdValidation=!e},module$exports$jspb$internal_options.skipMessageArgumentTypeValidation=function(){return module$contents$jspb$internal_options_skipMessageArgumentTypeValidation},module$exports$jspb$internal_options.skipMessageIdValidation=function(){return module$contents$jspb$internal_options_skipMessageIdValidation},module$exports$jspb$internal_options.setSubmessageTypeCheckLevel=function(e){(0,goog.asserts.assert)(e===module$exports$jspb$internal_options.CheckLevel.OFF||e===module$exports$jspb$internal_options.CheckLevel.THROW),module$contents$jspb$internal_options_submessageTypeChecks=e},module$exports$jspb$internal_options.getSubmessageTypeCheckLevel=function(){return module$contents$jspb$internal_options_submessageTypeChecks},module$exports$jspb$internal_options.setTypeCheckStringFields=function(e){(0,goog.asserts.assertBoolean)(e),module$contents$jspb$internal_options_typeCheckStringFields=e},module$exports$jspb$internal_options.getTypeCheckStringFields=function(){return module$contents$jspb$internal_options_typeCheckStringFields};var module$exports$jspb$map={Map:function(e,t,n,r){for(r=void 0===r?module$contents$jspb$map_noopToRuntime:r,n=module$contents$jspb$internal_array_state_getState(e),(0,goog.asserts.assert)(n&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY||(n&(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED))!=(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED),"owned maps should not be constructed twice"),module$contents$jspb$internal_array_state_setState(e,n|=module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED),this.arrayState=n,this.toApi=(this.valueCtor=t)?module$contents$jspb$map_messageToApi:module$contents$jspb$map_noopToApi,this.toRuntime=r,this.map_=t=new Map,r=0;r<e.length;r++)n=e[r],t.set(n[0],n[1]);this.size=t.size,module$contents$jspb$internal_disallowPassingToStructuredClone(this)}};function module$contents$jspb$map_legacySortFunction(e,t){return(e=""+e)>(t=""+t)?1:e<t?-1:0}if(module$exports$jspb$map.Map.prototype.checkNotImmutable_=function(){if(this.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)throw Error("Cannot mutate an immutable Map")},module$exports$jspb$map.Map.prototype.buildNewFromArray=function(e){return new module$exports$jspb$map.Map(e,this.valueCtor,this.toApi,this.toRuntime)},module$exports$jspb$map.Map.prototype.toArrayInternal=function(e){e=void 0===e?module$contents$jspb$map_identity:e;for(var t=this.sortedKeys_(),n=0;n<t.length;n++){var r=t[n],i=this.map_.get(t[n]);t[n]=[e(r),e(i)]}return t},module$exports$jspb$map.Map.prototype.toArrayInternalUnsorted=function(e){e=void 0===e?module$contents$jspb$map_identity:e;for(var t,n=[],r=this.map_.entries();!(t=r.next()).done;)(t=t.value)[0]=e(t[0]),t[1]=e(t[1]),n.push(t);return n},module$exports$jspb$map.Map.prototype.getLength=function(){return this.size},module$exports$jspb$map.Map.prototype.clear=function(){this.checkNotImmutable_(),this.map_.clear(),this.size=0},module$exports$jspb$map.Map.prototype.delete=function(e){return this.checkNotImmutable_(),!!this.map_.delete(e)&&(this.size=this.map_.size,!0)},module$exports$jspb$map.Map.prototype.del=function(e){return this.delete(e)},module$exports$jspb$map.Map.prototype.entries=function(){for(var e=this.sortedKeys_(),t=0;t<e.length;t++){var n=e[t];e[t]=[n,(0,goog.asserts.assertExists)(this.get(n))]}return new module$exports$jspb$internal.ArrayIteratorIterable(e)},module$exports$jspb$map.Map.prototype.keys=function(){var e=this.sortedKeys_();return new module$exports$jspb$internal.ArrayIteratorIterable(e)},module$exports$jspb$map.Map.prototype.values=function(){for(var e=this.sortedKeys_(),t=0;t<e.length;t++)e[t]=(0,goog.asserts.assertExists)(this.get(e[t]));return new module$exports$jspb$internal.ArrayIteratorIterable(e)},module$exports$jspb$map.Map.prototype.forEach=function(e,t){for(var n=this.sortedKeys_(),r=0;r<n.length;r++){var i=n[r];e.call(t,(0,goog.asserts.assertExists)(this.get(i)),i,this)}},module$exports$jspb$map.Map.prototype.set=function(e,t){this.checkNotImmutable_();var n=this.map_;return null==t?n.delete(e):(this.valueCtor&&module$contents$jspb$internal_accessor_helpers_checkMessageType(t,this.valueCtor),n.set(e,this.toApi(t,this.valueCtor,!1,this.callToMutableOnAccess)),this.size=n.size),this},module$exports$jspb$map.Map.prototype.get=function(e){var t=this.map_;if(t.has(e)){var n=t.get(e),r=this.arrayState,i=this.valueCtor;return i&&Array.isArray(n)&&r&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&&module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(n),(r=this.toApi(n,i,!!(r&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY),this.callToMutableOnAccess))!==n&&t.set(e,r),r}},module$exports$jspb$map.Map.prototype.has=function(e){return this.map_.has(e)},module$exports$jspb$map.Map.prototype.sortedKeys_=function(){return Array.from(this.map_.keys()).sort(module$contents$jspb$map_legacySortFunction)},module$exports$jspb$map.Map.prototype[Symbol.iterator]=function(){return this.entries()},module$exports$jspb$map.ImmutableMap=function(){throw Error("please construct maps as mutable then call toImmutable")},module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE){var rejectInstanceof=function(){throw Error(goog.DEBUG?"Cannot perform instanceof checks on ImmutableMap: please use isImmutableMap or isMutableMap to assert on the mutability of a map. See go/jspb-api-gotchas#immutable-classes for more information":void 0)},$jscomp$compprop0={};Object.defineProperties(module$exports$jspb$map.ImmutableMap,($jscomp$compprop0[Symbol.hasInstance]=module$contents$jspb$internal_invisiblePropValue(rejectInstanceof),$jscomp$compprop0)),(0,goog.asserts.assert)(module$exports$jspb$map.ImmutableMap[Symbol.hasInstance]===rejectInstanceof,"defineProperties did not work: was it monkey-patched?")}function module$contents$jspb$map_isImmutableMap(e){return e instanceof module$exports$jspb$map.Map&&!!(e.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)}function module$contents$jspb$map_messageToApi(e,t,n,r){return e=module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(e,t,!0),n?module$contents$jspb$internal_internalMarkMessageImmutable(e):r&&(e=e.toMutable(module$exports$jspb$immutable_api_token.IMMUTABLE_API_TOKEN)),e}function module$contents$jspb$map_noopToApi(e){return e}function module$contents$jspb$map_noopToRuntime(e){return e}function module$contents$jspb$map_identity(e){return e}function module$contents$jspb$internal_compare_compareExtensions(e,t){e=e||{},t=t||{};var n,r={};for(n in e)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(e,n)&&(r[n]=0);for(var i in t)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(t,i)&&(r[i]=0);for(var a in r)if(module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(r,a)&&!module$contents$jspb$internal_compare_internalCompareFields(e,a,e[a],t,a,t[a]))return!1;return!0}function module$contents$jspb$internal_compare_maybeUnwrapMessage(e){return e&&"object"==typeof e&&e.internalArray_||e}function module$contents$jspb$internal_compare_compareMaps(e,t){if(null==t||(e=e.map_,t=t.map_,e.size!=t.size))return!1;e=e.entries();for(var n;!(n=e.next()).done;)if(!module$contents$jspb$internal_compare_compareFields((n=n.value)[1],t.get(n[0])))return!1;return!0}function module$contents$jspb$internal_compare_maybeWrapAsMap(e,t,n,r){if(null==r)r=[];else if(!Array.isArray(r))return null;return t[n]=e.buildNewFromArray(r)}function module$contents$jspb$internal_compare_internalCompareFields(e,t,n,r,i,a){if(n=module$contents$jspb$internal_maybeUnsafeUnwrapByteString(n),a=module$contents$jspb$internal_maybeUnsafeUnwrapByteString(a),(n=module$contents$jspb$internal_compare_maybeUnwrapMessage(n))==(a=module$contents$jspb$internal_compare_maybeUnwrapMessage(a)))return!0;if(module$exports$jspb$internal_bytes.SUPPORTS_UINT8ARRAY){var o=module$contents$jspb$internal_bytes_isU8(n),s=module$contents$jspb$internal_bytes_isU8(a);if(o||s){if(o)e=n;else{if("string"!=typeof n)return!1;e=module$contents$jspb$internal_bytes_dataAsU8(n)}if(!s){if("string"!=typeof a)return!1;a=module$contents$jspb$internal_bytes_dataAsU8(a)}if(e.length!==a.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==a[s])return!1;return!0}}if(n instanceof module$exports$jspb$map.Map)return module$contents$jspb$internal_compare_compareMaps(n,a instanceof module$exports$jspb$map.Map?a:module$contents$jspb$internal_compare_maybeWrapAsMap(n,(0,goog.asserts.assertExists)(r),(0,goog.asserts.assertExists)(i),a));if(a instanceof module$exports$jspb$map.Map)return module$contents$jspb$internal_compare_compareMaps(a,module$contents$jspb$internal_compare_maybeWrapAsMap(a,(0,goog.asserts.assertExists)(e),(0,goog.asserts.assertExists)(t),n));if(null==n&&module$contents$jspb$internal_isEmptyRepeatedField(a)||null==a&&module$contents$jspb$internal_isEmptyRepeatedField(n))return!0;if(!goog.isObject(n)||!goog.isObject(a))return!!("number"==typeof n&&isNaN(n)||"number"==typeof a&&isNaN(a))&&String(n)==String(a);if(n.constructor!=a.constructor)return!1;if(n.constructor===Array){for(s=n,t=e=void 0,n=Math.max(s.length,a.length),r=0;r<n;r++)if(i=s[r],o=a[r],i&&i.constructor==Object&&((0,goog.asserts.assert)(void 0===e),(0,goog.asserts.assert)(r===s.length-1),e=i,i=void 0),o&&o.constructor==Object&&((0,goog.asserts.assert)(void 0===t),(0,goog.asserts.assert)(r===a.length-1),t=o,o=void 0),!module$contents$jspb$internal_compare_internalCompareFields(s,r,i,a,r,o))return!1;return!e&&!t||module$contents$jspb$internal_compare_compareExtensions(e=e||{},t=t||{})}if(n.constructor===Object)return module$contents$jspb$internal_compare_compareExtensions(n,a);throw Error("Invalid type in JSPB array")}function module$contents$jspb$internal_compare_compareFields(e,t){return module$contents$jspb$internal_compare_internalCompareFields(void 0,void 0,e,void 0,void 0,t)}function module$contents$jspb$internal_json_convertToJsonFormat(e){switch(typeof e){case"number":return isFinite(e)?e:String(e);case"object":if(e&&!Array.isArray(e)){if(module$contents$jspb$internal_bytes_isU8(e))return(0,goog.crypt.base64.encodeByteArray)(e);if(e instanceof module$exports$jspb$bytestring.ByteString)return e.asBase64();if(e instanceof module$exports$jspb$map.Map)return e=e.toArrayInternal(),module$exports$jspb$internal_options.SERIALIZE_EMPTY_TRAILING_FIELDS||0!==e.length?e:void 0}}return e}module$exports$jspb$map.isImmutableMap=module$contents$jspb$map_isImmutableMap,module$exports$jspb$map.isMutableMap=function(e){return e instanceof module$exports$jspb$map.Map&&!(e.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)};var module$exports$jspb$internal_copy={};function module$contents$jspb$internal_copy_copyUnknownFields(e,t){t.internalUnknownFields_&&(e.internalUnknownFields_=t.internalUnknownFields_.slice())}function module$contents$jspb$internal_copy_cloneJspb(e,t){return(0,goog.asserts.assertArray)(e),module$contents$jspb$internal_copy_cloneJspbArray(e,module$contents$jspb$internal_copy_convertToJspbFormat,t)}function module$contents$jspb$internal_copy_cloneJspbField(e,t){return module$contents$jspb$internal_copy_cloneJspbFieldInternal(e,module$contents$jspb$internal_copy_convertToJspbFormat,t)}function module$contents$jspb$internal_copy_cloneJspbFieldInternal(e,t,n,r){if(null!=e){if(Array.isArray(e))e=module$contents$jspb$internal_copy_cloneJspbArray(e,t,n,void 0!==r);else if(module$contents$jspb$internal_isExtensionObject(e)){var i,a={};for(i in e)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(e,i)&&(a[i]=module$contents$jspb$internal_copy_cloneJspbFieldInternal(e[i],t,n,r));e=a}else e=t(e,r);return e}}function module$contents$jspb$internal_copy_cloneJspbArray(e,t,n,r){(0,goog.asserts.assertArray)(e),r=r?module$contents$jspb$internal_array_state_areMutableReferencesOwned(e):void 0;var i=Array.prototype.slice.call(e);for(n(e,i),e=0;e<i.length;e++)i[e]=module$contents$jspb$internal_copy_cloneJspbFieldInternal(i[e],t,n,r);return i}function module$contents$jspb$internal_copy_convertMapValuesToStructuredCloneableFormat(e){return module$contents$jspb$internal_copy_cloneJspbFieldInternal(e,module$contents$jspb$internal_copy_convertToStructuredCloneableFormat,module$contents$jspb$internal_copy_dontCopyArrayBits)}function module$contents$jspb$internal_copy_convertToStructuredCloneableFormat(e){return module$contents$jspb$internal_isMessage(e)?e.toStructuredCloneableValue():e instanceof module$exports$jspb$bytestring.ByteString?e.legacyUnwrap():module$contents$jspb$internal_bytes_isU8(e)?new Uint8Array(e):e instanceof module$exports$jspb$map.Map?e.toArrayInternal(module$contents$jspb$internal_copy_convertMapValuesToStructuredCloneableFormat):e}function module$contents$jspb$internal_copy_convertMapValueToJsonFormat(e){return module$contents$jspb$internal_copy_cloneJspbFieldInternal(e,module$contents$jspb$internal_copy_convertToJsonFormat,module$contents$jspb$internal_copy_dontCopyArrayBits)}function module$contents$jspb$internal_copy_convertToJsonFormat(e){return module$contents$jspb$internal_isMessage(e)?e.toJsonValue():e instanceof module$exports$jspb$map.Map?e.toArrayInternal(module$contents$jspb$internal_copy_convertMapValueToJsonFormat):module$contents$jspb$internal_json_convertToJsonFormat(e)}function module$contents$jspb$internal_copy_cloneToJsonFormat(e){return(0,goog.asserts.assertArray)(e),module$contents$jspb$internal_copy_cloneJspbArray(e,module$contents$jspb$internal_copy_convertToJsonFormat,module$contents$jspb$internal_copy_dontCopyArrayBits)}function module$contents$jspb$internal_copy_convertMapValueToJspbFormat(e){return module$contents$jspb$internal_copy_cloneJspbFieldInternal(e,module$contents$jspb$internal_copy_convertToJspbFormat,module$contents$jspb$internal_copy_dontCopyArrayBits)}function module$contents$jspb$internal_copy_convertToJspbFormat(e){if(!e)return e;if("object"==typeof e){if(module$contents$jspb$internal_bytes_isU8(e))return new Uint8Array(e);if(e instanceof module$exports$jspb$map.Map)return e.size?e.buildNewFromArray(module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(e.toArrayInternalUnsorted(module$contents$jspb$internal_copy_convertMapValueToJspbFormat))):[];if(module$contents$jspb$internal_isMessage(e))return e.clone()}return e}function module$contents$jspb$internal_copy_cloneToStructuredCloneableFormat(e){return(0,goog.asserts.assertArray)(e),module$contents$jspb$internal_copy_cloneJspbArray(e,module$contents$jspb$internal_copy_convertToStructuredCloneableFormat,module$contents$jspb$internal_copy_dontCopyArrayBits)}function module$contents$jspb$internal_copy_dontCopyArrayBits(){}module$exports$jspb$internal_copy.cloneRaw=module$exports$jspb$internal_bytes.SUPPORTS_STRUCTURED_CLONE?structuredClone:function(e){return module$contents$jspb$internal_copy_cloneJspb(e,module$contents$jspb$internal_copy_dontCopyArrayBits)},module$exports$jspb$internal_copy.cloneJspb=module$contents$jspb$internal_copy_cloneJspb,module$exports$jspb$internal_copy.dontCopyArrayBits=module$contents$jspb$internal_copy_dontCopyArrayBits,module$exports$jspb$internal_copy.cloneJspbArray=module$contents$jspb$internal_copy_cloneJspbArray,module$exports$jspb$internal_copy.cloneJspbField=module$contents$jspb$internal_copy_cloneJspbField,module$exports$jspb$internal_copy.cloneToJsonFormat=module$contents$jspb$internal_copy_cloneToJsonFormat,module$exports$jspb$internal_copy.cloneToStructuredCloneableFormat=module$contents$jspb$internal_copy_cloneToStructuredCloneableFormat,module$exports$jspb$internal_copy.convertToJspbFormat=module$contents$jspb$internal_copy_convertToJspbFormat,module$exports$jspb$internal_copy.copyUnknownFields=module$contents$jspb$internal_copy_copyUnknownFields;var jspb={internal:{}};jspb.internal.jspb_adapters={},jspb.internal.jspb_adapters.getSparseObject=function(e){return e.internalSparseObject_||(e.internalSparseObject_=e.internalArray_[e.pivot_+e.arrayIndexOffset]={})},jspb.internal.jspb_adapters.getFieldNullable=function(e,t,n){return -1===t?null:t>=e.pivot_?e.internalSparseObject_?e.internalSparseObject_[t]:void 0:void 0!==n&&n&&e.internalSparseObject_&&null!=(n=e.internalSparseObject_[t])?n:e.internalArray_[t+e.arrayIndexOffset]},jspb.internal.jspb_adapters.setField=function(e,t,n,r,i){return r=void 0!==r&&r,void 0!==i&&i||(0,module$exports$jspb$internal.checkNotImmutable)(e),e.internalCachedImmutable_&&(e.internalCachedImmutable_=void 0),t>=e.pivot_||r&&!module$exports$jspb$internal_options.writeLowIndexExtensionsInline?jspb.internal.jspb_adapters.getSparseObject(e)[t]=n:(void 0!==e.internalSparseObject_&&e.pivot_>=e.internalArray_.length?(r=e.internalArray_.length-1,(i=t+e.arrayIndexOffset)>=r?(e.internalArray_[r]=void 0,e.internalArray_[i]=n,e.internalArray_.push(e.internalSparseObject_)):e.internalArray_[i]=n):e.internalArray_[t+e.arrayIndexOffset]=n,void 0!==e.internalSparseObject_&&t in e.internalSparseObject_&&delete e.internalSparseObject_[t]),e},jspb.internal.jspb_adapters.setFieldIfNotNullish=function(e,t,n,r,i){return null==n?e:jspb.internal.jspb_adapters.setField(e,t,n,r,i)},jspb.internal.jspb_adapters.hasField=function(e,t,n){return null!=jspb.internal.jspb_adapters.getFieldNullable(e,t,void 0!==n&&n)},jspb.internal.jspb_adapters.hasWrapperField=function(e,t,n,r){return void 0!==jspb.internal.jspb_adapters.getReadonlyWrapperFieldOrUndefined(e,t,n,void 0!==r&&r)},jspb.internal.jspb_adapters.hasBytesField=function(e,t){return null!=jspb.internal.jspb_adapters.getBytesFieldNullable(e,t)},jspb.internal.jspb_adapters.hasOneofField=function(e,t,n){return jspb.internal.jspb_adapters.computeOneofCase(e,n)===t};var module$contents$jspb$internal$jspb_adapters_immutableEmptyMap,module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode={CALLER_HANDLES_IMMUTABILITY:1,CALLER_DOESNT_RETURN_ARRAY:2},module$contents$jspb$internal$jspb_adapters_ALL_SHARE_MODE_FLAGS=module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_HANDLES_IMMUTABILITY|module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_DOESNT_RETURN_ARRAY;function module$contents$jspb$internal$jspb_adapters_assertMessageReturnedSafely(e,t){return(0,goog.asserts.assert)(!e||!module$contents$jspb$internal_isImmutableMessage(t)||module$contents$jspb$internal_isImmutableMessage(e)),e}function module$contents$jspb$internal$jspb_adapters_assertMapReturnedSafely(e,t){return null==e||((0,goog.asserts.assert)(e.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY||e.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED||!(e.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED)),(0,goog.asserts.assert)(!!module$contents$jspb$map_isImmutableMap(e)==!!module$contents$jspb$internal_isImmutableMessage(t)),module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&e.valueCtor&&e.map_.forEach(function(e){e&&"object"==typeof e&&module$contents$jspb$internal_isMessage(e)&&module$contents$jspb$internal$jspb_adapters_assertMessageReturnedSafely(e,t),Array.isArray(e)&&(0,goog.asserts.assert)(!(module$contents$jspb$internal_array_state_getState(e)&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED))})),e}function module$contents$jspb$internal$jspb_adapters_assertArrayReturnedSafely(e,t){return(0,goog.asserts.assert)(Object.isFrozen(e)||!module$contents$jspb$internal_array_state_areMutableReferencesOwned(e)),(0,goog.asserts.assert)(!module$contents$jspb$internal_isImmutableMessage(t)||Object.isFrozen(e)),e}function module$contents$jspb$internal$jspb_adapters_assertMessageArrayReturnedSafely(e,t,n){if(goog.asserts.ENABLE_ASSERTS){var r=jspb.internal.jspb_adapters.getFieldNullable(t,n);module$contents$jspb$internal$jspb_adapters_assertArrayReturnedSafely(e,t),(0,goog.asserts.assert)(!r||!module$contents$jspb$internal_array_state_isImmutableArray(r)||Object.isFrozen(e)&&module$contents$jspb$internal_array_state_isImmutableArray(e)),(0,goog.asserts.assert)(!module$contents$jspb$internal_isImmutableMessage(t)||!r||module$contents$jspb$internal_array_state_isImmutableArray(r)||r===module$exports$jspb$internal.EMPTY_LIST_SENTINEL),(0,goog.asserts.assert)(!(module$contents$jspb$internal_isImmutableMessage(t)||r&&module$contents$jspb$internal_array_state_isImmutableArray(r))||Object.isFrozen(e)&&module$contents$jspb$internal_array_state_isImmutableArray(e))}if(module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS){var i=module$contents$jspb$internal_isImmutableMessage(t),a=module$contents$jspb$internal_array_state_isImmutableArray(jspb.internal.jspb_adapters.getFieldNullable(t,n));e.forEach(function(e){e&&"object"==typeof e&&module$contents$jspb$internal_isMessage(e)&&(i||a)&&((0,goog.asserts.assert)(module$contents$jspb$internal_isImmutableMessage(e)),module$contents$jspb$internal$jspb_adapters_assertMessageReturnedSafely(e,t))})}return e}function module$contents$jspb$internal$jspb_adapters_getRepeatedFieldInternal(e,t,n,r){(0,goog.asserts.assert)((n&module$contents$jspb$internal$jspb_adapters_ALL_SHARE_MODE_FLAGS)===n);var i=jspb.internal.jspb_adapters.getFieldNullable(e,t,r);Array.isArray(i)||(i=module$exports$jspb$internal.EMPTY_LIST_SENTINEL);var a=module$contents$jspb$internal_array_state_getState(i);return a&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD||module$contents$jspb$internal_array_state_markRepeatedField(i),module$contents$jspb$internal_isImmutableMessage(e)?(a&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY||module$contents$jspb$internal_array_state_markArrayImmutable(i),n&module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_HANDLES_IMMUTABILITY||Object.freeze(i)):i===module$exports$jspb$internal.EMPTY_LIST_SENTINEL||!(n&module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_HANDLES_IMMUTABILITY&&n&module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_DOESNT_RETURN_ARRAY)&&a&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY?(i=module$contents$jspb$internal_array_state_markRepeatedField(Array.prototype.slice.call(i)),jspb.internal.jspb_adapters.setField(e,t,i,r)):!(n&module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_DOESNT_RETURN_ARRAY)&&a&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&&module$contents$jspb$internal_array_state_markShared(i),i}function module$contents$jspb$internal$jspb_adapters_getApiFormattedRepeatedField(e,t,n,r){var i=module$contents$jspb$internal$jspb_adapters_getRepeatedFieldInternal(e,t,module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_HANDLES_IMMUTABILITY,r);if(i.length&&!module$contents$jspb$internal_array_state_isApiFormattedField(i)){for(Object.isFrozen(i)&&(i=module$contents$jspb$internal_array_state_markRepeatedField(i.slice()),jspb.internal.jspb_adapters.setField(e,t,i,r,!0)),r=t=0;t<i.length;t++){var a=n(i[t]);null!=a&&(i[r++]=a)}r<t&&(i.length=r),module$contents$jspb$internal_array_state_markApiFormattedField(i)}return module$contents$jspb$internal_isImmutableMessage(e)&&!Object.isFrozen(i)&&(module$contents$jspb$internal_array_state_markArrayImmutable(i),Object.freeze(i)),module$contents$jspb$internal$jspb_adapters_assertArrayReturnedSafely(i,e)}function module$contents$jspb$internal$jspb_adapters_coerceToByteString(e){return module$contents$jspb$internal_bytesAsByteString(e,!0,!0)}function module$contents$jspb$internal$jspb_adapters_getReadonlyMapField(e,t,n,r,i){var a=module$contents$jspb$internal_isImmutableMessage(e),o=!1;if(null==t){if(r)return;if(a)return module$contents$jspb$internal$jspb_adapters_assertMapReturnedSafely(module$contents$jspb$internal$jspb_adapters_immutableEmptyMap||(module$contents$jspb$internal$jspb_adapters_immutableEmptyMap=new module$exports$jspb$map.Map(module$contents$jspb$internal_array_state_markArrayImmutable([]))),e);t=[]}else if(t.constructor===module$exports$jspb$map.Map){if(0==(t.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)||a)return module$contents$jspb$internal$jspb_adapters_assertMapReturnedSafely(t,e);t=t.toArrayInternalUnsorted()}else Array.isArray(t)?o=module$contents$jspb$internal_array_state_isImmutableArray(t):t=[];if(a){if(!t.length)return module$contents$jspb$internal$jspb_adapters_immutableEmptyMap||(module$contents$jspb$internal$jspb_adapters_immutableEmptyMap=new module$exports$jspb$map.Map(module$contents$jspb$internal_array_state_markArrayImmutable([])));o||(o=!0,module$contents$jspb$internal_array_state_markArrayImmutable(t))}else if(o)for(o=!1,t=Array.prototype.slice.call(t),a=0;a<t.length;a++)Array.isArray((r=t[a]=Array.prototype.slice.call(t[a]))[1])&&(r[1]=module$contents$jspb$internal_array_state_markArrayImmutable(r[1]));return o||(module$contents$jspb$internal_array_state_isConstructed(t)?module$contents$jspb$internal_array_state_markShared(t):module$contents$jspb$internal_array_state_areMutableReferencesOwned(e.internalArray_)&&module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(t)),i=new module$exports$jspb$map.Map(t,i),jspb.internal.jspb_adapters.setField(e,n,i,!1,!0),module$contents$jspb$internal$jspb_adapters_assertMapReturnedSafely(i,e)}function module$contents$jspb$internal$jspb_adapters_getMapField(e,t,n,r,i){return null==(t=module$contents$jspb$internal$jspb_adapters_getReadonlyMapField(e,t,n,r,i))||!module$contents$jspb$internal_isImmutableMessage(e)&&i&&(t.callToMutableOnAccess=!0),t}function module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,r){return(0,module$exports$jspb$internal.checkNotImmutable)(e),n!==r?jspb.internal.jspb_adapters.setField(e,t,n):jspb.internal.jspb_adapters.clearField(e,t),e}function module$contents$jspb$internal$jspb_adapters_addToRepeatedFieldImpl(e,t,n,r){return(0,module$exports$jspb$internal.checkNotImmutable)(e),t=module$contents$jspb$internal$jspb_adapters_getRepeatedFieldInternal(e,t,module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_DOESNT_RETURN_ARRAY,!1),void 0!=r?t.splice(r,0,n):t.push(n),e}jspb.internal.jspb_adapters.hasOneofWrapperField=function(e,t,n,r){return void 0!==jspb.internal.jspb_adapters.getReadonlyWrapperFieldOrUndefined(e,t,jspb.internal.jspb_adapters.isOneofCase(e,r,n))},jspb.internal.jspb_adapters.hasOneofBytesField=function(e,t,n){return null!=jspb.internal.jspb_adapters.getOneofBytesFieldNullable(e,t,n)},jspb.internal.jspb_adapters.getRepeatedField=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_assertArrayReturnedSafely(module$contents$jspb$internal$jspb_adapters_getRepeatedFieldInternal(e,t,0,void 0!==n&&n),e)},jspb.internal.jspb_adapters.getFloatingPointFieldNullable=function(e,t){return null==(e=jspb.internal.jspb_adapters.getFieldNullable(e,t))?e:+e},jspb.internal.jspb_adapters.getBooleanFieldNullable=function(e,t){return null==(e=jspb.internal.jspb_adapters.getFieldNullable(e,t))?e:!!e},jspb.internal.jspb_adapters.getBytesFieldNullable=function(e,t,n){var r=jspb.internal.jspb_adapters.getFieldNullable(e,t,n),i=module$contents$jspb$internal_bytesAsByteString(r,!0,!0);return null!=i&&i!==r&&jspb.internal.jspb_adapters.setField(e,t,i,n,!0),i},jspb.internal.jspb_adapters.getRepeatedFloatingPointField=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_getApiFormattedRepeatedField(e,t,Number,n)},jspb.internal.jspb_adapters.getRepeatedBooleanField=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_getApiFormattedRepeatedField(e,t,Boolean,n)},jspb.internal.jspb_adapters.getRepeatedBytesField=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_getApiFormattedRepeatedField(e,t,module$contents$jspb$internal$jspb_adapters_coerceToByteString,n)},jspb.internal.jspb_adapters.getFieldWithDefault=function(e,t,n){return null==(e=jspb.internal.jspb_adapters.getFieldNullable(e,t))?n:e},jspb.internal.jspb_adapters.getBytesFieldWithDefault=function(e,t,n){return null==(e=jspb.internal.jspb_adapters.getBytesFieldNullable(e,t))?void 0===n?module$exports$jspb$bytestring.ByteString.empty():module$exports$jspb$bytestring.ByteString.fromBase64(n):e},jspb.internal.jspb_adapters.getReadonlyMapField=function(e,t,n,r){return module$contents$jspb$internal$jspb_adapters_getReadonlyMapField(e,jspb.internal.jspb_adapters.getFieldNullable(e,t),t,n,r)},jspb.internal.jspb_adapters.getMapField=function(e,t,n,r){return module$contents$jspb$internal$jspb_adapters_assertMapReturnedSafely(module$contents$jspb$internal$jspb_adapters_getMapField(e,jspb.internal.jspb_adapters.getFieldNullable(e,t),t,n,r),e)},jspb.internal.jspb_adapters.getBytesMapField=function(e,t,n){var r=jspb.internal.jspb_adapters.getFieldNullable(e,t);if(Array.isArray(r)&&r)for(var i=0;i<r.length;i++)r[i][1]=module$contents$jspb$internal_bytesAsByteString(r[i][1],!0,!0)||module$exports$jspb$bytestring.ByteString.empty();return module$contents$jspb$internal$jspb_adapters_getMapField(e,r,t,n)},jspb.internal.jspb_adapters.clearMapField=function(e,t){var n=jspb.internal.jspb_adapters.getFieldNullable(e,t);return n instanceof module$exports$jspb$map.Map?n.clear():jspb.internal.jspb_adapters.clearField(e,t),e},jspb.internal.jspb_adapters.setRepeatedField=function(e,t,n,r){return null==n?n=module$exports$jspb$internal.EMPTY_LIST_SENTINEL:(module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(n),module$contents$jspb$internal_array_state_markRepeatedField(n)),jspb.internal.jspb_adapters.setField(e,t,n,r)},jspb.internal.jspb_adapters.setRepeatedFieldIfNotNullish=function(e,t,n,r){return null==n?e:jspb.internal.jspb_adapters.setRepeatedField(e,t,n,r)},jspb.internal.jspb_adapters.setRepeatedStringField=function(e,t,n,r){if(null==n)n=module$exports$jspb$internal.EMPTY_LIST_SENTINEL;else{module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(n);for(var i=0;i<n.length;i++)module$contents$jspb$internal_accessor_helpers_checkString(n[i]);module$contents$jspb$internal_array_state_addFlags(n,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED)}return jspb.internal.jspb_adapters.setField(e,t,n,r)},jspb.internal.jspb_adapters.setRepeatedStringFieldIfNotNullish=function(e,t,n,r){return null==n?e:jspb.internal.jspb_adapters.setRepeatedStringField(e,t,n,r)},jspb.internal.jspb_adapters.clearField=function(e,t,n){return jspb.internal.jspb_adapters.setField(e,t,void 0,!1,n)},jspb.internal.jspb_adapters.clearRepeatedField=function(e,t){return jspb.internal.jspb_adapters.setField(e,t,module$exports$jspb$internal.EMPTY_LIST_SENTINEL)},jspb.internal.jspb_adapters.clearRepeatedWrapperField=function(e,t){return jspb.internal.jspb_adapters.setRepeatedWrapperField(e,void 0,t,void 0)},jspb.internal.jspb_adapters.setProto3BytesField=function(e,t,n){return(0,module$exports$jspb$internal.checkNotImmutable)(e),null==(n=module$contents$jspb$internal_bytesAsByteString(n,!1,!0))||n.isEmpty()?jspb.internal.jspb_adapters.clearField(e,t):jspb.internal.jspb_adapters.setField(e,t,n),e},jspb.internal.jspb_adapters.setProto3BytesFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setProto3BytesField(e,t,n)},jspb.internal.jspb_adapters.setProto3Int64StringField=function(e,t,n){return(0,module$exports$jspb$internal.checkNotImmutable)(e),null!=n&&0!=+n?jspb.internal.jspb_adapters.setField(e,t,n):jspb.internal.jspb_adapters.clearField(e,t),e},jspb.internal.jspb_adapters.setProto3Uint64StringField=function(e,t,n){return(0,module$exports$jspb$internal.checkNotImmutable)(e),null!=n&&0!=+n?jspb.internal.jspb_adapters.setField(e,t,n):jspb.internal.jspb_adapters.clearField(e,t),e},jspb.internal.jspb_adapters.setProto3Int64StringFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setProto3Int64StringField(e,t,n)},jspb.internal.jspb_adapters.setProto3Uint64StringFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setProto3Uint64StringField(e,t,n)},jspb.internal.jspb_adapters.setProto3FloatField=function(e,t,n){return module$contents$jspb$internal_accessor_helpers_checkFloat(n),module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3FloatFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setProto3FloatField(e,t,n)},jspb.internal.jspb_adapters.setProto3DoubleField=function(e,t,n){return module$contents$jspb$internal_accessor_helpers_checkDouble(n),module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3DoubleFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setProto3DoubleField(e,t,n)},jspb.internal.jspb_adapters.addToRepeatedField=function(e,t,n,r){return module$contents$jspb$internal$jspb_adapters_addToRepeatedFieldImpl(e,t,n,r)},jspb.internal.jspb_adapters.addToRepeatedBytesField=function(e,t,n,r){return module$contents$jspb$internal$jspb_adapters_addToRepeatedFieldImpl(e,t,module$contents$jspb$internal_bytesAsByteString(n,!1,!1),r)},jspb.internal.jspb_adapters.addToRepeatedStringField=function(e,t,n,r){return module$contents$jspb$internal$jspb_adapters_addToRepeatedFieldImpl(e,t,module$contents$jspb$internal_accessor_helpers_checkString(n),r)},jspb.internal.jspb_adapters.setOneofField=function(e,t,n,r){return(0,module$exports$jspb$internal.checkNotImmutable)(e),(n=jspb.internal.jspb_adapters.computeOneofCase(e,n))&&n!==t&&null!=r&&jspb.internal.jspb_adapters.clearField(e,n),jspb.internal.jspb_adapters.setField(e,t,r)},jspb.internal.jspb_adapters.setOneofFieldIfNotNullish=function(e,t,n,r){return null==r?e:jspb.internal.jspb_adapters.setOneofField(e,t,n,r)},jspb.internal.jspb_adapters.isOneofCase=function(e,t,n){return jspb.internal.jspb_adapters.computeOneofCase(e,t)===n?n:-1},jspb.internal.jspb_adapters.computeOneofCase=function(e,t){for(var n=0,r=0;r<t.length;r++){var i=t[r];null!=jspb.internal.jspb_adapters.getFieldNullable(e,i)&&(0!==n&&jspb.internal.jspb_adapters.clearField(e,n,!0),n=i)}return n},jspb.internal.jspb_adapters.getMutableOneofWrapperField=function(e,t,n,r){return(r=jspb.internal.jspb_adapters.computeOneofCase(e,r))&&r!==n&&jspb.internal.jspb_adapters.clearField(e,r),jspb.internal.jspb_adapters.getMutableWrapperField(e,t,n)},jspb.internal.jspb_adapters.getMutableWrapperField=function(e,t,n,r){(0,module$exports$jspb$internal.checkNotImmutable)(e);var i=jspb.internal.jspb_adapters.getFieldNullable(e,n,r);return i!==(t=module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(i,t,!0).toMutable(module$exports$jspb$immutable_api_token.IMMUTABLE_API_TOKEN))&&jspb.internal.jspb_adapters.setField(e,n,t,r),t};var module$contents$jspb$internal$transfer_array_badPrototype,module$contents$jspb$internal$jspb_adapters_DEFAULT_IMMUTABLE_INSTANCE_SYMBOL=Symbol(void 0);function module$contents$jspb$internal$jspb_adapters_orDefault(e,t){return null==e?t:e}function module$contents$jspb$internal_shallow_copy_shallowCopyMapValueAndMarkImmutable(e){return Array.isArray(e)&&module$contents$jspb$internal_array_state_markArrayImmutable(e),e}function module$contents$jspb$internal_shallow_copy_shallowCopyField(e,t,n,r,i,a){if(e=e.internalWrappers_&&e.internalWrappers_[n])i=a.copyRepeatedFields?module$contents$jspb$internal_array_state_markRepeatedField(e.slice()):e,(0,jspb.internal.jspb_adapters.setRepeatedWrapperField)(t,0<i.length?i[0].constructor:void 0,n,i);else{var o=(e=jspb.internal.jspb_adapters).setField;module$exports$jspb$internal_bytes.SUPPORTS_UINT8ARRAY&&r instanceof Uint8Array?i=module$exports$jspb$bytestring.ByteString.fromUint8Array(r):r instanceof module$exports$jspb$map.Map?i=r.map_.size?r.buildNewFromArray(r.toArrayInternalUnsorted((i||module$contents$jspb$map_isImmutableMap(r))&&r.valueCtor?module$contents$jspb$internal_shallow_copy_shallowCopyMapValueAndMarkImmutable:void 0)):[]:(Array.isArray(r)&&(i?module$contents$jspb$internal_array_state_markArrayImmutable(r):module$contents$jspb$internal_array_state_isRepeatedField(r)&&a.copyRepeatedFields?(module$contents$jspb$internal_array_state_copyArrayBitsForClone(r,i=Array.prototype.slice.call(r)),r=i):module$contents$jspb$internal_array_state_markShared(r)),i=r),o.call(e,t,n,i)}}function module$contents$jspb$internal_immutability_copyImmutableFieldValue(e,t){return e?module$exports$jspb$internal_bytes.SUPPORTS_UINT8ARRAY&&e instanceof Uint8Array?module$exports$jspb$bytestring.ByteString.fromUint8Array(e):Array.isArray(e)?module$contents$jspb$internal_array_state_isImmutableArray(e)?e:t&&module$contents$jspb$internal_array_state_canMarkImmutableInPlaceIfParentIsOwned(e)?(module$contents$jspb$internal_array_state_markArrayImmutable(e),e):module$contents$jspb$internal_copy_cloneJspbArray(e,module$contents$jspb$internal_immutability_copyImmutableFieldValue,module$contents$jspb$internal_array_state_copyArrayBitsForCloneImmutable):module$contents$jspb$internal_isMessage(e)?module$contents$jspb$internal_immutability_copyImmutable(e):e instanceof module$exports$jspb$map.Map?e.buildNewFromArray(module$contents$jspb$internal_array_state_markArrayImmutable(e.toArrayInternalUnsorted(module$contents$jspb$internal_immutability_copyImmutableFieldValue))):e:e}function module$contents$jspb$internal_immutability_copyImmutableField(e,t,n,r,i,a){if(e=e.internalWrappers_&&e.internalWrappers_[n]){a=(r=jspb.internal.jspb_adapters).setRepeatedWrapperField;var o=0<e.length?e[0].constructor:void 0;if(!module$contents$jspb$internal_array_state_isImmutableArray(e)||!Object.isFrozen(e)){var s=module$contents$goog$array_map(e,module$contents$jspb$internal_immutability_copyImmutable);module$contents$jspb$internal_array_state_copyArrayBitsForCloneImmutable(e,s),Object.freeze(s),e=s}a.call(r,t,o,n,e,i)}else(0,jspb.internal.jspb_adapters.setField)(t,n,module$contents$jspb$internal_immutability_copyImmutableFieldValue(r,a),i)}function module$contents$jspb$internal_immutability_copyImmutable(e){return goog.asserts.assert(module$contents$jspb$internal_isMessage(e)),module$contents$jspb$internal_isImmutableMessage(e)||module$contents$jspb$internal_internalMarkMessageImmutable(e=module$contents$jspb$internal_immutability_copyMutableWithImmutableFields(e)),e}function module$contents$jspb$internal_immutability_copyMutableWithImmutableFields(e){goog.asserts.assert(module$contents$jspb$internal_isMessage(e));var t=new e.constructor;module$contents$jspb$internal_copy_copyUnknownFields(t,e);for(var n=e.internalArray_,r=module$contents$jspb$internal_array_state_areMutableReferencesOwned(n),i=0;i<n.length;i++){var a=n[i];if(i===n.length-1&&module$contents$jspb$internal_isExtensionObject(a))for(var o in a){var s=+o;Number.isNaN(s)?(0,jspb.internal.jspb_adapters.getSparseObject)(t)[s]=a[s]:module$contents$jspb$internal_immutability_copyImmutableField(e,t,s,a[o],!0,r)}else module$contents$jspb$internal_immutability_copyImmutableField(e,t,i-e.arrayIndexOffset,a,!1,r)}return t}function module$contents$jspb$internal_immutability_recursiveMarkMessageImmutable(e){return module$contents$jspb$internal_immutability_recursiveMarkArrayImmutable(e.internalArray_),e}function module$contents$jspb$internal_immutability_recursiveMarkMapImmutable(e){e.arrayState|=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY,e.callToMutableOnAccess=!1,e.valueCtor&&e.forEach(module$contents$jspb$internal_immutability_recursiveMarkMessageImmutable)}function module$contents$jspb$internal_immutability_recursiveMarkArrayImmutable(e){goog.asserts.assertArray(e),module$contents$jspb$internal_array_state_markArrayImmutable(e);for(var t=0;t<e.length;t++){var n=e[t];if(n){if(Array.isArray(n))module$contents$jspb$internal_immutability_recursiveMarkArrayImmutable(n);else if(n instanceof module$exports$jspb$map.Map)module$contents$jspb$internal_immutability_recursiveMarkMapImmutable(n);else if(module$contents$jspb$internal_isMessage(n))module$contents$jspb$internal_immutability_recursiveMarkArrayImmutable(n.internalArray_);else if(t===e.length-1&&module$contents$jspb$internal_isExtensionObject(n)){for(var r in n)if(module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(n,r)){var i=n[r];i&&(Array.isArray(i)?module$contents$jspb$internal_immutability_recursiveMarkArrayImmutable(i):i instanceof module$exports$jspb$map.Map?module$contents$jspb$internal_immutability_recursiveMarkMapImmutable(i):module$contents$jspb$internal_isMessage(i)&&module$contents$jspb$internal_immutability_recursiveMarkArrayImmutable(i.internalArray_))}}}}}function module$contents$jspb$internal$transfer_array_transferArray(e){if(!Array.isArray(e))throw Error("must be an array");if(Object.isFrozen(e)||Object.isSealed(e)||!Object.isExtensible(e))throw Error("arrays passed to jspb constructors must be mutable");if(module$contents$jspb$internal_array_state_markArrayTransferred(e,module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb),goog.DEBUG){var t=e;e=(0,module$exports$jspb$internal_copy.cloneRaw)(e),module$contents$jspb$internal$transfer_array_makeArrayUnusable(t)}return e}function module$contents$jspb$internal$transfer_array_makeValueUnusable(e){if(null!=e){if(Array.isArray(e))module$contents$jspb$internal$transfer_array_makeArrayUnusable(e);else if(e instanceof Uint8Array)module$exports$jspb$internal_bytes.SUPPORTS_STRUCTURED_CLONE?structuredClone(e,{transfer:[e.buffer]}):e.fill(97,0,e.length);else if("object"==typeof e){for(var t in e){var n=e[t];e.hasOwnProperty(t)&&(delete e[t],module$contents$jspb$internal$transfer_array_makeValueUnusable(n))}Object.defineProperty(e,"dontUseThisItBelongsToJspb",{enumerable:!0,get:module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb}),e.toJSON=module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb,module$contents$jspb$internal$transfer_array_badPrototype&&Object.setPrototypeOf(e,module$contents$jspb$internal$transfer_array_badPrototype),Object.freeze(e)}}}if(jspb.internal.jspb_adapters.getDefaultImmutableInstance=function(e){return e[module$contents$jspb$internal$jspb_adapters_DEFAULT_IMMUTABLE_INSTANCE_SYMBOL]||(e[module$contents$jspb$internal$jspb_adapters_DEFAULT_IMMUTABLE_INSTANCE_SYMBOL]=(new e).toImmutable(module$exports$jspb$immutable_api_token.IMMUTABLE_API_TOKEN))},jspb.internal.jspb_adapters.getReadonlyWrapperFieldOrUndefined=function(e,t,n,r){var i=jspb.internal.jspb_adapters.getFieldNullable(e,n,r);return(t=module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(i,t))!==i&&null!=t&&(jspb.internal.jspb_adapters.setField(e,n,t,r,!0),module$contents$jspb$internal_array_state_mergeArrayState(e.internalArray_,t.internalArray_)),module$contents$jspb$internal$jspb_adapters_assertMessageReturnedSafely(t,e)},jspb.internal.jspb_adapters.getReadonlyWrapperField=function(e,t,n,r){return(n=jspb.internal.jspb_adapters.getReadonlyWrapperFieldOrUndefined(e,t,n,void 0!==r&&r))?n:module$contents$jspb$internal$jspb_adapters_assertMessageReturnedSafely(jspb.internal.jspb_adapters.getDefaultImmutableInstance(t),e)},jspb.internal.jspb_adapters.getWrapperFieldOrUndefined=function(e,t,n,r){return r=void 0!==r&&r,null==(t=jspb.internal.jspb_adapters.getReadonlyWrapperFieldOrUndefined(e,t,n,r))?t:(module$contents$jspb$internal_isImmutableMessage(t)&&!module$contents$jspb$internal_isImmutableMessage(e)&&(t=t.toMutable(module$exports$jspb$immutable_api_token.IMMUTABLE_API_TOKEN),jspb.internal.jspb_adapters.setField(e,n,t,r)),module$contents$jspb$internal$jspb_adapters_assertMessageReturnedSafely(t,e))},jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField=function(e,t,n,r,i){i=void 0===i||i,e.internalWrappers_||(e.internalWrappers_={});var a=e.internalWrappers_[n],o=module$contents$jspb$internal$jspb_adapters_getRepeatedFieldInternal(e,n,module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_DOESNT_RETURN_ARRAY|module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_HANDLES_IMMUTABILITY,r),s=module$contents$jspb$internal_isImmutableMessage(e),l=module$contents$jspb$internal_array_state_areMutableReferencesOwned(e.internalArray_),u=module$contents$jspb$internal_array_state_isImmutableArray(o),c=s||u;if(!i&&u&&(o=module$contents$jspb$internal_array_state_markRepeatedField(Array.prototype.slice.call(o)),jspb.internal.jspb_adapters.setField(e,n,o,r)),!a){for(a=[],r=c,u=0;u<o.length;u++){var p=o[u];r=r||module$contents$jspb$internal_array_state_isImmutableArray(p);var d=t,f=!1,h=l;h=void 0!==h&&h,void 0!==(p=Array.isArray(p)?new d(h?module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(p):p):f?new d:void 0)&&(a.push(p),c&&module$contents$jspb$internal_internalMarkMessageImmutable(p))}e.internalWrappers_[n]=a,module$contents$jspb$internal_array_state_markRepeatedWrapperFieldAsConstructed(o,!r)}return t=s||i,i=module$contents$jspb$internal_array_state_isImmutableArray(a),t&&!i&&(Object.isFrozen(a)&&(e.internalWrappers_[n]=a=a.slice()),module$contents$jspb$internal_array_state_markArrayImmutable(a),Object.freeze(a)),!t&&i&&(e.internalWrappers_[n]=a=a.slice()),module$contents$jspb$internal$jspb_adapters_assertMessageArrayReturnedSafely(a,e,n)},jspb.internal.jspb_adapters.getReadonlyOneofWrapperField=function(e,t,n,r){return jspb.internal.jspb_adapters.getReadonlyWrapperField(e,t,jspb.internal.jspb_adapters.isOneofCase(e,r,n))},jspb.internal.jspb_adapters.getRepeatedWrapperField=function(e,t,n,r){r=void 0!==r&&r;var i=module$contents$jspb$internal_isImmutableMessage(e);if(t=jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(e,t,n,r,i),r=module$contents$jspb$internal$jspb_adapters_getRepeatedFieldInternal(e,n,module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_HANDLES_IMMUTABILITY|module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_DOESNT_RETURN_ARRAY,r),!i&&r&&!module$contents$jspb$internal_array_state_hasOnlyMutableValues(r)){for(i=0;i<t.length;i++){var a=t[i];a&&module$contents$jspb$internal_isImmutableMessage(a)&&(t[i]=t[i].toMutable(module$exports$jspb$immutable_api_token.IMMUTABLE_API_TOKEN),r[i]=t[i].internalArray_)}module$contents$jspb$internal_array_state_markOnlyMutableValues(r,!0)}return module$contents$jspb$internal$jspb_adapters_assertMessageArrayReturnedSafely(t,e,n)},jspb.internal.jspb_adapters.setWrapperField=function(e,t,n,r,i){return(0,module$exports$jspb$internal.checkNotImmutable)(e),null!=r?module$contents$jspb$internal_accessor_helpers_checkMessageType(r,(0,goog.asserts.assertExists)(t)):r=void 0,jspb.internal.jspb_adapters.setField(e,n,r,i)},jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish=function(e,t,n,r,i){return null==r?e:jspb.internal.jspb_adapters.setWrapperField(e,t,n,r,i)},jspb.internal.jspb_adapters.setOneofWrapperField=function(e,t,n,r,i){return(0,module$exports$jspb$internal.checkNotImmutable)(e),null!=i?module$contents$jspb$internal_accessor_helpers_checkMessageType(i,(0,goog.asserts.assertExists)(t)):i=void 0,jspb.internal.jspb_adapters.setOneofField(e,n,r,i)},jspb.internal.jspb_adapters.setOneofWrapperFieldIfNotNullish=function(e,t,n,r,i){return null==i?e:jspb.internal.jspb_adapters.setOneofWrapperField(e,t,n,r,i)},jspb.internal.jspb_adapters.setFloatField=function(e,t,n){return module$contents$jspb$internal_accessor_helpers_checkFloat(n),jspb.internal.jspb_adapters.setField(e,t,n)},jspb.internal.jspb_adapters.setOneofFloatField=function(e,t,n,r){return module$contents$jspb$internal_accessor_helpers_checkFloat(r),jspb.internal.jspb_adapters.setOneofField(e,t,n,r)},jspb.internal.jspb_adapters.setFloatFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setFloatField(e,t,n)},jspb.internal.jspb_adapters.setOneofFloatFieldIfNotNullish=function(e,t,n,r){return null==r?e:jspb.internal.jspb_adapters.setOneofFloatField(e,t,n,r)},jspb.internal.jspb_adapters.setDoubleField=function(e,t,n){return module$contents$jspb$internal_accessor_helpers_checkDouble(n),jspb.internal.jspb_adapters.setField(e,t,n)},jspb.internal.jspb_adapters.setOneofDoubleField=function(e,t,n,r){return module$contents$jspb$internal_accessor_helpers_checkDouble(r),jspb.internal.jspb_adapters.setOneofField(e,t,n,r)},jspb.internal.jspb_adapters.setDoubleFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setDoubleField(e,t,n)},jspb.internal.jspb_adapters.setOneofDoubleFieldIfNotNullish=function(e,t,n,r){return null==r?e:jspb.internal.jspb_adapters.setOneofDoubleField(e,t,n,r)},jspb.internal.jspb_adapters.setRepeatedWrapperField=function(e,t,n,r,i){if((0,module$exports$jspb$internal.checkNotImmutable)(e),null!=r){module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(r);for(var a=module$contents$jspb$internal_newRepeatedField(),o=!1,s=0;s<r.length;s++)a[s]=module$contents$jspb$internal_accessor_helpers_checkMessageType(r[s],(0,goog.asserts.assertExists)(t)).internalArray_,o=o||module$contents$jspb$internal_array_state_isImmutableArray(a[s]);e.internalWrappers_||(e.internalWrappers_={}),e.internalWrappers_[n]=r,module$contents$jspb$internal_array_state_markOnlyMutableValues(a,!o)}else e.internalWrappers_&&(e.internalWrappers_[n]=void 0),a=module$exports$jspb$internal.EMPTY_LIST_SENTINEL;return jspb.internal.jspb_adapters.setField(e,n,a,i)},jspb.internal.jspb_adapters.setBytesField=function(e,t,n){return jspb.internal.jspb_adapters.setField(e,t,module$contents$jspb$internal_bytesAsByteString(n,!1,!0))},jspb.internal.jspb_adapters.setOneofBytesField=function(e,t,n,r){return jspb.internal.jspb_adapters.setOneofField(e,t,n,module$contents$jspb$internal_bytesAsByteString(r,!1,!0))},jspb.internal.jspb_adapters.setBytesFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setBytesField(e,t,n)},jspb.internal.jspb_adapters.setOneofBytesFieldIfNotNullish=function(e,t,n,r){return null==r?e:jspb.internal.jspb_adapters.setOneofBytesField(e,t,n,r)},jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField=function(e,t,n,r,i,a){(0,module$exports$jspb$internal.checkNotImmutable)(e);var o=jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(e,n,t,a,!1);return n=null!=r?module$contents$jspb$internal_accessor_helpers_checkMessageType(r,n):new n,e=module$contents$jspb$internal$jspb_adapters_getRepeatedFieldInternal(e,t,module$contents$jspb$internal$jspb_adapters_RepeatedFieldShareMode.CALLER_DOESNT_RETURN_ARRAY,a),void 0!=i?(o.splice(i,0,n),e.splice(i,0,n.internalArray_)):(o.push(n),e.push(n.internalArray_)),n.isImmutable()&&module$contents$jspb$internal_array_state_markOnlyMutableValues(e,!1),n},jspb.internal.jspb_adapters.addToRepeatedWrapperField=function(e,t,n,r,i){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(e,t,n,r,i),e},jspb.internal.jspb_adapters.setProto3Int32FieldIfNotNullish=function(e,t,n){return null==n?e:module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3Uint32FieldIfNotNullish=function(e,t,n){return null==n?e:module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3Int64FieldIfNotNullish=function(e,t,n){return null==n?e:module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3Uint64FieldIfNotNullish=function(e,t,n){return null==n?e:module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3Int32Field=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3Uint32Field=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3Int64Field=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3Uint64Field=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.getRawStringFieldWithDefault=function(e,t,n){return n=void 0===n?"":n,(0,module$exports$jspb$internal.checkNotImmutable)(e),jspb.internal.jspb_adapters.getFieldWithDefault(e,t,n)},jspb.internal.jspb_adapters.getRawStringFieldOrUndefined=function(e,t){return(0,module$exports$jspb$internal.checkNotImmutable)(e),jspb.internal.jspb_adapters.getFieldOrUndefined(e,t)},jspb.internal.jspb_adapters.getRawStringFieldNullable=function(e,t,n){return n=void 0!==n&&n,(0,module$exports$jspb$internal.checkNotImmutable)(e),jspb.internal.jspb_adapters.getFieldNullable(e,t,n)},jspb.internal.jspb_adapters.getStringFieldNullable=function(e,t){return module$contents$jspb$internal_accessor_helpers_coerceToNullishString(jspb.internal.jspb_adapters.getFieldNullable(e,t))},jspb.internal.jspb_adapters.getRepeatedStringField=function(e,t){return module$contents$jspb$internal$jspb_adapters_getApiFormattedRepeatedField(e,t,module$contents$jspb$internal_accessor_helpers_coerceToNullishString,!1)},jspb.internal.jspb_adapters.setStringField=function(e,t,n){return jspb.internal.jspb_adapters.setField(e,t,module$contents$jspb$internal_accessor_helpers_checkNullishString(n))},jspb.internal.jspb_adapters.setStringFieldIfNotNullish=function(e,t,n){return null==n?e:jspb.internal.jspb_adapters.setStringField(e,t,n)},jspb.internal.jspb_adapters.setOneofStringFieldIfNotNullish=function(e,t,n,r){return null==r?e:jspb.internal.jspb_adapters.setOneofStringField(e,t,n,r)},jspb.internal.jspb_adapters.setOneofStringField=function(e,t,n,r){return jspb.internal.jspb_adapters.setOneofField(e,t,n,module$contents$jspb$internal_accessor_helpers_checkNullishString(r))},jspb.internal.jspb_adapters.getStringFieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getStringFieldNullable(e,t),void 0===n?"":n)},jspb.internal.jspb_adapters.getBooleanFieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getBooleanFieldNullable(e,t),void 0!==n&&n)},jspb.internal.jspb_adapters.getFloatingPointFieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getFloatingPointFieldNullable(e,t),void 0===n?0:n)},jspb.internal.jspb_adapters.getInt32FieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getFieldNullable(e,t),void 0===n?0:n)},jspb.internal.jspb_adapters.getUint32FieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getFieldNullable(e,t),void 0===n?0:n)},jspb.internal.jspb_adapters.getUint64FieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getFieldNullable(e,t),void 0===n?0:n)},jspb.internal.jspb_adapters.getUint64StringFieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getFieldNullable(e,t),void 0===n?"0":n)},jspb.internal.jspb_adapters.getInt64FieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getFieldNullable(e,t),void 0===n?0:n)},jspb.internal.jspb_adapters.getInt64StringFieldWithDefault=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_orDefault(jspb.internal.jspb_adapters.getFieldNullable(e,t),void 0===n?"0":n)},jspb.internal.jspb_adapters.getOneofFieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getFieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofBooleanFieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofFloatingPointFieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getFloatingPointFieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofStringFieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getStringFieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofBytesFieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getBytesFieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofInt32FieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofUint32FieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getUint32FieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofUint64FieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getUint64FieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofUint64StringFieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getUint64StringFieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofInt64FieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofInt64StringFieldWithDefault=function(e,t,n,r){return jspb.internal.jspb_adapters.getInt64StringFieldWithDefault(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t),r)},jspb.internal.jspb_adapters.getOneofFieldNullable=function(e,t,n){return jspb.internal.jspb_adapters.getFieldNullable(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t))},jspb.internal.jspb_adapters.getOneofBooleanFieldNullable=function(e,t,n){return jspb.internal.jspb_adapters.getBooleanFieldNullable(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t))},jspb.internal.jspb_adapters.getOneofFloatingPointFieldNullable=function(e,t,n){return jspb.internal.jspb_adapters.getFloatingPointFieldNullable(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t))},jspb.internal.jspb_adapters.getOneofStringFieldNullable=function(e,t,n){return jspb.internal.jspb_adapters.getStringFieldNullable(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t))},jspb.internal.jspb_adapters.getOneofBytesFieldNullable=function(e,t,n){return jspb.internal.jspb_adapters.getBytesFieldNullable(e,jspb.internal.jspb_adapters.isOneofCase(e,n,t))},jspb.internal.jspb_adapters.getOneofWrapperFieldOrUndefined=function(e,t,n,r){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(e,t,jspb.internal.jspb_adapters.isOneofCase(e,r,n))},jspb.internal.jspb_adapters.getFieldOrUndefined=function(e,t){return null==(e=jspb.internal.jspb_adapters.getFieldNullable(e,t))?void 0:e},jspb.internal.jspb_adapters.getBooleanFieldOrUndefined=function(e,t){return null==(e=jspb.internal.jspb_adapters.getBooleanFieldNullable(e,t))?void 0:e},jspb.internal.jspb_adapters.getFloatingPointFieldOrUndefined=function(e,t){return null==(e=jspb.internal.jspb_adapters.getFloatingPointFieldNullable(e,t))?void 0:e},jspb.internal.jspb_adapters.getBytesFieldOrUndefined=function(e,t){return null==(e=jspb.internal.jspb_adapters.getBytesFieldNullable(e,t))?void 0:e},jspb.internal.jspb_adapters.getStringFieldOrUndefined=function(e,t){return null==(e=jspb.internal.jspb_adapters.getStringFieldNullable(e,t))?void 0:e},jspb.internal.jspb_adapters.getOneofFieldOrUndefined=function(e,t,n){return null==(e=jspb.internal.jspb_adapters.getOneofFieldNullable(e,t,n))?void 0:e},jspb.internal.jspb_adapters.getOneofBooleanFieldOrUndefined=function(e,t,n){return null==(e=jspb.internal.jspb_adapters.getOneofBooleanFieldNullable(e,t,n))?void 0:e},jspb.internal.jspb_adapters.getOneofFloatingPointFieldOrUndefined=function(e,t,n){return null==(e=jspb.internal.jspb_adapters.getOneofFloatingPointFieldNullable(e,t,n))?void 0:e},jspb.internal.jspb_adapters.getOneofBytesFieldOrUndefined=function(e,t,n){return null==(e=jspb.internal.jspb_adapters.getOneofBytesFieldNullable(e,t,n))?void 0:e},jspb.internal.jspb_adapters.getOneofStringFieldOrUndefined=function(e,t,n){return null==(e=jspb.internal.jspb_adapters.getOneofStringFieldNullable(e,t,n))?void 0:e},jspb.internal.jspb_adapters.setProto3BooleanFieldIfNotNullish=function(e,t,n){return null==n?e:module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,!1)},jspb.internal.jspb_adapters.setProto3BooleanField=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,!1)},jspb.internal.jspb_adapters.setProto3StringFieldIfNotNullish=function(e,t,n){return null==n?e:module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,module$contents$jspb$internal_accessor_helpers_checkNullishString(n),"")},jspb.internal.jspb_adapters.setProto3StringField=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,module$contents$jspb$internal_accessor_helpers_checkNullishString(n),"")},jspb.internal.jspb_adapters.setProto3EnumFieldIfNotNullish=function(e,t,n){return null==n?e:module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.setProto3EnumField=function(e,t,n){return module$contents$jspb$internal$jspb_adapters_setFieldIgnoringDefault(e,t,n,0)},jspb.internal.jspb_adapters.hasStringField=function(e,t){return null!=jspb.internal.jspb_adapters.getStringFieldNullable(e,t)},jspb.internal.jspb_adapters.hasOneofStringField=function(e,t,n){return null!=jspb.internal.jspb_adapters.getOneofStringFieldNullable(e,t,n)},goog.DEBUG&&"undefined"!=typeof Proxy){var untypedHandlerMethod=module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb;module$contents$jspb$internal$transfer_array_badPrototype=new Proxy({},{getPrototypeOf:untypedHandlerMethod,setPrototypeOf:untypedHandlerMethod,isExtensible:untypedHandlerMethod,preventExtensions:untypedHandlerMethod,getOwnPropertyDescriptor:untypedHandlerMethod,defineProperty:untypedHandlerMethod,has:untypedHandlerMethod,get:untypedHandlerMethod,set:untypedHandlerMethod,deleteProperty:untypedHandlerMethod,apply:untypedHandlerMethod,construct:untypedHandlerMethod})}function module$contents$jspb$internal$transfer_array_makeArrayUnusable(e){for(var t=0;t<e.length;t++)module$contents$jspb$internal$transfer_array_makeValueUnusable(e[t]);e.length=1,e[0]=module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb,e.toJSON=module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb,module$contents$jspb$internal$transfer_array_badPrototype&&Object.setPrototypeOf(e,module$contents$jspb$internal$transfer_array_badPrototype),Object.freeze(e)}function module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb(){if(goog.DEBUG)throw Error("this array or object is owned by JSPB and should not be reused, did you mean to copy it with copyJspbArray? See go/jspb-api-gotchas#construct_from_array");throw Error()}var module$contents$jspb_alternateDataPayload,module$exports$jspb={Message:function(e,t,n){if(goog.asserts.assertInstanceof(this,module$exports$jspb.Message,"The message constructor should only be used by subclasses"),goog.asserts.assert(this.constructor!==module$exports$jspb.Message,"Message is an abstract class and cannot be directly constructed"),goog.asserts.ENABLE_ASSERTS&&!0!==this[module$exports$jspb$internal.EXEMPTED_SUBCLASS_MARKER]&&module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY){goog.asserts.assert(!0===this[module$exports$jspb$internal.GENERATED_SUBCLASS_MARKER],"Message can only be subclassed by proto gencode.");var r=Object.getPrototypeOf(goog.asserts.assert(Object.getPrototypeOf(this)));goog.asserts.assert(r.hasOwnProperty(module$exports$jspb$internal.GENERATED_SUBCLASS_MARKER),"Generated jspb classes should not be extended")}null==e&&(e=module$contents$jspb_alternateDataPayload),module$contents$jspb_alternateDataPayload=null;var i,a=0<(r=this.constructor.internalGroupNumberDoNotUse||0),o=!1,s=this.getJsPbMessageId(),l=!1;if(module$contents$jspb$internal_options_skipMessageArgumentTypeValidation?e:null!=e){if(!module$contents$jspb$internal_options_skipMessageArgumentTypeValidation){if(!Array.isArray(e)){if(goog.DEBUG)throw Error("data passed to JSPB constructors must be an Array, got '"+e+"' a "+goog.typeOf(e));throw Error()}if(Object.isFrozen(e)||!Object.isExtensible(e)||Object.isSealed(e)){if(goog.DEBUG)throw Error("data passed to JSPB constructors must be mutable");throw Error()}}if(!module$contents$jspb$internal_options_skipMessageIdValidation&&s&&s!==e[0])throw Error('Expected message to have a message id: "'+s+'" in the array, got: '+JSON.stringify(e)+", are you parsing with the wrong proto?");(i=module$contents$jspb$internal_array_state_areMutableReferencesOwned(e))&&(l=module$contents$jspb$internal_array_state_getAndSetConstructed(e))}else e=module$contents$jspb$internal_array_state_markOwnedAndConstructed(s?[s]:[]),i=!0,a&&module$exports$jspb$internal_options.fixGroupsB171736612&&(r=0,o=!0);if(!module$contents$jspb$internal_options_skipMessageIdValidation&&s&&s!==e[0])throw Error('Expected message to have a message id: "'+s+'" in the array, got: '+JSON.stringify(e)+", are you parsing with the wrong proto?");if(a&&0<e.length&&module$contents$jspb$internal_isExtensionObject(e[e.length-1])&&module$exports$jspb$internal.FIXED_GROUP_FLAG in e[e.length-1]&&(r=0),this.arrayIndexOffset=(s?0:-1)-r,this.internalWrappers_=void 0,this.internalArray_=e,module$contents$jspb$internal_disallowPassingToStructuredClone(this),module$contents$jspb_initPivotAndExtensionObject(this,t,a,o),!a&&this.internalSparseObject_&&module$exports$jspb$internal.FIXED_GROUP_FLAG in this.internalSparseObject_)throw Error('Unexpected "g" flag in sparse object of message that is not a group type.');if(n)for(e=i&&!l?module$contents$jspb$internal_array_state_markRepeatedAndOwned:module$contents$jspb$internal_array_state_markRepeatedField,t=0;t<n.length;t++)r=n[t],(a=(0,jspb.internal.jspb_adapters.getFieldNullable)(this,r))?Array.isArray(a)&&e(a):(0,jspb.internal.jspb_adapters.setField)(this,r,module$exports$jspb$internal.EMPTY_LIST_SENTINEL,!1,!0)}};function module$contents$jspb_initPivotAndExtensionObject(e,t,n,r){var i=e.internalArray_.length;if(n=i-1,i&&module$contents$jspb$internal_isExtensionObject(i=e.internalArray_[n]))return e.internalSparseObject_=i,void(0<(t=Object.keys(i)).length&&module$contents$goog$array_every(t,isNaN)?e.pivot_=Number.MAX_VALUE:e.pivot_=n-e.arrayIndexOffset);void 0!==t&&-1<t?(e.pivot_=Math.max(t,n+1-e.arrayIndexOffset),e.internalSparseObject_=void 0):e.pivot_=Number.MAX_VALUE,r&&((t={})[module$exports$jspb$internal.FIXED_GROUP_FLAG]=1,e.internalSparseObject_=t,e.internalArray_.push(e.internalSparseObject_))}function module$contents$jspb_serializeSpecialValues(e,t){return module$contents$jspb$internal_json_convertToJsonFormat(t)}function module$contents$jspb_prepareForSerialize(e){if(module$exports$jspb$internal_options.SERIALIZE_EMPTY_TRAILING_FIELDS)return e;for(var t,n,r=e.length,i=!1,a=e.length;a--;){var o=e[a];if(Array.isArray(o)){var s=o;(o=module$contents$jspb$internal_isEmptyRepeatedField(o)?null:module$contents$jspb_prepareForSerialize(o))!=s&&(i=!0)}else if(a===e.length-1&&module$contents$jspb$internal_isExtensionObject(o)){e:{s=n=void 0;var l=o;goog.asserts.assert(!module$exports$jspb$internal_options.SERIALIZE_EMPTY_TRAILING_FIELDS);var u={},c=!1;for(s in l)if(module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(l,s)){var p=l[s];if(Array.isArray(p)){var d=p;(p=module$contents$jspb$internal_isEmptyRepeatedField(p)?null:module$contents$jspb_prepareForSerialize(p))!=d&&(c=!0)}null!=p?u[s]=p:c=!0}if(c){for(n in u){n=u;break e}n=null}else n=l}n!=o&&(i=!0),r--;continue}null==o&&r==a+1?(i=!0,r--):i&&(t||(t=e.slice(0,r)),t[a]=o)}return i?(t||(t=e.slice(0,r)),n&&t.push(n),t):e}function module$contents$jspb_clearMessage(e){goog.asserts.assertInstanceof(e,module$exports$jspb.Message),(0,module$exports$jspb$internal.checkNotImmutable)(e);for(var t=e.internalArray_,n=e.internalSparseObject_,r=t.length+(null!=n?-1:0),i=+(null!=e.getJsPbMessageId());i<r;i++)t[i]=module$contents$jspb$internal_array_state_isRepeatedField(t[i])?module$exports$jspb$internal.EMPTY_LIST_SENTINEL:void 0;if(n)for(var a in n)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(n,a)&&(n[a]=module$contents$jspb$internal_array_state_isRepeatedField(n[a])?module$exports$jspb$internal.EMPTY_LIST_SENTINEL:void 0);return e.internalWrappers_=void 0,delete e.internalUnknownFields_,e}function module$contents$jspb_copyUnknownFields(e,t){goog.asserts.assert(e,"expected `to` to be non-null"),goog.asserts.assert(t,"expected `from` to be non-null"),module$contents$jspb$internal_copy_copyUnknownFields(e,t);var n=t.internalWrappers_;if(n){for(var r in t=t.internalSparseObject_,n)if(module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(n,r)){var i=n[r];if(i){var a=!(!t||!t[r]),o=+r;if(!Array.isArray(i))throw Error("unexpected object: type: "+goog.typeOf(i)+": "+i);if(i.length)for(a=(0,jspb.internal.jspb_adapters.getRepeatedWrapperField)(e,i[0].constructor,o,a),o=0;o<Math.min(a.length,i.length);o++)module$contents$jspb_copyUnknownFields(a[o],goog.asserts.assertInstanceof(i[o],module$exports$jspb.Message))}}}}function module$contents$jspb_newInstanceOf(e,t){return goog.asserts.assertInstanceof(e,module$exports$jspb.Message),goog.asserts.assertArray(t),module$contents$jspb_alternateDataPayload=t,e=new e.constructor(t),goog.asserts.assertInstanceof(e,module$exports$jspb.Message),module$contents$jspb_alternateDataPayload=null,e}function module$contents$jspb_internalConstructFromOwnedArray(e,t){return goog.asserts.assert(module$contents$jspb$internal_array_state_areMutableReferencesOwned(t)),module$contents$jspb_alternateDataPayload=t,e=new e(t),module$contents$jspb_alternateDataPayload=null,goog.asserts.assertInstanceof(e,module$exports$jspb.Message),e}module$exports$jspb.Message.prototype.getJsPbMessageId=function(){return this.constructor.messageId},module$exports$jspb.Message.prototype.toArray=function(){return this.toJSON()},module$exports$jspb.Message.prototype.toJsonValue=function(){return this.toJSON()},module$exports$jspb.Message.prototype.toJSON=function(){var e=module$contents$jspb_prepareForSerialize(this.internalArray_);return module$contents$jspb$internal_inSerialize?e:module$contents$jspb$internal_copy_cloneToJsonFormat(e)},module$exports$jspb.Message.prototype.toStructuredCloneableValue=function(){return module$contents$jspb$internal_copy_cloneToStructuredCloneableFormat(this.internalArray_)},module$exports$jspb.Message.prototype.serialize=function(){module$contents$jspb$internal_inSerialize=!0;try{return JSON.stringify(this.toJSON(),module$contents$jspb_serializeSpecialValues)}finally{module$contents$jspb$internal_inSerialize=!1}},module$exports$jspb.Message.deserializeWithCtor=function(e,t){if(goog.asserts.assertFunction(e),null==t||""==t)return goog.asserts.assertInstanceof(new e,module$exports$jspb.Message);if(goog.asserts.assertString(t),!Array.isArray(t=JSON.parse(t)))throw Error(goog.DEBUG?"Expected to deserialize an Array but got "+goog.typeOf(t)+": "+t:void 0);return module$contents$jspb_internalConstructFromOwnedArray(e,module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(t))},module$exports$jspb.Message.prototype.getExtension=function(e){return goog.asserts.assertInstanceof(this,e.extendeeCtor),e.getExtensionFn(goog.asserts.assertInstanceof(this,module$exports$jspb.Message))},module$exports$jspb.Message.prototype.getExtensionOrUndefined=function(e){return goog.asserts.assert(!e.isRepeated,"repeated extensions don't support getExtensionOrUndefined"),goog.asserts.assertInstanceof(this,e.extendeeCtor),null==(e=e.getExtensionFn(goog.asserts.assertInstanceof(this,module$exports$jspb.Message)))?void 0:e},module$exports$jspb.Message.prototype.hasExtension=function(e){return goog.asserts.assertInstanceof(this,e.extendeeCtor),goog.asserts.assert(!e.isRepeated,"repeated extensions don't support hasExtension"),(0,jspb.internal.jspb_adapters.hasField)(goog.asserts.assertInstanceof(this,module$exports$jspb.Message),e.fieldIndex)},module$exports$jspb.Message.difference=function(e,t){if(!(e instanceof module$exports$jspb.Message))throw Error("Message.difference called on non-Message.");if(e.constructor!==t.constructor)throw Error("Messages have different types.");var n=module$contents$jspb$internal_isImmutableMessage(e);if(n!==module$contents$jspb$internal_isImmutableMessage(t))throw Error("Messages must both be immutable or both be mutable.");var r=e.internalArray_;t=t.internalArray_;var i=[],a=0,o=r.length>t.length?r.length:t.length;for(e.getJsPbMessageId()&&(i[0]=e.getJsPbMessageId(),a=1);a<o;a++)module$contents$jspb$internal_compare_compareFields(r[a],t[a])||(i[a]=module$contents$jspb$internal_copy_cloneJspbField(t[a],module$contents$jspb$internal_copy_dontCopyArrayBits));return n&&module$contents$jspb$internal_array_state_markArrayImmutable(i),module$contents$jspb_newInstanceOf(e,module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(i))},module$exports$jspb.Message.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&module$contents$jspb$internal_compare_compareFields(e.internalArray_,t.internalArray_)},module$exports$jspb.Message.prototype.clone=function(){var e=goog.asserts.assertInstanceof(this,module$exports$jspb.Message),t=module$contents$jspb$internal_copy_cloneJspb(e.internalArray_,module$contents$jspb$internal_array_state_copyArrayBitsForClone);return module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(t),module$contents$jspb_copyUnknownFields(t=module$contents$jspb_newInstanceOf(e,t),e),t},module$exports$jspb.Message.prototype.isMutable=function(){return!module$contents$jspb$internal_isImmutableMessage(this)},module$exports$jspb.Message.prototype.isImmutable=function(){return module$contents$jspb$internal_isImmutableMessage(this)},module$exports$jspb.Message.prototype.toMutable=function(){if(module$contents$jspb$internal_isImmutableMessage(this)){var e={copyRepeatedFields:!0},t=module$contents$jspb$internal_isImmutableMessage(this);if(t&&!e.copyRepeatedFields)throw Error("copyRepeatedFields must be true for frozen messages");t||module$contents$jspb$internal_array_state_markShared(this.internalArray_);var n=new this.constructor;module$contents$jspb$internal_copy_copyUnknownFields(n,this);for(var r=this.internalArray_,i=0;i<r.length;i++){var a=r[i];if(i===r.length-1&&module$contents$jspb$internal_isExtensionObject(a)){for(var o in a)if(module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(a,o)){var s=+o;Number.isNaN(s)?(0,jspb.internal.jspb_adapters.getSparseObject)(n)[o]=a[o]:module$contents$jspb$internal_shallow_copy_shallowCopyField(this,n,s,a[o],t,e)}}else module$contents$jspb$internal_shallow_copy_shallowCopyField(this,n,i-this.arrayIndexOffset,a,t,e)}n.internalCachedImmutable_=this,e=n}else e=this;return e},module$exports$jspb.Message.prototype.toImmutable=function(e){return module$contents$jspb$immutable_api_token_checkImmutableAccessAllowed(e),module$contents$jspb$internal_isImmutableMessage(this)?e=this:(e=this.internalCachedImmutable_)&&module$contents$jspb$internal_compare_compareFields(e.internalArray_,this.internalArray_)||(module$contents$jspb$internal_internalMarkMessageImmutable(e=module$contents$jspb$internal_immutability_copyMutableWithImmutableFields(this)),this.internalCachedImmutable_=e),e},module$exports$jspb.Message.prototype.setExtension=function(e,t){return goog.asserts.assertInstanceof(this,e.extendeeCtor),e.setExtensionFn(this,t)},module$exports$jspb.Message.prototype.messagePrototypeMarker=module$exports$jspb$internal.MESSAGE_PROTOTYPE_MARKER_VALUE,module$exports$jspb.Message.prototype.toString=function(){return this.internalArray_.toString()},module$exports$jspb.clearMessage=module$contents$jspb_clearMessage,module$exports$jspb.cloneJspbArray=function(e){return(0,module$exports$jspb$internal_copy.cloneRaw)(e)},module$exports$jspb.copyMessage=function(e,t){goog.asserts.assertInstanceof(e,module$exports$jspb.Message),goog.asserts.assertInstanceof(t,module$exports$jspb.Message),goog.asserts.assert(t.constructor==e.constructor,"Copy source and target message should have the same type."),(0,module$exports$jspb$internal.checkNotImmutable)(e);var n=t.internalArray_,r=e.internalArray_;r.length=n.length;for(var i=0;i<n.length;i++)r[i]=module$contents$jspb$internal_copy_cloneJspbField(n[i],module$contents$jspb$internal_array_state_copyArrayBitsForClone);return e.internalWrappers_=void 0,e.internalSparseObject_=void 0,module$contents$jspb_initPivotAndExtensionObject(e,e.pivot_,void 0!==t.constructor.internalGroupNumberDoNotUse,!1),module$contents$jspb_copyUnknownFields(e,t),e},module$exports$jspb.newImmutableMessageFromTransferredArray=function(e,t,n){return module$contents$jspb$immutable_api_token_checkImmutableAccessAllowed(n),module$contents$jspb_newInstanceOf(e,module$contents$jspb$internal_array_state_markArrayImmutable(t=module$contents$jspb$internal$transfer_array_transferArray(t)))},module$exports$jspb.newMutableMessageFromTransferredArray=function(e,t){return module$contents$jspb_internalConstructFromOwnedArray(e,module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(t=module$contents$jspb$internal$transfer_array_transferArray(t)))};var module$exports$jspb$immutable_message={ImmutableMessage:function(){throw module$exports$jspb.Message.call(this,void 0),Error("ImmutableMessage is not instantiable")}};if($jscomp.inherits(module$exports$jspb$immutable_message.ImmutableMessage,module$exports$jspb.Message),module$exports$jspb$immutable_message.ImmutableMessage.prototype.clone=function(){return module$exports$jspb.Message.prototype.clone.call(this)},module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY&&module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE){var rejectInstanceof$33=function(){throw Error(goog.DEBUG?"Cannot perform instanceof checks for ImmutableMessage. Please use .isMutable or .isImmutable to determine whether a message is mutable. See go/jspb-api-gotchas#immutable-classes for more information":void 0)},$jscomp$compprop2={};Object.defineProperties(module$exports$jspb$immutable_message.ImmutableMessage,($jscomp$compprop2[Symbol.hasInstance]=module$contents$jspb$internal_invisiblePropValue(rejectInstanceof$33),$jscomp$compprop2)),(0,goog.asserts.assert)(module$exports$jspb$immutable_message.ImmutableMessage[Symbol.hasInstance]===rejectInstanceof$33,"broken defineProperties implementation")}jspb.immutable_message={},jspb.immutable_message.ImmutableMessage=module$exports$jspb$immutable_message.ImmutableMessage;var module$exports$jspb$BinaryConstants={FieldType:{INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18},WireType:{INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5}};function module$contents$jspb$BinaryConstants_isValidWireType(e){return 0<=e&&5>=e}function module$contents$jspb$BinaryConstants_FieldTypeToWireType(e){switch(e){case module$exports$jspb$BinaryConstants.FieldType.INT32:case module$exports$jspb$BinaryConstants.FieldType.INT64:case module$exports$jspb$BinaryConstants.FieldType.UINT32:case module$exports$jspb$BinaryConstants.FieldType.UINT64:case module$exports$jspb$BinaryConstants.FieldType.SINT32:case module$exports$jspb$BinaryConstants.FieldType.SINT64:case module$exports$jspb$BinaryConstants.FieldType.BOOL:case module$exports$jspb$BinaryConstants.FieldType.ENUM:return module$exports$jspb$BinaryConstants.WireType.VARINT;case module$exports$jspb$BinaryConstants.FieldType.DOUBLE:case module$exports$jspb$BinaryConstants.FieldType.FIXED64:case module$exports$jspb$BinaryConstants.FieldType.SFIXED64:return module$exports$jspb$BinaryConstants.WireType.FIXED64;case module$exports$jspb$BinaryConstants.FieldType.STRING:case module$exports$jspb$BinaryConstants.FieldType.MESSAGE:case module$exports$jspb$BinaryConstants.FieldType.BYTES:return module$exports$jspb$BinaryConstants.WireType.DELIMITED;case module$exports$jspb$BinaryConstants.FieldType.FLOAT:case module$exports$jspb$BinaryConstants.FieldType.FIXED32:case module$exports$jspb$BinaryConstants.FieldType.SFIXED32:return module$exports$jspb$BinaryConstants.WireType.FIXED32;default:return module$exports$jspb$BinaryConstants.WireType.INVALID}}function module$contents$jspb$binary$errors_invalidWireTypeError(e,t){return Error("Invalid wire type: "+e+" (at position "+t+")")}function module$contents$jspb$binary$errors_invalidVarintError(){return Error("Failed to read varint, encoding is invali
2d.")}function module$contents$jspb$binary$errors_readTooFarError(e,t){return Error("Tried to read past the end of the data "+t+" > "+e)}function module$contents$jspb$binary$internal_buffer_bufferFromSource(e){if("string"==typeof e)return{buffer:goog.crypt.base64.decodeStringToUint8Array(e),isImmutable:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),isImmutable:!1};if(e.constructor===Uint8Array)return{buffer:e,isImmutable:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),isImmutable:!1};if(e.constructor===module$exports$jspb$bytestring.ByteString)return{buffer:module$contents$jspb$unsafe_bytestring_unsafeUint8ArrayFromByteString(e),isImmutable:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),isImmutable:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}module$exports$jspb$BinaryConstants.INVALID_FIELD_NUMBER=-1,module$exports$jspb$BinaryConstants.INVALID_TAG=-1,module$exports$jspb$BinaryConstants.FLOAT32_EPS=1401298464324817e-60,module$exports$jspb$BinaryConstants.FLOAT32_MIN=11754943508222875e-54,module$exports$jspb$BinaryConstants.FLOAT32_MAX=34028234663852886e22,module$exports$jspb$BinaryConstants.FLOAT64_EPS=5e-324,module$exports$jspb$BinaryConstants.FLOAT64_MIN=22250738585072014e-324,module$exports$jspb$BinaryConstants.FLOAT64_MAX=17976931348623157e292,module$exports$jspb$BinaryConstants.TWO_TO_20=1048576,module$exports$jspb$BinaryConstants.TWO_TO_23=8388608,module$exports$jspb$BinaryConstants.TWO_TO_31=0x80000000,module$exports$jspb$BinaryConstants.TWO_TO_32=0x100000000,module$exports$jspb$BinaryConstants.TWO_TO_52=0x10000000000000,module$exports$jspb$BinaryConstants.TWO_TO_63=0x8000000000000000,module$exports$jspb$BinaryConstants.TWO_TO_64=0xffffffffffffffff,module$exports$jspb$BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",module$exports$jspb$BinaryConstants.MESSAGE_SET_GROUP_NUMBER=1,module$exports$jspb$BinaryConstants.MESSAGE_SET_TYPE_ID_FIELD_NUMBER=2,module$exports$jspb$BinaryConstants.MESSAGE_SET_MESSAGE_FIELD_NUMBER=3,module$exports$jspb$BinaryConstants.MESSAGE_SET_MAX_TYPE_ID=0xfffffffe,module$exports$jspb$BinaryConstants.FieldTypeToWireType=module$contents$jspb$BinaryConstants_FieldTypeToWireType,module$exports$jspb$BinaryConstants.isValidWireType=module$contents$jspb$BinaryConstants_isValidWireType;var module$contents$jspb$utils_SUPPORTS_UINT8ARRAY_SLICING=2018<=goog.FEATURESET_YEAR||"function"==typeof Uint8Array.prototype.slice;function module$contents$jspb$utils_sliceUint8Array(e,t,n){return t===n?module$contents$jspb$internal_bytes_emptyUint8Array():module$contents$jspb$utils_SUPPORTS_UINT8ARRAY_SLICING?e.slice(t,n):new Uint8Array(e.subarray(t,n))}var module$contents$jspb$utils_split64Low=0,module$contents$jspb$utils_split64High=0;function module$contents$jspb$utils_splitUint64(e){var t=e>>>0;e=Math.floor((e-t)/module$exports$jspb$BinaryConstants.TWO_TO_32)>>>0,module$contents$jspb$utils_split64Low=t,module$contents$jspb$utils_split64High=e}function module$contents$jspb$utils_splitInt64(e){var t=0>e,n=(e=Math.abs(e))>>>0;e=Math.floor((e-n)/module$exports$jspb$BinaryConstants.TWO_TO_32),t&&(t=(n=$jscomp.makeIterator(module$contents$jspb$utils_negate(n,e))).next().value,e=n.next().value,n=t),module$contents$jspb$utils_split64Low=n>>>0,module$contents$jspb$utils_split64High=e>>>0}function module$contents$jspb$utils_joinUint64(e,t){return t*module$exports$jspb$BinaryConstants.TWO_TO_32+(e>>>0)}function module$contents$jspb$utils_joinInt64(e,t){var n=0x80000000&t;return n&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=module$contents$jspb$utils_joinUint64(e,t),n?-e:e}function module$contents$jspb$utils_toZigzag64(e,t,n){var r=t>>31;return t=(t<<1|e>>>31)^r,n(e=e<<1^r,t)}function module$contents$jspb$utils_joinZigzag64(e,t){return module$contents$jspb$utils_fromZigzag64(e,t,module$contents$jspb$utils_joinInt64)}function module$contents$jspb$utils_fromZigzag64(e,t,n){var r=-(1&e);return n(e=(e>>>1|t<<31)^r,t=t>>>1^r)}var module$contents$jspb$utils_SUPPORTS_BIG_INT=2021<=goog.FEATURESET_YEAR||"function"==typeof BigInt;function module$contents$jspb$utils_joinUnsignedDecimalString(e,t){if(e>>>=0,2097151>=(t>>>=0))var n=""+(module$exports$jspb$BinaryConstants.TWO_TO_32*t+e);else module$contents$jspb$utils_SUPPORTS_BIG_INT?n=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(0xffffff&e)+6777216*(n=0xffffff&(e>>>24|t<<8))+6710656*(t=t>>16&65535),n+=8147497*t,t*=2,1e7<=e&&(n+=Math.floor(e/1e7),e%=1e7),1e7<=n&&(t+=Math.floor(n/1e7),n%=1e7),(0,goog.asserts.assert)(t),n=t+module$contents$jspb$utils_decimalFrom1e7WithLeadingZeros(n)+module$contents$jspb$utils_decimalFrom1e7WithLeadingZeros(e));return n}function module$contents$jspb$utils_decimalFrom1e7WithLeadingZeros(e){return e=String(e),"0000000".slice(e.length)+e}function module$contents$jspb$utils_joinSignedDecimalString(e,t){return 0x80000000&t?module$contents$jspb$utils_SUPPORTS_BIG_INT?""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0)):"-"+module$contents$jspb$utils_joinUnsignedDecimalString(e=(t=$jscomp.makeIterator(module$contents$jspb$utils_negate(e,t))).next().value,t=t.next().value):module$contents$jspb$utils_joinUnsignedDecimalString(e,t)}function module$contents$jspb$utils_splitDecimalString(e){if((0,goog.asserts.assert)(0<e.length),16>e.length)module$contents$jspb$utils_splitInt64(Number(e));else if(module$contents$jspb$utils_SUPPORTS_BIG_INT)module$contents$jspb$utils_split64Low=Number((e=BigInt(e))&BigInt(0xffffffff))>>>0,module$contents$jspb$utils_split64High=Number(e>>BigInt(32)&BigInt(0xffffffff));else{(0,goog.asserts.assert)(0<e.length);var t=+("-"===e[0]);module$contents$jspb$utils_split64High=module$contents$jspb$utils_split64Low=0;for(var n=e.length,r=0+t,i=(n-t)%6+t;i<=n;r=i,i+=6)r=Number(e.slice(r,i)),module$contents$jspb$utils_split64High*=1e6,(module$contents$jspb$utils_split64Low=1e6*module$contents$jspb$utils_split64Low+r)>=module$exports$jspb$BinaryConstants.TWO_TO_32&&(module$contents$jspb$utils_split64High+=module$contents$jspb$utils_split64Low/module$exports$jspb$BinaryConstants.TWO_TO_32|0,module$contents$jspb$utils_split64Low%=module$exports$jspb$BinaryConstants.TWO_TO_32);t&&(e=(t=$jscomp.makeIterator(module$contents$jspb$utils_negate(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High))).next().value,t=t.next().value,module$contents$jspb$utils_split64Low=e,module$contents$jspb$utils_split64High=t)}}function module$contents$jspb$utils_negate(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}var module$exports$jspb$binary$decoder={BinaryDecoder:function(e,t,n,r){this.bytes_=null,this.bytesAreImmutable_=!1,module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST&&(this.dataView_=null),this.cursor_=this.end_=this.start_=0,this.init(e,t,n,r)}};module$exports$jspb$binary$decoder.BinaryDecoder.prototype.init=function(e,t,n,r){r=void 0===r?{}:r,this.aliasBytesFields=void 0!==r.aliasBytesFields&&r.aliasBytesFields,e&&this.setBlock(e,t,n)},module$exports$jspb$binary$decoder.BinaryDecoder.alloc=function(e,t,n,r){if(module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_.length){var i=module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_.pop();return i.init(e,t,n,r),i}return new module$exports$jspb$binary$decoder.BinaryDecoder(e,t,n,r)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.free=function(){this.clear(),100>module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_.length&&module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_.push(this)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.bytesAreImmutable_=!1,module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST&&(this.dataView_=null),this.cursor_=this.end_=this.start_=0,this.aliasBytesFields=!1},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.getBuffer=function(){if(this.bytesAreImmutable_)throw Error("cannot access the buffer of decoders over immutable data.");return this.bytes_},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.setBlock=function(e,t,n){e=module$contents$jspb$binary$internal_buffer_bufferFromSource(e),this.bytes_=e.buffer,this.bytesAreImmutable_=e.isImmutable,module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST&&(this.dataView_=null),this.start_=t||0,this.end_=void 0!==n?this.start_+n:this.bytes_.length,this.cursor_=this.start_},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.getEnd=function(){return this.end_},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.setEnd=function(e){this.end_=e},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.setCursor=function(e){this.cursor_=e},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.advance=function(e){this.setCursorAndCheck(this.cursor_+e)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSplitVarint64=function(e){var t=0,n=0,r=0,i=this.bytes_,a=this.cursor_;do{var o=i[a++];t|=(127&o)<<r,r+=7}while(32>r&&128&o);for(32<r&&(n|=(127&o)>>4),r=3;32>r&&128&o;r+=7)n|=(127&(o=i[a++]))<<r;if(this.setCursorAndCheck(a),128>o)return e(t>>>0,n>>>0);throw module$contents$jspb$binary$errors_invalidVarintError()},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSplitZigzagVarint64=function(e){return this.readSplitVarint64(function(t,n){return module$contents$jspb$utils_fromZigzag64(t,n,e)})},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSplitFixed64=function(e){var t=this.bytes_,n=this.cursor_;this.advance(8);for(var r=0,i=0,a=n+7;a>=n;a--)r=r<<8|t[a],i=i<<8|t[a+4];return e(r,i)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.skipVarint=function(){this.readBool()},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.setCursorAndCheck=function(e){if(this.cursor_=e,e>this.end_)throw module$contents$jspb$binary$errors_readTooFarError(this.end_,e)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSignedVarint32=function(){var e=this.bytes_,t=this.cursor_,n=e[t++],r=127&n;if(128&n&&(r|=(127&(n=e[t++]))<<7,128&n&&(r|=(127&(n=e[t++]))<<14,128&n&&(r|=(127&(n=e[t++]))<<21,128&n&&(r|=(n=e[t++])<<28,128&n&&128&e[t++]&&128&e[t++]&&128&e[t++]&&128&e[t++]&&128&e[t++])))))throw module$contents$jspb$binary$errors_invalidVarintError();return this.setCursorAndCheck(t),r},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUnsignedVarint32=function(){return this.readSignedVarint32()>>>0},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUnsignedVarint32IfEqualTo=function(e){goog.asserts.assert(e===e>>>0);for(var t=this.cursor_,n=t,r=this.end_,i=this.bytes_;n<r;){if(!(127<e)){if(i[n++]===e)return this.cursor_=n,t;break}var a=128|127&e;if(i[n++]!==a)break;e>>>=7}return -1},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readZigzagVarint32=function(){var e=this.readUnsignedVarint32();return e>>>1^-(1&e)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(module$contents$jspb$utils_joinUint64)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(module$contents$jspb$utils_joinUnsignedDecimalString)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(module$contents$jspb$utils_joinInt64)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(module$contents$jspb$utils_joinSignedDecimalString)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(module$contents$jspb$utils_joinZigzag64)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(module$contents$jspb$utils_joinSignedDecimalString)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUint8=function(){var e=this.bytes_[this.cursor_+0];return this.advance(1),e},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUint16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.advance(2),0|e|t<<8},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUint32=function(){var e=this.bytes_,t=this.cursor_,n=e[t+0],r=e[t+1],i=e[t+2];return e=e[t+3],this.advance(4),(0|n|r<<8|i<<16|e<<24)>>>0},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUint64=function(){return module$contents$jspb$utils_joinUint64(this.readUint32(),this.readUint32())},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUint64String=function(){return module$contents$jspb$utils_joinUnsignedDecimalString(this.readUint32(),this.readUint32())},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readInt8=function(){var e=this.bytes_[this.cursor_+0];return this.advance(1),e<<24>>24},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readInt16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.advance(2),(0|e|t<<8)<<16>>16},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readInt32=function(){var e=this.bytes_,t=this.cursor_,n=e[t+0],r=e[t+1],i=e[t+2];return e=e[t+3],this.advance(4),0|n|r<<8|i<<16|e<<24},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readInt64=function(){return module$contents$jspb$utils_joinInt64(this.readUint32(),this.readUint32())},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readInt64String=function(){return module$contents$jspb$utils_joinSignedDecimalString(this.readUint32(),this.readUint32())},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readFloat=function(){var e=this.readUint32(),t=2*(e>>31)+1,n=e>>>23&255;return e&=8388607,255==n?e?NaN:1/0*t:0==n?1401298464324817e-60*t*e:t*Math.pow(2,n-150)*(e+8388608)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readDouble=function(){if(module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST){var e=this.getDataView().getFloat64(this.cursor_,!0);return this.advance(8),e}var t=this.readUint32(),n=this.readUint32();e=2*(n>>31)+1;var r=n>>>20&2047;return t=module$exports$jspb$BinaryConstants.TWO_TO_32*(1048575&n)+t,2047==r?t?NaN:1/0*e:0==r?5e-324*e*t:e*Math.pow(2,r-1075)*(t+module$exports$jspb$BinaryConstants.TWO_TO_52)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readDoubleArrayInto=function(e,t){var n=this.cursor_,r=8*e;if(n+r>this.end_)throw module$contents$jspb$binary$errors_readTooFarError(r,this.end_-n);var i=this.bytes_;if(n+=i.byteOffset,module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST)for(this.cursor_+=r,e=new DataView(i.buffer,n,r),r=0;!((i=r+8)>e.byteLength);)t.push(e.getFloat64(r,!0)),r=i;else if(void 0===module$contents$jspb$binary$decoder_isLittleEndianCache&&(module$contents$jspb$binary$decoder_isLittleEndianCache=513==new Uint16Array(new Uint8Array([1,2]).buffer)[0]),goog.asserts.assertBoolean(module$contents$jspb$binary$decoder_isLittleEndianCache))for(this.cursor_+=r,e=new Float64Array(i.buffer.slice(n,n+r)),r=0;r<e.length;r++)t.push(e[r]);else for(r=0;r<e;r++)t.push(this.readDouble())},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readBool=function(){for(var e=0,t=this.cursor_,n=t+10,r=this.bytes_;t<n;){var i=r[t++];if(e|=i,0==(128&i))return this.setCursorAndCheck(t),!!(127&e)}throw module$contents$jspb$binary$errors_invalidVarintError()},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.checkReadLengthAndAdvance=function(e){if(0>e)throw Error("Tried to read a negative byte length: "+e);var t=this.cursor_,n=t+e;if(n>this.end_)throw module$contents$jspb$binary$errors_readTooFarError(e,this.end_-t);return this.cursor_=n,t},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readString=funct
vendor: 11,208 bytes, line 2
2ion(e,t){var n=this.checkReadLengthAndAdvance(e),r=goog.asserts.assert(this.bytes_);return module$contents$jspb$binary$utf8_useTextDecoderDecode?module$contents$jspb$binary$utf8_textDecoderDecodeUtf8(r,n,e,t):module$contents$jspb$binary$utf8_polyfillDecodeUtf8(r,n,e,t)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readBytes=function(e){var t=this.checkReadLengthAndAdvance(e);return this.aliasBytesFields&&!this.bytesAreImmutable_?this.bytes_.subarray(t,t+e):module$contents$jspb$utils_sliceUint8Array(goog.asserts.assert(this.bytes_),t,t+e)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readByteString=function(e){if(0==e)return module$exports$jspb$bytestring.ByteString.empty();var t=this.checkReadLengthAndAdvance(e);return e=this.aliasBytesFields&&this.bytesAreImmutable_?this.bytes_.subarray(t,t+e):module$contents$jspb$utils_sliceUint8Array(goog.asserts.assert(this.bytes_),t,t+e),(0,goog.asserts.assertInstanceof)(e,Uint8Array),0==e.length?module$exports$jspb$bytestring.ByteString.empty():new module$exports$jspb$bytestring.ByteString(e,module$exports$jspb$internal_bytes.I_AM_INTERNAL)},module$exports$jspb$binary$decoder.BinaryDecoder.prototype.getDataView=function(){var e=this.dataView_;return e||(e=this.bytes_,e=this.dataView_=new DataView(e.buffer,e.byteOffset,e.byteLength)),e},module$exports$jspb$binary$decoder.BinaryDecoder.resetInstanceCache=function(){module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_=[]},module$exports$jspb$binary$decoder.BinaryDecoder.getInstanceCache=function(){return module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_},module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_=[];var module$contents$jspb$binary$decoder_isLittleEndianCache=void 0,module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST=2019<=goog.FEATURESET_YEAR,module$exports$jspb$binary$reader={};goog.asserts.assert(!0),module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL=!0,module$exports$jspb$binary$reader.BinaryReaderOptions=function(){},module$exports$jspb$binary$reader.BinaryReader=function(e,t,n,r){this.decoder_=module$exports$jspb$binary$decoder.BinaryDecoder.alloc(e,t,n,r),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=module$exports$jspb$BinaryConstants.INVALID_FIELD_NUMBER,this.nextTag_=module$exports$jspb$BinaryConstants.INVALID_TAG,this.nextWireType_=module$exports$jspb$BinaryConstants.WireType.INVALID,this.setOptions(r)},module$exports$jspb$binary$reader.BinaryReader.prototype.setOptions=function(e){e=void 0===e?{}:e,this.discardUnknownFields=void 0!==e.discardUnknownFields&&e.discardUnknownFields},module$exports$jspb$binary$reader.BinaryReader.alloc=function(e,t,n,r){if(module$exports$jspb$binary$reader.BinaryReader.instanceCache_.length){var i=module$exports$jspb$binary$reader.BinaryReader.instanceCache_.pop();return i.setOptions(r),i.decoder_.init(e,t,n,r),i}return new module$exports$jspb$binary$reader.BinaryReader(e,t,n,r)},module$exports$jspb$binary$reader.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextTag_=module$exports$jspb$BinaryConstants.INVALID_TAG,this.nextField_=module$exports$jspb$BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=module$exports$jspb$BinaryConstants.WireType.INVALID,100>module$exports$jspb$binary$reader.BinaryReader.instanceCache_.length&&module$exports$jspb$binary$reader.BinaryReader.instanceCache_.push(this)},module$exports$jspb$binary$reader.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},module$exports$jspb$binary$reader.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},module$exports$jspb$binary$reader.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},module$exports$jspb$binary$reader.BinaryReader.prototype.getTag=function(){return this.nextTag_},module$exports$jspb$binary$reader.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},module$exports$jspb$binary$reader.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},module$exports$jspb$binary$reader.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.END_GROUP},module$exports$jspb$binary$reader.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.DELIMITED},module$exports$jspb$binary$reader.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.fieldCursor_=this.decoder_.getCursor(),this.nextTag_=module$exports$jspb$BinaryConstants.INVALID_TAG,this.nextField_=module$exports$jspb$BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=module$exports$jspb$BinaryConstants.WireType.INVALID},module$exports$jspb$binary$reader.BinaryReader.prototype.advance=function(e){this.decoder_.advance(e)},module$exports$jspb$binary$reader.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;this.assertPriorFieldWasRead(),this.fieldCursor_=this.decoder_.getCursor();var e=this.decoder_.readUnsignedVarint32(),t=e>>>3,n=7&e;if(!module$contents$jspb$BinaryConstants_isValidWireType(n))throw module$contents$jspb$binary$errors_invalidWireTypeError(n,this.fieldCursor_);if(1>t)throw Error("Invalid field number: "+t+" (at position "+this.fieldCursor_+")");return this.nextTag_=e,this.nextField_=t,this.nextWireType_=n,!0},module$exports$jspb$binary$reader.BinaryReader.prototype.nextFieldIfTagEqualTo=function(e){this.assertPriorFieldWasRead(),goog.asserts.assert(module$contents$jspb$BinaryConstants_isValidWireType(7&e)&&0<e>>>3,"Must pass a valid tag.");var t=this.decoder_.readUnsignedVarint32IfEqualTo(e),n=0<=t;return n&&(this.fieldCursor_=t,this.nextTag_=e,this.nextField_=e>>>3,this.nextWireType_=7&e),n},module$exports$jspb$binary$reader.BinaryReader.prototype.assertPriorFieldWasRead=function(){if(goog.asserts.ENABLE_ASSERTS&&this.nextTag_!==module$exports$jspb$BinaryConstants.INVALID_TAG){var e=this.decoder_.getCursor();this.decoder_.setCursor(this.fieldCursor_),this.decoder_.readUnsignedVarint32(),this.nextWireType_===module$exports$jspb$BinaryConstants.WireType.END_GROUP||this.nextWireType_===module$exports$jspb$BinaryConstants.WireType.START_GROUP?goog.asserts.assert(e===this.decoder_.getCursor(),"Expected to not advance the cursor. Group tags do not have values."):goog.asserts.assert(e>this.decoder_.getCursor(),"Expected to read the field, did you forget to call a read or skip method?"),this.decoder_.setCursor(e)}},module$exports$jspb$binary$reader.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=module$exports$jspb$BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},module$exports$jspb$binary$reader.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=module$exports$jspb$BinaryConstants.WireType.DELIMITED)return goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField(),0;var e=this.decoder_.readUnsignedVarint32();return this.decoder_.advance(e),e},module$exports$jspb$binary$reader.BinaryReader.prototype.skipFixed32Field=function(){goog.asserts.assert(this.nextWireType_===module$exports$jspb$BinaryConstants.WireType.FIXED32),this.decoder_.advance(4)},module$exports$jspb$binary$reader.BinaryReader.prototype.skipFixed64Field=function(){goog.asserts.assert(this.nextWireType_===module$exports$jspb$BinaryConstants.WireType.FIXED64),this.decoder_.advance(8)},module$exports$jspb$binary$reader.BinaryReader.prototype.skipGroup=function(){for(var e=this.nextField_;;){if(!this.nextField())throw Error("Unmatched start-group tag: stream EOF");if(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.END_GROUP){if(this.nextField_!=e)throw Error("Unmatched end-group tag");break}this.skipField()}},module$exports$jspb$binary$reader.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case module$exports$jspb$BinaryConstants.WireType.VARINT:this.skipVarintField();break;case module$exports$jspb$BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case module$exports$jspb$BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case module$exports$jspb$BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case module$exports$jspb$BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:throw module$contents$jspb$binary$errors_invalidWireTypeError(this.nextWireType_,this.fieldCursor_)}},module$exports$jspb$binary$reader.BinaryReader.prototype.skipToEnd=function(){this.decoder_.setCursor(this.decoder_.getEnd())},module$exports$jspb$binary$reader.BinaryReader.prototype.handleUnknownField=function(e){var t=this.getFieldCursor();this.skipField(),this.addUnknownFieldsStartingFrom(e,t)},module$exports$jspb$binary$reader.BinaryReader.prototype.addUnknownFieldsStartingFrom=function(e,t){if(!this.discardUnknownFields){var n=this.decoder_.getCursor(),r=n-t;this.decoder_.setCursor(t),t=this.decoder_.readByteString(r),goog.asserts.assert(n==this.decoder_.getCursor()),(n=e.internalUnknownFields_)?n.push(t):e.internalUnknownFields_=[t]}},module$exports$jspb$binary$reader.BinaryReader.prototype.readAny=function(e){if(module$contents$jspb$BinaryConstants_FieldTypeToWireType(e)!==this.nextWireType_)return null;var t=module$exports$jspb$BinaryConstants.FieldType;switch(e){case t.DOUBLE:return this.readDouble();case t.FLOAT:return this.readFloat();case t.INT64:return this.readInt64();case t.UINT64:return this.readUint64();case t.INT32:return this.readInt32();case t.FIXED64:return this.readFixed64();case t.FIXED32:return this.readFixed32();case t.BOOL:return this.readBool();case t.STRING:return this.readString();case t.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case t.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case t.BYTES:return this.readBytes();case t.UINT32:return this.readUint32();case t.ENUM:return this.readEnum();case t.SFIXED32:return this.readSfixed32();case t.SFIXED64:return this.readSfixed64();case t.SINT32:return this.readSint32();case t.SINT64:return this.readSint64();default:goog.asserts.fail("Invalid field type in readAny()")}return null},module$exports$jspb$binary$reader.BinaryReader.prototype.readMessage=function(e,t,n,r,i){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.DELIMITED);var a=this.decoder_.getEnd(),o=this.decoder_.readUnsignedVarint32(),s=this.decoder_.getCursor()+o,l=s-a;if(0>=l&&(this.decoder_.setEnd(s),t(e,this,n,r,i),l=s-this.decoder_.getCursor()),l)throw Error("Message parsing ended unexpectedly. Expected to read "+o+" bytes, instead read "+(o-l)+" bytes, either the data ended unexpectedly or the message misreported its own length");return this.decoder_.setCursor(s),this.decoder_.setEnd(a),e},module$exports$jspb$binary$reader.BinaryReader.prototype.readGroup=function(e,t,n){if(goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==e),n(t,this),this.nextWireType_!==module$exports$jspb$BinaryConstants.WireType.END_GROUP)throw Error("Group submessage did n
2ot end with an END_GROUP tag");if(this.nextField_!==e)throw Error("Unmatched end-group tag");return t},module$exports$jspb$binary$reader.BinaryReader.prototype.isMessageSetGroup=function(){return this.getTag()===module$contents$jspb$binary$reader_MESSAGE_SET_START_GROUP_TAG},module$exports$jspb$binary$reader.BinaryReader.prototype.readMessageSetGroup=function(e){goog.asserts.assert(this.isMessageSetGroup());for(var t=0,n=0;this.nextField()&&!this.isEndGroup();)this.getTag()!==module$contents$jspb$binary$reader_MESSAGE_SET_TYPE_ID_TAG||t?this.getTag()!==module$contents$jspb$binary$reader_MESSAGE_SET_MESSAGE_TAG||n?this.skipField():t?(n=-1,this.readMessage(t,e)):(n=this.getFieldCursor(),this.skipDelimitedField()):(t=this.readUint32(),n&&(goog.asserts.assert(0<n),goog.asserts.ENABLE_ASSERTS&&(this.nextTag_=module$exports$jspb$BinaryConstants.INVALID_TAG,this.nextWireType_=module$exports$jspb$BinaryConstants.WireType.INVALID),this.decoder_.setCursor(n),n=0));if(this.getTag()!==module$contents$jspb$binary$reader_MESSAGE_SET_END_TAG||!n||!t)throw Error("Malformed binary bytes for message set")},module$exports$jspb$binary$reader.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},module$exports$jspb$binary$reader.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},module$exports$jspb$binary$reader.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},module$exports$jspb$binary$reader.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},module$exports$jspb$binary$reader.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},module$exports$jspb$binary$reader.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},module$exports$jspb$binary$reader.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},module$exports$jspb$binary$reader.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},module$exports$jspb$binary$reader.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},module$exports$jspb$binary$reader.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},module$exports$jspb$binary$reader.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},module$exports$jspb$binary$reader.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},module$exports$jspb$binary$reader.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},module$exports$jspb$binary$reader.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},module$exports$jspb$binary$reader.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},module$exports$jspb$binary$reader.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},module$exports$jspb$binary$reader.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},module$exports$jspb$binary$reader.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},module$exports$jspb$binary$reader.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readBool()},module$exports$jspb$binary$reader.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},module$exports$jspb$binary$reader.BinaryReader.prototype.readString=function(){if(module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL)return this.readStringRequireUtf8();goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e,!1)},module$exports$jspb$binary$reader.BinaryReader.prototype.readStringRequireUtf8=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e,!0)},module$exports$jspb$binary$reader.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(e)},module$exports$jspb$binary$reader.BinaryReader.prototype.readByteString=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readByteString(e)},module$exports$jspb$binary$reader.BinaryReader.prototype.readSplitVarint64=function(e){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(e)},module$exports$jspb$binary$reader.BinaryReader.prototype.readSplitZigzagVarint64=function(e){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(function(t,n){return module$contents$jspb$utils_fromZigzag64(t,n,e)})},module$exports$jspb$binary$reader.BinaryReader.prototype.readSplitFixed64=function(e){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64
vendor: 61,558 bytes, line 2
2(e)},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackedFieldInto_=function(e,t){var n=this.readPackedFieldLength_();for(n=this.decoder_.getCursor()+n;this.decoder_.getCursor()<n;)t.push(e.call(this.decoder_))},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackedFieldLength_=function(){return goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.decoder_.readUnsignedVarint32()},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableInt32Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSignedVarint32,e):e.push(this.readInt32())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableInt64Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSignedVarint64,e):e.push(this.readInt64())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableInt64StringInto=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readSignedVarint64String,e):e.push(this.readInt64String())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableUint32Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUnsignedVarint32,e):e.push(this.readUint32())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableUint64Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUnsignedVarint64,e):e.push(this.readUint64())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableUint64StringInto=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUnsignedVarint64String,e):e.push(this.readUint64String())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableSint32Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readZigzagVarint32,e):e.push(this.readSint32())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableSint64Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readZigzagVarint64,e):e.push(this.readSint64())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableSint64StringInto=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readZigzagVarint64String,e):e.push(this.readSint64String())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableFixed32Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUint32,e):e.push(this.readFixed32())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableFixed64Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUint64,e):e.push(this.readFixed64())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableFixed64StringInto=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readUint64String,e):e.push(this.readFixed64String())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableSfixed32Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readInt32,e):e.push(this.readSfixed32())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableSfixed64Into=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readInt64,e):e.push(this.readSfixed64())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableSfixed64StringInto=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readInt64String,e):e.push(this.readSfixed64String())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableFloatInto=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readFloat,e):e.push(this.readFloat())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableDoubleInto=function(e){this.isDelimited()?this.decoder_.readDoubleArrayInto(this.readPackedFieldLength_()/8,e):e.push(this.readDouble())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableBoolInto=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readBool,e):e.push(this.readBool())},module$exports$jspb$binary$reader.BinaryReader.prototype.readPackableEnumInto=function(e){this.isDelimited()?this.readPackedFieldInto_(module$exports$jspb$binary$decoder.BinaryDecoder.prototype.readEnum,e):e.push(this.readEnum())},module$exports$jspb$binary$reader.BinaryReader.resetInstanceCache=function(){module$exports$jspb$binary$reader.BinaryReader.instanceCache_=[]},module$exports$jspb$binary$reader.BinaryReader.getInstanceCache=function(){return module$exports$jspb$binary$reader.BinaryReader.instanceCache_},module$exports$jspb$binary$reader.BinaryReader.instanceCache_=[];var module$contents$jspb$arith_uint64Zero,module$contents$jspb$arith_int64Zero,module$contents$jspb$binary$reader_MESSAGE_SET_START_GROUP_TAG=8*module$exports$jspb$BinaryConstants.MESSAGE_SET_GROUP_NUMBER+module$exports$jspb$BinaryConstants.WireType.START_GROUP,module$contents$jspb$binary$reader_MESSAGE_SET_TYPE_ID_TAG=8*module$exports$jspb$BinaryConstants.MESSAGE_SET_TYPE_ID_FIELD_NUMBER+module$exports$jspb$BinaryConstants.WireType.VARINT,module$contents$jspb$binary$reader_MESSAGE_SET_MESSAGE_TAG=8*module$exports$jspb$BinaryConstants.MESSAGE_SET_MESSAGE_FIELD_NUMBER+module$exports$jspb$BinaryConstants.WireType.DELIMITED,module$contents$jspb$binary$reader_MESSAGE_SET_END_TAG=8*module$exports$jspb$BinaryConstants.MESSAGE_SET_GROUP_NUMBER+module$exports$jspb$BinaryConstants.WireType.END_GROUP,module$exports$jspb$arith={UInt64:function(e,t){this.lo=e>>>0,this.hi=t>>>0}};module$exports$jspb$arith.UInt64.prototype.toDecimalString=function(){return module$contents$jspb$utils_joinUnsignedDecimalString(this.lo,this.hi)},module$exports$jspb$arith.UInt64.prototype.negateInTwosComplement=function(){return 0===this.lo?new module$exports$jspb$arith.UInt64(0,1+~this.hi):new module$exports$jspb$arith.UInt64(1+~this.lo,~this.hi)},module$exports$jspb$arith.UInt64.fromString=function(e){return e?/^\d+$/.test(e)?(module$contents$jspb$utils_splitDecimalString(e),new module$exports$jspb$arith.UInt64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)):null:module$exports$jspb$arith.UInt64.getZero()},module$exports$jspb$arith.UInt64.fromNumber=function(e){return new module$exports$jspb$arith.UInt64(0|e,e/0x100000000)},module$exports$jspb$arith.UInt64.getZero=function(){return module$contents$jspb$arith_uint64Zero||(module$contents$jspb$arith_uint64Zero=new module$exports$jspb$arith.UInt64(0,0))},module$exports$jspb$arith.Int64=function(e,t){this.lo=e>>>0,this.hi=t>>>0},module$exports$jspb$arith.Int64.prototype.toDecimalString=function(){return module$contents$jspb$utils_joinSignedDecimalString(this.lo,this.hi)},module$exports$jspb$arith.Int64.fromString=function(e){return e?/^-?\d+$/.test(e)?(module$contents$jspb$utils_splitDecimalString(e),new module$exports$jspb$arith.Int64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)):null:module$exports$jspb$arith.Int64.getZero()},module$exports$jspb$arith.Int64.fromNumber=function(e){return new module$exports$jspb$arith.Int64(0|e,e/0x100000000)},module$exports$jspb$arith.Int64.getZero=function(){return module$contents$jspb$arith_int64Zero||(module$contents$jspb$arith_int64Zero=new module$exports$jspb$arith.Int64(0,0))};var module$exports$jspb$binary$encoder={BinaryEncoder:function(){this.buffer_=[]}};module$exports$jspb$binary$encoder.BinaryEncoder.prototype.length=function(){return this.buffer_.length},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.end=function(){var e=this.buffer_;return this.buffer_=[],e},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeSplitVarint64=function(e,t){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<module$exports$jspb$BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<module$exports$jspb$BinaryConstants.TWO_TO_32);0<t||127<e;)this.buffer_.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.buffer_.push(e)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeSplitFixed64=function(e,t){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<module$exports$jspb$BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<module$exports$jspb$BinaryConstants.TWO_TO_32),this.writeUint32(e),this.writeUint32(t)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeSplitZigzagVarint64=function(e,t){var n=this;module$contents$jspb$utils_toZigzag64(e,t,function(e,t){n.writeSplitVarint64(e>>>0,t>>>0)})},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeUnsignedVarint32=function(e){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<module$exports$jspb$BinaryConstants.TWO_TO_32);127<e;)this.buffer_.push(127&e|128),e>>>=7;this.buffer_.push(e)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeSignedVarint32=function(e){if(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-module$exports$jspb$BinaryConstants.TWO_TO_31&&e<module$exports$jspb$BinaryConstants.TWO_TO_31),0<=e)this.writeUnsignedVarint32(e);else{for(var t=0;9>t;t++)this.buffer_.push(127&e|128),e>>=7;this.buffer_.push(1)}},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeUnsignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<module$exports$jspb$BinaryConstants.TWO_TO_64),module$contents$jspb$utils_splitInt64(e),this.writeSplitVarint64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeSignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-module$exports$jspb$BinaryConstants.TWO_TO_63&&e<module$exports$jspb$BinaryConstants.TWO_TO_63),module$contents$jspb$utils_splitInt64(e),this.writeSplitVarint64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeZigzagVarint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-module$exports$jspb$BinaryConstants.TWO_TO_31&&e<module$exports$jspb$BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((e<<1^e>>31)>>>0)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeZigzagVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-module$exports$jspb$BinaryConstants.TWO_TO_63&&e<module$exports$jspb$BinaryConstants.TWO_TO_63);var t=e;e=0>t,module$contents$jspb$utils_splitUint64(t=2*Math.abs(t)),t=module$contents$jspb$utils_split64Low;var n=module$contents$jspb$utils_split64High;e&&(0==t?0==n?n=t=0xffffffff:(n--,t=0xffffffff):t--),module$contents$jspb$utils_split64Low=t,module$contents$jspb$utils_split64High=n,this.writeSplitVarint64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeZigzagVarint64String=function(e){var t=this;module$contents$jspb$utils_splitDecimalString(e),module$contents$jspb$utils_toZigzag64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High,function(e,n){t.writeSplitVarint64(e>>>0,n>>>0)})},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeUint8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&256>e),this.buffer_.push(e>>>0&255)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeUint16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&65536>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeUint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<module$exports$jspb$BinaryConstants.TWO_TO_32),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeUint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<module$exports$jspb$BinaryConstants.TWO_TO_64),module$contents$jspb$utils_splitUint64(e),this.writeUint32(module$contents$jspb$utils_split64Low),this.writeUint32(module$contents$jspb$utils_split64High)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeInt8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-128<=e&&128>e),this.buffer_.push(e>>>0&255)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeInt16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-32768<=e&&32768>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeInt32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-module$exports$jspb$BinaryConstants.TWO_TO_31&&e<module$exports$jspb$BinaryConstants.TWO_TO_31),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeInt64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-module$exports$jspb$BinaryConstants.TWO_TO_63&&e<module$exports$jspb$BinaryConstants.TWO_TO_63),module$contents$jspb$utils_splitInt64(e),this.writeSplitFixed64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeFloat=function(e){goog.asserts.assert(1/0==e||-1/0==e||isNaN(e)||"number"==typeof e&&e>=-module$exports$jspb$BinaryConstants.FLOAT32_MAX&&e<=module$exports$jspb$BinaryConstants.FLOAT32_MAX);var t=+e;if(0===t)0<1/t?module$contents$jspb$utils_split64Low=module$contents$jspb$utils_split64High=0:(module$contents$jspb$utils_split64High=0,module$contents$jspb$utils_split64Low=0x80000000);else if(isNaN(t))module$contents$jspb$utils_split64High=0,module$contents$jspb$utils_split64Low=0x7fffffff;else if((t=(e=0>t?-0x80000000:0)?-t:t)>module$exports$jspb$BinaryConstants.FLOAT32_MAX)module$contents$jspb$utils_split64High=0,module$contents$jspb$utils_split64Low=(0x7f800000|e)>>>0;else if(t<module$exports$jspb$BinaryConstants.FLOAT32_MIN)module$contents$jspb$utils_split64High=0,module$contents$jspb$utils_split64Low=(e|(t=Math.round(t/1401298464324817e-60)))>>>0;else{var n=Math.floor(Math.log(t)/Math.LN2);t*=Math.pow(2,-n),0x1000000<=(t=Math.round(t*module$exports$jspb$BinaryConstants.TWO_TO_23))&&++n,module$contents$jspb$utils_split64High=0,module$contents$jspb$utils_split64Low=(e|n+127<<23|8388607&t)>>>0}this.writeUint32(module$contents$jspb$utils_split64Low)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeDouble=function(e){goog.asserts.assert("number"==typeof e||"Infinity"===e||"-Infinity"===e||"NaN"===e);var t=+e;if(0===t)module$contents$jspb$utils_split64High=0<1/t?0:0x80000000,module$contents$jspb$utils_split64Low=0;else if(isNaN(t))module$contents$jspb$utils_split64High=0x7fffffff,module$contents$jspb$utils_split64Low=0xffffffff;else if((t=(e=0>t?-0x80000000:0)?-t:t)>module$exports$jspb$BinaryConstants.FLOAT64_MAX)module$contents$jspb$utils_split64High=(0x7ff00000|e)>>>0,module$contents$jspb$utils_split64Low=0;else if(t<module$exports$jspb$BinaryConstants.FLOAT64_MIN){var n=t/5e-324;module$contents$jspb$utils_split64High=(e|n/module$exports$jspb$BinaryConstants.TWO_TO_32)>>>0,module$contents$jspb$utils_split64Low=n>>>0}else{var r=t;if(n=0,2<=r)for(;2<=r&&1023>n;)n++,r/=2;else for(;1>r&&-1022<n;)r*=2,n--;r=(t*=Math.pow(2,-n))*module$exports$jspb$BinaryConstants.TWO_TO_52>>>0,module$contents$jspb$utils_split64High=(e|n+1023<<20|t*module$exports$jspb$BinaryConstants.TWO_TO_20&1048575)>>>0,module$contents$jspb$utils_split64Low=r}this.writeUint32(module$contents$jspb$utils_split64Low),this.writeUint32(module$contents$jspb$utils_split64High)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeBool=function(e){goog.asserts.assert("boolean"==typeof e||"number"==typeof e),this.buffer_.push(+!!e)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeEnum=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-module$exports$jspb$BinaryConstants.TWO_TO_31&&e<module$exports$jspb$BinaryConstants.TWO_TO_31),this.writeSignedVarint32(e)},module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeBytes=function(e){for(;8192<e.length;)Array.prototype.push.apply(this.buffer_,e.subarray(0,8192)),e=e.subarray(8192);Array.prototype.push.apply(this.buffer_,e)};var module$exports$jspb$binary$writer={},module$contents$jspb$binary$writer_REJECT_UNPAIRED_SURROGATES=goog.DEBUG;function module$contents$jspb$binary$writer_assertSignedInteger(e,t){module$contents$jspb$binary$writer_assertThat(e,t,t===Math.floor(t)),module$contents$jspb$binary$writer_assertThat(e,t,t>=-module$exports$jspb$BinaryConstants.TWO_TO_31&&t<module$exports$jspb$BinaryConstants.TWO_TO_31)}function module$contents$jspb$binary$writer_assertSignedInt64(e,t){module$contents$jspb$binary$writer_assertThat(e,t,"string"==typeof t&&module$exports$jspb$arith.Int64.fromString(t)||"number"==typeof t&&t>=-module$exports$jspb$BinaryConstants.TWO_TO_63&&t<module$exports$jspb$BinaryConstants.TWO_TO_63)}function module$contents$jspb$binary$writer_assertUnsignedInt64(e,t){module$contents$jspb$binary$writer_assertThat(e,t,"string"==typeof t&&module$exports$jspb$arith.UInt64.fromString(t)||"number"==typeof t&&0<=t&&t<module$exports$jspb$BinaryConstants.TWO_TO_64)}function module$contents$jspb$binary$writer_assertUnsignedInt64ToleratingNegatives(e,t){module$contents$jspb$binary$writer_assertThat(e,t,"string"==typeof t&&(t.length&&"-"===t[0]?module$exports$jspb$arith.UInt64.fromString(t.substring(1)):module$exports$jspb$arith.UInt64.fromString(t))||"number"==typeof t&&t>=-module$exports$jspb$BinaryConstants.TWO_TO_63&&t<module$exports$jspb$BinaryConstants.TWO_TO_64)}function module$contents$jspb$binary$writer_encodeUnsignedInt64ToleratingNegatives(e,t,n){module$contents$jspb$binary$writer_assertUnsignedInt64ToleratingNegatives(t,n),"number"==typeof n?0>n?(t=module$exports$jspb$arith.UInt64.fromNumber(-n).negateInTwosComplement(),e.writeSplitVarint64(t.lo,t.hi)):e.writeUnsignedVarint64(n):(t=n.length&&"-"===n[0]?module$exports$jspb$arith.UInt64.fromString(n.substring(1)).negateInTwosComplement():module$exports$jspb$arith.UInt64.fromString(n),e.writeSplitVarint64(t.lo,t.hi))}function module$contents$jspb$binary$writer_encodeFixed64ToleratingNegatives(e,t,n){module$contents$jspb$binary$writer_assertUnsignedInt64ToleratingNegatives(t,n),"number"==typeof n?0>n?(t=module$exports$jspb$arith.UInt64.fromNumber(-n).negateInTwosComplement(),e.writeSplitFixed64(t.lo,t.hi)):e.writeUint64(n):(t=n.length&&"-"===n[0]?module$exports$jspb$arith.UInt64.fromString(n.substring(1)).negateInTwosComplement():module$exports$jspb$arith.UInt64.fromString(n),e.writeSplitFixed64(t.lo,t.hi))}function module$contents$jspb$binary$writer_assertThat(e,t,n){n||(0,goog.asserts.fail)("for ["+t+"] at ["+e+"]")}module$exports$jspb$binary$writer.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new module$exports$jspb$binary$encoder.BinaryEncoder},module$exports$jspb$binary$writer.BinaryWriter.prototype.pushBlock=function(e){0!==e.length&&(this.blocks_.push(e),this.totalLength_+=e.length)},module$exports$jspb$binary$writer.BinaryWriter.prototype.appendUint8Array_=function(e){this.pushBlock(this.encoder_.end()),this.pushBlock(e)},module$exports$jspb$binary$writer.BinaryWriter.prototype.beginDelimited_=function(e){return this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),e=this.encoder_.end(),this.pushBlock(e),e.push(this.totalLength_),e},module$exports$jspb$binary$writer.BinaryWriter.prototype.endDelimited_=function(e){var t=e.pop();for(t=this.totalLength_+this.encoder_.length()-t,(0,goog.asserts.assert)(0<=t);127<t;)e.push(127&t|128),t>>>=7,this.totalLength_++;e.push(t),this.totalLength_++},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUnknownFields=function(e){if(e=e.internalUnknownFields_){this.pushBlock(this.encoder_.end());for(var t=0;t<e.length;t++)this.pushBlock(module$contents$jspb$unsafe_bytestring_unsafeUint8ArrayFromByteString(e[t]))}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSerializedMessage=function(e,t,n){this.appendUint8Array_(e.subarray(t,n))},module$exports$jspb$binary$writer.BinaryWriter.prototype.maybeWriteSerializedMessage=function(e,t,n){null!=e&&null!=t&&null!=n&&this.writeSerializedMessage(e,t,n)},module$exports$jspb$binary$writer.BinaryWriter.prototype.getResultBuffer=function(){this.pushBlock(this.encoder_.end());for(var e=new Uint8Array(this.totalLength_),t=this.blocks_,n=t.length,r=0,i=0;i<n;i++){var a=t[i];e.set(a,r),r+=a.length}return(0,goog.asserts.assert)(r==e.length),this.blocks_=[e],e},module$exports$jspb$binary$writer.BinaryWriter.prototype.getResultBase64String=function(e){return(0,goog.crypt.base64.encodeByteArray)(this.getResultBuffer(),e)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFieldHeader_=function(e,t){(0,goog.asserts.assert)(1<=e&&e==Math.floor(e)),this.encoder_.writeUnsignedVarint32(8*e+t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeAny=function(e,t,n){switch(e){case module$exports$jspb$BinaryConstants.FieldType.DOUBLE:this.writeDouble(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.FLOAT:this.writeFloat(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.INT64:this.writeInt64(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.UINT64:this.writeUint64(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.INT32:this.writeInt32(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.FIXED64:this.writeFixed64(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.FIXED32:this.writeFixed32(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.BOOL:this.writeBool(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.STRING:this.writeString(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.GROUP:(0,goog.asserts.fail)("Group field type not supported in writeAny()");break;case module$exports$jspb$BinaryConstants.FieldType.MESSAGE:(0,goog.asserts.fail)("Message field type not supported in writeAny()");break;case module$exports$jspb$BinaryConstants.FieldType.BYTES:this.writeBytes(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.UINT32:this.writeUint32(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.ENUM:this.writeEnum(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.SFIXED32:this.writeSfixed32(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.SFIXED64:this.writeSfixed64(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.SINT32:this.writeSint32(t,n);break;case module$exports$jspb$BinaryConstants.FieldType.SINT64:this.writeSint64(t,n);break;default:(0,goog.asserts.fail)("Invalid field type in writeAny()")}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUnsignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSignedVarint32_=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertSignedInteger(e,t),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUnsignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),"number"==typeof t?this.encoder_.writeUnsignedVarint64(t):(e=module$exports$jspb$arith.UInt64.fromString(t),this.encoder_.writeSplitVarint64(e.lo,e.hi)))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUnsignedVarint64ToleratingNegatives_=function(e,t){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),module$contents$jspb$binary$writer_encodeUnsignedInt64ToleratingNegatives(this.encoder_,e,t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),"number"==typeof t?this.encoder_.writeSignedVarint64(t):(e=module$exports$jspb$arith.Int64.fromString(t),this.encoder_.writeSplitVarint64(e.lo,e.hi)))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeZigzagVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeZigzagVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),"number"==typeof t?this.encoder_.writeZigzagVarint64(t):this.encoder_.writeZigzagVarint64String(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertThat(e,t,t>=-module$exports$jspb$BinaryConstants.TWO_TO_31&&t<module$exports$jspb$BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertSignedInt64(e,t),this.writeSignedVarint64_(e,t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64String=function(e,t){this.writeInt64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertThat(e,t,0<=t&&t<module$exports$jspb$BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertUnsignedInt64(e,t),this.writeUnsignedVarint64_(e,t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64ToleratingNegatives=function(e,t){null!=t&&this.writeUnsignedVarint64ToleratingNegatives_(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64String=function(e,t){this.writeUint64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertThat(e,t,t>=-module$exports$jspb$BinaryConstants.TWO_TO_31&&t<module$exports$jspb$BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(e,t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertSignedInt64(e,t),this.writeZigzagVarint64_(e,t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64String=function(e,t){this.writeSint64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertThat(e,t,0<=t&&t<module$exports$jspb$BinaryConstants.TWO_TO_32),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertUnsignedInt64(e,t),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.FIXED64),"number"==typeof t?this.encoder_.writeUint64(t):(e=module$exports$jspb$arith.UInt64.fromString(t),this.encoder_.writeSplitFixed64(e.lo,e.hi)))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64ToleratingNegatives=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertUnsignedInt64ToleratingNegatives(e,t),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.FIXED64),module$contents$jspb$binary$writer_encodeFixed64ToleratingNegatives(this.encoder_,e,t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64String=function(e,t){this.writeFixed64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertThat(e,t,t>=-module$exports$jspb$BinaryConstants.TWO_TO_31&&t<module$exports$jspb$BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertSignedInt64(e,t),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.FIXED64),"number"==typeof t?this.encoder_.writeInt64(t):(e=module$exports$jspb$arith.Int64.fromString(t),this.encoder_.writeSplitFixed64(e.lo,e.hi)))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64String=function(e,t){this.writeSfixed64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat=function(e,t){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble=function(e,t){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertThat(e,t,"boolean"==typeof t||"number"==typeof t),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),this.encoder_.writeBool(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum=function(e,t){null!=t&&(module$contents$jspb$binary$writer_assertSignedInteger(e,t=parseInt(t,10)),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString=function(e,t){null!=t&&this.writeUint8Array(e,module$contents$jspb$binary$utf8_encodeUtf8(t,module$contents$jspb$binary$writer_REJECT_UNPAIRED_SURROGATES))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes=function(e,t){null!=t&&this.writeUint8Array(e,module$contents$jspb$binary$internal_buffer_bufferFromSource(t).buffer)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint8Array=function(e,t){this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),this.appendUint8Array_(t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeMessage=function(e,t,n){null!=t&&(e=this.beginDelimited_(e),n(t,this),this.endDelimited_(e))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeMessageSet=function(e,t,n){null!=t&&(this.writeFieldHeader_(1,module$exports$jspb$BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,module$exports$jspb$BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e),e=this.beginDelimited_(3),n(t,this),this.endDelimited_(e),this.writeFieldHeader_(1,module$exports$jspb$BinaryConstants.WireType.END_GROUP))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeGroup=function(e,t,n){null!=t&&(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.START_GROUP),n(t,this),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.END_GROUP))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSplitFixed64=function(e,t,n){this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t,n)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSplitVarint64=function(e,t,n){this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t,n)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSplitZigzagVarint64=function(e,t,n){this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.VARINT),this.encoder_.writeSplitZigzagVarint64(t>>>0,n>>>0)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedInt32=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeSignedVarint32_(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedInt64=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeSignedVarint64_(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(e,t,n,r){if(null!=t)for(var i=0;i<t.length;i++)this.writeSplitFixed64(e,n(t[i]),r(t[i]))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(e,t,n,r){if(null!=t)for(var i=0;i<t.length;i++)this.writeSplitVarint64(e,n(t[i]),r(t[i]))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(e,t,n,r){if(null!=t)for(var i=0;i<t.length;i++)this.writeSplitZigzagVarint64(e,n(t[i]),r(t[i]))},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedInt64String=function(e,t){this.writeRepeatedInt64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedUint32=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeUnsignedVarint32_(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedUint64=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeUnsignedVarint64_(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedUint64ToleratingNegatives=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeUnsignedVarint64ToleratingNegatives_(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedUint64String=function(e,t){this.writeRepeatedUint64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSint32=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeZigzagVarint32_(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSint64=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeZigzagVarint64_(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSint64String=function(e,t){this.writeRepeatedSint64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedFixed32=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeFixed32(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedFixed64=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeFixed64(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedFixed64ToleratingNegatives=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeFixed64ToleratingNegatives(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedFixed64String=function(e,t){this.writeRepeatedFixed64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSfixed32=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeSfixed32(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSfixed64=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeSfixed64(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedSfixed64String=function(e,t){this.writeRepeatedSfixed64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedFloat=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeFloat(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedDouble=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeDouble(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedBool=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeBool(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedEnum=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeEnum(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedString=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeString(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedBytes=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.writeBytes(e,t[n])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedMessage=function(e,t,n){if(null!=t)for(var r=0;r<t.length;r++){var i=this.beginDelimited_(e);n(t[r],this),this.endDelimited_(i)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writeRepeatedGroup=function(e,t,n){if(null!=t)for(var r=0;r<t.length;r++)this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.START_GROUP),n(t[r],this),this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.END_GROUP)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedInt32=function(e,t){if(null!=t&&t.length){for(var n=this.beginDelimited_(e),r=0;r<t.length;r++)module$contents$jspb$binary$writer_assertSignedInteger(e,t[r]),this.encoder_.writeSignedVarint32(t[r]);this.endDelimited_(n)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedInt32String=function(e,t){if(null!=t&&t.length){for(var n=this.beginDelimited_(e),r=0;r<t.length;r++){var i=parseInt(t[r],10);module$contents$jspb$binary$writer_assertSignedInteger(e,i),this.encoder_.writeSignedVarint32(i)}this.endDelimited_(n)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedInt64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++){var r=t[n];"number"==typeof r?this.encoder_.writeSignedVarint64(r):(r=module$exports$jspb$arith.Int64.fromString(r),this.encoder_.writeSplitVarint64(r.lo,r.hi))}this.endDelimited_(e)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSplitFixed64=function(e,t,n,r){if(null!=t){e=this.beginDelimited_(e);for(var i=0;i<t.length;i++)this.encoder_.writeSplitFixed64(n(t[i]),r(t[i]));this.endDelimited_(e)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSplitVarint64=function(e,t,n,r){if(null!=t){e=this.beginDelimited_(e);for(var i=0;i<t.length;i++)this.encoder_.writeSplitVarint64(n(t[i]),r(t[i]));this.endDelimited_(e)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(e,t,n,r){if(null!=t){e=this.beginDelimited_(e);for(var i=this.encoder_,a=0;a<t.length;a++)i.writeSplitZigzagVarint64(n(t[a]),r(t[a]));this.endDelimited_(e)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedInt64String=function(e,t){this.writePackedInt64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedUint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++)this.encoder_.writeUnsignedVarint32(t[n]);this.endDelimited_(e)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedUint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++){var r=t[n];"number"==typeof r?this.encoder_.writeUnsignedVarint64(r):(r=module$exports$jspb$arith.UInt64.fromString(r),this.encoder_.writeSplitVarint64(r.lo,r.hi))}this.endDelimited_(e)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedUint64ToleratingNegatives=function(e,t){if(null!=t&&t.length){for(var n=this.beginDelimited_(e),r=0;r<t.length;r++)module$contents$jspb$binary$writer_encodeUnsignedInt64ToleratingNegatives(this.encoder_,e,t[r]);this.endDelimited_(n)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedUint64String=function(e,t){this.writePackedUint64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++)this.encoder_.writeZigzagVarint32(t[n]);this.endDelimited_(e)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++){var r=t[n];"number"==typeof r?this.encoder_.writeZigzagVarint64(r):this.encoder_.writeZigzagVarint64String(r)}this.endDelimited_(e)}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSint64String=function(e,t){this.writePackedSint64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedFixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeUint32(t[e])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedFixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var n=t[e];"number"==typeof n?this.encoder_.writeUint64(n):(n=module$exports$jspb$arith.UInt64.fromString(n),this.encoder_.writeSplitFixed64(n.lo,n.hi))}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedFixed64ToleratingNegatives=function(e,t){if(null!=t&&t.length){this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length);for(var n=0;n<t.length;n++)module$contents$jspb$binary$writer_encodeFixed64ToleratingNegatives(this.encoder_,e,t[n])}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedFixed64String=function(e,t){this.writePackedFixed64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSfixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeInt32(t[e])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSfixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var n=t[e];"number"==typeof n?this.encoder_.writeInt64(n):(n=module$exports$jspb$arith.Int64.fromString(n),this.encoder_.writeSplitFixed64(n.lo,n.hi))}},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedSfixed64String=function(e,t){this.writePackedSfixed64(e,t)},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedFloat=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeFloat(t[e])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedDouble=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeDouble(t[e])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedBool=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,module$exports$jspb$BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),e=0;e<t.length;e++)this.encoder_.writeBool(t[e])},module$exports$jspb$binary$writer.BinaryWriter.prototype.writePackedEnum=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++)this.encoder_.writeEnum(t[n]);this.endDelimited_(e)}};var module$exports$jspb$mutable_message={},module$contents$jspb$mutable_message_MutableMessageImpl=function(){module$exports$jspb.Message.apply(this,arguments)};if($jscomp.inherits(module$contents$jspb$mutable_message_MutableMessageImpl,module$exports$jspb.Message),module$contents$jspb$mutable_message_MutableMessageImpl.prototype.getExtensionOrUndefined=function(e){return module$exports$jspb.Message.prototype.getExtensionOrUndefined.call(this,e)},module$contents$jspb$mutable_message_MutableMessageImpl.prototype.setExtension=function(e,t){return module$exports$jspb.Message.prototype.setExtension.call(this,e,t)},module$contents$jspb$mutable_message_MutableMessageImpl.prototype.toImmutable=function(e){return module$exports$jspb.Message.prototype.toImmutable.call(this,e)},module$contents$jspb$mutable_message_MutableMessageImpl.prototype.toMutable=function(e){return module$exports$jspb.Message.prototype.toMutable.call(this,e)},module$contents$jspb$mutable_message_MutableMessageImpl.equals=function(){throw Error("Call equals directly on the Message class, not a subclass")},module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE&&module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY){var rejectInstanceof$41=function(){throw Error(goog.DEBUG?"Cannot perform instanceof checks for MutableMessage. Please use .isMutable or .isImmutable to determine whether a message is mutable. See go/jspb-api-gotchas#immutable-classes for more information":void 0)},$jscomp$compprop3={};Object.defineProperties(module$contents$jspb$mutable_message_MutableMessageImpl,($jscomp$compprop3[Symbol.hasInstance]=module$contents$jspb$internal_invisiblePropValue(rejectInstanceof$41),$jscomp$compprop3)),(0,goog.asserts.assert)(module$contents$jspb$mutable_message_MutableMessageImpl[Symbol.hasInstance]===rejectInstanceof$41,"defineProperties did not work: was it monkey-patched?")}function module$contents$jspb$internal$binary_newBinaryExtension(e,t,n,r,i,a){return{fieldInfo:e,readerWriterSelector:t,binaryFieldsInitializer:n,messageSetReaderFn:r,messageSetExtensions:i,messageSetWriterFn:a}}function module$contents$jspb$internal$binary_serializeBinaryExtensionsAndUnknownFields(e,t,n){if(n){var r,i={};for(r in n){if(module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(n,r)){var a=n[r],o=a.writerFn;o||(i.$jscomp$loop$prop$baseWriterFn$62=a.messageSetWriterFn||a.readerWriterSelector.writer,a.binaryFieldsInitializer?(i.$jscomp$loop$prop$writerCallback$61=module$contents$jspb$internal$binary_makeSerializeBinaryToWriterFromBinaryFields(a.binaryFieldsInitializer),o=function(e){return function(t,n,r){return e.$jscomp$loop$prop$baseWriterFn$62(t,n,r,e.$jscomp$loop$prop$writerCallback$61)}}(i)):a.messageSetExtensions?(o=(0,goog.asserts.assert)(a.messageSetExtensions),i.$jscomp$loop$prop$writerCallback$42$63=module$contents$jspb$internal$binary_makeSerializeBinaryToWriterForMessageSet((0,goog.asserts.assert)(a.fieldInfo.ctor),o),o=function(e){return function(t,n,r){return e.$jscomp$loop$prop$baseWriterFn$62(t,n,r,e.$jscomp$loop$prop$writerCallback$42$63)}}(i)):o=i.$jscomp$loop$prop$baseWriterFn$62,a.writerFn=o),o(t,e,a.fieldInfo)}i={$jscomp$loop$prop$baseWriterFn$62:i.$jscomp$loop$prop$baseWriterFn$62,$jscomp$loop$prop$writerCallback$61:i.$jscomp$loop$prop$writerCallback$61,$jscomp$loop$prop$writerCallback$42$63:i.$jscomp$loop$prop$writerCallback$42$63}}}t.writeUnknownFields(e)}module$exports$jspb$mutable_message.MutableMessage=module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY?module$contents$jspb$mutable_message_MutableMessageImpl:module$exports$jspb.Message,jspb.internal.binary={},jspb.internal.binary.createBinaryExtension=function(e,t,n,r){return module$contents$jspb$internal$binary_newBinaryExtension(e,t,n,void 0,void 0,r)},jspb.internal.binary.createBinaryMessageSetExtension=function(e,t,n,r){return module$contents$jspb$internal$binary_newBinaryExtension(e,t,void 0,module$contents$jspb$internal$binary_readBinaryExtensionMessageSet,n,r)},jspb.internal.binary.writeMessageSetExt=function(e,t,n,r){e.writeMessageSet(n.fieldIndex,t.getExtension(n),r)};var module$contents$jspb$internal$binary_readBinaryExtensionMessageSet=function(e,t,n){(0,goog.asserts.assertInstanceof)(e,module$exports$jspb.Message);var r=e.constructor,i=r[module$contents$jspb$internal$binary_deserializerFnCache]||(r[module$contents$jspb$internal$binary_deserializerFnCache]={});for(r={};t.nextField()&&!t.isEndGroup();){if(t.isMessageSetGroup()){var a=t.getFieldCursor();r.$jscomp$loop$prop$unknown$65=!1,t.readMessageSetGroup(function(t){return function(r,a){var o=i[r];if(!o){var s=n[r];if(s){var l=s.fieldInfo,u=module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromBinaryExtension(s);u&&(o=i[r]=function(e,t){e=(0,jspb.internal.jspb_adapters.getMutableWrapperField)(e,(0,goog.asserts.assert)(l.ctor),l.fieldIndex,!0),(0,goog.asserts.assert)(u)(e,t)})}}o?o(e,a):(t.$jscomp$loop$prop$unknown$65=!0,a.skipToEnd())}}(r)),r.$jscomp$loop$prop$unknown$65&&t.addUnknownFieldsStartingFrom(e,a)}else t.handleUnknownField(e);r={$jscomp$loop$prop$unknown$65:r.$jscomp$loop$prop$unknown$65}}return e};function module$contents$jspb$internal$binary_writeMap(e,t,n,r,i,a){(e=(0,jspb.internal.jspb_adapters.getMapField)(e,t,!0))&&e.forEach(function(e,t){r.writeMessage(n,e,function(n,r){i.call(r,1,t),a.call(r,2,e)})})}function module$contents$jspb$internal$binary_writeMessageMap(e,t,n,r,i,a,o){(e=(0,jspb.internal.jspb_adapters.getMapField)(e,t,!0,n))&&e.forEach(function(e,t){i.writeMessage(r,e,function(n,r){a.call(r,1,t),r.writeMessage(2,e,o)})})}jspb.internal.binary.readBinaryExtensionMessageSet=module$contents$jspb$internal$binary_readBinaryExtensionMessageSet;var module$contents$jspb$internal$binary_primitiveMapEntry,module$contents$jspb$internal$binary_MapEntry=function(){module$exports$jspb$mutable_message.MutableMessage.apply(this,arguments)};function module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,i,a,o){if(e.getWireType()!==module$exports$jspb$BinaryConstants.WireType.DELIMITED)return!1;var s=new module$contents$jspb$internal$binary_MapEntry(void 0);return e.readMessage(s,module$contents$jspb$internal$binary_readOneMessageMapEntry,r,i,o),s.applyToMessageValuedMap((0,goog.asserts.assert)((0,jspb.internal.jspb_adapters.getMapField)(t,n,!1,r)),a,r),!0}function module$contents$jspb$internal$binary_readOneMessageMapEntry(e,t,n,r,i){for(;t.nextField();){var a=t.getFieldNumber();if(1===a){if(r(t,e,1))continue}else if(2===a&&module$contents$jspb$internal$binary_readMessage(t,e,2,n,i))continue;t.skipField()}}function module$contents$jspb$internal$binary_readMapEntry(e,t,n,r,i,a,o){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(void 0===module$contents$jspb$internal$binary_primitiveMapEntry?module$contents$jspb$internal$binary_primitiveMapEntry=new module$contents$jspb$internal$binary_MapEntry(void 0):module$contents$jspb_clearMessage(module$contents$jspb$internal$binary_primitiveMapEntry),e.readMessage(module$contents$jspb$internal$binary_primitiveMapEntry,module$contents$jspb$internal$binary_readOneMapEntry,r,i),e=(0,goog.asserts.assert)((0,jspb.internal.jspb_adapters.getMapField)(t,n,!1)),module$contents$jspb$internal$binary_primitiveMapEntry.applyToMap(e,a,o),!0)}function module$contents$jspb$internal$binary_readOneMapEntry(e,t,n,r){for(;t.nextField();){var i=t.getFieldNumber();if(1===i){if(n(t,e,1))continue}else if(2===i&&r(t,e,2))continue;t.skipField()}}$jscomp.inherits(module$contents$jspb$internal$binary_MapEntry,module$exports$jspb$mutable_message.MutableMessage),module$contents$jspb$internal$binary_MapEntry.prototype.applyToMap=function(e,t,n){e.set((0,jspb.internal.jspb_adapters.getFieldWithDefault)(this,1,t),(0,jspb.internal.jspb_adapters.getFieldWithDefault)(this,2,n))},module$contents$jspb$internal$binary_MapEntry.prototype.applyToMessageValuedMap=function(e,t,n){e.set((0,jspb.internal.jspb_adapters.getFieldWithDefault)(this,1,t),(0,jspb.internal.jspb_adapters.getWrapperFieldOrUndefined)(this,n,2)||new n)},goog.asserts.ENABLE_ASSERTS&&(module$contents$jspb$internal$binary_MapEntry.prototype[module$exports$jspb$internal.EXEMPTED_SUBCLASS_MARKER]=!0);var module$contents$jspb$internal$binary_deserializeBinaryFromReaderCache=goog.DEBUG?Symbol("deserializeBinaryFromReaderCache"):Symbol();function module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromMessageSetAndReader(e,t,n){return(0,goog.asserts.assertFunction)(t),(0,goog.asserts.assertObject)(n),e[module$contents$jspb$internal$binary_deserializeBinaryFromReaderCache]||(e[module$contents$jspb$internal$binary_deserializeBinaryFromReaderCache]=function(e,r){return t(e,r,n)})}function module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromBinaryFields(e){var t=e[module$contents$jspb$internal$binary_deserializeBinaryFromReaderCache];if(!t){var n=module$contents$jspb$internal$binary_getDeserializers(e);t=function(e,t){return module$contents$jspb$internal$binary_deserializeBinaryFromReaderGenericImpl(e,t,n)},e[module$contents$jspb$internal$binary_deserializeBinaryFromReaderCache]=t}return t}function module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromBinaryExtension(e){var t=e.binaryFieldsInitializer;if(t)return module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromBinaryFields(t);if(t=e.messageSetReaderFn){goog.DEBUG&&delete e.messageSetReaderFn;var n=(0,goog.asserts.assert)(e.messageSetExtensions);return module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromMessageSetAndReader((0,goog.asserts.assert)(e.fieldInfo.ctor),t,n)}}function module$contents$jspb$internal$binary_makeParserFromBinaryExtension(e){var t=module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromBinaryExtension(e),n=e.fieldInfo,r=e.readerWriterSelector.reader;return t?function(e,i){return r(e,i,n,t)}:function(e,t){return r(e,t,n)}}function module$contents$jspb$internal$binary_asBinaryFields(e,t){var n=e[t];return"function"==typeof n&&0===n.length&&(n=n(),e[t]=n),Array.isArray(n)&&(module$contents$jspb$internal$binary_deserializerFnCache in n||module$contents$jspb$internal$binary_serializerFnCache in n||0<n.length&&"function"==typeof n[0])?n:void 0}function module$contents$jspb$internal$binary_processBinaryFields(e,t,n,r,i,a){(0,goog.asserts.assertArray)(e),t.ctor=(0,goog.asserts.assertFunction)(e[0]);var o=1;if(e.length>o&&"number"!=typeof e[o]){var s=(0,goog.asserts.assertObject)(e[o++]);(0,goog.asserts.assert)(s.constructor===Object),n(t,s)}for(;o<e.length;){for(n=(0,goog.asserts.assertNumber)(e[o++]),s=o+1;s<e.length&&"number"!=typeof e[s];)s++;var l=(0,goog.asserts.assertObject)(e[o++]),u=s-o;switch((0,goog.asserts.assert)(0<=u),u){case 0:r(t,n,l);break;case 1:(u=module$contents$jspb$internal$binary_asBinaryFields(e,o))?(o++,i(t,n,l,u)):r(t,n,l,(0,goog.asserts.assertArray)(e[o++]));break;case 2:u=o++,i(t,n,l,u=(0,goog.asserts.assert)(module$contents$jspb$internal$binary_asBinaryFields(e,u)),(0,goog.asserts.assertArray)(e[o++]));break;case 3:a(t,n,l,(0,goog.asserts.assertFunction)(e[o++]),(0,goog.asserts.assertFunction)(e[o++]),(0,goog.asserts.assertObject)(e[o++]));break;case 4:a(t,n,l,(0,goog.asserts.assertFunction)(e[o++]),(0,goog.asserts.assertFunction)(e[o++]),(0,goog.asserts.assertObject)(e[o++]),(0,goog.asserts.assertArray)(e[o++]));break;default:throw Error("unexpected number of binary field arguments: "+u)}(0,goog.asserts.assert)(o==s)}return t}var module$contents$jspb$internal$binary_serializeBinaryToWriterCache=goog.DEBUG?Symbol("serializeBinaryToWriterCache"):Symbol();function module$contents$jspb$internal$binary_makeSerializeBinaryToWriterFromBinaryFields(e){var t=e[module$contents$jspb$internal$binary_serializeBinaryToWriterCache];if(!t){var n=module$contents$jspb$internal$binary_getSerializers(e);t=function(e,t){return module$contents$jspb$internal$binary_serializeBinaryToWriterGenericImpl(e,t,n)},e[module$contents$jspb$internal$binary_serializeBinaryToWriterCache]=t}return t}function module$contents$jspb$internal$binary_makeSerializeBinaryToWriterForMessageSet(e,t){(0,goog.asserts.assertObject)(t);var n=e[module$contents$jspb$internal$binary_serializeBinaryToWriterCache];return n||(n=function(e,n){return module$contents$jspb$internal$binary_serializeBinaryExtensionsAndUnknownFields(e,n,t)},e[module$contents$jspb$internal$binary_serializeBinaryToWriterCache]=n),n}var module$contents$jspb$internal$binary_serializerFnCache=goog.DEBUG?Symbol("serializerFnCache"):Symbol();function module$contents$jspb$internal$binary_serializersExtensionCallback(e,t){(0,goog.asserts.assert)(0===e.length),e.push(t)}function module$contents$jspb$internal$binary_serializersPrimitiveCallback(e,t,n){e.push(t,n.writer)}function module$contents$jspb$internal$binary_serializersMessageCallback(e,t,n,r){var i=module$contents$jspb$internal$binary_makeSerializeBinaryToWriterFromBinaryFields(r),a=module$contents$jspb$internal$binary_getSerializers(r).ctor,o=n.writer;e.push(t,function(e,t,n){return o(e,t,n,a,i)})}function module$contents$jspb$internal$binary_serializersMessageSetCallback(e,t,n,r,i,a){var o=module$contents$jspb$internal$binary_makeSerializeBinaryToWriterForMessageSet(r,a),s=n.writer;e.push(t,function(e,t,n){return s(e,t,n,r,o)})}function module$contents$jspb$internal$binary_getSerializers(e){var t=e[module$contents$jspb$internal$binary_serializerFnCache];return t||(t=module$contents$jspb$internal$binary_processBinaryFields(e,e[module$contents$jspb$internal$binary_serializerFnCache]=[],module$contents$jspb$internal$binary_serializersExtensionCallback,module$contents$jspb$internal$binary_serializersPrimitiveCallback,module$contents$jspb$internal$binary_serializersMessageCallback,module$contents$jspb$internal$binary_serializersMessageSetCallback),module$contents$jspb$internal$binary_deserializerFnCache in e&&module$contents$jspb$internal$binary_serializerFnCache in e&&(e.length=0),t)}var module$contents$jspb$internal$binary_deserializerFnCache=goog.DEBUG?Symbol("deserializerFnCache"):Symbol();function module$contents$jspb$internal$binary_deserializersExtensionCallback(e,t){e[0]=t}function module$contents$jspb$internal$binary_deserializersPrimitiveCallback(e,t,n,r){var i=n.reader;e[t]=r?function(e,t,n){return i(e,t,n,r)}:i}function module$contents$jspb$internal$binary_deserializersMessageCallback(e,t,n,r,i){var a=n.reader,o=module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromBinaryFields(r),s=module$contents$jspb$internal$binary_getDeserializers(r).ctor;e[t]=function(e,t,n){return a(e,t,n,s,o,i)}}function module$contents$jspb$internal$binary_deserializersMessageSetCallback(e,t,n,r,i,a,o){var s=n.reader,l=module$contents$jspb$internal$binary_makeDeserializeBinaryFromReaderFromMessageSetAndReader(r,i,a);e[t]=function(e,t,n){return s(e,t,n,r,l,o)}}function module$contents$jspb$internal$binary_getDeserializers(e){var t=e[module$contents$jspb$internal$binary_deserializerFnCache];return t||(t=module$contents$jspb$internal$binary_processBinaryFields(e,e[module$contents$jspb$internal$binary_deserializerFnCache]={},module$contents$jspb$internal$binary_deserializersExtensionCallback,module$contents$jspb$internal$binary_deserializersPrimitiveCallback,module$contents$jspb$internal$binary_deserializersMessageCallback,module$contents$jspb$internal$binary_deserializersMessageSetCallback),module$contents$jspb$internal$binary_deserializerFnCache in e&&module$contents$jspb$internal$binary_serializerFnCache in e&&(e.length=0),t)}function module$contents$jspb$internal$binary_deserializeBinaryFromReaderGenericImpl(e,t,n){for((0,goog.asserts.assertInstanceof)(e,n.ctor);t.nextField()&&!t.isEndGroup();){var r=t.getFieldNumber(),i=n[r];if(!i){var a=n[0];a&&(a=a[r])&&(i=n[r]=module$contents$jspb$internal$binary_makeParserFromBinaryExtension(a))}i&&i(t,e,r)||t.handleUnknownField(e)}return e}function module$contents$jspb$internal$binary_serializeBinaryToWriterGenericImpl(e,t,n){for(var r=n.length,i=1==r%2,a=+!!i;a<r;a+=2){var o=(0,goog.asserts.assertNumber)(n[a]);(0,goog.asserts.assertFunction)(n[a+1])(t,e,o)}module$contents$jspb$internal$binary_serializeBinaryExtensionsAndUnknownFields(e,t,i?(0,goog.asserts.assertObject)(n[0]):void 0)}function module$contents$jspb$internal$binary_makeRWPair(e,t){return{reader:e,writer:t}}function module$contents$jspb$internal$binary_writeDouble(e,t,n){e.writeDouble(n,(0,jspb.internal.jspb_adapters.getFloatingPointFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeFloat(e,t,n){e.writeFloat(n,(0,jspb.internal.jspb_adapters.getFloatingPointFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeInt64Ext(e,t,n){e.writeInt64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeRepeatedInt64Ext(e,t,n){e.writeRepeatedInt64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writePackedInt64Ext(e,t,n){e.writePackedInt64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeInt64(e,t,n){e.writeInt64(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeRepeatedInt64(e,t,n){e.writeRepeatedInt64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writePackedInt64(e,t,n){e.writePackedInt64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writeUint64ExtToleratingNegatives(e,t,n
2){e.writeUint64ToleratingNegatives(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeRepeatedUint64ExtToleratingNegatives(e,t,n){e.writeRepeatedUint64ToleratingNegatives(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writePackedUint64ExtToleratingNegatives(e,t,n){e.writePackedUint64ToleratingNegatives(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeUint64Ext(e,t,n){e.writeUint64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeRepeatedUint64Ext(e,t,n){e.writeRepeatedUint64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writePackedUint64Ext(e,t,n){e.writePackedUint64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeUint64ToleratingNegatives(e,t,n){e.writeUint64ToleratingNegatives(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeRepeatedUint64ToleratingNegatives(e,t,n){e.writeRepeatedUint64ToleratingNegatives(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writePackedUint64ToleratingNegatives(e,t,n){e.writePackedUint64ToleratingNegatives(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writeUint64(e,t,n){e.writeUint64(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeRepeatedUint64(e,t,n){e.writeRepeatedUint64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writePackedUint64(e,t,n){e.writePackedUint64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writeInt32(e,t,n){e.writeInt32(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeFixed64ExtToleratingNegatives(e,t,n){e.writeFixed64ToleratingNegatives(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeRepeatedFixed64ExtToleratingNegatives(e,t,n){e.writeRepeatedFixed64ToleratingNegatives(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writePackedFixed64ExtToleratingNegatives(e,t,n){e.writePackedFixed64ToleratingNegatives(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeFixed64Ext(e,t,n){e.writeFixed64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeRepeatedFixed64Ext(e,t,n){e.writeRepeatedFixed64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writePackedFixed64Ext(e,t,n){e.writePackedFixed64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeFixed64ToleratingNegatives(e,t,n){e.writeFixed64ToleratingNegatives(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeRepeatedFixed64ToleratingNegatives(e,t,n){e.writeRepeatedFixed64ToleratingNegatives(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writePackedFixed64ToleratingNegatives(e,t,n){e.writePackedFixed64ToleratingNegatives(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writeFixed64(e,t,n){e.writeFixed64(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeRepeatedFixed64(e,t,n){e.writeRepeatedFixed64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writePackedFixed64(e,t,n){e.writePackedFixed64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writeFixed32(e,t,n){e.writeFixed32(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeBool(e,t,n){e.writeBool(n,(0,jspb.internal.jspb_adapters.getBooleanFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeStringExt(e,t,n){e.writeString(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeRepeatedStringExt(e,t,n){e.writeRepeatedString(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeString(e,t,n){e.writeString(n,(0,jspb.internal.jspb_adapters.getStringFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeRepeatedString(e,t,n){e.writeRepeatedString(n,(0,jspb.internal.jspb_adapters.getRepeatedStringField)(t,n))}function module$contents$jspb$internal$binary_writeGroup(e,t,n,r,i){e.writeGroup(n,(0,jspb.internal.jspb_adapters.getWrapperFieldOrUndefined)(t,r,n),i)}function module$contents$jspb$internal$binary_writeMessage(e,t,n,r,i){e.writeMessage(n,(0,jspb.internal.jspb_adapters.getWrapperFieldOrUndefined)(t,r,n),i
vendor: 15,059 bytes, line 2
2)}function module$contents$jspb$internal$binary_writeBytes(e,t,n){e.writeBytes(n,(0,jspb.internal.jspb_adapters.getBytesFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeUint32(e,t,n){e.writeUint32(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeEnum(e,t,n){e.writeEnum(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeSfixed32(e,t,n){e.writeSfixed32(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeSfixed64Ext(e,t,n){e.writeSfixed64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeRepeatedSfixed64Ext(e,t,n){e.writeRepeatedSfixed64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writePackedSfixed64Ext(e,t,n){e.writePackedSfixed64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeSfixed64(e,t,n){e.writeSfixed64(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeRepeatedSfixed64(e,t,n){e.writeRepeatedSfixed64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writePackedSfixed64(e,t,n){e.writePackedSfixed64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writeSint32(e,t,n){e.writeSint32(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeSint64Ext(e,t,n){e.writeSint64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeRepeatedSint64Ext(e,t,n){e.writeRepeatedSint64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writePackedSint64Ext(e,t,n){e.writePackedSint64(n.fieldIndex,t.getExtension(n))}function module$contents$jspb$internal$binary_writeSint64(e,t,n){e.writeSint64(n,(0,jspb.internal.jspb_adapters.getFieldNullable)(t,n))}function module$contents$jspb$internal$binary_writeRepeatedSint64(e,t,n){e.writeRepeatedSint64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_writePackedSint64(e,t,n){e.writePackedSint64(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}function module$contents$jspb$internal$binary_readPackableDoubleIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableDoubleInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readDouble(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readDouble()),!0)}function module$contents$jspb$internal$binary_readPackableDoubleInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableDoubleInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readPackableFloatIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableFloatInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readFloat(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readFloat()),!0)}function module$contents$jspb$internal$binary_readPackableFloatInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableFloatInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readPackableInt64StringIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableInt64StringInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readPackableInt64IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableInt64Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readPackableInt64StringInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableInt64StringInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readInt64(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readInt64()),!0)}function module$contents$jspb$internal$binary_readPackableInt64Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableInt64Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readUint64StringExt(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readUint64String()),!0)}function module$contents$jspb$internal$binary_readPackableUint64StringIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableUint64StringInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readUint64Ext(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readUint64()),!0)}function module$contents$jspb$internal$binary_readPackableUint64IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableUint64Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readUint64String(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readUint64String()),!0)}function module$contents$jspb$internal$binary_readPackableUint64StringInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableUint64StringInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readUint64StringIgnoringDefault(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Uint64StringField)(t,n,e.readUint64String()),!0)}function module$contents$jspb$internal$binary_readUint64StringOneof(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readUint64String()),!0)}function module$contents$jspb$internal$binary_readUint64(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readUint64()),!0)}function module$contents$jspb$internal$binary_readPackableUint64Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableUint64Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readUint64IgnoringDefault(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Uint64Field)(t,n,e.readUint64()),!0)}function module$contents$jspb$internal$binary_readUint64Oneof(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readUint64()),!0)}function module$contents$jspb$internal$binary_readPackableInt32IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableInt32Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readInt32(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readInt32()),!0)}function module$contents$jspb$internal$binary_readPackableInt32Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableInt32Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readFixed64StringExt(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&(t.setExtension(n,e.readFixed64String()),!0)}function module$contents$jspb$internal$binary_readPackableFixed64StringIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableFixed64StringInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readFixed64Ext(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&(t.setExtension(n,e.readFixed64()),!0)}function module$contents$jspb$internal$binary_readPackableFixed64IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableFixed64Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readFixed64String(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readFixed64String()),!0)}function module$contents$jspb$internal$binary_readPackableFixed64StringInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableFixed64StringInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readFixed64StringIgnoringDefault(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setProto3Uint64StringField)(t,n,e.readFixed64String()),!0)}function module$contents$jspb$internal$binary_readFixed64StringOneof(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readFixed64String()),!0)}function module$contents$jspb$internal$binary_readFixed64(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readFixed64()),!0)}function module$contents$jspb$internal$binary_readPackableFixed64Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableFixed64Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readFixed64IgnoringDefault(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setProto3Uint64Field)(t,n,e.readFixed64()),!0)}function module$contents$jspb$internal$binary_readFixed64Oneof(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readFixed64()),!0)}function module$contents$jspb$internal$binary_readPackableFixed32IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableFixed32Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readFixed32(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readFixed32()),!0)}function module$contents$jspb$internal$binary_readPackableFixed32Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableFixed32Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readPackableBoolIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableBoolInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readBool(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readBool()),!0)}function module$contents$jspb$internal$binary_readPackableBoolInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableBoolInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readStringRequireUtf8(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readStringRequireUtf8()),!0)}function module$contents$jspb$internal$binary_readStringExt(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(t.setExtension(n,e.readString()),!0)}function module$contents$jspb$internal$binary_readRepeatedStringExt(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(t.getExtension(n).push(e.readString()),!0)}function module$contents$jspb$internal$binary_readString(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readString()),!0)}function module$contents$jspb$internal$binary_readRepeatedString(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.addToRepeatedStringField)(t,n,e.readString()),!0)}function module$contents$jspb$internal$binary_readStringOneof(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readString()),!0)}function module$contents$jspb$internal$binary_readMessage(e,t,n,r,
2i){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(e.readMessage((0,jspb.internal.jspb_adapters.getMutableWrapperField)(t,r,n),i
vendor: 10,375 bytes, line 2
2),!0)}function module$contents$jspb$internal$binary_readBytes(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readByteString()),!0)}function module$contents$jspb$internal$binary_readPackableUint32IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableUint32Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readUint32(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readUint32()),!0)}function module$contents$jspb$internal$binary_readPackableUint32Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableUint32Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readPackableEnumIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableEnumInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readEnum(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readEnum()),!0)}function module$contents$jspb$internal$binary_readPackableEnumInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableEnumInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readPackableSfixed32IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSfixed32Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readSfixed32(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readSfixed32()),!0)}function module$contents$jspb$internal$binary_readPackableSfixed32Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSfixed32Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readPackableSfixed64StringIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSfixed64StringInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readPackableSfixed64IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSfixed64Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readPackableSfixed64StringInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSfixed64StringInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readSfixed64(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readSfixed64()),!0)}function module$contents$jspb$internal$binary_readPackableSfixed64Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSfixed64Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readPackableSint32IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSint32Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readSint32(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readSint32()),!0)}function module$contents$jspb$internal$binary_readPackableSint32Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSint32Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readPackableSint64StringIntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSint64StringInto(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readPackableSint64IntoExt(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSint64Into(t.getExtension(n)),!0)}function module$contents$jspb$internal$binary_readPackableSint64StringInto(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSint64StringInto((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_readSint64(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readSint64()),!0)}function module$contents$jspb$internal$binary_readPackableSint64Into(e,t,n){return(e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT||e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED)&&(e.readPackableSint64Into((0,jspb.internal.jspb_adapters.getRepeatedField)(t,n)),!0)}function module$contents$jspb$internal$binary_writeInt64StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeUint64StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeInt32StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeFixed64StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeFixed32StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeBoolStringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeStringDoubleMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}function module$contents$jspb$internal$binary_writeStringFloatMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}function module$contents$jspb$internal$binary_writeStringInt64Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}function module$contents$jspb$internal$binary_writeStringUint64Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}function module$contents$jspb$internal$binary_writeStringInt32Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}function module$contents$jspb$internal$binary_writeStringFixed64Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}function module$contents$jspb$internal$binary_writeStringFixed32Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}function module$contents$jspb$internal$binary_writeStringBoolMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}function module$contents$jspb$internal$binary_writeStringStringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeStringMessageMap(e,t,n,r,
2i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,i
vendor: 5,429 bytes, line 2
2)}function module$contents$jspb$internal$binary_writeStringBytesMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}function module$contents$jspb$internal$binary_writeStringUint32Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}function module$contents$jspb$internal$binary_writeStringEnumMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}function module$contents$jspb$internal$binary_writeStringSfixed32Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}function module$contents$jspb$internal$binary_writeStringSfixed64Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}function module$contents$jspb$internal$binary_writeStringSint32Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}function module$contents$jspb$internal$binary_writeStringSint64Map(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}function module$contents$jspb$internal$binary_writeUint32StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeSfixed32StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeSfixed64StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeSint32StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_writeSint64StringMap(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeString)}function module$contents$jspb$internal$binary_readStringDoubleMap(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readDouble,"",0)}function module$contents$jspb$internal$binary_readStringFloatMap(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readFloat,"",0)}function module$contents$jspb$internal$binary_readStringInt64Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readInt64,"",0)}function module$contents$jspb$internal$binary_readStringUint64Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readUint64,"",0)}function module$contents$jspb$internal$binary_readStringInt32Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readInt32,"",0)}function module$contents$jspb$internal$binary_readStringFixed64Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readFixed64,"",0)}function module$contents$jspb$internal$binary_readStringFixed32Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readFixed32,"",0)}function module$contents$jspb$internal$binary_readStringBoolMap(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readBool,"",!1)}function module$contents$jspb$internal$binary_readStringStringMap(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readString,"","")}function module$contents$jspb$internal$binary_readStringMessageMap(e,t,n,r,
vendor: 3,792 bytes, line 2
2i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readString,"",i)}function module$contents$jspb$internal$binary_readStringBytesMap(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readBytes,"",module$exports$jspb$bytestring.ByteString.empty())}function module$contents$jspb$internal$binary_readStringUint32Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readUint32,"",0)}function module$contents$jspb$internal$binary_readStringEnumMap(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readEnum,"",0)}function module$contents$jspb$internal$binary_readStringSfixed32Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readSfixed32,"",0)}function module$contents$jspb$internal$binary_readStringSfixed64Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readSfixed64,"",0)}function module$contents$jspb$internal$binary_readStringSint32Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readSint32,"",0)}function module$contents$jspb$internal$binary_readStringSint64Map(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_readSint64,"",0)}jspb.internal.binary.deserializeBinaryFromReaderGeneric=function(e,t,n){return module$contents$jspb$internal$binary_deserializeBinaryFromReaderGenericImpl(e,t,module$contents$jspb$internal$binary_getDeserializers(n))},jspb.internal.binary.deserializeBinary=function(e,t,n){e=module$exports$jspb$binary$reader.BinaryReader.alloc(e,void 0,void 0,n);try{var r=module$contents$jspb$internal$binary_getDeserializers(t);return module$contents$jspb$internal$binary_deserializeBinaryFromReaderGenericImpl(new r.ctor,e,r)}finally{e.free()}},jspb.internal.binary.deserializeBinaryImmutable=function(e,t,n,r){return module$contents$jspb$immutable_api_token_checkImmutableAccessAllowed(n),module$contents$jspb$internal_immutability_recursiveMarkMessageImmutable(jspb.internal.binary.deserializeBinary(e,t,r))},jspb.internal.binary.deserializeBinaryMessageSet=function(e,t,n,r){e=module$exports$jspb$binary$reader.BinaryReader.alloc(e,void 0,void 0,r);try{return module$contents$jspb$internal$binary_readBinaryExtensionMessageSet(new t,e,n)}finally{e.free()}},jspb.internal.binary.deserializeBinaryMessageSetImmutable=function(e,t,n,r,i){return module$contents$jspb$immutable_api_token_checkImmutableAccessAllowed(r),module$contents$jspb$internal_immutability_recursiveMarkMessageImmutable(jspb.internal.binary.deserializeBinaryMessageSet(e,t,n,i))},jspb.internal.binary.serializeBinary=function(e,t){var n=new module$exports$jspb$binary$writer.BinaryWriter;return module$contents$jspb$internal$binary_serializeBinaryToWriterGenericImpl(e,n,module$contents$jspb$internal$binary_getSerializers(t)),n.getResultBuffer()},jspb.internal.binary.serializeBinaryMessageSet=function(e,t){var n=new module$exports$jspb$binary$writer.BinaryWriter;return module$contents$jspb$internal$binary_serializeBinaryExtensionsAndUnknownFields(e,n,t),n.getResultBuffer()},jspb.internal.binary.RWDoubleExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&(t.setExtension(n,e.readDouble()),!0)},function(e,t,n){e.writeDouble(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableDoubleIntoExtWRepeatedDoubleExt=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableDoubleIntoExt,function(e,t,n){e.writeRepeatedDouble(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableDoubleIntoExtWPackedDoubleExt=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableDoubleIntoExt,function(e,t,n){e.writePackedDouble(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWDouble=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readDouble,module$contents$jspb$internal$binary_writeDouble),jspb.internal.binary.RPackableDoubleIntoWRepeatedDouble=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableDoubleInto,function(e,t,n){e.writeRepeatedDouble(n,(0,jspb.internal.jspb_adapters.getRepeatedFloatingPointField)(t,n))}),jspb.internal.binary.RPackableDoubleIntoWPackedDouble=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableDoubleInto,function(e,t,n){e.writePackedDouble(n,(0,jspb.internal.jspb_adapters.getRepeatedFloatingPointField)(t,n))}),jspb.internal.binary.RDoubleIgnoringDefaultWDouble=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setProto3DoubleField)(t,n,e.readDouble()),!0)},module$contents$jspb$internal$binary_writeDouble),jspb.internal.binary.RDoubleOneofWDouble=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readDouble()),!0)},module$contents$jspb$internal$binary_writeDouble),jspb.internal.binary.RWFloatExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&(t.setExtension(n,e.readFloat()),!0)},function(e,t,n){e.writeFloat(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableFloatIntoExtWRepeatedFloatExt=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFloatIntoExt,function(e,t,n){e.writeRepeatedFloat(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableFloatIntoExtWPackedFloatExt=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFloatIntoExt,function(e,t,n){e.writePackedFloat(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWFloat=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFloat,module$contents$jspb$internal$binary_writeFloat),jspb.internal.binary.RPackableFloatIntoWRepeatedFloat=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFloatInto,function(e,t,n){e.writeRepeatedFloat(n,(0,jspb.internal.jspb_adapters.getRepeatedFloatingPointField)(t,n))}),jspb.internal.binary.RPackableFloatIntoWPackedFloat=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFloatInto,function(e,t,n){e.writePackedFloat(n,(0,jspb.internal.jspb_adapters.getRepeatedFloatingPointField)(t,n))}),jspb.internal.binary.RFloatIgnoringDefaultWFloat=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setProto3FloatField)(t,n,e.readFloat()),!0)},module$contents$jspb$internal$binary_writeFloat),jspb.internal.binary.RFloatOneofWFloat=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readFloat()),!0)},module$contents$jspb$internal$binary_writeFloat),jspb.internal.binary.RInt64StringE
2xtWInt64Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readInt64String()),!0)},module$contents$jspb$internal$binary_writeInt64Ext),jspb.internal.binary.RPackableInt64StringIntoExtWRepeatedInt64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt64StringIntoExt,module$contents$jspb$internal$binary_writeRepeatedInt64Ext),jspb.internal.binary.RPackableInt64StringIntoExtWPackedInt64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt64StringIntoExt,module$contents$jspb$internal$binary_writePackedInt64Ext),jspb.internal.binary.RWInt64Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readInt64()),!0)},module$contents$jspb$internal$binary_writeInt64Ext),jspb.internal.binary.RPackableInt64IntoExtWRepeatedInt64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt64IntoExt,module$contents$jspb$internal$binary_writeRepeatedInt64Ext),jspb.internal.binary.RPackableInt64IntoExtWPackedInt64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt64IntoExt,module$contents$jspb$internal$binary_writePackedInt64Ext),jspb.internal.binary.RInt64StringWInt64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readInt64String()),!0)},module$contents$jspb$internal$binary_writeInt64),jspb.internal.binary.RPackableInt64StringIntoWRepeatedInt64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt64StringInto,module$contents$jspb$internal$binary_writeRepeatedInt64),jspb.internal.binary.RPackableInt64StringIntoWPackedInt64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt64StringInto,module$contents$jspb$internal$binary_writePackedInt64),jspb.internal.binary.RInt64StringIgnoringDefaultWInt64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Int64StringField)(t,n,e.readInt64String()),!0)},module$contents$jspb$internal$binary_writeInt64),jspb.internal.binary.RInt64StringOneofWInt64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readInt64String()),!0)},module$contents$jspb$internal$binary_writeInt64),jspb.internal.binary.RWInt64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_writeInt64),jspb.internal.binary.RPackableInt64IntoWRepeatedInt64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt64Into,module$contents$jspb$internal$binary_writeRepeatedInt64),jspb.internal.binary.RPackableInt64IntoWPackedInt64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt64Into,module$contents$jspb$internal$binary_writePackedInt64),jspb.internal.binary.RInt64IgnoringDefaultWInt64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Int64Field)(t,n,e.readInt64()),!0)},module$contents$jspb$internal$binary_writeInt64),jspb.internal.binary.RInt64OneofWInt64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readInt64()),!0)},module$contents$jspb$internal$binary_writeInt64),jspb.internal.binary.RUint64StringE
2xtWUint64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64StringExt,module$contents$jspb$internal$binary_writeUint64ExtToleratingNegatives),jspb.internal.binary.RUint64StringExtWUint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64StringExt,module$contents$jspb$internal$binary_writeUint64Ext),jspb.internal.binary.RPackableUint64StringIntoExtWRepeatedUint64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64StringIntoExt,module$contents$jspb$internal$binary_writeRepeatedUint64ExtToleratingNegatives),jspb.internal.binary.RPackableUint64StringIntoExtWPackedUint64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64StringIntoExt,module$contents$jspb$internal$binary_writePackedUint64ExtToleratingNegatives),jspb.internal.binary.RPackableUint64StringIntoExtWRepeatedUint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64StringIntoExt,module$contents$jspb$internal$binary_writeRepeatedUint64Ext),jspb.internal.binary.RPackableUint64StringIntoExtWPackedUint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64StringIntoExt,module$contents$jspb$internal$binary_writePackedUint64Ext),jspb.internal.binary.RUint64ExtWUint64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64Ext,module$contents$jspb$internal$binary_writeUint64ExtToleratingNegatives),jspb.internal.binary.RWUint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64Ext,module$contents$jspb$internal$binary_writeUint64Ext),jspb.internal.binary.RPackableUint64IntoExtWRepeatedUint64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64IntoExt,module$contents$jspb$internal$binary_writeRepeatedUint64ExtToleratingNegatives),jspb.internal.binary.RPackableUint64IntoExtWPackedUint64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64IntoExt,module$contents$jspb$internal$binary_writePackedUint64ExtToleratingNegatives),jspb.internal.binary.RPackableUint64IntoExtWRepeatedUint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64IntoExt,module$contents$jspb$internal$binary_writeRepeatedUint64Ext),jspb.internal.binary.RPackableUint64IntoExtWPackedUint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64IntoExt,module$contents$jspb$internal$binary_writePackedUint64Ext),jspb.internal.binary.RUint64StringWUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64String,module$contents$jspb$internal$binary_writeUint64ToleratingNegatives),jspb.internal.binary.RUint64StringWUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64String,module$contents$jspb$internal$binary_writeUint64),jspb.internal.binary.RPackableUint64StringIntoWRepeatedUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64StringInto,module$contents$jspb$internal$binary_writeRepeatedUint64ToleratingNegatives),jspb.internal.binary.RPackableUint64StringIntoWPackedUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64StringInto,module$contents$jspb$internal$binary_writePackedUint64ToleratingNegatives),jspb.internal.binary.RPackableUint64StringIntoWRepeatedUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64StringInto,module$contents$jspb$internal$binary_writeRepeatedUint64),jspb.internal.binary.RPackableUint64StringIntoWPackedUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64StringInto,module$contents$jspb$internal$binary_writePackedUint64),jspb.internal.binary.RUint64StringIgnoringDefaultWUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64StringIgnoringDefault,module$contents$jspb$internal$binary_writeUint64ToleratingNegatives),jspb.internal.binary.RUint64StringIgnoringDefaultWUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64StringIgnoringDefault,module$contents$jspb$internal$binary_writeUint64),jspb.internal.binary.RUint64StringOneofWUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64StringOneof,module$contents$jspb$internal$binary_writeUint64ToleratingNegatives),jspb.internal.binary.RUint64StringOneofWUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64StringOneof,module$contents$jspb$internal$binary_writeUint64),jspb.internal.binary.RUint64WUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_writeUint64ToleratingNegatives),jspb.internal.binary.RWUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_writeUint64),jspb.internal.binary.RPackableUint64IntoWRepeatedUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64Into,module$contents$jspb$internal$binary_writeRepeatedUint64ToleratingNegatives),jspb.internal.binary.RPackableUint64IntoWPackedUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64Into,module$contents$jspb$internal$binary_writePackedUint64ToleratingNegatives),jspb.internal.binary.RPackableUint64IntoWRepeatedUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64Into,module$contents$jspb$internal$binary_writeRepeatedUint64),jspb.internal.binary.RPackableUint64IntoWPackedUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint64Into,module$contents$jspb$internal$binary_writePackedUint64),jspb.internal.binary.RUint64IgnoringDefaultWUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64IgnoringDefault,module$contents$jspb$internal$binary_writeUint64ToleratingNegatives),jspb.internal.binary.RUint64IgnoringDefaultWUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64IgnoringDefault,module$contents$jspb$internal$binary_writeUint64),jspb.internal.binary.RUint64OneofWUint64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64Oneof,module$contents$jspb$internal$binary_writeUint64ToleratingNegatives),jspb.internal.binary.RUint64OneofWUint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint64Oneof,module$contents$jspb$internal$binary_writeUint64),jspb.internal.binary.RWInt32Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readInt32()),!0)},function(e,t,n){e.writeInt32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableInt32IntoExtWRepeatedInt32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt32IntoExt,function(e,t,n){e.writeRepeatedInt32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableInt32IntoExtWPackedInt32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt32IntoExt,function(e,t,n){e.writePackedInt32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWInt32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_writeInt32),jspb.internal.binary.RPackableInt32IntoWRepeatedInt32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt32Into,function(e,t,n){e.writeRepeatedInt32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RPackableInt32IntoWPackedInt32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableInt32Into,function(e,t,n){e.writePackedInt32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RInt32IgnoringDefaultWInt32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Int32Field)(t,n,e.readInt32()),!0)},module$contents$jspb$internal$binary_writeInt32),jspb.internal.binary.RInt32OneofWInt32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readInt32()),!0)},module$contents$jspb$internal$binary_writeInt32),jspb.internal.binary.RFixed64StringE
2xtWFixed64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64StringExt,module$contents$jspb$internal$binary_writeFixed64ExtToleratingNegatives),jspb.internal.binary.RFixed64StringExtWFixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64StringExt,module$contents$jspb$internal$binary_writeFixed64Ext),jspb.internal.binary.RPackableFixed64StringIntoExtWRepeatedFixed64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64StringIntoExt,module$contents$jspb$internal$binary_writeRepeatedFixed64ExtToleratingNegatives),jspb.internal.binary.RPackableFixed64StringIntoExtWPackedFixed64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64StringIntoExt,module$contents$jspb$internal$binary_writePackedFixed64ExtToleratingNegatives),jspb.internal.binary.RPackableFixed64StringIntoExtWRepeatedFixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64StringIntoExt,module$contents$jspb$internal$binary_writeRepeatedFixed64Ext),jspb.internal.binary.RPackableFixed64StringIntoExtWPackedFixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64StringIntoExt,module$contents$jspb$internal$binary_writePackedFixed64Ext),jspb.internal.binary.RFixed64ExtWFixed64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64Ext,module$contents$jspb$internal$binary_writeFixed64ExtToleratingNegatives),jspb.internal.binary.RWFixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64Ext,module$contents$jspb$internal$binary_writeFixed64Ext),jspb.internal.binary.RPackableFixed64IntoExtWRepeatedFixed64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64IntoExt,module$contents$jspb$internal$binary_writeRepeatedFixed64ExtToleratingNegatives),jspb.internal.binary.RPackableFixed64IntoExtWPackedFixed64ExtToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64IntoExt,module$contents$jspb$internal$binary_writePackedFixed64ExtToleratingNegatives),jspb.internal.binary.RPackableFixed64IntoExtWRepeatedFixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64IntoExt,module$contents$jspb$internal$binary_writeRepeatedFixed64Ext),jspb.internal.binary.RPackableFixed64IntoExtWPackedFixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64IntoExt,module$contents$jspb$internal$binary_writePackedFixed64Ext),jspb.internal.binary.RFixed64StringWFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64String,module$contents$jspb$internal$binary_writeFixed64ToleratingNegatives),jspb.internal.binary.RFixed64StringWFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64String,module$contents$jspb$internal$binary_writeFixed64),jspb.internal.binary.RPackableFixed64StringIntoWRepeatedFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64StringInto,module$contents$jspb$internal$binary_writeRepeatedFixed64ToleratingNegatives),jspb.internal.binary.RPackableFixed64StringIntoWPackedFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64StringInto,module$contents$jspb$internal$binary_writePackedFixed64ToleratingNegatives),jspb.internal.binary.RPackableFixed64StringIntoWRepeatedFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64StringInto,module$contents$jspb$internal$binary_writeRepeatedFixed64),jspb.internal.binary.RPackableFixed64StringIntoWPackedFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64StringInto,module$contents$jspb$internal$binary_writePackedFixed64),jspb.internal.binary.RFixed64StringIgnoringDefaultWFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64StringIgnoringDefault,module$contents$jspb$internal$binary_writeFixed64ToleratingNegatives),jspb.internal.binary.RFixed64StringIgnoringDefaultWFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64StringIgnoringDefault,module$contents$jspb$internal$binary_writeFixed64),jspb.internal.binary.RFixed64StringOneofWFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64StringOneof,module$contents$jspb$internal$binary_writeFixed64ToleratingNegatives),jspb.internal.binary.RFixed64StringOneofWFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64StringOneof,module$contents$jspb$internal$binary_writeFixed64),jspb.internal.binary.RFixed64WFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_writeFixed64ToleratingNegatives),jspb.internal.binary.RWFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_writeFixed64),jspb.internal.binary.RPackableFixed64IntoWRepeatedFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64Into,module$contents$jspb$internal$binary_writeRepeatedFixed64ToleratingNegatives),jspb.internal.binary.RPackableFixed64IntoWPackedFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64Into,module$contents$jspb$internal$binary_writePackedFixed64ToleratingNegatives),jspb.internal.binary.RPackableFixed64IntoWRepeatedFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64Into,module$contents$jspb$internal$binary_writeRepeatedFixed64),jspb.internal.binary.RPackableFixed64IntoWPackedFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed64Into,module$contents$jspb$internal$binary_writePackedFixed64),jspb.internal.binary.RFixed64IgnoringDefaultWFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64IgnoringDefault,module$contents$jspb$internal$binary_writeFixed64ToleratingNegatives),jspb.internal.binary.RFixed64IgnoringDefaultWFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64IgnoringDefault,module$contents$jspb$internal$binary_writeFixed64),jspb.internal.binary.RFixed64OneofWFixed64ToleratingNegatives=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64Oneof,module$contents$jspb$internal$binary_writeFixed64ToleratingNegatives),jspb.internal.binary.RFixed64OneofWFixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed64Oneof,module$contents$jspb$internal$binary_writeFixed64),jspb.internal.binary.RWFixed32Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&(t.setExtension(n,e.readFixed32()),!0)},function(e,t,n){e.writeFixed32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableFixed32IntoExtWRepeatedFixed32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed32IntoExt,function(e,t,n){e.writeRepeatedFixed32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableFixed32IntoExtWPackedFixed32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed32IntoExt,function(e,t,n){e.writePackedFixed32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWFixed32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_writeFixed32),jspb.internal.binary.RPackableFixed32IntoWRepeatedFixed32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed32Into,function(e,t,n){e.writeRepeatedFixed32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RPackableFixed32IntoWPackedFixed32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableFixed32Into,function(e,t,n){e.writePackedFixed32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RFixed32IgnoringDefaultWFixed32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setProto3Uint32Field)(t,n,e.readFixed32()),!0)},module$contents$jspb$internal$binary_writeFixed32),jspb.internal.binary.RFixed32OneofWFixed32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readFixed32()),!0)},module$contents$jspb$internal$binary_writeFixed32),jspb.internal.binary.RWBoolExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readBool()),!0)},function(e,t,n){e.writeBool(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableBoolIntoExtWRepeatedBoolExt=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableBoolIntoExt,function(e,t,n){e.writeRepeatedBool(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableBoolIntoExtWPackedBoolExt=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableBoolIntoExt,function(e,t,n){e.writePackedBool(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWBool=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_writeBool),jspb.internal.binary.RPackableBoolIntoWRepeatedBool=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableBoolInto,function(e,t,n){e.writeRepeatedBool(n,(0,jspb.internal.jspb_adapters.getRepeatedBooleanField)(t,n))}),jspb.internal.binary.RPackableBoolIntoWPackedBool=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableBoolInto,function(e,t,n){e.writePackedBool(n,(0,jspb.internal.jspb_adapters.getRepeatedBooleanField)(t,n))}),jspb.internal.binary.RBoolIgnoringDefaultWBool=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3BooleanField)(t,n,e.readBool()),!0)},module$contents$jspb$internal$binary_writeBool),jspb.internal.binary.RBoolOneofWBool=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readBool()),!0)},module$contents$jspb$internal$binary_writeBool),jspb.internal.binary.RStringRequireUtf8ExtWStringExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(t.setExtension(n,e.readStringRequireUtf8()),!0)},module$contents$jspb$internal$binary_writeStringExt),jspb.internal.binary.RRepeatedStringRequireUtf8ExtWRepeatedStringExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(t.getExtension(n).push(e.readStringRequireUtf8()),!0)},module$contents$jspb$internal$binary_writeRepeatedStringExt),jspb.internal.binary.RStringRequireUtf8WString=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_writeString),jspb.internal.binary.RRepeatedStringRequireUtf8WRepeatedString=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.addToRepeatedStringField)(t,n,e.readStringRequireUtf8()),!0)},module$contents$jspb$internal$binary_writeRepeatedString),jspb.internal.binary.RStringRequireUtf8IgnoringDefaultWString=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.setProto3StringField)(t,n,e.readStringRequireUtf8()),!0)},module$contents$jspb$internal$binary_writeString),jspb.internal.binary.RStringRequireUtf8OneofWString=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readStringRequireUtf8()),!0)},module$contents$jspb$internal$binary_writeString),jspb.internal.binary.RWStringExt=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8ExtWStringExt:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringExt,module$contents$jspb$internal$binary_writeStringExt),jspb.internal.binary.RWRepeatedStringExt=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RRepeatedStringRequireUtf8ExtWRepeatedStringExt:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readRepeatedStringExt,module$contents$jspb$internal$binary_writeRepeatedStringExt),jspb.internal.binary.RWString=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8WString:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readString,module$contents$jspb$internal$binary_writeString),jspb.internal.binary.RWRepeatedString=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RRepeatedStringRequireUtf8WRepeatedString:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readRepeatedString,module$contents$jspb$internal$binary_writeRepeatedString),jspb.internal.binary.RStringOneofWString=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8OneofWString:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringOneof,module$contents$jspb$internal$binary_writeString),jspb.internal.binary.RWGroupExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.START_GROUP&&(e.readGroup(n.fieldIndex,(0,jspb.internal.jspb_adapters.getMutableWrapperField)(t,(0,goog.asserts.assert)(n.ctor),n.fieldIndex,!0),r),!0)},function(e,t,n,r){e.writeGroup(n.fieldIndex,t.getExtension(n),r)}),jspb.internal.binary.RWRepeatedGroupExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.START_GROUP&&(e.readGroup(n.fieldIndex,(0,jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField)(t,n.fieldIndex,(0,goog.asserts.assert)(n.ctor),void 0,void 0,!0),r),!0)},function(e,t,n,r){e.writeRepeatedGroup(n.fieldIndex,t.getExtension(n),r)}),jspb.internal.binary.RWGroup=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.START_GROUP&&(e.readGroup(n,(0,jspb.internal.jspb_adapters.getMutableWrapperField)(t,r,n),i),!0)},module$contents$jspb$internal$binary_writeGroup),jspb.internal.binary.RWRepeatedGroup=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.START_GROUP&&(e.readGroup(n,(0,jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField)(t,n,r),i),!0)},function(e,t,n,r,i){e.writeRepeatedGroup(n,(0,jspb.internal.jspb_adapters.getRepeatedWrapperField)(t,r,n),i)}),jspb.internal.binary.RGroupOneofWGroup=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i,a){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.START_GROUP&&(e.readGroup(n,(0,jspb.internal.jspb_adapters.getMutableOneofWrapperField)(t,r,n,a),i),!0)},module$contents$jspb$internal$binary_writeGroup),jspb.internal.binary.RWMessageExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(e.readMessage((0,jspb.internal.jspb_adapters.getMutableWrapperField)(t,(0,goog.asserts.assert)(n.ctor),n.fieldIndex,!0),r),!0)},function(e,t,n,r){e.writeMessage(n.fieldIndex,t.getExtension(n),r)}),jspb.internal.binary.RWRepeatedMessageExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(e.readMessage((0,jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField)(t,n.fieldIndex,(0,goog.asserts.assert)(n.ctor),void 0,void 0,!0),r),!0)},function(e,t,n,r){e.writeRepeatedMessage(n.fieldIndex,t.getExtension(n),r)}),jspb.internal.binary.RWMessage=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readMessage,module$contents$jspb$internal$binary_writeMessage),jspb.internal.binary.RWRepeatedMessage=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(e.readMessage((0,jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField)(t,n,r),i),!0)},function(e,t,n,r,i){e.writeRepeatedMessage(n,(0,jspb.internal.jspb_adapters.getRepeatedWrapperField)(t,r,n),i)}),jspb.internal.binary.RMessageOneofWMessage=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i,a){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(e.readMessage((0,jspb.internal.jspb_adapters.getMutableOneofWrapperField)(t,r,n,a),i),!0)},module$contents$jspb$internal$binary_writeMessage),jspb.internal.binary.RWBytesExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(t.setExtension(n,e.readByteString()),!0)},function(e,t,n){e.writeBytes(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWRepeatedBytesExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&(t.getExtension(n).push(e.readByteString()),!0)},function(e,t,n){e.writeRepeatedBytes(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWBytes=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readBytes,module$contents$jspb$internal$binary_writeBytes),jspb.internal.binary.RWRepeatedBytes=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.addToRepeatedBytesField)(t,n,e.readByteString()),!0)},function(e,t,n){e.writeRepeatedBytes(n,(0,jspb.internal.jspb_adapters.getRepeatedBytesField)(t,n))}),jspb.internal.binary.RBytesIgnoringDefaultWBytes=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.setProto3BytesField)(t,n,e.readByteString()),!0)},module$contents$jspb$internal$binary_writeBytes),jspb.internal.binary.RBytesOneofWBytes=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.DELIMITED&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readByteString()),!0)},module$contents$jspb$internal$binary_writeBytes),jspb.internal.binary.RWUint32Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readUint32()),!0)},function(e,t,n){e.writeUint32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableUint32IntoExtWRepeatedUint32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint32IntoExt,function(e,t,n){e.writeRepeatedUint32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableUint32IntoExtWPackedUint32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint32IntoExt,function(e,t,n){e.writePackedUint32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWUint32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_writeUint32),jspb.internal.binary.RPackableUint32IntoWRepeatedUint32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint32Into,function(e,t,n){e.writeRepeatedUint32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RPackableUint32IntoWPackedUint32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableUint32Into,function(e,t,n){e.writePackedUint32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RUint32IgnoringDefaultWUint32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Uint32Field)(t,n,e.readUint32()),!0)},module$contents$jspb$internal$binary_writeUint32),jspb.internal.binary.RUint32OneofWUint32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readUint32()),!0)},module$contents$jspb$internal$binary_writeUint32),jspb.internal.binary.RWEnumExt=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readEnum()),!0)},function(e,t,n){e.writeEnum(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableEnumIntoExtWRepeatedEnumExt=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableEnumIntoExt,function(e,t,n){e.writeRepeatedEnum(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableEnumIntoExtWPackedEnumExt=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableEnumIntoExt,function(e,t,n){e.writePackedEnum(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWEnum=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readEnum,module$contents$jspb$internal$binary_writeEnum),jspb.internal.binary.RPackableEnumIntoWRepeatedEnum=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableEnumInto,function(e,t,n){e.writeRepeatedEnum(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RPackableEnumIntoWPackedEnum=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableEnumInto,function(e,t,n){e.writePackedEnum(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.REnumIgnoringDefaultWEnum=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3EnumField)(t,n,e.readEnum()),!0)},module$contents$jspb$internal$binary_writeEnum),jspb.internal.binary.REnumOneofWEnum=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readEnum()),!0)},module$contents$jspb$internal$binary_writeEnum),jspb.internal.binary.RWSfixed32Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&(t.setExtension(n,e.readSfixed32()),!0)},function(e,t,n){e.writeSfixed32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableSfixed32IntoExtWRepeatedSfixed32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed32IntoExt,function(e,t,n){e.writeRepeatedSfixed32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableSfixed32IntoExtWPackedSfixed32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed32IntoExt,function(e,t,n){e.writePackedSfixed32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWSfixed32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_writeSfixed32),jspb.internal.binary.RPackableSfixed32IntoWRepeatedSfixed32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed32Into,function(e,t,n){e.writeRepeatedSfixed32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RPackableSfixed32IntoWPackedSfixed32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed32Into,function(e,t,n){e.writePackedSfixed32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RSfixed32IgnoringDefaultWSfixed32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setProto3Int32Field)(t,n,e.readSfixed32()),!0)},module$contents$jspb$internal$binary_writeSfixed32),jspb.internal.binary.RSfixed32OneofWSfixed32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED32&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readSfixed32()),!0)},module$contents$jspb$internal$binary_writeSfixed32),jspb.internal.binary.RSfixed64StringE
2xtWSfixed64Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&(t.setExtension(n,e.readSfixed64String()),!0)},module$contents$jspb$internal$binary_writeSfixed64Ext),jspb.internal.binary.RPackableSfixed64StringIntoExtWRepeatedSfixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed64StringIntoExt,module$contents$jspb$internal$binary_writeRepeatedSfixed64Ext),jspb.internal.binary.RPackableSfixed64StringIntoExtWPackedSfixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed64StringIntoExt,module$contents$jspb$internal$binary_writePackedSfixed64Ext),jspb.internal.binary.RWSfixed64Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&(t.setExtension(n,e.readSfixed64()),!0)},module$contents$jspb$internal$binary_writeSfixed64Ext),jspb.internal.binary.RPackableSfixed64IntoExtWRepeatedSfixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed64IntoExt,module$contents$jspb$internal$binary_writeRepeatedSfixed64Ext),jspb.internal.binary.RPackableSfixed64IntoExtWPackedSfixed64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed64IntoExt,module$contents$jspb$internal$binary_writePackedSfixed64Ext),jspb.internal.binary.RSfixed64StringWSfixed64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readSfixed64String()),!0)},module$contents$jspb$internal$binary_writeSfixed64),jspb.internal.binary.RPackableSfixed64StringIntoWRepeatedSfixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed64StringInto,module$contents$jspb$internal$binary_writeRepeatedSfixed64),jspb.internal.binary.RPackableSfixed64StringIntoWPackedSfixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed64StringInto,module$contents$jspb$internal$binary_writePackedSfixed64),jspb.internal.binary.RSfixed64StringIgnoringDefaultWSfixed64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setProto3Int64StringField)(t,n,e.readSfixed64String()),!0)},module$contents$jspb$internal$binary_writeSfixed64),jspb.internal.binary.RSfixed64StringOneofWSfixed64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readSfixed64String()),!0)},module$contents$jspb$internal$binary_writeSfixed64),jspb.internal.binary.RWSfixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_writeSfixed64),jspb.internal.binary.RPackableSfixed64IntoWRepeatedSfixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed64Into,module$contents$jspb$internal$binary_writeRepeatedSfixed64),jspb.internal.binary.RPackableSfixed64IntoWPackedSfixed64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSfixed64Into,module$contents$jspb$internal$binary_writePackedSfixed64),jspb.internal.binary.RSfixed64IgnoringDefaultWSfixed64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setProto3Int64Field)(t,n,e.readSfixed64()),!0)},module$contents$jspb$internal$binary_writeSfixed64),jspb.internal.binary.RSfixed64OneofWSfixed64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.FIXED64&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readSfixed64()),!0)},module$contents$jspb$internal$binary_writeSfixed64),jspb.internal.binary.RWSint32Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readSint32()),!0)},function(e,t,n){e.writeSint32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableSint32IntoExtWRepeatedSint32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint32IntoExt,function(e,t,n){e.writeRepeatedSint32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RPackableSint32IntoExtWPackedSint32Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint32IntoExt,function(e,t,n){e.writePackedSint32(n.fieldIndex,t.getExtension(n))}),jspb.internal.binary.RWSint32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_writeSint32),jspb.internal.binary.RPackableSint32IntoWRepeatedSint32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint32Into,function(e,t,n){e.writeRepeatedSint32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RPackableSint32IntoWPackedSint32=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint32Into,function(e,t,n){e.writePackedSint32(n,(0,jspb.internal.jspb_adapters.getRepeatedField)(t,n))}),jspb.internal.binary.RSint32IgnoringDefaultWSint32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Int32Field)(t,n,e.readSint32()),!0)},module$contents$jspb$internal$binary_writeSint32),jspb.internal.binary.RSint32OneofWSint32=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readSint32()),!0)},module$contents$jspb$internal$binary_writeSint32),jspb.internal.binary.RSint64StringExtWSint64Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readSint64String()),!0)},module$contents$jspb$internal$binary_writeSint64Ext),jspb.internal.binary.RPackableSint64StringIntoExtWRepeatedSint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint64StringIntoExt,module$contents$jspb$internal$binary_writeRepeatedSint64Ext),jspb.internal.binary.RPackableSint64StringIntoExtWPackedSint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint64StringIntoExt,module$contents$jspb$internal$binary_writePackedSint64Ext),jspb.internal.binary.RWSint64Ext=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&(t.setExtension(n,e.readSint64()),!0)},module$contents$jspb$internal$binary_writeSint64Ext),jspb.internal.binary.RPackableSint64IntoExtWRepeatedSint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint64IntoExt,module$contents$jspb$internal$binary_writeRepeatedSint64Ext),jspb.internal.binary.RPackableSint64IntoExtWPackedSint64Ext=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint64IntoExt,module$contents$jspb$internal$binary_writePackedSint64Ext),jspb.internal.binary.RSint64StringWSint64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setField)(t,n,e.readSint64String()),!0)},module$contents$jspb$internal$binary_writeSint64),jspb.internal.binary.RPackableSint64StringIntoWRepeatedSint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint64StringInto,module$contents$jspb$internal$binary_writeRepeatedSint64),jspb.internal.binary.RPackableSint64StringIntoWPackedSint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint64StringInto,module$contents$jspb$internal$binary_writePackedSint64),jspb.internal.binary.RSint64StringIgnoringDefaultWSint64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getW
2ireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Int64StringField)(t,n,e.readSint64String()),!0)},module$contents$jspb$internal$binary_writeSint64),jspb.internal.binary.RSint64StringOneofWSint64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readSint64String()),!0)},module$contents$jspb$internal$binary_writeSint64),jspb.internal.binary.RWSint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_writeSint64),jspb.internal.binary.RPackableSint64IntoWRepeatedSint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint64Into,module$contents$jspb$internal$binary_writeRepeatedSint64),jspb.internal.binary.RPackableSint64IntoWPackedSint64=module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readPackableSint64Into,module$contents$jspb$internal$binary_writePackedSint64),jspb.internal.binary.RSint64IgnoringDefaultWSint64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setProto3Int64Field)(t,n,e.readSint64()),!0)},module$contents$jspb$internal$binary_writeSint64),jspb.internal.binary.RSint64OneofWSint64=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r){return e.getWireType()===module$exports$jspb$BinaryConstants.WireType.VARINT&&((0,jspb.internal.jspb_adapters.setOneofField)(t,n,r,e.readSint64()),!0)},module$contents$jspb$internal$binary_writeSint64),jspb.internal.binary.RWInt64DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWInt64FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWInt64Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWInt64Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWInt64Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}
2),jspb.internal.binary.RWInt64Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWInt64Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWInt64BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RInt64StringRequireUtf8MapWInt64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeInt64StringMap),jspb.internal.binary.RWInt64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeInt64StringMap),jspb.internal.binary.RWInt64MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readInt64,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,i)}),jspb.internal.binary.RWInt64BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWInt64Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWInt64EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWInt64Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWInt64Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWInt64Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWInt64Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt64,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWUint64DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWUint64FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWUint64Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWUint64Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWUint64Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWUint64Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWUint64Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWUint64BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RUint64StringRequireUtf8MapWUint64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeUint64StringMap),jspb.internal.binary.RWUint64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeUint64StringMap),jspb.internal.binary.RWUint64MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readUint64,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,i)}),jspb.internal.binary.RWUint64BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWUint64Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWUint64EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWUint64Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWUint64Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWUint64Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWUint64Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint64,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWInt32DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWInt32FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWInt32Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWInt32Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWInt32Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWInt32Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWInt32Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWInt32BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RInt32StringRequireUtf8MapWInt32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeInt32StringMap),jspb.internal.binary.RWInt32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeInt32StringMap),jspb.internal.binary.RWInt32MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readInt32,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,i)}),jspb.internal.binary.RWInt32BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWInt32Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWInt32EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWInt32Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWInt32Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWInt32Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWInt32Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readInt32,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWFixed64DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWFixed64FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWFixed64Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWFixed64Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWFixed64Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWFixed64Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWFixed64Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWFixed64BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RFixed64StringRequireUtf8MapWFixed64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeFixed64StringMap),jspb.internal.binary.RWFixed64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeFixed64StringMap),jspb.internal.binary.RWFixed64MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readFixed64,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,i)}),jspb.internal.binary.RWFixed64BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWFixed64Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWFixed64EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWFixed64Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWFixed64Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWFixed64Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWFixed64Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed64,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWFixed32DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWFixed32FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWFixed32Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWFixed32Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWFixed32Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWFixed32Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWFixed32Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWFixed32BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RFixed32StringRequireUtf8MapWFixed32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeFixed32StringMap),jspb.internal.binary.RWFixed32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeFixed32StringMap),jspb.internal.binary.RWFixed32MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readFixed32,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,i)}),jspb.internal.binary.RWFixed32BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWFixed32Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWFixed32EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWFixed32Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWFixed32Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWFixed32Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWFixed32Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readFixed32,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWBoolDoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readDouble,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWBoolFloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readFloat,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWBoolInt64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readInt64,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWBoolUint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readUint64,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWBoolInt32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readInt32,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWBoolFixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readFixed64,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWBoolFixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readFixed32,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWBoolBoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readBool,!1,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RBoolStringRequireUtf8MapWBoolStringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readStringRequireUtf8,!1,"")},module$contents$jspb$internal$binary_writeBoolStringMap),jspb.internal.binary.RWBoolStringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readString,!1,"")},module$contents$jspb$internal$binary_writeBoolStringMap),jspb.internal.binary.RWBoolMessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readBool,!1,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,i)}),jspb.internal.binary.RWBoolBytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readBytes,!1,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWBoolUint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readUint32,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWBoolEnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readEnum,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWBoolSfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readSfixed32,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWBoolSfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readSfixed64,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWBoolSint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readSint32,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWBoolSint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readBool,module$contents$jspb$internal$binary_readSint64,!1,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RStringRequireUtf8DoubleMapWStringDoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readDouble,"",0)},module$contents$jspb$internal$binary_writeStringDoubleMap),jspb.internal.binary.RWStringDoubleMap=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8DoubleMapWStringDoubleMap:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringDoubleMap,module$contents$jspb$internal$binary_writeStringDoubleMap),jspb.internal.binary.RStringRequireUtf8FloatMapWStringFloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readFloat,"",0)},module$contents$jspb$internal$binary_writeStringFloatMap),jspb.internal.binary.RWStringFloatMap=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8FloatMapWStringFloatMap:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringFloatMap,module$contents$jspb$internal$binary_writeStringFloatMap),jspb.internal.binary.RStringRequireUtf8Int64MapWStr
2ingInt64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readInt64,"",0)},module$contents$jspb$internal$binary_writeStringInt64Map),jspb.internal.binary.RWStringInt64Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Int64MapWStringInt64Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringInt64Map,module$contents$jspb$internal$binary_writeStringInt64Map),jspb.internal.binary.RStringRequireUtf8Uint64MapWStringUint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readUint64,"",0)},module$contents$jspb$internal$binary_writeStringUint64Map),jspb.internal.binary.RWStringUint64Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Uint64MapWStr
2ingUint64Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringUint64Map,module$contents$jspb$internal$binary_writeStringUint64Map),jspb.internal.binary.RStringRequireUtf8Int32MapWStringInt32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readInt32,"",0)},module$contents$jspb$internal$binary_writeStringInt32Map),jspb.internal.binary.RWStringInt32Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Int32MapWStringInt32Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringInt32Map,module$contents$jspb$internal$binary_writeStringInt32Map),jspb.internal.binary.RStringRequireUtf8Fixed64MapWStringFixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readFixed64,"",0)},module$contents$jspb$internal$binary_writeStringFixed64Map),jspb.internal.binary.RWStringFixed64Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Fixed64MapWStringFixed64Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringFixed64Map,module$contents$jspb$internal$binary_writeStringFixed64Map),jspb.internal.binary.RStringRequireUtf8Fixed32MapWStringFixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readFixed32,"",0)},module$contents$jspb$internal$binary_writeStringFixed32Map),jspb.internal.binary.RWStringFixed32Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Fixed32MapWStringFixed32Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringFixed32Map,module$contents$jspb$internal$binary_writeStringFixed32Map),jspb.internal.binary.RStringRequireUtf8BoolMapWStringBoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readBool,"",!1)},module$contents$jspb$internal$binary_writeStringBoolMap),jspb.internal.binary.RWStringBoolMap=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8BoolMapWStringBoolMap:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringBoolMap,module$contents$jspb$internal$binary_writeStringBoolMap),jspb.internal.binary.RStringRequireUtf8StringRequireUtf8MapWStringStringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readStringRequireUtf8,"","")},module$contents$jspb$internal$binary_writeStringStringMap),jspb.internal.binary.RWStringStringMap=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8StringRequireUtf8MapWStringStringMap:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringStringMap,module$contents$jspb$internal$binary_writeStringStringMap),jspb.internal.binary.RStringRequireUtf8MessageMapWStringMessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readStringRequireUtf8,"",i)},module$contents$jspb$internal$binary_writeStringMessageMap),jspb.internal.binary.RWStringMessageMap=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8MessageMapWStr
2ingMessageMap:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringMessageMap,module$contents$jspb$internal$binary_writeStringMessageMap),jspb.internal.binary.RStringRequireUtf8BytesMapWStringBytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readBytes,"",module$exports$jspb$bytestring.ByteString.empty())},module$contents$jspb$internal$binary_writeStringBytesMap),jspb.internal.binary.RWStringBytesMap=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8BytesMapWStringBytesMap:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringBytesMap,module$contents$jspb$internal$binary_writeStringBytesMap),jspb.internal.binary.RStringRequireUtf8Uint32MapWStringUint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readUint32,"",0)},module$contents$jspb$internal$binary_writeStringUint32Map),jspb.internal.binary.RWStringUint32Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Uint32MapWStringUint32Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringUint32Map,module$contents$jspb$internal$binary_writeStringUint32Map),jspb.internal.binary.RStringRequireUtf8EnumMapWStringEnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readEnum,"",0)},module$contents$jspb$internal$binary_writeStringEnumMap),jspb.internal.binary.RWStringEnumMap=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8EnumMapWStringEnumMap:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringEnumMap,module$contents$jspb$internal$binary_writeStringEnumMap),jspb.internal.binary.RStringRequireUtf8Sfixed32MapWStringSfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readSfixed32,"",0)},module$contents$jspb$internal$binary_writeStringSfixed32Map),jspb.internal.binary.RWStringSfixed32Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Sfixed32MapWStringSfixed32Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringSfixed32Map,module$contents$jspb$internal$binary_writeStringSfixed32Map),jspb.internal.binary.RStringRequireUtf8Sfixed64MapWStringSfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readSfixed64,"",0)},module$contents$jspb$internal$binary_writeStringSfixed64Map),jspb.internal.binary.RWStringSfixed64Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Sfixed64MapWStringSfixed64Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringSfixed64Map,module$contents$jspb$internal$binary_writeStringSfixed64Map),jspb.internal.binary.RStringRequireUtf8Sint32MapWStringSint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readSint32,"",0)},module$contents$jspb$internal$binary_writeStringSint32Map),jspb.internal.binary.RWStringSint32Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Sint32MapWStringSint32Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringSint32Map,module$contents$jspb$internal$binary_writeStringSint32Map),jspb.internal.binary.RStringRequireUtf8Sint64MapWStr
2ingSint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readStringRequireUtf8,module$contents$jspb$internal$binary_readSint64,"",0)},module$contents$jspb$internal$binary_writeStringSint64Map),jspb.internal.binary.RWStringSint64Map=module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL?jspb.internal.binary.RStringRequireUtf8Sint64MapWStringSint64Map:module$contents$jspb$internal$binary_makeRWPair(module$contents$jspb$internal$binary_readStringSint64Map,module$contents$jspb$internal$binary_writeStringSint64Map),jspb.internal.binary.RWUint32DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWUint32FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWUint32Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWUint32Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWUint32Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWUint32Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWUint32Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWUint32BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RUint32StringRequireUtf8MapWUint32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeUint32StringMap),jspb.internal.binary.RWUint32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeUint32StringMap),jspb.internal.binary.RWUint32MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readUint32,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,i)}),jspb.internal.binary.RWUint32BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWUint32Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWUint32EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWUint32Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWUint32Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWUint32Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWUint32Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readUint32,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWSfixed32DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWSfixed32FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWSfixed32Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWSfixed32Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWSfixed32Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWSfixed32Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWSfixed32Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWSfixed32BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RSfixed32StringRequireUtf8MapWSfixed32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeSfixed32StringMap),jspb.internal.binary.RWSfixed32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeSfixed32StringMap),jspb.internal.binary.RWSfixed32MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readSfixed32,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,i)}),jspb.internal.binary.RWSfixed32BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWSfixed32Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWSfixed32EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWSfixed32Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWSfixed32Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWSfixed32Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWSfixed32Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed32,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWSfixed64DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWSfixed64FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWSfixed64Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWSfixed64Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWSfixed64Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWSfixed64Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWSfixed64Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWSfixed64BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RSfixed64StringRequireUtf8MapWSfixed64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeSfixed64StringMap),jspb.internal.binary.RWSfixed64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeSfixed64StringMap),jspb.internal.binary.RWSfixed64MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readSfixed64,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,i)}),jspb.internal.binary.RWSfixed64BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWSfixed64Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWSfixed64EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWSfixed64Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWSfixed64Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWSfixed64Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWSfixed64Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSfixed64,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWSint32DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWSint32FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWSint32Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWSint32Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWSint32Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWSint32Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWSint32Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWSint32BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RSint32StringRequireUtf8MapWSint32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeSint32StringMap),jspb.internal.binary.RWSint32StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeSint32StringMap),jspb.internal.binary.RWSint32MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readSint32,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,i)}),jspb.internal.binary.RWSint32BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWSint32Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWSint32EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWSint32Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWSint32Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWSint32Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
2),jspb.internal.binary.RWSint32Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint32,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.internal.binary.RWSint64DoubleMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readDouble,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeDouble)}),jspb.internal.binary.RWSint64FloatMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readFloat,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFloat)}),jspb.internal.binary.RWSint64Int64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readInt64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt64)}),jspb.internal.binary.RWSint64Uint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readUint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint64)}),jspb.internal.binary.RWSint64Int32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readInt32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeInt32)}),jspb.internal.binary.RWSint64Fixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readFixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed64)}),jspb.internal.binary.RWSint64Fixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readFixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFixed32)}),jspb.internal.binary.RWSint64BoolMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readBool,0,!1)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,
2n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBool)}),jspb.internal.binary.RSint64StringRequireUtf8MapWSint64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readStringRequireUtf8,0,"")},module$contents$jspb$internal$binary_writeSint64StringMap),jspb.internal.binary.RWSint64StringMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readString,0,"")},module$contents$jspb$internal$binary_writeSint64StringMap),jspb.internal.binary.RWSint64MessageMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n,r,i){return module$contents$jspb$internal$binary_readMessageMapEntry(e,t,n,r,module$contents$jspb$internal$binary_readSint64,0,i)},function(e,t,n,r,i){module$contents$jspb$internal$binary_writeMessageMap(t,n,r,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,i)}),jspb.internal.binary.RWSint64BytesMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readBytes,0,module$exports$jspb$bytestring.ByteString.empty())},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeBytes)}),jspb.internal.binary.RWSint64Uint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readUint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeUint32)}),jspb.internal.binary.RWSint64EnumMap=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readEnum,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeEnum)}),jspb.internal.binary.RWSint64Sfixed32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readSfixed32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed32)}),jspb.internal.binary.RWSint64Sfixed64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readSfixed64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSfixed64)}),jspb.internal.binary.RWSint64Sint32Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readSint32,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint32)}
vendor: 10,437 bytes, line 2
2),jspb.internal.binary.RWSint64Sint64Map=module$contents$jspb$internal$binary_makeRWPair(function(e,t,n){return module$contents$jspb$internal$binary_readMapEntry(e,t,n,module$contents$jspb$internal$binary_readSint64,module$contents$jspb$internal$binary_readSint64,0,0)},function(e,t,n){module$contents$jspb$internal$binary_writeMap(t,n,n,e,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64,module$exports$jspb$binary$writer.BinaryWriter.prototype.writeSint64)}),jspb.extension_field_info={};var module$contents$jspb$extension_field_info_ExtensionFieldInfo=function(e,t,n,r,i,a,o,s){this.fieldIndex=e,this.fieldName=t,goog.asserts.ENABLE_ASSERTS&&(this.extendeeCtor=n),this.ctor=r,this.toObjectFn=i,this.isRepeated=a,this.getExtensionFn=o,this.setExtensionFn=s};function module$contents$jspb$internal_extension_field_info_genericGetExtensionField(e){var t=this.fieldIndex;return this.isRepeated?(0,jspb.internal.jspb_adapters.getRepeatedField)(e,t,!0):(0,jspb.internal.jspb_adapters.getFieldNullable)(e,t,!0)}function module$contents$jspb$internal_extension_field_info_getExtensionWrapperField(e){var t=this.ctor,n=this.fieldIndex;return this.isRepeated?(0,jspb.internal.jspb_adapters.getRepeatedWrapperField)(e,t,n,!0):(0,jspb.internal.jspb_adapters.getWrapperFieldOrUndefined)(e,t,n,!0)}function module$contents$jspb$internal_extension_field_info_genericSetExtensionField(e,t){var n=this.fieldIndex;return this.isRepeated?(0,jspb.internal.jspb_adapters.setRepeatedField)(e,n,t,!0):(0,jspb.internal.jspb_adapters.setField)(e,n,t,!0)}function module$contents$jspb$internal_extension_field_info_setExtensionWrapperField(e,t){var n=this.fieldIndex,r=this.ctor;return this.isRepeated?(0,jspb.internal.jspb_adapters.setRepeatedWrapperField)(e,r,n,t,!0):(0,jspb.internal.jspb_adapters.setWrapperField)(e,r,n,t,!0)}module$contents$jspb$extension_field_info_ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},jspb.extension_field_info.ExtensionFieldInfo=module$contents$jspb$extension_field_info_ExtensionFieldInfo;var module$contents$google3$javascript$common$asserts$asserts_DEBUG_ASSERTS=goog.DEBUG&&goog.DEBUG;function module$contents$google3$javascript$common$asserts$asserts_guard(e,t){return module$contents$google3$javascript$common$asserts$asserts_DEBUG_ASSERTS&&(e.guardType="function"==typeof t?t:function(){return t}),e}jspb.internal.public_for_gencode={};var module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE;function module$contents$jspb$internal$public_for_gencode_toObjectList(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(t(n,e[i]));return r}function module$contents$jspb$internal$public_for_gencode_fromObjectList(e,t){var n=[];if(null==e)return e;for(var r=0;r<e.length;r++)null!=e[r]&&n.push(t(e[r]));return n}function module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e,t){return null==e?e:t(e)}function module$contents$jspb$internal$public_for_gencode_nonNullByteStringAsB64(e){return e.asBase64()}function module$contents$jspb$internal$public_for_gencode_byteStringAsB64(e){return null==e?e:e.asBase64()}function module$contents$jspb$internal$public_for_gencode_nonNullByteStringAsU8(e){return e.asUint8Array()}function module$contents$jspb$internal$public_for_gencode_byteStringAsU8(e){return null==e?e:e.asUint8Array()}function module$contents$jspb$internal$public_for_gencode_byteStringAsBase64OrUint8Array(e){return null==e?e:e.legacyUnwrap()}function module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(e){return null===e?void 0:e}function module$contents$jspb$internal$public_for_gencode_toObjectBytes(e){return null==e?void 0:Array.isArray(e)?e.map(function(e){return e.asBase64()}):e.asBase64()}var module$contents$jspb$internal$public_for_gencode_GeneratedMessageImpl=function(){module$exports$jspb$mutable_message.MutableMessage.apply(this,arguments)};if($jscomp.inherits(module$contents$jspb$internal$public_for_gencode_GeneratedMessageImpl,module$exports$jspb$mutable_message.MutableMessage),module$contents$jspb$internal$public_for_gencode_GeneratedMessageImpl.prototype.toImmutable=function(e){return module$exports$jspb$mutable_message.MutableMessage.prototype.toImmutable.call(this,e)},module$contents$jspb$internal$public_for_gencode_GeneratedMessageImpl.prototype.toMutable=function(e){return module$exports$jspb$mutable_message.MutableMessage.prototype.toMutable.call(this,e)},goog.asserts.ENABLE_ASSERTS&&module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY&&(module$contents$jspb$internal$public_for_gencode_GeneratedMessageImpl.prototype[module$exports$jspb$internal.GENERATED_SUBCLASS_MARKER]=!0),module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE&&module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY){var $jscomp$compprop4={};Object.defineProperties(module$contents$jspb$internal$public_for_gencode_GeneratedMessageImpl,($jscomp$compprop4[Symbol.hasInstance]=module$contents$jspb$internal_invisiblePropValue(Object[Symbol.hasInstance]),$jscomp$compprop4)),goog.asserts.assert(module$contents$jspb$internal$public_for_gencode_GeneratedMessageImpl[Symbol.hasInstance]===Object[Symbol.hasInstance],"broken defineProperties implementation")}var module$contents$jspb$internal$public_for_gencode_GeneratedMessage=module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY?module$contents$jspb$internal$public_for_gencode_GeneratedMessageImpl:module$exports$jspb.Message;function module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(e,t,n){if(module$contents$jspb$immutable_api_token_checkImmutableAccessAllowed(n),goog.asserts.assertString(t),goog.asserts.assertFunction(e),!Array.isArray(t=JSON.parse(t)))throw Error("Expected jspb data to be an array, got "+goog.typeOf(t)+": "+t);return module$contents$jspb$internal_array_state_markArrayImmutable(t),e=new e(t),goog.asserts.assert(module$contents$jspb$internal_isMessage(e)),e}function module$contents$jspb$internal$public_for_gencode_assertMutable(e){if(module$contents$jspb$internal_isImmutableMessage(e))throw Error("message must be mutable")}jspb.internal.public_for_gencode.GENERATE_FROM_OBJECT=module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT,jspb.internal.public_for_gencode.GENERATE_TO_OBJECT=!0,jspb.internal.public_for_gencode.GeneratedMessage=module$contents$jspb$internal$public_for_gencode_GeneratedMessage,jspb.internal.public_for_gencode.ImmutableApiToken=module$exports$jspb$immutable_api_token.ImmutableApiToken,jspb.internal.public_for_gencode.assertMutable=module$contents$jspb$internal$public_for_gencode_assertMutable,jspb.internal.public_for_gencode.byteStringAsB64=module$contents$jspb$internal$public_for_gencode_byteStringAsB64,jspb.internal.public_for_gencode.byteStringAsBase64OrUint8Array=module$contents$jspb$internal$public_for_gencode_byteStringAsBase64OrUint8Array,jspb.internal.public_for_gencode.byteStringAsU8=module$contents$jspb$internal$public_for_gencode_byteStringAsU8,jspb.internal.public_for_gencode.byteStringListAsB64=function(e){return module$contents$goog$array_map(e,module$contents$jspb$internal$public_for_gencode_nonNullByteStringAsB64)},jspb.internal.public_for_gencode.byteStringListAsU8=function(e){return module$contents$goog$array_map(e,module$contents$jspb$internal$public_for_gencode_nonNullByteStringAsU8)},jspb.internal.public_for_gencode.createMessageExtension=function(e,t,n,r,i){return new module$contents$jspb$extension_field_info_ExtensionFieldInfo(e,t,n,r,i,0,module$contents$jspb$internal_extension_field_info_getExtensionWrapperField,module$contents$jspb$internal_extension_field_info_setExtensionWrapperField)},jspb.internal.public_for_gencode.createPrimitiveExtension=function(e,t,n,r,i){return new module$contents$jspb$extension_field_info_ExtensionFieldInfo(e,t,n,null,null,0,r=void 0===r?module$contents$jspb$internal_extension_field_info_genericGetExtensionField:r,i=void 0===i?module$contents$jspb$internal_extension_field_info_genericSetExtensionField:i)},jspb.internal.public_for_gencode.createRepeatedMessageExtension=function(e,t,n,r,i){return new module$contents$jspb$extension_field_info_ExtensionFieldInfo(e,t,n,r,i,1,module$contents$jspb$internal_extension_field_info_getExtensionWrapperField,module$contents$jspb$internal_extension_field_info_setExtensionWrapperField)},jspb.internal.public_for_gencode.createRepeatedPrimitiveExtension=function(e,t,n,r,i){return new module$contents$jspb$extension_field_info_ExtensionFieldInfo(e,t,n,null,null,1,r=void 0===r?module$contents$jspb$internal_extension_field_info_genericGetExtensionField:r,i=void 0===i?module$contents$jspb$internal_extension_field_info_genericSetExtensionField:i)},jspb.internal.public_for_gencode.fromObjectAnyValue=function(e,t){if(goog.asserts.assertInstanceof(e,module$exports$jspb.Message),null==t)return e;if(Array.isArray(t))return(0,jspb.internal.jspb_adapters.setField)(e,2,module$contents$jspb$internal_copy_cloneJspb(t,module$contents$jspb$internal_array_state_copyArrayBitsForClone));if("string"==typeof t||t instanceof module$exports$jspb$bytestring.ByteString||module$contents$jspb$internal_bytes_isU8(t))return(0,jspb.internal.jspb_adapters.setProto3BytesField)(e,2,t);throw Error("invalid value in Any.value field: "+t+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array")},jspb.internal.public_for_gencode.fromObjectList=module$contents$jspb$internal$public_for_gencode_fromObjectList,jspb.internal.public_for_gencode.fromObjectNullable=module$contents$jspb$internal$public_for_gencode_fromObjectNullable,jspb.internal.public_for_gencode.getAnyValueField=function(e){if(Array.isArray((0,jspb.internal.jspb_adapters.getFieldNullable)(e,2)))throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return(0,jspb.internal.jspb_adapters.getBytesFieldWithDefault)(e,2)},jspb.internal.public_for_gencode.getExtensionBytesField=function(e){var t=this.fieldIndex;return this.isRepeated?(0,jspb.internal.jspb_adapters.getRepeatedBytesField)(e,t,!0):(0,jspb.internal.jspb_adapters.getBytesFieldNullable)(e,t,!0)},jspb.internal.public_for_gencode.getInlineAnyValue=function(e,t){var n=(0,jspb.internal.jspb_adapters.getFieldNullable)(e,2);if(null!=n&&!(Array.isArray(n)||"object"==typeof n&&module$contents$jspb$internal_isMessage(goog.asserts.assert(n))))throw Error("saw an invali
2d value of type '"+goog.typeOf(n)+"' in the Any.value field");var r=module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(n,t,!0);if(!(r instanceof t))throw Error("incorrect type in any value: got "+r.constructor.displayName+", expected "+t.displayName);t=module$contents$jspb$internal_isImmutableMessage(e);var i=module$contents$jspb$internal_isImmutableMessage(r);return i&&!t?r=r.toMutable(module$exports$jspb$immutable_api_token.IMMUTABLE_API_TOKEN):!i&&t&&(r=r.toImmutable(module$exports$jspb$immutable_api_token.IMMUTABLE_API_TOKEN)),n!==r&&(0,jspb.internal.jspb_adapters.setField)(e,2,r,!1),r},jspb.internal.public_for_gencode.guard=module$contents$google3$javascript$common$asserts$asserts_guard,jspb.internal.public_for_gencode.isImmutableMessage=module$contents$jspb$internal_isImmutableMessage,jspb.internal.public_for_gencode.mapFromObject=function(e,t,n){for(var r=0;r<t.length;r++){var i=t[r][0],a=n(t[r][1]);e.set(i,a)}return e},jspb.internal.public_for_gencode.mapToObject=function(e,t,n){var r=[];return e.forEach(function(e,i){r.push([i,n?n(t,e):e])}),r},jspb.internal.public_for_gencode.markShared=module$contents$jspb$internal_array_state_markShared,jspb.internal.public_for_gencode.packAnyValueBinary=function(e,t){return goog.asserts.assertInstanceof(e,module$exports$jspb.Message),t=module$contents$jspb$binary$internal_buffer_bufferFromSource(t),(0,jspb.internal.jspb_adapters.setProto3BytesField)(e,2,t.isImmutable?new Uint8Array(t.buffer):t.buffer),e},jspb.internal.public_for_gencode.toObjectAnyValue=function(e){if(null==(e=(0,jspb.internal.jspb_adapters.getFieldNullable)(e,2)))return"";if("string"==typeof e)return e;if(module$contents$jspb$internal_bytes_isU8(e))return goog.crypt.base64.encodeByteArray(e);if(Array.isArray(e))return module$contents$jspb$internal_copy_cloneJspb(e,module$contents$jspb$internal_array_state_copyArrayBitsForClone);if(e instanceof module$exports$jspb$bytestring.ByteString)return e.asBase64();if(e instanceof module$exports$jspb.Message)return module$contents$jspb$internal_copy_cloneJspb(e.internalArray_,module$contents$jspb$internal_array_state_copyArrayBitsForClone);throw Error("invalid value in Any.value field: "+e)},jspb.internal.public_for_gencode.toObjectBytes=module$contents$jspb$internal$public_for_gencode_toObjectBytes,jspb.internal.public_for_gencode.toObjectExtension=function(e,t,n,r){for(var i in n)if(module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(n,i)){var a=n[i],o=e.getExtension(a);if(null!=o){var s=void 0;for(s in a.fieldName)if(a.fieldName.hasOwnProperty(s))break;var l=a.toObjectFn;t[s]=l?a.isRepeated?module$contents$jspb$internal$public_for_gencode_toObjectList(o,l,r):l(r,o):o}}},jspb.internal.public_for_gencode.toObjectList=module$contents$jspb$internal$public_for_gencode_toObjectList,jspb.internal.public_for_gencode.toObjectPrimitive=module$contents$jspb$internal$public_for_gencode_toObjectPrimitive,jspb.internal.public_for_gencode.untypedDeserializeAsImmutable=module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable,jspb.Message=module$exports$jspb.Message;var proto={acceleration:{}};function module$contents$goog$object_getKeys(e){var t,n=[],r=0;for(t in e)n[r++]=t;return n}function module$contents$goog$object_containsValue(e,t){for(var n in e)if(e[n]==t)return!0;return!1}function module$contents$goog$object_findKey(e,t,n){for(var r in e)if(t.call(n,e[r],r,e))return r}function module$contents$goog$object_unsafeClone(e){if(!e||"object"!=typeof e)return e;if("function"==typeof e.clone)return e.clone();if("undefined"!=typeof Map&&e instanceof Map)return new Map(e);if("undefined"!=typeof Set&&e instanceof Set)return new Set(e);if(e instanceof Date)return new Date(e.getTime());var t,n=Array.isArray(e)?[]:"function"!=typeof ArrayBuffer||"function"!=typeof ArrayBuffer.isView||!ArrayBuffer.isView(e)||e instanceof DataView?{}:new e.constructor(e.length);for(t in e)n[t]=module$contents$goog$object_unsafeClone(e[t]);return n}proto.acceleration.$internalDoNotUseModelIdentifierReader=function(){},proto.acceleration.$internalDoNotUseModelIdentifierReader.prototype.getModelFingerprint=function(){},proto.acceleration.$internalDoNotUseModelIdentifierReader.prototype.getModelFingerprint_legacyNullable=function(){},proto.acceleration.$internalDoNotUseModelIdentifierReader.prototype.hasModelFingerprint=function(){},proto.acceleration.$internalDoNotUseModelIdentifierReader.prototype.getModelFingerprintOrUndefined=function(){},proto.acceleration.$internalDoNotUseModelIdentifierReader.prototype.getModelId=function(){},proto.acceleration.$internalDoNotUseModelIdentifierReader.prototype.getModelId_legacyNullable=function(){},proto.acceleration.$internalDoNotUseModelIdentifierReader.prototype.hasModelId=function(){},proto.acceleration.$internalDoNotUseModelIdentifierReader.prototype.getModelIdOrUndefined=function(){},proto.acceleration.ModelIdentifier=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.ModelIdentifier,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.ModelIdentifier.prototype.getModelFingerprint=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.ModelIdentifier.prototype.getModelFingerprint_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.ModelIdentifier.prototype.setModelFingerprint=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.acceleration.ModelIdentifier.prototype.clearModelFingerprint=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.ModelIdentifier.prototype.hasModelFingerprint=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.acceleration.ModelIdentifier.prototype.getModelFingerprintOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.acceleration.ModelIdentifier.prototype.getModelId=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,2)},proto.acceleration.ModelIdentifier.prototype.getModelId_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,2)},proto.acceleration.ModelIdentifier.prototype.setModelId=function(e){return jspb.internal.jspb_adapters.setStringField(this,2,e)},proto.acceleration.ModelIdentifier.prototype.clearModelId=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.ModelIdentifier.prototype.hasModelId=function(){return jspb.internal.jspb_adapters.hasStringField(this,2)},proto.acceleration.ModelIdentifier.prototype.getModelIdOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,2)},proto.acceleration.ModelIdentifier.prototype.serializeBinary=function(){return proto.acceleration.ModelIdentifier.serializeBinary(this)},proto.acceleration.ModelIdentifier.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.ModelIdentifier.internalDoNotUse$acceleration$ModelIdentifier$binaryFieldsObject)},proto.acceleration.ModelIdentifier.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.ModelIdentifier.internalDoNotUse$acceleration$ModelIdentifier$binaryFieldsObject,t)},proto.acceleration.ModelIdentifier.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.ModelIdentifier.internalDoNotUse$acceleration$ModelIdentifier$binaryFieldsObject)},proto.acceleration.ModelIdentifier.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.ModelIdentifier,e)},proto.acceleration.ModelIdentifier.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.ModelIdentifier&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableModelIdentifier"),proto.acceleration.MutableModelIdentifier=proto.acceleration.ModelIdentifier,proto.acceleration.ReadonlyModelIdentifier={},proto.acceleration.ImmutableModelIdentifier=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableModelIdentifier,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableModelIdentifier.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.ModelIdentifier,e,t)},proto.acceleration.ImmutableModelIdentifier.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.ModelIdentifier)},proto.acceleration.ImmutableModelIdentifier.serializeBinary=function(e){return proto.acceleration.ModelIdentifier.serializeBinary(e)},proto.acceleration.ImmutableModelIdentifier.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.ModelIdentifier.internalDoNotUse$acceleration$ModelIdentifier$binaryFieldsObject,t,n)},proto.acceleration.ImmutableModelIdentifier.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.ModelIdentifier&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableModelIdentifier"),proto.acceleration.ModelIdentifier.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.ModelIdentifier.fromObject=function(e){var t=new proto.acceleration.ModelIdentifier;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.modelFingerprint),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,2,e.modelId),t}),proto.acceleration.ModelIdentifier.prototype.toObject=function(e){return proto.acceleration.ModelIdentifier.internal_toObject(e,this)},proto.acceleration.ModelIdentifier.internal_toObject=function(e,t){if(null!=t){var n={modelFingerprint:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),modelId:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,2))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.ModelIdentifier.internalDoNotUse$acceleration$ModelIdentifier$binaryFieldsObject=[proto.acceleration.ModelIdentifier,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWString],proto.acceleration.$internalDoNotUseInferenceToUseForReader=function(){},proto.acceleration.$internalDoNotUseInferenceToUseForReader.prototype.getModelNamespace=function(){},proto.acceleration.$internalDoNotUseInferenceToUseForReader.prototype.getModelNamespace_legacyNullable=function(){},proto.acceleration.$internalDoNotUseInferenceToUseForReader.prototype.hasModelNamespace=function(){},proto.acceleration.$internalDoNotUseInferenceToUseForReader.prototype.getModelNamespaceOrUndefined=function(){},proto.acceleration.$internalDoNotUseInferenceToUseForReader.prototype.getModel=function(){},proto.acceleration.$internalDoNotUseInferenceToUseForReader.prototype.getReadonlyModel=function(){},proto.acceleration.$internalDoNotUseInferenceToUseForReader.prototype.hasModel=function(){},proto.acceleration.InferenceToUseFor=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.InferenceToUseFor,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.InferenceToUseFor.prototype.getModelNamespace=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.InferenceToUseFor.prototype.getModelNamespace_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.InferenceToUseFor.prototype.setModelNamespace=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.acceleration.InferenceToUseFor.prototype.clearModelNamespace=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.InferenceToUseFor.prototype.hasModelNamespace=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.acceleration.InferenceToUseFor.prototype.getModelNamespaceOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.acceleration.InferenceToUseFor.prototype.getModel=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.ModelIdentifier,2)},proto.acceleration.InferenceToUseFor.prototype.getReadonlyModel=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.ModelIdentifier,2)},proto.acceleration.InferenceToUseFor.prototype.getMutableModel=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.ModelIdentifier,2)},proto.acceleration.InferenceToUseFor.prototype.setModel=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.ModelIdentifier,2,e)},proto.acceleration.InferenceToUseFor.prototype.clearModel=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.InferenceToUseFor.prototype.hasModel=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.ModelIdentifier,2)},proto.acceleration.InferenceToUseFor.prototype.serializeBinary=function(){return proto.acceleration.InferenceToUseFor.serializeBinary(this)},proto.acceleration.InferenceToUseFor.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.InferenceToUseFor.internalDoNotUse$acceleration$InferenceToUseFor$binaryFieldsObject)},proto.acceleration.InferenceToUseFor.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.InferenceToUseFor.internalDoNotUse$acceleration$InferenceToUseFor$binaryFieldsObject,t)},proto.acceleration.InferenceToUseFor.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.InferenceToUseFor.internalDoNotUse$acceleration$InferenceToUseFor$binaryFieldsObject)},proto.acceleration.InferenceToUseFor.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.InferenceToUseFor,e)},proto.acceleration.InferenceToUseFor.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.InferenceToUseFor&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableInferenceToUseFor"),proto.acceleration.MutableInferenceToUseFor=proto.acceleration.InferenceToUseFor,proto.acceleration.ReadonlyInferenceToUseFor={},proto.acceleration.ImmutableInferenceToUseFor=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableInferenceToUseFor,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableInferenceToUseFor.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.InferenceToUseFor,e,t)},proto.acceleration.ImmutableInferenceToUseFor.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.InferenceToUseFor)},proto.acceleration.ImmutableInferenceToUseFor.serializeBinary=function(e){return proto.acceleration.InferenceToUseFor.serializeBinary(e)},proto.acceleration.ImmutableInferenceToUseFor.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.InferenceToUseFor.internalDoNotUse$acceleration$InferenceToUseFor$binaryFieldsObject,t,n)},proto.acceleration.ImmutableInferenceToUseFor.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.InferenceToUseFor&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableInferenceToUseFor"),proto.acceleration.InferenceToUseFor.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.InferenceToUseFor.fromObject=function(e){var t=new proto.acceleration.InferenceToUseFor;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish
vendor: 115,116 bytes, line 2
2(t,1,e.modelNamespace),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.ModelIdentifier,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.model,proto.acceleration.ModelIdentifier.fromObject)),t}),proto.acceleration.InferenceToUseFor.prototype.toObject=function(e){return proto.acceleration.InferenceToUseFor.internal_toObject(e,this)},proto.acceleration.InferenceToUseFor.internal_toObject=function(e,t){if(null!=t){var n={modelNamespace:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),model:proto.acceleration.ModelIdentifier.internal_toObject(e,t.getModel())};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.InferenceToUseFor.internalDoNotUse$acceleration$InferenceToUseFor$binaryFieldsObject=[proto.acceleration.InferenceToUseFor,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWMessage,proto.acceleration.ModelIdentifier.internalDoNotUse$acceleration$ModelIdentifier$binaryFieldsObject],proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader=function(){},proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getStorageFilePath=function(){},proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getStorageFilePath_legacyNullable=function(){},proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader.prototype.hasStorageFilePath=function(){},proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getStorageFilePathOrUndefined=function(){},proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getDataDirectoryPath=function(){},proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getDataDirectoryPath_legacyNullable=function(){},proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader.prototype.hasDataDirectoryPath=function(){},proto.acceleration.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getDataDirectoryPathOrUndefined=function(){},proto.acceleration.BenchmarkStoragePaths=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.BenchmarkStoragePaths,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.BenchmarkStoragePaths.prototype.getStorageFilePath=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.BenchmarkStoragePaths.prototype.getStorageFilePath_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.BenchmarkStoragePaths.prototype.setStorageFilePath=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.acceleration.BenchmarkStoragePaths.prototype.clearStorageFilePath=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.BenchmarkStoragePaths.prototype.hasStorageFilePath=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.acceleration.BenchmarkStoragePaths.prototype.getStorageFilePathOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.acceleration.BenchmarkStoragePaths.prototype.getDataDirectoryPath=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,2)},proto.acceleration.BenchmarkStoragePaths.prototype.getDataDirectoryPath_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,2)},proto.acceleration.BenchmarkStoragePaths.prototype.setDataDirectoryPath=function(e){return jspb.internal.jspb_adapters.setStringField(this,2,e)},proto.acceleration.BenchmarkStoragePaths.prototype.clearDataDirectoryPath=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.BenchmarkStoragePaths.prototype.hasDataDirectoryPath=function(){return jspb.internal.jspb_adapters.hasStringField(this,2)},proto.acceleration.BenchmarkStoragePaths.prototype.getDataDirectoryPathOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,2)},proto.acceleration.BenchmarkStoragePaths.prototype.serializeBinary=function(){return proto.acceleration.BenchmarkStoragePaths.serializeBinary(this)},proto.acceleration.BenchmarkStoragePaths.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.BenchmarkStoragePaths.internalDoNotUse$acceleration$BenchmarkStoragePaths$binaryFieldsObject)},proto.acceleration.BenchmarkStoragePaths.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.BenchmarkStoragePaths.internalDoNotUse$acceleration$BenchmarkStoragePaths$binaryFieldsObject,t)},proto.acceleration.BenchmarkStoragePaths.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.BenchmarkStoragePaths.internalDoNotUse$acceleration$BenchmarkStoragePaths$binaryFieldsObject)},proto.acceleration.BenchmarkStoragePaths.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.BenchmarkStoragePaths,e)},proto.acceleration.BenchmarkStoragePaths.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.BenchmarkStoragePaths&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableBenchmarkStoragePaths"),proto.acceleration.MutableBenchmarkStoragePaths=proto.acceleration.BenchmarkStoragePaths,proto.acceleration.ReadonlyBenchmarkStoragePaths={},proto.acceleration.ImmutableBenchmarkStoragePaths=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableBenchmarkStoragePaths,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableBenchmarkStoragePaths.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.BenchmarkStoragePaths,e,t)},proto.acceleration.ImmutableBenchmarkStoragePaths.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.BenchmarkStoragePaths)},proto.acceleration.ImmutableBenchmarkStoragePaths.serializeBinary=function(e){return proto.acceleration.BenchmarkStoragePaths.serializeBinary(e)},proto.acceleration.ImmutableBenchmarkStoragePaths.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.BenchmarkStoragePaths.internalDoNotUse$acceleration$BenchmarkStoragePaths$binaryFieldsObject,t,n)},proto.acceleration.ImmutableBenchmarkStoragePaths.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.BenchmarkStoragePaths&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableBenchmarkStoragePaths"),proto.acceleration.BenchmarkStoragePaths.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.BenchmarkStoragePaths.fromObject=function(e){var t=new proto.acceleration.BenchmarkStoragePaths;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.storageFilePath),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,2,e.dataDirectoryPath),t}),proto.acceleration.BenchmarkStoragePaths.prototype.toObject=function(e){return proto.acceleration.BenchmarkStoragePaths.internal_toObject(e,this)},proto.acceleration.BenchmarkStoragePaths.internal_toObject=function(e,t){if(null!=t){var n={storageFilePath:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),dataDirectoryPath:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,2))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.BenchmarkStoragePaths.internalDoNotUse$acceleration$BenchmarkStoragePaths$binaryFieldsObject=[proto.acceleration.BenchmarkStoragePaths,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWString],proto.acceleration.$internalDoNotUseModelFileReader=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getFilename=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getFilename_legacyNullable=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.hasFilename=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getFilenameOrUndefined=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getFd=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getFd_legacyNullable=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.hasFd=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getFdOrUndefined=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getOffset=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getOffset_legacyNullable=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.hasOffset=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getOffsetOrUndefined=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getLength=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getLength_legacyNullable=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.hasLength=function(){},proto.acceleration.$internalDoNotUseModelFileReader.prototype.getLengthOrUndefined=function(){},proto.acceleration.ModelFile=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.ModelFile,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.ModelFile.prototype.getFilename=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.ModelFile.prototype.getFilename_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.ModelFile.prototype.setFilename=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.acceleration.ModelFile.prototype.clearFilename=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.ModelFile.prototype.hasFilename=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.acceleration.ModelFile.prototype.getFilenameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.acceleration.ModelFile.prototype.getFd=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.ModelFile.prototype.getFd_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.ModelFile.prototype.setFd=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.acceleration.ModelFile.prototype.clearFd=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.ModelFile.prototype.hasFd=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.acceleration.ModelFile.prototype.getFdOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.acceleration.ModelFile.prototype.getOffset=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,3)},proto.acceleration.ModelFile.prototype.getOffset_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,3)},proto.acceleration.ModelFile.prototype.setOffset=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.acceleration.ModelFile.prototype.clearOffset=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.ModelFile.prototype.hasOffset=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.acceleration.ModelFile.prototype.getOffsetOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.acceleration.ModelFile.prototype.getLength=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.ModelFile.prototype.getLength_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.ModelFile.prototype.setLength=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.acceleration.ModelFile.prototype.clearLength=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.acceleration.ModelFile.prototype.hasLength=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.acceleration.ModelFile.prototype.getLengthOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.acceleration.ModelFile.prototype.serializeBinary=function(){return proto.acceleration.ModelFile.serializeBinary(this)},proto.acceleration.ModelFile.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.ModelFile.internalDoNotUse$acceleration$ModelFile$binaryFieldsObject)},proto.acceleration.ModelFile.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.ModelFile.internalDoNotUse$acceleration$ModelFile$binaryFieldsObject,t)},proto.acceleration.ModelFile.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.ModelFile.internalDoNotUse$acceleration$ModelFile$binaryFieldsObject)},proto.acceleration.ModelFile.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.ModelFile,e)},proto.acceleration.ModelFile.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.ModelFile&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableModelFile"),proto.acceleration.MutableModelFile=proto.acceleration.ModelFile,proto.acceleration.ReadonlyModelFile={},proto.acceleration.ImmutableModelFile=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableModelFile,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableModelFile.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.ModelFile,e,t)},proto.acceleration.ImmutableModelFile.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.ModelFile)},proto.acceleration.ImmutableModelFile.serializeBinary=function(e){return proto.acceleration.ModelFile.serializeBinary(e)},proto.acceleration.ImmutableModelFile.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.ModelFile.internalDoNotUse$acceleration$ModelFile$binaryFieldsObject,t,n)},proto.acceleration.ImmutableModelFile.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.ModelFile&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableModelFile"),proto.acceleration.ModelFile.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.ModelFile.fromObject=function(e){var t=new proto.acceleration.ModelFile;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.filename),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.fd),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.offset),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.length),t}),proto.acceleration.ModelFile.prototype.toObject=function(e){return proto.acceleration.ModelFile.internal_toObject(e,this)},proto.acceleration.ModelFile.internal_toObject=function(e,t){if(null!=t){var n={filename:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),fd:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),offset:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3)),length:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.ModelFile.internalDoNotUse$acceleration$ModelFile$binaryFieldsObject=[proto.acceleration.ModelFile,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWInt64,3,jspb.internal.binary.RWInt64,4,jspb.internal.binary.RWInt64],proto.acceleration.$internalDoNotUseCPUSettingsReader=function(){},proto.acceleration.$internalDoNotUseCPUSettingsReader.prototype.getNumThreads=function(){},proto.acceleration.$internalDoNotUseCPUSettingsReader.prototype.hasNumThreads=function(){},proto.acceleration.$internalDoNotUseCPUSettingsReader.prototype.getNumThreadsOrUndefined=function(){},proto.acceleration.CPUSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.CPUSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.CPUSettings.prototype.getNumThreads=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,1,-1)},proto.acceleration.CPUSettings.prototype.setNumThreads=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.CPUSettings.prototype.clearNumThreads=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.CPUSettings.prototype.hasNumThreads=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.CPUSettings.prototype.getNumThreadsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.CPUSettings.prototype.serializeBinary=function(){return proto.acceleration.CPUSettings.serializeBinary(this)},proto.acceleration.CPUSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.CPUSettings.internalDoNotUse$acceleration$CPUSettings$binaryFieldsObject)},proto.acceleration.CPUSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.CPUSettings.internalDoNotUse$acceleration$CPUSettings$binaryFieldsObject,t)},proto.acceleration.CPUSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.CPUSettings.internalDoNotUse$acceleration$CPUSettings$binaryFieldsObject)},proto.acceleration.CPUSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.CPUSettings,e)},proto.acceleration.CPUSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.CPUSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableCPUSettings"),proto.acceleration.MutableCPUSettings=proto.acceleration.CPUSettings,proto.acceleration.ReadonlyCPUSettings={},proto.acceleration.ImmutableCPUSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableCPUSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableCPUSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.CPUSettings,e,t)},proto.acceleration.ImmutableCPUSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.CPUSettings)},proto.acceleration.ImmutableCPUSettings.serializeBinary=function(e){return proto.acceleration.CPUSettings.serializeBinary(e)},proto.acceleration.ImmutableCPUSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.CPUSettings.internalDoNotUse$acceleration$CPUSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableCPUSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.CPUSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableCPUSettings"),proto.acceleration.CPUSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.CPUSettings.fromObject=function(e){var t=new proto.acceleration.CPUSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.numThreads),t}),proto.acceleration.CPUSettings.prototype.toObject=function(e){return proto.acceleration.CPUSettings.internal_toObject(e,this)},proto.acceleration.CPUSettings.internal_toObject=function(e,t){if(null!=t){var n={numThreads:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,1,-1)};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.CPUSettings.internalDoNotUse$acceleration$CPUSettings$binaryFieldsObject=[proto.acceleration.CPUSettings,1,jspb.internal.binary.RWInt32],proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getDevice=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getDevice_legacyNullable=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.hasDevice=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getDeviceOrUndefined=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getPerformance=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.hasPerformance=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getPerformanceOrUndefined=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getUsbAlwaysDfu=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getUsbAlwaysDfu_legacyNullable=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.hasUsbAlwaysDfu=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getUsbAlwaysDfuOrUndefined=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getUsbMaxBulkInQueueLength=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getUsbMaxBulkInQueueLength_legacyNullable=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.hasUsbMaxBulkInQueueLength=function(){},proto.acceleration.$internalDoNotUseCoralDelegateSettingsReader.prototype.getUsbMaxBulkInQueueLengthOrUndefined=function(){},proto.acceleration.CoralDelegateSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.CoralDelegateSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.CoralDelegateSettings.prototype.getDevice=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.CoralDelegateSettings.prototype.getDevice_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.CoralDelegateSettings.prototype.setDevice=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.acceleration.CoralDelegateSettings.prototype.clearDevice=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.CoralDelegateSettings.prototype.hasDevice=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.acceleration.CoralDelegateSettings.prototype.getDeviceOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.acceleration.CoralDelegateSettings.prototype.getPerformance=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,2,1)},proto.acceleration.CoralDelegateSettings.prototype.setPerformance=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.acceleration.CoralDelegateSettings.prototype.clearPerformance=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.CoralDelegateSettings.prototype.hasPerformance=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.acceleration.CoralDelegateSettings.prototype.getPerformanceOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.acceleration.CoralDelegateSettings.prototype.getUsbAlwaysDfu=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,3)},proto.acceleration.CoralDelegateSettings.prototype.getUsbAlwaysDfu_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,3)},proto.acceleration.CoralDelegateSettings.prototype.setUsbAlwaysDfu=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.acceleration.CoralDelegateSettings.prototype.clearUsbAlwaysDfu=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.CoralDelegateSettings.prototype.hasUsbAlwaysDfu=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.acceleration.CoralDelegateSettings.prototype.getUsbAlwaysDfuOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,3)},proto.acceleration.CoralDelegateSettings.prototype.getUsbMaxBulkInQueueLength=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.CoralDelegateSettings.prototype.getUsbMaxBulkInQueueLength_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.CoralDelegateSettings.prototype.setUsbMaxBulkInQueueLength=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.acceleration.CoralDelegateSettings.prototype.clearUsbMaxBulkInQueueLength=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.acceleration.CoralDelegateSettings.prototype.hasUsbMaxBulkInQueueLength=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.acceleration.CoralDelegateSettings.prototype.getUsbMaxBulkInQueueLengthOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.acceleration.CoralDelegateSettings.prototype.serializeBinary=function(){return proto.acceleration.CoralDelegateSettings.serializeBinary(this)},proto.acceleration.CoralDelegateSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.CoralDelegateSettings.internalDoNotUse$acceleration$CoralDelegateSettings$binaryFieldsObject)},proto.acceleration.CoralDelegateSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.CoralDelegateSettings.internalDoNotUse$acceleration$CoralDelegateSettings$binaryFieldsObject,t)},proto.acceleration.CoralDelegateSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.CoralDelegateSettings.internalDoNotUse$acceleration$CoralDelegateSettings$binaryFieldsObject)},proto.acceleration.CoralDelegateSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.CoralDelegateSettings,e)},proto.acceleration.CoralDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.CoralDelegateSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableCoralDelegateSettings"),proto.acceleration.MutableCoralDelegateSettings=proto.acceleration.CoralDelegateSettings,proto.acceleration.ReadonlyCoralDelegateSettings={},proto.acceleration.ImmutableCoralDelegateSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableCoralDelegateSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableCoralDelegateSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.CoralDelegateSettings,e,t)},proto.acceleration.ImmutableCoralDelegateSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.CoralDelegateSettings)},proto.acceleration.ImmutableCoralDelegateSettings.serializeBinary=function(e){return proto.acceleration.CoralDelegateSettings.serializeBinary(e)},proto.acceleration.ImmutableCoralDelegateSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.CoralDelegateSettings.internalDoNotUse$acceleration$CoralDelegateSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableCoralDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.CoralDelegateSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableCoralDelegateSettings"),proto.acceleration.CoralDelegateSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.CoralDelegateSettings.fromObject=function(e){var t=new proto.acceleration.CoralDelegateSettings;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.device),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.performance),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.usbAlwaysDfu),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.usbMaxBulkInQueueLength),t}),proto.acceleration.CoralDelegateSettings.prototype.toObject=function(e){return proto.acceleration.CoralDelegateSettings.internal_toObject(e,this)},proto.acceleration.CoralDelegateSettings.internal_toObject=function(e,t){if(null!=t){var n={device:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),performance:jspb.internal.jspb_adapters.getFieldWithDefault(t,2,1),usbAlwaysDfu:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,3)),usbMaxBulkInQueueLength:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.CoralDelegateSettings.Performance={UNDEFINED:0,MAXIMUM:1,HIGH:2,MEDIUM:3,LOW:4},proto.acceleration.CoralDelegateSettings.internalDoNotUse$acceleration$CoralDelegateSettings$binaryFieldsObject=[proto.acceleration.CoralDelegateSettings,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWEnum,3,jspb.internal.binary.RWBool,4,jspb.internal.binary.RWInt32],proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getEnabledDevices=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getEnabledDevices_legacyNullable=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.hasEnabledDevices=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getEnabledDevicesOrUndefined=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getCoremlVersion=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getCoremlVersion_legacyNullable=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.hasCoremlVersion=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getCoremlVersionOrUndefined=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getMaxDelegatedPartitions=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.hasMaxDelegatedPartitions=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getMaxDelegatedPartitionsOrUndefined=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getMinNodesPerPartition=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.hasMinNodesPerPartition=function(){},proto.acceleration.$internalDoNotUseCoreMLDelegateSettingsReader.prototype.getMinNodesPerPartitionOrUndefined=function(){},proto.acceleration.CoreMLDelegateSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.CoreMLDelegateSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.CoreMLDelegateSettings.prototype.getEnabledDevices=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.CoreMLDelegateSettings.prototype.getEnabledDevices_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.CoreMLDelegateSettings.prototype.setEnabledDevices=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.CoreMLDelegateSettings.prototype.clearEnabledDevices=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.CoreMLDelegateSettings.prototype.hasEnabledDevices=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.CoreMLDelegateSettings.prototype.getEnabledDevicesOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.CoreMLDelegateSettings.prototype.getCoremlVersion=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.CoreMLDelegateSettings.prototype.getCoremlVersion_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.CoreMLDelegateSettings.prototype.setCoremlVersion=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.acceleration.CoreMLDelegateSettings.prototype.clearCoremlVersion=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.CoreMLDelegateSettings.prototype.hasCoremlVersion=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.acceleration.CoreMLDelegateSettings.prototype.getCoremlVersionOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.acceleration.CoreMLDelegateSettings.prototype.getMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,3,0)},proto.acceleration.CoreMLDelegateSettings.prototype.setMaxDelegatedPartitions=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.acceleration.CoreMLDelegateSettings.prototype.clearMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.CoreMLDelegateSettings.prototype.hasMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.acceleration.CoreMLDelegateSettings.prototype.getMaxDelegatedPartitionsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.acceleration.CoreMLDelegateSettings.prototype.getMinNodesPerPartition=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,4,2)},proto.acceleration.CoreMLDelegateSettings.prototype.setMinNodesPerPartition=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.acceleration.CoreMLDelegateSettings.prototype.clearMinNodesPerPartition=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.acceleration.CoreMLDelegateSettings.prototype.hasMinNodesPerPartition=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.acceleration.CoreMLDelegateSettings.prototype.getMinNodesPerPartitionOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.acceleration.CoreMLDelegateSettings.prototype.serializeBinary=function(){return proto.acceleration.CoreMLDelegateSettings.serializeBinary(this)},proto.acceleration.CoreMLDelegateSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.CoreMLDelegateSettings.internalDoNotUse$acceleration$CoreMLDelegateSettings$binaryFieldsObject)},proto.acceleration.CoreMLDelegateSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.CoreMLDelegateSettings.internalDoNotUse$acceleration$CoreMLDelegateSettings$binaryFieldsObject,t)},proto.acceleration.CoreMLDelegateSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.CoreMLDelegateSettings.internalDoNotUse$acceleration$CoreMLDelegateSettings$binaryFieldsObject)},proto.acceleration.CoreMLDelegateSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.CoreMLDelegateSettings,e)},proto.acceleration.CoreMLDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.CoreMLDelegateSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableCoreMLDelegateSettings"),proto.acceleration.MutableCoreMLDelegateSettings=proto.acceleration.CoreMLDelegateSettings,proto.acceleration.ReadonlyCoreMLDelegateSettings={},proto.acceleration.ImmutableCoreMLDelegateSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableCoreMLDelegateSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableCoreMLDelegateSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.CoreMLDelegateSettings,e,t)},proto.acceleration.ImmutableCoreMLDelegateSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.CoreMLDelegateSettings)},proto.acceleration.ImmutableCoreMLDelegateSettings.serializeBinary=function(e){return proto.acceleration.CoreMLDelegateSettings.serializeBinary(e)},proto.acceleration.ImmutableCoreMLDelegateSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.CoreMLDelegateSettings.internalDoNotUse$acceleration$CoreMLDelegateSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableCoreMLDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.CoreMLDelegateSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableCoreMLDelegateSettings"),proto.acceleration.CoreMLDelegateSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.CoreMLDelegateSettings.fromObject=function(e){var t=new proto.acceleration.CoreMLDelegateSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.enabledDevices),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.coremlVersion),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.maxDelegatedPartitions),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.minNodesPerPartition),t}),proto.acceleration.CoreMLDelegateSettings.prototype.toObject=function(e){return proto.acceleration.CoreMLDelegateSettings.internal_toObject(e,this)},proto.acceleration.CoreMLDelegateSettings.internal_toObject=function(e,t){if(null!=t){var n={enabledDevices:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),coremlVersion:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),maxDelegatedPartitions:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,3,0),minNodesPerPartition:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,4,2)};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.CoreMLDelegateSettings.EnabledDevices={DEVICES_ALL:0,DEVICES_WITH_NEURAL_ENGINE:1},proto.acceleration.CoreMLDelegateSettings.internalDoNotUse$acceleration$CoreMLDelegateSettings$binaryFieldsObject=[proto.acceleration.CoreMLDelegateSettings,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWInt32,4,jspb.internal.binary.RWInt32],proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getPlatformType=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getPlatformType_legacyNullable=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.hasPlatformType=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getPlatformTypeOrUndefined=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getNumChips=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getNumChips_legacyNullable=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.hasNumChips=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getNumChipsOrUndefined=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getDevicePathsList=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getChipFamily=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getChipFamily_legacyNullable=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.hasChipFamily=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateDeviceSpecReader.prototype.getChipFamilyOrUndefined=function(){},proto.acceleration.EdgeTpuDelegateDeviceSpec=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.acceleration.EdgeTpuDelegateDeviceSpec.repeatedFields_)},$jscomp.inherits(proto.acceleration.EdgeTpuDelegateDeviceSpec,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getPlatformType=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getPlatformType_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.setPlatformType=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.clearPlatformType=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.hasPlatformType=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getPlatformTypeOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getNumChips=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getNumChips_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.setNumChips=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.clearNumChips=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.hasNumChips=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getNumChipsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getDevicePathsList=function(){return jspb.internal.jspb_adapters.getRepeatedStringField(this,3)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.setDevicePathsList=function(e){return jspb.internal.jspb_adapters.setRepeatedStringField(this,3,e)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.addDevicePaths=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedStringField(this,3,e,t)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.clearDevicePathsList=function(){return jspb.internal.jspb_adapters.clearRepeatedField(this,3)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getChipFamily=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getChipFamily_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.setChipFamily=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.clearChipFamily=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.hasChipFamily=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.getChipFamilyOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.serializeBinary=function(){return proto.acceleration.EdgeTpuDelegateDeviceSpec.serializeBinary(this)},proto.acceleration.EdgeTpuDelegateDeviceSpec.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.EdgeTpuDelegateDeviceSpec.internalDoNotUse$acceleration$EdgeTpuDelegateDeviceSpec$binaryFieldsObject)},proto.acceleration.EdgeTpuDelegateDeviceSpec.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.EdgeTpuDelegateDeviceSpec.internalDoNotUse$acceleration$EdgeTpuDelegateDeviceSpec$binaryFieldsObject,t)},proto.acceleration.EdgeTpuDelegateDeviceSpec.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.EdgeTpuDelegateDeviceSpec.internalDoNotUse$acceleration$EdgeTpuDelegateDeviceSpec$binaryFieldsObject)},proto.acceleration.EdgeTpuDelegateDeviceSpec.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.EdgeTpuDelegateDeviceSpec,e)},proto.acceleration.EdgeTpuDelegateDeviceSpec.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.EdgeTpuDelegateDeviceSpec&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableEdgeTpuDelegateDeviceSpec"),proto.acceleration.MutableEdgeTpuDelegateDeviceSpec=proto.acceleration.EdgeTpuDelegateDeviceSpec,proto.acceleration.ReadonlyEdgeTpuDelegateDeviceSpec={},proto.acceleration.ImmutableEdgeTpuDelegateDeviceSpec=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableEdgeTpuDelegateDeviceSpec,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableEdgeTpuDelegateDeviceSpec.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.EdgeTpuDelegateDeviceSpec,e,t)},proto.acceleration.ImmutableEdgeTpuDelegateDeviceSpec.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.EdgeTpuDelegateDeviceSpec)},proto.acceleration.ImmutableEdgeTpuDelegateDeviceSpec.serializeBinary=function(e){return proto.acceleration.EdgeTpuDelegateDeviceSpec.serializeBinary(e)},proto.acceleration.ImmutableEdgeTpuDelegateDeviceSpec.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.EdgeTpuDelegateDeviceSpec.internalDoNotUse$acceleration$EdgeTpuDelegateDeviceSpec$binaryFieldsObject,t,n)},proto.acceleration.ImmutableEdgeTpuDelegateDeviceSpec.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.EdgeTpuDelegateDeviceSpec&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableEdgeTpuDelegateDeviceSpec"),proto.acceleration.EdgeTpuDelegateDeviceSpec.repeatedFields_=[3],proto.acceleration.EdgeTpuDelegateDeviceSpec.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.EdgeTpuDelegateDeviceSpec.fromObject=function(e){var t=new proto.acceleration.EdgeTpuDelegateDeviceSpec;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.platformType),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.numChips),jspb.internal.jspb_adapters.setRepeatedStringFieldIfNotNullish(t,3,e.devicePathsList),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.chipFamily),t}),proto.acceleration.EdgeTpuDelegateDeviceSpec.prototype.toObject=function(e){return proto.acceleration.EdgeTpuDelegateDeviceSpec.internal_toObject(e,this)},proto.acceleration.EdgeTpuDelegateDeviceSpec.internal_toObject=function(e,t){if(null!=t){var n={platformType:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),numChips:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),devicePathsList:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getRepeatedStringField(t,3)),chipFamily:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.EdgeTpuDelegateDeviceSpec.PlatformType={MMIO:0,REFERENCE:1,SIMULATOR:2,REMOTE_SIMULATOR:3},proto.acceleration.EdgeTpuDelegateDeviceSpec.internalDoNotUse$acceleration$EdgeTpuDelegateDeviceSpec$binaryFieldsObject=[proto.acceleration.EdgeTpuDelegateDeviceSpec,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWRepeatedString,4,jspb.internal.binary.RWInt32],proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader.prototype.getInactivePowerState=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader.prototype.getInactivePowerState_legacyNullable=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader.prototype.hasInactivePowerState=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader.prototype.getInactivePowerStateOrUndefined=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader.prototype.getInactiveTimeoutUs=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader.prototype.getInactiveTimeoutUs_legacyNullable=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader.prototype.hasInactiveTimeoutUs=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateInactivePowerConfigReader.prototype.getInactiveTimeoutUsOrUndefined=function(){},proto.acceleration.EdgeTpuDelegateInactivePowerConfig=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.EdgeTpuDelegateInactivePowerConfig,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.getInactivePowerState=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.getInactivePowerState_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.setInactivePowerState=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.clearInactivePowerState=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.hasInactivePowerState=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.getInactivePowerStateOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.getInactiveTimeoutUs=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.getInactiveTimeoutUs_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.setInactiveTimeoutUs=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.clearInactiveTimeoutUs=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.hasInactiveTimeoutUs=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.getInactiveTimeoutUsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.serializeBinary=function(){return proto.acceleration.EdgeTpuDelegateInactivePowerConfig.serializeBinary(this)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internalDoNotUse$acceleration$EdgeTpuDelegateInactivePowerConfig$binaryFieldsObject)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internalDoNotUse$acceleration$EdgeTpuDelegateInactivePowerConfig$binaryFieldsObject,t)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internalDoNotUse$acceleration$EdgeTpuDelegateInactivePowerConfig$binaryFieldsObject)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.EdgeTpuDelegateInactivePowerConfig,e)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.EdgeTpuDelegateInactivePowerConfig&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableEdgeTpuDelegateInactivePowerConfig"),proto.acceleration.MutableEdgeTpuDelegateInactivePowerConfig=proto.acceleration.EdgeTpuDelegateInactivePowerConfig,proto.acceleration.ReadonlyEdgeTpuDelegateInactivePowerConfig={},proto.acceleration.ImmutableEdgeTpuDelegateInactivePowerConfig=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableEdgeTpuDelegateInactivePowerConfig,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableEdgeTpuDelegateInactivePowerConfig.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.EdgeTpuDelegateInactivePowerConfig,e,t)},proto.acceleration.ImmutableEdgeTpuDelegateInactivePowerConfig.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.EdgeTpuDelegateInactivePowerConfig)},proto.acceleration.ImmutableEdgeTpuDelegateInactivePowerConfig.serializeBinary=function(e){return proto.acceleration.EdgeTpuDelegateInactivePowerConfig.serializeBinary(e)},proto.acceleration.ImmutableEdgeTpuDelegateInactivePowerConfig.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internalDoNotUse$acceleration$EdgeTpuDelegateInactivePowerConfig$binaryFieldsObject,t,n)},proto.acceleration.ImmutableEdgeTpuDelegateInactivePowerConfig.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.EdgeTpuDelegateInactivePowerConfig&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableEdgeTpuDelegateInactivePowerConfig"),proto.acceleration.EdgeTpuDelegateInactivePowerConfig.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.EdgeTpuDelegateInactivePowerConfig.fromObject=function(e){var t=new proto.acceleration.EdgeTpuDelegateInactivePowerConfig;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.inactivePowerState),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.inactiveTimeoutUs),t}),proto.acceleration.EdgeTpuDelegateInactivePowerConfig.prototype.toObject=function(e){return proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internal_toObject(e,this)},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internal_toObject=function(e,t){if(null!=t){var n={inactivePowerState:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),inactiveTimeoutUs:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internalDoNotUse$acceleration$EdgeTpuDelegateInactivePowerConfig$binaryFieldsObject=[proto.acceleration.EdgeTpuDelegateInactivePowerConfig,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWInt64],proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getInferencePowerState=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getInferencePowerState_legacyNullable=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.hasInferencePowerState=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getInferencePowerStateOrUndefined=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getInactivePowerConfigsList=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getReadonlyInactivePowerConfigsList=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getInferencePriority=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.hasInferencePriority=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getInferencePriorityOrUndefined=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getEdgetpuDeviceSpec=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getReadonlyEdgetpuDeviceSpec=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.hasEdgetpuDeviceSpec=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getModelToken=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getModelToken_legacyNullable=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.hasModelToken=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getModelTokenOrUndefined=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getFloatTruncationType=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getFloatTruncationType_legacyNullable=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.hasFloatTruncationType=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getFloatTruncationTypeOrUndefined=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getQosClass=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.hasQosClass=function(){},proto.acceleration.$internalDoNotUseEdgeTpuDelegateSettingsReader.prototype.getQosClassOrUndefined=function(){},proto.acceleration.EdgeTpuDelegateSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.acceleration.EdgeTpuDelegateSettings.repeatedFields_)},$jscomp.inherits(proto.acceleration.EdgeTpuDelegateSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.EdgeTpuDelegateSettings.prototype.getInferencePowerState=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getInferencePowerState_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.EdgeTpuDelegateSettings.prototype.setInferencePowerState=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.EdgeTpuDelegateSettings.prototype.clearInferencePowerState=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.EdgeTpuDelegateSettings.prototype.hasInferencePowerState=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getInferencePowerStateOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getInactivePowerConfigsList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.acceleration.EdgeTpuDelegateInactivePowerConfig,2)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getReadonlyInactivePowerConfigsList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.acceleration.EdgeTpuDelegateInactivePowerConfig,2)},proto.acceleration.EdgeTpuDelegateSettings.prototype.setInactivePowerConfigsList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.acceleration.EdgeTpuDelegateInactivePowerConfig,2,e)},proto.acceleration.EdgeTpuDelegateSettings.prototype.addInactivePowerConfigs=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,2,proto.acceleration.EdgeTpuDelegateInactivePowerConfig,e,t)},proto.acceleration.EdgeTpuDelegateSettings.prototype.addAndReturnInactivePowerConfigs=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,2,proto.acceleration.EdgeTpuDelegateInactivePowerConfig,e,t)},proto.acceleration.EdgeTpuDelegateSettings.prototype.clearInactivePowerConfigsList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,2)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getInferencePriority=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,3,-1)},proto.acceleration.EdgeTpuDelegateSettings.prototype.setInferencePriority=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.acceleration.EdgeTpuDelegateSettings.prototype.clearInferencePriority=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.EdgeTpuDelegateSettings.prototype.hasInferencePriority=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getInferencePriorityOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.EdgeTpuDelegateDeviceSpec,4)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getReadonlyEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.EdgeTpuDelegateDeviceSpec,4)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getMutableEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.EdgeTpuDelegateDeviceSpec,4)},proto.acceleration.EdgeTpuDelegateSettings.prototype.setEdgetpuDeviceSpec=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.EdgeTpuDelegateDeviceSpec,4,e)},proto.acceleration.EdgeTpuDelegateSettings.prototype.clearEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.acceleration.EdgeTpuDelegateSettings.prototype.hasEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.EdgeTpuDelegateDeviceSpec,4)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getModelToken=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,5)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getModelToken_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,5)},proto.acceleration.EdgeTpuDelegateSettings.prototype.setModelToken=function(e){return jspb.internal.jspb_adapters.setStringField(this,5,e)},proto.acceleration.EdgeTpuDelegateSettings.prototype.clearModelToken=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.acceleration.EdgeTpuDelegateSettings.prototype.hasModelToken=function(){return jspb.internal.jspb_adapters.hasStringField(this,5)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getModelTokenOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,5)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getFloatTruncationType=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,6)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getFloatTruncationType_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,6)},proto.acceleration.EdgeTpuDelegateSettings.prototype.setFloatTruncationType=function(e){return jspb.internal.jspb_adapters.setField(this,6,e)},proto.acceleration.EdgeTpuDelegateSettings.prototype.clearFloatTruncationType=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.acceleration.EdgeTpuDelegateSettings.prototype.hasFloatTruncationType=function(){return jspb.internal.jspb_adapters.hasField(this,6)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getFloatTruncationTypeOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,6)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getQosClass=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,7,0)},proto.acceleration.EdgeTpuDelegateSettings.prototype.setQosClass=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.acceleration.EdgeTpuDelegateSettings.prototype.clearQosClass=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.acceleration.EdgeTpuDelegateSettings.prototype.hasQosClass=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.acceleration.EdgeTpuDelegateSettings.prototype.getQosClassOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,7)},proto.acceleration.EdgeTpuDelegateSettings.prototype.serializeBinary=function(){return proto.acceleration.EdgeTpuDelegateSettings.serializeBinary(this)},proto.acceleration.EdgeTpuDelegateSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.EdgeTpuDelegateSettings.internalDoNotUse$acceleration$EdgeTpuDelegateSettings$binaryFieldsObject)},proto.acceleration.EdgeTpuDelegateSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.EdgeTpuDelegateSettings.internalDoNotUse$acceleration$EdgeTpuDelegateSettings$binaryFieldsObject,t)},proto.acceleration.EdgeTpuDelegateSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.EdgeTpuDelegateSettings.internalDoNotUse$acceleration$EdgeTpuDelegateSettings$binaryFieldsObject)},proto.acceleration.EdgeTpuDelegateSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.EdgeTpuDelegateSettings,e)},proto.acceleration.EdgeTpuDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.EdgeTpuDelegateSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableEdgeTpuDelegateSettings"),proto.acceleration.MutableEdgeTpuDelegateSettings=proto.acceleration.EdgeTpuDelegateSettings,proto.acceleration.ReadonlyEdgeTpuDelegateSettings={},proto.acceleration.ImmutableEdgeTpuDelegateSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableEdgeTpuDelegateSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableEdgeTpuDelegateSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.EdgeTpuDelegateSettings,e,t)},proto.acceleration.ImmutableEdgeTpuDelegateSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.EdgeTpuDelegateSettings)},proto.acceleration.ImmutableEdgeTpuDelegateSettings.serializeBinary=function(e){return proto.acceleration.EdgeTpuDelegateSettings.serializeBinary(e)},proto.acceleration.ImmutableEdgeTpuDelegateSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.EdgeTpuDelegateSettings.internalDoNotUse$acceleration$EdgeTpuDelegateSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableEdgeTpuDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.EdgeTpuDelegateSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableEdgeTpuDelegateSettings"),proto.acceleration.EdgeTpuDelegateSettings.repeatedFields_=[2],proto.acceleration.EdgeTpuDelegateSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.EdgeTpuDelegateSettings.fromObject=function(e){var t=new proto.acceleration.EdgeTpuDelegateSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.inferencePowerState),jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.acceleration.EdgeTpuDelegateInactivePowerConfig,2,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.inactivePowerConfigsList,proto.acceleration.EdgeTpuDelegateInactivePowerConfig.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.inferencePriority),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.EdgeTpuDelegateDeviceSpec,4,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.edgetpuDeviceSpec,proto.acceleration.EdgeTpuDelegateDeviceSpec.fromObject)),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,5,e.modelToken),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,6,e.floatTruncationType),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.qosClass),t}),proto.acceleration.EdgeTpuDelegateSettings.prototype.toObject=function(e){return proto.acceleration.EdgeTpuDelegateSettings.internal_toObject(e,this)},proto.acceleration.EdgeTpuDelegateSettings.internal_toObject=function(e,t){if(null!=t){var n={inferencePowerState:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),inactivePowerConfigsList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getInactivePowerConfigsList(),proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internal_toObject,e),inferencePriority:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,3,-1),edgetpuDeviceSpec:proto.acceleration.EdgeTpuDelegateDeviceSpec.internal_toObject(e,t.getEdgetpuDeviceSpec()),modelToken:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,5)),floatTruncationType:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,6)),qosClass:jspb.internal.jspb_adapters.getFieldWithDefault(t,7,0)};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.EdgeTpuDelegateSettings.FloatTruncationType={UNSPECIFIED:0,NO_TRUNCATION:1,BFLOAT16:2,HALF:3},proto.acceleration.EdgeTpuDelegateSettings.QosClass={QOS_UNDEFINED:0,BEST_EFFORT:1,REALTIME:2},proto.acceleration.EdgeTpuDelegateSettings.internalDoNotUse$acceleration$EdgeTpuDelegateSettings$binaryFieldsObject=[proto.acceleration.EdgeTpuDelegateSettings,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWRepeatedMessage,proto.acceleration.EdgeTpuDelegateInactivePowerConfig.internalDoNotUse$acceleration$EdgeTpuDelegateInactivePowerConfig$binaryFieldsObject,3,jspb.internal.binary.RWInt32,4,jspb.internal.binary.RWMessage,proto.acceleration.EdgeTpuDelegateDeviceSpec.internalDoNotUse$acceleration$EdgeTpuDelegateDeviceSpec$binaryFieldsObject,5,jspb.internal.binary.RWString,6,jspb.internal.binary.RWEnum,7,jspb.internal.binary.RWEnum],proto.acceleration.$internalDoNotUseFallbackSettingsReader=function(){},proto.acceleration.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnCompilationError=function(){},proto.acceleration.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnCompilationError_legacyNullable=function(){},proto.acceleration.$internalDoNotUseFallbackSettingsReader.prototype.hasAllowAutomaticFallbackOnCompilationError=function(){},proto.acceleration.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnCompilationErrorOrUndefined=function(){},proto.acceleration.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnExecutionError=function(){},proto.acceleration.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnExecutionError_legacyNullable=function(){},proto.acceleration.$internalDoNotUseFallbackSettingsReader.prototype.hasAllowAutomaticFallbackOnExecutionError=function(){},proto.acceleration.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnExecutionErrorOrUndefined=function(){},proto.acceleration.FallbackSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.FallbackSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.FallbackSettings.prototype.getAllowAutomaticFallbackOnCompilationError=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,5)},proto.acceleration.FallbackSettings.prototype.getAllowAutomaticFallbackOnCompilationError_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,5)},proto.acceleration.FallbackSettings.prototype.setAllowAutomaticFallbackOnCompilationError=function(e){return jspb.internal.jspb_adapters.setField(this,5,e)},proto.acceleration.FallbackSettings.prototype.clearAllowAutomaticFallbackOnCompilationError=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.acceleration.FallbackSettings.prototype.hasAllowAutomaticFallbackOnCompilationError=function(){return jspb.internal.jspb_adapters.hasField(this,5)},proto.acceleration.FallbackSettings.prototype.getAllowAutomaticFallbackOnCompilationErrorOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,5)},proto.acceleration.FallbackSettings.prototype.getAllowAutomaticFallbackOnExecutionError=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,6)},proto.acceleration.FallbackSettings.prototype.getAllowAutomaticFallbackOnExecutionError_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,6)},proto.acceleration.FallbackSettings.prototype.setAllowAutomaticFallbackOnExecutionError=function(e){return jspb.internal.jspb_adapters.setField(this,6,e)},proto.acceleration.FallbackSettings.prototype.clearAllowAutomaticFallbackOnExecutionError=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.acceleration.FallbackSettings.prototype.hasAllowAutomaticFallbackOnExecutionError=function(){return jspb.internal.jspb_adapters.hasField(this,6)},proto.acceleration.FallbackSettings.prototype.getAllowAutomaticFallbackOnExecutionErrorOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,6)},proto.acceleration.FallbackSettings.prototype.serializeBinary=function(){return proto.acceleration.FallbackSettings.serializeBinary(this)},proto.acceleration.FallbackSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.FallbackSettings.internalDoNotUse$acceleration$FallbackSettings$binaryFieldsObject)},proto.acceleration.FallbackSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.FallbackSettings.internalDoNotUse$acceleration$FallbackSettings$binaryFieldsObject,t)},proto.acceleration.FallbackSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.FallbackSettings.internalDoNotUse$acceleration$FallbackSettings$binaryFieldsObject)},proto.acceleration.FallbackSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.FallbackSettings,e)},proto.acceleration.FallbackSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.FallbackSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableFallbackSettings"),proto.acceleration.MutableFallbackSettings=proto.acceleration.FallbackSettings,proto.acceleration.ReadonlyFallbackSettings={},proto.acceleration.ImmutableFallbackSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableFallbackSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableFallbackSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.FallbackSettings,e,t)},proto.acceleration.ImmutableFallbackSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.FallbackSettings)},proto.acceleration.ImmutableFallbackSettings.serializeBinary=function(e){return proto.acceleration.FallbackSettings.serializeBinary(e)},proto.acceleration.ImmutableFallbackSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.FallbackSettings.internalDoNotUse$acceleration$FallbackSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableFallbackSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.FallbackSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableFallbackSettings"),proto.acceleration.FallbackSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.FallbackSettings.fromObject=function(e){var t=new proto.acceleration.FallbackSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,5,e.allowAutomaticFallbackOnCompilationError),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,6,e.allowAutomaticFallbackOnExecutionError),t}),proto.acceleration.FallbackSettings.prototype.toObject=function(e){return proto.acceleration.FallbackSettings.internal_toObject(e,this)},proto.acceleration.FallbackSettings.internal_toObject=function(e,t){if(null!=t){var n={allowAutomaticFallbackOnCompilationError:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,5)),allowAutomaticFallbackOnExecutionError:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,6))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.FallbackSettings.internalDoNotUse$acceleration$FallbackSettings$binaryFieldsObject=[proto.acceleration.FallbackSettings,5,jspb.internal.binary.RWBool,6,jspb.internal.binary.RWBool],proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getIsPrecisionLossAllowed=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getIsPrecisionLossAllowed_legacyNullable=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasIsPrecisionLossAllowed=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getIsPrecisionLossAllowedOrUndefined=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePreference=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePreference_legacyNullable=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasInferencePreference=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePreferenceOrUndefined=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getEnableQuantizedInference=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasEnableQuantizedInference=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getEnableQuantizedInferenceOrUndefined=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getForceBackend=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getForceBackend_legacyNullable=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasForceBackend=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getForceBackendOrUndefined=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePriority1=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasInferencePriority1=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePriority1OrUndefined=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePriority2=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasInferencePriority2=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePriority2OrUndefined=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePriority3=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasInferencePriority3=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getInferencePriority3OrUndefined=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getCacheDirectory=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getCacheDirectory_legacyNullable=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasCacheDirectory=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getCacheDirectoryOrUndefined=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getModelToken=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getModelToken_legacyNullable=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.hasModelToken=function(){},proto.acceleration.$internalDoNotUseGPUDelegateSettingsReader.prototype.getModelTokenOrUndefined=function(){},proto.acceleration.GPUDelegateSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.GPUDelegateSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.GPUDelegateSettings.prototype.getIsPrecisionLossAllowed=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,1)},proto.acceleration.GPUDelegateSettings.prototype.getIsPrecisionLossAllowed_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,1)},proto.acceleration.GPUDelegateSettings.prototype.setIsPrecisionLossAllowed=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.GPUDelegateSettings.prototype.clearIsPrecisionLossAllowed=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.GPUDelegateSettings.prototype.hasIsPrecisionLossAllowed=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.GPUDelegateSettings.prototype.getIsPrecisionLossAllowedOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,1)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePreference=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePreference_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,2)},proto.acceleration.GPUDelegateSettings.prototype.setInferencePreference=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.acceleration.GPUDelegateSettings.prototype.clearInferencePreference=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.GPUDelegateSettings.prototype.hasInferencePreference=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePreferenceOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.acceleration.GPUDelegateSettings.prototype.getEnableQuantizedInference=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,3,!0)},proto.acceleration.GPUDelegateSettings.prototype.setEnableQuantizedInference=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.acceleration.GPUDelegateSettings.prototype.clearEnableQuantizedInference=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.GPUDelegateSettings.prototype.hasEnableQuantizedInference=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.acceleration.GPUDelegateSettings.prototype.getEnableQuantizedInferenceOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,3)},proto.acceleration.GPUDelegateSettings.prototype.getForceBackend=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.GPUDelegateSettings.prototype.getForceBackend_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.GPUDelegateSettings.prototype.setForceBackend=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.acceleration.GPUDelegateSettings.prototype.clearForceBackend=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.acceleration.GPUDelegateSettings.prototype.hasForceBackend=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.acceleration.GPUDelegateSettings.prototype.getForceBackendOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePriority1=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,5,0)},proto.acceleration.GPUDelegateSettings.prototype.setInferencePriority1=function(e){return jspb.internal.jspb_adapters.setField(this,5,e)},proto.acceleration.GPUDelegateSettings.prototype.clearInferencePriority1=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.acceleration.GPUDelegateSettings.prototype.hasInferencePriority1=function(){return jspb.internal.jspb_adapters.hasField(this,5)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePriority1OrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,5)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePriority2=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,6,0)},proto.acceleration.GPUDelegateSettings.prototype.setInferencePriority2=function(e){return jspb.internal.jspb_adapters.setField(this,6,e)},proto.acceleration.GPUDelegateSettings.prototype.clearInferencePriority2=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.acceleration.GPUDelegateSettings.prototype.hasInferencePriority2=function(){return jspb.internal.jspb_adapters.hasField(this,6)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePriority2OrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,6)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePriority3=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,7,0)},proto.acceleration.GPUDelegateSettings.prototype.setInferencePriority3=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.acceleration.GPUDelegateSettings.prototype.clearInferencePriority3=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.acceleration.GPUDelegateSettings.prototype.hasInferencePriority3=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.acceleration.GPUDelegateSettings.prototype.getInferencePriority3OrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,7)},proto.acceleration.GPUDelegateSettings.prototype.getCacheDirectory=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,8)},proto.acceleration.GPUDelegateSettings.prototype.getCacheDirectory_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,8)},proto.acceleration.GPUDelegateSettings.prototype.setCacheDirectory=function(e){return jspb.internal.jspb_adapters.setStringField(this,8,e)},proto.acceleration.GPUDelegateSettings.prototype.clearCacheDirectory=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.acceleration.GPUDelegateSettings.prototype.hasCacheDirectory=function(){return jspb.internal.jspb_adapters.hasStringField(this,8)},proto.acceleration.GPUDelegateSettings.prototype.getCacheDirectoryOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,8)},proto.acceleration.GPUDelegateSettings.prototype.getModelToken=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,9)},proto.acceleration.GPUDelegateSettings.prototype.getModelToken_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,9)},proto.acceleration.GPUDelegateSettings.prototype.setModelToken=function(e){return jspb.internal.jspb_adapters.setStringField(this,9,e)},proto.acceleration.GPUDelegateSettings.prototype.clearModelToken=function(){return jspb.internal.jspb_adapters.clearField(this,9)},proto.acceleration.GPUDelegateSettings.prototype.hasModelToken=function(){return jspb.internal.jspb_adapters.hasStringField(this,9)},proto.acceleration.GPUDelegateSettings.prototype.getModelTokenOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,9)},proto.acceleration.GPUDelegateSettings.prototype.serializeBinary=function(){return proto.acceleration.GPUDelegateSettings.serializeBinary(this)},proto.acceleration.GPUDelegateSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.GPUDelegateSettings.internalDoNotUse$acceleration$GPUDelegateSettings$binaryFieldsObject)},proto.acceleration.GPUDelegateSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.GPUDelegateSettings.internalDoNotUse$acceleration$GPUDelegateSettings$binaryFieldsObject,t)},proto.acceleration.GPUDelegateSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.GPUDelegateSettings.internalDoNotUse$acceleration$GPUDelegateSettings$binaryFieldsObject)},proto.acceleration.GPUDelegateSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.GPUDelegateSettings,e)},proto.acceleration.GPUDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.GPUDelegateSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableGPUDelegateSettings"),proto.acceleration.MutableGPUDelegateSettings=proto.acceleration.GPUDelegateSettings,proto.acceleration.ReadonlyGPUDelegateSettings={},proto.acceleration.ImmutableGPUDelegateSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableGPUDelegateSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableGPUDelegateSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.GPUDelegateSettings,e,t)},proto.acceleration.ImmutableGPUDelegateSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.GPUDelegateSettings)},proto.acceleration.ImmutableGPUDelegateSettings.serializeBinary=function(e){return proto.acceleration.GPUDelegateSettings.serializeBinary(e)},proto.acceleration.ImmutableGPUDelegateSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.GPUDelegateSettings.internalDoNotUse$acceleration$GPUDelegateSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableGPUDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.GPUDelegateSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableGPUDelegateSettings"),proto.acceleration.GPUDelegateSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.GPUDelegateSettings.fromObject=function(e){var t=new proto.acceleration.GPUDelegateSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.isPrecisionLossAllowed),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.inferencePreference),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.enableQuantizedInference),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.forceBackend),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,5,e.inferencePriority1),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,6,e.inferencePriority2),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.inferencePriority3),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,8,e.cacheDirectory),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,9,e.modelToken),t}),proto.acceleration.GPUDelegateSettings.prototype.toObject=function(e){return proto.acceleration.GPUDelegateSettings.internal_toObject(e,this)},proto.acceleration.GPUDelegateSettings.internal_toObject=function(e,t){if(null!=t){var n={isPrecisionLossAllowed:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,1)),inferencePreference:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),enableQuantizedInference:jspb.internal.jspb_adapters.getBooleanFieldWithDefault(t,3,!0),forceBackend:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4)),inferencePriority1:jspb.internal.jspb_adapters.getFieldWithDefault(t,5,0),inferencePriority2:jspb.internal.jspb_adapters.getFieldWithDefault(t,6,0),inferencePriority3:jspb.internal.jspb_adapters.getFieldWithDefault(t,7,0),cacheDirectory:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,8)),modelToken:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,9))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.GPUDelegateSettings.internalDoNotUse$acceleration$GPUDelegateSettings$binaryFieldsObject=[proto.acceleration.GPUDelegateSettings,1,jspb.internal.binary.RWBool,2,jspb.internal.binary.RWEnum,3,jspb.internal.binary.RWBool,4,jspb.internal.binary.RWEnum,5,jspb.internal.binary.RWEnum,6,jspb.internal.binary.RWEnum,7,jspb.internal.binary.RWEnum,8,jspb.internal.binary.RWString,9,jspb.internal.binary.RWString],proto.acceleration.$internalDoNotUseHangDetectionSettingsReader=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.getBehaviour=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.getBehaviour_legacyNullable=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.hasBehaviour=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.getBehaviourOrUndefined=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.getCrashTriggerPercentage=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.hasCrashTriggerPercentage=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.getCrashTriggerPercentageOrUndefined=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.getHangTimeoutMs=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.getHangTimeoutMs_legacyNullable=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.hasHangTimeoutMs=function(){},proto.acceleration.$internalDoNotUseHangDetectionSettingsReader.prototype.getHangTimeoutMsOrUndefined=function(){},proto.acceleration.HangDetectionSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.HangDetectionSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.HangDetectionSettings.prototype.getBehaviour=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.HangDetectionSettings.prototype.getBehaviour_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.HangDetectionSettings.prototype.setBehaviour=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.HangDetectionSettings.prototype.clearBehaviour=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.HangDetectionSettings.prototype.hasBehaviour=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.HangDetectionSettings.prototype.getBehaviourOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.HangDetectionSettings.prototype.getCrashTriggerPercentage=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2,100)},proto.acceleration.HangDetectionSettings.prototype.setCrashTriggerPercentage=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.acceleration.HangDetectionSettings.prototype.clearCrashTriggerPercentage=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.HangDetectionSettings.prototype.hasCrashTriggerPercentage=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.acceleration.HangDetectionSettings.prototype.getCrashTriggerPercentageOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.acceleration.HangDetectionSettings.prototype.getHangTimeoutMs=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,3)},proto.acceleration.HangDetectionSettings.prototype.getHangTimeoutMs_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,3)},proto.acceleration.HangDetectionSettings.prototype.setHangTimeoutMs=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.acceleration.HangDetectionSettings.prototype.clearHangTimeoutMs=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.HangDetectionSettings.prototype.hasHangTimeoutMs=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.acceleration.HangDetectionSettings.prototype.getHangTimeoutMsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.acceleration.HangDetectionSettings.prototype.serializeBinary=function(){return proto.acceleration.HangDetectionSettings.serializeBinary(this)},proto.acceleration.HangDetectionSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.HangDetectionSettings.internalDoNotUse$acceleration$HangDetectionSettings$binaryFieldsObject)},proto.acceleration.HangDetectionSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.HangDetectionSettings.internalDoNotUse$acceleration$HangDetectionSettings$binaryFieldsObject,t)},proto.acceleration.HangDetectionSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.HangDetectionSettings.internalDoNotUse$acceleration$HangDetectionSettings$binaryFieldsObject)},proto.acceleration.HangDetectionSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.HangDetectionSettings,e)},proto.acceleration.HangDetectionSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.HangDetectionSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableHangDetectionSettings"),proto.acceleration.MutableHangDetectionSettings=proto.acceleration.HangDetectionSettings,proto.acceleration.ReadonlyHangDetectionSettings={},proto.acceleration.ImmutableHangDetectionSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableHangDetectionSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableHangDetectionSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.HangDetectionSettings,e,t)},proto.acceleration.ImmutableHangDetectionSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.HangDetectionSettings)},proto.acceleration.ImmutableHangDetectionSettings.serializeBinary=function(e){return proto.acceleration.HangDetectionSettings.serializeBinary(e)},proto.acceleration.ImmutableHangDetectionSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.HangDetectionSettings.internalDoNotUse$acceleration$HangDetectionSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableHangDetectionSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.HangDetectionSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableHangDetectionSettings"),proto.acceleration.HangDetectionSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.HangDetectionSettings.fromObject=function(e){var t=new proto.acceleration.HangDetectionSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.behaviour),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.crashTriggerPercentage),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.hangTimeoutMs),t}),proto.acceleration.HangDetectionSettings.prototype.toObject=function(e){return proto.acceleration.HangDetectionSettings.internal_toObject(e,this)},proto.acceleration.HangDetectionSettings.internal_toObject=function(e,t){if(null!=t){var n={behaviour:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),crashTriggerPercentage:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,2,100),hangTimeoutMs:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.HangDetectionSettings.internalDoNotUse$acceleration$HangDetectionSettings$binaryFieldsObject=[proto.acceleration.HangDetectionSettings,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWInt32],proto.acceleration.$internalDoNotUseHexagonDelegateSettingsReader=function(){},proto.acceleration.$internalDoNotUseHexagonDelegateSettingsReader.prototype.getNoOfHexagonInstancesToCache=function(){},proto.acceleration.$internalDoNotUseHexagonDelegateSettingsReader.prototype.getNoOfHexagonInstancesToCache_legacyNullable=function(){},proto.acceleration.$internalDoNotUseHexagonDelegateSettingsReader.prototype.hasNoOfHexagonInstancesToCache=function(){},proto.acceleration.$internalDoNotUseHexagonDelegateSettingsReader.prototype.getNoOfHexagonInstancesToCacheOrUndefined=function(){},proto.acceleration.HexagonDelegateSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.HexagonDelegateSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.HexagonDelegateSettings.prototype.getNoOfHexagonInstancesToCache=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.HexagonDelegateSettings.prototype.getNoOfHexagonInstancesToCache_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.HexagonDelegateSettings.prototype.setNoOfHexagonInstancesToCache=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.HexagonDelegateSettings.prototype.clearNoOfHexagonInstancesToCache=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.HexagonDelegateSettings.prototype.hasNoOfHexagonInstancesToCache=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.HexagonDelegateSettings.prototype.getNoOfHexagonInstancesToCacheOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.HexagonDelegateSettings.prototype.serializeBinary=function(){return proto.acceleration.HexagonDelegateSettings.serializeBinary(this)},proto.acceleration.HexagonDelegateSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.HexagonDelegateSettings.internalDoNotUse$acceleration$HexagonDelegateSettings$binaryFieldsObject)},proto.acceleration.HexagonDelegateSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.HexagonDelegateSettings.internalDoNotUse$acceleration$HexagonDelegateSettings$binaryFieldsObject,t)},proto.acceleration.HexagonDelegateSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.HexagonDelegateSettings.internalDoNotUse$acceleration$HexagonDelegateSettings$binaryFieldsObject)},proto.acceleration.HexagonDelegateSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.HexagonDelegateSettings,e)},proto.acceleration.HexagonDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.HexagonDelegateSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableHexagonDelegateSettings"),proto.acceleration.MutableHexagonDelegateSettings=proto.acceleration.HexagonDelegateSettings,proto.acceleration.ReadonlyHexagonDelegateSettings={},proto.acceleration.ImmutableHexagonDelegateSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableHexagonDelegateSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableHexagonDelegateSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.HexagonDelegateSettings,e,t)},proto.acceleration.ImmutableHexagonDelegateSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.HexagonDelegateSettings)},proto.acceleration.ImmutableHexagonDelegateSettings.serializeBinary=function(e){return proto.acceleration.HexagonDelegateSettings.serializeBinary(e)},proto.acceleration.ImmutableHexagonDelegateSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.HexagonDelegateSettings.internalDoNotUse$acceleration$HexagonDelegateSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableHexagonDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.HexagonDelegateSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableHexagonDelegateSettings"),proto.acceleration.HexagonDelegateSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.HexagonDelegateSettings.fromObject=function(e){var t=new proto.acceleration.HexagonDelegateSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.noOfHexagonInstancesToCache),t}),proto.acceleration.HexagonDelegateSettings.prototype.toObject=function(e){return proto.acceleration.HexagonDelegateSettings.internal_toObject(e,this)},proto.acceleration.HexagonDelegateSettings.internal_toObject=function(e,t){if(null!=t){var n={noOfHexagonInstancesToCache:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.HexagonDelegateSettings.internalDoNotUse$acceleration$HexagonDelegateSettings$binaryFieldsObject=[proto.acceleration.HexagonDelegateSettings,1,jspb.internal.binary.RWInt32],proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAcceleratorName=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAcceleratorName_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasAcceleratorName=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAcceleratorNameOrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getCacheDirectory=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getCacheDirectory_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasCacheDirectory=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getCacheDirectoryOrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getModelToken=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getModelToken_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasModelToken=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getModelTokenOrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getExecutionPreference=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getExecutionPreference_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasExecutionPreference=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getExecutionPreferenceOrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getNoOfNnapiInstancesToCache=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getNoOfNnapiInstancesToCache_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasNoOfNnapiInstancesToCache=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getNoOfNnapiInstancesToCacheOrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getFallbackSettings=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getReadonlyFallbackSettings=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasFallbackSettings=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowNnapiCpuOnAndroid10Plus=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowNnapiCpuOnAndroid10Plus_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasAllowNnapiCpuOnAndroid10Plus=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowNnapiCpuOnAndroid10PlusOrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getExecutionPriority=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getExecutionPriority_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasExecutionPriority=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getExecutionPriorityOrUndefined=function(){},
vendor: 14,386 bytes, line 2
2proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowDynamicDimensions=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowDynamicDimensions_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasAllowDynamicDimensions=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowDynamicDimensionsOrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowFp16PrecisionForFp32=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowFp16PrecisionForFp32_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasAllowFp16PrecisionForFp32=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getAllowFp16PrecisionForFp32OrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getUseBurstComputation=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getUseBurstComputation_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasUseBurstComputation=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getUseBurstComputationOrUndefined=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getSupportLibraryHandle=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getSupportLibraryHandle_legacyNullable=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.hasSupportLibraryHandle=function(){},proto.acceleration.$internalDoNotUseNNAPIDelegateSettingsReader.prototype.getSupportLibraryHandleOrUndefined=function(){},proto.acceleration.NNAPIDelegateSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.NNAPIDelegateSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.NNAPIDelegateSettings.prototype.getAcceleratorName=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.NNAPIDelegateSettings.prototype.getAcceleratorName_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,1)},proto.acceleration.NNAPIDelegateSettings.prototype.setAcceleratorName=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearAcceleratorName=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.NNAPIDelegateSettings.prototype.hasAcceleratorName=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.acceleration.NNAPIDelegateSettings.prototype.getAcceleratorNameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.acceleration.NNAPIDelegateSettings.prototype.getCacheDirectory=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,2)},proto.acceleration.NNAPIDelegateSettings.prototype.getCacheDirectory_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,2)},proto.acceleration.NNAPIDelegateSettings.prototype.setCacheDirectory=function(e){return jspb.internal.jspb_adapters.setStringField(this,2,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearCacheDirectory=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.NNAPIDelegateSettings.prototype.hasCacheDirectory=function(){return jspb.internal.jspb_adapters.hasStringField(this,2)},proto.acceleration.NNAPIDelegateSettings.prototype.getCacheDirectoryOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,2)},proto.acceleration.NNAPIDelegateSettings.prototype.getModelToken=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,3)},proto.acceleration.NNAPIDelegateSettings.prototype.getModelToken_legacyNullable=function(){return jspb.internal.jspb_adapters.getStringFieldNullable(this,3)},proto.acceleration.NNAPIDelegateSettings.prototype.setModelToken=function(e){return jspb.internal.jspb_adapters.setStringField(this,3,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearModelToken=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.NNAPIDelegateSettings.prototype.hasModelToken=function(){return jspb.internal.jspb_adapters.hasStringField(this,3)},proto.acceleration.NNAPIDelegateSettings.prototype.getModelTokenOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,3)},proto.acceleration.NNAPIDelegateSettings.prototype.getExecutionPreference=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.NNAPIDelegateSettings.prototype.getExecutionPreference_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,4)},proto.acceleration.NNAPIDelegateSettings.prototype.setExecutionPreference=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearExecutionPreference=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.acceleration.NNAPIDelegateSettings.prototype.hasExecutionPreference=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.acceleration.NNAPIDelegateSettings.prototype.getExecutionPreferenceOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.acceleration.NNAPIDelegateSettings.prototype.getNoOfNnapiInstancesToCache=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,5)},proto.acceleration.NNAPIDelegateSettings.prototype.getNoOfNnapiInstancesToCache_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,5)},proto.acceleration.NNAPIDelegateSettings.prototype.setNoOfNnapiInstancesToCache=function(e){return jspb.internal.jspb_adapters.setField(this,5,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearNoOfNnapiInstancesToCache=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.acceleration.NNAPIDelegateSettings.prototype.hasNoOfNnapiInstancesToCache=function(){return jspb.internal.jspb_adapters.hasField(this,5)},proto.acceleration.NNAPIDelegateSettings.prototype.getNoOfNnapiInstancesToCacheOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,5)},proto.acceleration.NNAPIDelegateSettings.prototype.getFallbackSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.FallbackSettings,6)},proto.acceleration.NNAPIDelegateSettings.prototype.getReadonlyFallbackSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.FallbackSettings,6)},proto.acceleration.NNAPIDelegateSettings.prototype.getMutableFallbackSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.FallbackSettings,6)},proto.acceleration.NNAPIDelegateSettings.prototype.setFallbackSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.FallbackSettings,6,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearFallbackSettings=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.acceleration.NNAPIDelegateSettings.prototype.hasFallbackSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.FallbackSettings,6)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowNnapiCpuOnAndroid10Plus=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,7)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowNnapiCpuOnAndroid10Plus_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,7)},proto.acceleration.NNAPIDelegateSettings.prototype.setAllowNnapiCpuOnAndroid10Plus=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearAllowNnapiCpuOnAndroid10Plus=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.acceleration.NNAPIDelegateSettings.prototype.hasAllowNnapiCpuOnAndroid10Plus=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowNnapiCpuOnAndroid10PlusOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,7)},proto.acceleration.NNAPIDelegateSettings.prototype.getExecutionPriority=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,8)},proto.acceleration.NNAPIDelegateSettings.prototype.getExecutionPriority_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,8)},proto.acceleration.NNAPIDelegateSettings.prototype.setExecutionPriority=function(e){return jspb.internal.jspb_adapters.setField(this,8,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearExecutionPriority=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.acceleration.NNAPIDelegateSettings.prototype.hasExecutionPriority=function(){return jspb.internal.jspb_adapters.hasField(this,8)},proto.acceleration.NNAPIDelegateSettings.prototype.getExecutionPriorityOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,8)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowDynamicDimensions=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,9)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowDynamicDimensions_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,9)},proto.acceleration.NNAPIDelegateSettings.prototype.setAllowDynamicDimensions=function(e){return jspb.internal.jspb_adapters.setField(this,9,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearAllowDynamicDimensions=function(){return jspb.internal.jspb_adapters.clearField(this,9)},proto.acceleration.NNAPIDelegateSettings.prototype.hasAllowDynamicDimensions=function(){return jspb.internal.jspb_adapters.hasField(this,9)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowDynamicDimensionsOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,9)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,10)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowFp16PrecisionForFp32_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,10)},proto.acceleration.NNAPIDelegateSettings.prototype.setAllowFp16PrecisionForFp32=function(e){return jspb.internal.jspb_adapters.setField(this,10,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.clearField(this,10)},proto.acceleration.NNAPIDelegateSettings.prototype.hasAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.hasField(this,10)},proto.acceleration.NNAPIDelegateSettings.prototype.getAllowFp16PrecisionForFp32OrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,10)},proto.acceleration.NNAPIDelegateSettings.prototype.getUseBurstComputation=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,11)},proto.acceleration.NNAPIDelegateSettings.prototype.getUseBurstComputation_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,11)},proto.acceleration.NNAPIDelegateSettings.prototype.setUseBurstComputation=function(e){return jspb.internal.jspb_adapters.setField(this,11,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearUseBurstComputation=function(){return jspb.internal.jspb_adapters.clearField(this,11)},proto.acceleration.NNAPIDelegateSettings.prototype.hasUseBurstComputation=function(){return jspb.internal.jspb_adapters.hasField(this,11)},proto.acceleration.NNAPIDelegateSettings.prototype.getUseBurstComputationOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,11)},proto.acceleration.NNAPIDelegateSettings.prototype.getSupportLibraryHandle=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,12)},proto.acceleration.NNAPIDelegateSettings.prototype.getSupportLibraryHandle_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,12)},proto.acceleration.NNAPIDelegateSettings.prototype.setSupportLibraryHandle=function(e){return jspb.internal.jspb_adapters.setField(this,12,e)},proto.acceleration.NNAPIDelegateSettings.prototype.clearSupportLibraryHandle=function(){return jspb.internal.jspb_adapters.clearField(this,12)},proto.acceleration.NNAPIDelegateSettings.prototype.hasSupportLibraryHandle=function(){return jspb.internal.jspb_adapters.hasField(this,12)},proto.acceleration.NNAPIDelegateSettings.prototype.getSupportLibraryHandleOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,12)},proto.acceleration.NNAPIDelegateSettings.prototype.serializeBinary=function(){return proto.acceleration.NNAPIDelegateSettings.serializeBinary(this)},proto.acceleration.NNAPIDelegateSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.NNAPIDelegateSettings.internalDoNotUse$acceleration$NNAPIDelegateSettings$binaryFieldsObject)},proto.acceleration.NNAPIDelegateSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.NNAPIDelegateSettings.internalDoNotUse$acceleration$NNAPIDelegateSettings$binaryFieldsObject,t)},proto.acceleration.NNAPIDelegateSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.NNAPIDelegateSettings.internalDoNotUse$acceleration$NNAPIDelegateSettings$binaryFieldsObject)},proto.acceleration.NNAPIDelegateSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.NNAPIDelegateSettings,e)},proto.acceleration.NNAPIDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(
2function(e){return e instanceof proto.acceleration.NNAPIDelegateSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableNNAPIDelegateSettings"),proto.acceleration.MutableNNAPIDelegateSettings=proto.acceleration.NNAPIDelegateSettings,proto.acceleration.ReadonlyNNAPIDelegateSettings={},proto.acceleration.ImmutableNNAPIDelegateSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableNNAPIDelegateSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableNNAPIDelegateSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.NNAPIDelegateSettings,e,t)},proto.acceleration.ImmutableNNAPIDelegateSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.NNAPIDelegateSettings)},proto.acceleration.ImmutableNNAPIDelegateSettings.serializeBinary=function(e){return proto.acceleration.NNAPIDelegateSettings.serializeBinary(e)},proto.acceleration.ImmutableNNAPIDelegateSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.NNAPIDelegateSettings.internalDoNotUse$acceleration$NNAPIDelegateSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableNNAPIDelegateSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.NNAPIDelegateSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableNNAPIDelegateSettings"),proto.acceleration.NNAPIDelegateSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.NNAPIDelegateSettings.fromObject=function(e){var t=new proto.acceleration.NNAPIDelegateSettings;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.acceleratorName),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,2,e.cacheDirectory),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,3,e.modelToken),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.executionPreference),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,5,e.noOfNnapiInstancesToCache),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.FallbackSettings,6,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.fallbackSettings,proto.acceleration.FallbackSettings.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.allowNnapiCpuOnAndroid10Plus),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,8,e.executionPriority),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,9,e.allowDynamicDimensions),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,10,e.allowFp16PrecisionForFp32),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,11,e.useBurstComputation),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,12,e.
vendor: 7,615 bytes, line 2
2supportLibraryHandle),t}),proto.acceleration.NNAPIDelegateSettings.prototype.toObject=function(e){return proto.acceleration.NNAPIDelegateSettings.internal_toObject(e,this)},proto.acceleration.NNAPIDelegateSettings.internal_toObject=function(e,t){if(null!=t){var n={acceleratorName:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),cacheDirectory:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,2)),modelToken:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,3)),executionPreference:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4)),noOfNnapiInstancesToCache:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,5)),fallbackSettings:proto.acceleration.FallbackSettings.internal_toObject(e,t.getFallbackSettings()),allowNnapiCpuOnAndroid10Plus:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,7)),executionPriority:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,8)),allowDynamicDimensions:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,9)),allowFp16PrecisionForFp32:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,10)),useBurstComputation:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,11)),supportLibraryHandle:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,12))};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.NNAPIDelegateSettings.internalDoNotUse$acceleration$NNAPIDelegateSettings$binaryFieldsObject=[proto.acceleration.NNAPIDelegateSettings,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWString,3,jspb.internal.binary.RWString,4,jspb.internal.binary.RWEnum,5,jspb.internal.binary.RWInt32,6,jspb.internal.binary.RWMessage,proto.acceleration.FallbackSettings.internalDoNotUse$acceleration$FallbackSettings$binaryFieldsObject,7,jspb.internal.binary.RWBool,8,jspb.internal.binary.RWEnum,9,jspb.internal.binary.RWBool,10,jspb.internal.binary.RWBool,11,jspb.internal.binary.RWBool,12,jspb.internal.binary.RWInt64],proto.acceleration.$internalDoNotUseXNNPackSettingsReader=function(){},proto.acceleration.$internalDoNotUseXNNPackSettingsReader.prototype.getNumThreads=function(){},proto.acceleration.$internalDoNotUseXNNPackSettingsReader.prototype.getNumThreads_legacyNullable=function(){},proto.acceleration.$internalDoNotUseXNNPackSettingsReader.prototype.hasNumThreads=function(){},proto.acceleration.$internalDoNotUseXNNPackSettingsReader.prototype.getNumThreadsOrUndefined=function(){},proto.acceleration.$internalDoNotUseXNNPackSettingsReader.prototype.getFlags=function(){},proto.acceleration.$internalDoNotUseXNNPackSettingsReader.prototype.hasFlags=function(){},proto.acceleration.$internalDoNotUseXNNPackSettingsReader.prototype.getFlagsOrUndefined=function(){},proto.acceleration.XNNPackSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.XNNPackSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.XNNPackSettings.prototype.getNumThreads=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.XNNPackSettings.prototype.getNumThreads_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.XNNPackSettings.prototype.setNumThreads=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.XNNPackSettings.prototype.clearNumThreads=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.XNNPackSettings.prototype.hasNumThreads=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.XNNPackSettings.prototype.getNumThreadsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.XNNPackSettings.prototype.getFlags=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,2,0)},proto.acceleration.XNNPackSettings.prototype.setFlags=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.acceleration.XNNPackSettings.prototype.clearFlags=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.XNNPackSettings.prototype.hasFlags=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.acceleration.XNNPackSettings.prototype.getFlagsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.acceleration.XNNPackSettings.prototype.serializeBinary=function(){return proto.acceleration.XNNPackSettings.serializeBinary(this)},proto.acceleration.XNNPackSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.XNNPackSettings.internalDoNotUse$acceleration$XNNPackSettings$binaryFieldsObject)},proto.acceleration.XNNPackSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.XNNPackSettings.internalDoNotUse$acceleration$XNNPackSettings$binaryFieldsObject,t)},proto.acceleration.XNNPackSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.XNNPackSettings.internalDoNotUse$acceleration$XNNPackSettings$binaryFieldsObject)},proto.acceleration.XNNPackSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.XNNPackSettings,e)},proto.acceleration.XNNPackSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.XNNPackSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableXNNPackSettings"),proto.acceleration.MutableXNNPackSettings=proto.acceleration.XNNPackSettings,proto.acceleration.ReadonlyXNNPackSettings={},proto.acceleration.ImmutableXNNPackSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableXNNPackSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableXNNPackSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.XNNPackSettings,e,t)},proto.acceleration.ImmutableXNNPackSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.XNNPackSettings)},proto.acceleration.ImmutableXNNPackSettings.serializeBinary=function(e){return proto.acceleration.XNNPackSettings.serializeBinary(e)},proto.acceleration.ImmutableXNNPackSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.XNNPackSettings.internalDoNotUse$acceleration$XNNPackSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableXNNPackSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.XNNPackSettings&&module$contents$jspb$internal_isImmutableMessage(e)}
vendor: 22,341 bytes, line 2
2,"ImmutableXNNPackSettings"),proto.acceleration.XNNPackSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.XNNPackSettings.fromObject=function(e){var t=new proto.acceleration.XNNPackSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.numThreads),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.flags),t}),proto.acceleration.XNNPackSettings.prototype.toObject=function(e){return proto.acceleration.XNNPackSettings.internal_toObject(e,this)},proto.acceleration.XNNPackSettings.internal_toObject=function(e,t){if(null!=t){var n={numThreads:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),flags:jspb.internal.jspb_adapters.getFieldWithDefault(t,2,0)};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.XNNPackSettings.internalDoNotUse$acceleration$XNNPackSettings$binaryFieldsObject=[proto.acceleration.XNNPackSettings,1,jspb.internal.binary.RWInt32,2,jspb.internal.binary.RWEnum],proto.acceleration.$internalDoNotUseTFLiteSettingsReader=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getDelegate=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getDelegate_legacyNullable=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasDelegate=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getDelegateOrUndefined=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getNnapiSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyNnapiSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasNnapiSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getGpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyGpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasGpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getCpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyCpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasCpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getHexagonSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyHexagonSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasHexagonSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getEdgetpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyEdgetpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasEdgetpuSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getCoralSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyCoralSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasCoralSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getXnnpackSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyXnnpackSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasXnnpackSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getCoremlSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyCoremlSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasCoremlSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getEnumerationHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyEnumerationHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasEnumerationHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getCompilationHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyCompilationHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasCompilationHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getExecutionHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyExecutionHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasExecutionHangDetection=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getAllowFp16PrecisionForFp32=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getAllowFp16PrecisionForFp32_legacyNullable=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasAllowFp16PrecisionForFp32=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getAllowFp16PrecisionForFp32OrUndefined=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getFallbackSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyFallbackSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasFallbackSettings=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getMaxDelegatedPartitions=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.hasMaxDelegatedPartitions=function(){},proto.acceleration.$internalDoNotUseTFLiteSettingsReader.prototype.getMaxDelegatedPartitionsOrUndefined=function(){},proto.acceleration.TFLiteSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.TFLiteSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.TFLiteSettings.prototype.getDelegate=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.TFLiteSettings.prototype.getDelegate_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.TFLiteSettings.prototype.setDelegate=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.TFLiteSettings.prototype.clearDelegate=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.TFLiteSettings.prototype.hasDelegate=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.TFLiteSettings.prototype.getDelegateOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.TFLiteSettings.prototype.getNnapiSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.NNAPIDelegateSettings,2)},proto.acceleration.TFLiteSettings.prototype.getReadonlyNnapiSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.NNAPIDelegateSettings,2)},proto.acceleration.TFLiteSettings.prototype.getMutableNnapiSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.NNAPIDelegateSettings,2)},proto.acceleration.TFLiteSettings.prototype.setNnapiSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.NNAPIDelegateSettings,2,e)},proto.acceleration.TFLiteSettings.prototype.clearNnapiSettings=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.TFLiteSettings.prototype.hasNnapiSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.NNAPIDelegateSettings,2)},proto.acceleration.TFLiteSettings.prototype.getGpuSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.GPUDelegateSettings,3)},proto.acceleration.TFLiteSettings.prototype.getReadonlyGpuSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.GPUDelegateSettings,3)},proto.acceleration.TFLiteSettings.prototype.getMutableGpuSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.GPUDelegateSettings,3)},proto.acceleration.TFLiteSettings.prototype.setGpuSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.GPUDelegateSettings,3,e)},proto.acceleration.TFLiteSettings.prototype.clearGpuSettings=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.TFLiteSettings.prototype.hasGpuSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.GPUDelegateSettings,3)},proto.acceleration.TFLiteSettings.prototype.getCpuSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.CPUSettings,4)},proto.acceleration.TFLiteSettings.prototype.getReadonlyCpuSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.CPUSettings,4)},proto.acceleration.TFLiteSettings.prototype.getMutableCpuSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.CPUSettings,4)},proto.acceleration.TFLiteSettings.prototype.setCpuSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.CPUSettings,4,e)},proto.acceleration.TFLiteSettings.prototype.clearCpuSettings=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.acceleration.TFLiteSettings.prototype.hasCpuSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.CPUSettings,4)},proto.acceleration.TFLiteSettings.prototype.getHexagonSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.HexagonDelegateSettings,5)},proto.acceleration.TFLiteSettings.prototype.getReadonlyHexagonSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.HexagonDelegateSettings,5)},proto.acceleration.TFLiteSettings.prototype.getMutableHexagonSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.HexagonDelegateSettings,5)},proto.acceleration.TFLiteSettings.prototype.setHexagonSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.HexagonDelegateSettings,5,e)},proto.acceleration.TFLiteSettings.prototype.clearHexagonSettings=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.acceleration.TFLiteSettings.prototype.hasHexagonSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.HexagonDelegateSettings,5)},proto.acceleration.TFLiteSettings.prototype.getEdgetpuSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.EdgeTpuDelegateSettings,10)},proto.acceleration.TFLiteSettings.prototype.getReadonlyEdgetpuSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.EdgeTpuDelegateSettings,10)},proto.acceleration.TFLiteSettings.prototype.getMutableEdgetpuSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.EdgeTpuDelegateSettings,10)},proto.acceleration.TFLiteSettings.prototype.setEdgetpuSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.EdgeTpuDelegateSettings,10,e)},proto.acceleration.TFLiteSettings.prototype.clearEdgetpuSettings=function(){return jspb.internal.jspb_adapters.clearField(this,10)},proto.acceleration.TFLiteSettings.prototype.hasEdgetpuSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.EdgeTpuDelegateSettings,10)},proto.acceleration.TFLiteSettings.prototype.getCoralSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.CoralDelegateSettings,12)},proto.acceleration.TFLiteSettings.prototype.getReadonlyCoralSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.CoralDelegateSettings,12)},proto.acceleration.TFLiteSettings.prototype.getMutableCoralSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.CoralDelegateSettings,12)},proto.acceleration.TFLiteSettings.prototype.setCoralSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.CoralDelegateSettings,12,e)},proto.acceleration.TFLiteSettings.prototype.clearCoralSettings=function(){return jspb.internal.jspb_adapters.clearField(this,12)},proto.acceleration.TFLiteSettings.prototype.hasCoralSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.CoralDelegateSettings,12)},proto.acceleration.TFLiteSettings.prototype.getXnnpackSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.XNNPackSettings,13)},proto.acceleration.TFLiteSettings.prototype.getReadonlyXnnpackSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.XNNPackSettings,13)},proto.acceleration.TFLiteSettings.prototype.getMutableXnnpackSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.XNNPackSettings,13)},proto.acceleration.TFLiteSettings.prototype.setXnnpackSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.XNNPackSettings,13,e)},proto.acceleration.TFLiteSettings.prototype.clearXnnpackSettings=function(){return jspb.internal.jspb_adapters.clearField(this,13)},proto.acceleration.TFLiteSettings.prototype.hasXnnpackSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.XNNPackSettings,13)},proto.acceleration.TFLiteSettings.prototype.getCoremlSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.CoreMLDelegateSettings,15)},proto.acceleration.TFLiteSettings.prototype.getReadonlyCoremlSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.CoreMLDelegateSettings,15)},proto.acceleration.TFLiteSettings.prototype.getMutableCoremlSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.CoreMLDelegateSettings,15)},proto.acceleration.TFLiteSettings.prototype.setCoremlSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.CoreMLDelegateSettings,15,e)},proto.acceleration.TFLiteSettings.prototype.clearCoremlSettings=function(){return jspb.internal.jspb_adapters.clearField(this,15)},proto.acceleration.TFLiteSettings.prototype.hasCoremlSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.CoreMLDelegateSettings,15)},proto.acceleration.TFLiteSettings.prototype.getEnumerationHangDetection=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.HangDetectionSettings,6)},proto.acceleration.TFLiteSettings.prototype.getReadonlyEnumerationHangDetection=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.HangDetectionSettings,6)},proto.acceleration.TFLiteSettings.prototype.getMutableEnumerationHangDetection=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.HangDetectionSettings,6)},proto.acceleration.TFLiteSettings.prototype.setEnumerationHangDetection=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.HangDetectionSettings,6,e)},proto.acceleration.TFLiteSettings.prototype.clearEnumerationHangDetection=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.acceleration.TFLiteSettings.prototype.hasEnumerationHangDetection=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.HangDetectionSettings,6)},proto.acceleration.TFLiteSettings.prototype.getCompilationHangDetection=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.HangDetectionSettings,7)},proto.acceleration.TFLiteSettings.prototype.getReadonlyCompilationHangDetection=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.HangDetectionSettings,7)},proto.acceleration.TFLiteSettings.prototype.getMutableCompilationHangDetection=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.HangDetectionSettings,7)},proto.acceleration.TFLiteSettings.prototype.setCompilationHangDetection=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.HangDetectionSettings,7,e)},proto.acceleration.TFLiteSettings.prototype.clearCompilationHangDetection=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.acceleration.TFLiteSettings.prototype.hasCompilationHangDetection=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.HangDetectionSettings,7)},proto.acceleration.TFLiteSettings.prototype.getExecutionHangDetection=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.HangDetectionSettings,8)},proto.acceleration.TFLiteSettings.prototype.getReadonlyExecutionHangDetection=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.HangDetectionSettings,8)},proto.acceleration.TFLiteSettings.prototype.getMutableExecutionHangDetection=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.HangDetectionSettings,8)},proto.acceleration.TFLiteSettings.prototype.setExecutionHangDetection=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.HangDetectionSettings,8,e)},proto.acceleration.TFLiteSettings.prototype.clearExecutionHangDetection=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.acceleration.TFLiteSettings.prototype.hasExecutionHangDetection=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.HangDetectionSettings,8)},proto.acceleration.TFLiteSettings.prototype.getAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,9)},proto.acceleration.TFLiteSettings.prototype.getAllowFp16PrecisionForFp32_legacyNullable=function(){return jspb.internal.jspb_adapters.getBooleanFieldNullable(this,9)},proto.acceleration.TFLiteSettings.prototype.setAllowFp16PrecisionForFp32=function(e){return jspb.internal.jspb_adapters.setField(this,9,e)},proto.acceleration.TFLiteSettings.prototype.clearAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.clearField(this,9)},proto.acceleration.TFLiteSettings.prototype.hasAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.hasField(this,9)},proto.acceleration.TFLiteSettings.prototype.getAllowFp16PrecisionForFp32OrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,9)},proto.acceleration.TFLiteSettings.prototype.getFallbackSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.FallbackSettings,11)},proto.acceleration.TFLiteSettings.prototype.getReadonlyFallbackSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.FallbackSettings,11)},proto.acceleration.TFLiteSettings.prototype.getMutableFallbackSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.FallbackSettings,11)},proto.acceleration.TFLiteSettings.prototype.setFallbackSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.FallbackSettings,11,e)},proto.acceleration.TFLiteSettings.prototype.clearFallbackSettings=function(){return jspb.internal.jspb_adapters.clearField(this,11)},proto.acceleration.TFLiteSettings.prototype.hasFallbackSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.FallbackSettings,11)},proto.acceleration.TFLiteSettings.prototype.getMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,14,-1)},proto.acceleration.TFLiteSettings.prototype.setMaxDelegatedPartitions=function(e){return jspb.internal.jspb_adapters.setField(this,14,e)},proto.acceleration.TFLiteSettings.prototype.clearMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.clearField(this,14)},proto.acceleration.TFLiteSettings.prototype.hasMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.hasField(this,14)},proto.acceleration.TFLiteSettings.prototype.getMaxDelegatedPartitionsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,14)},proto.acceleration.TFLiteSettings.prototype.serializeBinary=function(){return proto.acceleration.TFLiteSettings.serializeBinary(this)},proto.acceleration.TFLiteSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.TFLiteSettings.internalDoNotUse$acceleration$TFLiteSettings$binaryFieldsObject)},proto.acceleration.TFLiteSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.TFLiteSettings.internalDoNotUse$acceleration$TFLiteSettings$binaryFieldsObject,t)},proto.acceleration.TFLiteSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.TFLiteSettings.internalDoNotUse$acceleration$TFLiteSettings$binaryFieldsObject)},proto.acceleration.TFLiteSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.TFLiteSettings,e)},proto.acceleration.TFLiteSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(
2function(e){return e instanceof proto.acceleration.TFLiteSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableTFLiteSettings"),proto.acceleration.MutableTFLiteSettings=proto.acceleration.TFLiteSettings,proto.acceleration.ReadonlyTFLiteSettings={},proto.acceleration.ImmutableTFLiteSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableTFLiteSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableTFLiteSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.TFLiteSettings,e,t)},proto.acceleration.ImmutableTFLiteSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.TFLiteSettings)},proto.acceleration.ImmutableTFLiteSettings.serializeBinary=function(e){return proto.acceleration.TFLiteSettings.serializeBinary(e)},proto.acceleration.ImmutableTFLiteSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.TFLiteSettings.internalDoNotUse$acceleration$TFLiteSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableTFLiteSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.TFLiteSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableTFLiteSettings"),proto.acceleration.TFLiteSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.TFLiteSettings.fromObject=function(e){var t=new proto.acceleration.TFLiteSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.delegate),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.NNAPIDelegateSettings,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.nnapiSettings,proto.acceleration.NNAPIDelegateSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.GPUDelegateSettings,3,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.gpuSettings,proto.acceleration.GPUDelegateSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.CPUSettings,4,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.cpuSettings,proto.acceleration.CPUSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.HexagonDelegateSettings,5,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.hexagonSettings,proto.acceleration.HexagonDelegateSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.EdgeTpuDelegateSettings,10,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.edgetpuSettings,proto.acceleration.EdgeTpuDelegateSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.CoralDelegateSettings,12,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.coralSettings,proto.acceleration.CoralDelegateSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.XNNPackSettings,13,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.xnnpackSettings,proto.acceleration.XNNPackSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.CoreMLDelegateSettings,15,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.coremlSettings,proto.acceleration.CoreMLDelegateSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.HangDetectionSettings,6,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.enumerationHangDetection,proto.acceleration.HangDetectionSettings.from
vendor: 47,672 bytes, line 2
2Object)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.HangDetectionSettings,7,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.compilationHangDetection,proto.acceleration.HangDetectionSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.HangDetectionSettings,8,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.executionHangDetection,proto.acceleration.HangDetectionSettings.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,9,e.allowFp16PrecisionForFp32),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.FallbackSettings,11,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.fallbackSettings,proto.acceleration.FallbackSettings.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,14,e.maxDelegatedPartitions),t}),proto.acceleration.TFLiteSettings.prototype.toObject=function(e){return proto.acceleration.TFLiteSettings.internal_toObject(e,this)},proto.acceleration.TFLiteSettings.internal_toObject=function(e,t){if(null!=t){var n={delegate:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),nnapiSettings:proto.acceleration.NNAPIDelegateSettings.internal_toObject(e,t.getNnapiSettings()),gpuSettings:proto.acceleration.GPUDelegateSettings.internal_toObject(e,t.getGpuSettings()),cpuSettings:proto.acceleration.CPUSettings.internal_toObject(e,t.getCpuSettings()),hexagonSettings:proto.acceleration.HexagonDelegateSettings.internal_toObject(e,t.getHexagonSettings()),edgetpuSettings:proto.acceleration.EdgeTpuDelegateSettings.internal_toObject(e,t.getEdgetpuSettings()),coralSettings:proto.acceleration.CoralDelegateSettings.internal_toObject(e,t.getCoralSettings()),xnnpackSettings:proto.acceleration.XNNPackSettings.internal_toObject(e,t.getXnnpackSettings()),coremlSettings:proto.acceleration.CoreMLDelegateSettings.internal_toObject(e,t.getCoremlSettings()),enumerationHangDetection:proto.acceleration.HangDetectionSettings.internal_toObject(e,t.getEnumerationHangDetection()),compilationHangDetection:proto.acceleration.HangDetectionSettings.internal_toObject(e,t.getCompilationHangDetection()),executionHangDetection:proto.acceleration.HangDetectionSettings.internal_toObject(e,t.getExecutionHangDetection()),allowFp16PrecisionForFp32:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,9)),fallbackSettings:proto.acceleration.FallbackSettings.internal_toObject(e,t.getFallbackSettings()),maxDelegatedPartitions:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,14,-1)};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.TFLiteSettings.internalDoNotUse$acceleration$TFLiteSettings$binaryFieldsObject=[proto.acceleration.TFLiteSettings,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWMessage,proto.acceleration.NNAPIDelegateSettings.internalDoNotUse$acceleration$NNAPIDelegateSettings$binaryFieldsObject,3,jspb.internal.binary.RWMessage,proto.acceleration.GPUDelegateSettings.internalDoNotUse$acceleration$GPUDelegateSettings$binaryFieldsObject,4,jspb.internal.binary.RWMessage,proto.acceleration.CPUSettings.internalDoNotUse$acceleration$CPUSettings$binaryFieldsObject,5,jspb.internal.binary.RWMessage,proto.acceleration.HexagonDelegateSettings.internalDoNotUse$acceleration$HexagonDelegateSettings$binaryFieldsObject,10,jspb.internal.binary.RWMessage,proto.acceleration.EdgeTpuDelegateSettings.internalDoNotUse$acceleration$EdgeTpuDelegateSettings$binaryFieldsObject,12,jspb.internal.binary.RWMessage,proto.acceleration.CoralDelegateSettings.internalDoNotUse$acceleration$CoralDelegateSettings$binaryFieldsObject,13,jspb.internal.binary.RWMessage,proto.acceleration.XNNPackSettings.internalDoNotUse$acceleration$XNNPackSettings$binaryFieldsObject,15,jspb.internal.binary.RWMessage,proto.acceleration.CoreMLDelegateSettings.internalDoNotUse$acceleration$CoreMLDelegateSettings$binaryFieldsObject,6,jspb.internal.binary.RWMessage,proto.acceleration.HangDetectionSettings.internalDoNotUse$acceleration$HangDetectionSettings$binaryFieldsObject,7,jspb.internal.binary.RWMessage,proto.acceleration.HangDetectionSettings.internalDoNotUse$acceleration$HangDetectionSettings$binaryFieldsObject,8,jspb.internal.binary.RWMessage,proto.acceleration.HangDetectionSettings.internalDoNotUse$acceleration$HangDetectionSettings$binaryFieldsObject,9,jspb.internal.binary.RWBool,11,jspb.internal.binary.RWMessage,proto.acceleration.FallbackSettings.internalDoNotUse$acceleration$FallbackSettings$binaryFieldsObject,14,jspb.internal.binary.RWInt32],proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader=function(){},proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getSettingsToTestList=function(){},proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getReadonlySettingsToTestList=function(){},proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getModelFile=function(){},proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getReadonlyModelFile=function(){},proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader.prototype.hasModelFile=function(){},proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getStoragePaths=function(){},proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getReadonlyStoragePaths=function(){},proto.acceleration.$internalDoNotUseMinibenchmarkSettingsReader.prototype.hasStoragePaths=function(){},proto.acceleration.MinibenchmarkSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.acceleration.MinibenchmarkSettings.repeatedFields_)},$jscomp.inherits(proto.acceleration.MinibenchmarkSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.MinibenchmarkSettings.prototype.getSettingsToTestList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.acceleration.TFLiteSettings,1)},proto.acceleration.MinibenchmarkSettings.prototype.getReadonlySettingsToTestList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.acceleration.TFLiteSettings,1)},proto.acceleration.MinibenchmarkSettings.prototype.setSettingsToTestList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.acceleration.TFLiteSettings,1,e)},proto.acceleration.MinibenchmarkSettings.prototype.addSettingsToTest=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,1,proto.acceleration.TFLiteSettings,e,t)},proto.acceleration.MinibenchmarkSettings.prototype.addAndReturnSettingsToTest=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,1,proto.acceleration.TFLiteSettings,e,t)},proto.acceleration.MinibenchmarkSettings.prototype.clearSettingsToTestList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,1)},proto.acceleration.MinibenchmarkSettings.prototype.getModelFile=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.ModelFile,2)},proto.acceleration.MinibenchmarkSettings.prototype.getReadonlyModelFile=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.ModelFile,2)},proto.acceleration.MinibenchmarkSettings.prototype.getMutableModelFile=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.ModelFile,2)},proto.acceleration.MinibenchmarkSettings.prototype.setModelFile=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.ModelFile,2,e)},proto.acceleration.MinibenchmarkSettings.prototype.clearModelFile=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.MinibenchmarkSettings.prototype.hasModelFile=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.ModelFile,2)},proto.acceleration.MinibenchmarkSettings.prototype.getStoragePaths=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.BenchmarkStoragePaths,3)},proto.acceleration.MinibenchmarkSettings.prototype.getReadonlyStoragePaths=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.BenchmarkStoragePaths,3)},proto.acceleration.MinibenchmarkSettings.prototype.getMutableStoragePaths=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.BenchmarkStoragePaths,3)},proto.acceleration.MinibenchmarkSettings.prototype.setStoragePaths=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.BenchmarkStoragePaths,3,e)},proto.acceleration.MinibenchmarkSettings.prototype.clearStoragePaths=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.MinibenchmarkSettings.prototype.hasStoragePaths=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.BenchmarkStoragePaths,3)},proto.acceleration.MinibenchmarkSettings.prototype.serializeBinary=function(){return proto.acceleration.MinibenchmarkSettings.serializeBinary(this)},proto.acceleration.MinibenchmarkSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.MinibenchmarkSettings.internalDoNotUse$acceleration$MinibenchmarkSettings$binaryFieldsObject)},proto.acceleration.MinibenchmarkSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.MinibenchmarkSettings.internalDoNotUse$acceleration$MinibenchmarkSettings$binaryFieldsObject,t)},proto.acceleration.MinibenchmarkSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.MinibenchmarkSettings.internalDoNotUse$acceleration$MinibenchmarkSettings$binaryFieldsObject)},proto.acceleration.MinibenchmarkSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.MinibenchmarkSettings,e)},proto.acceleration.MinibenchmarkSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.MinibenchmarkSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableMinibenchmarkSettings"),proto.acceleration.MutableMinibenchmarkSettings=proto.acceleration.MinibenchmarkSettings,proto.acceleration.ReadonlyMinibenchmarkSettings={},proto.acceleration.ImmutableMinibenchmarkSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableMinibenchmarkSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableMinibenchmarkSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.MinibenchmarkSettings,e,t)},proto.acceleration.ImmutableMinibenchmarkSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.MinibenchmarkSettings)},proto.acceleration.ImmutableMinibenchmarkSettings.serializeBinary=function(e){return proto.acceleration.MinibenchmarkSettings.serializeBinary(e)},proto.acceleration.ImmutableMinibenchmarkSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.MinibenchmarkSettings.internalDoNotUse$acceleration$MinibenchmarkSettings$binaryFieldsObject,t,n)},proto.acceleration.ImmutableMinibenchmarkSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.MinibenchmarkSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableMinibenchmarkSettings"),proto.acceleration.MinibenchmarkSettings.repeatedFields_=[1],proto.acceleration.MinibenchmarkSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.MinibenchmarkSettings.fromObject=function(e){var t=new proto.acceleration.MinibenchmarkSettings;return jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.acceleration.TFLiteSettings,1,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.settingsToTestList,proto.acceleration.TFLiteSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.ModelFile,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.modelFile,proto.acceleration.ModelFile.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.BenchmarkStoragePaths,3,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.storagePaths,proto.acceleration.BenchmarkStoragePaths.fromObject)),t}),proto.acceleration.MinibenchmarkSettings.prototype.toObject=function(e){return proto.acceleration.MinibenchmarkSettings.internal_toObject(e,this)},proto.acceleration.MinibenchmarkSettings.internal_toObject=function(e,t){if(null!=t){var n={settingsToTestList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getSettingsToTestList(),proto.acceleration.TFLiteSettings.internal_toObject,e),modelFile:proto.acceleration.ModelFile.internal_toObject(e,t.getModelFile()),storagePaths:proto.acceleration.BenchmarkStoragePaths.internal_toObject(e,t.getStoragePaths())};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.MinibenchmarkSettings.internalDoNotUse$acceleration$MinibenchmarkSettings$binaryFieldsObject=[proto.acceleration.MinibenchmarkSettings,1,jspb.internal.binary.RWRepeatedMessage,proto.acceleration.TFLiteSettings.internalDoNotUse$acceleration$TFLiteSettings$binaryFieldsObject,2,jspb.internal.binary.RWMessage,proto.acceleration.ModelFile.internalDoNotUse$acceleration$ModelFile$binaryFieldsObject,3,jspb.internal.binary.RWMessage,proto.acceleration.BenchmarkStoragePaths.internalDoNotUse$acceleration$BenchmarkStoragePaths$binaryFieldsObject],proto.acceleration.$internalDoNotUseAccelerationReader=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getPreference=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getPreference_legacyNullable=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.hasPreference=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getPreferenceOrUndefined=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getTfliteSettings=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getReadonlyTfliteSettings=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.hasTfliteSettings=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getModelIdentifierForStatistics=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getReadonlyModelIdentifierForStatistics=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.hasModelIdentifierForStatistics=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getSettingsToTestLocally=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.getReadonlySettingsToTestLocally=function(){},proto.acceleration.$internalDoNotUseAccelerationReader.prototype.hasSettingsToTestLocally=function(){},proto.acceleration.Acceleration=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.acceleration.Acceleration,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.acceleration.Acceleration.prototype.getPreference=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.Acceleration.prototype.getPreference_legacyNullable=function(){return jspb.internal.jspb_adapters.getFieldNullable(this,1)},proto.acceleration.Acceleration.prototype.setPreference=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.acceleration.Acceleration.prototype.clearPreference=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.acceleration.Acceleration.prototype.hasPreference=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.acceleration.Acceleration.prototype.getPreferenceOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.acceleration.Acceleration.prototype.getTfliteSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.TFLiteSettings,2)},proto.acceleration.Acceleration.prototype.getReadonlyTfliteSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.TFLiteSettings,2)},proto.acceleration.Acceleration.prototype.getMutableTfliteSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.TFLiteSettings,2)},proto.acceleration.Acceleration.prototype.setTfliteSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.TFLiteSettings,2,e)},proto.acceleration.Acceleration.prototype.clearTfliteSettings=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.acceleration.Acceleration.prototype.hasTfliteSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.TFLiteSettings,2)},proto.acceleration.Acceleration.prototype.getModelIdentifierForStatistics=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.InferenceToUseFor,3)},proto.acceleration.Acceleration.prototype.getReadonlyModelIdentifierForStatistics=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.InferenceToUseFor,3)},proto.acceleration.Acceleration.prototype.getMutableModelIdentifierForStatistics=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.InferenceToUseFor,3)},proto.acceleration.Acceleration.prototype.setModelIdentifierForStatistics=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.InferenceToUseFor,3,e)},proto.acceleration.Acceleration.prototype.clearModelIdentifierForStatistics=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.acceleration.Acceleration.prototype.hasModelIdentifierForStatistics=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.InferenceToUseFor,3)},proto.acceleration.Acceleration.prototype.getSettingsToTestLocally=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.MinibenchmarkSettings,5)},proto.acceleration.Acceleration.prototype.getReadonlySettingsToTestLocally=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.MinibenchmarkSettings,5)},proto.acceleration.Acceleration.prototype.getMutableSettingsToTestLocally=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.MinibenchmarkSettings,5)},proto.acceleration.Acceleration.prototype.setSettingsToTestLocally=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.MinibenchmarkSettings,5,e)},proto.acceleration.Acceleration.prototype.clearSettingsToTestLocally=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.acceleration.Acceleration.prototype.hasSettingsToTestLocally=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.MinibenchmarkSettings,5)},proto.acceleration.Acceleration.prototype.serializeBinary=function(){return proto.acceleration.Acceleration.serializeBinary(this)},proto.acceleration.Acceleration.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.acceleration.Acceleration.internalDoNotUse$acceleration$Acceleration$binaryFieldsObject)},proto.acceleration.Acceleration.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.acceleration.Acceleration.internalDoNotUse$acceleration$Acceleration$binaryFieldsObject,t)},proto.acceleration.Acceleration.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.acceleration.Acceleration.internalDoNotUse$acceleration$Acceleration$binaryFieldsObject)},proto.acceleration.Acceleration.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.acceleration.Acceleration,e)},proto.acceleration.Acceleration.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.Acceleration&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableAcceleration"),proto.acceleration.MutableAcceleration=proto.acceleration.Acceleration,proto.acceleration.ReadonlyAcceleration={},proto.acceleration.ImmutableAcceleration=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.acceleration.ImmutableAcceleration,module$exports$jspb$immutable_message.ImmutableMessage),proto.acceleration.ImmutableAcceleration.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.acceleration.Acceleration,e,t)},proto.acceleration.ImmutableAcceleration.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.acceleration.Acceleration)},proto.acceleration.ImmutableAcceleration.serializeBinary=function(e){return proto.acceleration.Acceleration.serializeBinary(e)},proto.acceleration.ImmutableAcceleration.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.acceleration.Acceleration.internalDoNotUse$acceleration$Acceleration$binaryFieldsObject,t,n)},proto.acceleration.ImmutableAcceleration.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.acceleration.Acceleration&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableAcceleration"),proto.acceleration.Acceleration.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.acceleration.Acceleration.fromObject=function(e){var t=new proto.acceleration.Acceleration;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.preference),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.TFLiteSettings,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.tfliteSettings,proto.acceleration.TFLiteSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.InferenceToUseFor,3,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.modelIdentifierForStatistics,proto.acceleration.InferenceToUseFor.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.MinibenchmarkSettings,5,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.settingsToTestLocally,proto.acceleration.MinibenchmarkSettings.fromObject)),t}),proto.acceleration.Acceleration.prototype.toObject=function(e){return proto.acceleration.Acceleration.internal_toObject(e,this)},proto.acceleration.Acceleration.internal_toObject=function(e,t){if(null!=t){var n={preference:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),tfliteSettings:proto.acceleration.TFLiteSettings.internal_toObject(e,t.getTfliteSettings()),modelIdentifierForStatistics:proto.acceleration.InferenceToUseFor.internal_toObject(e,t.getModelIdentifierForStatistics()),settingsToTestLocally:proto.acceleration.MinibenchmarkSettings.internal_toObject(e,t.getSettingsToTestLocally())};return e&&(n.$jspbMessageInstance=t),n}},proto.acceleration.Acceleration.internalDoNotUse$acceleration$Acceleration$binaryFieldsObject=[proto.acceleration.Acceleration,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWMessage,proto.acceleration.TFLiteSettings.internalDoNotUse$acceleration$TFLiteSettings$binaryFieldsObject,3,jspb.internal.binary.RWMessage,proto.acceleration.InferenceToUseFor.internalDoNotUse$acceleration$InferenceToUseFor$binaryFieldsObject,5,jspb.internal.binary.RWMessage,proto.acceleration.MinibenchmarkSettings.internalDoNotUse$acceleration$MinibenchmarkSettings$binaryFieldsObject],proto.visionkit={},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.getFd=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.hasFd=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.getFdOrUndefined=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.getLength=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.hasLength=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.getLengthOrUndefined=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.getOffset=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.hasOffset=function(){},proto.visionkit.$internalDoNotUseFileDescriptorMetaReader.prototype.getOffsetOrUndefined=function(){},proto.visionkit.FileDescriptorMeta=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.visionkit.FileDescriptorMeta,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.visionkit.FileDescriptorMeta.prototype.getFd=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,1)},proto.visionkit.FileDescriptorMeta.prototype.setFd=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.visionkit.FileDescriptorMeta.prototype.clearFd=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.visionkit.FileDescriptorMeta.prototype.hasFd=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.visionkit.FileDescriptorMeta.prototype.getFdOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.visionkit.FileDescriptorMeta.prototype.getLength=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,2)},proto.visionkit.FileDescriptorMeta.prototype.setLength=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.visionkit.FileDescriptorMeta.prototype.clearLength=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.visionkit.FileDescriptorMeta.prototype.hasLength=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.visionkit.FileDescriptorMeta.prototype.getLengthOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.visionkit.FileDescriptorMeta.prototype.getOffset=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,3)},proto.visionkit.FileDescriptorMeta.prototype.setOffset=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.visionkit.FileDescriptorMeta.prototype.clearOffset=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.visionkit.FileDescriptorMeta.prototype.hasOffset=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.visionkit.FileDescriptorMeta.prototype.getOffsetOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.visionkit.FileDescriptorMeta.prototype.serializeBinary=function(){return proto.visionkit.FileDescriptorMeta.serializeBinary(this)},proto.visionkit.FileDescriptorMeta.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.visionkit.FileDescriptorMeta.internalDoNotUse$visionkit$FileDescriptorMeta$binaryFieldsObject)},proto.visionkit.FileDescriptorMeta.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.visionkit.FileDescriptorMeta.internalDoNotUse$visionkit$FileDescriptorMeta$binaryFieldsObject,t)},proto.visionkit.FileDescriptorMeta.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.visionkit.FileDescriptorMeta.internalDoNotUse$visionkit$FileDescriptorMeta$binaryFieldsObject)},proto.visionkit.FileDescriptorMeta.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.visionkit.FileDescriptorMeta,e)},proto.visionkit.FileDescriptorMeta.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.visionkit.FileDescriptorMeta&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableFileDescriptorMeta"),proto.visionkit.MutableFileDescriptorMeta=proto.visionkit.FileDescriptorMeta,proto.visionkit.ReadonlyFileDescriptorMeta={},proto.visionkit.ImmutableFileDescriptorMeta=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.visionkit.ImmutableFileDescriptorMeta,module$exports$jspb$immutable_message.ImmutableMessage),proto.visionkit.ImmutableFileDescriptorMeta.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.visionkit.FileDescriptorMeta,e,t)},proto.visionkit.ImmutableFileDescriptorMeta.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.visionkit.FileDescriptorMeta)},proto.visionkit.ImmutableFileDescriptorMeta.serializeBinary=function(e){return proto.visionkit.FileDescriptorMeta.serializeBinary(e)},proto.visionkit.ImmutableFileDescriptorMeta.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.visionkit.FileDescriptorMeta.internalDoNotUse$visionkit$FileDescriptorMeta$binaryFieldsObject,t,n)},proto.visionkit.ImmutableFileDescriptorMeta.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.visionkit.FileDescriptorMeta&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableFileDescriptorMeta"),proto.visionkit.FileDescriptorMeta.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.visionkit.FileDescriptorMeta.fromObject=function(e){var t=new proto.visionkit.FileDescriptorMeta;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.fd),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.length),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.offset),t}),proto.visionkit.FileDescriptorMeta.prototype.toObject=function(e){return proto.visionkit.FileDescriptorMeta.internal_toObject(e,this)},proto.visionkit.FileDescriptorMeta.internal_toObject=function(e,t){if(null!=t){var n={fd:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),length:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),offset:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3))};return e&&(n.$jspbMessageInstance=t),n}},proto.visionkit.FileDescriptorMeta.internalDoNotUse$visionkit$FileDescriptorMeta$binaryFieldsObject=[proto.visionkit.FileDescriptorMeta,1,jspb.internal.binary.RWInt32,2,jspb.internal.binary.RWInt64,3,jspb.internal.binary.RWInt64],proto.visionkit.$internalDoNotUseExternalFileReader=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.getFileContent=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.getFileContent_asB64=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.getFileContent_asBase64OrUint8Array=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.hasFileContent=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.getFileContentOrUndefined=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.getFileName=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.hasFileName=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.getFileNameOrUndefined=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.getFileDescriptorMeta=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.getReadonlyFileDescriptorMeta=function(){},proto.visionkit.$internalDoNotUseExternalFileReader.prototype.hasFileDescriptorMeta=function(){},proto.visionkit.ExternalFile=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.visionkit.ExternalFile,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.visionkit.ExternalFile.prototype.getFileContent=function(){return jspb.internal.jspb_adapters.getBytesFieldWithDefault(this,2)},proto.visionkit.ExternalFile.prototype.getFileContent_asB64=function(){return module$contents$jspb$internal$public_for_gencode_byteStringAsB64(jspb.internal.jspb_adapters.getBytesFieldWithDefault(this,2))},proto.visionkit.ExternalFile.prototype.getFileContent_asBase64OrUint8Array=function(){return module$contents$jspb$internal$public_for_gencode_byteStringAsBase64OrUint8Array(jspb.internal.jspb_adapters.getBytesFieldWithDefault(this,2))},proto.visionkit.ExternalFile.prototype.getFileContent_asU8=function(){return module$contents$jspb$internal$public_for_gencode_assertMutable(this),module$contents$jspb$internal$public_for_gencode_byteStringAsU8(jspb.internal.jspb_adapters.getBytesFieldWithDefault(this,2))},proto.visionkit.ExternalFile.prototype.setFileContent=function(e){return jspb.internal.jspb_adapters.setBytesField(this,2,e)},proto.visionkit.ExternalFile.prototype.clearFileContent=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.visionkit.ExternalFile.prototype.hasFileContent=function(){return jspb.internal.jspb_adapters.hasBytesField(this,2)},proto.visionkit.ExternalFile.prototype.getFileContentOrUndefined=function(){return jspb.internal.jspb_adapters.getBytesFieldOrUndefined(this,2)},proto.visionkit.ExternalFile.prototype.getFileName=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,1)},proto.visionkit.ExternalFile.prototype.setFileName=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.visionkit.ExternalFile.prototype.clearFileName=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.visionkit.ExternalFile.prototype.hasFileName=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.visionkit.ExternalFile.prototype.getFileNameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.visionkit.ExternalFile.prototype.getFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.visionkit.FileDescriptorMeta,4)},proto.visionkit.ExternalFile.prototype.getReadonlyFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.visionkit.FileDescriptorMeta,4)},proto.visionkit.ExternalFile.prototype.getMutableFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.visionkit.FileDescriptorMeta,4)},proto.visionkit.ExternalFile.prototype.setFileDescriptorMeta=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.visionkit.FileDescriptorMeta,4,e)},proto.visionkit.ExternalFile.prototype.clearFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.visionkit.ExternalFile.prototype.hasFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.visionkit.FileDescriptorMeta,4)},proto.visionkit.ExternalFile.prototype.serializeBinary=function(){return proto.visionkit.ExternalFile.serializeBinary(this)},proto.visionkit.ExternalFile.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.visionkit.ExternalFile.internalDoNotUse$visionkit$ExternalFile$binaryFieldsObject)},proto.visionkit.ExternalFile.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.visionkit.ExternalFile.internalDoNotUse$visionkit$ExternalFile$binaryFieldsObject,t)},proto.visionkit.ExternalFile.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.visionkit.ExternalFile.internalDoNotUse$visionkit$ExternalFile$binaryFieldsObject)},proto.visionkit.ExternalFile.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.visionkit.ExternalFile,e)},proto.visionkit.ExternalFile.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.visionkit.ExternalFile&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableExternalFile"),proto.visionkit.MutableExternalFile=proto.visionkit.ExternalFile,proto.visionkit.ReadonlyExternalFile={},proto.visionkit.ImmutableExternalFile=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.visionkit.ImmutableExternalFile,module$exports$jspb$immutable_message.ImmutableMessage),proto.visionkit.ImmutableExternalFile.prototype.getFileContent_asB64=function(){},proto.visionkit.ImmutableExternalFile.prototype.getFileContent_asBase64OrUint8Array=function(){},proto.visionkit.ImmutableExternalFile.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.visionkit.ExternalFile,e,t)},proto.visionkit.ImmutableExternalFile.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.visionkit.ExternalFile)},proto.visionkit.ImmutableExternalFile.serializeBinary=function(e){return proto.visionkit.ExternalFile.serializeBinary(e)},proto.visionkit.ImmutableExternalFile.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.visionkit.ExternalFile.internalDoNotUse$visionkit$ExternalFile$binaryFieldsObject,t,n)},proto.visionkit.ImmutableExternalFile.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.visionkit.ExternalFile&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableExternalFile"),proto.visionkit.ExternalFile.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.visionkit.ExternalFile.fromObject=function(e){var t=new proto.visionkit.ExternalFile;return jspb.internal.jspb_adapters.setBytesFieldIfNotNullish(t,2,e.fileContent),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.fileName),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.visionkit.FileDescriptorMeta,4,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.fileDescriptorMeta,proto.visionkit.FileDescriptorMeta.fromObject)),t}),proto.visionkit.ExternalFile.prototype.toObject=function(e){return proto.visionkit.ExternalFile.internal_toObject(e,this)},proto.visionkit.ExternalFile.internal_toObject=function(e,t){if(null!=t){var n={fileContent:module$contents$jspb$internal$public_for_gencode_toObjectBytes(t.getFileContent()),fileName:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),fileDescriptorMeta:proto.visionkit.FileDescriptorMeta.internal_toObject(e,t.getFileDescriptorMeta())};return e&&(n.$jspbMessageInstance=t),n}},proto.visionkit.ExternalFile.internalDoNotUse$visionkit$ExternalFile$binaryFieldsObject=[proto.visionkit.ExternalFile,2,jspb.internal.binary.RWBytes,1,jspb.internal.binary.RWString,4,jspb.internal.binary.RWMessage,proto.visionkit.FileDescriptorMeta.internalDoNotUse$visionkit$FileDescriptorMeta$binaryFieldsObject],goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(e){if(goog.asserts.ENABLE_ASSERTS){var t=goog.dom.asserts.getWindow_(e);t&&(!e||!(e instanceof t.Location)&&e instanceof t.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(e))}return e},goog.dom.asserts.assertIsElementType_=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var n=goog.dom.asserts.getWindow_(e);n&&void 0!==n[t]&&(e&&(e instanceof n[t]||!(e instanceof n.Location||e instanceof n.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,goog.dom.asserts.debugStringForType_(e)))}return e},goog.dom.asserts.assertIsHTMLAnchorElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(e){if(!goog.isObject(e))return void 0===e?"undefined":null===e?"null":typeof e;try{return e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){return"<object could not be stringified>"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,n=t&&(t.defaultView||t.parentWindow);if((n=n||goog.global).Element&&n.Location)return n}catch(e){}return null},goog.dom.HtmlElement=function(){},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.UNDEFINED=function(){},goog.functions.EMPTY=goog.functions.UNDEFINED,goog.functions.identity=function(e){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=this;t===goog.global&&(t=void 0);var r=Array.prototype.slice.call(arguments);return r.push.apply(r,n),e.apply(t,r)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(n){return t?e==n:e===n}},goog.functions.compose=function(e,t){var n=arguments,r=n.length;return function(){var e;r&&(e=n[r-1].apply(this,arguments));for(var t=r-2;0<=t;t--)e=n[t].call(this,e);return e}},goog.functions.sequence=function(e){var t=arguments,n=t.length;return function(){for(var e,r=0;r<n;r++)e=t[r].apply(this,arguments);return e}},goog.functions.and=function(e){var t=arguments,n=t.length;return function(){for(var e=0;e<n;e++)if(!t[e].apply(this,arguments))return!1;return!0}},goog.functions.or=function(e){var t=arguments,n=t.length;return function(){for(var e=0;e<n;e++)if(t[e].apply(this,arguments))return!0;return!1}},goog.functions.not=function(e){return function(){return!e.apply(this,arguments)}},goog.functions.create=function(e,t){var n=function(){};return n.prototype=e.prototype,n=new n,e.apply(n,Array.prototype.slice.call(arguments,1)),n},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(e){var t,n=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(n||(t=e(),n=!0),t):e()}},goog.functions.once=function(e){var t=e;return function(){if(t){var e=t;t=null,e()}}},goog.functions.debounce=function(e,t,n){var r=0;return function(i){goog.global.clearTimeout(r);var a=arguments;r=goog.global.setTimeout(function(){e.apply(n,a)},t)}},goog.functions.throttle=function(e,t,n){var r=0,i=!1,a=[],o=function(){r=0,i&&(i=!1,s())},s=function(){r=goog.global.setTimeout(o,t);var i=a;a=[],e.apply(n,i)};return function(e){a=arguments,r?i=!0:s()}},goog.functions.rateLimit=function(e,t,n){var r=0,i=function(){r=0};return function(a){r||(r=goog.global.setTimeout(i,t),e.apply(n,arguments))}},goog.functions.isFunction=function(e){return"function"==typeof e},goog.dom.TagName=function(){},goog.dom.TagName.cast=function(e){return e},goog.dom.TagName.prototype.toString=function(){},goog.dom.TagName.A="A",goog.dom.TagName.ABBR="ABBR",goog.dom.TagName.ACRONYM="ACRONYM",goog.dom.TagName.ADDRESS="ADDRESS",goog.dom.TagName.APPLET="APPLET",goog.dom.TagName.AREA="AREA",goog.dom.TagName.ARTICLE="ARTICLE",goog.dom.TagName.ASIDE="ASIDE",goog.dom.TagName.AUDIO="AUDIO",goog.dom.TagName.B="B",goog.dom.TagName.BASE="BASE",goog.dom.TagName.BASEFONT="BASEFONT",goog.dom.TagName.BDI="BDI",goog.dom.TagName.BDO="BDO",goog.dom.TagName.BIG="BIG",goog.dom.TagName.BLOCKQUOTE="BLOCKQUOTE",goog.dom.TagName.BODY="BODY",goog.dom.TagName.BR="BR",goog.dom.TagName.BUTTON="BUTTON",goog.dom.TagName.CANVAS="CANVAS",goog.dom.TagName.CAPTION="CAPTION",goog.dom.TagName.CENTER="CENTER",goog.dom.TagName.CITE="CITE",goog.dom.TagName.CODE="CODE",goog.dom.TagName.COL="COL",goog.dom.TagName.COLGROUP="COLGROUP",goog.dom.TagName.COMMAND="COMMAND",goog.dom.TagName.DATA="DATA",goog.dom.TagName.DATALIST="DATALIST",goog.dom.TagName.DD="DD",goog.dom.TagName.DEL="DEL",goog.dom.TagName.DETAILS="DETAILS",goog.dom.TagName.DFN="DFN",goog.dom.TagName.DIALOG="DIALOG",goog.dom.TagName.DIR="DIR",goog.dom.TagName.DIV="DIV",goog.dom.TagName.DL="DL",goog.dom.TagName.DT="DT",goog.dom.TagName.EM="EM",goog.dom.TagName.EMBED="EMBED",goog.dom.TagName.FIELDSET="FIELDSET",goog.dom.TagName.FIGCAPTION="FIGCAPTION",goog.dom.TagName.FIGURE="FIGURE",goog.dom.TagName.FONT="FONT",goog.dom.TagName.FOOTER="FOOTER",goog.dom.TagName.FORM="FORM",goog.dom.TagName.FRAME="FRAME",goog.dom.TagName.FRAMESET="FRAMESET",goog.dom.TagName.H1="H1",goog.dom.TagName.H2="H2",goog.dom.TagName.H3="H3",goog.dom.TagName.H4="H4",goog.dom.TagName.H5="H5",goog.dom.TagName.H6="H6",goog.dom.TagName.HEAD="HEAD",goog.dom.TagName.HEADER="HEADER",goog.dom.TagName.HGROUP="HGROUP",goog.dom.TagName.HR="HR",goog.dom.TagName.HTML="HTML",goog.dom.TagName.I="I",goog.dom.TagName.IFRAME="I
2FRAME",goog.dom.TagName.IMG="IMG",goog.dom.TagName.INPUT="INPUT",goog.dom.TagName.INS="INS",goog.dom.TagName.ISINDEX="ISINDEX",goog.dom.TagName.KBD="KBD",goog.dom.TagName.KEYGEN="KEYGEN",goog.dom.TagName.LABEL="LABEL",goog.dom.TagName.LEGEND="LEGEND",goog.dom.TagName.LI="LI",goog.dom.TagName.LINK="LINK",goog.dom.TagName.MAIN="MAIN",goog.dom.TagName.MAP="MAP",goog.dom.TagName.MARK="MARK",goog.dom.TagName.MATH="MATH",goog.dom.TagName.MENU="MENU",goog.dom.TagName.MENUITEM="MENUITEM",goog.dom.TagName.META="META",goog.dom.TagName.METER="METER",goog.dom.TagName.NAV="NAV",goog.dom.TagName.NOFRAMES="NOFRAMES",goog.dom.TagName.NOSCRIPT="NOSCRIPT",goog.dom.TagName.OBJECT="OBJECT",goog.dom.TagName.OL="OL",goog.dom.TagName.OPTGROUP="OPTGROUP",goog.dom.TagName.OPTION="OPTION",goog.dom.TagName.OUTPUT="OUTPUT",goog.dom.TagName.P="P",goog.dom.TagName.PARAM="PARAM",goog.dom.TagName.PICTURE="PICTURE",goog.dom.TagName.PRE="PRE",goog.dom.TagName.PROGRESS="PROGRESS",goog.dom.TagName.Q="Q",goog.dom.TagName.RP="RP",goog.dom.TagName.RT="RT",goog.dom.TagName.RTC="RTC",goog.dom.TagName.RUBY="RUBY",goog.dom.TagName.S="S",goog.dom.TagName.SAMP="SAMP",goog.dom.TagName.SCRIPT="SCRIPT",goog.dom.TagName.SECTION="SECTION",goog.dom.TagName.SELECT="SELECT",goog.dom.TagName.SMALL="SMALL",goog.dom.TagName.SOURCE="SOURCE",goog.dom.TagName.SPAN="SPAN",goog.dom.TagName.STRIKE="STRIKE",goog.dom.TagName.STRONG="STRONG",goog.dom.TagName.STYLE="STYLE",goog.dom.TagName.SUB="SUB",goog.dom.TagName.SUMMARY="SUMMARY",goog.dom.TagName.SUP="SUP",goog.dom.TagName.SVG="SVG",goog.dom.TagName.TABLE="TABLE",goog.dom.TagName.TBODY="TBODY",goog.dom.TagName.TD="TD",goog.dom.TagName.TEMPLATE="TEMPLATE",goog.dom.TagName.TEXTAREA="TEXTAREA",goog.dom.TagName.TFOOT="TFOOT",goog.dom.TagName.TH="TH",goog.dom.TagName.THEAD="THEAD",goog.dom.TagName.TIME="TIME",goog.dom.TagName.TITLE="TITLE",goog.dom.TagName.TR="TR",goog.dom.TagName.TRACK="TRACK",goog.dom.TagName.TT="TT",goog.dom.TagName.U="U",goog.dom.TagName.UL="UL",goog.dom.TagName.VAR="VAR",goog.dom.TagName.VIDEO="VIDEO",goog.dom.TagName.WBR="WBR",goog.object={};var module$contents$goog$object_PROTOTYPE_FIELDS="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function module$contents$goog$object_create(e){var t=arguments.length;if(1==t&&Array.isArray(arguments[0]))return module$contents$goog$object_create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var n={},r=0;r<t;r+=2)n[arguments[r]]=arguments[r+1];return n}function module$contents$goog$object_createSet(e){var t=arguments.length;if(1==t&&Array.isArray(arguments[0]))return module$contents$goog$object_createSet.apply(null,arguments[0]);for(var n={},r=0;r<t;r++)n[arguments[r]]=!0;return n}goog.object.add=function(e,t,n){if(null!==e&&t in e)throw Error('The object already contains the key "'+t+'"');e[t]=n},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.clone=function(e){var t,n={};for(t in e)n[t]=e[t];return n},goog.object.contains=function(e,t){return module$contents$goog$object_containsValue(e,t)},goog.object.containsKey=function(e,t){return null!==e&&t in e},goog.object.containsValue=module$contents$goog$object_containsValue,goog.object.create=module$contents$goog$object_create,goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&Object.freeze(t=Object.create(e)),t},goog.object.createSet=module$contents$goog$object_createSet,goog.object.equals=function(e,t){for(var n in e)if(!(n in t)||e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0},goog.object.every=function(e,t,n){for(var r in e)if(!t.call(n,e[r],r,e))return!1;return!0},goog.object.extend=function(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var a=0;a<module$contents$goog$object_PROTOTYPE_FIELDS.length;a++)n=module$contents$goog$object_PROTOTYPE_FIELDS[a],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}},goog.object.filter=function(e,t,n){var r,i={};for(r in e)t.call(n,e[r],r,e)&&(i[r]=e[r]);return i},goog.object.findKey=module$contents$goog$object_findKey,goog.object.findValue=function(e,t,n){return(t=module$contents$goog$object_findKey(e,t,n))&&e[t]},goog.object.forEach=function(e,t,n){for(var r in e)t.call(n,e[r],r,e)},goog.object.get=function(e,t,n){return null!==e&&t in e?e[t]:n},goog.object.getAllPropertyNames=function(e,t,n){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return module$contents$goog$object_getKeys(e);for(var r={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||n);){for(var i=Object.getOwnPropertyNames(e),a=0;a<i.length;a++)r[i[a]]=!0;e=Object.getPrototypeOf(e)}return module$contents$goog$object_getKeys(r)}
vendor: 42,006 bytes, line 2
2,goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.getCount=function(e){var t,n=0;for(t in e)n++;return n},goog.object.getKeys=module$contents$goog$object_getKeys,goog.object.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor},goog.object.getValueByKeys=function(e,t){var n=goog.isArrayLike(t),r=n?t:arguments;for(n=+!n;n<r.length;n++){if(null==e)return;e=e[r[n]]}return e},goog.object.getValues=function(e){var t,n=[],r=0;for(t in e)n[r++]=e[t];return n},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.map=function(e,t,n){var r,i={};for(r in e)i[r]=t.call(n,e[r],r,e);return i},goog.object.remove=function(e,t){var n;return(n=t in e)&&delete e[t],n},goog.object.set=function(e,t,n){e[t]=n},goog.object.setIfUndefined=function(e,t,n){return t in e?e[t]:e[t]=n},goog.object.setWithReturnValueIfNotSet=function(e,t,n){return t in e?e[t]:(n=n(),e[t]=n)},goog.object.some=function(e,t,n){for(var r in e)if(t.call(n,e[r],r,e))return!0;return!1},goog.object.transpose=function(e){var t,n={};for(t in e)n[e[t]]=t;return n},goog.object.unsafeClone=module$contents$goog$object_unsafeClone,goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(e){return!0===goog.dom.tags.VOID_TAGS_[e]},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.POLICY_NAME=goog.TRUSTED_TYPES_POLICY_NAME?goog.TRUSTED_TYPES_POLICY_NAME+"#html":"",goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse=function(){return goog.html.trustedtypes.POLICY_NAME?(void 0===goog.html.trustedtypes.cachedPolicy_&&(goog.html.trustedtypes.cachedPolicy_=goog.createTrustedTypesPolicy(goog.html.trustedtypes.POLICY_NAME)),goog.html.trustedtypes.cachedPolicy_):null},goog.string.TypedString=function(){},goog.string.Const=function(e,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(e){return e instanceof goog.string.Const&&e.constructor===goog.string.Const&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+e+"'"),"type_error:Const")},goog.string.Const.from=function(e){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from("");var module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE={},module$contents$goog$html$SafeScript_SafeScript=function(e,t){this.privateDoNotAccessOrElseSafeScriptWrappedValue_=t===module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE?e:"",this.implementsGoogStringTypedString=!0};module$contents$goog$html$SafeScript_SafeScript.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},module$contents$goog$html$SafeScript_SafeScript.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?module$contents$goog$html$SafeScript_SafeScript.EMPTY:module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},module$contents$goog$html$SafeScript_SafeScript.fromJson=function(e){return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(module$contents$goog$html$SafeScript_SafeScript.stringify_(e))},module$contents$goog$html$SafeScript_SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},module$contents$goog$html$SafeScript_SafeScript.unwrap=function(e){return module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(e).toString()},module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript=function(e){return e instanceof module$contents$goog$html$SafeScript_SafeScript&&e.constructor===module$contents$goog$html$SafeScript_SafeScript?e.privateDoNotAccessOrElseSafeScriptWrappedValue_:((0,goog.asserts.fail)("expected object of type SafeScript, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeScript")},module$contents$goog$html$SafeScript_SafeScript.stringify_=function(e){return JSON.stringify(e).replace(/</g,"\\x3c")},module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(e){var t=goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse();return new module$contents$goog$html$SafeScript_SafeScript(e=t?t.createScript(e):e,module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE)},module$contents$goog$html$SafeScript_SafeScript.EMPTY=module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeScript=module$contents$goog$html$SafeScript_SafeScript,goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(e){return goog.fs.url.getUrlObject_().createObjectURL(e)},goog.fs.url.revokeObjectUrl=function(e){goog.fs.url.getUrlObject_().revokeObjectURL(e)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(){},goog.fs.url.getUrlObject_=function(){var e=goog.fs.url.findUrlObject_();if(null!=e)return e;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return void 0!==goog.global.URL&&void 0!==goog.global.URL.createObjectURL?goog.global.URL:void 0!==goog.global.createObjectURL?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return null!=goog.fs.url.findUrlObject_()},goog.fs.blob={},goog.fs.blob.getBlob=function(e){var t=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(void 0!==t){t=new t;for(var n=0;n<arguments.length;n++)t.append(arguments[n]);return t.getBlob()}return goog.fs.blob.getBlobWithProperties(Array.prototype.slice.call(arguments))},goog.fs.blob.getBlobWithProperties=function(e,t,n){var r=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(void 0!==r){r=new r;for(var i=0;i<e.length;i++)r.append(e[i],n);return r.getBlob(t)}if(void 0!==goog.global.Blob)return r={},t&&(r.type=t),n&&(r.endings=n),new Blob(e,r);throw Error("This browser doesn't seem to support creating Blobs")},goog.html.TrustedResourceUrl=function(e,t){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=t===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_?e:""},goog.html.TrustedResourceUrl.prototype.toString=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+""},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var n=goog.html.TrustedResourceUrl.unwrap(this),r=(n=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(n))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(n[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",n[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",r,t))},goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(e,t){var n=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof goog.string.Const?goog.string.Const.unwrap(e):encodeURIComponent(String(e))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,n,r){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(n,r)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",n=0;n<e.length;n++)t+=goog.string.Const.unwrap(e[n]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.TrustedResourceUrl.fromSafeScript=function(e){return e=goog.fs.blob.getBlobWithProperties([module$contents$goog$html$SafeScript_SafeScript.unwrap(e)],"text/javascript"),e=goog.fs.url.createObjectUrl(e),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse();return e=t?t.createScriptURL(e):e,new goog.html.TrustedResourceUrl(e,goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_)},goog.html.TrustedResourceUrl.stringifyParams_=function(e,t,n){if(null==n)return t;if("string"==typeof n)return n?e+encodeURIComponent(n):"";for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];i=Array.isArray(i)?i:[i];for(var a=0;a<i.length;a++){var o=i[a];null!=o&&(t||(t=e),t+=(t.length>e.length?"&":"")+encodeURIComponent(r)+"="+encodeURIComponent(String(o)))}}return t},goog.html.SafeUrl=function(e,t){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=t===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_?e:""},goog.html.SafeUrl.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.unwrap=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=RegExp('^(?:audio/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font/\\w+|image/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif)|video/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\\w+=(?:\\w+|"[\\w;,= ]+"))*$',"i"),goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SafeUrl.isSafeMimeType(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.revokeObjectUrl=function(e){(e=e.getTypedStringValue())!==goog.html.SafeUrl.INNOCUOUS_STRING&&goog.fs.url.revokeObjectUrl(e)},goog.html.SafeUrl.fromMediaSource=function(e){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),e=e instanceof MediaSource?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.tryFromDataUrl=function(e){return(e=(e=String(e)).replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_)?goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e):null},goog.html.SafeUrl.fromDataUrl=function(e){return goog.html.SafeUrl.tryFromDataUrl(e)||goog.html.SafeUrl.INNOCUOUS_URL},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=RegExp("^sip[s]?:[+a-z0-9_.!$%&'*\\/=^`{|}~-]+@([a-z0-9-]+\\.)+[a-z0-9]{2,63}$","i"),goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0<t&&(e=e.substring(0,t)),!(t=e.match(/[?&]body=/gi)))return!0;if(1<t.length)return!1;if(!(e=e.match(/[?&]body=([^&]*)/)[1]))return!0;try{decodeURIComponent(e)}catch(e){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(e)},goog.html.SafeUrl.fromSshUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"ssh://")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(e,t,n){return(e=e.exec(t))?(e=e[1],-1==(n instanceof goog.string.Const?[goog.string.Const.unwrap(n)]:n.map(function(e){return goog.string.Const.unwrap(e)})).indexOf(e)&&(t=goog.html.SafeUrl.INNOCUOUS_STRING)):t=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeUrl.fromTrustedResourceUrl=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(e))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.trySanitize=function(e){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SAFE_URL_PATTERN_.test(e)?goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e):goog.html.SafeUrl.tryFromDataUrl(e))},goog.html.SafeUrl.sanitize=function(e){return goog.html.SafeUrl.trySanitize(e)||goog.html.SafeUrl.INNOCUOUS_URL},goog.html.SafeUrl.sanitizeAssertUnchanged=function(e,t){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),t&&/^data:/i.test(e)&&(t=goog.html.SafeUrl.fromDataUrl(e)).getTypedStringValue()==e?t:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(e),"%s does not match the safe URL pattern",e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)))},goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(e){return new goog.html.SafeUrl(e,goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_)},goog.html.SafeUrl.INNOCUOUS_URL=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");var module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE={},module$contents$goog$html$SafeStyle_SafeStyle=function(e,t){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=t===module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE?e:"",this.implementsGoogStringTypedString=!0};function module$contents$goog$html$SafeStyle_sanitizePropertyValue(e){if(e instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(e).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(e=e instanceof goog.string.Const?goog.string.Const.unwrap(e):module$contents$goog$html$SafeStyle_sanitizePropertyValueString(String(e)),/[{;}]/.test(e))throw new module$contents$goog$asserts_AssertionError("Value does not allow [{;}], got: %s.",[e]);return e}function module$contents$goog$html$SafeStyle_sanitizePropertyValueString(e){var t=e.replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE,"$1").replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE,"$1").replace(module$contents$goog$html$SafeStyle_URL_RE,"url");if(!module$contents$goog$html$SafeStyle_VALUE_RE.test(t))return(0,goog.asserts.fail)("String value allows only [-,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: "+e),module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;if(module$contents$goog$html$SafeStyle_COMMENT_RE.test(e))return(0,goog.asserts.fail)("String value disallows comments, got: "+e),module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;for(var n=t=!0,r=0;r<e.length;r++){var i=e.charAt(r);"'"==i&&n?t=!t:'"'==i&&t&&(n=!n)}return t&&n?module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(e)?module$contents$goog$html$SafeStyle_sanitizeUrl(e):((0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: "+e),module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING):((0,goog.asserts.fail)("String value requires balanced quotes, got: "+e),module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING)}function module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(e){for(var t=!0,n=/^[-_a-zA-Z0-9]$/,r=0;r<e.length;r++){var i=e.charAt(r);if("]"==i){if(t)return!1;t=!0}else if("["==i){if(!t)return!1;t=!1}else if(!t&&!n.test(i))return!1}return t}module$contents$goog$html$SafeStyle_SafeStyle.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?module$contents$goog$html$SafeStyle_SafeStyle.EMPTY:((0,goog.asserts.assert)((0,goog.string.internal.endsWith)(e,";"),"Last character of style string is not ';': "+e),(0,goog.asserts.assert)((0,goog.string.internal.contains)(e,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+e),module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e))},module$contents$goog$html$SafeStyle_SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},module$contents$goog$html$SafeStyle_SafeStyle.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString()},module$contents$goog$html$SafeStyle_SafeStyle.unwrap=function(e){return e instanceof module$contents$goog$html$SafeStyle_SafeStyle&&e.constructor===module$contents$goog$html$SafeStyle_SafeStyle?e.privateDoNotAccessOrElseSafeStyleWrappedValue_:((0,goog.asserts.fail)("expected object of type SafeStyle, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyle")},module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(e){return new module$contents$goog$html$SafeStyle_SafeStyle(e,module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE)},module$contents$goog$html$SafeStyle_SafeStyle.create=function(e){var t,n="";for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){if(!/^[-_a-zA-Z0-9]+$/.test(t))throw Error("Name allows only [-_a-zA-Z0-9], got: "+t);var r=e[t];null!=r&&(n+=t+":"+(r=Array.isArray(r)?r.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" "):module$contents$goog$html$SafeStyle_sanitizePropertyValue(r))+";")}return n?module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(n):module$contents$goog$html$SafeStyle_SafeStyle.EMPTY},module$contents$goog$html$SafeStyle_SafeStyle.concat=function(e){var t="",n=function(e){Array.isArray(e)?e.forEach(n):t+=module$contents$goog$html$SafeStyle_SafeStyle.unwrap(e)};return Array.prototype.forEach.call(arguments,n),t?module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t):module$contents$goog$html$SafeStyle_SafeStyle.EMPTY},module$contents$goog$html$SafeStyle_SafeStyle.EMPTY=module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING="zClosurez";var module$contents$goog$html$SafeStyle_VALUE_RE=RegExp("^[-,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),module$contents$goog$html$SafeStyle_URL_RE=RegExp("\\b(url\\([ \n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \n]*\\))","g"),module$contents$goog$html$SafeStyle_FUNCTIONS_RE=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),module$contents$goog$html$SafeStyle_COMMENT_RE=/\/\*/;function module$contents$goog$html$SafeStyle_sanitizeUrl(e){return e.replace(module$contents$goog$html$SafeStyle_URL_RE,function(e,t,n,r){var i="";return n=n.replace(/^(['"])(.*)\1$/,function(e,t,n){return i=t,n}),e=goog.html.SafeUrl.sanitize(n).getTypedStringValue(),t+i+e+i+r})}goog.html.SafeStyle=module$contents$goog$html$SafeStyle_SafeStyle;var module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE={},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet=function(e,t){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=t===module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE?e:"",this.implementsGoogStringTypedString=!0};module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString()},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule=function(e,t){if((0,goog.string.internal.contains)(e,"<"))throw Error("Selector does not allow '<', got: "+e);var n=e.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(n))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(n))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof module$contents$goog$html$SafeStyle_SafeStyle||(t=module$contents$goog$html$SafeStyle_SafeStyle.create(t)),e=e+"{"+module$contents$goog$html$SafeStyle_SafeStyle.unwrap(t).replace(/</g,"\\3C ")+"}",module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_=function(e){for(var t={"(":")","[":"]"},n=[],r=0;r<e.length;r++){var i=e[r];if(t[i])n.push(t[i]);else if(module$contents$goog$object_containsValue(t,i)&&n.pop()!=i)return!1}return 0==n.length},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.concat=function(e){var t="",n=function(e){Array.isArray(e)?e.forEach(n):t+=module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(e)};return Array.prototype.forEach.call(arguments,n),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY:((0,goog.asserts.assert)(!(0,goog.string.internal.contains)(e,"<"),"Forbidden '<' character in style sheet string: "+e),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e))},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap=function(e){return e instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet&&e.constructor===module$contents$goog$html$SafeStyleSheet_SafeStyleSheet?e.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:((0,goog.asserts.fail)("expected object of type SafeStyleSheet, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyleSheet")},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(e){return new module$contents$goog$html$SafeStyleSheet_SafeStyleSheet(e,module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE)},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY=module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyleSheet=module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;var module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE={},module$contents$goog$html$SafeHtml_SafeHtml=function(e,t){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=t===module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE?e:"",this.implementsGoogStringTypedString=!0};module$contents$goog$html$SafeHtml_SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},module$contents$goog$html$SafeHtml_SafeHtml.prototype.toString=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},module$contents$goog$html$SafeHtml_SafeHtml.unwrap=function(e){return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(e).toString()},module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML=function(e){return e instanceof module$contents$goog$html$SafeHtml_SafeHtml&&e.constructor===module$contents$goog$html$SafeHtml_SafeHtml?e.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeHtml")},module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape=function(e){return e instanceof module$contents$goog$html$SafeHtml_SafeHtml?e:module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape("object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e)))},module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlines=function(e){return e instanceof module$contents$goog$html$SafeHtml_SafeHtml?e:(e=module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(e),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(e))))},module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(e){return e instanceof module$contents$goog$html$SafeHtml_SafeHtml?e:(e=module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(e),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(e))))},module$contents$goog$html$SafeHtml_SafeHtml.comment=function(e){return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("\x3c!--"+goog.string.internal.htmlEscape(e)+"--\x3e")},module$contents$goog$html$SafeHtml_SafeHtml.create=function(e,t,n){return module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName(String(e)),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,n)},module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName=function(e){if(!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(e))throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+e+">.":"");if(e.toUpperCase()in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES)throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+e+"> is not allowed for SafeHtml.":"")},module$contents$goog$html$SafeHtml_SafeHtml.createIframe=function(e,t,n,r){e&&goog.html.TrustedResourceUrl.unwrap(e);var i={};return i.src=e||null,i.srcdoc=t&&module$contents$goog$html$SafeHtml_SafeHtml.unwrap(t),e=module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(i,{sandbox:""},n),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,r)},module$contents$goog$html$SafeHtml_SafeHtml.createSandboxIframe=function(e,t,n,r){if(!module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe())throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var i={};return i.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,i.srcdoc=t||null,i.sandbox="",e=module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(i,{},n),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,r)},module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},module$contents$goog$html$SafeHtml_SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({src:e},{},t),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},module$contents$goog$html$SafeHtml_SafeHtml.createScript=function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=n.toLowerCase();if("language"==r||"src"==r||"text"==r)throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+r+'" attribute':"")}for(n="",e=module$contents$goog$array_concat(e),r=0;r<e.length;r++)n+=module$contents$goog$html$SafeScript_SafeScript.unwrap(e[r]);return e=module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t,e)},module$contents$goog$html$SafeHtml_SafeHtml.createStyle=function(e,t){t=module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({type:"text/css"},{},t);var n="";e=module$contents$goog$array_concat(e);for(var r=0;r<e.length;r++)n+=module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(e[r]);return e=module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",t,e)},module$contents$goog$html$SafeHtml_SafeHtml.createMetaRefresh=function(e,t){return e=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)),(module$contents$goog$labs$userAgent$browser_matchIE()||module$contents$goog$labs$userAgent$browser_matchEdgeHtml())&&goog.string.internal.contains(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(t||0)+"; url="+e})},module$contents$goog$html$SafeHtml_SafeHtml.join=function(e,t){e=module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(e);var n=[],r=function(e){Array.isArray(e)?e.forEach(r):(e=module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(e),n.push(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(e)))};return t.forEach(r),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n.join(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(e)))},module$contents$goog$html$SafeHtml_SafeHtml.concat=function(e){return module$contents$goog$html$SafeHtml_SafeHtml.join(module$contents$goog$html$SafeHtml_SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(e){var t=goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse();return new module$contents$goog$html$SafeHtml_SafeHtml(e=t?t.createHTML(e):e,module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE)},module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(e,t,n){return t="<"+e+module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes(e,t),null==n?n=[]:Array.isArray(n)||(n=[n]),goog.dom.tags.isVoidTag(e.toLowerCase())?(goog.asserts.assert(!n.length,"Void tag <"+e+"> does not allow content."),t+=">"):(n=module$contents$goog$html$SafeHtml_SafeHtml.concat(n),t+=">"+module$contents$goog$html$SafeHtml_SafeHtml.unwrap(n)+"</"+e+">"),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t)},module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes=function(e,t){var n="";if(t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(r))throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+r+'".':"");var i=t[r];if(null!=i){var a=e,o=r;if(i instanceof goog.string.Const)i=goog.string.Const.unwrap(i);else if("style"==o.toLowerCase()){if(!module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE)throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");if(!goog.isObject(i))throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof i+" given: "+i:"");i instanceof module$contents$goog$html$SafeStyle_SafeStyle||(i=module$contents$goog$html$SafeStyle_SafeStyle.create(i)),i=module$contents$goog$html$SafeStyle_SafeStyle.unwrap(i)}else{if(/^on/i.test(o))throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+o+'" requires goog.string.Const value, "'+i+'" given.':"");if(o.toLowerCase()in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES)if(i instanceof goog.html.TrustedResourceUrl)i=goog.html.TrustedResourceUrl.unwrap(i);else if(i instanceof goog.html.SafeUrl)i=goog.html.SafeUrl.unwrap(i);else{if("string"!=typeof i)throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+o+'" on tag "'+a+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+i+'" given.':"");i=goog.html.SafeUrl.sanitize(i).getTypedStringValue()}}i.implementsGoogStringTypedString&&(i=i.getTypedStringValue()),goog.asserts.assert("string"==typeof i||"number"==typeof i,"String or number value expected, got "+typeof i+" with value: "+i),n+=" "+(o=o+'="'+goog.string.internal.htmlEscape(String(i))+'"')}}}return n},module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes=function(e,t,n){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&(goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),r[o]=e[o]);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(goog.asserts.assert(i.toLowerCase()==i,"Must be lower case"),r[i]=t[i]);if(n){for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a)){var o=a.toLowerCase();if(o in e)throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+o+'" attribute, got "'+a+'" with value "'+n[a]+'"':"");o in t&&delete r[o],r[a]=n[a]}}return r},module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES=goog.DEBUG,module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0,module$contents$goog$html$SafeHtml_SafeHtml.from=module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape;var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG=/^[a-zA-Z0-9-]+$/,module$contents$goog$html$SafeHtml_URL_ATTRIBUTES={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES=module$contents$goog$object_createSet(goog.dom.TagName.APPLET,goog.dom.TagName.BASE,goog.dom.TagName.EMBED,goog.dom.TagName.IFRAME,goog.dom.TagName.LINK,goog.dom.TagName.MATH,goog.dom.TagName.META,goog.dom.TagName.OBJECT,goog.dom.TagName.SCRIPT,goog.dom.TagName.STYLE,goog.dom.TagName.SVG,goog.dom.TagName.TEMPLATE);module$contents$goog$html$SafeHtml_SafeHtml.DOCTYPE_HTML=module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>"),module$contents$goog$html$SafeHtml_SafeHtml.EMPTY=new module$contents$goog$html$SafeHtml_SafeHtml(goog.global.trustedTypes&&goog.global.trustedTypes.emptyHTML||"",module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE),module$contents$goog$html$SafeHtml_SafeHtml.BR=module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>"),goog.html.SafeHtml=module$contents$goog$html$SafeHtml_SafeHtml,goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,n){e.insertAdjacentHTML(t,module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(n))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue(function(){if(goog.DEBUG&&"undefined"==typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!(goog.DEBUG&&!e.firstChild)&&(t=e.firstChild.firstChild,e.innerHTML=module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(module$contents$goog$html$SafeHtml_SafeHtml.EMPTY),!t.parentElement)}
vendor: 6,515 bytes, line 2
2),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS&&e.tagName&&goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[e.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".");goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setInnerHtmlFromConstant=function(e,t){goog.dom.safe.setInnerHtml(e,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Constant HTML to be immediatelly used."),goog.string.Const.unwrap(t)))},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=module$contents$goog$html$SafeStyle_SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setAudioSrc=function(e,t){goog.dom.asserts.assertIsHTMLAudioElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t,/^data:audio\//i.test(t)),e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setVideoSrc=function(e,t){goog.dom.asserts.assertIsHTMLVideoElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t,/^data:video\//i.test(t)),e.src=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,n){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=n,goog.string.internal.caseInsensitiveContains(n,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrap(t),(t=goog.dom.safe.getStyleNonce(e.ownerDocument&&e.ownerDocument.defaultView))&&e.setAttribute("nonce",t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(t):goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),goog.dom.safe.setNonceForScriptElement_(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),goog.dom.safe.setNonceForScriptElement_(e),e.textContent=module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(t)},goog.dom.safe.setNonceForScriptElement_=function(e){var t=goog.dom.safe.getScriptNonce(e.ownerDocument&&e.ownerDocument.defaultView);t&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrap(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.replaceLocation=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrap(t))},goog.dom.safe.openInWindow=function(e,t,n,r){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),t=t||goog.global,n=n instanceof goog.string.Const?goog.string.Const.unwrap(n):n||"",void 0!==r?t.open(goog.html.SafeUrl.unwrap(e),n,r):t.open(goog.html.SafeUrl.unwrap(e),n)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,n){return e.parseFromString(module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(t),n)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},e.src=t,e},goog.dom.safe.createContextualFragment=function(e,t){return e.createContextualFragment(module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.getScriptNonce=function(e){return goog.dom.safe.getNonce_("script[nonce]",e)},goog.dom.safe.getStyleNonce=function(e){return goog.dom.safe.getNonce_('style[nonce],link[rel="stylesheet"][nonce]',e)},goog.dom.safe.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.dom.safe.getNonce_=function(e,t){return(t=(t||goog.global).document).querySelector&&(e=t.querySelector(e))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.dom.safe.NONCE_PATTERN_.test(e)?e:""},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:"
2\xa0",ZERO_WIDTH_SPACE:"â"},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var n=e.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")},goog.string.collapseWhitespace=function(e){return e.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(e){return 0==e.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(e){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(e){return!/[^\t\n\r ]/.test(e)},goog.string.isAlpha=function(e){return!/[^a-zA-Z]/.test(e)},goog.string.isNumeric=function(e){return!/[^0-9]/.test(e)},goog.string.isAlphaNumeric=function(e){return!/[^a-zA-Z0-9]/.test(e)},goog.string.isSpace=function(e){return" "==e},goog.string.isUnicodeChar=function(e){return 1==e.length&&" "<=e&&"~">=e||"\x80"<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,n){if(e==t)return 0;if(!e)return -1;if(!t)return 1;for(var r=e.toLowerCase().match(n),i=t.toLowerCase().match(n),a=Math.min(r.length,i.length),o=0;o<a;o++){n=r[o];var s=i[o];if(n!=s)return isNaN(e=parseInt(n,10))||isNaN(t=parseInt(s,10))||!(e-t)?n<s?-1:1:e-t}return r.length!=i.length?r.length-i.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(e,t){return e=goog.string.internal.htmlEscape(e,t),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"e")),e},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var n={"&":"&","<":"<",">":">",""":'"'},r=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,function(e,t){var i=n[e];
vendor: 109,140 bytes, line 2
2return i||("#"==t.charAt(0)&&(isNaN(t=Number("0"+t.slice(1)))||(i=String.fromCharCode(t))),i||(goog.dom.safe.setInnerHtml(r,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),e+" ")),i=r.firstChild.nodeValue.slice(0,-1)),n[e]=i)})},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=t.charAt(0)||isNaN(t=Number("0"+t.slice(1)))?e:String.fromCharCode(t)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var n=t.length,r=0;r<n;r++){var i=1==n?t:t.charAt(r);if(e.charAt(0)==i&&e.charAt(e.length-1)==i)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,n){return n&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),n&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,n,r){return n&&(e=goog.string.unescapeEntities(e)),r&&e.length>t?(r>t&&(r=t),e=e.substring(0,t-r)+"..."+e.substring(e.length-r)):e.length>t&&(r=Math.floor(t/2),e=e.substring(0,r+t%2)+"..."+e.substring(e.length-r)),n&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],n=0;n<e.length;n++){var r=e.charAt(n),i=r.charCodeAt(0);t[n+1]=goog.string.specialEscapeChars_[r]||(31<i&&127>i?r:goog.string.escapeChar(r))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=goog.string.escapeChar(e.charAt(n));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var n=e;else 256>t?(n="\\x",(16>t||256<t)&&(n+="0")):(n="\\u",4096>t&&(n+="0")),n+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=n},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,n){var r=e;return 0<=t&&t<e.length&&0<n&&(r=e.slice(0,t)+e.slice(t+n)),r},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){return t=RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,"")},goog.string.replaceAll=function(e,t,n){return t=RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,n.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,n){if(!Number.isFinite(e))return String(e);-1===(n=(e=void 0!==n?e.toFixed(n):String(e)).indexOf("."))&&(n=e.length);var r="-"===e[0]?"-":"";return r&&(e=e.substring(1)),r+goog.string.repeat("0",Math.max(0,t-n))+e},goog.string.makeSafe=function(e){return null==e?"":String(e)},goog.string.getRandomString=function(){return Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(e){for(var t=0,n=0;n<e.length;++n)t=31*t+e.charCodeAt(n)>>>0;return t},goog.string.uniqueStringCounter_=0x80000000*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t="string"==typeof t?goog.string.regExpEscape(t):"\\s",e.replace(RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),function(e,t,n){return t+n.toUpperCase()})},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.slice(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),"string"==typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,n){e=e.split(t);for(var r=[];0<n&&e.length;)r.push(e.shift()),n--;return e.length&&r.push(e.join(t)),r},goog.string.lastComponent=function(e,t){if(!t)return e;"string"==typeof t&&(t=[t]);for(var n=-1,r=0;r<t.length;r++)if(""!=t[r]){var i=e.lastIndexOf(t[r]);i>n&&(n=i)}return -1==n?e:e.slice(n+1)},goog.string.editDistance=function(e,t){var n=[],r=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var i=0;i<t.length+1;i++)n[i]=i;for(i=0;i<e.length;i++){r[0]=i+1;for(var a=0;a<t.length;a++)r[a+1]=Math.min(r[a]+1,n[a+1]+1,n[a]+Number(e[i]!=t[a]));for(a=0;a<n.length;a++)n[a]=r[a]}return r[t.length]},goog.uri={},goog.uri.utils={},goog.uri.utils.QueryArray={},goog.uri.utils.QueryValue={},goog.uri.utils.CharCode_={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63},goog.uri.utils.buildFromEncodedParts=function(e,t,n,r,i,a,o){var s="";return e&&(s+=e+":"),n&&(s+="//",t&&(s+=t+"@"),s+=n,r&&(s+=":"+r)),i&&(s+=i),a&&(s+="?"+a),o&&(s+="#"+o),s},goog.uri.utils.splitRe_=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),goog.uri.utils.ComponentIndex={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7},goog.uri.utils.urlPackageSupportLoggingHandler_=null,goog.uri.utils.setUrlPackageSupportLoggingHandler=function(e){goog.uri.utils.urlPackageSupportLoggingHandler_=e},goog.uri.utils.split=function(e){var t=e.match(goog.uri.utils.splitRe_);return goog.uri.utils.urlPackageSupportLoggingHandler_&&0<=["http","https","ws","wss","ftp"].indexOf(t[goog.uri.utils.ComponentIndex.SCHEME])&&goog.uri.utils.urlPackageSupportLoggingHandler_(e),t},goog.uri.utils.decodeIfPossible_=function(e,t){return e?t?decodeURI(e):decodeURIComponent(e):e},goog.uri.utils.getComponentByIndex_=function(e,t){return goog.uri.utils.split(t)[e]||null},goog.uri.utils.getScheme=function(e){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.SCHEME,e)},goog.uri.utils.getEffectiveScheme=function(e){return(e=goog.uri.utils.getScheme(e))||!goog.global.self||!goog.global.self.location||(e=goog.global.self.location.protocol.slice(0,-1)),e?e.toLowerCase():""},goog.uri.utils.getUserInfoEncoded=function(e){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.USER_INFO,e)},goog.uri.utils.getUserInfo=function(e){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getUserInfoEncoded(e))},goog.uri.utils.getDomainEncoded=function(e){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.DOMAIN,e)},goog.uri.utils.getDomain=function(e){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getDomainEncoded(e),!0)},goog.uri.utils.getPort=function(e){return Number(goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PORT,e))||null},goog.uri.utils.getPathEncoded=function(e){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PATH,e)},goog.uri.utils.getPath=function(e){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getPathEncoded(e),!0)},goog.uri.utils.getQueryData=function(e){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.QUERY_DATA,e)},goog.uri.utils.getFragmentEncoded=function(e){var t=e.indexOf("#");return 0>t?null:e.slice(t+1)},goog.uri.utils.setFragmentEncoded=function(e,t){return goog.uri.utils.removeFragment(e)+(t?"#"+t:"")},goog.uri.utils.getFragment=function(e){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getFragmentEncoded(e))},goog.uri.utils.getHost=function(e){return e=goog.uri.utils.split(e),goog.uri.utils.buildFromEncodedParts(e[goog.uri.utils.ComponentIndex.SCHEME],e[goog.uri.utils.ComponentIndex.USER_INFO],e[goog.uri.utils.ComponentIndex.DOMAIN],e[goog.uri.utils.ComponentIndex.PORT])},goog.uri.utils.getOrigin=function(e){return e=goog.uri.utils.split(e),goog.uri.utils.buildFromEncodedParts(e[goog.uri.utils.ComponentIndex.SCHEME],null,e[goog.uri.utils.ComponentIndex.DOMAIN],e[goog.uri.utils.ComponentIndex.PORT])},goog.uri.utils.getPathAndAfter=function(e){return e=goog.uri.utils.split(e),goog.uri.utils.buildFromEncodedParts(null,null,null,null,e[goog.uri.utils.ComponentIndex.PATH],e[goog.uri.utils.ComponentIndex.QUERY_DATA],e[goog.uri.utils.ComponentIndex.FRAGMENT])},goog.uri.utils.removeFragment=function(e){var t=e.indexOf("#");return 0>t?e:e.slice(0,t)},goog.uri.utils.haveSameDomain=function(e,t){return e=goog.uri.utils.split(e),t=goog.uri.utils.split(t),e[goog.uri.utils.ComponentIndex.DOMAIN]==t[goog.uri.utils.ComponentIndex.DOMAIN]&&e[goog.uri.utils.ComponentIndex.SCHEME]==t[goog.uri.utils.ComponentIndex.SCHEME]&&e[goog.uri.utils.ComponentIndex.PORT]==t[goog.uri.utils.ComponentIndex.PORT]},goog.uri.utils.assertNoFragmentsOrQueries_=function(e){goog.asserts.assert(0>e.indexOf("#")&&0>e.indexOf("?"),"goog.uri.utils: Fragment or query identifiers are not supported: [%s]",e)},goog.uri.utils.parseQueryData=function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?goog.string.urlDecode(i):"")}}},goog.uri.utils.splitQueryData_=function(e){var t=e.indexOf("#");0>t&&(t=e.length);var n=e.indexOf("?");if(0>n||n>t){n=t;var r=""}else r=e.substring(n+1,t);return[e.slice(0,n),r,e.slice(t)]},goog.uri.utils.joinQueryData_=function(e){return e[0]+(e[1]?"?"+e[1]:"")+e[2]},goog.uri.utils.appendQueryData_=function(e,t){return t?e?e+"&"+t:t:e},goog.uri.utils.appendQueryDataToUri_=function(e,t){return t?((e=goog.uri.utils.splitQueryData_(e))[1]=goog.uri.utils.appendQueryData_(e[1],t),goog.uri.utils.joinQueryData_(e)):e},goog.uri.utils.appendKeyValuePairs_=function(e,t,n){if(goog.asserts.assertString(e),Array.isArray(t)){goog.asserts.assertArray(t);for(var r=0;r<t.length;r++)goog.uri.utils.appendKeyValuePairs_(e,String(t[r]),n)}else null!=t&&n.push(e+(""===t?"":"="+goog.string.urlEncode(t)))},goog.uri.utils.buildQueryData=function(e,t){goog.asserts.assert(0==Math.max(e.length-(t||0),0)%2,"goog.uri.utils: Key/value lists must be even in length.");var n=[];for(t=t||0;t<e.length;t+=2)goog.uri.utils.appendKeyValuePairs_(e[t],e[t+1],n);return n.join("&")},goog.uri.utils.buildQueryDataFromMap=function(e){var t,n=[];for(t in e)goog.uri.utils.appendKeyValuePairs_(t,e[t],n);return n.join("&")},goog.uri.utils.appendParams=function(e,t){var n=2==arguments.length?goog.uri.utils.buildQueryData(arguments[1],0):goog.uri.utils.buildQueryData(arguments,1);return goog.uri.utils.appendQueryDataToUri_(e,n)},goog.uri.utils.appendParamsFromMap=function(e,t){return t=goog.uri.utils.buildQueryDataFromMap(t),goog.uri.utils.appendQueryDataToUri_(e,t)},goog.uri.utils.appendParam=function(e,t,n){return n=null!=n?"="+goog.string.urlEncode(n):"",goog.uri.utils.appendQueryDataToUri_(e,t+n)},goog.uri.utils.findParam_=function(e,t,n,r){for(var i=n.length;0<=(t=e.indexOf(n,t))&&t<r;){var a=e.charCodeAt(t-1);if((a==goog.uri.utils.CharCode_.AMPERSAND||a==goog.uri.utils.CharCode_.QUESTION)&&(!(a=e.charCodeAt(t+i))||a==goog.uri.utils.CharCode_.EQUAL||a==goog.uri.utils.CharCode_.AMPERSAND||a==goog.uri.utils.CharCode_.HASH))return t;t+=i+1}return -1},goog.uri.utils.hashOrEndRe_=/#|$/,goog.uri.utils.hasParam=function(e,t){return 0<=goog.uri.utils.findParam_(e,0,t,e.search(goog.uri.utils.hashOrEndRe_))},goog.uri.utils.getParamValue=function(e,t){var n=e.search(goog.uri.utils.hashOrEndRe_),r=goog.uri.utils.findParam_(e,0,t,n);if(0>r)return null;var i=e.indexOf("&",r);return(0>i||i>n)&&(i=n),r+=t.length+1,goog.string.urlDecode(e.slice(r,-1!==i?i:0))},goog.uri.utils.getParamValues=function(e,t){for(var n,r=e.search(goog.uri.utils.hashOrEndRe_),i=0,a=[];0<=(n=goog.uri.utils.findParam_(e,i,t,r));)(0>(i=e.indexOf("&",n))||i>r)&&(i=r),n+=t.length+1,a.push(goog.string.urlDecode(e.slice(n,Math.max(i,0))));return a},goog.uri.utils.trailingQueryPunctuationRe_=/[?&]($|#)/,goog.uri.utils.removeParam=function(e,t){for(var n,r=e.search(goog.uri.utils.hashOrEndRe_),i=0,a=[];0<=(n=goog.uri.utils.findParam_(e,i,t,r));)a.push(e.substring(i,n)),i=Math.min(e.indexOf("&",n)+1||r,r);return a.push(e.slice(i)),a.join("").replace(goog.uri.utils.trailingQueryPunctuationRe_,"$1")},goog.uri.utils.setParam=function(e,t,n){return goog.uri.utils.appendParam(goog.uri.utils.removeParam(e,t),t,n)},goog.uri.utils.setParamsFromMap=function(e,t){var n=(e=goog.uri.utils.splitQueryData_(e))[1],r=[];return n&&n.split("&").forEach(function(e){var n=e.indexOf("=");n=0<=n?e.slice(0,n):e,t.hasOwnProperty(n)||r.push(e)}),e[1]=goog.uri.utils.appendQueryData_(r.join("&"),goog.uri.utils.buildQueryDataFromMap(t)),goog.uri.utils.joinQueryData_(e)},goog.uri.utils.appendPath=function(e,t){return goog.uri.utils.assertNoFragmentsOrQueries_(e),goog.string.endsWith(e,"/")&&(e=e.slice(0,-1)),goog.string.startsWith(t,"/")&&(t=t.slice(1)),e+"/"+t},goog.uri.utils.setPath=function(e,t){return goog.string.startsWith(t,"/")||(t="/"+t),e=goog.uri.utils.split(e),goog.uri.utils.buildFromEncodedParts(e[goog.uri.utils.ComponentIndex.SCHEME],e[goog.uri.utils.ComponentIndex.USER_INFO],e[goog.uri.utils.ComponentIndex.DOMAIN],e[goog.uri.utils.ComponentIndex.PORT],t,e[goog.uri.utils.ComponentIndex.QUERY_DATA],e[goog.uri.utils.ComponentIndex.FRAGMENT])},goog.uri.utils.StandardQueryParam={RANDOM:"zx"},goog.uri.utils.makeUnique=function(e){return goog.uri.utils.setParam(e,goog.uri.utils.StandardQueryParam.RANDOM,goog.string.getRandomString())},proto.tflite={},proto.tflite.proto={},proto.tflite.proto.$internalDoNotUseBenchmarkStoragePathsReader=function(){},proto.tflite.proto.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getStorageFilePath=function(){},proto.tflite.proto.$internalDoNotUseBenchmarkStoragePathsReader.prototype.hasStorageFilePath=function(){},proto.tflite.proto.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getStorageFilePathOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getDataDirectoryPath=function(){},proto.tflite.proto.$internalDoNotUseBenchmarkStoragePathsReader.prototype.hasDataDirectoryPath=function(){},proto.tflite.proto.$internalDoNotUseBenchmarkStoragePathsReader.prototype.getDataDirectoryPathOrUndefined=function(){},proto.tflite.proto.BenchmarkStoragePaths=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.BenchmarkStoragePaths,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.BenchmarkStoragePaths.prototype.getStorageFilePath=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,1)},proto.tflite.proto.BenchmarkStoragePaths.prototype.setStorageFilePath=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.tflite.proto.BenchmarkStoragePaths.prototype.clearStorageFilePath=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.BenchmarkStoragePaths.prototype.hasStorageFilePath=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.tflite.proto.BenchmarkStoragePaths.prototype.getStorageFilePathOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.tflite.proto.BenchmarkStoragePaths.prototype.getDataDirectoryPath=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,2)},proto.tflite.proto.BenchmarkStoragePaths.prototype.setDataDirectoryPath=function(e){return jspb.internal.jspb_adapters.setStringField(this,2,e)},proto.tflite.proto.BenchmarkStoragePaths.prototype.clearDataDirectoryPath=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.BenchmarkStoragePaths.prototype.hasDataDirectoryPath=function(){return jspb.internal.jspb_adapters.hasStringField(this,2)},proto.tflite.proto.BenchmarkStoragePaths.prototype.getDataDirectoryPathOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,2)},proto.tflite.proto.BenchmarkStoragePaths.prototype.serializeBinary=function(){return proto.tflite.proto.BenchmarkStoragePaths.serializeBinary(this)},proto.tflite.proto.BenchmarkStoragePaths.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.BenchmarkStoragePaths.internalDoNotUse$tflite$proto$BenchmarkStoragePaths$binaryFieldsObject)},proto.tflite.proto.BenchmarkStoragePaths.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.BenchmarkStoragePaths.internalDoNotUse$tflite$proto$BenchmarkStoragePaths$binaryFieldsObject,t)},proto.tflite.proto.BenchmarkStoragePaths.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.BenchmarkStoragePaths.internalDoNotUse$tflite$proto$BenchmarkStoragePaths$binaryFieldsObject)},proto.tflite.proto.BenchmarkStoragePaths.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.BenchmarkStoragePaths,e)},proto.tflite.proto.BenchmarkStoragePaths.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.BenchmarkStoragePaths&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableBenchmarkStoragePaths"),proto.tflite.proto.MutableBenchmarkStoragePaths=proto.tflite.proto.BenchmarkStoragePaths,proto.tflite.proto.ReadonlyBenchmarkStoragePaths={},proto.tflite.proto.ImmutableBenchmarkStoragePaths=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableBenchmarkStoragePaths,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableBenchmarkStoragePaths.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.BenchmarkStoragePaths,e,t)},proto.tflite.proto.ImmutableBenchmarkStoragePaths.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.BenchmarkStoragePaths)},proto.tflite.proto.ImmutableBenchmarkStoragePaths.serializeBinary=function(e){return proto.tflite.proto.BenchmarkStoragePaths.serializeBinary(e)},proto.tflite.proto.ImmutableBenchmarkStoragePaths.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.BenchmarkStoragePaths.internalDoNotUse$tflite$proto$BenchmarkStoragePaths$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableBenchmarkStoragePaths.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.BenchmarkStoragePaths&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableBenchmarkStoragePaths"),proto.tflite.proto.BenchmarkStoragePaths.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.BenchmarkStoragePaths.fromObject=function(e){var t=new proto.tflite.proto.BenchmarkStoragePaths;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.storageFilePath),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,2,e.dataDirectoryPath),t}),proto.tflite.proto.BenchmarkStoragePaths.prototype.toObject=function(e){return proto.tflite.proto.BenchmarkStoragePaths.internal_toObject(e,this)},proto.tflite.proto.BenchmarkStoragePaths.internal_toObject=function(e,t){if(null!=t){var n={storageFilePath:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),dataDirectoryPath:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,2))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.BenchmarkStoragePaths.internalDoNotUse$tflite$proto$BenchmarkStoragePaths$binaryFieldsObject=[proto.tflite.proto.BenchmarkStoragePaths,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWString],proto.tflite.proto.$internalDoNotUseCPUSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseCPUSettingsReader.prototype.getNumThreads=function(){},proto.tflite.proto.$internalDoNotUseCPUSettingsReader.prototype.hasNumThreads=function(){},proto.tflite.proto.$internalDoNotUseCPUSettingsReader.prototype.getNumThreadsOrUndefined=function(){},proto.tflite.proto.CPUSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.CPUSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.CPUSettings.prototype.getNumThreads=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,1,-1)},proto.tflite.proto.CPUSettings.prototype.setNumThreads=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.CPUSettings.prototype.clearNumThreads=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.CPUSettings.prototype.hasNumThreads=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.CPUSettings.prototype.getNumThreadsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.CPUSettings.prototype.serializeBinary=function(){return proto.tflite.proto.CPUSettings.serializeBinary(this)},proto.tflite.proto.CPUSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.CPUSettings.internalDoNotUse$tflite$proto$CPUSettings$binaryFieldsObject)},proto.tflite.proto.CPUSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.CPUSettings.internalDoNotUse$tflite$proto$CPUSettings$binaryFieldsObject,t)},proto.tflite.proto.CPUSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.CPUSettings.internalDoNotUse$tflite$proto$CPUSettings$binaryFieldsObject)},proto.tflite.proto.CPUSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.CPUSettings,e)},proto.tflite.proto.CPUSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.CPUSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableCPUSettings"),proto.tflite.proto.MutableCPUSettings=proto.tflite.proto.CPUSettings,proto.tflite.proto.ReadonlyCPUSettings={},proto.tflite.proto.ImmutableCPUSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableCPUSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableCPUSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.CPUSettings,e,t)},proto.tflite.proto.ImmutableCPUSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.CPUSettings)},proto.tflite.proto.ImmutableCPUSettings.serializeBinary=function(e){return proto.tflite.proto.CPUSettings.serializeBinary(e)},proto.tflite.proto.ImmutableCPUSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.CPUSettings.internalDoNotUse$tflite$proto$CPUSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableCPUSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.CPUSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableCPUSettings"),proto.tflite.proto.CPUSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.CPUSettings.fromObject=function(e){var t=new proto.tflite.proto.CPUSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.numThreads),t}),proto.tflite.proto.CPUSettings.prototype.toObject=function(e){return proto.tflite.proto.CPUSettings.internal_toObject(e,this)},proto.tflite.proto.CPUSettings.internal_toObject=function(e,t){if(null!=t){var n={numThreads:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,1,-1)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.CPUSettings.internalDoNotUse$tflite$proto$CPUSettings$binaryFieldsObject=[proto.tflite.proto.CPUSettings,1,jspb.internal.binary.RWInt32],proto.tflite.proto.$internalDoNotUseModelFileReader=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.getFilename=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.hasFilename=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.getFilenameOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.getFd=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.hasFd=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.getFdOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.getOffset=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.hasOffset=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.getOffsetOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.getLength=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.hasLength=function(){},proto.tflite.proto.$internalDoNotUseModelFileReader.prototype.getLengthOrUndefined=function(){},proto.tflite.proto.ModelFile=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.ModelFile,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.ModelFile.prototype.getFilename=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,1)},proto.tflite.proto.ModelFile.prototype.setFilename=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.tflite.proto.ModelFile.prototype.clearFilename=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.ModelFile.prototype.hasFilename=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.tflite.proto.ModelFile.prototype.getFilenameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.tflite.proto.ModelFile.prototype.getFd=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,2)},proto.tflite.proto.ModelFile.prototype.setFd=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.proto.ModelFile.prototype.clearFd=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.ModelFile.prototype.hasFd=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.proto.ModelFile.prototype.getFdOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.proto.ModelFile.prototype.getOffset=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,3)},proto.tflite.proto.ModelFile.prototype.setOffset=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.proto.ModelFile.prototype.clearOffset=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.ModelFile.prototype.hasOffset=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.proto.ModelFile.prototype.getOffsetOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.proto.ModelFile.prototype.getLength=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,4)},proto.tflite.proto.ModelFile.prototype.setLength=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.tflite.proto.ModelFile.prototype.clearLength=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.ModelFile.prototype.hasLength=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.proto.ModelFile.prototype.getLengthOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.tflite.proto.ModelFile.prototype.serializeBinary=function(){return proto.tflite.proto.ModelFile.serializeBinary(this)},proto.tflite.proto.ModelFile.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.ModelFile.internalDoNotUse$tflite$proto$ModelFile$binaryFieldsObject)},proto.tflite.proto.ModelFile.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.ModelFile.internalDoNotUse$tflite$proto$ModelFile$binaryFieldsObject,t)},proto.tflite.proto.ModelFile.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.ModelFile.internalDoNotUse$tflite$proto$ModelFile$binaryFieldsObject)},proto.tflite.proto.ModelFile.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.ModelFile,e)},proto.tflite.proto.ModelFile.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.ModelFile&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableModelFile"),proto.tflite.proto.MutableModelFile=proto.tflite.proto.ModelFile,proto.tflite.proto.ReadonlyModelFile={},proto.tflite.proto.ImmutableModelFile=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableModelFile,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableModelFile.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.ModelFile,e,t)},proto.tflite.proto.ImmutableModelFile.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.ModelFile)},proto.tflite.proto.ImmutableModelFile.serializeBinary=function(e){return proto.tflite.proto.ModelFile.serializeBinary(e)},proto.tflite.proto.ImmutableModelFile.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.ModelFile.internalDoNotUse$tflite$proto$ModelFile$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableModelFile.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.ModelFile&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableModelFile"),proto.tflite.proto.ModelFile.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.ModelFile.fromObject=function(e){var t=new proto.tflite.proto.ModelFile;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.filename),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.fd),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.offset),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.length),t}),proto.tflite.proto.ModelFile.prototype.toObject=function(e){return proto.tflite.proto.ModelFile.internal_toObject(e,this)},proto.tflite.proto.ModelFile.internal_toObject=function(e,t){if(null!=t){var n={filename:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),fd:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),offset:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3)),length:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.ModelFile.internalDoNotUse$tflite$proto$ModelFile$binaryFieldsObject=[proto.tflite.proto.ModelFile,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWInt64,3,jspb.internal.binary.RWInt64,4,jspb.internal.binary.RWInt64],proto.tflite.proto.$internalDoNotUseCoralSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.getDevice=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.hasDevice=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.getDeviceOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.getPerformance=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.hasPerformance=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.getPerformanceOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.getUsbAlwaysDfu=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.hasUsbAlwaysDfu=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.getUsbAlwaysDfuOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.getUsbMaxBulkInQueueLength=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.hasUsbMaxBulkInQueueLength=function(){},proto.tflite.proto.$internalDoNotUseCoralSettingsReader.prototype.getUsbMaxBulkInQueueLengthOrUndefined=function(){},proto.tflite.proto.CoralSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.CoralSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.CoralSettings.prototype.getDevice=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,1)},proto.tflite.proto.CoralSettings.prototype.setDevice=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.tflite.proto.CoralSettings.prototype.clearDevice=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.CoralSettings.prototype.hasDevice=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.tflite.proto.CoralSettings.prototype.getDeviceOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.tflite.proto.CoralSettings.prototype.getPerformance=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,2,1)},proto.tflite.proto.CoralSettings.prototype.setPerformance=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.proto.CoralSettings.prototype.clearPerformance=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.CoralSettings.prototype.hasPerformance=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.proto.CoralSettings.prototype.getPerformanceOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.proto.CoralSettings.prototype.getUsbAlwaysDfu=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,3)},proto.tflite.proto.CoralSettings.prototype.setUsbAlwaysDfu=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.proto.CoralSettings.prototype.clearUsbAlwaysDfu=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.CoralSettings.prototype.hasUsbAlwaysDfu=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.proto.CoralSettings.prototype.getUsbAlwaysDfuOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,3)},proto.tflite.proto.CoralSettings.prototype.getUsbMaxBulkInQueueLength=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,4)},proto.tflite.proto.CoralSettings.prototype.setUsbMaxBulkInQueueLength=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.tflite.proto.CoralSettings.prototype.clearUsbMaxBulkInQueueLength=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.CoralSettings.prototype.hasUsbMaxBulkInQueueLength=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.proto.CoralSettings.prototype.getUsbMaxBulkInQueueLengthOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.tflite.proto.CoralSettings.prototype.serializeBinary=function(){return proto.tflite.proto.CoralSettings.serializeBinary(this)},proto.tflite.proto.CoralSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.CoralSettings.internalDoNotUse$tflite$proto$CoralSettings$binaryFieldsObject)},proto.tflite.proto.CoralSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.CoralSettings.internalDoNotUse$tflite$proto$CoralSettings$binaryFieldsObject,t)},proto.tflite.proto.CoralSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.CoralSettings.internalDoNotUse$tflite$proto$CoralSettings$binaryFieldsObject)},proto.tflite.proto.CoralSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.CoralSettings,e)},proto.tflite.proto.CoralSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.CoralSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableCoralSettings"),proto.tflite.proto.MutableCoralSettings=proto.tflite.proto.CoralSettings,proto.tflite.proto.ReadonlyCoralSettings={},proto.tflite.proto.ImmutableCoralSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableCoralSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableCoralSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.CoralSettings,e,t)},proto.tflite.proto.ImmutableCoralSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.CoralSettings)},proto.tflite.proto.ImmutableCoralSettings.serializeBinary=function(e){return proto.tflite.proto.CoralSettings.serializeBinary(e)},proto.tflite.proto.ImmutableCoralSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.CoralSettings.internalDoNotUse$tflite$proto$CoralSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableCoralSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.CoralSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableCoralSettings"),proto.tflite.proto.CoralSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.CoralSettings.fromObject=function(e){var t=new proto.tflite.proto.CoralSettings;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.device),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.performance),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.usbAlwaysDfu),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.usbMaxBulkInQueueLength),t}),proto.tflite.proto.CoralSettings.prototype.toObject=function(e){return proto.tflite.proto.CoralSettings.internal_toObject(e,this)},proto.tflite.proto.CoralSettings.internal_toObject=function(e,t){if(null!=t){var n={device:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),performance:jspb.internal.jspb_adapters.getFieldWithDefault(t,2,1),usbAlwaysDfu:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,3)),usbMaxBulkInQueueLength:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.CoralSettings.Performance={UNDEFINED:0,MAXIMUM:1,HIGH:2,MEDIUM:3,LOW:4},proto.tflite.proto.CoralSettings.internalDoNotUse$tflite$proto$CoralSettings$binaryFieldsObject=[proto.tflite.proto.CoralSettings,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWEnum,3,jspb.internal.binary.RWBool,4,jspb.internal.binary.RWInt32],proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.getEnabledDevices=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.hasEnabledDevices=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.getEnabledDevicesOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.getCoremlVersion=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.hasCoremlVersion=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.getCoremlVersionOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.getMaxDelegatedPartitions=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.hasMaxDelegatedPartitions=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.getMaxDelegatedPartitionsOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.getMinNodesPerPartition=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.hasMinNodesPerPartition=function(){},proto.tflite.proto.$internalDoNotUseCoreMLSettingsReader.prototype.getMinNodesPerPartitionOrUndefined=function(){},proto.tflite.proto.CoreMLSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.CoreMLSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.CoreMLSettings.prototype.getEnabledDevices=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,1,0)},proto.tflite.proto.CoreMLSettings.prototype.setEnabledDevices=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.CoreMLSettings.prototype.clearEnabledDevices=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.CoreMLSettings.prototype.hasEnabledDevices=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.CoreMLSettings.prototype.getEnabledDevicesOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.CoreMLSettings.prototype.getCoremlVersion=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2)},proto.tflite.proto.CoreMLSettings.prototype.setCoremlVersion=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.proto.CoreMLSettings.prototype.clearCoremlVersion=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.CoreMLSettings.prototype.hasCoremlVersion=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.proto.CoreMLSettings.prototype.getCoremlVersionOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.proto.CoreMLSettings.prototype.getMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,3,0)},proto.tflite.proto.CoreMLSettings.prototype.setMaxDelegatedPartitions=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.proto.CoreMLSettings.prototype.clearMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.CoreMLSettings.prototype.hasMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.proto.CoreMLSettings.prototype.getMaxDelegatedPartitionsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.proto.CoreMLSettings.prototype.getMinNodesPerPartition=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,4,2)},proto.tflite.proto.CoreMLSettings.prototype.setMinNodesPerPartition=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.tflite.proto.CoreMLSettings.prototype.clearMinNodesPerPartition=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.CoreMLSettings.prototype.hasMinNodesPerPartition=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.proto.CoreMLSettings.prototype.getMinNodesPerPartitionOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.tflite.proto.CoreMLSettings.prototype.serializeBinary=function(){return proto.tflite.proto.CoreMLSettings.serializeBinary(this)},proto.tflite.proto.CoreMLSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.CoreMLSettings.internalDoNotUse$tflite$proto$CoreMLSettings$binaryFieldsObject)},proto.tflite.proto.CoreMLSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.CoreMLSettings.internalDoNotUse$tflite$proto$CoreMLSettings$binaryFieldsObject,t)},proto.tflite.proto.CoreMLSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.CoreMLSettings.internalDoNotUse$tflite$proto$CoreMLSettings$binaryFieldsObject)},proto.tflite.proto.CoreMLSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.CoreMLSettings,e)},proto.tflite.proto.CoreMLSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.CoreMLSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableCoreMLSettings"),proto.tflite.proto.MutableCoreMLSettings=proto.tflite.proto.CoreMLSettings,proto.tflite.proto.ReadonlyCoreMLSettings={},proto.tflite.proto.ImmutableCoreMLSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableCoreMLSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableCoreMLSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.CoreMLSettings,e,t)},proto.tflite.proto.ImmutableCoreMLSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.CoreMLSettings)},proto.tflite.proto.ImmutableCoreMLSettings.serializeBinary=function(e){return proto.tflite.proto.CoreMLSettings.serializeBinary(e)},proto.tflite.proto.ImmutableCoreMLSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.CoreMLSettings.internalDoNotUse$tflite$proto$CoreMLSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableCoreMLSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.CoreMLSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableCoreMLSettings"),proto.tflite.proto.CoreMLSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.CoreMLSettings.fromObject=function(e){var t=new proto.tflite.proto.CoreMLSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.enabledDevices),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.coremlVersion),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.maxDelegatedPartitions),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.minNodesPerPartition),t}),proto.tflite.proto.CoreMLSettings.prototype.toObject=function(e){return proto.tflite.proto.CoreMLSettings.internal_toObject(e,this)},proto.tflite.proto.CoreMLSettings.internal_toObject=function(e,t){if(null!=t){var n={enabledDevices:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),coremlVersion:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),maxDelegatedPartitions:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,3,0),minNodesPerPartition:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,4,2)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.CoreMLSettings.EnabledDevices={DEVICES_ALL:0,DEVICES_WITH_NEURAL_ENGINE:1},proto.tflite.proto.CoreMLSettings.internalDoNotUse$tflite$proto$CoreMLSettings$binaryFieldsObject=[proto.tflite.proto.CoreMLSettings,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWInt32,4,jspb.internal.binary.RWInt32],proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.getPlatformType=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.hasPlatformType=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.getPlatformTypeOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.getNumChips=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.hasNumChips=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.getNumChipsOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.getDevicePathsList=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.getChipFamily=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.hasChipFamily=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuDeviceSpecReader.prototype.getChipFamilyOrUndefined=function(){},proto.tflite.proto.EdgeTpuDeviceSpec=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.proto.EdgeTpuDeviceSpec.repeatedFields_)},$jscomp.inherits(proto.tflite.proto.EdgeTpuDeviceSpec,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.EdgeTpuDeviceSpec.prototype.getPlatformType=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,1,0)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.setPlatformType=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.clearPlatformType=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.hasPlatformType=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.getPlatformTypeOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.getNumChips=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.setNumChips=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.clearNumChips=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.hasNumChips=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.getNumChipsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.getDevicePathsList=function(){return jspb.internal.jspb_adapters.getRepeatedStringField(this,3)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.setDevicePathsList=function(e){return jspb.internal.jspb_adapters.setRepeatedStringField(this,3,e)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.addDevicePaths=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedStringField(this,3,e,t)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.clearDevicePathsList=function(){return jspb.internal.jspb_adapters.clearRepeatedField(this,3)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.getChipFamily=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,4)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.setChipFamily=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.clearChipFamily=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.hasChipFamily=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.getChipFamilyOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.tflite.proto.EdgeTpuDeviceSpec.prototype.serializeBinary=function(){return proto.tflite.proto.EdgeTpuDeviceSpec.serializeBinary(this)},proto.tflite.proto.EdgeTpuDeviceSpec.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.EdgeTpuDeviceSpec.internalDoNotUse$tflite$proto$EdgeTpuDeviceSpec$binaryFieldsObject)},proto.tflite.proto.EdgeTpuDeviceSpec.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.EdgeTpuDeviceSpec.internalDoNotUse$tflite$proto$EdgeTpuDeviceSpec$binaryFieldsObject,t)},proto.tflite.proto.EdgeTpuDeviceSpec.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.EdgeTpuDeviceSpec.internalDoNotUse$tflite$proto$EdgeTpuDeviceSpec$binaryFieldsObject)},proto.tflite.proto.EdgeTpuDeviceSpec.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.EdgeTpuDeviceSpec,e)},proto.tflite.proto.EdgeTpuDeviceSpec.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.EdgeTpuDeviceSpec&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableEdgeTpuDeviceSpec"),proto.tflite.proto.MutableEdgeTpuDeviceSpec=proto.tflite.proto.EdgeTpuDeviceSpec,proto.tflite.proto.ReadonlyEdgeTpuDeviceSpec={},proto.tflite.proto.ImmutableEdgeTpuDeviceSpec=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableEdgeTpuDeviceSpec,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableEdgeTpuDeviceSpec.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.EdgeTpuDeviceSpec,e,t)},proto.tflite.proto.ImmutableEdgeTpuDeviceSpec.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.EdgeTpuDeviceSpec)},proto.tflite.proto.ImmutableEdgeTpuDeviceSpec.serializeBinary=function(e){return proto.tflite.proto.EdgeTpuDeviceSpec.serializeBinary(e)},proto.tflite.proto.ImmutableEdgeTpuDeviceSpec.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.EdgeTpuDeviceSpec.internalDoNotUse$tflite$proto$EdgeTpuDeviceSpec$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableEdgeTpuDeviceSpec.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.EdgeTpuDeviceSpec&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableEdgeTpuDeviceSpec"),proto.tflite.proto.EdgeTpuDeviceSpec.repeatedFields_=[3],proto.tflite.proto.EdgeTpuDeviceSpec.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.EdgeTpuDeviceSpec.fromObject=function(e){var t=new proto.tflite.proto.EdgeTpuDeviceSpec;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.platformType),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.numChips),jspb.internal.jspb_adapters.setRepeatedStringFieldIfNotNullish(t,3,e.devicePathsList),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.chipFamily),t}),proto.tflite.proto.EdgeTpuDeviceSpec.prototype.toObject=function(e){return proto.tflite.proto.EdgeTpuDeviceSpec.internal_toObject(e,this)},proto.tflite.proto.EdgeTpuDeviceSpec.internal_toObject=function(e,t){if(null!=t){var n={platformType:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),numChips:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),devicePathsList:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getRepeatedStringField(t,3)),chipFamily:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.EdgeTpuDeviceSpec.PlatformType={MMIO:0,REFERENCE:1,SIMULATOR:2,REMOTE_SIMULATOR:3},proto.tflite.proto.EdgeTpuDeviceSpec.internalDoNotUse$tflite$proto$EdgeTpuDeviceSpec$binaryFieldsObject=[proto.tflite.proto.EdgeTpuDeviceSpec,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWRepeatedString,4,jspb.internal.binary.RWInt32],proto.tflite.proto.$internalDoNotUseEdgeTpuInactivePowerConfigReader=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuInactivePowerConfigReader.prototype.getInactivePowerState=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuInactivePowerConfigReader.prototype.hasInactivePowerState=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuInactivePowerConfigReader.prototype.getInactivePowerStateOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuInactivePowerConfigReader.prototype.getInactiveTimeoutUs=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuInactivePowerConfigReader.prototype.hasInactiveTimeoutUs=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuInactivePowerConfigReader.prototype.getInactiveTimeoutUsOrUndefined=function(){},proto.tflite.proto.EdgeTpuInactivePowerConfig=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.EdgeTpuInactivePowerConfig,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.getInactivePowerState=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,1,0)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.setInactivePowerState=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.clearInactivePowerState=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.hasInactivePowerState=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.getInactivePowerStateOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.getInactiveTimeoutUs=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,2)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.setInactiveTimeoutUs=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.clearInactiveTimeoutUs=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.hasInactiveTimeoutUs=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.getInactiveTimeoutUsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.serializeBinary=function(){return proto.tflite.proto.EdgeTpuInactivePowerConfig.serializeBinary(this)},proto.tflite.proto.EdgeTpuInactivePowerConfig.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.EdgeTpuInactivePowerConfig.internalDoNotUse$tflite$proto$EdgeTpuInactivePowerConfig$binaryFieldsObject)},proto.tflite.proto.EdgeTpuInactivePowerConfig.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.EdgeTpuInactivePowerConfig.internalDoNotUse$tflite$proto$EdgeTpuInactivePowerConfig$binaryFieldsObject,t)},proto.tflite.proto.EdgeTpuInactivePowerConfig.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.EdgeTpuInactivePowerConfig.internalDoNotUse$tflite$proto$EdgeTpuInactivePowerConfig$binaryFieldsObject)},proto.tflite.proto.EdgeTpuInactivePowerConfig.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.EdgeTpuInactivePowerConfig,e)},proto.tflite.proto.EdgeTpuInactivePowerConfig.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.EdgeTpuInactivePowerConfig&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableEdgeTpuInactivePowerConfig"),proto.tflite.proto.MutableEdgeTpuInactivePowerConfig=proto.tflite.proto.EdgeTpuInactivePowerConfig,proto.tflite.proto.ReadonlyEdgeTpuInactivePowerConfig={},proto.tflite.proto.ImmutableEdgeTpuInactivePowerConfig=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableEdgeTpuInactivePowerConfig,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableEdgeTpuInactivePowerConfig.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.EdgeTpuInactivePowerConfig,e,t)},proto.tflite.proto.ImmutableEdgeTpuInactivePowerConfig.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.EdgeTpuInactivePowerConfig)},proto.tflite.proto.ImmutableEdgeTpuInactivePowerConfig.serializeBinary=function(e){return proto.tflite.proto.EdgeTpuInactivePowerConfig.serializeBinary(e)},proto.tflite.proto.ImmutableEdgeTpuInactivePowerConfig.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.EdgeTpuInactivePowerConfig.internalDoNotUse$tflite$proto$EdgeTpuInactivePowerConfig$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableEdgeTpuInactivePowerConfig.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.EdgeTpuInactivePowerConfig&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableEdgeTpuInactivePowerConfig"),proto.tflite.proto.EdgeTpuInactivePowerConfig.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.EdgeTpuInactivePowerConfig.fromObject=function(e){var t=new proto.tflite.proto.EdgeTpuInactivePowerConfig;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.inactivePowerState),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.inactiveTimeoutUs),t}),proto.tflite.proto.EdgeTpuInactivePowerConfig.prototype.toObject=function(e){return proto.tflite.proto.EdgeTpuInactivePowerConfig.internal_toObject(e,this)},proto.tflite.proto.EdgeTpuInactivePowerConfig.internal_toObject=function(e,t){if(null!=t){var n={inactivePowerState:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),inactiveTimeoutUs:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.EdgeTpuInactivePowerConfig.internalDoNotUse$tflite$proto$EdgeTpuInactivePowerConfig$binaryFieldsObject=[proto.tflite.proto.EdgeTpuInactivePowerConfig,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWInt64],proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getInferencePowerState=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.hasInferencePowerState=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getInferencePowerStateOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getInactivePowerConfigsList=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getReadonlyInactivePowerConfigsList=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getInferencePriority=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.hasInferencePriority=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getInferencePriorityOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getEdgetpuDeviceSpec=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getReadonlyEdgetpuDeviceSpec=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.hasEdgetpuDeviceSpec=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getModelToken=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.hasModelToken=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getModelTokenOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getFloatTruncationType=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.hasFloatTruncationType=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getFloatTruncationTypeOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getQosClass=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.hasQosClass=function(){},proto.tflite.proto.$internalDoNotUseEdgeTpuSettingsReader.prototype.getQosClassOrUndefined=function(){},proto.tflite.proto.EdgeTpuSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.proto.EdgeTpuSettings.repeatedFields_)},$jscomp.inherits(proto.tflite.proto.EdgeTpuSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.EdgeTpuSettings.prototype.getInferencePowerState=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,1,0)},proto.tflite.proto.EdgeTpuSettings.prototype.setInferencePowerState=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.EdgeTpuSettings.prototype.clearInferencePowerState=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.EdgeTpuSettings.prototype.hasInferencePowerState=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.EdgeTpuSettings.prototype.getInferencePowerStateOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.EdgeTpuSettings.prototype.getInactivePowerConfigsList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.proto.EdgeTpuInactivePowerConfig,2)},proto.tflite.proto.EdgeTpuSettings.prototype.getReadonlyInactivePowerConfigsList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.proto.EdgeTpuInactivePowerConfig,2)},proto.tflite.proto.EdgeTpuSettings.prototype.setInactivePowerConfigsList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.proto.EdgeTpuInactivePowerConfig,2,e)},proto.tflite.proto.EdgeTpuSettings.prototype.addInactivePowerConfigs=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,2,proto.tflite.proto.EdgeTpuInactivePowerConfig,e,t)},proto.tflite.proto.EdgeTpuSettings.prototype.addAndReturnInactivePowerConfigs=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,2,proto.tflite.proto.EdgeTpuInactivePowerConfig,e,t)},proto.tflite.proto.EdgeTpuSettings.prototype.clearInactivePowerConfigsList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,2)},proto.tflite.proto.EdgeTpuSettings.prototype.getInferencePriority=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,3,-1)},proto.tflite.proto.EdgeTpuSettings.prototype.setInferencePriority=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.proto.EdgeTpuSettings.prototype.clearInferencePriority=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.EdgeTpuSettings.prototype.hasInferencePriority=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.proto.EdgeTpuSettings.prototype.getInferencePriorityOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.proto.EdgeTpuSettings.prototype.getEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.EdgeTpuDeviceSpec,4)},proto.tflite.proto.EdgeTpuSettings.prototype.getReadonlyEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.EdgeTpuDeviceSpec,4)},proto.tflite.proto.EdgeTpuSettings.prototype.getMutableEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.EdgeTpuDeviceSpec,4)},proto.tflite.proto.EdgeTpuSettings.prototype.setEdgetpuDeviceSpec=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.EdgeTpuDeviceSpec,4,e)},proto.tflite.proto.EdgeTpuSettings.prototype.clearEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.EdgeTpuSettings.prototype.hasEdgetpuDeviceSpec=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.EdgeTpuDeviceSpec,4)},proto.tflite.proto.EdgeTpuSettings.prototype.getModelToken=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,5)},proto.tflite.proto.EdgeTpuSettings.prototype.setModelToken=function(e){return jspb.internal.jspb_adapters.setStringField(this,5,e)},proto.tflite.proto.EdgeTpuSettings.prototype.clearModelToken=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.tflite.proto.EdgeTpuSettings.prototype.hasModelToken=function(){return jspb.internal.jspb_adapters.hasStringField(this,5)},proto.tflite.proto.EdgeTpuSettings.prototype.getModelTokenOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,5)},proto.tflite.proto.EdgeTpuSettings.prototype.getFloatTruncationType=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,6,0)},proto.tflite.proto.EdgeTpuSettings.prototype.setFloatTruncationType=function(e){return jspb.internal.jspb_adapters.setField(this,6,e)},proto.tflite.proto.EdgeTpuSettings.prototype.clearFloatTruncationType=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.tflite.proto.EdgeTpuSettings.prototype.hasFloatTruncationType=function(){return jspb.internal.jspb_adapters.hasField(this,6)},proto.tflite.proto.EdgeTpuSettings.prototype.getFloatTruncationTypeOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,6)},proto.tflite.proto.EdgeTpuSettings.prototype.getQosClass=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,7,0)},proto.tflite.proto.EdgeTpuSettings.prototype.setQosClass=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.tflite.proto.EdgeTpuSettings.prototype.clearQosClass=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.tflite.proto.EdgeTpuSettings.prototype.hasQosClass=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.tflite.proto.EdgeTpuSettings.prototype.getQosClassOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,7)},proto.tflite.proto.EdgeTpuSettings.prototype.serializeBinary=function(){return proto.tflite.proto.EdgeTpuSettings.serializeBinary(this)},proto.tflite.proto.EdgeTpuSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.EdgeTpuSettings.internalDoNotUse$tflite$proto$EdgeTpuSettings$binaryFieldsObject)},proto.tflite.proto.EdgeTpuSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.EdgeTpuSettings.internalDoNotUse$tflite$proto$EdgeTpuSettings$binaryFieldsObject,t)},proto.tflite.proto.EdgeTpuSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.EdgeTpuSettings.internalDoNotUse$tflite$proto$EdgeTpuSettings$binaryFieldsObject)},proto.tflite.proto.EdgeTpuSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.EdgeTpuSettings,e)},proto.tflite.proto.EdgeTpuSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.EdgeTpuSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableEdgeTpuSettings"),proto.tflite.proto.MutableEdgeTpuSettings=proto.tflite.proto.EdgeTpuSettings,proto.tflite.proto.ReadonlyEdgeTpuSettings={},proto.tflite.proto.ImmutableEdgeTpuSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableEdgeTpuSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableEdgeTpuSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.EdgeTpuSettings,e,t)},proto.tflite.proto.ImmutableEdgeTpuSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.EdgeTpuSettings)},proto.tflite.proto.ImmutableEdgeTpuSettings.serializeBinary=function(e){return proto.tflite.proto.EdgeTpuSettings.serializeBinary(e)},proto.tflite.proto.ImmutableEdgeTpuSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.EdgeTpuSettings.internalDoNotUse$tflite$proto$EdgeTpuSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableEdgeTpuSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.EdgeTpuSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableEdgeTpuSettings"),proto.tflite.proto.EdgeTpuSettings.repeatedFields_=[2],proto.tflite.proto.EdgeTpuSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.EdgeTpuSettings.fromObject=function(e){var t=new proto.tflite.proto.EdgeTpuSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.inferencePowerState),jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.proto.EdgeTpuInactivePowerConfig,2,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.inactivePowerConfigsList,proto.tflite.proto.EdgeTpuInactivePowerConfig.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.inferencePriority),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.EdgeTpuDeviceSpec,4,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.edgetpuDeviceSpec,proto.tflite.proto.EdgeTpuDeviceSpec.fromObject)),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,5,e.modelToken),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,6,e.floatTruncationType),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.qosClass),t}),proto.tflite.proto.EdgeTpuSettings.prototype.toObject=function(e){return proto.tflite.proto.EdgeTpuSettings.internal_toObject(e,this)},proto.tflite.proto.EdgeTpuSettings.internal_toObject=function(e,t){if(null!=t){var n={inferencePowerState:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),inactivePowerConfigsList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getInactivePowerConfigsList(),proto.tflite.proto.EdgeTpuInactivePowerConfig.internal_toObject,e),inferencePriority:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,3,-1),edgetpuDeviceSpec:proto.tflite.proto.EdgeTpuDeviceSpec.internal_toObject(e,t.getEdgetpuDeviceSpec()),modelToken:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,5)),floatTruncationType:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,6)),qosClass:jspb.internal.jspb_adapters.getFieldWithDefault(t,7,0)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.EdgeTpuSettings.FloatTruncationType={UNSPECIFIED:0,NO_TRUNCATION:1,BFLOAT16:2,HALF:3},proto.tflite.proto.EdgeTpuSettings.QosClass={QOS_UNDEFINED:0,BEST_EFFORT:1,REALTIME:2},proto.tflite.proto.EdgeTpuSettings.internalDoNotUse$tflite$proto$EdgeTpuSettings$binaryFieldsObject=[proto.tflite.proto.EdgeTpuSettings,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWRepeatedMessage,proto.tflite.proto.EdgeTpuInactivePowerConfig.internalDoNotUse$tflite$proto$EdgeTpuInactivePowerConfig$binaryFieldsObject,3,jspb.internal.binary.RWInt32,4,jspb.internal.binary.RWMessage,proto.tflite.proto.EdgeTpuDeviceSpec.internalDoNotUse$tflite$proto$EdgeTpuDeviceSpec$binaryFieldsObject,5,jspb.internal.binary.RWString,6,jspb.internal.binary.RWEnum,7,jspb.internal.binary.RWEnum],proto.tflite.proto.$internalDoNotUseFallbackSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnCompilationError=function(){},proto.tflite.proto.$internalDoNotUseFallbackSettingsReader.prototype.hasAllowAutomaticFallbackOnCompilationError=function(){},proto.tflite.proto.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnCompilationErrorOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnExecutionError=function(){},proto.tflite.proto.$internalDoNotUseFallbackSettingsReader.prototype.hasAllowAutomaticFallbackOnExecutionError=function(){},proto.tflite.proto.$internalDoNotUseFallbackSettingsReader.prototype.getAllowAutomaticFallbackOnExecutionErrorOrUndefined=function(){},proto.tflite.proto.FallbackSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.FallbackSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.FallbackSettings.prototype.getAllowAutomaticFallbackOnCompilationError=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,7)},proto.tflite.proto.FallbackSettings.prototype.setAllowAutomaticFallbackOnCompilationError=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.tflite.proto.FallbackSettings.prototype.clearAllowAutomaticFallbackOnCompilationError=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.tflite.proto.FallbackSettings.prototype.hasAllowAutomaticFallbackOnCompilationError=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.tflite.proto.FallbackSettings.prototype.getAllowAutomaticFallbackOnCompilationErrorOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,7)},proto.tflite.proto.FallbackSettings.prototype.getAllowAutomaticFallbackOnExecutionError=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,8)},proto.tflite.proto.FallbackSettings.prototype.setAllowAutomaticFallbackOnExecutionError=function(e){return jspb.internal.jspb_adapters.setField(this,8,e)},proto.tflite.proto.FallbackSettings.prototype.clearAllowAutomaticFallbackOnExecutionError=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.tflite.proto.FallbackSettings.prototype.hasAllowAutomaticFallbackOnExecutionError=function(){return jspb.internal.jspb_adapters.hasField(this,8)},proto.tflite.proto.FallbackSettings.prototype.getAllowAutomaticFallbackOnExecutionErrorOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,8)},proto.tflite.proto.FallbackSettings.prototype.serializeBinary=function(){return proto.tflite.proto.FallbackSettings.serializeBinary(this)},proto.tflite.proto.FallbackSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.FallbackSettings.internalDoNotUse$tflite$proto$FallbackSettings$binaryFieldsObject)},proto.tflite.proto.FallbackSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.FallbackSettings.internalDoNotUse$tflite$proto$FallbackSettings$binaryFieldsObject,t)},proto.tflite.proto.FallbackSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.FallbackSettings.internalDoNotUse$tflite$proto$FallbackSettings$binaryFieldsObject)},proto.tflite.proto.FallbackSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.FallbackSettings,e)},proto.tflite.proto.FallbackSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.FallbackSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableFallbackSettings"),proto.tflite.proto.MutableFallbackSettings=proto.tflite.proto.FallbackSettings,proto.tflite.proto.ReadonlyFallbackSettings={},proto.tflite.proto.ImmutableFallbackSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableFallbackSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableFallbackSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.FallbackSettings,e,t)},proto.tflite.proto.ImmutableFallbackSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.FallbackSettings)},proto.tflite.proto.ImmutableFallbackSettings.serializeBinary=function(e){return proto.tflite.proto.FallbackSettings.serializeBinary(e)},proto.tflite.proto.ImmutableFallbackSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.FallbackSettings.internalDoNotUse$tflite$proto$FallbackSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableFallbackSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.FallbackSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableFallbackSettings"),proto.tflite.proto.FallbackSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.FallbackSettings.fromObject=function(e){var t=new proto.tflite.proto.FallbackSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.allowAutomaticFallbackOnCompilationError),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,8,e.allowAutomaticFallbackOnExecutionError),t}),proto.tflite.proto.FallbackSettings.prototype.toObject=function(e){return proto.tflite.proto.FallbackSettings.internal_toObject(e,this)},proto.tflite.proto.FallbackSettings.internal_toObject=function(e,t){if(null!=t){var n={allowAutomaticFallbackOnCompilationError:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,7)),allowAutomaticFallbackOnExecutionError:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,8))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.FallbackSettings.internalDoNotUse$tflite$proto$FallbackSettings$binaryFieldsObject=[proto.tflite.proto.FallbackSettings,7,jspb.internal.binary.RWBool,8,jspb.internal.binary.RWBool],proto.tflite.proto.$internalDoNotUseGPUSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getIsPrecisionLossAllowed=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasIsPrecisionLossAllowed=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getIsPrecisionLossAllowedOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getEnableQuantizedInference=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasEnableQuantizedInference=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getEnableQuantizedInferenceOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getForceBackend=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasForceBackend=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getForceBackendOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getInferencePriority1=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasInferencePriority1=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getInferencePriority1OrUndefined=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getInferencePriority2=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasInferencePriority2=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getInferencePriority2OrUndefined=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getInferencePriority3=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasInferencePriority3=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getInferencePriority3OrUndefined=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getInferencePreference=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasInferencePreference=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getInferencePreferenceOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getCacheDirectory=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasCacheDirectory=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getCacheDirectoryOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getModelToken=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.hasModelToken=function(){},proto.tflite.proto.$internalDoNotUseGPUSettingsReader.prototype.getModelTokenOrUndefined=function(){},proto.tflite.proto.GPUSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.GPUSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.GPUSettings.prototype.getIsPrecisionLossAllowed=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,1)},proto.tflite.proto.GPUSettings.prototype.setIsPrecisionLossAllowed=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.GPUSettings.prototype.clearIsPrecisionLossAllowed=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.GPUSettings.prototype.hasIsPrecisionLossAllowed=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.GPUSettings.prototype.getIsPrecisionLossAllowedOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,1)},proto.tflite.proto.GPUSettings.prototype.getEnableQuantizedInference=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,2,!0)},proto.tflite.proto.GPUSettings.prototype.setEnableQuantizedInference=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.proto.GPUSettings.prototype.clearEnableQuantizedInference=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.GPUSettings.prototype.hasEnableQuantizedInference=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.proto.GPUSettings.prototype.getEnableQuantizedInferenceOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,2)},proto.tflite.proto.GPUSettings.prototype.getForceBackend=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,3,0)},proto.tflite.proto.GPUSettings.prototype.setForceBackend=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.proto.GPUSettings.prototype.clearForceBackend=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.GPUSettings.prototype.hasForceBackend=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.proto.GPUSettings.prototype.getForceBackendOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.proto.GPUSettings.prototype.getInferencePriority1=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,4,0)},proto.tflite.proto.GPUSettings.prototype.setInferencePriority1=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.tflite.proto.GPUSettings.prototype.clearInferencePriority1=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.GPUSettings.prototype.hasInferencePriority1=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.proto.GPUSettings.prototype.getInferencePriority1OrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.tflite.proto.GPUSettings.prototype.getInferencePriority2=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,5,0)},proto.tflite.proto.GPUSettings.prototype.setInferencePriority2=function(e){return jspb.internal.jspb_adapters.setField(this,5,e)},proto.tflite.proto.GPUSettings.prototype.clearInferencePriority2=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.tflite.proto.GPUSettings.prototype.hasInferencePriority2=function(){return jspb.internal.jspb_adapters.hasField(this,5)},proto.tflite.proto.GPUSettings.prototype.getInferencePriority2OrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,5)},proto.tflite.proto.GPUSettings.prototype.getInferencePriority3=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,6,0)},proto.tflite.proto.GPUSettings.prototype.setInferencePriority3=function(e){return jspb.internal.jspb_adapters.setField(this,6,e)},proto.tflite.proto.GPUSettings.prototype.clearInferencePriority3=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.tflite.proto.GPUSettings.prototype.hasInferencePriority3=function(){return jspb.internal.jspb_adapters.hasField(this,6)},proto.tflite.proto.GPUSettings.prototype.getInferencePriority3OrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,6)},proto.tflite.proto.GPUSettings.prototype.getInferencePreference=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,7,0)},proto.tflite.proto.GPUSettings.prototype.setInferencePreference=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.tflite.proto.GPUSettings.prototype.clearInferencePreference=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.tflite.proto.GPUSettings.prototype.hasInferencePreference=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.tflite.proto.GPUSettings.prototype.getInferencePreferenceOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,7)},proto.tflite.proto.GPUSettings.prototype.getCacheDirectory=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,8)},proto.tflite.proto.GPUSettings.prototype.setCacheDirectory=function(e){return jspb.internal.jspb_adapters.setStringField(this,8,e)},proto.tflite.proto.GPUSettings.prototype.clearCacheDirectory=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.tflite.proto.GPUSettings.prototype.hasCacheDirectory=function(){return jspb.internal.jspb_adapters.hasStringField(this,8)},proto.tflite.proto.GPUSettings.prototype.getCacheDirectoryOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,8)},proto.tflite.proto.GPUSettings.prototype.getModelToken=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,9)},proto.tflite.proto.GPUSettings.prototype.setModelToken=function(e){return jspb.internal.jspb_adapters.setStringField(this,9,e)},proto.tflite.proto.GPUSettings.prototype.clearModelToken=function(){return jspb.internal.jspb_adapters.clearField(this,9)},proto.tflite.proto.GPUSettings.prototype.hasModelToken=function(){return jspb.internal.jspb_adapters.hasStringField(this,9)},proto.tflite.proto.GPUSettings.prototype.getModelTokenOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,9)},proto.tflite.proto.GPUSettings.prototype.serializeBinary=function(){return proto.tflite.proto.GPUSettings.serializeBinary(this)},proto.tflite.proto.GPUSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.GPUSettings.internalDoNotUse$tflite$proto$GPUSettings$binaryFieldsObject)},proto.tflite.proto.GPUSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.GPUSettings.internalDoNotUse$tflite$proto$GPUSettings$binaryFieldsObject,t)},proto.tflite.proto.GPUSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.GPUSettings.internalDoNotUse$tflite$proto$GPUSettings$binaryFieldsObject)},proto.tflite.proto.GPUSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.GPUSettings,e)},proto.tflite.proto.GPUSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.GPUSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableGPUSettings"),proto.tflite.proto.MutableGPUSettings=proto.tflite.proto.GPUSettings,proto.tflite.proto.ReadonlyGPUSettings={},proto.tflite.proto.ImmutableGPUSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableGPUSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableGPUSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.GPUSettings,e,t)},proto.tflite.proto.ImmutableGPUSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.GPUSettings)},proto.tflite.proto.ImmutableGPUSettings.serializeBinary=function(e){return proto.tflite.proto.GPUSettings.serializeBinary(e)},proto.tflite.proto.ImmutableGPUSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.GPUSettings.internalDoNotUse$tflite$proto$GPUSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableGPUSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.GPUSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableGPUSettings"),proto.tflite.proto.GPUSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.GPUSettings.fromObject=function(e){var t=new proto.tflite.proto.GPUSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.isPrecisionLossAllowed),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.enableQuantizedInference),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.forceBackend),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.inferencePriority1),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,5,e.inferencePriority2),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,6,e.inferencePriority3),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.inferencePreference),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,8,e.cacheDirectory),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,9,e.modelToken),t}),proto.tflite.proto.GPUSettings.prototype.toObject=function(e){return proto.tflite.proto.GPUSettings.internal_toObject(e,this)},proto.tflite.proto.GPUSettings.internal_toObject=function(e,t){if(null!=t){var n={isPrecisionLossAllowed:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,1)),enableQuantizedInference:jspb.internal.jspb_adapters.getBooleanFieldWithDefault(t,2,!0),forceBackend:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3)),inferencePriority1:jspb.internal.jspb_adapters.getFieldWithDefault(t,4,0),inferencePriority2:jspb.internal.jspb_adapters.getFieldWithDefault(t,5,0),inferencePriority3:jspb.internal.jspb_adapters.getFieldWithDefault(t,6,0),inferencePreference:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,7)),cacheDirectory:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,8)),modelToken:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,9))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.GPUSettings.internalDoNotUse$tflite$proto$GPUSettings$binaryFieldsObject=[proto.tflite.proto.GPUSettings,1,jspb.internal.binary.RWBool,2,jspb.internal.binary.RWBool,3,jspb.internal.binary.RWEnum,4,jspb.internal.binary.RWEnum,5,jspb.internal.binary.RWEnum,6,jspb.internal.binary.RWEnum,7,jspb.internal.binary.RWEnum,8,jspb.internal.binary.RWString,9,jspb.internal.binary.RWString],proto.tflite.proto.$internalDoNotUseHexagonSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.getDebugLevel=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.hasDebugLevel=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.getDebugLevelOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.getPowersaveLevel=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.hasPowersaveLevel=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.getPowersaveLevelOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.getPrintGraphProfile=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.hasPrintGraphProfile=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.getPrintGraphProfileOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.getPrintGraphDebug=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.hasPrintGraphDebug=function(){},proto.tflite.proto.$internalDoNotUseHexagonSettingsReader.prototype.getPrintGraphDebugOrUndefined=function(){},proto.tflite.proto.HexagonSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.HexagonSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.HexagonSettings.prototype.getDebugLevel=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,1)},proto.tflite.proto.HexagonSettings.prototype.setDebugLevel=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.HexagonSettings.prototype.clearDebugLevel=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.HexagonSettings.prototype.hasDebugLevel=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.HexagonSettings.prototype.getDebugLevelOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.HexagonSettings.prototype.getPowersaveLevel=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2)},proto.tflite.proto.HexagonSettings.prototype.setPowersaveLevel=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.proto.HexagonSettings.prototype.clearPowersaveLevel=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.HexagonSettings.prototype.hasPowersaveLevel=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.proto.HexagonSettings.prototype.getPowersaveLevelOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.proto.HexagonSettings.prototype.getPrintGraphProfile=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,3)},proto.tflite.proto.HexagonSettings.prototype.setPrintGraphProfile=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.proto.HexagonSettings.prototype.clearPrintGraphProfile=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.HexagonSettings.prototype.hasPrintGraphProfile=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.proto.HexagonSettings.prototype.getPrintGraphProfileOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,3)},proto.tflite.proto.HexagonSettings.prototype.getPrintGraphDebug=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,4)},proto.tflite.proto.HexagonSettings.prototype.setPrintGraphDebug=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.tflite.proto.HexagonSettings.prototype.clearPrintGraphDebug=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.HexagonSettings.prototype.hasPrintGraphDebug=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.proto.HexagonSettings.prototype.getPrintGraphDebugOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,4)},proto.tflite.proto.HexagonSettings.prototype.serializeBinary=function(){return proto.tflite.proto.HexagonSettings.serializeBinary(this)},proto.tflite.proto.HexagonSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.HexagonSettings.internalDoNotUse$tflite$proto$HexagonSettings$binaryFieldsObject)},proto.tflite.proto.HexagonSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.HexagonSettings.internalDoNotUse$tflite$proto$HexagonSettings$binaryFieldsObject,t)},proto.tflite.proto.HexagonSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.HexagonSettings.internalDoNotUse$tflite$proto$HexagonSettings$binaryFieldsObject)},proto.tflite.proto.HexagonSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.HexagonSettings,e)},proto.tflite.proto.HexagonSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.HexagonSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableHexagonSettings"),proto.tflite.proto.MutableHexagonSettings=proto.tflite.proto.HexagonSettings,proto.tflite.proto.ReadonlyHexagonSettings={},proto.tflite.proto.ImmutableHexagonSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableHexagonSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableHexagonSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.HexagonSettings,e,t)},proto.tflite.proto.ImmutableHexagonSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.HexagonSettings)},proto.tflite.proto.ImmutableHexagonSettings.serializeBinary=function(e){return proto.tflite.proto.HexagonSettings.serializeBinary(e)},proto.tflite.proto.ImmutableHexagonSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.HexagonSettings.internalDoNotUse$tflite$proto$HexagonSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableHexagonSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.HexagonSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableHexagonSettings"),proto.tflite.proto.HexagonSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.HexagonSettings.fromObject=function(e){var t=new proto.tflite.proto.HexagonSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.debugLevel),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.powersaveLevel),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.printGraphProfile),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.printGraphDebug),t}),proto.tflite.proto.HexagonSettings.prototype.toObject=function(e){return proto.tflite.proto.HexagonSettings.internal_toObject(e,this)},proto.tflite.proto.HexagonSettings.internal_toObject=function(e,t){if(null!=t){var n={debugLevel:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),powersaveLevel:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),printGraphProfile:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,3)),printGraphDebug:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.HexagonSettings.internalDoNotUse$tflite$proto$HexagonSettings$binaryFieldsObject=[proto.tflite.proto.HexagonSettings,1,jspb.internal.binary.RWInt32,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWBool,4,jspb.internal.binary.RWBool],proto.tflite.proto.$internalDoNotUseNNAPISettingsReader=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getAcceleratorName=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasAcceleratorName=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getAcceleratorNameOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getCacheDirectory=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasCacheDirectory=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getCacheDirectoryOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getModelToken=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasModelToken=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getModelTokenOrUndefined=function(){},
vendor: 12,998 bytes, line 2
2proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getExecutionPreference=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasExecutionPreference=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getExecutionPreferenceOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getNoOfNnapiInstancesToCache=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasNoOfNnapiInstancesToCache=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getNoOfNnapiInstancesToCacheOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getFallbackSettings=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getReadonlyFallbackSettings=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasFallbackSettings=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getAllowNnapiCpuOnAndroid10Plus=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasAllowNnapiCpuOnAndroid10Plus=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getAllowNnapiCpuOnAndroid10PlusOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getExecutionPriority=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasExecutionPriority=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getExecutionPriorityOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getAllowDynamicDimensions=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasAllowDynamicDimensions=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getAllowDynamicDimensionsOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getAllowFp16PrecisionForFp32=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasAllowFp16PrecisionForFp32=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getAllowFp16PrecisionForFp32OrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getUseBurstComputation=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasUseBurstComputation=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getUseBurstComputationOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getSupportLibraryHandle=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.hasSupportLibraryHandle=function(){},proto.tflite.proto.$internalDoNotUseNNAPISettingsReader.prototype.getSupportLibraryHandleOrUndefined=function(){},proto.tflite.proto.NNAPISettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.NNAPISettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.NNAPISettings.prototype.getAcceleratorName=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,1)},proto.tflite.proto.NNAPISettings.prototype.setAcceleratorName=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.tflite.proto.NNAPISettings.prototype.clearAcceleratorName=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.NNAPISettings.prototype.hasAcceleratorName=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.tflite.proto.NNAPISettings.prototype.getAcceleratorNameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.tflite.proto.NNAPISettings.prototype.getCacheDirectory=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,2)},proto.tflite.proto.NNAPISettings.prototype.setCacheDirectory=function(e){return jspb.internal.jspb_adapters.setStringField(this,2,e)},proto.tflite.proto.NNAPISettings.prototype.clearCacheDirectory=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.NNAPISettings.prototype.hasCacheDirectory=function(){return jspb.internal.jspb_adapters.hasStringField(this,2)},proto.tflite.proto.NNAPISettings.prototype.getCacheDirectoryOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,2)},proto.tflite.proto.NNAPISettings.prototype.getModelToken=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,3)},proto.tflite.proto.NNAPISettings.prototype.setModelToken=function(e){return jspb.internal.jspb_adapters.setStringField(this,3,e)},proto.tflite.proto.NNAPISettings.prototype.clearModelToken=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.NNAPISettings.prototype.hasModelToken=function(){return jspb.internal.jspb_adapters.hasStringField(this,3)},proto.tflite.proto.NNAPISettings.prototype.getModelTokenOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,3)},proto.tflite.proto.NNAPISettings.prototype.getExecutionPreference=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,4,0)},proto.tflite.proto.NNAPISettings.prototype.setExecutionPreference=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.tflite.proto.NNAPISettings.prototype.clearExecutionPreference=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.NNAPISettings.prototype.hasExecutionPreference=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.proto.NNAPISettings.prototype.getExecutionPreferenceOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.tflite.proto.NNAPISettings.prototype.getNoOfNnapiInstancesToCache=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,5)},proto.tflite.proto.NNAPISettings.prototype.setNoOfNnapiInstancesToCache=function(e){return jspb.internal.jspb_adapters.setField(this,5,e)},proto.tflite.proto.NNAPISettings.prototype.clearNoOfNnapiInstancesToCache=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.tflite.proto.NNAPISettings.prototype.hasNoOfNnapiInstancesToCache=function(){return jspb.internal.jspb_adapters.hasField(this,5)},proto.tflite.proto.NNAPISettings.prototype.getNoOfNnapiInstancesToCacheOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,5)},proto.tflite.proto.NNAPISettings.prototype.getFallbackSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.FallbackSettings,6)},proto.tflite.proto.NNAPISettings.prototype.getReadonlyFallbackSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.FallbackSettings,6)},proto.tflite.proto.NNAPISettings.prototype.getMutableFallbackSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.FallbackSettings,6)},proto.tflite.proto.NNAPISettings.prototype.setFallbackSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.FallbackSettings,6,e)},proto.tflite.proto.NNAPISettings.prototype.clearFallbackSettings=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.tflite.proto.NNAPISettings.prototype.hasFallbackSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.FallbackSettings,6)},proto.tflite.proto.NNAPISettings.prototype.getAllowNnapiCpuOnAndroid10Plus=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,7)},proto.tflite.proto.NNAPISettings.prototype.setAllowNnapiCpuOnAndroid10Plus=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.tflite.proto.NNAPISettings.prototype.clearAllowNnapiCpuOnAndroid10Plus=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.tflite.proto.NNAPISettings.prototype.hasAllowNnapiCpuOnAndroid10Plus=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.tflite.proto.NNAPISettings.prototype.getAllowNnapiCpuOnAndroid10PlusOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,7)},proto.tflite.proto.NNAPISettings.prototype.getExecutionPriority=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,8,0)},proto.tflite.proto.NNAPISettings.prototype.setExecutionPriority=function(e){return jspb.internal.jspb_adapters.setField(this,8,e)},proto.tflite.proto.NNAPISettings.prototype.clearExecutionPriority=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.tflite.proto.NNAPISettings.prototype.hasExecutionPriority=function(){return jspb.internal.jspb_adapters.hasField(this,8)},proto.tflite.proto.NNAPISettings.prototype.getExecutionPriorityOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,8)},proto.tflite.proto.NNAPISettings.prototype.getAllowDynamicDimensions=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,9)},proto.tflite.proto.NNAPISettings.prototype.setAllowDynamicDimensions=function(e){return jspb.internal.jspb_adapters.setField(this,9,e)},proto.tflite.proto.NNAPISettings.prototype.clearAllowDynamicDimensions=function(){return jspb.internal.jspb_adapters.clearField(this,9)},proto.tflite.proto.NNAPISettings.prototype.hasAllowDynamicDimensions=function(){return jspb.internal.jspb_adapters.hasField(this,9)},proto.tflite.proto.NNAPISettings.prototype.getAllowDynamicDimensionsOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,9)},proto.tflite.proto.NNAPISettings.prototype.getAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,10)},proto.tflite.proto.NNAPISettings.prototype.setAllowFp16PrecisionForFp32=function(e){return jspb.internal.jspb_adapters.setField(this,10,e)},proto.tflite.proto.NNAPISettings.prototype.clearAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.clearField(this,10)},proto.tflite.proto.NNAPISettings.prototype.hasAllowFp16PrecisionForFp32=function(){return jspb.internal.jspb_adapters.hasField(this,10)},proto.tflite.proto.NNAPISettings.prototype.getAllowFp16PrecisionForFp32OrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,10)},proto.tflite.proto.NNAPISettings.prototype.getUseBurstComputation=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,11)},proto.tflite.proto.NNAPISettings.prototype.setUseBurstComputation=function(e){return jspb.internal.jspb_adapters.setField(this,11,e)},proto.tflite.proto.NNAPISettings.prototype.clearUseBurstComputation=function(){return jspb.internal.jspb_adapters.clearField(this,11)},proto.tflite.proto.NNAPISettings.prototype.hasUseBurstComputation=function(){return jspb.internal.jspb_adapters.hasField(this,11)},proto.tflite.proto.NNAPISettings.prototype.getUseBurstComputationOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,11)},proto.tflite.proto.NNAPISettings.prototype.getSupportLibraryHandle=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,12)},proto.tflite.proto.NNAPISettings.prototype.setSupportLibraryHandle=function(e){return jspb.internal.jspb_adapters.setField(this,12,e)},proto.tflite.proto.NNAPISettings.prototype.clearSupportLibraryHandle=function(){return jspb.internal.jspb_adapters.clearField(this,12)},proto.tflite.proto.NNAPISettings.prototype.hasSupportLibraryHandle=function(){return jspb.internal.jspb_adapters.hasField(this,12)},proto.tflite.proto.NNAPISettings.prototype.getSupportLibraryHandleOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,12)},proto.tflite.proto.NNAPISettings.prototype.serializeBinary=function(){return proto.tflite.proto.NNAPISettings.serializeBinary(this)},proto.tflite.proto.NNAPISettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.NNAPISettings.internalDoNotUse$tflite$proto$NNAPISettings$binaryFieldsObject)},proto.tflite.proto.NNAPISettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.NNAPISettings.internalDoNotUse$tflite$proto$NNAPISettings$binaryFieldsObject,t)},proto.tflite.proto.NNAPISettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.NNAPISettings.internalDoNotUse$tflite$proto$NNAPISettings$binaryFieldsObject)},proto.tflite.proto.NNAPISettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.NNAPISettings,e)},proto.tflite.proto.NNAPISettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(
2function(e){return e instanceof proto.tflite.proto.NNAPISettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableNNAPISettings"),proto.tflite.proto.MutableNNAPISettings=proto.tflite.proto.NNAPISettings,proto.tflite.proto.ReadonlyNNAPISettings={},proto.tflite.proto.ImmutableNNAPISettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableNNAPISettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableNNAPISettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.NNAPISettings,e,t)},proto.tflite.proto.ImmutableNNAPISettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.NNAPISettings)},proto.tflite.proto.ImmutableNNAPISettings.serializeBinary=function(e){return proto.tflite.proto.NNAPISettings.serializeBinary(e)},proto.tflite.proto.ImmutableNNAPISettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.NNAPISettings.internalDoNotUse$tflite$proto$NNAPISettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableNNAPISettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.NNAPISettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableNNAPISettings"),proto.tflite.proto.NNAPISettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.NNAPISettings.fromObject=function(e){var t=new proto.tflite.proto.NNAPISettings;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.acceleratorName),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,2,e.cacheDirectory),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,3,e.modelToken),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.executionPreference),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,5,e.noOfNnapiInstancesToCache),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.FallbackSettings,6,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.fallbackSettings,proto.tflite.proto.FallbackSettings.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.allowNnapiCpuOnAndroid10Plus),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,8,e.executionPriority),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,9,e.allowDynamicDimensions),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,10,e.allowFp16PrecisionForFp32),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,11,e.useBurstComputation),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,12,e.
vendor: 7,319 bytes, line 2
2supportLibraryHandle),t}),proto.tflite.proto.NNAPISettings.prototype.toObject=function(e){return proto.tflite.proto.NNAPISettings.internal_toObject(e,this)},proto.tflite.proto.NNAPISettings.internal_toObject=function(e,t){if(null!=t){var n={acceleratorName:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),cacheDirectory:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,2)),modelToken:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,3)),executionPreference:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4)),noOfNnapiInstancesToCache:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,5)),fallbackSettings:proto.tflite.proto.FallbackSettings.internal_toObject(e,t.getFallbackSettings()),allowNnapiCpuOnAndroid10Plus:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,7)),executionPriority:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,8)),allowDynamicDimensions:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,9)),allowFp16PrecisionForFp32:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,10)),useBurstComputation:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,11)),supportLibraryHandle:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,12))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.NNAPISettings.internalDoNotUse$tflite$proto$NNAPISettings$binaryFieldsObject=[proto.tflite.proto.NNAPISettings,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWString,3,jspb.internal.binary.RWString,4,jspb.internal.binary.RWEnum,5,jspb.internal.binary.RWInt32,6,jspb.internal.binary.RWMessage,proto.tflite.proto.FallbackSettings.internalDoNotUse$tflite$proto$FallbackSettings$binaryFieldsObject,7,jspb.internal.binary.RWBool,8,jspb.internal.binary.RWEnum,9,jspb.internal.binary.RWBool,10,jspb.internal.binary.RWBool,11,jspb.internal.binary.RWBool,12,jspb.internal.binary.RWInt64],proto.tflite.proto.$internalDoNotUseXNNPackSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseXNNPackSettingsReader.prototype.getNumThreads=function(){},proto.tflite.proto.$internalDoNotUseXNNPackSettingsReader.prototype.hasNumThreads=function(){},proto.tflite.proto.$internalDoNotUseXNNPackSettingsReader.prototype.getNumThreadsOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseXNNPackSettingsReader.prototype.getFlags=function(){},proto.tflite.proto.$internalDoNotUseXNNPackSettingsReader.prototype.hasFlags=function(){},proto.tflite.proto.$internalDoNotUseXNNPackSettingsReader.prototype.getFlagsOrUndefined=function(){},proto.tflite.proto.XNNPackSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.XNNPackSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.XNNPackSettings.prototype.getNumThreads=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,1)},proto.tflite.proto.XNNPackSettings.prototype.setNumThreads=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.XNNPackSettings.prototype.clearNumThreads=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.XNNPackSettings.prototype.hasNumThreads=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.XNNPackSettings.prototype.getNumThreadsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.XNNPackSettings.prototype.getFlags=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,2,0)},proto.tflite.proto.XNNPackSettings.prototype.setFlags=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.proto.XNNPackSettings.prototype.clearFlags=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.XNNPackSettings.prototype.hasFlags=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.proto.XNNPackSettings.prototype.getFlagsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.proto.XNNPackSettings.prototype.serializeBinary=function(){return proto.tflite.proto.XNNPackSettings.serializeBinary(this)},proto.tflite.proto.XNNPackSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.XNNPackSettings.internalDoNotUse$tflite$proto$XNNPackSettings$binaryFieldsObject)},proto.tflite.proto.XNNPackSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.XNNPackSettings.internalDoNotUse$tflite$proto$XNNPackSettings$binaryFieldsObject,t)},proto.tflite.proto.XNNPackSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.XNNPackSettings.internalDoNotUse$tflite$proto$XNNPackSettings$binaryFieldsObject)},proto.tflite.proto.XNNPackSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.XNNPackSettings,e)},proto.tflite.proto.XNNPackSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.XNNPackSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableXNNPackSettings"),proto.tflite.proto.MutableXNNPackSettings=proto.tflite.proto.XNNPackSettings,proto.tflite.proto.ReadonlyXNNPackSettings={},proto.tflite.proto.ImmutableXNNPackSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableXNNPackSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableXNNPackSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.XNNPackSettings,e,t)},proto.tflite.proto.ImmutableXNNPackSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.XNNPackSettings)},proto.tflite.proto.ImmutableXNNPackSettings.serializeBinary=function(e){return proto.tflite.proto.XNNPackSettings.serializeBinary(e)},proto.tflite.proto.ImmutableXNNPackSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.XNNPackSettings.internalDoNotUse$tflite$proto$XNNPackSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableXNNPackSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.XNNPackSettings&&module$contents$jspb$internal_isImmutableMessage(e)}
vendor: 17,241 bytes, line 2
2,"ImmutableXNNPackSettings"),proto.tflite.proto.XNNPackSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.XNNPackSettings.fromObject=function(e){var t=new proto.tflite.proto.XNNPackSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.numThreads),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.flags),t}),proto.tflite.proto.XNNPackSettings.prototype.toObject=function(e){return proto.tflite.proto.XNNPackSettings.internal_toObject(e,this)},proto.tflite.proto.XNNPackSettings.internal_toObject=function(e,t){if(null!=t){var n={numThreads:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),flags:jspb.internal.jspb_adapters.getFieldWithDefault(t,2,0)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.XNNPackSettings.internalDoNotUse$tflite$proto$XNNPackSettings$binaryFieldsObject=[proto.tflite.proto.XNNPackSettings,1,jspb.internal.binary.RWInt32,2,jspb.internal.binary.RWEnum],proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getDelegate=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasDelegate=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getDelegateOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getNnapiSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyNnapiSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasNnapiSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getGpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyGpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasGpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getHexagonSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyHexagonSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasHexagonSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getXnnpackSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyXnnpackSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasXnnpackSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getCoremlSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyCoremlSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasCoremlSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getCpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyCpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasCpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getMaxDelegatedPartitions=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasMaxDelegatedPartitions=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getMaxDelegatedPartitionsOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getEdgetpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyEdgetpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasEdgetpuSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getCoralSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyCoralSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasCoralSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getFallbackSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getReadonlyFallbackSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasFallbackSettings=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getDisableDefaultDelegates=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.hasDisableDefaultDelegates=function(){},proto.tflite.proto.$internalDoNotUseTFLiteSettingsReader.prototype.getDisableDefaultDelegatesOrUndefined=function(){},proto.tflite.proto.TFLiteSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.TFLiteSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.TFLiteSettings.prototype.getDelegate=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,1,0)},proto.tflite.proto.TFLiteSettings.prototype.setDelegate=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.TFLiteSettings.prototype.clearDelegate=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.TFLiteSettings.prototype.hasDelegate=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.TFLiteSettings.prototype.getDelegateOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.TFLiteSettings.prototype.getNnapiSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.NNAPISettings,2)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyNnapiSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.NNAPISettings,2)},proto.tflite.proto.TFLiteSettings.prototype.getMutableNnapiSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.NNAPISettings,2)},proto.tflite.proto.TFLiteSettings.prototype.setNnapiSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.NNAPISettings,2,e)},proto.tflite.proto.TFLiteSettings.prototype.clearNnapiSettings=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.TFLiteSettings.prototype.hasNnapiSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.NNAPISettings,2)},proto.tflite.proto.TFLiteSettings.prototype.getGpuSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.GPUSettings,3)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyGpuSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.GPUSettings,3)},proto.tflite.proto.TFLiteSettings.prototype.getMutableGpuSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.GPUSettings,3)},proto.tflite.proto.TFLiteSettings.prototype.setGpuSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.GPUSettings,3,e)},proto.tflite.proto.TFLiteSettings.prototype.clearGpuSettings=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.TFLiteSettings.prototype.hasGpuSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.GPUSettings,3)},proto.tflite.proto.TFLiteSettings.prototype.getHexagonSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.HexagonSettings,4)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyHexagonSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.HexagonSettings,4)},proto.tflite.proto.TFLiteSettings.prototype.getMutableHexagonSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.HexagonSettings,4)},proto.tflite.proto.TFLiteSettings.prototype.setHexagonSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.HexagonSettings,4,e)},proto.tflite.proto.TFLiteSettings.prototype.clearHexagonSettings=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.TFLiteSettings.prototype.hasHexagonSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.HexagonSettings,4)},proto.tflite.proto.TFLiteSettings.prototype.getXnnpackSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.XNNPackSettings,5)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyXnnpackSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.XNNPackSettings,5)},proto.tflite.proto.TFLiteSettings.prototype.getMutableXnnpackSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.XNNPackSettings,5)},proto.tflite.proto.TFLiteSettings.prototype.setXnnpackSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.XNNPackSettings,5,e)},proto.tflite.proto.TFLiteSettings.prototype.clearXnnpackSettings=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.tflite.proto.TFLiteSettings.prototype.hasXnnpackSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.XNNPackSettings,5)},proto.tflite.proto.TFLiteSettings.prototype.getCoremlSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.CoreMLSettings,11)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyCoremlSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.CoreMLSettings,11)},proto.tflite.proto.TFLiteSettings.prototype.getMutableCoremlSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.CoreMLSettings,11)},proto.tflite.proto.TFLiteSettings.prototype.setCoremlSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.CoreMLSettings,11,e)},proto.tflite.proto.TFLiteSettings.prototype.clearCoremlSettings=function(){return jspb.internal.jspb_adapters.clearField(this,11)},proto.tflite.proto.TFLiteSettings.prototype.hasCoremlSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.CoreMLSettings,11)},proto.tflite.proto.TFLiteSettings.prototype.getCpuSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.CPUSettings,6)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyCpuSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.CPUSettings,6)},proto.tflite.proto.TFLiteSettings.prototype.getMutableCpuSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.CPUSettings,6)},proto.tflite.proto.TFLiteSettings.prototype.setCpuSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.CPUSettings,6,e)},proto.tflite.proto.TFLiteSettings.prototype.clearCpuSettings=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.tflite.proto.TFLiteSettings.prototype.hasCpuSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.CPUSettings,6)},proto.tflite.proto.TFLiteSettings.prototype.getMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,7)},proto.tflite.proto.TFLiteSettings.prototype.setMaxDelegatedPartitions=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.tflite.proto.TFLiteSettings.prototype.clearMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.tflite.proto.TFLiteSettings.prototype.hasMaxDelegatedPartitions=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.tflite.proto.TFLiteSettings.prototype.getMaxDelegatedPartitionsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,7)},proto.tflite.proto.TFLiteSettings.prototype.getEdgetpuSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.EdgeTpuSettings,8)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyEdgetpuSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.EdgeTpuSettings,8)},proto.tflite.proto.TFLiteSettings.prototype.getMutableEdgetpuSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.EdgeTpuSettings,8)},proto.tflite.proto.TFLiteSettings.prototype.setEdgetpuSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.EdgeTpuSettings,8,e)},proto.tflite.proto.TFLiteSettings.prototype.clearEdgetpuSettings=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.tflite.proto.TFLiteSettings.prototype.hasEdgetpuSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.EdgeTpuSettings,8)},proto.tflite.proto.TFLiteSettings.prototype.getCoralSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.CoralSettings,10)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyCoralSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.CoralSettings,10)},proto.tflite.proto.TFLiteSettings.prototype.getMutableCoralSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.CoralSettings,10)},proto.tflite.proto.TFLiteSettings.prototype.setCoralSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.CoralSettings,10,e)},proto.tflite.proto.TFLiteSettings.prototype.clearCoralSettings=function(){return jspb.internal.jspb_adapters.clearField(this,10)},proto.tflite.proto.TFLiteSettings.prototype.hasCoralSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.CoralSettings,10)},proto.tflite.proto.TFLiteSettings.prototype.getFallbackSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.FallbackSettings,9)},proto.tflite.proto.TFLiteSettings.prototype.getReadonlyFallbackSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.FallbackSettings,9)},proto.tflite.proto.TFLiteSettings.prototype.getMutableFallbackSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.FallbackSettings,9)},proto.tflite.proto.TFLiteSettings.prototype.setFallbackSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.FallbackSettings,9,e)},proto.tflite.proto.TFLiteSettings.prototype.clearFallbackSettings=function(){return jspb.internal.jspb_adapters.clearField(this,9)},proto.tflite.proto.TFLiteSettings.prototype.hasFallbackSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.FallbackSettings,9)},proto.tflite.proto.TFLiteSettings.prototype.getDisableDefaultDelegates=function(){return jspb.internal.jspb_adapters.getBooleanFieldWithDefault(this,12)},proto.tflite.proto.TFLiteSettings.prototype.setDisableDefaultDelegates=function(e){return jspb.internal.jspb_adapters.setField(this,12,e)},proto.tflite.proto.TFLiteSettings.prototype.clearDisableDefaultDelegates=function(){return jspb.internal.jspb_adapters.clearField(this,12)},proto.tflite.proto.TFLiteSettings.prototype.hasDisableDefaultDelegates=function(){return jspb.internal.jspb_adapters.hasField(this,12)},proto.tflite.proto.TFLiteSettings.prototype.getDisableDefaultDelegatesOrUndefined=function(){return jspb.internal.jspb_adapters.getBooleanFieldOrUndefined(this,12)},proto.tflite.proto.TFLiteSettings.prototype.serializeBinary=function(){return proto.tflite.proto.TFLiteSettings.serializeBinary(this)},proto.tflite.proto.TFLiteSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.TFLiteSettings.internalDoNotUse$tflite$proto$TFLiteSettings$binaryFieldsObject)},proto.tflite.proto.TFLiteSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.TFLiteSettings.internalDoNotUse$tflite$proto$TFLiteSettings$binaryFieldsObject,t)},proto.tflite.proto.TFLiteSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.TFLiteSettings.internalDoNotUse$tflite$proto$TFLiteSettings$binaryFieldsObject)},proto.tflite.proto.TFLiteSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.TFLiteSettings,e)},proto.tflite.proto.TFLiteSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(
vendor: 198,703 bytes, line 2
2function(e){return e instanceof proto.tflite.proto.TFLiteSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableTFLiteSettings"),proto.tflite.proto.MutableTFLiteSettings=proto.tflite.proto.TFLiteSettings,proto.tflite.proto.ReadonlyTFLiteSettings={},proto.tflite.proto.ImmutableTFLiteSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableTFLiteSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableTFLiteSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.TFLiteSettings,e,t)},proto.tflite.proto.ImmutableTFLiteSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.TFLiteSettings)},proto.tflite.proto.ImmutableTFLiteSettings.serializeBinary=function(e){return proto.tflite.proto.TFLiteSettings.serializeBinary(e)},proto.tflite.proto.ImmutableTFLiteSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.TFLiteSettings.internalDoNotUse$tflite$proto$TFLiteSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableTFLiteSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.TFLiteSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableTFLiteSettings"),proto.tflite.proto.TFLiteSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.TFLiteSettings.fromObject=function(e){var t=new proto.tflite.proto.TFLiteSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.delegate),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.NNAPISettings,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.nnapiSettings,proto.tflite.proto.NNAPISettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.GPUSettings,3,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.gpuSettings,proto.tflite.proto.GPUSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.HexagonSettings,4,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.hexagonSettings,proto.tflite.proto.HexagonSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.XNNPackSettings,5,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.xnnpackSettings,proto.tflite.proto.XNNPackSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.CoreMLSettings,11,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.coremlSettings,proto.tflite.proto.CoreMLSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.CPUSettings,6,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.cpuSettings,proto.tflite.proto.CPUSettings.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.maxDelegatedPartitions),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.EdgeTpuSettings,8,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.edgetpuSettings,proto.tflite.proto.EdgeTpuSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.CoralSettings,10,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.coralSettings,proto.tflite.proto.CoralSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.FallbackSettings,9,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.fallbackSettings,proto.tflite.proto.FallbackSettings.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,12,e.disableDefaultDelegates),t}),proto.tflite.proto.TFLiteSettings.prototype.toObject=function(e){return proto.tflite.proto.TFLiteSettings.internal_toObject(e,this)},proto.tflite.proto.TFLiteSettings.internal_toObject=function(e,t){if(null!=t){var n={delegate:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),nnapiSettings:proto.tflite.proto.NNAPISettings.internal_toObject(e,t.getNnapiSettings()),gpuSettings:proto.tflite.proto.GPUSettings.internal_toObject(e,t.getGpuSettings()),hexagonSettings:proto.tflite.proto.HexagonSettings.internal_toObject(e,t.getHexagonSettings()),xnnpackSettings:proto.tflite.proto.XNNPackSettings.internal_toObject(e,t.getXnnpackSettings()),coremlSettings:proto.tflite.proto.CoreMLSettings.internal_toObject(e,t.getCoremlSettings()),cpuSettings:proto.tflite.proto.CPUSettings.internal_toObject(e,t.getCpuSettings()),maxDelegatedPartitions:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,7)),edgetpuSettings:proto.tflite.proto.EdgeTpuSettings.internal_toObject(e,t.getEdgetpuSettings()),coralSettings:proto.tflite.proto.CoralSettings.internal_toObject(e,t.getCoralSettings()),fallbackSettings:proto.tflite.proto.FallbackSettings.internal_toObject(e,t.getFallbackSettings()),disableDefaultDelegates:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getBooleanFieldNullable(t,12))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.TFLiteSettings.internalDoNotUse$tflite$proto$TFLiteSettings$binaryFieldsObject=[proto.tflite.proto.TFLiteSettings,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWMessage,proto.tflite.proto.NNAPISettings.internalDoNotUse$tflite$proto$NNAPISettings$binaryFieldsObject,3,jspb.internal.binary.RWMessage,proto.tflite.proto.GPUSettings.internalDoNotUse$tflite$proto$GPUSettings$binaryFieldsObject,4,jspb.internal.binary.RWMessage,proto.tflite.proto.HexagonSettings.internalDoNotUse$tflite$proto$HexagonSettings$binaryFieldsObject,5,jspb.internal.binary.RWMessage,proto.tflite.proto.XNNPackSettings.internalDoNotUse$tflite$proto$XNNPackSettings$binaryFieldsObject,11,jspb.internal.binary.RWMessage,proto.tflite.proto.CoreMLSettings.internalDoNotUse$tflite$proto$CoreMLSettings$binaryFieldsObject,6,jspb.internal.binary.RWMessage,proto.tflite.proto.CPUSettings.internalDoNotUse$tflite$proto$CPUSettings$binaryFieldsObject,7,jspb.internal.binary.RWInt32,8,jspb.internal.binary.RWMessage,proto.tflite.proto.EdgeTpuSettings.internalDoNotUse$tflite$proto$EdgeTpuSettings$binaryFieldsObject,10,jspb.internal.binary.RWMessage,proto.tflite.proto.CoralSettings.internalDoNotUse$tflite$proto$CoralSettings$binaryFieldsObject,9,jspb.internal.binary.RWMessage,proto.tflite.proto.FallbackSettings.internalDoNotUse$tflite$proto$FallbackSettings$binaryFieldsObject,12,jspb.internal.binary.RWBool],proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getSettingsToTestList=function(){},proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getReadonlySettingsToTestList=function(){},proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getModelFile=function(){},proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getReadonlyModelFile=function(){},proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader.prototype.hasModelFile=function(){},proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getStoragePaths=function(){},proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader.prototype.getReadonlyStoragePaths=function(){},proto.tflite.proto.$internalDoNotUseMinibenchmarkSettingsReader.prototype.hasStoragePaths=function(){},proto.tflite.proto.MinibenchmarkSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.proto.MinibenchmarkSettings.repeatedFields_)},$jscomp.inherits(proto.tflite.proto.MinibenchmarkSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.MinibenchmarkSettings.prototype.getSettingsToTestList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.proto.TFLiteSettings,1)},proto.tflite.proto.MinibenchmarkSettings.prototype.getReadonlySettingsToTestList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.proto.TFLiteSettings,1)},proto.tflite.proto.MinibenchmarkSettings.prototype.setSettingsToTestList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.proto.TFLiteSettings,1,e)},proto.tflite.proto.MinibenchmarkSettings.prototype.addSettingsToTest=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,1,proto.tflite.proto.TFLiteSettings,e,t)},proto.tflite.proto.MinibenchmarkSettings.prototype.addAndReturnSettingsToTest=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,1,proto.tflite.proto.TFLiteSettings,e,t)},proto.tflite.proto.MinibenchmarkSettings.prototype.clearSettingsToTestList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,1)},proto.tflite.proto.MinibenchmarkSettings.prototype.getModelFile=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.ModelFile,2)},proto.tflite.proto.MinibenchmarkSettings.prototype.getReadonlyModelFile=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.ModelFile,2)},proto.tflite.proto.MinibenchmarkSettings.prototype.getMutableModelFile=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.ModelFile,2)},proto.tflite.proto.MinibenchmarkSettings.prototype.setModelFile=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.ModelFile,2,e)},proto.tflite.proto.MinibenchmarkSettings.prototype.clearModelFile=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.MinibenchmarkSettings.prototype.hasModelFile=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.ModelFile,2)},proto.tflite.proto.MinibenchmarkSettings.prototype.getStoragePaths=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.BenchmarkStoragePaths,3)},proto.tflite.proto.MinibenchmarkSettings.prototype.getReadonlyStoragePaths=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.BenchmarkStoragePaths,3)},proto.tflite.proto.MinibenchmarkSettings.prototype.getMutableStoragePaths=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.BenchmarkStoragePaths,3)},proto.tflite.proto.MinibenchmarkSettings.prototype.setStoragePaths=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.BenchmarkStoragePaths,3,e)},proto.tflite.proto.MinibenchmarkSettings.prototype.clearStoragePaths=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.MinibenchmarkSettings.prototype.hasStoragePaths=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.BenchmarkStoragePaths,3)},proto.tflite.proto.MinibenchmarkSettings.prototype.serializeBinary=function(){return proto.tflite.proto.MinibenchmarkSettings.serializeBinary(this)},proto.tflite.proto.MinibenchmarkSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.MinibenchmarkSettings.internalDoNotUse$tflite$proto$MinibenchmarkSettings$binaryFieldsObject)},proto.tflite.proto.MinibenchmarkSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.MinibenchmarkSettings.internalDoNotUse$tflite$proto$MinibenchmarkSettings$binaryFieldsObject,t)},proto.tflite.proto.MinibenchmarkSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.MinibenchmarkSettings.internalDoNotUse$tflite$proto$MinibenchmarkSettings$binaryFieldsObject)},proto.tflite.proto.MinibenchmarkSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.MinibenchmarkSettings,e)},proto.tflite.proto.MinibenchmarkSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.MinibenchmarkSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableMinibenchmarkSettings"),proto.tflite.proto.MutableMinibenchmarkSettings=proto.tflite.proto.MinibenchmarkSettings,proto.tflite.proto.ReadonlyMinibenchmarkSettings={},proto.tflite.proto.ImmutableMinibenchmarkSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableMinibenchmarkSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableMinibenchmarkSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.MinibenchmarkSettings,e,t)},proto.tflite.proto.ImmutableMinibenchmarkSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.MinibenchmarkSettings)},proto.tflite.proto.ImmutableMinibenchmarkSettings.serializeBinary=function(e){return proto.tflite.proto.MinibenchmarkSettings.serializeBinary(e)},proto.tflite.proto.ImmutableMinibenchmarkSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.MinibenchmarkSettings.internalDoNotUse$tflite$proto$MinibenchmarkSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableMinibenchmarkSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.MinibenchmarkSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableMinibenchmarkSettings"),proto.tflite.proto.MinibenchmarkSettings.repeatedFields_=[1],proto.tflite.proto.MinibenchmarkSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.MinibenchmarkSettings.fromObject=function(e){var t=new proto.tflite.proto.MinibenchmarkSettings;return jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.proto.TFLiteSettings,1,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.settingsToTestList,proto.tflite.proto.TFLiteSettings.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.ModelFile,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.modelFile,proto.tflite.proto.ModelFile.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.BenchmarkStoragePaths,3,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.storagePaths,proto.tflite.proto.BenchmarkStoragePaths.fromObject)),t}),proto.tflite.proto.MinibenchmarkSettings.prototype.toObject=function(e){return proto.tflite.proto.MinibenchmarkSettings.internal_toObject(e,this)},proto.tflite.proto.MinibenchmarkSettings.internal_toObject=function(e,t){if(null!=t){var n={settingsToTestList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getSettingsToTestList(),proto.tflite.proto.TFLiteSettings.internal_toObject,e),modelFile:proto.tflite.proto.ModelFile.internal_toObject(e,t.getModelFile()),storagePaths:proto.tflite.proto.BenchmarkStoragePaths.internal_toObject(e,t.getStoragePaths())};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.MinibenchmarkSettings.internalDoNotUse$tflite$proto$MinibenchmarkSettings$binaryFieldsObject=[proto.tflite.proto.MinibenchmarkSettings,1,jspb.internal.binary.RWRepeatedMessage,proto.tflite.proto.TFLiteSettings.internalDoNotUse$tflite$proto$TFLiteSettings$binaryFieldsObject,2,jspb.internal.binary.RWMessage,proto.tflite.proto.ModelFile.internalDoNotUse$tflite$proto$ModelFile$binaryFieldsObject,3,jspb.internal.binary.RWMessage,proto.tflite.proto.BenchmarkStoragePaths.internalDoNotUse$tflite$proto$BenchmarkStoragePaths$binaryFieldsObject],proto.tflite.proto.$internalDoNotUseComputeSettingsReader=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getPreference=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.hasPreference=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getPreferenceOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getTfliteSettings=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getReadonlyTfliteSettings=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.hasTfliteSettings=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getModelNamespaceForStatistics=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.hasModelNamespaceForStatistics=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getModelNamespaceForStatisticsOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getModelIdentifierForStatistics=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.hasModelIdentifierForStatistics=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getModelIdentifierForStatisticsOrUndefined=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getSettingsToTestLocally=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.getReadonlySettingsToTestLocally=function(){},proto.tflite.proto.$internalDoNotUseComputeSettingsReader.prototype.hasSettingsToTestLocally=function(){},proto.tflite.proto.ComputeSettings=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.proto.ComputeSettings,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.proto.ComputeSettings.prototype.getPreference=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,1,0)},proto.tflite.proto.ComputeSettings.prototype.setPreference=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.proto.ComputeSettings.prototype.clearPreference=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.proto.ComputeSettings.prototype.hasPreference=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.proto.ComputeSettings.prototype.getPreferenceOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.proto.ComputeSettings.prototype.getTfliteSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.TFLiteSettings,2)},proto.tflite.proto.ComputeSettings.prototype.getReadonlyTfliteSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.TFLiteSettings,2)},proto.tflite.proto.ComputeSettings.prototype.getMutableTfliteSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.TFLiteSettings,2)},proto.tflite.proto.ComputeSettings.prototype.setTfliteSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.TFLiteSettings,2,e)},proto.tflite.proto.ComputeSettings.prototype.clearTfliteSettings=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.proto.ComputeSettings.prototype.hasTfliteSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.TFLiteSettings,2)},proto.tflite.proto.ComputeSettings.prototype.getModelNamespaceForStatistics=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,3)},proto.tflite.proto.ComputeSettings.prototype.setModelNamespaceForStatistics=function(e){return jspb.internal.jspb_adapters.setStringField(this,3,e)},proto.tflite.proto.ComputeSettings.prototype.clearModelNamespaceForStatistics=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.proto.ComputeSettings.prototype.hasModelNamespaceForStatistics=function(){return jspb.internal.jspb_adapters.hasStringField(this,3)},proto.tflite.proto.ComputeSettings.prototype.getModelNamespaceForStatisticsOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,3)},proto.tflite.proto.ComputeSettings.prototype.getModelIdentifierForStatistics=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,4)},proto.tflite.proto.ComputeSettings.prototype.setModelIdentifierForStatistics=function(e){return jspb.internal.jspb_adapters.setStringField(this,4,e)},proto.tflite.proto.ComputeSettings.prototype.clearModelIdentifierForStatistics=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.proto.ComputeSettings.prototype.hasModelIdentifierForStatistics=function(){return jspb.internal.jspb_adapters.hasStringField(this,4)},proto.tflite.proto.ComputeSettings.prototype.getModelIdentifierForStatisticsOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,4)},proto.tflite.proto.ComputeSettings.prototype.getSettingsToTestLocally=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.MinibenchmarkSettings,5)},proto.tflite.proto.ComputeSettings.prototype.getReadonlySettingsToTestLocally=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.MinibenchmarkSettings,5)},proto.tflite.proto.ComputeSettings.prototype.getMutableSettingsToTestLocally=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.MinibenchmarkSettings,5)},proto.tflite.proto.ComputeSettings.prototype.setSettingsToTestLocally=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.MinibenchmarkSettings,5,e)},proto.tflite.proto.ComputeSettings.prototype.clearSettingsToTestLocally=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.tflite.proto.ComputeSettings.prototype.hasSettingsToTestLocally=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.MinibenchmarkSettings,5)},proto.tflite.proto.ComputeSettings.prototype.serializeBinary=function(){return proto.tflite.proto.ComputeSettings.serializeBinary(this)},proto.tflite.proto.ComputeSettings.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.proto.ComputeSettings.internalDoNotUse$tflite$proto$ComputeSettings$binaryFieldsObject)},proto.tflite.proto.ComputeSettings.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.proto.ComputeSettings.internalDoNotUse$tflite$proto$ComputeSettings$binaryFieldsObject,t)},proto.tflite.proto.ComputeSettings.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.proto.ComputeSettings.internalDoNotUse$tflite$proto$ComputeSettings$binaryFieldsObject)},proto.tflite.proto.ComputeSettings.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.proto.ComputeSettings,e)},proto.tflite.proto.ComputeSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.ComputeSettings&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableComputeSettings"),proto.tflite.proto.MutableComputeSettings=proto.tflite.proto.ComputeSettings,proto.tflite.proto.ReadonlyComputeSettings={},proto.tflite.proto.ImmutableComputeSettings=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.proto.ImmutableComputeSettings,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.proto.ImmutableComputeSettings.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.proto.ComputeSettings,e,t)},proto.tflite.proto.ImmutableComputeSettings.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.proto.ComputeSettings)},proto.tflite.proto.ImmutableComputeSettings.serializeBinary=function(e){return proto.tflite.proto.ComputeSettings.serializeBinary(e)},proto.tflite.proto.ImmutableComputeSettings.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.proto.ComputeSettings.internalDoNotUse$tflite$proto$ComputeSettings$binaryFieldsObject,t,n)},proto.tflite.proto.ImmutableComputeSettings.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.proto.ComputeSettings&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableComputeSettings"),proto.tflite.proto.ComputeSettings.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.proto.ComputeSettings.fromObject=function(e){var t=new proto.tflite.proto.ComputeSettings;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.preference),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.TFLiteSettings,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.tfliteSettings,proto.tflite.proto.TFLiteSettings.fromObject)),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,3,e.modelNamespaceForStatistics),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,4,e.modelIdentifierForStatistics),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.MinibenchmarkSettings,5,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.settingsToTestLocally,proto.tflite.proto.MinibenchmarkSettings.fromObject)),t}),proto.tflite.proto.ComputeSettings.prototype.toObject=function(e){return proto.tflite.proto.ComputeSettings.internal_toObject(e,this)},proto.tflite.proto.ComputeSettings.internal_toObject=function(e,t){if(null!=t){var n={preference:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),tfliteSettings:proto.tflite.proto.TFLiteSettings.internal_toObject(e,t.getTfliteSettings()),modelNamespaceForStatistics:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,3)),modelIdentifierForStatistics:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,4)),settingsToTestLocally:proto.tflite.proto.MinibenchmarkSettings.internal_toObject(e,t.getSettingsToTestLocally())};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.proto.ComputeSettings.internalDoNotUse$tflite$proto$ComputeSettings$binaryFieldsObject=[proto.tflite.proto.ComputeSettings,1,jspb.internal.binary.RWEnum,2,jspb.internal.binary.RWMessage,proto.tflite.proto.TFLiteSettings.internalDoNotUse$tflite$proto$TFLiteSettings$binaryFieldsObject,3,jspb.internal.binary.RWString,4,jspb.internal.binary.RWString,5,jspb.internal.binary.RWMessage,proto.tflite.proto.MinibenchmarkSettings.internalDoNotUse$tflite$proto$MinibenchmarkSettings$binaryFieldsObject],proto.tflite.task={},proto.tflite.task.core={},proto.tflite.task.core.$internalDoNotUseBaseOptionsReader=function(){},proto.tflite.task.core.$internalDoNotUseBaseOptionsReader.prototype.getModelFile=function(){},proto.tflite.task.core.$internalDoNotUseBaseOptionsReader.prototype.getReadonlyModelFile=function(){},proto.tflite.task.core.$internalDoNotUseBaseOptionsReader.prototype.hasModelFile=function(){},proto.tflite.task.core.$internalDoNotUseBaseOptionsReader.prototype.getComputeSettings=function(){},proto.tflite.task.core.$internalDoNotUseBaseOptionsReader.prototype.getReadonlyComputeSettings=function(){},proto.tflite.task.core.$internalDoNotUseBaseOptionsReader.prototype.hasComputeSettings=function(){},proto.tflite.task.core.BaseOptions=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.task.core.BaseOptions,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.core.BaseOptions.prototype.getModelFile=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.visionkit.ExternalFile,1)},proto.tflite.task.core.BaseOptions.prototype.getReadonlyModelFile=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.visionkit.ExternalFile,1)},proto.tflite.task.core.BaseOptions.prototype.getMutableModelFile=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.visionkit.ExternalFile,1)},proto.tflite.task.core.BaseOptions.prototype.setModelFile=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.visionkit.ExternalFile,1,e)},proto.tflite.task.core.BaseOptions.prototype.clearModelFile=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.core.BaseOptions.prototype.hasModelFile=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.visionkit.ExternalFile,1)},proto.tflite.task.core.BaseOptions.prototype.getComputeSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.acceleration.Acceleration,2)},proto.tflite.task.core.BaseOptions.prototype.getReadonlyComputeSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.acceleration.Acceleration,2)},proto.tflite.task.core.BaseOptions.prototype.getMutableComputeSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.acceleration.Acceleration,2)},proto.tflite.task.core.BaseOptions.prototype.setComputeSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.acceleration.Acceleration,2,e)},proto.tflite.task.core.BaseOptions.prototype.clearComputeSettings=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.core.BaseOptions.prototype.hasComputeSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.acceleration.Acceleration,2)},proto.tflite.task.core.BaseOptions.prototype.serializeBinary=function(){return proto.tflite.task.core.BaseOptions.serializeBinary(this)},proto.tflite.task.core.BaseOptions.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject)},proto.tflite.task.core.BaseOptions.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject,t)},proto.tflite.task.core.BaseOptions.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject)},proto.tflite.task.core.BaseOptions.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.core.BaseOptions,e)},proto.tflite.task.core.BaseOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.core.BaseOptions&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableBaseOptions"),proto.tflite.task.core.MutableBaseOptions=proto.tflite.task.core.BaseOptions,proto.tflite.task.core.ReadonlyBaseOptions={},proto.tflite.task.core.ImmutableBaseOptions=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.core.ImmutableBaseOptions,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.core.ImmutableBaseOptions.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.core.BaseOptions,e,t)},proto.tflite.task.core.ImmutableBaseOptions.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.core.BaseOptions)},proto.tflite.task.core.ImmutableBaseOptions.serializeBinary=function(e){return proto.tflite.task.core.BaseOptions.serializeBinary(e)},proto.tflite.task.core.ImmutableBaseOptions.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject,t,n)},proto.tflite.task.core.ImmutableBaseOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.core.BaseOptions&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableBaseOptions"),proto.tflite.task.core.BaseOptions.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.core.BaseOptions.fromObject=function(e){var t=new proto.tflite.task.core.BaseOptions;return jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.visionkit.ExternalFile,1,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.modelFile,proto.visionkit.ExternalFile.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.acceleration.Acceleration,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.computeSettings,proto.acceleration.Acceleration.fromObject)),t}),proto.tflite.task.core.BaseOptions.prototype.toObject=function(e){return proto.tflite.task.core.BaseOptions.internal_toObject(e,this)},proto.tflite.task.core.BaseOptions.internal_toObject=function(e,t){if(null!=t){var n={modelFile:proto.visionkit.ExternalFile.internal_toObject(e,t.getModelFile()),computeSettings:proto.acceleration.Acceleration.internal_toObject(e,t.getComputeSettings())};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject=[proto.tflite.task.core.BaseOptions,1,jspb.internal.binary.RWMessage,proto.visionkit.ExternalFile.internalDoNotUse$visionkit$ExternalFile$binaryFieldsObject,2,jspb.internal.binary.RWMessage,proto.acceleration.Acceleration.internalDoNotUse$acceleration$Acceleration$binaryFieldsObject],proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.getFd=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.hasFd=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.getFdOrUndefined=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.getLength=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.hasLength=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.getLengthOrUndefined=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.getOffset=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.hasOffset=function(){},proto.tflite.task.core.$internalDoNotUseFileDescriptorMetaReader.prototype.getOffsetOrUndefined=function(){},proto.tflite.task.core.FileDescriptorMeta=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.task.core.FileDescriptorMeta,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.core.FileDescriptorMeta.prototype.getFd=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,1)},proto.tflite.task.core.FileDescriptorMeta.prototype.setFd=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.task.core.FileDescriptorMeta.prototype.clearFd=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.core.FileDescriptorMeta.prototype.hasFd=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.task.core.FileDescriptorMeta.prototype.getFdOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.task.core.FileDescriptorMeta.prototype.getLength=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,2)},proto.tflite.task.core.FileDescriptorMeta.prototype.setLength=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.task.core.FileDescriptorMeta.prototype.clearLength=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.core.FileDescriptorMeta.prototype.hasLength=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.task.core.FileDescriptorMeta.prototype.getLengthOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.task.core.FileDescriptorMeta.prototype.getOffset=function(){return jspb.internal.jspb_adapters.getInt64FieldWithDefault(this,3)},proto.tflite.task.core.FileDescriptorMeta.prototype.setOffset=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.task.core.FileDescriptorMeta.prototype.clearOffset=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.task.core.FileDescriptorMeta.prototype.hasOffset=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.task.core.FileDescriptorMeta.prototype.getOffsetOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.task.core.FileDescriptorMeta.prototype.serializeBinary=function(){return proto.tflite.task.core.FileDescriptorMeta.serializeBinary(this)},proto.tflite.task.core.FileDescriptorMeta.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.core.FileDescriptorMeta.internalDoNotUse$tflite$task$core$FileDescriptorMeta$binaryFieldsObject)},proto.tflite.task.core.FileDescriptorMeta.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.core.FileDescriptorMeta.internalDoNotUse$tflite$task$core$FileDescriptorMeta$binaryFieldsObject,t)},proto.tflite.task.core.FileDescriptorMeta.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.core.FileDescriptorMeta.internalDoNotUse$tflite$task$core$FileDescriptorMeta$binaryFieldsObject)},proto.tflite.task.core.FileDescriptorMeta.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.core.FileDescriptorMeta,e)},proto.tflite.task.core.FileDescriptorMeta.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.core.FileDescriptorMeta&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableFileDescriptorMeta"),proto.tflite.task.core.MutableFileDescriptorMeta=proto.tflite.task.core.FileDescriptorMeta,proto.tflite.task.core.ReadonlyFileDescriptorMeta={},proto.tflite.task.core.ImmutableFileDescriptorMeta=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.core.ImmutableFileDescriptorMeta,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.core.ImmutableFileDescriptorMeta.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.core.FileDescriptorMeta,e,t)},proto.tflite.task.core.ImmutableFileDescriptorMeta.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.core.FileDescriptorMeta)},proto.tflite.task.core.ImmutableFileDescriptorMeta.serializeBinary=function(e){return proto.tflite.task.core.FileDescriptorMeta.serializeBinary(e)},proto.tflite.task.core.ImmutableFileDescriptorMeta.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.core.FileDescriptorMeta.internalDoNotUse$tflite$task$core$FileDescriptorMeta$binaryFieldsObject,t,n)},proto.tflite.task.core.ImmutableFileDescriptorMeta.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.core.FileDescriptorMeta&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableFileDescriptorMeta"),proto.tflite.task.core.FileDescriptorMeta.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.core.FileDescriptorMeta.fromObject=function(e){var t=new proto.tflite.task.core.FileDescriptorMeta;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.fd),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.length),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.offset),t}),proto.tflite.task.core.FileDescriptorMeta.prototype.toObject=function(e){return proto.tflite.task.core.FileDescriptorMeta.internal_toObject(e,this)},proto.tflite.task.core.FileDescriptorMeta.internal_toObject=function(e,t){if(null!=t){var n={fd:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),length:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),offset:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.core.FileDescriptorMeta.internalDoNotUse$tflite$task$core$FileDescriptorMeta$binaryFieldsObject=[proto.tflite.task.core.FileDescriptorMeta,1,jspb.internal.binary.RWInt32,2,jspb.internal.binary.RWInt64,3,jspb.internal.binary.RWInt64],proto.tflite.task.core.$internalDoNotUseExternalFileReader=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.getFileName=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.hasFileName=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.getFileNameOrUndefined=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.getFileContent=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.getFileContent_asB64=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.getFileContent_asBase64OrUint8Array=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.hasFileContent=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.getFileContentOrUndefined=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.getFileDescriptorMeta=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.getReadonlyFileDescriptorMeta=function(){},proto.tflite.task.core.$internalDoNotUseExternalFileReader.prototype.hasFileDescriptorMeta=function(){},proto.tflite.task.core.ExternalFile=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.task.core.ExternalFile,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.core.ExternalFile.prototype.getFileName=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,1)},proto.tflite.task.core.ExternalFile.prototype.setFileName=function(e){return jspb.internal.jspb_adapters.setStringField(this,1,e)},proto.tflite.task.core.ExternalFile.prototype.clearFileName=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.core.ExternalFile.prototype.hasFileName=function(){return jspb.internal.jspb_adapters.hasStringField(this,1)},proto.tflite.task.core.ExternalFile.prototype.getFileNameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,1)},proto.tflite.task.core.ExternalFile.prototype.getFileContent=function(){return jspb.internal.jspb_adapters.getBytesFieldWithDefault(this,2)},proto.tflite.task.core.ExternalFile.prototype.getFileContent_asB64=function(){return module$contents$jspb$internal$public_for_gencode_byteStringAsB64(jspb.internal.jspb_adapters.getBytesFieldWithDefault(this,2))},proto.tflite.task.core.ExternalFile.prototype.getFileContent_asBase64OrUint8Array=function(){return module$contents$jspb$internal$public_for_gencode_byteStringAsBase64OrUint8Array(jspb.internal.jspb_adapters.getBytesFieldWithDefault(this,2))},proto.tflite.task.core.ExternalFile.prototype.getFileContent_asU8=function(){return module$contents$jspb$internal$public_for_gencode_assertMutable(this),module$contents$jspb$internal$public_for_gencode_byteStringAsU8(jspb.internal.jspb_adapters.getBytesFieldWithDefault(this,2))},proto.tflite.task.core.ExternalFile.prototype.setFileContent=function(e){return jspb.internal.jspb_adapters.setBytesField(this,2,e)},proto.tflite.task.core.ExternalFile.prototype.clearFileContent=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.core.ExternalFile.prototype.hasFileContent=function(){return jspb.internal.jspb_adapters.hasBytesField(this,2)},proto.tflite.task.core.ExternalFile.prototype.getFileContentOrUndefined=function(){return jspb.internal.jspb_adapters.getBytesFieldOrUndefined(this,2)},proto.tflite.task.core.ExternalFile.prototype.getFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.core.FileDescriptorMeta,4)},proto.tflite.task.core.ExternalFile.prototype.getReadonlyFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.core.FileDescriptorMeta,4)},proto.tflite.task.core.ExternalFile.prototype.getMutableFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.core.FileDescriptorMeta,4)},proto.tflite.task.core.ExternalFile.prototype.setFileDescriptorMeta=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.core.FileDescriptorMeta,4,e)},proto.tflite.task.core.ExternalFile.prototype.clearFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.task.core.ExternalFile.prototype.hasFileDescriptorMeta=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.core.FileDescriptorMeta,4)},proto.tflite.task.core.ExternalFile.prototype.serializeBinary=function(){return proto.tflite.task.core.ExternalFile.serializeBinary(this)},proto.tflite.task.core.ExternalFile.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.core.ExternalFile.internalDoNotUse$tflite$task$core$ExternalFile$binaryFieldsObject)},proto.tflite.task.core.ExternalFile.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.core.ExternalFile.internalDoNotUse$tflite$task$core$ExternalFile$binaryFieldsObject,t)},proto.tflite.task.core.ExternalFile.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.core.ExternalFile.internalDoNotUse$tflite$task$core$ExternalFile$binaryFieldsObject)},proto.tflite.task.core.ExternalFile.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.core.ExternalFile,e)},proto.tflite.task.core.ExternalFile.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.core.ExternalFile&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableExternalFile"),proto.tflite.task.core.MutableExternalFile=proto.tflite.task.core.ExternalFile,proto.tflite.task.core.ReadonlyExternalFile={},proto.tflite.task.core.ImmutableExternalFile=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.core.ImmutableExternalFile,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.core.ImmutableExternalFile.prototype.getFileContent_asB64=function(){},proto.tflite.task.core.ImmutableExternalFile.prototype.getFileContent_asBase64OrUint8Array=function(){},proto.tflite.task.core.ImmutableExternalFile.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.core.ExternalFile,e,t)},proto.tflite.task.core.ImmutableExternalFile.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.core.ExternalFile)},proto.tflite.task.core.ImmutableExternalFile.serializeBinary=function(e){return proto.tflite.task.core.ExternalFile.serializeBinary(e)},proto.tflite.task.core.ImmutableExternalFile.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.core.ExternalFile.internalDoNotUse$tflite$task$core$ExternalFile$binaryFieldsObject,t,n)},proto.tflite.task.core.ImmutableExternalFile.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.core.ExternalFile&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableExternalFile"),proto.tflite.task.core.ExternalFile.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.core.ExternalFile.fromObject=function(e){var t=new proto.tflite.task.core.ExternalFile;return jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,1,e.fileName),jspb.internal.jspb_adapters.setBytesFieldIfNotNullish(t,2,e.fileContent),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.core.FileDescriptorMeta,4,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.fileDescriptorMeta,proto.tflite.task.core.FileDescriptorMeta.fromObject)),t}),proto.tflite.task.core.ExternalFile.prototype.toObject=function(e){return proto.tflite.task.core.ExternalFile.internal_toObject(e,this)},proto.tflite.task.core.ExternalFile.internal_toObject=function(e,t){if(null!=t){var n={fileName:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,1)),fileContent:module$contents$jspb$internal$public_for_gencode_toObjectBytes(t.getFileContent()),fileDescriptorMeta:proto.tflite.task.core.FileDescriptorMeta.internal_toObject(e,t.getFileDescriptorMeta())};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.core.ExternalFile.internalDoNotUse$tflite$task$core$ExternalFile$binaryFieldsObject=[proto.tflite.task.core.ExternalFile,1,jspb.internal.binary.RWString,2,jspb.internal.binary.RWBytes,4,jspb.internal.binary.RWMessage,proto.tflite.task.core.FileDescriptorMeta.internalDoNotUse$tflite$task$core$FileDescriptorMeta$binaryFieldsObject],proto.tflite.task.text={},proto.tflite.task.text.$internalDoNotUseBertNLClassifierOptionsReader=function(){},proto.tflite.task.text.$internalDoNotUseBertNLClassifierOptionsReader.prototype.getBaseOptions=function(){},proto.tflite.task.text.$internalDoNotUseBertNLClassifierOptionsReader.prototype.getReadonlyBaseOptions=function(){},proto.tflite.task.text.$internalDoNotUseBertNLClassifierOptionsReader.prototype.hasBaseOptions=function(){},proto.tflite.task.text.$internalDoNotUseBertNLClassifierOptionsReader.prototype.getMaxSeqLen=function(){},proto.tflite.task.text.$internalDoNotUseBertNLClassifierOptionsReader.prototype.hasMaxSeqLen=function(){},proto.tflite.task.text.$internalDoNotUseBertNLClassifierOptionsReader.prototype.getMaxSeqLenOrUndefined=function(){},proto.tflite.task.text.BertNLClassifierOptions=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.task.text.BertNLClassifierOptions,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.text.BertNLClassifierOptions.prototype.getBaseOptions=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.core.BaseOptions,1)},proto.tflite.task.text.BertNLClassifierOptions.prototype.getReadonlyBaseOptions=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.core.BaseOptions,1)},proto.tflite.task.text.BertNLClassifierOptions.prototype.getMutableBaseOptions=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.core.BaseOptions,1)},proto.tflite.task.text.BertNLClassifierOptions.prototype.setBaseOptions=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.core.BaseOptions,1,e)},proto.tflite.task.text.BertNLClassifierOptions.prototype.clearBaseOptions=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.text.BertNLClassifierOptions.prototype.hasBaseOptions=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.core.BaseOptions,1)},proto.tflite.task.text.BertNLClassifierOptions.prototype.getMaxSeqLen=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2,128)},proto.tflite.task.text.BertNLClassifierOptions.prototype.setMaxSeqLen=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.task.text.BertNLClassifierOptions.prototype.clearMaxSeqLen=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.text.BertNLClassifierOptions.prototype.hasMaxSeqLen=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.task.text.BertNLClassifierOptions.prototype.getMaxSeqLenOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.task.text.BertNLClassifierOptions.prototype.serializeBinary=function(){return proto.tflite.task.text.BertNLClassifierOptions.serializeBinary(this)},proto.tflite.task.text.BertNLClassifierOptions.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.text.BertNLClassifierOptions.internalDoNotUse$tflite$task$text$BertNLClassifierOptions$binaryFieldsObject)},proto.tflite.task.text.BertNLClassifierOptions.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.text.BertNLClassifierOptions.internalDoNotUse$tflite$task$text$BertNLClassifierOptions$binaryFieldsObject,t)},proto.tflite.task.text.BertNLClassifierOptions.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.text.BertNLClassifierOptions.internalDoNotUse$tflite$task$text$BertNLClassifierOptions$binaryFieldsObject)},proto.tflite.task.text.BertNLClassifierOptions.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.text.BertNLClassifierOptions,e)},proto.tflite.task.text.BertNLClassifierOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.text.BertNLClassifierOptions&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableBertNLClassifierOptions"),proto.tflite.task.text.MutableBertNLClassifierOptions=proto.tflite.task.text.BertNLClassifierOptions,proto.tflite.task.text.ReadonlyBertNLClassifierOptions={},proto.tflite.task.text.ImmutableBertNLClassifierOptions=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.text.ImmutableBertNLClassifierOptions,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.text.ImmutableBertNLClassifierOptions.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.text.BertNLClassifierOptions,e,t)},proto.tflite.task.text.ImmutableBertNLClassifierOptions.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.text.BertNLClassifierOptions)},proto.tflite.task.text.ImmutableBertNLClassifierOptions.serializeBinary=function(e){return proto.tflite.task.text.BertNLClassifierOptions.serializeBinary(e)},proto.tflite.task.text.ImmutableBertNLClassifierOptions.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.text.BertNLClassifierOptions.internalDoNotUse$tflite$task$text$BertNLClassifierOptions$binaryFieldsObject,t,n)},proto.tflite.task.text.ImmutableBertNLClassifierOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.text.BertNLClassifierOptions&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableBertNLClassifierOptions"),proto.tflite.task.text.BertNLClassifierOptions.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.text.BertNLClassifierOptions.fromObject=function(e){var t=new proto.tflite.task.text.BertNLClassifierOptions;return jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.core.BaseOptions,1,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.baseOptions,proto.tflite.task.core.BaseOptions.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.maxSeqLen),t}),proto.tflite.task.text.BertNLClassifierOptions.prototype.toObject=function(e){return proto.tflite.task.text.BertNLClassifierOptions.internal_toObject(e,this)},proto.tflite.task.text.BertNLClassifierOptions.internal_toObject=function(e,t){if(null!=t){var n={baseOptions:proto.tflite.task.core.BaseOptions.internal_toObject(e,t.getBaseOptions()),maxSeqLen:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,2,128)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.text.BertNLClassifierOptions.internalDoNotUse$tflite$task$text$BertNLClassifierOptions$binaryFieldsObject=[proto.tflite.task.text.BertNLClassifierOptions,1,jspb.internal.binary.RWMessage,proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject,2,jspb.internal.binary.RWInt32],proto.tflite.task.vision={},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.getOriginX=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.hasOriginX=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.getOriginXOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.getOriginY=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.hasOriginY=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.getOriginYOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.getWidth=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.hasWidth=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.getWidthOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.getHeight=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.hasHeight=function(){},proto.tflite.task.vision.$internalDoNotUseBoundingBoxReader.prototype.getHeightOrUndefined=function(){},proto.tflite.task.vision.BoundingBox=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.task.vision.BoundingBox,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.BoundingBox.prototype.getOriginX=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,1)},proto.tflite.task.vision.BoundingBox.prototype.setOriginX=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.task.vision.BoundingBox.prototype.clearOriginX=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.vision.BoundingBox.prototype.hasOriginX=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.task.vision.BoundingBox.prototype.getOriginXOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.task.vision.BoundingBox.prototype.getOriginY=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2)},proto.tflite.task.vision.BoundingBox.prototype.setOriginY=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.task.vision.BoundingBox.prototype.clearOriginY=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.vision.BoundingBox.prototype.hasOriginY=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.task.vision.BoundingBox.prototype.getOriginYOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.task.vision.BoundingBox.prototype.getWidth=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,3)},proto.tflite.task.vision.BoundingBox.prototype.setWidth=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.task.vision.BoundingBox.prototype.clearWidth=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.task.vision.BoundingBox.prototype.hasWidth=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.task.vision.BoundingBox.prototype.getWidthOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.task.vision.BoundingBox.prototype.getHeight=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,4)},proto.tflite.task.vision.BoundingBox.prototype.setHeight=function(e){return jspb.internal.jspb_adapters.setField(this,4,e)},proto.tflite.task.vision.BoundingBox.prototype.clearHeight=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.task.vision.BoundingBox.prototype.hasHeight=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.task.vision.BoundingBox.prototype.getHeightOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,4)},proto.tflite.task.vision.BoundingBox.prototype.serializeBinary=function(){return proto.tflite.task.vision.BoundingBox.serializeBinary(this)},proto.tflite.task.vision.BoundingBox.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.BoundingBox.internalDoNotUse$tflite$task$vision$BoundingBox$binaryFieldsObject)},proto.tflite.task.vision.BoundingBox.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.BoundingBox.internalDoNotUse$tflite$task$vision$BoundingBox$binaryFieldsObject,t)},proto.tflite.task.vision.BoundingBox.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.BoundingBox.internalDoNotUse$tflite$task$vision$BoundingBox$binaryFieldsObject)},proto.tflite.task.vision.BoundingBox.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.BoundingBox,e)},proto.tflite.task.vision.BoundingBox.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.BoundingBox&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableBoundingBox"),proto.tflite.task.vision.MutableBoundingBox=proto.tflite.task.vision.BoundingBox,proto.tflite.task.vision.ReadonlyBoundingBox={},proto.tflite.task.vision.ImmutableBoundingBox=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableBoundingBox,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableBoundingBox.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.BoundingBox,e,t)},proto.tflite.task.vision.ImmutableBoundingBox.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.BoundingBox)},proto.tflite.task.vision.ImmutableBoundingBox.serializeBinary=function(e){return proto.tflite.task.vision.BoundingBox.serializeBinary(e)},proto.tflite.task.vision.ImmutableBoundingBox.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.BoundingBox.internalDoNotUse$tflite$task$vision$BoundingBox$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableBoundingBox.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.BoundingBox&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableBoundingBox"),proto.tflite.task.vision.BoundingBox.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.BoundingBox.fromObject=function(e){var t=new proto.tflite.task.vision.BoundingBox;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.originX),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.originY),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.width),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,4,e.height),t}),proto.tflite.task.vision.BoundingBox.prototype.toObject=function(e){return proto.tflite.task.vision.BoundingBox.internal_toObject(e,this)},proto.tflite.task.vision.BoundingBox.internal_toObject=function(e,t){if(null!=t){var n={originX:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),originY:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),width:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3)),height:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.BoundingBox.internalDoNotUse$tflite$task$vision$BoundingBox$binaryFieldsObject=[proto.tflite.task.vision.BoundingBox,1,jspb.internal.binary.RWInt32,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWInt32,4,jspb.internal.binary.RWInt32],proto.tflite.task.vision.$internalDoNotUseClassReader=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.getIndex=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.hasIndex=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.getIndexOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.getScore=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.hasScore=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.getScoreOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.getDisplayName=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.hasDisplayName=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.getDisplayNameOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.getClassName=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.hasClassName=function(){},proto.tflite.task.vision.$internalDoNotUseClassReader.prototype.getClassNameOrUndefined=function(){},proto.tflite.task.vision.Class=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.task.vision.Class,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.Class.prototype.getIndex=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,1)},proto.tflite.task.vision.Class.prototype.setIndex=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.task.vision.Class.prototype.clearIndex=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.vision.Class.prototype.hasIndex=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.task.vision.Class.prototype.getIndexOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.task.vision.Class.prototype.getScore=function(){return jspb.internal.jspb_adapters.getFloatingPointFieldWithDefault(this,2)},proto.tflite.task.vision.Class.prototype.setScore=function(e){return jspb.internal.jspb_adapters.setFloatField(this,2,e)},proto.tflite.task.vision.Class.prototype.clearScore=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.vision.Class.prototype.hasScore=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.task.vision.Class.prototype.getScoreOrUndefined=function(){return jspb.internal.jspb_adapters.getFloatingPointFieldOrUndefined(this,2)},proto.tflite.task.vision.Class.prototype.getDisplayName=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,3)},proto.tflite.task.vision.Class.prototype.setDisplayName=function(e){return jspb.internal.jspb_adapters.setStringField(this,3,e)},proto.tflite.task.vision.Class.prototype.clearDisplayName=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.task.vision.Class.prototype.hasDisplayName=function(){return jspb.internal.jspb_adapters.hasStringField(this,3)},proto.tflite.task.vision.Class.prototype.getDisplayNameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,3)},proto.tflite.task.vision.Class.prototype.getClassName=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,4)},proto.tflite.task.vision.Class.prototype.setClassName=function(e){return jspb.internal.jspb_adapters.setStringField(this,4,e)},proto.tflite.task.vision.Class.prototype.clearClassName=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.task.vision.Class.prototype.hasClassName=function(){return jspb.internal.jspb_adapters.hasStringField(this,4)},proto.tflite.task.vision.Class.prototype.getClassNameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,4)},proto.tflite.task.vision.Class.prototype.serializeBinary=function(){return proto.tflite.task.vision.Class.serializeBinary(this)},proto.tflite.task.vision.Class.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.Class.internalDoNotUse$tflite$task$vision$Class$binaryFieldsObject)},proto.tflite.task.vision.Class.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.Class.internalDoNotUse$tflite$task$vision$Class$binaryFieldsObject,t)},proto.tflite.task.vision.Class.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.Class.internalDoNotUse$tflite$task$vision$Class$binaryFieldsObject)},proto.tflite.task.vision.Class.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.Class,e)},proto.tflite.task.vision.Class.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Class&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableClass"),proto.tflite.task.vision.MutableClass=proto.tflite.task.vision.Class,proto.tflite.task.vision.ReadonlyClass={},proto.tflite.task.vision.ImmutableClass=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableClass,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableClass.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.Class,e,t)},proto.tflite.task.vision.ImmutableClass.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.Class)},proto.tflite.task.vision.ImmutableClass.serializeBinary=function(e){return proto.tflite.task.vision.Class.serializeBinary(e)},proto.tflite.task.vision.ImmutableClass.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.Class.internalDoNotUse$tflite$task$vision$Class$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableClass.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Class&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableClass"),proto.tflite.task.vision.Class.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.Class.fromObject=function(e){var t=new proto.tflite.task.vision.Class;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.index),jspb.internal.jspb_adapters.setFloatFieldIfNotNullish(t,2,e.score),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,3,e.displayName),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,4,e.className),t}),proto.tflite.task.vision.Class.prototype.toObject=function(e){return proto.tflite.task.vision.Class.internal_toObject(e,this)},proto.tflite.task.vision.Class.internal_toObject=function(e,t){if(null!=t){var n={index:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),score:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFloatingPointFieldNullable(t,2)),displayName:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,3)),className:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,4))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.Class.internalDoNotUse$tflite$task$vision$Class$binaryFieldsObject=[proto.tflite.task.vision.Class,1,jspb.internal.binary.RWInt32,2,jspb.internal.binary.RWFloat,3,jspb.internal.binary.RWString,4,jspb.internal.binary.RWString],proto.tflite.task.vision.$internalDoNotUseClassificationsReader=function(){},proto.tflite.task.vision.$internalDoNotUseClassificationsReader.prototype.getClassesList=function(){},proto.tflite.task.vision.$internalDoNotUseClassificationsReader.prototype.getReadonlyClassesList=function(){},proto.tflite.task.vision.$internalDoNotUseClassificationsReader.prototype.getHeadIndex=function(){},proto.tflite.task.vision.$internalDoNotUseClassificationsReader.prototype.hasHeadIndex=function(){},proto.tflite.task.vision.$internalDoNotUseClassificationsReader.prototype.getHeadIndexOrUndefined=function(){},proto.tflite.task.vision.Classifications=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.Classifications.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.Classifications,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.Classifications.prototype.getClassesList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.task.vision.Class,1)},proto.tflite.task.vision.Classifications.prototype.getReadonlyClassesList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.task.vision.Class,1)},proto.tflite.task.vision.Classifications.prototype.setClassesList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.task.vision.Class,1,e)},proto.tflite.task.vision.Classifications.prototype.addClasses=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,1,proto.tflite.task.vision.Class,e,t)},proto.tflite.task.vision.Classifications.prototype.addAndReturnClasses=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,1,proto.tflite.task.vision.Class,e,t)},proto.tflite.task.vision.Classifications.prototype.clearClassesList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,1)},proto.tflite.task.vision.Classifications.prototype.getHeadIndex=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2)},proto.tflite.task.vision.Classifications.prototype.setHeadIndex=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.task.vision.Classifications.prototype.clearHeadIndex=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.vision.Classifications.prototype.hasHeadIndex=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.task.vision.Classifications.prototype.getHeadIndexOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.task.vision.Classifications.prototype.serializeBinary=function(){return proto.tflite.task.vision.Classifications.serializeBinary(this)},proto.tflite.task.vision.Classifications.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.Classifications.internalDoNotUse$tflite$task$vision$Classifications$binaryFieldsObject)},proto.tflite.task.vision.Classifications.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.Classifications.internalDoNotUse$tflite$task$vision$Classifications$binaryFieldsObject,t)},proto.tflite.task.vision.Classifications.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.Classifications.internalDoNotUse$tflite$task$vision$Classifications$binaryFieldsObject)},proto.tflite.task.vision.Classifications.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.Classifications,e)},proto.tflite.task.vision.Classifications.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Classifications&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableClassifications"),proto.tflite.task.vision.MutableClassifications=proto.tflite.task.vision.Classifications,proto.tflite.task.vision.ReadonlyClassifications={},proto.tflite.task.vision.ImmutableClassifications=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableClassifications,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableClassifications.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.Classifications,e,t)},proto.tflite.task.vision.ImmutableClassifications.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.Classifications)},proto.tflite.task.vision.ImmutableClassifications.serializeBinary=function(e){return proto.tflite.task.vision.Classifications.serializeBinary(e)},proto.tflite.task.vision.ImmutableClassifications.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.Classifications.internalDoNotUse$tflite$task$vision$Classifications$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableClassifications.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Classifications&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableClassifications"),proto.tflite.task.vision.Classifications.repeatedFields_=[1],proto.tflite.task.vision.Classifications.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.Classifications.fromObject=function(e){var t=new proto.tflite.task.vision.Classifications;return jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.task.vision.Class,1,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.classesList,proto.tflite.task.vision.Class.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.headIndex),t}),proto.tflite.task.vision.Classifications.prototype.toObject=function(e){return proto.tflite.task.vision.Classifications.internal_toObject(e,this)},proto.tflite.task.vision.Classifications.internal_toObject=function(e,t){if(null!=t){var n={classesList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getClassesList(),proto.tflite.task.vision.Class.internal_toObject,e),headIndex:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.Classifications.internalDoNotUse$tflite$task$vision$Classifications$binaryFieldsObject=[proto.tflite.task.vision.Classifications,1,jspb.internal.binary.RWRepeatedMessage,proto.tflite.task.vision.Class.internalDoNotUse$tflite$task$vision$Class$binaryFieldsObject,2,jspb.internal.binary.RWInt32],proto.tflite.task.vision.$internalDoNotUseClassificationResultReader=function(){},proto.tflite.task.vision.$internalDoNotUseClassificationResultReader.prototype.getClassificationsList=function(){},proto.tflite.task.vision.$internalDoNotUseClassificationResultReader.prototype.getReadonlyClassificationsList=function(){},proto.tflite.task.vision.ClassificationResult=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.ClassificationResult.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.ClassificationResult,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.ClassificationResult.prototype.getClassificationsList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.task.vision.Classifications,1)},proto.tflite.task.vision.ClassificationResult.prototype.getReadonlyClassificationsList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.task.vision.Classifications,1)},proto.tflite.task.vision.ClassificationResult.prototype.setClassificationsList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.task.vision.Classifications,1,e)},proto.tflite.task.vision.ClassificationResult.prototype.addClassifications=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,1,proto.tflite.task.vision.Classifications,e,t)},proto.tflite.task.vision.ClassificationResult.prototype.addAndReturnClassifications=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,1,proto.tflite.task.vision.Classifications,e,t)},proto.tflite.task.vision.ClassificationResult.prototype.clearClassificationsList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,1)},proto.tflite.task.vision.ClassificationResult.prototype.serializeBinary=function(){return proto.tflite.task.vision.ClassificationResult.serializeBinary(this)},proto.tflite.task.vision.ClassificationResult.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.ClassificationResult.internalDoNotUse$tflite$task$vision$ClassificationResult$binaryFieldsObject)},proto.tflite.task.vision.ClassificationResult.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.ClassificationResult.internalDoNotUse$tflite$task$vision$ClassificationResult$binaryFieldsObject,t)},proto.tflite.task.vision.ClassificationResult.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.ClassificationResult.internalDoNotUse$tflite$task$vision$ClassificationResult$binaryFieldsObject)},proto.tflite.task.vision.ClassificationResult.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.ClassificationResult,e)},proto.tflite.task.vision.ClassificationResult.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.ClassificationResult&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableClassificationResult"),proto.tflite.task.vision.MutableClassificationResult=proto.tflite.task.vision.ClassificationResult,proto.tflite.task.vision.ReadonlyClassificationResult={},proto.tflite.task.vision.ImmutableClassificationResult=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableClassificationResult,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableClassificationResult.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.ClassificationResult,e,t)},proto.tflite.task.vision.ImmutableClassificationResult.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.ClassificationResult)},proto.tflite.task.vision.ImmutableClassificationResult.serializeBinary=function(e){return proto.tflite.task.vision.ClassificationResult.serializeBinary(e)},proto.tflite.task.vision.ImmutableClassificationResult.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.ClassificationResult.internalDoNotUse$tflite$task$vision$ClassificationResult$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableClassificationResult.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.ClassificationResult&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableClassificationResult"),proto.tflite.task.vision.ClassificationResult.repeatedFields_=[1],proto.tflite.task.vision.ClassificationResult.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.ClassificationResult.fromObject=function(e){var t=new proto.tflite.task.vision.ClassificationResult;return jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.task.vision.Classifications,1,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.classificationsList,proto.tflite.task.vision.Classifications.fromObject)),t}),proto.tflite.task.vision.ClassificationResult.prototype.toObject=function(e){return proto.tflite.task.vision.ClassificationResult.internal_toObject(e,this)},proto.tflite.task.vision.ClassificationResult.internal_toObject=function(e,t){if(null!=t){var n={classificationsList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getClassificationsList(),proto.tflite.task.vision.Classifications.internal_toObject,e)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.ClassificationResult.internalDoNotUse$tflite$task$vision$ClassificationResult$binaryFieldsObject=[proto.tflite.task.vision.ClassificationResult,1,jspb.internal.binary.RWRepeatedMessage,proto.tflite.task.vision.Classifications.internalDoNotUse$tflite$task$vision$Classifications$binaryFieldsObject],proto.tflite.task.vision.$internalDoNotUseDetectionReader=function(){},proto.tflite.task.vision.$internalDoNotUseDetectionReader.prototype.getBoundingBox=function(){},proto.tflite.task.vision.$internalDoNotUseDetectionReader.prototype.getReadonlyBoundingBox=function(){},proto.tflite.task.vision.$internalDoNotUseDetectionReader.prototype.hasBoundingBox=function(){},proto.tflite.task.vision.$internalDoNotUseDetectionReader.prototype.getClassesList=function(){},proto.tflite.task.vision.$internalDoNotUseDetectionReader.prototype.getReadonlyClassesList=function(){},proto.tflite.task.vision.Detection=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.Detection.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.Detection,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.Detection.prototype.getBoundingBox=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.vision.BoundingBox,2)},proto.tflite.task.vision.Detection.prototype.getReadonlyBoundingBox=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.vision.BoundingBox,2)},proto.tflite.task.vision.Detection.prototype.getMutableBoundingBox=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.vision.BoundingBox,2)},proto.tflite.task.vision.Detection.prototype.setBoundingBox=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.vision.BoundingBox,2,e)},proto.tflite.task.vision.Detection.prototype.clearBoundingBox=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.vision.Detection.prototype.hasBoundingBox=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.vision.BoundingBox,2)},proto.tflite.task.vision.Detection.prototype.getClassesList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.task.vision.Class,3)},proto.tflite.task.vision.Detection.prototype.getReadonlyClassesList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.task.vision.Class,3)},proto.tflite.task.vision.Detection.prototype.setClassesList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.task.vision.Class,3,e)},proto.tflite.task.vision.Detection.prototype.addClasses=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,3,proto.tflite.task.vision.Class,e,t)},proto.tflite.task.vision.Detection.prototype.addAndReturnClasses=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,3,proto.tflite.task.vision.Class,e,t)},proto.tflite.task.vision.Detection.prototype.clearClassesList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,3)},proto.tflite.task.vision.Detection.prototype.serializeBinary=function(){return proto.tflite.task.vision.Detection.serializeBinary(this)},proto.tflite.task.vision.Detection.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.Detection.internalDoNotUse$tflite$task$vision$Detection$binaryFieldsObject)},proto.tflite.task.vision.Detection.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.Detection.internalDoNotUse$tflite$task$vision$Detection$binaryFieldsObject,t)},proto.tflite.task.vision.Detection.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.Detection.internalDoNotUse$tflite$task$vision$Detection$binaryFieldsObject)},proto.tflite.task.vision.Detection.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.Detection,e)},proto.tflite.task.vision.Detection.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Detection&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableDetection"),proto.tflite.task.vision.MutableDetection=proto.tflite.task.vision.Detection,proto.tflite.task.vision.ReadonlyDetection={},proto.tflite.task.vision.ImmutableDetection=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableDetection,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableDetection.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.Detection,e,t)},proto.tflite.task.vision.ImmutableDetection.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.Detection)},proto.tflite.task.vision.ImmutableDetection.serializeBinary=function(e){return proto.tflite.task.vision.Detection.serializeBinary(e)},proto.tflite.task.vision.ImmutableDetection.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.Detection.internalDoNotUse$tflite$task$vision$Detection$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableDetection.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Detection&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableDetection"),proto.tflite.task.vision.Detection.repeatedFields_=[3],proto.tflite.task.vision.Detection.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.Detection.fromObject=function(e){var t=new proto.tflite.task.vision.Detection;return jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.vision.BoundingBox,2,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.boundingBox,proto.tflite.task.vision.BoundingBox.fromObject)),jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.task.vision.Class,3,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.classesList,proto.tflite.task.vision.Class.fromObject)),t}),proto.tflite.task.vision.Detection.prototype.toObject=function(e){return proto.tflite.task.vision.Detection.internal_toObject(e,this)},proto.tflite.task.vision.Detection.internal_toObject=function(e,t){if(null!=t){var n={boundingBox:proto.tflite.task.vision.BoundingBox.internal_toObject(e,t.getBoundingBox()),classesList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getClassesList(),proto.tflite.task.vision.Class.internal_toObject,e)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.Detection.internalDoNotUse$tflite$task$vision$Detection$binaryFieldsObject=[proto.tflite.task.vision.Detection,2,jspb.internal.binary.RWMessage,proto.tflite.task.vision.BoundingBox.internalDoNotUse$tflite$task$vision$BoundingBox$binaryFieldsObject,3,jspb.internal.binary.RWRepeatedMessage,proto.tflite.task.vision.Class.internalDoNotUse$tflite$task$vision$Class$binaryFieldsObject],proto.tflite.task.vision.$internalDoNotUseDetectionResultReader=function(){},proto.tflite.task.vision.$internalDoNotUseDetectionResultReader.prototype.getDetectionsList=function(){},proto.tflite.task.vision.$internalDoNotUseDetectionResultReader.prototype.getReadonlyDetectionsList=function(){},proto.tflite.task.vision.DetectionResult=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.DetectionResult.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.DetectionResult,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.DetectionResult.prototype.getDetectionsList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.task.vision.Detection,1)},proto.tflite.task.vision.DetectionResult.prototype.getReadonlyDetectionsList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.task.vision.Detection,1)},proto.tflite.task.vision.DetectionResult.prototype.setDetectionsList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.task.vision.Detection,1,e)},proto.tflite.task.vision.DetectionResult.prototype.addDetections=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,1,proto.tflite.task.vision.Detection,e,t)},proto.tflite.task.vision.DetectionResult.prototype.addAndReturnDetections=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,1,proto.tflite.task.vision.Detection,e,t)},proto.tflite.task.vision.DetectionResult.prototype.clearDetectionsList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,1)},proto.tflite.task.vision.DetectionResult.prototype.serializeBinary=function(){return proto.tflite.task.vision.DetectionResult.serializeBinary(this)},proto.tflite.task.vision.DetectionResult.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.DetectionResult.internalDoNotUse$tflite$task$vision$DetectionResult$binaryFieldsObject)},proto.tflite.task.vision.DetectionResult.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.DetectionResult.internalDoNotUse$tflite$task$vision$DetectionResult$binaryFieldsObject,t)},proto.tflite.task.vision.DetectionResult.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.DetectionResult.internalDoNotUse$tflite$task$vision$DetectionResult$binaryFieldsObject)},proto.tflite.task.vision.DetectionResult.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.DetectionResult,e)},proto.tflite.task.vision.DetectionResult.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.DetectionResult&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableDetectionResult"),proto.tflite.task.vision.MutableDetectionResult=proto.tflite.task.vision.DetectionResult,proto.tflite.task.vision.ReadonlyDetectionResult={},proto.tflite.task.vision.ImmutableDetectionResult=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableDetectionResult,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableDetectionResult.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.DetectionResult,e,t)},proto.tflite.task.vision.ImmutableDetectionResult.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.DetectionResult)},proto.tflite.task.vision.ImmutableDetectionResult.serializeBinary=function(e){return proto.tflite.task.vision.DetectionResult.serializeBinary(e)},proto.tflite.task.vision.ImmutableDetectionResult.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.DetectionResult.internalDoNotUse$tflite$task$vision$DetectionResult$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableDetectionResult.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.DetectionResult&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableDetectionResult"),proto.tflite.task.vision.DetectionResult.repeatedFields_=[1],proto.tflite.task.vision.DetectionResult.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.DetectionResult.fromObject=function(e){var t=new proto.tflite.task.vision.DetectionResult;return jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.task.vision.Detection,1,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.detectionsList,proto.tflite.task.vision.Detection.fromObject)),t}),proto.tflite.task.vision.DetectionResult.prototype.toObject=function(e){return proto.tflite.task.vision.DetectionResult.internal_toObject(e,this)},proto.tflite.task.vision.DetectionResult.internal_toObject=function(e,t){if(null!=t){var n={detectionsList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getDetectionsList(),proto.tflite.task.vision.Detection.internal_toObject,e)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.DetectionResult.internalDoNotUse$tflite$task$vision$DetectionResult$binaryFieldsObject=[proto.tflite.task.vision.DetectionResult,1,jspb.internal.binary.RWRepeatedMessage,proto.tflite.task.vision.Detection.internalDoNotUse$tflite$task$vision$Detection$binaryFieldsObject],proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getReadonlyBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.hasBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getReadonlyModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.hasModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getDisplayNamesLocale=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.hasDisplayNamesLocale=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getDisplayNamesLocaleOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getMaxResults=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.hasMaxResults=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getMaxResultsOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getScoreThreshold=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.hasScoreThreshold=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getScoreThresholdOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getClassNameWhitelistList=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getClassNameBlacklistList=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getNumThreads=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.hasNumThreads=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getNumThreadsOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getComputeSettings=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.getReadonlyComputeSettings=function(){},proto.tflite.task.vision.$internalDoNotUseImageClassifierOptionsReader.prototype.hasComputeSettings=function(){},proto.tflite.task.vision.ImageClassifierOptions=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.ImageClassifierOptions.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.ImageClassifierOptions,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.ImageClassifierOptions.prototype.getBaseOptions=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.core.BaseOptions,14)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getReadonlyBaseOptions=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.core.BaseOptions,14)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getMutableBaseOptions=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.core.BaseOptions,14)},proto.tflite.task.vision.ImageClassifierOptions.prototype.setBaseOptions=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.core.BaseOptions,14,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearBaseOptions=function(){return jspb.internal.jspb_adapters.clearField(this,14)},proto.tflite.task.vision.ImageClassifierOptions.prototype.hasBaseOptions=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.core.BaseOptions,14)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.core.ExternalFile,10)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getReadonlyModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.core.ExternalFile,10)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getMutableModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.core.ExternalFile,10)},proto.tflite.task.vision.ImageClassifierOptions.prototype.setModelFileWithMetadata=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.core.ExternalFile,10,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.clearField(this,10)},proto.tflite.task.vision.ImageClassifierOptions.prototype.hasModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.core.ExternalFile,10)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,11,"en")},proto.tflite.task.vision.ImageClassifierOptions.prototype.setDisplayNamesLocale=function(e){return jspb.internal.jspb_adapters.setStringField(this,11,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.clearField(this,11)},proto.tflite.task.vision.ImageClassifierOptions.prototype.hasDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.hasStringField(this,11)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getDisplayNamesLocaleOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,11)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getMaxResults=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2,-1)},proto.tflite.task.vision.ImageClassifierOptions.prototype.setMaxResults=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearMaxResults=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.vision.ImageClassifierOptions.prototype.hasMaxResults=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getMaxResultsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getScoreThreshold=function(){return jspb.internal.jspb_adapters.getFloatingPointFieldWithDefault(this,3)},proto.tflite.task.vision.ImageClassifierOptions.prototype.setScoreThreshold=function(e){return jspb.internal.jspb_adapters.setFloatField(this,3,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearScoreThreshold=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.task.vision.ImageClassifierOptions.prototype.hasScoreThreshold=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getScoreThresholdOrUndefined=function(){return jspb.internal.jspb_adapters.getFloatingPointFieldOrUndefined(this,3)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getClassNameWhitelistList=function(){return jspb.internal.jspb_adapters.getRepeatedStringField(this,4)},proto.tflite.task.vision.ImageClassifierOptions.prototype.setClassNameWhitelistList=function(e){return jspb.internal.jspb_adapters.setRepeatedStringField(this,4,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.addClassNameWhitelist=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedStringField(this,4,e,t)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearClassNameWhitelistList=function(){return jspb.internal.jspb_adapters.clearRepeatedField(this,4)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getClassNameBlacklistList=function(){return jspb.internal.jspb_adapters.getRepeatedStringField(this,5)},proto.tflite.task.vision.ImageClassifierOptions.prototype.setClassNameBlacklistList=function(e){return jspb.internal.jspb_adapters.setRepeatedStringField(this,5,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.addClassNameBlacklist=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedStringField(this,5,e,t)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearClassNameBlacklistList=function(){return jspb.internal.jspb_adapters.clearRepeatedField(this,5)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getNumThreads=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,13,-1)},proto.tflite.task.vision.ImageClassifierOptions.prototype.setNumThreads=function(e){return jspb.internal.jspb_adapters.setField(this,13,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearNumThreads=function(){return jspb.internal.jspb_adapters.clearField(this,13)},proto.tflite.task.vision.ImageClassifierOptions.prototype.hasNumThreads=function(){return jspb.internal.jspb_adapters.hasField(this,13)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getNumThreadsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,13)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getComputeSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.ComputeSettings,9)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getReadonlyComputeSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.ComputeSettings,9)},proto.tflite.task.vision.ImageClassifierOptions.prototype.getMutableComputeSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.ComputeSettings,9)},proto.tflite.task.vision.ImageClassifierOptions.prototype.setComputeSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.ComputeSettings,9,e)},proto.tflite.task.vision.ImageClassifierOptions.prototype.clearComputeSettings=function(){return jspb.internal.jspb_adapters.clearField(this,9)},proto.tflite.task.vision.ImageClassifierOptions.prototype.hasComputeSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.ComputeSettings,9)},proto.tflite.task.vision.ImageClassifierOptions.prototype.serializeBinary=function(){return proto.tflite.task.vision.ImageClassifierOptions.serializeBinary(this)},proto.tflite.task.vision.ImageClassifierOptions.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.ImageClassifierOptions.internalDoNotUse$tflite$task$vision$ImageClassifierOptions$binaryFieldsObject)},proto.tflite.task.vision.ImageClassifierOptions.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.ImageClassifierOptions.internalDoNotUse$tflite$task$vision$ImageClassifierOptions$binaryFieldsObject,t)},proto.tflite.task.vision.ImageClassifierOptions.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.ImageClassifierOptions.internalDoNotUse$tflite$task$vision$ImageClassifierOptions$binaryFieldsObject)},proto.tflite.task.vision.ImageClassifierOptions.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.ImageClassifierOptions,e)},proto.tflite.task.vision.ImageClassifierOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.ImageClassifierOptions&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableImageClassifierOptions"),proto.tflite.task.vision.MutableImageClassifierOptions=proto.tflite.task.vision.ImageClassifierOptions,proto.tflite.task.vision.ReadonlyImageClassifierOptions={},proto.tflite.task.vision.ImmutableImageClassifierOptions=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableImageClassifierOptions,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableImageClassifierOptions.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.ImageClassifierOptions,e,t)},proto.tflite.task.vision.ImmutableImageClassifierOptions.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.ImageClassifierOptions)},proto.tflite.task.vision.ImmutableImageClassifierOptions.serializeBinary=function(e){return proto.tflite.task.vision.ImageClassifierOptions.serializeBinary(e)},proto.tflite.task.vision.ImmutableImageClassifierOptions.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.ImageClassifierOptions.internalDoNotUse$tflite$task$vision$ImageClassifierOptions$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableImageClassifierOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.ImageClassifierOptions&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableImageClassifierOptions"),proto.tflite.task.vision.ImageClassifierOptions.repeatedFields_=[4,5],proto.tflite.task.vision.ImageClassifierOptions.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.ImageClassifierOptions.fromObject=function(e){var t=new proto.tflite.task.vision.ImageClassifierOptions;return jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.core.BaseOptions,14,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.baseOptions,proto.tflite.task.core.BaseOptions.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.core.ExternalFile,10,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.modelFileWithMetadata,proto.tflite.task.core.ExternalFile.fromObject)),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,11,e.displayNamesLocale),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.maxResults),jspb.internal.jspb_adapters.setFloatFieldIfNotNullish(t,3,e.scoreThreshold),jspb.internal.jspb_adapters.setRepeatedStringFieldIfNotNullish(t,4,e.classNameWhitelistList),jspb.internal.jspb_adapters.setRepeatedStringFieldIfNotNullish(t,5,e.classNameBlacklistList),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,13,e.numThreads),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.ComputeSettings,9,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.computeSettings,proto.tflite.proto.ComputeSettings.fromObject)),t}),proto.tflite.task.vision.ImageClassifierOptions.prototype.toObject=function(e){return proto.tflite.task.vision.ImageClassifierOptions.internal_toObject(e,this)},proto.tflite.task.vision.ImageClassifierOptions.internal_toObject=function(e,t){if(null!=t){var n={baseOptions:proto.tflite.task.core.BaseOptions.internal_toObject(e,t.getBaseOptions()),modelFileWithMetadata:proto.tflite.task.core.ExternalFile.internal_toObject(e,t.getModelFileWithMetadata()),displayNamesLocale:jspb.internal.jspb_adapters.getStringFieldWithDefault(t,11,"en"),maxResults:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,2,-1),scoreThreshold:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFloatingPointFieldNullable(t,3)),classNameWhitelistList:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getRepeatedStringField(t,4)),classNameBlacklistList:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getRepeatedStringField(t,5)),numThreads:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,13,-1),computeSettings:proto.tflite.proto.ComputeSettings.internal_toObject(e,t.getComputeSettings())};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.ImageClassifierOptions.internalDoNotUse$tflite$task$vision$ImageClassifierOptions$binaryFieldsObject=[proto.tflite.task.vision.ImageClassifierOptions,14,jspb.internal.binary.RWMessage,proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject,10,jspb.internal.binary.RWMessage,proto.tflite.task.core.ExternalFile.internalDoNotUse$tflite$task$core$ExternalFile$binaryFieldsObject,11,jspb.internal.binary.RWString,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWFloat,4,jspb.internal.binary.RWRepeatedString,5,jspb.internal.binary.RWRepeatedString,13,jspb.internal.binary.RWInt32,9,jspb.internal.binary.RWMessage,proto.tflite.proto.ComputeSettings.internalDoNotUse$tflite$proto$ComputeSettings$binaryFieldsObject],proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getReadonlyBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.hasBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getReadonlyModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.hasModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getDisplayNamesLocale=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.hasDisplayNamesLocale=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getDisplayNamesLocaleOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getOutputType=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.hasOutputType=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getOutputTypeOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getNumThreads=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.hasNumThreads=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getNumThreadsOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getComputeSettings=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.getReadonlyComputeSettings=function(){},proto.tflite.task.vision.$internalDoNotUseImageSegmenterOptionsReader.prototype.hasComputeSettings=function(){},proto.tflite.task.vision.ImageSegmenterOptions=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.task.vision.ImageSegmenterOptions,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.ImageSegmenterOptions.prototype.getBaseOptions=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.core.BaseOptions,8)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getReadonlyBaseOptions=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.core.BaseOptions,8)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getMutableBaseOptions=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.core.BaseOptions,8)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.setBaseOptions=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.core.BaseOptions,8,e)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.clearBaseOptions=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.hasBaseOptions=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.core.BaseOptions,8)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.core.ExternalFile,5)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getReadonlyModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.core.ExternalFile,5)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getMutableModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.core.ExternalFile,5)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.setModelFileWithMetadata=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.core.ExternalFile,5,e)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.clearModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.hasModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.core.ExternalFile,5)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,6,"en")},proto.tflite.task.vision.ImageSegmenterOptions.prototype.setDisplayNamesLocale=function(e){return jspb.internal.jspb_adapters.setStringField(this,6,e)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.clearDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.clearField(this,6)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.hasDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.hasStringField(this,6)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getDisplayNamesLocaleOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,6)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getOutputType=function(){return jspb.internal.jspb_adapters.getFieldWithDefault(this,3,1)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.setOutputType=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.clearOutputType=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.hasOutputType=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getOutputTypeOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getNumThreads=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,7,-1)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.setNumThreads=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.clearNumThreads=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.hasNumThreads=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getNumThreadsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,7)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getComputeSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.ComputeSettings,4)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getReadonlyComputeSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.ComputeSettings,4)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.getMutableComputeSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.ComputeSettings,4)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.setComputeSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.ComputeSettings,4,e)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.clearComputeSettings=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.hasComputeSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.ComputeSettings,4)},proto.tflite.task.vision.ImageSegmenterOptions.prototype.serializeBinary=function(){return proto.tflite.task.vision.ImageSegmenterOptions.serializeBinary(this)},proto.tflite.task.vision.ImageSegmenterOptions.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.ImageSegmenterOptions.internalDoNotUse$tflite$task$vision$ImageSegmenterOptions$binaryFieldsObject)},proto.tflite.task.vision.ImageSegmenterOptions.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.ImageSegmenterOptions.internalDoNotUse$tflite$task$vision$ImageSegmenterOptions$binaryFieldsObject,t)},proto.tflite.task.vision.ImageSegmenterOptions.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.ImageSegmenterOptions.internalDoNotUse$tflite$task$vision$ImageSegmenterOptions$binaryFieldsObject)},proto.tflite.task.vision.ImageSegmenterOptions.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.ImageSegmenterOptions,e)},proto.tflite.task.vision.ImageSegmenterOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.ImageSegmenterOptions&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableImageSegmenterOptions"),proto.tflite.task.vision.MutableImageSegmenterOptions=proto.tflite.task.vision.ImageSegmenterOptions,proto.tflite.task.vision.ReadonlyImageSegmenterOptions={},proto.tflite.task.vision.ImmutableImageSegmenterOptions=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableImageSegmenterOptions,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableImageSegmenterOptions.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.ImageSegmenterOptions,e,t)},proto.tflite.task.vision.ImmutableImageSegmenterOptions.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.ImageSegmenterOptions)},proto.tflite.task.vision.ImmutableImageSegmenterOptions.serializeBinary=function(e){return proto.tflite.task.vision.ImageSegmenterOptions.serializeBinary(e)},proto.tflite.task.vision.ImmutableImageSegmenterOptions.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.ImageSegmenterOptions.internalDoNotUse$tflite$task$vision$ImageSegmenterOptions$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableImageSegmenterOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.ImageSegmenterOptions&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableImageSegmenterOptions"),proto.tflite.task.vision.ImageSegmenterOptions.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.ImageSegmenterOptions.fromObject=function(e){var t=new proto.tflite.task.vision.ImageSegmenterOptions;return jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.core.BaseOptions,8,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.baseOptions,proto.tflite.task.core.BaseOptions.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.core.ExternalFile,5,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.modelFileWithMetadata,proto.tflite.task.core.ExternalFile.fromObject)),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,6,e.displayNamesLocale),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.outputType),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.numThreads),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.ComputeSettings,4,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.computeSettings,proto.tflite.proto.ComputeSettings.fromObject)),t}),proto.tflite.task.vision.ImageSegmenterOptions.prototype.toObject=function(e){return proto.tflite.task.vision.ImageSegmenterOptions.internal_toObject(e,this)},proto.tflite.task.vision.ImageSegmenterOptions.internal_toObject=function(e,t){if(null!=t){var n={baseOptions:proto.tflite.task.core.BaseOptions.internal_toObject(e,t.getBaseOptions()),modelFileWithMetadata:proto.tflite.task.core.ExternalFile.internal_toObject(e,t.getModelFileWithMetadata()),displayNamesLocale:jspb.internal.jspb_adapters.getStringFieldWithDefault(t,6,"en"),outputType:jspb.internal.jspb_adapters.getFieldWithDefault(t,3,1),numThreads:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,7,-1),computeSettings:proto.tflite.proto.ComputeSettings.internal_toObject(e,t.getComputeSettings())};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.ImageSegmenterOptions.OutputType={UNSPECIFIED:0,CATEGORY_MASK:1,CONFIDENCE_MASK:2},proto.tflite.task.vision.ImageSegmenterOptions.internalDoNotUse$tflite$task$vision$ImageSegmenterOptions$binaryFieldsObject=[proto.tflite.task.vision.ImageSegmenterOptions,8,jspb.internal.binary.RWMessage,proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject,5,jspb.internal.binary.RWMessage,proto.tflite.task.core.ExternalFile.internalDoNotUse$tflite$task$core$ExternalFile$binaryFieldsObject,6,jspb.internal.binary.RWString,3,jspb.internal.binary.RWEnum,7,jspb.internal.binary.RWInt32,4,jspb.internal.binary.RWMessage,proto.tflite.proto.ComputeSettings.internalDoNotUse$tflite$proto$ComputeSettings$binaryFieldsObject],proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getReadonlyBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.hasBaseOptions=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getReadonlyModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.hasModelFileWithMetadata=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getDisplayNamesLocale=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.hasDisplayNamesLocale=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getDisplayNamesLocaleOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getMaxResults=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.hasMaxResults=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getMaxResultsOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getScoreThreshold=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.hasScoreThreshold=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getScoreThresholdOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getClassNameWhitelistList=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getClassNameBlacklistList=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getNumThreads=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.hasNumThreads=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getNumThreadsOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getComputeSettings=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.getReadonlyComputeSettings=function(){},proto.tflite.task.vision.$internalDoNotUseObjectDetectorOptionsReader.prototype.hasComputeSettings=function(){},proto.tflite.task.vision.ObjectDetectorOptions=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.ObjectDetectorOptions.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.ObjectDetectorOptions,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.ObjectDetectorOptions.prototype.getBaseOptions=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.core.BaseOptions,9)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getReadonlyBaseOptions=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.core.BaseOptions,9)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getMutableBaseOptions=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.core.BaseOptions,9)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setBaseOptions=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.core.BaseOptions,9,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearBaseOptions=function(){return jspb.internal.jspb_adapters.clearField(this,9)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.hasBaseOptions=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.core.BaseOptions,9)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.task.core.ExternalFile,1)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getReadonlyModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.task.core.ExternalFile,1)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getMutableModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.task.core.ExternalFile,1)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setModelFileWithMetadata=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.task.core.ExternalFile,1,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.hasModelFileWithMetadata=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.task.core.ExternalFile,1)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,2,"en")},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setDisplayNamesLocale=function(e){return jspb.internal.jspb_adapters.setStringField(this,2,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.hasDisplayNamesLocale=function(){return jspb.internal.jspb_adapters.hasStringField(this,2)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getDisplayNamesLocaleOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,2)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getMaxResults=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,3,-1)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setMaxResults=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearMaxResults=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.hasMaxResults=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getMaxResultsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getScoreThreshold=function(){return jspb.internal.jspb_adapters.getFloatingPointFieldWithDefault(this,4)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setScoreThreshold=function(e){return jspb.internal.jspb_adapters.setFloatField(this,4,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearScoreThreshold=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.hasScoreThreshold=function(){return jspb.internal.jspb_adapters.hasField(this,4)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getScoreThresholdOrUndefined=function(){return jspb.internal.jspb_adapters.getFloatingPointFieldOrUndefined(this,4)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getClassNameWhitelistList=function(){return jspb.internal.jspb_adapters.getRepeatedStringField(this,5)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setClassNameWhitelistList=function(e){return jspb.internal.jspb_adapters.setRepeatedStringField(this,5,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.addClassNameWhitelist=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedStringField(this,5,e,t)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearClassNameWhitelistList=function(){return jspb.internal.jspb_adapters.clearRepeatedField(this,5)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getClassNameBlacklistList=function(){return jspb.internal.jspb_adapters.getRepeatedStringField(this,6)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setClassNameBlacklistList=function(e){return jspb.internal.jspb_adapters.setRepeatedStringField(this,6,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.addClassNameBlacklist=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedStringField(this,6,e,t)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearClassNameBlacklistList=function(){return jspb.internal.jspb_adapters.clearRepeatedField(this,6)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getNumThreads=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,7,-1)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setNumThreads=function(e){return jspb.internal.jspb_adapters.setField(this,7,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearNumThreads=function(){return jspb.internal.jspb_adapters.clearField(this,7)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.hasNumThreads=function(){return jspb.internal.jspb_adapters.hasField(this,7)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getNumThreadsOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,7)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getComputeSettings=function(){return jspb.internal.jspb_adapters.getWrapperFieldOrUndefined(this,proto.tflite.proto.ComputeSettings,8)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getReadonlyComputeSettings=function(){return jspb.internal.jspb_adapters.getReadonlyWrapperField(this,proto.tflite.proto.ComputeSettings,8)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.getMutableComputeSettings=function(){return jspb.internal.jspb_adapters.getMutableWrapperField(this,proto.tflite.proto.ComputeSettings,8)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.setComputeSettings=function(e){return jspb.internal.jspb_adapters.setWrapperField(this,proto.tflite.proto.ComputeSettings,8,e)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.clearComputeSettings=function(){return jspb.internal.jspb_adapters.clearField(this,8)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.hasComputeSettings=function(){return jspb.internal.jspb_adapters.hasWrapperField(this,proto.tflite.proto.ComputeSettings,8)},proto.tflite.task.vision.ObjectDetectorOptions.prototype.serializeBinary=function(){return proto.tflite.task.vision.ObjectDetectorOptions.serializeBinary(this)},proto.tflite.task.vision.ObjectDetectorOptions.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.ObjectDetectorOptions.internalDoNotUse$tflite$task$vision$ObjectDetectorOptions$binaryFieldsObject)},proto.tflite.task.vision.ObjectDetectorOptions.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.ObjectDetectorOptions.internalDoNotUse$tflite$task$vision$ObjectDetectorOptions$binaryFieldsObject,t)},proto.tflite.task.vision.ObjectDetectorOptions.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.ObjectDetectorOptions.internalDoNotUse$tflite$task$vision$ObjectDetectorOptions$binaryFieldsObject)},proto.tflite.task.vision.ObjectDetectorOptions.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.ObjectDetectorOptions,e)},proto.tflite.task.vision.ObjectDetectorOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.ObjectDetectorOptions&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableObjectDetectorOptions"),proto.tflite.task.vision.MutableObjectDetectorOptions=proto.tflite.task.vision.ObjectDetectorOptions,proto.tflite.task.vision.ReadonlyObjectDetectorOptions={},proto.tflite.task.vision.ImmutableObjectDetectorOptions=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableObjectDetectorOptions,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableObjectDetectorOptions.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.ObjectDetectorOptions,e,t)},proto.tflite.task.vision.ImmutableObjectDetectorOptions.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.ObjectDetectorOptions)},proto.tflite.task.vision.ImmutableObjectDetectorOptions.serializeBinary=function(e){return proto.tflite.task.vision.ObjectDetectorOptions.serializeBinary(e)},proto.tflite.task.vision.ImmutableObjectDetectorOptions.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.ObjectDetectorOptions.internalDoNotUse$tflite$task$vision$ObjectDetectorOptions$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableObjectDetectorOptions.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.ObjectDetectorOptions&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableObjectDetectorOptions"),proto.tflite.task.vision.ObjectDetectorOptions.repeatedFields_=[5,6],proto.tflite.task.vision.ObjectDetectorOptions.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.ObjectDetectorOptions.fromObject=function(e){var t=new proto.tflite.task.vision.ObjectDetectorOptions;return jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.core.BaseOptions,9,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.baseOptions,proto.tflite.task.core.BaseOptions.fromObject)),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.task.core.ExternalFile,1,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.modelFileWithMetadata,proto.tflite.task.core.ExternalFile.fromObject)),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,2,e.displayNamesLocale),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.maxResults),jspb.internal.jspb_adapters.setFloatFieldIfNotNullish(t,4,e.scoreThreshold),jspb.internal.jspb_adapters.setRepeatedStringFieldIfNotNullish(t,5,e.classNameWhitelistList),jspb.internal.jspb_adapters.setRepeatedStringFieldIfNotNullish(t,6,e.classNameBlacklistList),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,7,e.numThreads),jspb.internal.jspb_adapters.setWrapperFieldIfNotNullish(t,proto.tflite.proto.ComputeSettings,8,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.computeSettings,proto.tflite.proto.ComputeSettings.fromObject)),t}),proto.tflite.task.vision.ObjectDetectorOptions.prototype.toObject=function(e){return proto.tflite.task.vision.ObjectDetectorOptions.internal_toObject(e,this)},proto.tflite.task.vision.ObjectDetectorOptions.internal_toObject=function(e,t){if(null!=t){var n={baseOptions:proto.tflite.task.core.BaseOptions.internal_toObject(e,t.getBaseOptions()),modelFileWithMetadata:proto.tflite.task.core.ExternalFile.internal_toObject(e,t.getModelFileWithMetadata()),displayNamesLocale:jspb.internal.jspb_adapters.getStringFieldWithDefault(t,2,"en"),maxResults:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,3,-1),scoreThreshold:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFloatingPointFieldNullable(t,4)),classNameWhitelistList:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getRepeatedStringField(t,5)),classNameBlacklistList:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getRepeatedStringField(t,6)),numThreads:jspb.internal.jspb_adapters.getInt32FieldWithDefault(t,7,-1),computeSettings:proto.tflite.proto.ComputeSettings.internal_toObject(e,t.getComputeSettings())};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.ObjectDetectorOptions.internalDoNotUse$tflite$task$vision$ObjectDetectorOptions$binaryFieldsObject=[proto.tflite.task.vision.ObjectDetectorOptions,9,jspb.internal.binary.RWMessage,proto.tflite.task.core.BaseOptions.internalDoNotUse$tflite$task$core$BaseOptions$binaryFieldsObject,1,jspb.internal.binary.RWMessage,proto.tflite.task.core.ExternalFile.internalDoNotUse$tflite$task$core$ExternalFile$binaryFieldsObject,2,jspb.internal.binary.RWString,3,jspb.internal.binary.RWInt32,4,jspb.internal.binary.RWFloat,5,jspb.internal.binary.RWRepeatedString,6,jspb.internal.binary.RWRepeatedString,7,jspb.internal.binary.RWInt32,8,jspb.internal.binary.RWMessage,proto.tflite.proto.ComputeSettings.internalDoNotUse$tflite$proto$ComputeSettings$binaryFieldsObject],proto.tflite.task.vision.$internalDoNotUseSegmentationReader=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getMaskOneofCase=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getCategoryMask=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getCategoryMask_asB64=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getCategoryMask_asBase64OrUint8Array=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.hasCategoryMask=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getCategoryMaskOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getConfidenceMasks=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getReadonlyConfidenceMasks=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.hasConfidenceMasks=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getWidth=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.hasWidth=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getWidthOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getHeight=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.hasHeight=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getHeightOrUndefined=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getColoredLabelsList=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationReader.prototype.getReadonlyColoredLabelsList=function(){},proto.tflite.task.vision.Segmentation=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.Segmentation.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.Segmentation,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.Segmentation.prototype.getMaskOneofCase=function(){return jspb.internal.jspb_adapters.computeOneofCase(this,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_)},proto.tflite.task.vision.Segmentation.prototype.getCategoryMask=function(){return jspb.internal.jspb_adapters.getOneofBytesFieldWithDefault(this,1,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_)},proto.tflite.task.vision.Segmentation.prototype.getCategoryMask_asB64=function(){return module$contents$jspb$internal$public_for_gencode_byteStringAsB64(jspb.internal.jspb_adapters.getOneofBytesFieldWithDefault(this,1,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_))},proto.tflite.task.vision.Segmentation.prototype.getCategoryMask_asBase64OrUint8Array=function(){return module$contents$jspb$internal$public_for_gencode_byteStringAsBase64OrUint8Array(jspb.internal.jspb_adapters.getOneofBytesFieldWithDefault(this,1,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_))},proto.tflite.task.vision.Segmentation.prototype.getCategoryMask_asU8=function(){return module$contents$jspb$internal$public_for_gencode_assertMutable(this),module$contents$jspb$internal$public_for_gencode_byteStringAsU8(jspb.internal.jspb_adapters.getOneofBytesFieldWithDefault(this,1,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_))},proto.tflite.task.vision.Segmentation.prototype.setCategoryMask=function(e){return jspb.internal.jspb_adapters.setOneofBytesField(this,1,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_,e)},proto.tflite.task.vision.Segmentation.prototype.clearCategoryMask=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.vision.Segmentation.prototype.hasCategoryMask=function(){return jspb.internal.jspb_adapters.hasOneofBytesField(this,1,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_)},proto.tflite.task.vision.Segmentation.prototype.getCategoryMaskOrUndefined=function(){return jspb.internal.jspb_adapters.getOneofBytesFieldOrUndefined(this,1,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_)},proto.tflite.task.vision.Segmentation.prototype.getConfidenceMasks=function(){return jspb.internal.jspb_adapters.getOneofWrapperFieldOrUndefined(this,proto.tflite.task.vision.Segmentation.ConfidenceMasks,4,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_)},proto.tflite.task.vision.Segmentation.prototype.getReadonlyConfidenceMasks=function(){return jspb.internal.jspb_adapters.getReadonlyOneofWrapperField(this,proto.tflite.task.vision.Segmentation.ConfidenceMasks,4,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_)},proto.tflite.task.vision.Segmentation.prototype.getMutableConfidenceMasks=function(){return jspb.internal.jspb_adapters.getMutableOneofWrapperField(this,proto.tflite.task.vision.Segmentation.ConfidenceMasks,4,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_)},proto.tflite.task.vision.Segmentation.prototype.setConfidenceMasks=function(e){return jspb.internal.jspb_adapters.setOneofWrapperField(this,proto.tflite.task.vision.Segmentation.ConfidenceMasks,4,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_,e)},proto.tflite.task.vision.Segmentation.prototype.clearConfidenceMasks=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.task.vision.Segmentation.prototype.hasConfidenceMasks=function(){return jspb.internal.jspb_adapters.hasOneofWrapperField(this,proto.tflite.task.vision.Segmentation.ConfidenceMasks,4,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_)},proto.tflite.task.vision.Segmentation.prototype.getWidth=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,2)},proto.tflite.task.vision.Segmentation.prototype.setWidth=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.task.vision.Segmentation.prototype.clearWidth=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.vision.Segmentation.prototype.hasWidth=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.task.vision.Segmentation.prototype.getWidthOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.task.vision.Segmentation.prototype.getHeight=function(){return jspb.internal.jspb_adapters.getInt32FieldWithDefault(this,3)},proto.tflite.task.vision.Segmentation.prototype.setHeight=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.task.vision.Segmentation.prototype.clearHeight=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.task.vision.Segmentation.prototype.hasHeight=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.task.vision.Segmentation.prototype.getHeightOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.task.vision.Segmentation.prototype.getColoredLabelsList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation.ColoredLabel,5)},proto.tflite.task.vision.Segmentation.prototype.getReadonlyColoredLabelsList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation.ColoredLabel,5)},proto.tflite.task.vision.Segmentation.prototype.setColoredLabelsList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation.ColoredLabel,5,e)},proto.tflite.task.vision.Segmentation.prototype.addColoredLabels=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,5,proto.tflite.task.vision.Segmentation.ColoredLabel,e,t)},proto.tflite.task.vision.Segmentation.prototype.addAndReturnColoredLabels=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,5,proto.tflite.task.vision.Segmentation.ColoredLabel,e,t)},proto.tflite.task.vision.Segmentation.prototype.clearColoredLabelsList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,5)},proto.tflite.task.vision.Segmentation.prototype.serializeBinary=function(){return proto.tflite.task.vision.Segmentation.serializeBinary(this)},proto.tflite.task.vision.Segmentation.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.Segmentation.internalDoNotUse$tflite$task$vision$Segmentation$binaryFieldsObject)},proto.tflite.task.vision.Segmentation.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.Segmentation.internalDoNotUse$tflite$task$vision$Segmentation$binaryFieldsObject,t)},proto.tflite.task.vision.Segmentation.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.Segmentation.internalDoNotUse$tflite$task$vision$Segmentation$binaryFieldsObject)},proto.tflite.task.vision.Segmentation.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.Segmentation,e)},proto.tflite.task.vision.Segmentation.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Segmentation&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableSegmentation"),proto.tflite.task.vision.MutableSegmentation=proto.tflite.task.vision.Segmentation,proto.tflite.task.vision.ReadonlySegmentation={},proto.tflite.task.vision.ImmutableSegmentation=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableSegmentation,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableSegmentation.prototype.getCategoryMask_asB64=function(){},proto.tflite.task.vision.ImmutableSegmentation.prototype.getCategoryMask_asBase64OrUint8Array=function(){},proto.tflite.task.vision.ImmutableSegmentation.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.Segmentation,e,t)},proto.tflite.task.vision.ImmutableSegmentation.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.Segmentation)},proto.tflite.task.vision.ImmutableSegmentation.serializeBinary=function(e){return proto.tflite.task.vision.Segmentation.serializeBinary(e)},proto.tflite.task.vision.ImmutableSegmentation.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.Segmentation.internalDoNotUse$tflite$task$vision$Segmentation$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableSegmentation.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Segmentation&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableSegmentation"),proto.tflite.task.vision.Segmentation.$internalDoNotUseConfidenceMaskReader=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseConfidenceMaskReader.prototype.getValueList=function(){},proto.tflite.task.vision.Segmentation.ConfidenceMask=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.Segmentation.ConfidenceMask.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.Segmentation.ConfidenceMask,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.Segmentation.ConfidenceMask.prototype.getValueList=function(){return jspb.internal.jspb_adapters.getRepeatedFloatingPointField(this,1)},proto.tflite.task.vision.Segmentation.ConfidenceMask.prototype.setValueList=function(e){return jspb.internal.jspb_adapters.setRepeatedField(this,1,e)},proto.tflite.task.vision.Segmentation.ConfidenceMask.prototype.addValue=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedField(this,1,e,t)},proto.tflite.task.vision.Segmentation.ConfidenceMask.prototype.clearValueList=function(){return jspb.internal.jspb_adapters.clearRepeatedField(this,1)},proto.tflite.task.vision.Segmentation.ConfidenceMask.prototype.serializeBinary=function(){return proto.tflite.task.vision.Segmentation.ConfidenceMask.serializeBinary(this)},proto.tflite.task.vision.Segmentation.ConfidenceMask.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.Segmentation.ConfidenceMask.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMask$binaryFieldsObject)},proto.tflite.task.vision.Segmentation.ConfidenceMask.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.Segmentation.ConfidenceMask.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMask$binaryFieldsObject,t)},proto.tflite.task.vision.Segmentation.ConfidenceMask.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.Segmentation.ConfidenceMask.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMask$binaryFieldsObject)},proto.tflite.task.vision.Segmentation.ConfidenceMask.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.Segmentation.ConfidenceMask,e)},proto.tflite.task.vision.Segmentation.ConfidenceMask.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Segmentation.ConfidenceMask&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableConfidenceMask"),proto.tflite.task.vision.Segmentation.MutableConfidenceMask=proto.tflite.task.vision.Segmentation.ConfidenceMask,proto.tflite.task.vision.Segmentation.ReadonlyConfidenceMask={},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMask=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.Segmentation.ImmutableConfidenceMask,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.Segmentation.ImmutableConfidenceMask.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.Segmentation.ConfidenceMask,e,t)},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMask.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.Segmentation.ConfidenceMask)},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMask.serializeBinary=function(e){return proto.tflite.task.vision.Segmentation.ConfidenceMask.serializeBinary(e)},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMask.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.Segmentation.ConfidenceMask.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMask$binaryFieldsObject,t,n)},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMask.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Segmentation.ConfidenceMask&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableConfidenceMask"),proto.tflite.task.vision.Segmentation.$internalDoNotUseConfidenceMasksReader=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseConfidenceMasksReader.prototype.getConfidenceMaskList=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseConfidenceMasksReader.prototype.getReadonlyConfidenceMaskList=function(){},proto.tflite.task.vision.Segmentation.ConfidenceMasks=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.Segmentation.ConfidenceMasks.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.Segmentation.ConfidenceMasks,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.Segmentation.ConfidenceMasks.prototype.getConfidenceMaskList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation.ConfidenceMask,1)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.prototype.getReadonlyConfidenceMaskList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation.ConfidenceMask,1)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.prototype.setConfidenceMaskList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation.ConfidenceMask,1,e)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.prototype.addConfidenceMask=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,1,proto.tflite.task.vision.Segmentation.ConfidenceMask,e,t)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.prototype.addAndReturnConfidenceMask=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,1,proto.tflite.task.vision.Segmentation.ConfidenceMask,e,t)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.prototype.clearConfidenceMaskList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,1)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.prototype.serializeBinary=function(){return proto.tflite.task.vision.Segmentation.ConfidenceMasks.serializeBinary(this)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.Segmentation.ConfidenceMasks.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMasks$binaryFieldsObject)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.Segmentation.ConfidenceMasks.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMasks$binaryFieldsObject,t)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.Segmentation.ConfidenceMasks.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMasks$binaryFieldsObject)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.Segmentation.ConfidenceMasks,e)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Segmentation.ConfidenceMasks&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableConfidenceMasks"),proto.tflite.task.vision.Segmentation.MutableConfidenceMasks=proto.tflite.task.vision.Segmentation.ConfidenceMasks,proto.tflite.task.vision.Segmentation.ReadonlyConfidenceMasks={},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMasks=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.Segmentation.ImmutableConfidenceMasks,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.Segmentation.ImmutableConfidenceMasks.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.Segmentation.ConfidenceMasks,e,t)},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMasks.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.Segmentation.ConfidenceMasks)},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMasks.serializeBinary=function(e){return proto.tflite.task.vision.Segmentation.ConfidenceMasks.serializeBinary(e)},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMasks.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.Segmentation.ConfidenceMasks.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMasks$binaryFieldsObject,t,n)},proto.tflite.task.vision.Segmentation.ImmutableConfidenceMasks.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Segmentation.ConfidenceMasks&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableConfidenceMasks"),proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getR=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.hasR=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getROrUndefined=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getG=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.hasG=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getGOrUndefined=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getB=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.hasB=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getBOrUndefined=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getClassName=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.hasClassName=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getClassNameOrUndefined=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getDisplayName=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.hasDisplayName=function(){},proto.tflite.task.vision.Segmentation.$internalDoNotUseColoredLabelReader.prototype.getDisplayNameOrUndefined=function(){},proto.tflite.task.vision.Segmentation.ColoredLabel=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e)},$jscomp.inherits(proto.tflite.task.vision.Segmentation.ColoredLabel,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getR=function(){return jspb.internal.jspb_adapters.getUint32FieldWithDefault(this,1)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.setR=function(e){return jspb.internal.jspb_adapters.setField(this,1,e)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.clearR=function(){return jspb.internal.jspb_adapters.clearField(this,1)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.hasR=function(){return jspb.internal.jspb_adapters.hasField(this,1)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getROrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,1)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getG=function(){return jspb.internal.jspb_adapters.getUint32FieldWithDefault(this,2)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.setG=function(e){return jspb.internal.jspb_adapters.setField(this,2,e)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.clearG=function(){return jspb.internal.jspb_adapters.clearField(this,2)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.hasG=function(){return jspb.internal.jspb_adapters.hasField(this,2)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getGOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,2)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getB=function(){return jspb.internal.jspb_adapters.getUint32FieldWithDefault(this,3)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.setB=function(e){return jspb.internal.jspb_adapters.setField(this,3,e)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.clearB=function(){return jspb.internal.jspb_adapters.clearField(this,3)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.hasB=function(){return jspb.internal.jspb_adapters.hasField(this,3)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getBOrUndefined=function(){return jspb.internal.jspb_adapters.getFieldOrUndefined(this,3)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getClassName=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,4)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.setClassName=function(e){return jspb.internal.jspb_adapters.setStringField(this,4,e)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.clearClassName=function(){return jspb.internal.jspb_adapters.clearField(this,4)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.hasClassName=function(){return jspb.internal.jspb_adapters.hasStringField(this,4)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getClassNameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,4)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getDisplayName=function(){return jspb.internal.jspb_adapters.getStringFieldWithDefault(this,5)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.setDisplayName=function(e){return jspb.internal.jspb_adapters.setStringField(this,5,e)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.clearDisplayName=function(){return jspb.internal.jspb_adapters.clearField(this,5)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.hasDisplayName=function(){return jspb.internal.jspb_adapters.hasStringField(this,5)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.getDisplayNameOrUndefined=function(){return jspb.internal.jspb_adapters.getStringFieldOrUndefined(this,5)},proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.serializeBinary=function(){return proto.tflite.task.vision.Segmentation.ColoredLabel.serializeBinary(this)},proto.tflite.task.vision.Segmentation.ColoredLabel.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.Segmentation.ColoredLabel.internalDoNotUse$tflite$task$vision$Segmentation$ColoredLabel$binaryFieldsObject)},proto.tflite.task.vision.Segmentation.ColoredLabel.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.Segmentation.ColoredLabel.internalDoNotUse$tflite$task$vision$Segmentation$ColoredLabel$binaryFieldsObject,t)},proto.tflite.task.vision.Segmentation.ColoredLabel.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.Segmentation.ColoredLabel.internalDoNotUse$tflite$task$vision$Segmentation$ColoredLabel$binaryFieldsObject)},proto.tflite.task.vision.Segmentation.ColoredLabel.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.Segmentation.ColoredLabel,e)},proto.tflite.task.vision.Segmentation.ColoredLabel.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Segmentation.ColoredLabel&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableColoredLabel"),proto.tflite.task.vision.Segmentation.MutableColoredLabel=proto.tflite.task.vision.Segmentation.ColoredLabel,proto.tflite.task.vision.Segmentation.ReadonlyColoredLabel={},proto.tflite.task.vision.Segmentation.ImmutableColoredLabel=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.Segmentation.ImmutableColoredLabel,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.Segmentation.ImmutableColoredLabel.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.Segmentation.ColoredLabel,e,t)},proto.tflite.task.vision.Segmentation.ImmutableColoredLabel.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.Segmentation.ColoredLabel)},proto.tflite.task.vision.Segmentation.ImmutableColoredLabel.serializeBinary=function(e){return proto.tflite.task.vision.Segmentation.ColoredLabel.serializeBinary(e)},proto.tflite.task.vision.Segmentation.ImmutableColoredLabel.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.Segmentation.ColoredLabel.internalDoNotUse$tflite$task$vision$Segmentation$ColoredLabel$binaryFieldsObject,t,n)},proto.tflite.task.vision.Segmentation.ImmutableColoredLabel.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.Segmentation.ColoredLabel&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableColoredLabel"),proto.tflite.task.vision.Segmentation.repeatedFields_=[5],proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_=[1,4],proto.tflite.task.vision.Segmentation.MaskOneofCase={MASK_ONEOF_NOT_SET:0,CATEGORY_MASK:1,CONFIDENCE_MASKS:4},proto.tflite.task.vision.Segmentation.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.Segmentation.fromObject=function(e){var t=new proto.tflite.task.vision.Segmentation;return jspb.internal.jspb_adapters.setOneofBytesFieldIfNotNullish(t,1,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_,e.categoryMask),jspb.internal.jspb_adapters.setOneofWrapperFieldIfNotNullish(t,proto.tflite.task.vision.Segmentation.ConfidenceMasks,4,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_,module$contents$jspb$internal$public_for_gencode_fromObjectNullable(e.confidenceMasks,proto.tflite.task.vision.Segmentation.ConfidenceMasks.fromObject)),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.width),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.height),jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.task.vision.Segmentation.ColoredLabel,5,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.coloredLabelsList,proto.tflite.task.vision.Segmentation.ColoredLabel.fromObject)),t}),proto.tflite.task.vision.Segmentation.prototype.toObject=function(e){return proto.tflite.task.vision.Segmentation.internal_toObject(e,this)},proto.tflite.task.vision.Segmentation.internal_toObject=function(e,t){if(null!=t){var n={categoryMask:module$contents$jspb$internal$public_for_gencode_toObjectBytes(t.getCategoryMask()),confidenceMasks:proto.tflite.task.vision.Segmentation.ConfidenceMasks.internal_toObject(e,t.getConfidenceMasks()),width:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),height:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3)),coloredLabelsList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getColoredLabelsList(),proto.tflite.task.vision.Segmentation.ColoredLabel.internal_toObject,e)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.Segmentation.ConfidenceMask.repeatedFields_=[1],proto.tflite.task.vision.Segmentation.ConfidenceMask.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.Segmentation.ConfidenceMask.fromObject=function(e){var t=new proto.tflite.task.vision.Segmentation.ConfidenceMask;return jspb.internal.jspb_adapters.setRepeatedFieldIfNotNullish(t,1,e.valueList),t}),proto.tflite.task.vision.Segmentation.ConfidenceMask.prototype.toObject=function(e){return proto.tflite.task.vision.Segmentation.ConfidenceMask.internal_toObject(e,this)},proto.tflite.task.vision.Segmentation.ConfidenceMask.internal_toObject=function(e,t){if(null!=t){var n={valueList:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getRepeatedFloatingPointField(t,1))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.Segmentation.ConfidenceMasks.repeatedFields_=[1],proto.tflite.task.vision.Segmentation.ConfidenceMasks.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.Segmentation.ConfidenceMasks.fromObject=function(e){var t=new proto.tflite.task.vision.Segmentation.ConfidenceMasks;return jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.task.vision.Segmentation.ConfidenceMask,1,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.confidenceMaskList,proto.tflite.task.vision.Segmentation.ConfidenceMask.fromObject)),t}),proto.tflite.task.vision.Segmentation.ConfidenceMasks.prototype.toObject=function(e){return proto.tflite.task.vision.Segmentation.ConfidenceMasks.internal_toObject(e,this)},proto.tflite.task.vision.Segmentation.ConfidenceMasks.internal_toObject=function(e,t){if(null!=t){var n={confidenceMaskList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getConfidenceMaskList(),proto.tflite.task.vision.Segmentation.ConfidenceMask.internal_toObject,e)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.Segmentation.ColoredLabel.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.Segmentation.ColoredLabel.fromObject=function(e){var t=new proto.tflite.task.vision.Segmentation.ColoredLabel;return jspb.internal.jspb_adapters.setFieldIfNotNullish(t,1,e.r),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,2,e.g),jspb.internal.jspb_adapters.setFieldIfNotNullish(t,3,e.b),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,4,e.className),jspb.internal.jspb_adapters.setStringFieldIfNotNullish(t,5,e.displayName),t}),proto.tflite.task.vision.Segmentation.ColoredLabel.prototype.toObject=function(e){return proto.tflite.task.vision.Segmentation.ColoredLabel.internal_toObject(e,this)},proto.tflite.task.vision.Segmentation.ColoredLabel.internal_toObject=function(e,t){if(null!=t){var n={r:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,1)),g:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,2)),b:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getFieldNullable(t,3)),className:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,4)),displayName:module$contents$jspb$internal$public_for_gencode_toObjectPrimitive(jspb.internal.jspb_adapters.getStringFieldNullable(t,5))};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.Segmentation.ColoredLabel.internalDoNotUse$tflite$task$vision$Segmentation$ColoredLabel$binaryFieldsObject=[proto.tflite.task.vision.Segmentation.ColoredLabel,1,jspb.internal.binary.RWUint32,2,jspb.internal.binary.RWUint32,3,jspb.internal.binary.RWUint32,4,jspb.internal.binary.RWString,5,jspb.internal.binary.RWString],proto.tflite.task.vision.Segmentation.ConfidenceMask.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMask$binaryFieldsObject=[proto.tflite.task.vision.Segmentation.ConfidenceMask,1,jspb.internal.binary.RPackableFloatIntoWPackedFloat],proto.tflite.task.vision.Segmentation.ConfidenceMasks.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMasks$binaryFieldsObject=[proto.tflite.task.vision.Segmentation.ConfidenceMasks,1,jspb.internal.binary.RWRepeatedMessage,proto.tflite.task.vision.Segmentation.ConfidenceMask.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMask$binaryFieldsObject],proto.tflite.task.vision.Segmentation.internalDoNotUse$tflite$task$vision$Segmentation$binaryFieldsObject=[proto.tflite.task.vision.Segmentation,1,jspb.internal.binary.RBytesOneofWBytes,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_,4,jspb.internal.binary.RMessageOneofWMessage,proto.tflite.task.vision.Segmentation.ConfidenceMasks.internalDoNotUse$tflite$task$vision$Segmentation$ConfidenceMasks$binaryFieldsObject,proto.tflite.task.vision.Segmentation.oneofGroup_MaskOneof_,2,jspb.internal.binary.RWInt32,3,jspb.internal.binary.RWInt32,5,jspb.internal.binary.RWRepeatedMessage,proto.tflite.task.vision.Segmentation.ColoredLabel.internalDoNotUse$tflite$task$vision$Segmentation$ColoredLabel$binaryFieldsObject],proto.tflite.task.vision.$internalDoNotUseSegmentationResultReader=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationResultReader.prototype.getSegmentationList=function(){},proto.tflite.task.vision.$internalDoNotUseSegmentationResultReader.prototype.getReadonlySegmentationList=function(){},proto.tflite.task.vision.SegmentationResult=function(e){module$contents$jspb$internal$public_for_gencode_GeneratedMessage.call(this,e,-1,proto.tflite.task.vision.SegmentationResult.repeatedFields_)},$jscomp.inherits(proto.tflite.task.vision.SegmentationResult,module$contents$jspb$internal$public_for_gencode_GeneratedMessage),proto.tflite.task.vision.SegmentationResult.prototype.getSegmentationList=function(){return jspb.internal.jspb_adapters.getRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation,1)},proto.tflite.task.vision.SegmentationResult.prototype.getReadonlySegmentationList=function(){return jspb.internal.jspb_adapters.getReadonlyRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation,1)},proto.tflite.task.vision.SegmentationResult.prototype.setSegmentationList=function(e){return jspb.internal.jspb_adapters.setRepeatedWrapperField(this,proto.tflite.task.vision.Segmentation,1,e)},proto.tflite.task.vision.SegmentationResult.prototype.addSegmentation=function(e,t){return jspb.internal.jspb_adapters.addToRepeatedWrapperField(this,1,proto.tflite.task.vision.Segmentation,e,t)},proto.tflite.task.vision.SegmentationResult.prototype.addAndReturnSegmentation=function(e,t){return jspb.internal.jspb_adapters.addAndReturnRepeatedWrapperField(this,1,proto.tflite.task.vision.Segmentation,e,t)},proto.tflite.task.vision.SegmentationResult.prototype.clearSegmentationList=function(){return jspb.internal.jspb_adapters.clearRepeatedWrapperField(this,1)},proto.tflite.task.vision.SegmentationResult.prototype.serializeBinary=function(){return proto.tflite.task.vision.SegmentationResult.serializeBinary(this)},proto.tflite.task.vision.SegmentationResult.serializeBinary=function(e){return jspb.internal.binary.serializeBinary(e,proto.tflite.task.vision.SegmentationResult.internalDoNotUse$tflite$task$vision$SegmentationResult$binaryFieldsObject)},proto.tflite.task.vision.SegmentationResult.deserializeBinary=function(e,t){return jspb.internal.binary.deserializeBinary(e,proto.tflite.task.vision.SegmentationResult.internalDoNotUse$tflite$task$vision$SegmentationResult$binaryFieldsObject,t)},proto.tflite.task.vision.SegmentationResult.deserializeBinaryFromReader=function(e,t){return jspb.internal.binary.deserializeBinaryFromReaderGeneric(e,t,proto.tflite.task.vision.SegmentationResult.internalDoNotUse$tflite$task$vision$SegmentationResult$binaryFieldsObject)},proto.tflite.task.vision.SegmentationResult.deserialize=function(e){return module$exports$jspb.Message.deserializeWithCtor(proto.tflite.task.vision.SegmentationResult,e)},proto.tflite.task.vision.SegmentationResult.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.SegmentationResult&&!module$contents$jspb$internal_isImmutableMessage(e)},"MutableSegmentationResult"),proto.tflite.task.vision.MutableSegmentationResult=proto.tflite.task.vision.SegmentationResult,proto.tflite.task.vision.ReadonlySegmentationResult={},proto.tflite.task.vision.ImmutableSegmentationResult=function(){module$exports$jspb$immutable_message.ImmutableMessage.call(this)},$jscomp.inherits(proto.tflite.task.vision.ImmutableSegmentationResult,module$exports$jspb$immutable_message.ImmutableMessage),proto.tflite.task.vision.ImmutableSegmentationResult.deserialize=function(e,t){return module$contents$jspb$internal$public_for_gencode_untypedDeserializeAsImmutable(proto.tflite.task.vision.SegmentationResult,e,t)},proto.tflite.task.vision.ImmutableSegmentationResult.getDefaultInstance=function(){return jspb.internal.jspb_adapters.getDefaultImmutableInstance(proto.tflite.task.vision.SegmentationResult)},proto.tflite.task.vision.ImmutableSegmentationResult.serializeBinary=function(e){return proto.tflite.task.vision.SegmentationResult.serializeBinary(e)},proto.tflite.task.vision.ImmutableSegmentationResult.deserializeBinary=function(e,t,n){return jspb.internal.binary.deserializeBinaryImmutable(e,proto.tflite.task.vision.SegmentationResult.internalDoNotUse$tflite$task$vision$SegmentationResult$binaryFieldsObject,t,n)},proto.tflite.task.vision.ImmutableSegmentationResult.hasInstance=module$contents$google3$javascript$common$asserts$asserts_guard(function(e){return e instanceof proto.tflite.task.vision.SegmentationResult&&module$contents$jspb$internal_isImmutableMessage(e)},"ImmutableSegmentationResult"),proto.tflite.task.vision.SegmentationResult.repeatedFields_=[1],proto.tflite.task.vision.SegmentationResult.ObjectFormat=function(){},module$contents$jspb$internal$public_for_gencode_GENERATE_FROM_OBJECT&&(proto.tflite.task.vision.SegmentationResult.fromObject=function(e){var t=new proto.tflite.task.vision.SegmentationResult;return jspb.internal.jspb_adapters.setRepeatedWrapperField(t,proto.tflite.task.vision.Segmentation,1,module$contents$jspb$internal$public_for_gencode_fromObjectList(e.segmentationList,proto.tflite.task.vision.Segmentation.fromObject)),t}),proto.tflite.task.vision.SegmentationResult.prototype.toObject=function(e){return proto.tflite.task.vision.SegmentationResult.internal_toObject(e,this)},proto.tflite.task.vision.SegmentationResult.internal_toObject=function(e,t){if(null!=t){var n={segmentationList:module$contents$jspb$internal$public_for_gencode_toObjectList(t.getSegmentationList(),proto.tflite.task.vision.Segmentation.internal_toObject,e)};return e&&(n.$jspbMessageInstance=t),n}},proto.tflite.task.vision.SegmentationResult.internalDoNotUse$tflite$task$vision$SegmentationResult$binaryFieldsObject=[proto.tflite.task.vision.SegmentationResult,1,jspb.internal.binary.RWRepeatedMessage,proto.tflite.task.vision.Segmentation.internalDoNotUse$tflite$task$vision$Segmentation$binaryFieldsObject];var module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils={},module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_WASM_SIMD_CHECK=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]),module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_WASM_MULTI_THREADED_CHECK=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]),module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_wasmFeatures=void 0;module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.convertCppVectorToArray=function(e){if(null==e)return[];for(var t=[],n=0;n<e.size();n++){var r=e.get(n);t.push(r)}return t},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete=function(e,t){try{return t(e)}finally{null!=e&&e.delete()}},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callWithStatusOrAndDelete=function(e,t,n){try{if(!e.ok())throw Error(t+e.errorMessage());return n(e.value())}finally{e.delete()}};var module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_fromPixels2DContext=null;function module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_isSupportedSimd(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){switch(e.nextAddress){case 1:return e.setCatchFinallyBlocks(2),e.yield(WebAssembly.instantiate(module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_WASM_SIMD_CHECK),4);case 4:e.leaveTryBlock(3);break;case 2:return e.enterCatchBlock(),e.return(!1);case 3:return e.return(!0)}})}function module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_isSupportedMultiThreaded(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){switch(e.nextAddress){case 1:return e.setCatchFinallyBlocks(2),(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),e.yield(WebAssembly.instantiate(module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_WASM_MULTI_THREADED_CHECK),4);case 4:e.leaveTryBlock(3);break;case 2:return e.enterCatchBlock(),e.return(!1);case 3:return e.return(!0)}})}module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.fromPixels=function(e){if(null==e)throw Error("pixels passed to fromPixels() can not be null");var t=!1,n=!1,r=!1,i=!1;if("undefined"!=typeof ImageData&&e instanceof ImageData)t=!0;else if("undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement)n=!0;else if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement)r=!0;else{if(null==e.getContext)throw Error("pixels passed to fromPixels() must be either an HTMLVideoElement, HTMLImageElement, HTMLCanvasElement, ImageData in browser, or OffscreenCanvas, ImageData in webworker or {data: Uint32Array, width: number, height: number}, but was "+e.constructor.name);i=!0}if(n&&n&&2>e.readyState)throw Error("The video element has not loaded data yet. Please wait for `loadeddata` event on the <video> element.");var a=$jscomp.makeIterator(n?[e.videoWidth,e.videoHeight]:[e.width,e.height]),o=a.next().value;if(a=a.next().value,i)var s=e.getContext("2d").getImageData(0,0,o,a).data;else t?s=e.data:(r||n)&&(null==module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_fromPixels2DContext&&(module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_fromPixels2DContext=document.createElement("canvas").getContext("2d")),module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_fromPixels2DContext.canvas.width=o,module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_fromPixels2DContext.canvas.height=a,module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_fromPixels2DContext.drawImage(e,0,0,o,a),s=module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_fromPixels2DContext.getImageData(0,0,o,a).data);return{vals:s,width:o,height:a}},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.getWasmFeatures=function(){var e,t,n;return $jscomp.asyncExecutePromiseGeneratorProgram(function(r){return 1==r.nextAddress?module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_wasmFeatures?r.jumpTo(2):(t=(e=$jscomp).makeIterator,r.yield(Promise.all([module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_isSupportedSimd(),module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_isSupportedMultiThreaded()]),3)):(2!=r.nextAddress&&(module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_wasmFeatures={simd:(n=t.call(e,r.yieldResult)).next().value,multiThreading:n.next().value}),r.return(module$contents$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils_wasmFeatures))})};var module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader={EmscriptenModuleLoader:function(e,t,n){this.wasmModulesPath=e,this.tfliteWebApiName=t,this.wasmWebWorkerObjectURL=n,this.scriptSrc="",this.scriptSrc=!this.isWebWorker()&&document.currentScript&&document.currentScript.getAttribute("src")||""}};module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance=function(e,t,n){var r=e+t;return n=URL.createObjectURL(new Blob([n],{type:"application/javascript"})),module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.instances.has(r)||(e=new module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader(e,t,n),module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.instances.set(r,e)),module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.instances.get(r)},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.prototype.load=function(e){return this.loadPromise||(this.loadPromise=this.loadModule(void 0!==e&&e)),this.loadPromise},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.prototype.loadModule=function(e){e=void 0!==e&&e;var t,n,r,i,a,o,s,l,u,c,p,d=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){return 1==f.nextAddress?f.
2yield(d.genFullLoaderUrl(),2):3!=f.nextAddress?((t=f.yieldResult).startsWith("http")||(t.startsWith("/")?t=d.scriptSrc.startsWith("http")?""+(0,goog.uri.utils.getHost)(d.scriptSrc)+t:""+d.getLocation().origin+t:e?d.scriptSrc.startsWith("http")?(n=d.scriptSrc.lastIndexOf("/"),t=d.scriptSrc.substring(0,n)+"/"+t):d.scriptSrc.startsWith("/")?(r=d.scriptSrc.lastIndexOf("/"),i=d.scriptSrc.substring(0,r),t=""+d.getLocation().origin+i+"/"+t):(a=d.getLocation().href.lastIndexOf("/"),o=d.getLocation().href.substring(0,a),t=0>(s=d.scriptSrc.lastIndexOf("/"))?o+"/"+t:o+"/"+d.scriptSrc.substring(0,s)+"/"+t):(u=(l=d.getLocation().href).lastIndexOf("/"),t=l.substring(0,u)+"/"+t)),c=!0,f.yield(d.loadScript(t).catch(function(){c=!1}),3)):c?(p=d.isWebWorker()?self:window,f.return(p[d.tfliteWebApiName+"_ModuleFactory"]({mainScriptUrlOrBlob:t,locateFile:function(e,n){if(e.endsWith(".worker.js"))return d.wasmWebWorkerObjectURL;if(d.isWebWorker()&&e.endsWith(".wasm")){n="";var r=t.lastIndexOf("/");return 0<=r&&(n=t.substring(0,r+1)),n+e}return n+e}}))):f.return(void 0)})},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.prototype.genFullLoaderUrl=function(){var e,t,n,r,i=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return 1==a.nextAddress?(e=[i.wasmModulesPath,i.tfliteWebApiName,"_cc"],a.yield((0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.getWasmFeatures)(),2)):(n=(t=a.yieldResult).simd,r=t.multiThreading,n&&r?e.push("_simd_threaded.js"):!n&&r?e.push("_threaded.js"):n&&!r?e.push("_simd.js"):e.push(".js"),a.return(e.join("")))})},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.prototype.loadScript=function(e){var t,n,r=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(i){return r.isWebWorker()?(importScripts(e),i.jumpTo(0)):((t=document.createElement("script")).setAttribute("id",r.tfliteWebApiName+"_loader_script"),n=new Promise(function(e,n){t.onerror=function(){n(),document.head.removeChild(t)},t.onload=e}),document.head.appendChild(t),t.setAttribute("src",e),i.yield(n,0))})},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.prototype.getLocation=function(){if(this.isWebWorker()){var e=self.location;return{origin:e.origin,href:e=e.href.replace("blob:","")}}return window.location},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.prototype.isWebWorker=function(){return"undefined"==typeof window},module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.instances=new Map;var module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client={};module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.getWasmFeatures=module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.getWasmFeatures;var module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath="";function module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_setWasmPath(e){module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath=e}module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.setWasmPath=module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_setWasmPath,module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier=function(e,t,n){this.module=e,this.memOffsetsToFree=t,this.cppClassifier=n},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier.create=function(e,t){var n,r,i,a,o,s,l,u,c,p,d,f;return t=void 0===t?new proto.tflite.task.text.BertNLClassifierOptions:t,$jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==h.nextAddress)return n=module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance(module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath,"tflite_web_api",'"use strict";var Module={};var initializedJS=false;
2var pendingNotifiedProxyingQueues=[];function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onunhandledrejection=e=>{throw e.reason??e};self.onmessage=e=>{try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}tflite_web_api_ModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();pendingNotifiedProxyingQueues.forEach(queue=>{Module["executeNotifiedProxyingQueue"](queue)});pendingNotifiedProxyingQueues=[];initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processProxyingQueue"){if(initializedJS){Module["executeNotifiedProxyingQueue"](e.data.queue)}else{pendingNotifiedProxyingQueues.push(e.data.queue)}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}};\n'),i=(r=$jscomp).makeIterator,h.yield(Promise.all([n.load(),"string"==typeof e?fetch(e).then(function(e){return e.arrayBuffer()}):Promise.resolve(e)]),2);if(o=(a=i.call(r,h.yieldResult)).next().value,s=a.next().value,l=o,u=new Uint8Array(s),c=l._malloc(u.length),l.HEAPU8.set(u,c),null==(d=p=(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(new l.BertNLClassifierOptionsCppProto,function(e){if(null!=e)return e.initFromJsProto(t),l.BertNLClassifier.CreateFromOptions(c,u.length,e)}))||!d.ok())throw Error("Failed to create BertNLClassifier: "+(null==(f=p)?void 0:f.errorMessage()));return h.return(new module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier(l,[c],p.value()))})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier.prototype.classify=function(e){if(null!=this.cppClassifier)return e=this.cppClassifier.Classify(e),(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(e,function(e){return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.convertCppVectorToArray)(e)})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier.prototype.cleanUp=function(){if(null!=this.cppClassifier){for(var e=$jscomp.makeIterator(this.memOffsetsToFree),t=e.next();!t.done;t=e.next())this.module._free(t.value);this.cppClassifier.delete()}},goog.exportSymbol("tfweb.BertNLClassifierOptions",proto.tflite.task.text.BertNLClassifierOptions),goog.exportSymbol("tfweb.BertNLClassifierOptions.prototype.serializeBinary",proto.tflite.task.text.BertNLClassifierOptions.prototype.serializeBinary),goog.exportSymbol("tfweb.BertNLClassifier",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier),goog.exportSymbol("tfweb.BertNLClassifier.create",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier.create),goog.exportSymbol("tfweb.BertNLClassifier.prototype.classify",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier.prototype.classify),goog.exportSymbol("tfweb.BertNLClassifier.prototype.cleanUp",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertNLClassifier.prototype.cleanUp),module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer=function(e,t,n){this.module=e,this.memOffsetsToFree=t,this.cppClassifier=n},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer.create=function(e){var t,n,r,i,a,o,s,l,u,c,p,d;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return t=module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance(module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath,"tflite_web_api",'"use strict";var Module={};var initializedJS=false;
2var pendingNotifiedProxyingQueues=[];function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onunhandledrejection=e=>{throw e.reason??e};self.onmessage=e=>{try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}tflite_web_api_ModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();pendingNotifiedProxyingQueues.forEach(queue=>{Module["executeNotifiedProxyingQueue"](queue)});pendingNotifiedProxyingQueues=[];initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processProxyingQueue"){if(initializedJS){Module["executeNotifiedProxyingQueue"](e.data.queue)}else{pendingNotifiedProxyingQueues.push(e.data.queue)}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}};\n'),r=(n=$jscomp).makeIterator,f.yield(Promise.all([t.load(),"string"==typeof e?fetch(e).then(function(e){return e.arrayBuffer()}):Promise.resolve(e)]),2);if(a=(i=r.call(n,f.yieldResult)).next().value,o=i.next().value,s=a,l=new Uint8Array(o),u=s._malloc(l.length),s.HEAPU8.set(l,u),null==(p=c=s.BertQuestionAnswerer.CreateFromBuffer(u,l.length))||!p.ok())throw Error("Failed to create BertQuestionAnswerer: "+(null==(d=c)?void 0:d.errorMessage()));return f.return(new module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer(s,[u],c.value()))})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer.prototype.answer=function(e,t){if(null!=this.cppClassifier)return e=this.cppClassifier.Answer(e,t),(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(e,function(e){return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.convertCppVectorToArray)(e)})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer.prototype.cleanUp=function(){if(null!=this.cppClassifier){for(var e=$jscomp.makeIterator(this.memOffsetsToFree),t=e.next();!t.done;t=e.next())this.module._free(t.value);this.cppClassifier.delete()}},goog.exportSymbol("tfweb.BertQuestionAnswerer",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer),goog.exportSymbol("tfweb.BertQuestionAnswerer.create",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer.create),goog.exportSymbol("tfweb.BertQuestionAnswerer.prototype.answer",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer.prototype.answer),goog.exportSymbol("tfweb.BertQuestionAnswerer.prototype.cleanUp",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.BertQuestionAnswerer.prototype.cleanUp),module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier=function(e,t,n){this.module=e,this.memOffsetsToFree=t,this.cppClassifier=n},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier.create=function(e,t){var n,r,i,a,o,s,l,u,c,p,d,f;return t=void 0===t?new proto.tflite.task.vision.ImageClassifierOptions:t,$jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==h.nextAddress)return n=module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance(module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath,"tflite_web_api",'"use strict";var Module={};var initializedJS=false;
2var pendingNotifiedProxyingQueues=[];function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onunhandledrejection=e=>{throw e.reason??e};self.onmessage=e=>{try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}tflite_web_api_ModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();pendingNotifiedProxyingQueues.forEach(queue=>{Module["executeNotifiedProxyingQueue"](queue)});pendingNotifiedProxyingQueues=[];initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processProxyingQueue"){if(initializedJS){Module["executeNotifiedProxyingQueue"](e.data.queue)}else{pendingNotifiedProxyingQueues.push(e.data.queue)}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}};\n'),i=(r=$jscomp).makeIterator,h.yield(Promise.all([n.load(),"string"==typeof e?fetch(e).then(function(e){return e.arrayBuffer()}):Promise.resolve(e)]),2);if(o=(a=i.call(r,h.yieldResult)).next().value,s=a.next().value,l=o,u=new Uint8Array(s),c=l._malloc(u.length),l.HEAPU8.set(u,c),null==(d=p=(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(new l.ImageClassifierOptionsCppProto,function(e){if(null!=e)return e.initFromJsProto(t),l.ImageClassifier.CreateFromOptions(c,u.length,e)}))||!d.ok())throw Error("Failed to create ImageClassifier: "+(null==(f=p)?void 0:f.errorMessage()));return h.return(new module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier(l,[c],p.value()))})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier.prototype.classify=function(e){if(null!=this.cppClassifier){var t=(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.fromPixels)(e);e=t.vals;var n=t.width,r=t.height;if(null!=e)return t=this.module._malloc(e.length),this.module.HEAPU8.set(e,t),e=this.cppClassifier.Classify(t,n,r),this.module._free(t),(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callWithStatusOrAndDelete)(e,"Failed to run inference method classify: ",function(e){return e=e.toArrayBuffer(),proto.tflite.task.vision.ClassificationResult.deserializeBinary(e)})}},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier.prototype.cleanUp=function(){if(null!=this.cppClassifier){for(var e=$jscomp.makeIterator(this.memOffsetsToFree),t=e.next();!t.done;t=e.next())this.module._free(t.value);this.cppClassifier.delete()}},goog.exportSymbol("tfweb.ClassificationResult",proto.tflite.task.vision.ClassificationResult),goog.exportSymbol("tfweb.ClassificationResult.prototype.serializeBinary",proto.tflite.task.vision.ClassificationResult.prototype.serializeBinary),goog.exportSymbol("tfweb.ImageClassifierOptions",proto.tflite.task.vision.ImageClassifierOptions),goog.exportSymbol("tfweb.ImageClassifierOptions.prototype.serializeBinary",proto.tflite.task.vision.ImageClassifierOptions.prototype.serializeBinary),goog.exportSymbol("tfweb.ImageClassifier",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier),goog.exportSymbol("tfweb.ImageClassifier.create",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier.create),goog.exportSymbol("tfweb.ImageClassifier.prototype.classify",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier.prototype.classify),goog.exportSymbol("tfweb.ImageClassifier.prototype.cleanUp",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageClassifier.prototype.cleanUp),module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter=function(e,t,n){this.module=e,this.memOffsetsToFree=t,this.cppClassifier=n},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter.create=function(e,t){var n,r,i,a,o,s,l,u,c,p,d,f;return t=void 0===t?new proto.tflite.task.vision.ImageSegmenterOptions:t,$jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==h.nextAddress)return n=module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance(module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath,"tflite_web_api",'"use strict";var Module={};var initializedJS=false;
2var pendingNotifiedProxyingQueues=[];function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onunhandledrejection=e=>{throw e.reason??e};self.onmessage=e=>{try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}tflite_web_api_ModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();pendingNotifiedProxyingQueues.forEach(queue=>{Module["executeNotifiedProxyingQueue"](queue)});pendingNotifiedProxyingQueues=[];initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processProxyingQueue"){if(initializedJS){Module["executeNotifiedProxyingQueue"](e.data.queue)}else{pendingNotifiedProxyingQueues.push(e.data.queue)}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}};\n'),i=(r=$jscomp).makeIterator,h.yield(Promise.all([n.load(),"string"==typeof e?fetch(e).then(function(e){return e.arrayBuffer()}):Promise.resolve(e)]),2);if(o=(a=i.call(r,h.yieldResult)).next().value,s=a.next().value,l=o,u=new Uint8Array(s),c=l._malloc(u.length),l.HEAPU8.set(u,c),null==(d=p=(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(new l.ImageSegmenterOptionsCppProto,function(e){if(null!=e)return e.initFromJsProto(t),l.ImageSegmenter.CreateFromOptions(c,u.length,e)}))||!d.ok())throw Error("Failed to create ImageSegmenter: "+(null==(f=p)?void 0:f.errorMessage()));return h.return(new module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter(l,[c],p.value()))})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter.prototype.segment=function(e){if(null!=this.cppClassifier){var t=(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.fromPixels)(e);e=t.vals;var n=t.width,r=t.height;if(null!=e)return t=this.module._malloc(e.length),this.module.HEAPU8.set(e,t),e=this.cppClassifier.Segment(t,n,r),this.module._free(t),(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callWithStatusOrAndDelete)(e,"Failed to run inference method segment: ",function(e){return e=e.toArrayBuffer(),proto.tflite.task.vision.SegmentationResult.deserializeBinary(e)})}},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter.prototype.cleanUp=function(){if(null!=this.cppClassifier){for(var e=$jscomp.makeIterator(this.memOffsetsToFree),t=e.next();!t.done;t=e.next())this.module._free(t.value);this.cppClassifier.delete()}},goog.exportSymbol("tfweb.ImageSegmenterOptions",proto.tflite.task.vision.ImageSegmenterOptions),goog.exportSymbol("tfweb.ImageSegmenterOptions.prototype.serializeBinary",proto.tflite.task.vision.ImageSegmenterOptions.prototype.serializeBinary),goog.exportSymbol("tfweb.SegmentationResult",proto.tflite.task.vision.SegmentationResult),goog.exportSymbol("tfweb.SegmentationResult.prototype.serializeBinary",proto.tflite.task.vision.SegmentationResult.prototype.serializeBinary),goog.exportSymbol("tfweb.ImageSegmenter",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter),goog.exportSymbol("tfweb.ImageSegmenter.create",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter.create),goog.exportSymbol("tfweb.ImageSegmenter.prototype.segment",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter.prototype.segment),goog.exportSymbol("tfweb.ImageSegmenter.prototype.cleanUp",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ImageSegmenter.prototype.cleanUp),module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier=function(e,t,n){this.module=e,this.memOffsetsToFree=t,this.cppClassifier=n},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier.create=function(e,t){var n,r,i,a,o,s,l,u,c,p,d,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==h.nextAddress)return n=module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance(module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath,"tflite_web_api",'"use strict";var Module={};var initializedJS=false;
2var pendingNotifiedProxyingQueues=[];function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onunhandledrejection=e=>{throw e.reason??e};self.onmessage=e=>{try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}tflite_web_api_ModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();pendingNotifiedProxyingQueues.forEach(queue=>{Module["executeNotifiedProxyingQueue"](queue)});pendingNotifiedProxyingQueues=[];initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processProxyingQueue"){if(initializedJS){Module["executeNotifiedProxyingQueue"](e.data.queue)}else{pendingNotifiedProxyingQueues.push(e.data.queue)}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}};\n'),i=(r=$jscomp).makeIterator,h.yield(Promise.all([n.load(),"string"==typeof e?fetch(e).then(function(e){return e.arrayBuffer()}):Promise.resolve(e)]),2);if(o=(a=i.call(r,h.yieldResult)).next().value,s=a.next().value,l=o,u=new Uint8Array(s),c=l._malloc(u.length),l.HEAPU8.set(u,c),null==(d=p=l.NLClassifier.CreateFromBufferAndOptions(c,u.length,t))||!d.ok())throw Error("Failed to create NLClassifier: "+(null==(f=p)?void 0:f.errorMessage()));return h.return(new module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier(l,[c],p.value()))})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier.prototype.classify=function(e){if(null!=this.cppClassifier)return e=this.cppClassifier.Classify(e),(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(e,function(e){return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.convertCppVectorToArray)(e)})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier.prototype.cleanUp=function(){if(null!=this.cppClassifier){for(var e=$jscomp.makeIterator(this.memOffsetsToFree),t=e.next();!t.done;t=e.next())this.module._free(t.value);this.cppClassifier.delete()}},goog.exportSymbol("tfweb.NLClassifier",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier),goog.exportSymbol("tfweb.NLClassifier.create",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier.create),goog.exportSymbol("tfweb.NLClassifier.prototype.classify",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier.prototype.classify),goog.exportSymbol("tfweb.NLClassifier.prototype.cleanUp",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.NLClassifier.prototype.cleanUp),module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector=function(e,t,n){this.module=e,this.memOffsetsToFree=t,this.cppClassifier=n},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector.create=function(e,t){var n,r,i,a,o,s,l,u,c,p,d,f;return t=void 0===t?new proto.tflite.task.vision.ObjectDetectorOptions:t,$jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==h.nextAddress)return n=module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance(module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath,"tflite_web_api",'"use strict";var Module={};var initializedJS=false;
2var pendingNotifiedProxyingQueues=[];function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onunhandledrejection=e=>{throw e.reason??e};self.onmessage=e=>{try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}tflite_web_api_ModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();pendingNotifiedProxyingQueues.forEach(queue=>{Module["executeNotifiedProxyingQueue"](queue)});pendingNotifiedProxyingQueues=[];initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processProxyingQueue"){if(initializedJS){Module["executeNotifiedProxyingQueue"](e.data.queue)}else{pendingNotifiedProxyingQueues.push(e.data.queue)}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}};\n'),i=(r=$jscomp).makeIterator,h.yield(Promise.all([n.load(),"string"==typeof e?fetch(e).then(function(e){return e.arrayBuffer()}):Promise.resolve(e)]),2);if(o=(a=i.call(r,h.yieldResult)).next().value,s=a.next().value,l=o,u=new Uint8Array(s),c=l._malloc(u.length),l.HEAPU8.set(u,c),null==(d=p=(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(new l.ObjectDetectorOptionsCppProto,function(e){if(null!=e)return e.initFromJsProto(t),l.ObjectDetector.CreateFromOptions(c,u.length,e)}))||!d.ok())throw Error("Failed to create ObjectDetector: "+(null==(f=p)?void 0:f.errorMessage()));return h.return(new module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector(l,[c],p.value()))})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector.prototype.detect=function(e){if(null!=this.cppClassifier){var t=(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.fromPixels)(e);e=t.vals;var n=t.width,r=t.height;if(null!=e)return t=this.module._malloc(e.length),this.module.HEAPU8.set(e,t),e=this.cppClassifier.Detect(t,n,r),this.module._free(t),(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callWithStatusOrAndDelete)(e,"Failed to run inference method detect: ",function(e){return e=e.toArrayBuffer(),proto.tflite.task.vision.DetectionResult.deserializeBinary(e)})}},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector.prototype.cleanUp=function(){if(null!=this.cppClassifier){for(var e=$jscomp.makeIterator(this.memOffsetsToFree),t=e.next();!t.done;t=e.next())this.module._free(t.value);this.cppClassifier.delete()}},goog.exportSymbol("tfweb.DetectionResult",proto.tflite.task.vision.DetectionResult),goog.exportSymbol("tfweb.DetectionResult.prototype.serializeBinary",proto.tflite.task.vision.DetectionResult.prototype.serializeBinary),goog.exportSymbol("tfweb.ObjectDetectorOptions",proto.tflite.task.vision.ObjectDetectorOptions),goog.exportSymbol("tfweb.ObjectDetectorOptions.prototype.serializeBinary",proto.tflite.task.vision.ObjectDetectorOptions.prototype.serializeBinary),goog.exportSymbol("tfweb.ObjectDetector",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector),goog.exportSymbol("tfweb.ObjectDetector.create",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector.create),goog.exportSymbol("tfweb.ObjectDetector.prototype.detect",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector.prototype.detect),goog.exportSymbol("tfweb.ObjectDetector.prototype.cleanUp",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.ObjectDetector.prototype.cleanUp),module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner=function(e,t,n){this.module=e,this.memOffsetsToFree=t,this.cppClassifier=n},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.create=function(e,t){var n,r,i,a,o,s,l,u,c,p,d,f;return t=void 0===t?{}:t,$jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==h.nextAddress)return n=module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance(module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_wasmModulesPath,"tflite_web_api",'"use strict";var Module={};var initializedJS=false;
2var pendingNotifiedProxyingQueues=[];function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onunhandledrejection=e=>{throw e.reason??e};self.onmessage=e=>{try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}tflite_web_api_ModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();pendingNotifiedProxyingQueues.forEach(queue=>{Module["executeNotifiedProxyingQueue"](queue)});pendingNotifiedProxyingQueues=[];initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processProxyingQueue"){if(initializedJS){Module["executeNotifiedProxyingQueue"](e.data.queue)}else{pendingNotifiedProxyingQueues.push(e.data.queue)}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}};\n'),i=(r=$jscomp).makeIterator,h.yield(Promise.all([n.load(),"string"==typeof e?fetch(e).then(function(e){return e.arrayBuffer()}):Promise.resolve(e)]),2);if(o=(a=i.call(r,h.yieldResult)).next().value,s=a.next().value,l=o,u=new Uint8Array(s),c=l._malloc(u.length),l.HEAPU8.set(u,c),null==t.numThreads&&(t.numThreads=navigator?navigator.hardwareConcurrency/2:-1),null==t.enableProfiling&&(t.enableProfiling=!1),null==t.maxProfilingBufferEntries&&(t.maxProfilingBufferEntries=1024),null==(d=p=l.TFLiteWebModelRunner.CreateFromBufferAndOptions(c,u.length,t))||!d.ok())throw Error("Failed to create TFLiteWebModelRunner: "+(null==(f=p)?void 0:f.errorMessage()));return h.return(new module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner(l,[c],p.value()))})},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.getInputs=function(){if(null!=this.cppClassifier){var e=this.cppClassifier.GetInputs();return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(e,function(e){return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.convertCppVectorToArray)(e)})}},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.getOutputs=function(){if(null!=this.cppClassifier){var e=this.cppClassifier.GetOutputs();return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(e,function(e){return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.convertCppVectorToArray)(e)})}},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.infer=function(){if(null!=this.cppClassifier)return this.cppClassifier.Infer()},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.getProfilingResults=function(){if(null!=this.cppClassifier){var e=this.cppClassifier.GetProfilingResults();return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.callAndDelete)(e,function(e){return(0,module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.convertCppVectorToArray)(e)})}},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.getProfilingSummary=function(){if(null!=this.cppClassifier)return this.cppClassifier.GetProfilingSummary()},module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.cleanUp=function(){if(null!=this.cppClassifier){for(var e=$jscomp.makeIterator(this.memOffsetsToFree),t=e.next();!t.done;t=e.next())this.module._free(t.value);this.cppClassifier.delete()}},goog.exportSymbol("tfweb.TFLiteWebModelRunner",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner),goog.exportSymbol("tfweb.TFLiteWebModelRunner.create",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.create),goog.exportSymbol("tfweb.TFLiteWebModelRunner.prototype.getInputs",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.getInputs),goog.exportSymbol("tfweb.TFLiteWebModelRunner.prototype.getOutputs",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.getOutputs),goog.exportSymbol("tfweb.TFLiteWebModelRunner.prototype.infer",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.infer),goog.exportSymbol("tfweb.TFLiteWebModelRunner.prototype.getProfilingResults",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.getProfilingResults),goog.exportSymbol("tfweb.TFLiteWebModelRunner.prototype.getProfilingSummary",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.getProfilingSummary),goog.exportSymbol("tfweb.TFLiteWebModelRunner.prototype.cleanUp",module$exports$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client.TFLiteWebModelRunner.prototype.cleanUp),goog.exportSymbol("tfweb.tflite_web_api.setWasmPath",module$contents$google3$third_party$tensorflow_lite_support$web$tflite_web_api_client_setWasmPath),goog.exportSymbol("tfweb.tflite_web_api.getWasmFeatures",module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$utils.getWasmFeatures),module$exports$google3$third_party$tensorflow_lite_support$web$task$codegen$common$emscripten_module_loader.EmscriptenModuleLoader.getInstance("","tflite_web_api",'"use strict";var Module={};var initializedJS=false;
2var pendingNotifiedProxyingQueues=[];function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=(info,receiveInstance)=>{var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onunhandledrejection=e=>{throw e.reason??e};self.onmessage=e=>{try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob=="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}tflite_web_api_ModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.pthread_ptr,0,0,1);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInitTLS();if(!initializedJS){Module["__embind_initialize_bindings"]();pendingNotifiedProxyingQueues.forEach(queue=>{Module["executeNotifiedProxyingQueue"](queue)});pendingNotifiedProxyingQueues=[];initializedJS=true}try{Module["invokeEntryPoint"](e.data.start_routine,e.data.arg)}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processProxyingQueue"){if(initializedJS){Module["executeNotifiedProxyingQueue"](e.data.queue)}else{pendingNotifiedProxyingQueues.push(e.data.queue)}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){if(Module["__emscripten_thread_crashed"]){Module["__emscripten_thread_crashed"]()}throw ex}};\n').load(!0);var tfweb="undefined"!=typeof window&&window.tfweb||this.tfweb;exports.tfweb=tfweb}).call(this,__nested_webpack_require_216888__(114))},function(e,t){function n(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}
2e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,l,"next",e)}function l(e){n(o,i,a,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"a",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"h",function(){return c}),n.d(t,"g",function(){return p});var r=n(10);function i(e,t){for(let n=0;n<e.length;++n)if(e[e.length-n-1]!==t-1-n)return!1;return!0}function a(e,t,n){let r=e.length+t.length,i=[],a=0,o=0;for(let s=0;s<r;s++)-1===n.indexOf(s)?i.push(e[a++]):i.push(t[o++]);return i}function o(e,t){let n=[],r=e.length;for(let i=0;i<r;i++)-1===t.indexOf(i)&&n.push(e[i]);return[n,t.map(t=>e[t])]}function s(e,t){return a(e,t.map(e=>1),t)}function l(e,t,n){r.c(i(t,n),()=>e+" supports only inner-most axes for now. "+`Got axes ${t} and rank-${n} input.`)}function u(e,t){if(i(e,t))return null;let n=[];for(let r=0;r<t;++r)-1===e.indexOf(r)&&n.push(r);return e.forEach(e=>n.push(e)),n}function c(e){return e.map((e,t)=>[t,e]).sort((e,t)=>e[1]-t[1]).map(e=>e[0])}function p(e,t){let n=[];for(let r=t-e;r<t;++r)n.push(r);return n}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({exp_:function(e){let t={x:Object(a.a)(e,"x","exp")};return r.a.runKernel(i.eb,t)}})},function(e,t,n){"use strict";e.exports=!n(41)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){"use strict";var r=n(192),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"e",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s});class r{constructor(){this.saveRouters=[],this.loadRouters=[]}static getInstance(){return null==r.instance&&(r.instance=new r),r.instance}static registerSaveRouter(e){r.getInstance().saveRouters.push(e)}static registerLoadRouter(e){r.getInstance().loadRouters.push(e)}static getSaveHandlers(e){return r.getHandlers(e,"save")}static getLoadHandlers(e,t){return r.getHandlers(e,"load",t)}static getHandlers(e,t,n){let i=[];return("load"===t?r.getInstance().loadRouters:r.getInstance().saveRouters).forEach(t=>{let r=t(e,n);null!==r&&i.push(r)}),i}}let i=e=>r.registerSaveRouter(e),a=e=>r.registerLoadRouter(e),o=e=>r.getSaveHandlers(e),s=(e,t)=>r.getLoadHandlers(e,t)},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20);let l=Object(n(4).b)({greater_:function(e,t){let n=Object(o.a)(e,"a","greater","string_or_numeric"),l=Object(o.a)(t,"b","greater","string_or_numeric");[n,l]=Object(a.makeTypesMatch)(n,l),Object(s.assertAndGetBroadcastShape)(n.shape,l.shape);let u={a:n,b:l};return r.a.runKernel(i.sb,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(5),i=n(30),a=n(3),o=n(2),s=n(10),l=n(72),u=n(135),c=n(36),p=n(4),d=n(120);let f=Object(p.b)({transpose_:function(e,t,n){let p=Object(o.a)(e,"x","transpose");if(null==t&&(t=p.shape.map((e,t)=>t).reverse()),s.c(p.rank===t.length,()=>`Error in transpose: rank of input ${p.rank} must match length of perm ${t}.`),t.forEach(e=>{s.c(e>=0&&e<p.rank,()=>"All entries in 'perm' must be between 0 and "+(p.rank-1)+" but got "+t)}),p.rank<=1)return p.clone();let f={x:p},h={perm:t};return"complex64"===p.dtype?Object(i.t)(()=>{let e=Object(d.a)(p),t=Object(u.a)(p);return e=r.a.runKernel(a.rd,{x:e},h),t=r.a.runKernel(a.rd,{x:t},h),n&&(t=Object(c.a)(t)),Object(l.a)(e,t)}):r.a.runKernel(a.rd,f,h)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({abs_:function(e){let t=Object(a.a)(e,"x","abs");if("complex64"===t.dtype){let e={x:t};return r.a.runKernel(i.C,e)}{let e={x:t};return r.a.runKernel(i.a,e)}}})},function(e,t,n){"use strict";n.d(t,"c",function(){return h}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return b}),n.d(t,"d",function(){return m});var r=n(20),i=n(175),a=n(177),o=n(11),s=n(182),l=n(108),u=n(183),c=n(8),p=n(93),d=n(109),f=n(21);function h(e,t,n){if(null==n||"linear"===n)return e;if("relu"===n)return Object(o.a)(e,Object(d.a)(t));throw Error(`Cannot compute gradient for fused activation ${n}.`)}function g(e,t){let n=t,i=r.getReductionAxes(e.shape,t.shape);return i.length>0&&(n=Object(f.a)(n,i)),Object(c.a)(n,e.shape)}function b(e,t,n,r){if("linear"===t)return e;if("relu"===t)return Object(l.a)(e);if("elu"===t)return Object(i.a)(e);if("relu6"===t)return Object(u.a)(e);if("prelu"===t)return Object(s.a)(e,n);if("leakyrelu"===t)return Object(a.a)(e,r);if("sigmoid"===t)return Object(p.a)(e);throw Error(`Unknown fused activation ${t}.`)}let m=(e,t)=>
vendor: 8,528 bytes, line 2
2!(e>0)||"linear"===t},function(e,t,n){"use strict";n.d(t,"f",function(){return c}),n.d(t,"e",function(){return p}),n.d(t,"d",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"a",function(){return h}),n.d(t,"b",function(){return k}),n.d(t,"c",function(){return r});var r,i=n(0),a=n(113),o=n(96);function s(e){return e instanceof i.Dd?{value:e.clone(),recurse:!1}:Object(o.e)(e)?{value:null,recurse:!0}:{value:e,recurse:!1}}class l{constructor(e){if(this.capacity=e,this.begin=0,this.end=0,null==e)throw RangeError("Can't create a ring buffer of unknown capacity.");if(e<1)throw RangeError("Can't create ring buffer of capacity < 1.");this.data=Array(e),this.doubledCapacity=2*e}wrap(e){for(;e<0;)e+=this.doubledCapacity;return e%this.doubledCapacity}get(e){if(e<0)throw RangeError("Can't get item at a negative index.");return this.data[e%this.capacity]}set(e,t){if(e<0)throw RangeError("Can't set item at a negative index.");this.data[e%this.capacity]=t}length(){let e=this.end-this.begin;return e<0&&(e=this.doubledCapacity+e),e}isFull(){return this.length()===this.capacity}isEmpty(){return 0===this.length()}push(e){if(this.isFull())throw RangeError("Ring buffer is full.");this.set(this.end,e),this.end=this.wrap(this.end+1)}pushAll(e){for(let t of e)this.push(t)}pop(){if(this.isEmpty())throw RangeError("Ring buffer is empty.");this.end=this.wrap(this.end-1);let e=this.get(this.end);return this.set(this.end,void 0),e}unshift(e){if(this.isFull())throw RangeError("Ring buffer is full.");this.begin=this.wrap(this.begin-1),this.set(this.begin,e)}shift(){if(this.isEmpty())throw RangeError("Ring buffer is empty.");let e=this.get(this.begin);return this.set(this.begin,void 0),this.begin=this.wrap(this.begin+1),e}shuffleExcise(e){if(this.isEmpty())throw RangeError("Ring buffer is empty.");let t=this.wrap(this.begin+e),n=this.get(t);return this.set(t,this.pop()),n}}class u extends l{constructor(){super(u.INITIAL_CAPACITY)}isFull(){return!1}push(e){super.isFull()&&this.expand(),super.push(e)}unshift(e){super.isFull()&&this.expand(),super.unshift(e)}expand(){let e=2*this.capacity,t=Array(e),n=this.length();for(let e=0;e<n;e++)t[e]=this.get(this.wrap(this.begin+e));this.data=t,this.capacity=e,this.doubledCapacity=2*this.capacity,this.begin=0,this.end=n}}function c(e){return new g(e)}function p(e){return new b(e)}function d(e,t){return new w(e,t)}function f(e,t=r.FAIL){return new j(e,t)}u.INITIAL_CAPACITY=32;class h{async toArray(){let e=[],t=await this.next();for(;!t.done;)e.push(t.value),t=await this.next();return e}async toArrayForTest(){let e=this.prefetch(100),t=[],n=await e.next();for(;!n.done;)t.push(n.value),n=await e.next();return t}async resolveFully(){let e=await this.next();for(;!e.done;)e=await this.next()}async resolveWhile(e){let t=await this.next(),n=e(t.value);for(;!t.done&&n;)n=e((t=await this.next()).value)}handleErrors(e){return new I(this,e)}filter(e){return new O(this,e)}map(e){return new x(this,e)}mapAsync(e){return new N(this,e)}serialMapAsync(e){return new N(this,e).serial()}flatmap(e){return new T(this,e)}async forEachAsync(e){return this.map(e).resolveFully()}async serialForEach(e){return this.serialMapAsync(e).resolveWhile(e=>!0===e)}rowMajorBatch(e,t=!0){return new v(this,e,t)}columnMajorBatch(e,t=!0,n=o.f){return this.rowMajorBatch(e,t).map(e=>Object(o.d)(e,n))}concatenate(e,t){return new w(c([this,e]),t)}take(e){return e<0||null==e?this:new S(this,e)}skip(e){return e<0||null==e?this:new y(this,e)}prefetch(e){return new F(this,e)}shuffle(e,t){return new _(this,e,t)}serial(){return new m(this)}}class g extends h{constructor(e){super(),this.items=e,this.trav=0}summary(){return`Array of ${this.items.length} items`}async next(){var e;if(this.trav>=this.items.length)return{value:null,done:!0};let t=this.items[this.trav];return this.trav++,{value:(e=t,Object(o.b)(e,s)),done:!1}}}class b extends h{constructor(e){super(),this.nextFn=e}summary(){return"Function call"}async next(){try{return this.nextFn()}catch(e){throw e.message="Error thrown while iterating through a dataset: "+e.message,e}}}class m extends h{constructor(e){super(),this.upstream=e,this.lastRead=Promise.resolve({value:null,done:!1})}summary(){return this.upstream.summary()+" -> Serial"}async next(){return this.lastRead=this.lastRead.then(()=>this.serialNext()),this.lastRead}async serialNext(){return this.upstream.next()}}class y extends h{constructor(e,t){super(),this.upstream=e,this.maxCount=t,this.count=0,this.lastRead=Promise.resolve({value:null,done:!1})}summary(){return this.upstream.summary()+" -> Skip"}async next(){return this.lastRead=this.lastRead.then(()=>this.serialNext()),this.lastRead}async serialNext(){for(;this.count++<this.maxCount;){let e=await this.upstream.next();if(e.done)return e;i.bf(e.value)}return this.upstream.next()}}class S extends h{constructor(e,t){super(),this.upstream=e,this.maxCount=t,this.count=0}summary(){return this.upstream.summary()+" -> Take"}async next(){return this.count++>=this.maxCount?{value:null,done:!0}:this.upstream.next()}}class v extends h{constructor(e,t,n=!0){super(),this.upstream=e,this.batchSize=t,this.enableSmallLastBatch=n,this.lastRead=Promise.resolve({value:null,done:!1})}summary(){return this.upstream.summary()+" -> RowMajorBatch"}async next(){return this.lastRead=this.lastRead.then(()=>this.serialNext()),this.lastRead}async serialNext(){let e=[];for(;e.length<this.batchSize;){let t=await this.upstream.next();if(t.done)return this.enableSmallLastBatch&&e.length>0?{value:e,done:!1}:{value:null,done:!0};e.push(t.value)}return{value:e,done:!1}}}class O extends h{constructor(e,t){super(),this.upstream=e,this.predicate=t,this.lastRead=Promise.resolve({value:null,done:!1})}summary(){return this.upstream.summary()+" -> Filter"}async next(){return this.lastRead=this.lastRead.then(()=>this.serialNext()),this.lastRead}async serialNext(){for(;;){let e=await this.upstream.next();if(e.done||this.predicate(e.value))return e;i.bf(e.value)}}}class x extends h{constructor(e,t){super(),this.upstream=e,this.transform=t}summary(){return this.upstream.summary()+" -> Map"}async next(){let e=await this.upstream.next();if(e.done)return{value:null,done:!0};let t=i.Ci.getTensorsInContainer(e.value),n=this.transform(e.value),r=i.Ci.getTensorsInContainer(n);for(let e of t)i.Ci.isTensorInList(e,r)||e.dispose();return{value:n,done:!1}}}class I extends h{constructor(e,t){super(),this.upstream=e,this.handler=t,this.count=0,this.lastRead=Promise.resolve({value:null,done:!1})}summary(){return this.upstream.summary()+" -> handleErrors"}async next(){return this.lastRead=this.lastRead.then(()=>this.serialNext()),this.lastRead}async serialNext(){for(;;)try{return await this.upstream.next()}catch(e){if(!this.handler(e))return{value:null,done:!0}}}}class N extends h{constructor(e,t){super(),this.upstream=e,this.transform=t}summary(){return this.upstream.summary()+" -> AsyncMap"}async next(){let e=await this.upstream.next();if(e.done)return{value:null,done:!0};let t=i.Ci.getTensorsInContainer(e.value),n=await this.transform(e.value),r=i.Ci.getTensorsInContainer(n);for(let e of t)i.Ci.isTensorInList(e,r)||e.dispose();return{value:n,done:!1}}}class k extends h{constructor(){super(),this.outputQueue=new u,this.lastRead=Promise.resolve({value:null,done:!1})}async next(){return this.lastRead=this.lastRead.then(()=>this.serialNext()),this.lastRead}async serialNext(){for(;0===this.outputQueue.length();)if(!await this.pump())return{value:null,done:!0};return{value:this.outputQueue.shift(),done:!1}}}class T extends k{constructor(e,t){super(),this.upstream=e,this.transform=t}summary(){return this.upstream.summary()+" -> Flatmap"}async pump(){let e=await this.upstream.next();if(e.done)return!1;let t=i.Ci.getTensorsInContainer(e.value),n=this.transform(e.value),r=i.Ci.getTensorsInContainer(n);for(let e of(this.outputQueue.pushAll(n),t))i.Ci.isTensorInList(e,r)||e.dispose();return!0}}class w extends h{constructor(e,t){super(),this.baseErrorHandler=t,this.lastRead=null,this.iterator=null,this.moreIterators=e}summary(){return"TODO: fill in upstream of chained summaries -> Chained"}async next(){return this.lastRead=this.readFromChain(this.lastRead),this.lastRead}async readFromChain(e){if(await e,null==this.iterator){let e=await this.moreIterators.next();if(e.done)return{value:null,done:!0};this.iterator=e.value,null!=this.baseErrorHandler&&(this.iterator=this.iterator.handleErrors(this.baseErrorHandler))}let t=await this.iterator.next();return t.done?(this.iterator=null,this.readFromChain(e)):t}}
2!function(e){e[e.FAIL=0]="FAIL",e[e.SHORTEST=1]="SHORTEST",e[e.LONGEST=2]="LONGEST"}(r||(r={}));class j extends h{constructor(e,t=r.FAIL){super(),this.iterators=e,this.mismatchMode=t,this.count=0,this.currentPromise=null}summary(){return"{TODO: fill in upstream of zip summaries} -> Zip"}async nextState(e){await e;let t=0,n=0,i=await Object(o.c)(this.iterators,function(e){return e instanceof h?{value:e.next().then(e=>(t++,e.done&&n++,e.value)),recurse:!1}:{value:null,recurse:!0}});if(t===n)return{value:null,done:!0};if(n>0)switch(this.mismatchMode){case r.FAIL:throw Error(`Zipped streams should have the same length. Mismatched at element ${this.count}.`);case r.SHORTEST:return{value:null,done:!0};case r.LONGEST:}return this.count++,{value:i,done:!1}}async next(){return this.currentPromise=this.nextState(this.currentPromise),this.currentPromise}}class F extends h{constructor(e,t){super(),this.upstream=e,this.bufferSize=t,this.buffer=new l(t)}summary(){return this.upstream.summary()+" -> Prefetch"}refill(){for(;!this.buffer.isFull();){let e=this.upstream.next();this.buffer.push(e)}}next(){return this.refill(),this.buffer.shift()}}class _ extends F{constructor(e,t,n){super(e,t),this.upstream=e,this.windowSize=t,this.upstreamExhausted=!1,this.random=a.alea(n||i.Si.now().toString()),this.lastRead=Promise.resolve({value:null,done:!1})}async next(){return this.lastRead=this.lastRead.then(()=>this.serialNext()),this.lastRead}randomInt(e){return Math.floor(this.random()*e)}chooseIndex(){return this.randomInt(this.buffer.length())}async serialNext(){for(this.upstreamExhausted||this.refill();!this.buffer.isEmpty();){let e=this.chooseIndex(),t=await this.buffer.shuffleExcise(e);if(!t.done)return this.refill(),t;this.upstreamExhausted=!0}return{value:null,done:!0}}}},function(e,t,n){"use strict";var r=n(43),i=n(116),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},function(e,t,n){"use strict";var r=n(48);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(6),i=n(10);function a(e,t="float32",n){return t=t||"float32",i.d(e),new r.b(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({reverse_:function(e,t){let n={x:Object(a.a)(e,"x","reverse")},o={dims:t};return r.a.runKernel(i.Ec,n,o)}})},function(e,t,n){"use strict";var r=n(66),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(12);class i{static join(e){return new i(e).slice()}constructor(e){if(this.shards=[],this.previousShardIndex=0,null==e||(e instanceof Array||(e=[e]),0===(e=e.map(e=>r.isTypedArray(e)?e.buffer:e)).length))return;this.bufferUniformSize=e[0].byteLength;let t=0;for(let n=0;n<e.length;n++){let r=e[n];n!==e.length-1&&r.byteLength!==this.bufferUniformSize&&(this.bufferUniformSize=void 0);let i=t+r.byteLength;this.shards.push({buffer:r,start:t,end:i}),t=i}0===this.shards.length&&(this.byteLength=0),this.byteLength=this.shards[this.shards.length-1].end}slice(e=0,t=this.byteLength){if(0===this.shards.length||(e=isNaN(Number(e))?0:e,t=isNaN(Number(t))?0:t,e=Math.max(0,e),(t=Math.min(this.byteLength,t))<=e))return new ArrayBuffer(0);let n=this.findShardForByte(e);if(-1===n)throw Error("Could not find start shard for byte "+e);let r=new ArrayBuffer(t-e),i=new Uint8Array(r),a=0;for(let r=n;r<this.shards.length;r++){let n=this.shards[r],o=e+a-n.start,s=a,l=Math.min(t,n.end)-n.start,u=new Uint8Array(n.buffer,o,l-o);if(i.set(u,s),a+=u.length,t<n.end)break}return r}findShardForByte(e){if(0===this.shards.length||e<0||e>=this.byteLength)return -1;if(null!=this.bufferUniformSize)return this.previousShardIndex=Math.floor(e/this.bufferUniformSize),this.previousShardIndex;function t(t){return e<t.start?-1:+(e>=t.end)}if(0===t(this.shards[this.previousShardIndex]))return this.previousShardIndex;let n=function(e,t){let n=0,r=e.length;for(;n<=r;){let i=Math.floor((r-n)/2)+n,a=t(e[i]);if(0===a)return i;a<0?r=i:n=i+1}return -1}(this.shards,t);return -1===n?-1:(this.previousShardIndex=n,this.previousShardIndex)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(78),a=n(10),o=n(12);function s(e,t,n,s){if(null==s)s=Object(a.s)(e);else if("complex64"===s)throw Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");
2if(Object(i.c)(e)||Object(i.b)(e)){if("float32"!==s&&"int32"!==s)throw Error(`Creating tensor from GPU data only supports 'float32'|'int32' dtype, while the dtype is ${s}.`);return r.a.backend.createTensorFromGPUData(e,t||n,s)}if(!Object(o.isTypedArray)(e)&&!Array.isArray(e)&&"number"!=typeof e&&"boolean"!=typeof e&&"string"!=typeof e)throw Error("values passed to tensor(values) must be a number/boolean/string or an array of numbers/booleans/strings, or a TypedArray");if(null!=t){Object(a.d)(t);let e=Object(a.O)(t),r=Object(a.O)(n);Object(a.c)(e===r,()=>`Based on the provided shape, [${t}], the tensor should have ${e} values but has ${r}`);for(let e=0;e<n.length;++e){let r=n[e],i=e!==n.length-1||r!==Object(a.O)(t.slice(e));Object(a.c)(n[e]===t[e]||!i,()=>`Error creating a new Tensor. Inferred shape (${n}) does not match the provided shape (${t}). `)}}return Object(o.isTypedArray)(e)||Array.isArray(e)||(e=[e]),t=t||n,e="string"!==s?Object(o.toTypedArray)(e,s):Object(o.flatten)(e,[],!0),r.a.makeTensor(e,t,s)}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({complex_:function(e,t){let n=Object(a.a)(e,"real","complex"),s=Object(a.a)(t,"imag","complex");o.f(n.shape,s.shape,`real and imag shapes, ${n.shape} and ${s.shape}, must match in call to tf.complex().`);let l={real:n,imag:s};return r.a.runKernel(i.B,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(29),o=n(2);let s=Object(n(4).b)({pow_:function(e,t){let n=Object(o.a)(e,"base","pow"),s=Object(o.a)(t,"exp","pow");[n,s]=Object(a.makeTypesMatch)(n,s);let l={a:n,b:s};return r.a.runKernel(i.nc,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({stack_:function(e,t=0){let n=Object(a.b)(e,"tensors","stack","string_or_numeric");o.c(n.length>=1,()=>"Pass at least one tensor to tf.stack"),n.length>0&&o.c(t<=n[0].rank,()=>"Axis must be <= rank of the tensor");let s=n,l={axis:t};return r.a.runKernel(i.kc,s,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(13),i=n(15),a=n(9),o=n(39);let s=Object(n(14).a)({complex_:function(e,t){let n=Object(a.a)(e,"real","complex"),s=Object(a.a)(t,"imag","complex");o.e(n.shape,s.shape,`real and imag shapes, ${n.shape} and ${s.shape}, must match in call to tf.complex().`);let l={real:n,imag:s};return r.a.runKernel(i.f,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(10),a=n(72),o=n(107);function s(e,t="float32"){if(Object(i.d)(e),"complex64"===t){let t=s(e,"float32"),n=Object(o.a)(e,"float32");return Object(a.a)(t,n)}let n=Object(i.D)(Object(i.O)(e),t);return r.a.makeTensor(n,e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({expandDims_:function(e,t=0){let n=Object(a.a)(e,"x","expandDims","string_or_numeric");o.c(t<=n.rank,()=>"Axis must be <= rank of the tensor");let s={input:n},l={dim:t};return r.a.runKernel(i.fb,s,l)}})},function(e,t,n){"use strict";var r,i,a,o,s;n.d(t,"a",function(){return r}),n.d(t,"e",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return d}),function(e){e.R0="R0",e.R1="R1",e.R2="R2",e.R3="R3",e.R4="R4",e.R5="R5",e.R6="R6"}(r||(r={})),function(e){e.float32="float32",e.int32="int32",e.bool="int32",e.complex64="complex64"}(i||(i={})),function(e){e.float32="float32",e.int32="int32",e.bool="bool",e.complex64="complex64"}(a||(a={})),function(e){e.float32="float32",e.int32="float32",e.bool="float32",e.complex64="complex64"}(o||(o={})),function(e){e.float32="complex64",e.int32="complex64",e.bool="complex64",e.complex64="complex64"}(s||(s={}));let l={float32:o,int32:i,bool:a,complex64:s};function u(e,t){if("string"===e||"string"===t){if("string"===e&&"string"===t)return"string";throw Error(`Can not upcast ${e} with ${t}`)}return l[e][t]}function c(e){return u(e,"int32")}function p(e){return null!=e&&"object"==typeof e&&"texture"in e&&e.texture instanceof WebGLTexture}function d(e){return"undefined"!=typeof GPUBuffer&&null!=e&&"object"==typeof e&&"buffer"in e&&e.buffer instanceof GPUBuffer}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(30),i=n(50),a=n(23),o=n(165);class s extends o.Serializable{minimize(e,t=!1,n){let{value:i,grads:a}=this.computeGradients(e,n);if(null!=n){let e=n.map(e=>({name:e.name,tensor:a[e.name]}));this.applyGradients(e)}else this.applyGradients(a);return Object(r.d)(a),t?i:(i.dispose(),null)}get iterations(){return null==this.iterations_&&(this.iterations_=0),this.iterations_}incrementIterations(){this.iterations_=this.iterations+1}computeGradients(e,t){return Object(i.f)(e,t)}dispose(){null!=this.iterations_&&Object(r.d)(this.iterations_)}async saveIterations(){return null==this.iterations_&&(this.iterations_=0),{name:"iter",tensor:Object(a.a)(this.iterations_,"int32")}}async getWeights(){throw Error("getWeights() is not implemented for this optimizer yet.")}async setWeights(e){throw Error("setWeights() is not implemented for this optimizer class "+this.getClassName())}async extractIterations(e){return this.iterations_=(await e[0].tensor.data())[0],e.slice(1)}}Object.defineProperty(s,Symbol.hasInstance,{value:e=>null!=e.minimize&&null!=e.computeGradients&&null!=e.applyGradients})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20);let l=Object(n(4).b)({lessEqual_:function(e,t){let n=Object(o.a)(e,"a","lessEqual","string_or_numeric"),l=Object(o.a)(t,"b","lessEqual","string_or_numeric");[n,l]=Object(a.makeTypesMatch)(n,l),Object(s.assertAndGetBroadcastShape)(n.shape,l.shape);let u={a:n,b:l};return r.a.runKernel(i.Eb,u)}
2})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({pad_:function(e,t,n=0){let o=Object(a.a)(e,"x","pad");if(0===o.rank)throw Error("pad(scalar) is not defined. Pass non-scalar to pad");let s={paddings:t,constantValue:n},l={x:o};return r.a.runKernel(i.lc,l,s)}})},function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"f",function(){return p}),n.d(t,"e",function(){return d}),n.d(t,"h",function(){return f}),n.d(t,"g",function(){return h}),n.d(t,"a",function(){return g});var r=n(24),i=n(150),a=n(100);let o=Object(i.a)("kernelRegistry",()=>new Map),s=Object(i.a)("gradRegistry",()=>new Map);function l(e,t){let n=b(e,t);return o.get(n)}function u(e){return s.get(e)}function c(e){let t=o.entries(),n=[];for(;;){let{done:r,value:i}=t.next();if(r)break;let[a,o]=i,[s]=a.split("_");s===e&&n.push(o)}return n}function p(e){let{kernelName:t,backendName:n}=e,r=b(t,n);o.has(r)&&a.b(`The kernel '${t}' for backend '${n}' is already registered`),o.set(r,e)}function d(e){let{kernelName:t}=e;s.has(t)&&Object(r.c)().getBool("DEBUG")&&a.b(`Overriding the gradient for '${t}'`),s.set(t,e)}function f(e,t){let n=b(e,t);if(!o.has(n))throw Error(`The kernel '${e}' for backend '${t}' is not registered`);o.delete(n)}function h(e){if(!s.has(e))throw Error(`The gradient '${e}' for backend is not registered`);s.delete(e)}function g(e,t){c(e).forEach(e=>{p(Object.assign({},e,{backendName:t}))})}function b(e,t){return`${t}_${e}`}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return T}),n.d(t,"i",function(){return j}),n.d(t,"c",function(){return F}),n.d(t,"f",function(){return _}),n.d(t,"e",function(){return D}),n.d(t,"d",function(){return C}),n.d(t,"k",function(){return M}),n.d(t,"g",function(){return $}),n.d(t,"h",function(){return U}),n.d(t,"j",function(){return P}),n.d(t,"b",function(){return B});var r=n(0),i=n(86),a=n(145),o=n(1),s=n(364),l=n(365),u=n(366),c=n(367),p=n(368),d=n(369),f=n(370),h=n(371),g=n(372),b=n(373),m=n(374),y=n(375),S=n(376),v=n(377),O=n(378),x=n(379),I=n(380),N=n(381),k=n(382);class T{static get Instance(){return this._instance||(this._instance=new this)}constructor(){let e=[].concat(...[s,l,u,c,p,d,f,h,g,b,m,y,S,v,O,x,I,N,k].map(e=>e.json));this.opMappers=e.reduce((e,t)=>(e[t.tfOpName]=t,e),{})}transformGraph(e,t={}){let n=e.node,r=[],i=[],a=[],s=n.reduce((e,t)=>(e[t.name]=this.mapNode(t),t.op.startsWith("Placeholder")?r.push(e[t.name]):"Const"===t.op?i.push(e[t.name]):null!=t.input&&0!==t.input.length||a.push(e[t.name]),e),{}),l=[],u=[],c={},p={};null!=t&&(c=this.mapSignatureEntries(t.inputs),p=this.mapSignatureEntries(t.outputs));let d=Object.keys(s);d.forEach(e=>{let t=s[e];t.inputNames.forEach((e,n)=>{let[r,,i]=Object(o.b)(e),a=s[r];if(null!=a.outputs){let e=a.outputs.indexOf(i);if(-1!==e){let i=`${r}:${e}`;t.inputNames[n]=i}}t.inputs.push(a),a.children.push(t)})}),0===Object.keys(p).length?d.forEach(e=>{let t=s[e];0===t.children.length&&u.push(t)}):Object.keys(p).forEach(e=>{let[t]=Object(o.b)(e),n=s[t];null!=n&&(n.signatureKey=p[e],u.push(n))}),Object.keys(c).length>0?Object.keys(c).forEach(e=>{let[t]=Object(o.b)(e),n=s[t];n&&(n.signatureKey=c[e],l.push(n))}):l=r;let f={};null!=e.library&&null!=e.library.function&&(f=e.library.function.reduce((e,t)=>(e[t.signature.name]=this.mapFunction(t),e),{}));let h={nodes:s,inputs:l,outputs:u,weights:i,placeholders:r,signature:t,functions:f};return a.length>0&&(h.initNodes=a),h}mapSignatureEntries(e){return Object.keys(e||{}).reduce((t,n)=>(t[e[n].name]=n,t),{})}mapNode(e){let t=Object(a.b)(e.op)||this.opMappers[e.op]||{};null==e.attr&&(e.attr={});let n={name:e.name,op:e.op,category:t.category,inputNames:(e.input||[]).map(e=>e.startsWith("^")?e.slice(1):e),inputs:[],children:[],inputParams:{},attrParams:{},rawAttrs:e.attr,outputs:t.outputs};return null!=t.inputs&&(n.inputParams=t.inputs.reduce((e,t)=>(e[t.name]={type:t.type,inputIndexStart:t.start,inputIndexEnd:t.end},e),{})),null!=t.attrs&&(n.attrParams=t.attrs.reduce((t,n)=>{let r,i=n.type;
2switch(n.type){case"string":void 0===(r=j(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=j(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"string[]":void 0===(r=U(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=U(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"number":void 0===(r=_(e.attr,n.tfName,n.defaultValue||0))&&n.tfDeprecatedName&&(r=_(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"number[]":void 0===(r=$(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=$(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"bool":void 0===(r=F(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=F(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"bool[]":void 0===(r=B(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=B(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"shape":void 0===(r=M(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=M(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"shape[]":void 0===(r=P(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=P(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"dtype":void 0===(r=D(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=D(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"dtype[]":void 0===(r=C(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=C(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"func":void 0===(r=R(e.attr,n.tfName,n.defaultValue))&&n.tfDeprecatedName&&(r=R(e.attr,n.tfDeprecatedName,n.defaultValue));break;case"tensor":case"tensors":break;default:throw Error(`Unsupported param type: ${n.type} for op: ${e.op}`)}return t[n.name]={value:r,type:i},t},{})),n}mapFunction(e){let t=e.nodeDef,n=[],r={};null!=t&&(r=t.reduce((e,t)=>(e[t.name]=this.mapNode(t),"Const"===t.op&&n.push(e[t.name]),e),{}));let i=[],a=[];e.signature.inputArg.forEach(e=>{let[t]=Object(o.b)(e.name),n={name:t,op:"Placeholder",inputs:[],inputNames:[],category:"graph",inputParams:{},attrParams:{dtype:{value:E(e.type),type:"dtype"}},children:[]};n.signatureKey=e.name,i.push(n),r[t]=n}),Object.keys(r).forEach(e=>{let t=r[e];t.inputNames.forEach((e,n)=>{let[i,,a]=Object(o.b)(e),s=r[i];if(null!=s.outputs){let e=s.outputs.indexOf(a);if(-1!==e){let r=`${i}:${e}`;t.inputNames[n]=r}}t.inputs.push(s),s.children.push(t)})});let s=e.ret;e.signature.outputArg.forEach(e=>{let[t,n]=Object(o.b)(s[e.name]),i=r[t];null!=i&&(i.defaultOutput=n,a.push(i))});let l=this.mapArgsToSignature(e);return{nodes:r,inputs:i,outputs:a,weights:n,placeholders:[],signature:l}}mapArgsToSignature(e){return{methodName:e.signature.name,inputs:e.signature.inputArg.reduce((e,t)=>(e[t.name]=this.mapArgToTensorInfo(t),e),{}),outputs:e.signature.outputArg.reduce((t,n)=>(t[n.name]=this.mapArgToTensorInfo(n,e.ret),t),{})}}mapArgToTensorInfo(e,t){let n=e.name;return null!=t&&(n=t[n]),{name:n,dtype:e.type}}}function w(t,n){let i=Array.isArray(t)?String.fromCharCode.apply(null,t):function(t){let n=Object(r.of)().global;if(void 0!==n.atob)return n.atob(t);if(void 0!==e)return new e(t,"base64").toString();throw Error("Unable to decode base64 in this environment. Missing built-in atob() or Buffer()")}(t);return n?i:i.toLowerCase()}function j(e,t,n,r=!1){let i=e[t];return null!=i?w(i.s,r):n}function F(e,t,n){let r=e[t];return r?r.b:n}function _(e,t,n){let r=e[t]||{},i=null!=r.i?r.i:null!=r.f?r.f:n;return"number"==typeof i?i:parseInt(i,10)}function E(e){switch("string"==typeof e&&(e=i.a[e]),e){case i.a.DT_FLOAT:case i.a.DT_HALF:return"float32";case i.a.DT_INT32:case i.a.DT_INT64:case i.a.DT_INT8:case i.a.DT_UINT8:return"int32";case i.a.DT_BOOL:return"bool";case i.a.DT_DOUBLE:return"float32";case i.a.DT_STRING:return"string";case i.a.DT_COMPLEX64:case i.a.DT_COMPLEX128:return"complex64";default:return null}}function R(e,t,n){let r=e[t];return r&&r.func?r.func.name:n}function D(e,t,n){let r=e[t];return r&&r.type?E(r.type):n}function C(e,t,n){let r=e[t];return r&&r.list&&r.list.type?r.list.type.map(e=>E(e)):n}function A(e){if(!e.unknownRank)return null!=e.dim?e.dim.map(e=>"number"==typeof e.size?e.size:parseInt(e.size,10)):[]}function M(e,t,n){let r=e[t];return r&&r.shape?A(r.shape):n}function $(e,t,n){let r=e[t];return r?((r.list.f&&r.list.f.length?r.list.f:r.list.i)||[]).map(e=>"number"==typeof e?e:parseInt(e,10)):n}function U(e,t,n,r=!1){let i=e[t];return i&&i.list&&i.list.s?i.list.s.map(e=>w(e,r)):n}function P(e,t,n){let r=e[t];return r&&r.list&&r.list.shape?r.list.shape.map(e=>A(e)):n}function B(e,t,n){let r=e[t];return r&&r.list&&r.list.b?r.list.b:n}}).call(this,n(226).Buffer)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(20);let s=Object(n(4).b)({logicalAnd_:function(e,t){let n=Object(a.a)(e,"a","logicalAnd","bool"),s=Object(a.a)(t,"b","logicalAnd","bool");Object(o.assertAndGetBroadcastShape)(n.shape,s.shape);let l={a:n,b:s};return r.a.runKernel(i.Jb,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({split_:function(e,t,n=0){let o={x:Object(a.a)(e,"x","split")},s={numOrSizeSplits:t,axis:n};return r.a.runKernel(i.Zc,o,s)}})},function(e,t,n){"use strict";var r,i;n.d(t,"a",function(){return r}),function(e){e[e.DT_INVALID=0]="DT_INVALID",e[e.DT_FLOAT=1]="DT_FLOAT",e[e.DT_DOUBLE=2]="DT_DOUBLE",e[e.DT_INT32=3]="DT_INT32",e[e.DT_UINT8=4]="DT_UINT8",e[e.DT_INT16=5]="DT_INT16",e[e.DT_INT8=6]="DT_INT8",e[e.DT_STRING=7]="DT_STRING",e[e.DT_COMPLEX64=8]="DT_COMPLEX64",e[e.DT_INT64=9]="DT_INT64",e[e.DT_BOOL=10]="DT_BOOL",e[e.DT_QINT8=11]="DT_QINT8",e[e.DT_QUINT8=12]="DT_QUINT8",e[e.DT_QINT32=13]="DT_QINT32",e[e.DT_BFLOAT16=14]="DT_BFLOAT16",e[e.DT_QINT16=15]="DT_QINT16",e[e.DT_QUINT16=16]="DT_QUINT16",e[e.DT_UINT16=17]="DT_UINT16",e[e.DT_COMPLEX128=18]="DT_COMPLEX128",e[e.DT_HALF=19]="DT_HALF",e[e.DT_RESOURCE=20]="DT_RESOURCE",e[e.DT_VARIANT=21]="DT_VARIANT",e[e.DT_UINT32=22]="DT_UINT32",e[e.DT_UINT64=23]="DT_UINT64",e[e.DT_FLOAT_REF=101]="DT_FLOAT_REF",e[e.DT_DOUBLE_REF=102]="DT_DOUBLE_REF",e[e.DT_INT32_REF=103]="DT_INT32_REF",e[e.DT_UINT8_REF=104]="DT_UINT8_REF",e[e.DT_INT16_REF=105]="DT_INT16_REF",e[e.DT_INT8_REF=106]="DT_INT8_REF",e[e.DT_STRING_REF=107]="DT_STRING_REF",e[e.DT_COMPLEX64_REF=108]="DT_COMPLEX64_REF",e[e.DT_INT64_REF=109]="DT_INT64_REF",e[e.DT_BOOL_REF=110]="DT_BOOL_REF",e[e.DT_QINT8_REF=111]="DT_QINT8_REF",e[e.DT_QUINT8_REF=112]="DT_QUINT8_REF",e[e.DT_QINT32_REF=113]="DT_QINT32_REF",e[e.DT_BFLOAT16_REF=114]="DT_BFLOAT16_REF",e[e.DT_QINT16_REF=115]="DT_QINT16_REF",e[e.DT_QUINT16_REF=116]="DT_QUINT16_REF",e[e.DT_UINT16_REF=117]="DT_UINT16_REF",e[e.DT_COMPLEX128_REF=118]="DT_COMPLEX128_REF",e[e.DT_HALF_REF=119]="DT_HALF_REF",e[e.DT_RESOURCE_REF=120]="DT_RESOURCE_REF",e[e.DT_VARIANT_REF=121]="DT_VARIANT_REF",e[e.DT_UINT32_REF=122]="DT_UINT32_REF",e[e.DT_UINT64_REF=123]="DT_UINT64_REF"}(r||(r={})),function(e){let t;!function(e){e[e.LEGACY=0]="LEGACY",e[e.V1=1]="V1",e[e.V2=2]="V2"}(t=e.CheckpointFormatVersion||(e.CheckpointFormatVersion={}))}(i||(i={}))},function(e,t,n){"use strict";var r=n(57),i=n(300),a=n(301),o=n(69),s=n(272),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(218),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(26),l=n(4),u=n(8);let c=Object(l.b)({conv2d_:function(e,t,n,l,c="NHWC",p=[1,1],d){let f=Object(a.a)(e,"x","conv2d","float32"),h=Object(a.a)(t,"filter","conv2d","float32"),g=f,b=!1;3===f.rank&&(b=!0,g=Object(u.a)(f,[1,f.shape[0],f.shape[1],f.shape[2]])),o.c(4===g.rank,()=>`Error in conv2d: input must be rank 4, but got rank ${g.rank}.`),o.c(4===h.rank,()=>"Error in conv2d: filter must be rank 4, but got rank "+h.rank+"."),s.a("conv2d",l,d);let m="NHWC"===c?g.shape[3]:g.shape[1];o.c(m===h.shape[2],()=>`Error in conv2d: depth of input (${m}) must match input depth for filter ${h.shape[2]}.`),o.c(s.i(n,p),()=>`Error in conv2D: Either strides or dilations must be 1. Got strides ${n} and dilations '${p}'`),o.c(s.j(p),()=>"Error in conv2D: Dilated rates should be larger than 0."),o.c(s.j(n),()=>"Error in conv2D: Strides should be larger than 0.");let y={x:g,filter:h},S={strides:n,pad:l,dataFormat:c,dilations:p,dimRoundingMode:d},v=r.a.runKernel(i.E,y,S);return b?Object(u.a)(v,[v.shape[1],v.shape[2],v.shape[3]]):v}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20);let l=Object(n(4).b)({greaterEqual_:function(e,t){let n=Object(o.a)(e,"a","greaterEqual","string_or_numeric"),l=Object(o.a)(t,"b","greaterEqual","string_or_numeric");[n,l]=Object(a.makeTypesMatch)(n,l),Object(s.assertAndGetBroadcastShape)(n.shape,l.shape);let u={a:n,b:l};return r.a.runKernel(i.tb,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({clone_:function(e){let t={x:Object(a.a)(e,"x","clone","string_or_numeric")};return r.a.runKernel(i.vb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({sigmoid_:function(e){let t={x:Object(a.a)(e,"x","sigmoid","float32")};return r.a.runKernel(i.Mc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({max_:function(e,t=null,n=!1){let o={x:Object(a.a)(e,"x","max")},s={reductionIndices:t,keepDims:n};return r.a.runKernel(i.Pb,o,s)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({tile_:function(e,t){let n=Object(a.a)(e,"x","tile","string_or_numeric");o.c(n.rank===t.length,()=>`Error in transpose: rank of input ${n.rank} must match length of reps ${t}.`);let s={x:n},l={reps:t};return r.a.runKernel(i.od,s,l)}})},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"a",function(){return c});var r=n(0);function i(e,t){return a(e,t)}function a(e,t,n=new Map,r=new Set){if(null==e)return null;if("function"==typeof Blob&&e instanceof Blob)return e.slice();if(r.has(e))throw Error("Circular references are not supported.");if(n.has(e))return n.get(e);let i=t(e);if(i.recurse&&null!==i.value)throw Error("A deep map function may not return both a value and recurse=true.");if(i.recurse){if(u(e)){let i=Array.isArray(e)?[]:{};for(let o in r.add(e),e){let s=a(e[o],t,n,r);i[o]=s}return r.delete(e),e.__proto__&&(i.__proto__=e.__proto__),i}throw Error("Can't recurse into non-iterable type: "+e)}return n.set(e,i.value),i.value}function o(e,t=s){return function e(t,n,r=new Set){let i=t[0];if(r.has(i))throw Error("Circular references are not supported.");let a=n(t);if(a.recurse&&null!==a.value)throw Error("A deep zip function may not return both a value and recurse=true.");if(a.recurse){if(u(i)){let a=Array.isArray(i)?[]:{};for(let o in r.add(i),i){let i=e(t.map(e=>e[o]),n,r);a[o]=i}return r.delete(i),a}throw Error("Can't recurse into non-iterable type: "+i)}return a.value}(e,t)}function s(e){return null===e?null:u(e[0])?{value:null,recurse:!0}:{value:e,recurse:!1}}async function l(e,t){let n=new Map;for(let i of(a(e,t,n),Array.from(n.keys()))){let e=n.get(i);if(r.Si.isPromise(e)){let t=await e;n.set(i,t)}}return a(e,t,n)}function u(e){let t=!1;if(r.of().get("IS_BROWSER"))t=e instanceof TextDecoder;else{let{StringDecoder:r}=n(658);t=e instanceof r}return null!=e&&!ArrayBuffer.isView(e)&&(Array.isArray(e)||"object"==typeof e&&!(e instanceof r.Dd)&&!(e instanceof Promise)&&!t)}function c(e){var t;return null==e||null===(t=e)||"object"!=typeof t&&"function"!=typeof t||Array.isArray(e)||"object"==typeof e&&e instanceof r.Dd||r.Si.isTypedArray(e)}},function(e,t,n){"use strict";var r=n(297),i=n(142);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(46),i=n(48),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({log_:function(e){let t={x:Object(a.a)(e,"x","log","float32")};return r.a.runKernel(i.Gb,t)}})},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var r=n(24);function i(...e){Object(r.c)().getBool("IS_TEST")||Object(r.c)().getBool("PROD")||console.warn(...e)}function a(...e){Object(r.c)().getBool("IS_TEST")||Object(r.c)().getBool("PROD")||console.log(...e)}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=(function(){return i}
2).apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";var r=n(48),i=n(154),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var r=n(48),i=n(87),a=n(302),o=n(274);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&a(n,u,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,n){"use strict";function r(e,t,n){let r=function(e,t,n){return function(e,t,n){let r=0,i=e.length,a=0,o=!1;for(;r<i;){let s=n(t,e[a=r+(i-r>>>1)]);s>0?r=a+1:(i=a,o=!s)}return o?r:-r-1}(e,t,n||i)}(e,t,n),a=r<0?-(r+1):r;e.splice(a,0,t)}function i(e,t){return e>t?1:e<t?-1:0}function a(e,t,n,r,i){return l(e,t,n,r,i,0)}function o(e,t,n,r,i,a){return l(e,t,n,r,i,0,!1,a,!0)}function s(e,t,n,r,i,a){return l(e,t,n,r,i,a,!0)}function l(e,t,n,i,a,o,s=!1,d=!1,f=!1){let h=[];for(let e=0;e<t.length;e++)t[e]>a&&h.push({score:t[e],boxIndex:e,suppressBeginIndex:0});h.sort(p);let g=o>0?-.5/o:0,b=[],m=[];for(;b.length<n&&h.length>0;){let t=h.pop(),{score:n,boxIndex:o,suppressBeginIndex:s}=t;if(n<a)break;let l=!1;for(let n=b.length-1;n>=s;--n){let r=u(e,o,b[n]);if(r>=i){l=!0;break}if(t.score=t.score*c(i,g,r),t.score<=a)break}t.suppressBeginIndex=b.length,l||(t.score===n?(b.push(o),m.push(t.score)):t.score>a&&r(h,t,p))}let y=b.length,S=n-y;d&&S>0&&(b.push(...Array(S).fill(0)),m.push(...Array(S).fill(0)));let v={selectedIndices:b};return s&&(v.selectedScores=m),f&&(v.validOutputs=y),v}function u(e,t,n){let r=e.subarray(4*t,4*t+4),i=e.subarray(4*n,4*n+4),a=Math.min(r[0],r[2]),o=Math.min(r[1],r[3]),s=Math.max(r[0],r[2]),l=Math.max(r[1],r[3]),u=Math.min(i[0],i[2]),c=Math.min(i[1],i[3]),p=Math.max(i[0],i[2]),d=Math.max(i[1],i[3]),f=(s-a)*(l-o),h=(p-u)*(d-c);if(f<=0||h<=0)return 0;let g=Math.max(Math.min(s,p)-Math.max(a,u),0)*Math.max(Math.min(l,d)-Math.max(o,c),0);return g/(f+h-g)}function c(e,t,n){let r=Math.exp(t*n*n);return n<=e?r:0}function p(e,t){return e.score-t.score||e.score===t.score&&t.boxIndex-e.boxIndex}n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(10);function o(e,t,n){Object(a.d)(e);let o={shape:e,value:t,dtype:n=n||Object(a.s)(t)};return r.a.runKernel(i.ib,{},o)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(10),a=n(72);function o(e,t="float32"){if(Object(i.d)(e),"complex64"===t){let t=o(e,"float32"),n=o(e,"float32");return Object(a.a)(t,n)}let n=Object(i.F)(Object(i.O)(e),t);return r.a.makeTensor(n,e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({relu_:function(e){let t={x:Object(a.a)(e,"x","relu")};return r.a.runKernel(i.xc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({step_:function(e,t=0){let n={x:Object(a.a)(e,"x","step")},o={alpha:t};return r.a.runKernel(i.ed,n,o)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({unstack_:function(e,t=0){let n=Object(a.a)(e,"x","unstack","string_or_numeric");o.c(t>=-n.shape.length&&t<n.shape.length,()=>`Axis = ${t} is not in [-${n.shape.length}, ${n.shape.length})`);let s={value:n},l={axis:t};return r.a.runKernel(i.td,s,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(8);let l=Object(n(4).b)({batchNorm_:function(e,t,n,l,u,c){let p,d;null==c&&(c=.001);let f=Object(a.a)(e,"x","batchNorm"),h=Object(a.a)(t,"mean","batchNorm"),g=Object(a.a)(n,"variance","batchNorm");null!=u&&(p=Object(a.a)(u,"scale","batchNorm")),null!=l&&(d=Object(a.a)(l,"offset","batchNorm")),o.c(h.rank===g.rank,()=>"Batch normalization gradient requires mean and variance to have equal ranks."),o.c(null==d||h.rank===d.rank,()=>"Batch normalization gradient requires mean and offset to have equal ranks."),o.c(null==p||h.rank===p.rank,()=>"Batch normalization gradient requires mean and scale to have equal ranks.");let b={x:function(e){return 0===e.rank||1===e.rank?Object(s.a)(e,[1,1,1,e.size]):2===e.rank?Object(s.a)(e,[1,1,e.shape[0],e.shape[1]]):3===e.rank?Object(s.a)(e,[1,e.shape[0],e.shape[1],e.shape[2]]):e}(f),scale:p,offset:d,mean:h,variance:g},m={varianceEpsilon:c},y=r.a.runKernel(i.nb,b,m);return Object(s.a)(y,f.shape)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(2),i=n(71);function a(e,t,n){let a=Object(r.c)(e,n);return Object(i.a)(e,t,a,n)}},function(e,t,n){var r=n(648),i=n(649),a=n(650),o=n(651),s=n(652),l=n(653),u=n(654);u.alea=r,u.xor128=i,u.xorwow=a,u.xorshift7=o,u.xor4096=s,u.tychei=l,e.exports=u},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(43),i=r({}.toString),a=r("".slice);e.exports=function(e){return a(i(e),8,-1)}},function(e,t,n){"use strict";var r=n(142),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20);let l=Object(n(4).b)({less_:function(e,t){let n=Object(o.a)(e,"a","less","string_or_numeric"),l=Object(o.a)(t,"b","less","string_or_numeric");[n,l]=Object(a.makeTypesMatch)(n,l),Object(s.assertAndGetBroadcastShape)(n.shape,l.shape);let u={a:n,b:l};return r.a.runKernel(i.Db,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({mean_:function(e,t=null,n=!1){let o={x:Object(a.a)(e,"x","mean")},s={axis:t,keepDims:n};return r.a.runKernel(i.Wb,o,s)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20),l=n(16);let u=Object(n(4).b)({minimum_:function(e,t){let n=Object(o.a)(e,"a","minimum"),u=Object(o.a)(t,"b","minimum");[n,u]=Object(a.makeTypesMatch)(n,u),"bool"===n.dtype&&(n=Object(l.a)(n,"int32"),u=Object(l.a)(u,"int32")),Object(s.assertAndGetBroadcastShape)(n.shape,u.shape);let c={a:n,b:u};return r.a.runKernel(i.Yb,c)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({real_:function(e){let t={input:Object(a.a)(e,"input","real")};return r.a.runKernel(i.uc,t)}})},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return l}),n(28);var r=n(151);n(123);let i=Object(r.a)("kernelRegistry",()=>new Map),a=Object(r.a)("gradRegistry",()=>new Map);function o(e,t){let n=u(e,t);return i.get(n)}function s(e){return a.get(e)}function l(e){let t=i.entries(),n=[];for(;;){let{done:r,value:i}=t.next();if(r)break;let[a,o]=i,[s]=a.split("_");s===e&&n.push(o)}return n}function u(e,t){return`${t}_${e}`}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});let r={float32:4,float16:2,int32:4,uint16:2,uint8:1,bool:1,complex64:8}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(28);function i(...e){Object(r.b)().getBool("IS_TEST")||Object(r.b)().getBool("PROD")||console.warn(...e)}},function(e,t,n){"use strict";var r=n(46).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},function(e,t,n){"use strict";var r=n(306);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"d",function(){return p}),n.d(t,"b",function(){return c}),n.d(t,"e",function(){return u}),n.d(t,"c",function(){return l});var r=n(10),i=n(59);class a{constructor(){this.managers={}}static getInstance(){return null==a.instance&&(a.instance=new a),a.instance}static registerManager(e,t){Object(r.c)(null!=e,()=>"scheme must not be undefined or null."),e.endsWith("://")&&(e=e.slice(0,e.indexOf("://"))),Object(r.c)(e.length>0,()=>"scheme must not be an empty string.");let n=a.getInstance();Object(r.c)(null==n.managers[e],()=>`A model store manager is already registered for scheme '${e}'.`),n.managers[e]=t}static getManager(e){let t=a.getInstance().managers[e];if(null==t)throw Error(`Cannot find model manager for scheme '${e}'`);return t}static getSchemes(){return Object.keys(a.getInstance().managers)}}function o(e){if(-1===e.indexOf("://"))throw Error("The url string provided does not contain a scheme. Supported schemes are: "+a.getSchemes().join(","));return{scheme:e.split("://")[0],path:e.split("://")[1]}}async function s(e,t,n=!1){Object(r.c)(e!==t,()=>`Old path and new path are the same: '${e}'`);let l=i.a.getLoadHandlers(e);Object(r.c)(l.length>0,()=>`Copying failed because no load handler is found for source URL ${e}.`),Object(r.c)(l.length<2,()=>`Copying failed because more than one (${l.length}) load handlers for source URL ${e}.`);let u=l[0],c=i.a.getSaveHandlers(t);Object(r.c)(c.length>0,()=>`Copying failed because no save handler is found for destination URL ${t}.`),Object(r.c)(c.length<2,()=>`Copying failed because more than one (${l.length}) save handlers for destination URL ${t}.`);let p=c[0],d=o(e).scheme,f=o(e).path,h=d===o(e).scheme,g=await u.load();n&&h&&await a.getManager(d).removeModel(f);let b=await p.save(g);return n&&!h&&await a.getManager(d).removeModel(f),b.modelArtifactsInfo}async function l(){let e=a.getSchemes(),t={};for(let n of e){let e=await a.getManager(n).listModels();for(let r in e)t[n+"://"+r]=e[r]}return t}async function u(e){let t=o(e);return a.getManager(t.scheme).removeModel(t.path)}async function c(e,t){return s(e,t,!1)}async function p(e,t){return s(e,t,!0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"validateUpdateShape",function(){return i}),n.d(t,"validateInput",function(){return a}),n.d(t,"calculateShapes",function(){return o}
2);var r=n(10);function i(e,t,n){let r=t.rank>1?t.shape[t.rank-1]:1,i=t.rank>1?t.rank-1:1,a="Must have updates.shape = indices.shape[:batchDim] + shape[sliceDim:], got updates.shape: "+n.shape+`, indices.shape: ${t.shape}, shape: ${e}`+`, sliceDim: ${r}, and batchDim: ${i}.`;if(n.rank<i)throw Error(a+` update.rank < ${i}. `);if(e.length<r+(n.rank-i))throw Error(a+" Output shape length < "+(r+(n.rank-i)));if(n.rank!==i+e.length-r)throw Error(a+" update.rank != "+(i+e.length-r));for(let e=0;e<i;++e)if(n.shape[e]!==t.shape[e])throw Error(a+` updates.shape[${e}] (${n.shape[e]}) != indices.shape[${e}] (${t.shape[e]}).`);for(let t=0;t<n.rank-i;++t)if(n.shape[t+i]!==e[t+r])throw Error(a+` updates.shape[${t+i}] (${n.shape[t+i]}) != shape[${t+i}] (${e[t+i]})`)}function a(e,t,n){if(t.rank<1)throw Error(`tf.scatterND() expects the indices to be rank 1 or higher, but the rank was ${t.rank}.`);if(e.rank<1)throw Error(`tf.scatterND() expects the updates to be rank 1 or higher, but the rank was ${e.rank}.`);if("int32"!==t.dtype)throw Error("The dtype of 'indices' should be int32, but got dtype: "+t.dtype);if(n.length<1)throw Error("Output rank must be greater or equal to 1, but got shape: "+n);if(0===n.length){if(0===t.size)throw Error("Indices specified for empty output. indices shape: "+t.shape);if(0===e.size)throw Error("Updates specified for empty output. updates shape: "+e.shape)}i(n,t,e)}function o(e,t,n){let i=t.shape.length,a=i>1?t.shape[i-1]:1,o=n.length,s=1;for(let e=a;e<o;++e)s*=n[e];let l=a<1?1:a;return{sliceRank:a,numUpdates:Object(r.O)(t.shape)/l,sliceSize:s,strides:[...Object(r.k)(n.slice(0,a)),1],outputSize:Object(r.O)(n)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20),l=n(16);let u=Object(n(4).b)({maximum_:function(e,t){let n=Object(o.a)(e,"a","maximum"),u=Object(o.a)(t,"b","maximum");[n,u]=Object(a.makeTypesMatch)(n,u),"bool"===n.dtype&&(n=Object(l.a)(n,"int32"),u=Object(l.a)(u,"int32")),Object(s.assertAndGetBroadcastShape)(n.shape,u.shape);let c={a:n,b:u};return r.a.runKernel(i.Vb,c)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(30),a=n(17),o=n(11),s=n(23),l=n(79);class u extends l.a{static get className(){return"SGD"}constructor(e){super(),this.learningRate=e,this.setLearningRate(e)}applyGradients(e){(Array.isArray(e)?e.map(e=>e.name):Object.keys(e)).forEach((t,n)=>{let s=Array.isArray(e)?e[n].tensor:e[t];if(null==s)return;let l=r.a.registeredVariables[t];Object(i.t)(()=>{let e=Object(a.a)(Object(o.a)(this.c,s),l);l.assign(e)})}),this.incrementIterations()}setLearningRate(e){this.learningRate=e,null!=this.c&&this.c.dispose(),this.c=Object(i.l)(Object(s.a)(-e))}dispose(){this.c.dispose()}async getWeights(){return[await this.saveIterations()]}async setWeights(e){if(0!==(e=await this.extractIterations(e)).length)throw Error("SGD optimizer does not have settable weights.")}getConfig(){return{learningRate:this.learningRate}}static fromConfig(e,t){return new e(t.learningRate)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({batchToSpaceND_:function(e,t,n){let s=Object(a.a)(e,"x","batchToSpaceND"),l=t.reduce((e,t)=>e*t);o.c(s.rank>=1+t.length,()=>`input rank is ${s.rank} but should be > than blockShape.length ${t.length}`),o.c(n.length===t.length,()=>`crops.length is ${n.length} but should be equal to blockShape.length ${t.length}`),o.c(s.shape[0]%l==0,()=>`input tensor batch is ${s.shape[0]} but is not divisible by the product of the elements of blockShape ${t.join(" * ")} === ${l}`);let u={x:s},c={blockShape:t,crops:n};return r.a.runKernel(i.t,u,c)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(26),l=n(4),u=n(8);let c=Object(l.b)({depthwiseConv2d_:function(e,t,n,l,c="NHWC",p=[1,1],d){let f=Object(a.a)(e,"x","depthwiseConv2d","float32"),h=Object(a.a)(t,"filter","depthwiseConv2d","float32"),g=f,b=!1;3===f.rank&&(b=!0,g=Object(u.a)(f,[1,f.shape[0],f.shape[1],f.shape[2]])),o.c(4===g.rank,()=>`Error in depthwiseConv2d: input must be rank 4, but got rank ${g.rank}.`),o.c(4===h.rank,()=>"Error in depthwiseConv2d: filter must be rank 4, but got rank "+h.rank+".");let m="NHWC"===c?g.shape[3]:g.shape[1];o.c(m===h.shape[2],()=>`Error in depthwiseConv2d: number of input channels (${m}) must match the inChannels dimension in filter ${h.shape[2]}.`),s.a("depthwiseConv2d",l,d);let y={x:g,filter:h},S={strides:n,pad:l,dataFormat:c,dilations:p,dimRoundingMode:d},v=r.a.runKernel(i.R,y,S);return b?Object(u.a)(v,[v.shape[1],v.shape[2],v.shape[3]]):v}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20);let l=Object(n(4).b)({equal_:function(e,t){let n=Object(o.a)(e,"a","equal","string_or_numeric"),l=Object(o.a)(t,"b","equal","string_or_numeric");[n,l]=Object(a.makeTypesMatch)(n,l),Object(s.assertAndGetBroadcastShape)(n.shape,l.shape);let u={a:n,b:l};return r.a.runKernel(i.cb,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(2),i=n(10),a=n(62),o=n(55),s=n(94),l=n(147),u=n(4),c=n(73),p=n(8),d=n(23),f=n(51),h=n(32),g=n(21);let b=Object(u.b)({norm_:function(e,t="euclidean",n=null,u=!1){let b=function e(t,n,r=null){if(0===t.rank)return Object(a.a)(t);if(1!==t.rank&&null===r)return e(Object(p.a)(t,[-1]),n,r);
2if(1===t.rank||"number"==typeof r||Array.isArray(r)&&1===r.length){if(1===n)return Object(g.a)(Object(a.a)(t),r);if(n===1/0)return Object(s.a)(Object(a.a)(t),r);if(n===-1/0)return Object(l.a)(Object(a.a)(t),r);if("euclidean"===n||2===n)return Object(f.a)(Object(g.a)(Object(c.a)(Object(a.a)(t),Object(d.a)(2,"int32")),r));throw Error("Error in norm: invalid ord value: "+n)}if(Array.isArray(r)&&2===r.length){if(1===n)return Object(s.a)(Object(g.a)(Object(a.a)(t),r[0]),r[1]-1);if(n===1/0)return Object(s.a)(Object(g.a)(Object(a.a)(t),r[1]),r[0]);if(n===-1/0)return Object(l.a)(Object(g.a)(Object(a.a)(t),r[1]),r[0]);if("fro"===n||"euclidean"===n)return Object(f.a)(Object(g.a)(Object(h.a)(t),r));throw Error("Error in norm: invalid ord value: "+n)}throw Error("Error in norm: invalid axis: "+r)}(e=Object(r.a)(e,"x","norm"),t,n),m=b.shape;if(u){let t=Object(i.I)(n,e.shape);m=o.e(b.shape,t)}return Object(p.a)(b,m)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({gather_:function(e,t,n=0,o=0){let s={x:Object(a.a)(e,"x","gather"),indices:Object(a.a)(t,"indices","gather","int32")},l={axis:n,batchDims:o};return r.a.runKernel(i.rb,s,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({imag_:function(e){let t={input:Object(a.a)(e,"input","imag")};return r.a.runKernel(i.wb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({logicalNot_:function(e){let t={x:Object(a.a)(e,"x","logicalNot","bool")};return r.a.runKernel(i.Kb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({spaceToBatchND_:function(e,t,n){let s=Object(a.a)(e,"x","spaceToBatchND");o.c(s.rank>=1+t.length,()=>`input rank ${s.rank} should be > than [blockShape] ${t.length}`),o.c(n.length===t.length,()=>`paddings.shape[0] ${n.length} must be equal to [blockShape] ${t.length}`),o.c(s.shape.reduce((e,r,i)=>i>0&&i<=t.length?e&&(r+n[i-1][0]+n[i-1][1])%t[i-1]==0:e,!0),()=>`input spatial dimensions ${s.shape.slice(1)} with paddings ${n.toString()} must be divisible by blockShapes ${t.toString()}`);let l={x:s},u={blockShape:t,paddings:n};return r.a.runKernel(i.Tc,l,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(2),i=n(10),a=n(4),o=n(8);let s=Object(a.b)({squeeze_:function(e,t){let n=Object(r.a)(e,"x","squeeze","string_or_numeric");return Object(o.a)(n,Object(i.Q)(n.shape,t).newShape)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(92),l=n(4),u=n(8);let c=Object(l.b)({broadcastTo_:function(e,t){let n=Object(a.a)(e,"broadcastTo","x"),l=n.shape;if(Object(o.d)(t),t.length<n.rank)throw Error(`broadcastTo(): shape.length=${t.length} < input.rank=${n.rank}.`);if(t.length>n.rank){let e=n.shape.slice();for(;e.length<t.length;)e.unshift(1);n=Object(u.a)(n,e)}let c=n.shape,p=Array.from(t);for(let e=t.length-1;e>=0;e--)if(c[e]===t[e])p[e]=1;else if(1!==n.shape[e])throw Error(`broadcastTo(): [${l}] cannot be broadcast to [${t}].`);if(0===p.map((e,t)=>e>1?t:-1).filter(e=>e>=0).length)return Object(s.a)(n);let d={x:n},f={reps:p};return r.a.runKernel(i.od,d,f)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(9),i=n(141);function a(e,t,n){let a=Object(r.c)(e,n);return Object(i.a)(e,t,a,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(13),i=n(39),a=n(22);function o(e,t,n,o){if(null==o&&(o=Object(i.l)(e)),"complex64"===o)throw Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");if(!Object(i.p)(e)&&!Array.isArray(e)&&"number"!=typeof e&&"boolean"!=typeof e&&"string"!=typeof e)throw Error("values passed to tensor(values) must be a number/boolean/string or an array of numbers/booleans/strings, or a TypedArray");if(null!=t){Object(i.c)(t);let e=Object(i.v)(t),r=Object(i.v)(n);Object(i.b)(e===r,()=>`Based on the provided shape, [${t}], the tensor should have ${e} values but has ${r}`);for(let e=0;e<n.length;++e){let r=n[e],a=e!==n.length-1||r!==Object(i.v)(t.slice(e));Object(i.b)(n[e]===t[e]||!a,()=>`Error creating a new Tensor. Inferred shape (${n}) does not match the provided shape (${t}). `)}}return Object(i.p)(e)||Array.isArray(e)||(e=[e]),t=t||n,e="string"!==o?Object(a.d)(e,o):Object(i.j)(e,[],!0),r.a.makeTensor(e,t,o)}},function(e,t,n){"use strict";var r=n(194),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},function(e,t,n){"use strict";e.exports=n(43)({}.isPrototypeOf)},function(e,t){var n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,u=[],c=!1,p=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):p=-1,u.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++p<t;)l&&l[p].run();p=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return o}
2);let r={};function i(e,t){let n={tfOpName:e,category:"custom",inputs:[],attrs:[],customExecutor:t};r[e]=n}function a(e){return r[e]}function o(e){delete r[e]}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({cumprod_:function(e,t=0,n=!1,o=!1){let s={x:Object(a.a)(e,"x","cumprod")},l={axis:t,exclusive:n,reverse:o};return r.a.runKernel(i.N,s,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({min_:function(e,t=null,n=!1){let o={x:Object(a.a)(e,"x","min")},s={axis:t,keepDims:n};return r.a.runKernel(i.Xb,o,s)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({oneHot_:function(e,t,n=1,o=0,s="int32"){if(t<2)throw Error("Error in oneHot: depth must be >=2, but it is "+t);let l={indices:Object(a.a)(e,"indices","oneHot","int32")},u={dtype:s,depth:t,onValue:n,offValue:o};return r.a.runKernel(i.ic,l,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(10);let o=Object(n(4).b)({ifft_:function(e){Object(a.c)("complex64"===e.dtype,()=>`The dtype for tf.spectral.ifft() must be complex64 but got ${e.dtype}.`);let t={input:e};return r.a.runKernel(i.ub,t)}})},function(e,t,n){"use strict";(function(e,r){let i;function a(){if(null==i){let t;if("undefined"!=typeof window)t=window;else if(void 0!==e)t=e;else if(void 0!==r)t=r;else{if("undefined"==typeof self)throw Error("Could not find a global object");t=self}i=t}return i}function o(e,t){let n=function(){let e=a();return null==e._tfGlobals&&(e._tfGlobals=new Map),e._tfGlobals}();if(n.has(e))return n.get(e);{let r=t();return n.set(e,r),n.get(e)}}n.d(t,"b",function(){return a}),n.d(t,"a",function(){return o})}).call(this,n(114),n(144))},function(e,t,n){"use strict";(function(e,r){let i;function a(){if(null==i){let t;if("undefined"!=typeof window)t=window;else if(void 0!==e)t=e;else if(void 0!==r)t=r;else{if("undefined"==typeof self)throw Error("Could not find a global object");t=self}i=t}return i}function o(e,t){let n=function(){let e=a();return null==e._tfGlobals&&(e._tfGlobals=new Map),e._tfGlobals}();if(n.has(e))return n.get(e);{let r=t();return n.set(e,r),n.get(e)}}n.d(t,"b",function(){return a}),n.d(t,"a",function(){return o})}).call(this,n(114),n(144))},function(e,t,n){"use strict";var r=n(57),i=n(58),a=n(271),o=n(193),s=n(97),l=n(272),u=n(65),c=n(300),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=s(e),t=l(t),c)try{return p(e,t)}catch(e){}if(u(e,t))return o(!i(a.f,e,t),e[t])}},function(e,t,n){"use strict";var r=n(196),i=n(41),a=n(46).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},function(e,t,n){"use strict";var r=n(273);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},function(e,t,n){"use strict";var r=n(57),i=n(87),a=n(193);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r,i,a,o=n(547),s=n(46),l=n(66),u=n(156),c=n(65),p=n(273),d=n(215),f=n(216),h=s.TypeError,g=s.WeakMap;if(o||p.state){var b=p.state||(p.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new h("Object already initialized");return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},a=function(e){return b.has(e)}}else{var m=d("state");f[m]=!0,r=function(e,t){if(c(e,m))throw new h("Object already initialized");return t.facade=e,u(e,m,t),t},i=function(e){return c(e,m)?e[m]:{}},a=function(e){return c(e,m)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r,i=n(69),a=n(307),o=n(280),s=n(216),l=n(308),u=n(213),c=n(215)("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},f=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}h="undefined"!=typeof document?document.domain&&r?f(r):function(){var e,t=u("iframe");return t.style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F}():f(r);for(var e=o.length;e--;)delete h.prototype[o[e]];return h()};s[c]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=i(e),n=new p,p.prototype=null,n[c]=e):n=h(),void 0===t?n:a.f(n,t)}},function(e,t,n){"use strict";e.exports=n(43)([].slice)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],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}}),e.webpackPolyfill=1),e}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";n.r(t),n.d(t,"assertParamsValid",function(){return i}),n.d(t,"maskToAxes",function(){return a}),n.d(t,"computeOutShape",function(){return o}
2),n.d(t,"stridesWithElidedDims",function(){return s}),n.d(t,"getNormalizedAxes",function(){return c}),n.d(t,"startIndicesWithElidedDims",function(){return p}),n.d(t,"stopIndicesWithElidedDims",function(){return d}),n.d(t,"stridesForAxis",function(){return f}),n.d(t,"startForAxis",function(){return h}),n.d(t,"stopForAxis",function(){return g}),n.d(t,"isSliceContinous",function(){return b}),n.d(t,"computeFlatOffset",function(){return m}),n.d(t,"parseSliceParams",function(){return y}),n.d(t,"sliceInfo",function(){return S});var r=n(10);function i(e,t,n){let i=e.shape.length;r.c(i===t.length,()=>`Error in slice${i}D: Length of begin ${t} must match the rank of the array (${i}).`),r.c(i===n.length,()=>`Error in slice${i}D: Length of size ${n} must match the rank of the array (${i}).`);for(let a=0;a<i;++a)r.c(t[a]+n[a]<=e.shape[a],()=>`Error in slice${i}D: begin[${a}] + size[${a}] (${t[a]+n[a]}) would overflow input.shape[${a}] (${e.shape[a]})`)}function a(e){let t=[],n=0;for(;e>0;)1&e&&t.push(n),e/=2,n++;return t}function o(e,t,n){let r=[];for(let i=0;i<e.length;i++)r[i]=Math.ceil((t[i]-e[i])/n[i]);return r}function s(e,t,n,r){let i=[...e];for(let e=i.length;e<r.length;e++)i.push(1);for(let e=0;e<n;e++)0===e?i[t]=1:(i.splice(t,0,1),i.pop());return i}function l(e,t,n){return n<=e?n:n-(t-1)}function u(e,t){let n=[];for(let r=0;r<e;r++)n.push(t+r);return n}function c(e,t,n,r,i,a,o,l,u){let c=e.length,b=Array(c),m=Array(c),y=Array(c);if(t.length&&n>0){let u=t[0],c=n+1;b=p(o,u,c,r,e),m=d(l,u,c,i,e),y=s(a,u,c,e)}else for(let t=0;t<c;t++)b[t]=h(o,r,a,e,t,u),m[t]=g(l,i,a,e,t,u),y[t]=f(a,t,u);return{begin:b,end:m,strides:y}}function p(e,t,n,r,i){let a=[...i],o=u(n,t);for(let i=0;i<a.length;i++)if(o.indexOf(i)>-1)a[i]=0;else{let o=l(t,n,i),s=r[o];e&1<<o&&(s=0),a[i]=s}return a}function d(e,t,n,i,a){let o=[...a],s=u(n,t);for(let r=0;r<o.length;r++)if(s.indexOf(r)>-1)o[r]=Number.MAX_SAFE_INTEGER;else{let a=l(t,n,r),s=i[a];e&1<<a&&(s=Number.MAX_SAFE_INTEGER),o[r]=s}for(let e=0;e<o.length;e++){let t=a[e];o[e]<0&&(o[e]+=t),o[e]=r.j(0,o[e],a[e])}return o}function f(e,t,n){let r=e[t];return(n&1<<t||null==r)&&(r=1),r}function h(e,t,n,i,a,o){let s=t[a],l=n[a]||1;(e&1<<a||o&1<<a||null==s)&&(s=l>0?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER);let u=i[a];return s<0&&(s+=u),s=r.j(0,s,u-1)}function g(e,t,n,i,a,o){let s=t[a],l=n[a]||1;(e&1<<a||o&1<<a||null==s)&&(s=l>0?Number.MAX_SAFE_INTEGER:Number.MIN_SAFE_INTEGER);let u=i[a];return s<0&&(s+=u),s=l>0?r.j(0,s,u):r.j(-1,s,u-1)}function b(e,t,n){let r=n.length;for(let e=0;e<n.length;e++)if(n[e]>1){r=e;break}for(let i=r+1;i<n.length;i++)if(t[i]>0||n[i]!==e[i])return!1;return!0}function m(e,t){let n=e.length>0?e[e.length-1]:1;for(let r=0;r<e.length-1;r++)n+=e[r]*t[r];return n}function y(e,t,n){let i,a,o=e.shape.length;return(i="number"==typeof t?[t,...Array(o-1).fill(0)]:t.length<o?t.concat(Array(o-t.length).fill(0)):t.slice()).forEach(e=>{r.c(-1!==e,()=>"slice() does not support negative begin indexing.")}),a=(a=null==n?Array(o).fill(-1):"number"==typeof n?[n,...Array(o-1).fill(-1)]:n.length<o?n.concat(Array(o-n.length).fill(-1)):n).map((t,n)=>t>=0?t:(r.c(-1===t,()=>`Negative size values should be exactly -1 but got ${t} for the slice() size at index ${n}.`),e.shape[n]-i[n])),[i,a]}function S(e,t,n,r,i,a,o,s,l){let u;if(null==r?(u=Array(t.length)).fill(1):u=r,null!=o&&0!=(o&o-1))throw Error("Multiple ellipses in slice is not allowed.");let c=!1,p={dims:u.length,numAddAxisAfterEllipsis:0,begin:t.slice(),end:n.slice(),strides:u.slice(),beginMask:i,endMask:a,ellipsisMask:o,newAxisMask:s,shrinkAxisMask:l};for(let e=0;e<p.dims;e++)c&&0!=(1<<e&s)&&p.numAddAxisAfterEllipsis++,1<<e&o&&(c=!0);c||(p.ellipsisMask|=1<<p.dims,p.dims++);let d={dims:e.length,beginMask:0,endMask:0,beginValid:!1,endValid:!1};!function(e,t){t.beginMask=0,t.endMask=0,t.shrinkAxisMask=0;let n=0;t.beginValid=null!=e.begin,t.endValid=null!=e.end,t.begin=Array(t.dims),t.end=Array(t.dims),t.strides=Array(t.dims),t.finalShapeGatherIndices=[],t.finalShapeGatherIndicesSparse=[],t.inputShapeGatherIndicesSparse=Array(t.dims);for(let r=0;r<e.dims;r++)if(1<<r&e.ellipsisMask){let i=Math.min(t.dims-(e.dims-r)+1+e.numAddAxisAfterEllipsis,t.dims);for(;n<i;n++)t.begin[n]=0,t.end[n]=0,t.strides[n]=1,t.beginMask|=1<<n,t.endMask|=1<<n,t.finalShapeGatherIndices.push(n),t.finalShapeGatherIndicesSparse.push(-1),t.inputShapeGatherIndicesSparse[n]=r}else if(1<<r&e.newAxisMask)t.finalShapeGatherIndices.push(-2),t.finalShapeGatherIndicesSparse.push(-1);else{if(n===t.begin.length)throw Error(`Index out of range using input dim ${n}; input has only ${t.dims} dims, ${t.begin.length}.`);null!=e.begin&&(t.begin[n]=e.begin[r]),null!=e.end&&(t.end[n]=e.end[r]),t.strides[n]=e.strides[r],e.beginMask&1<<r&&(t.beginMask|=1<<n),e.endMask&1<<r&&(t.endMask|=1<<n),e.shrinkAxisMask&1<<r?(t.finalShapeGatherIndices.push(-1),t.finalShapeGatherIndicesSparse.push(-1),t.shrinkAxisMask|=1<<n):(t.finalShapeGatherIndices.push(n),t.finalShapeGatherIndicesSparse.push(r)),t.inputShapeGatherIndicesSparse[n]=r,n++}}(p,d);let f=!0,h=!0,g=!0,b=[],m=[];for(let t=0;t<e.length;++t){if(0===d.strides[t])throw Error(`strides[${t}] must be non-zero`);let n=!!(d.shrinkAxisMask&1<<t),r=e[t];if(-1===r){b.push(n?1:-1);continue}let i=[d.beginMask&1<<t,d.endMask&1<<t],a=[d.strides[t]>0?0:-1,d.strides[t]>0?r:r-1];if(n&&d.strides[t]<=0)throw Error("only stride 1 allowed on non-range indexing.");g=g&&1===d.strides[t];let o=!!(d.beginMask&1<<t&&d.endMask&1<<t);if(d.beginValid&&d.endValid){if(n){let e=d.begin[t]<0?r+d.begin[t]:d.begin[t];if(d.begin[t]=e,d.end[t]=d.begin[t]+1,e<0||e>=r)throw Error(`slice index ${d.begin[t]} of dimension ${t} out of bounds.`)}else d.begin[t]=v(d.begin[t],0,d.strides[t],r,i,a),d.end[t]=v(d.end[t],1,d.strides[t],r,i,a);let e=1===d.strides[t]&&0===d.begin[t]&&d.end[t]===r;f=f&&e,h=h&&(0===t&&1===d.strides[t]||e)}else f=f&&1===d.strides[t]&&o,h=h&&(0===t&&1===d.strides[t]||o);let s,l=!1;if(d.beginValid&&d.endValid?(s=d.end[t]-d.begin[t],l=!0):n?(s=1,l=!0):o&&r>=0&&(s=d.strides[t]<0?-r:r,l=!0),l){let e;e=0===s||s<0!=d.strides[t]<0?0:Math.trunc(s/d.strides[t])+ +(s%d.strides[t]!=0),b.push(e)}else b.push(-1)}for(let e=0;e<d.finalShapeGatherIndices.length;++e){let t=d.finalShapeGatherIndices[e];t>=0?m.push(b[t]):-2===t&&m.push(1)}return{finalShapeSparse:m.filter((e,t)=>
2-2!==d.finalShapeGatherIndices[t]),finalShape:m,isIdentity:f,sliceDim0:h,isSimpleSlice:g,begin:d.begin,end:d.end,strides:d.strides}}function v(e,t,n,r,i,a){if(i[t])return n>0?a[t]:a[t+1&1];{let t=e<0?r+e:e;return t<a[0]?a[0]:t>a[1]?a[1]:t}}},function(e,t,n){"use strict";var r,i,a,o,s;n.d(t,"a",function(){return u}),function(e){e.R0="R0",e.R1="R1",e.R2="R2",e.R3="R3",e.R4="R4",e.R5="R5",e.R6="R6"}(r||(r={})),function(e){e.float32="float32",e.int32="int32",e.bool="int32",e.complex64="complex64"}(i||(i={})),function(e){e.float32="float32",e.int32="int32",e.bool="bool",e.complex64="complex64"}(a||(a={})),function(e){e.float32="float32",e.int32="float32",e.bool="float32",e.complex64="complex64"}(o||(o={})),function(e){e.float32="complex64",e.int32="complex64",e.bool="complex64",e.complex64="complex64"}(s||(s={}));let l={float32:o,int32:i,bool:a,complex64:s};function u(e,t){if("string"===e||"string"===t){if("string"===e&&"string"===t)return"string";throw Error(`Can not upcast ${e} with ${t}`)}return l[e][t]}},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(5),i=n(30),a=n(17),o=n(19),s=n(11),l=n(51),u=n(32),c=n(25),p=n(79);class d extends p.a{static get className(){return"Adadelta"}constructor(e,t,n=null){super(),this.learningRate=e,this.rho=t,this.epsilon=n,this.accumulatedGrads=[],this.accumulatedUpdates=[],null==n&&(this.epsilon=r.a.backend.epsilon())}applyGradients(e){(Array.isArray(e)?e.map(e=>e.name):Object.keys(e)).forEach((t,n)=>{let p=r.a.registeredVariables[t];null==this.accumulatedGrads[n]&&(this.accumulatedGrads[n]={originalName:t+"/accum_grad",variable:Object(i.t)(()=>Object(c.a)(p).variable(!1))}),null==this.accumulatedUpdates[n]&&(this.accumulatedUpdates[n]={originalName:t+"/accum_var",variable:Object(i.t)(()=>Object(c.a)(p).variable(!1))});let d=Array.isArray(e)?e[n].tensor:e[t];if(null==d)return;let f=this.accumulatedGrads[n].variable,h=this.accumulatedUpdates[n].variable;Object(i.t)(()=>{let e=Object(a.a)(Object(s.a)(f,this.rho),Object(s.a)(Object(u.a)(d),1-this.rho)),t=Object(s.a)(Object(o.a)(Object(l.a)(Object(a.a)(h,this.epsilon)),Object(l.a)(Object(a.a)(f,this.epsilon))),d),n=Object(a.a)(Object(s.a)(h,this.rho),Object(s.a)(Object(u.a)(t),1-this.rho));f.assign(e),h.assign(n);let r=Object(a.a)(Object(s.a)(t,-this.learningRate),p);p.assign(r)})}),this.incrementIterations()}dispose(){null!=this.accumulatedUpdates&&(Object(i.d)(this.accumulatedGrads.map(e=>e.variable)),Object(i.d)(this.accumulatedUpdates.map(e=>e.variable)))}async getWeights(){let e=[...this.accumulatedGrads,...this.accumulatedUpdates];return[await this.saveIterations()].concat(e.map(e=>({name:e.originalName,tensor:e.variable})))}async setWeights(e){let t=(e=await this.extractIterations(e)).length/2;this.accumulatedGrads=e.slice(0,t).map(e=>({originalName:e.name,variable:e.tensor.variable(!1)})),this.accumulatedUpdates=e.slice(t,2*t).map(e=>({originalName:e.name,variable:e.tensor.variable(!1)}))}getConfig(){return{learningRate:this.learningRate,rho:this.rho,epsilon:this.epsilon}}static fromConfig(e,t){return new e(t.learningRate,t.rho,t.epsilon)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"Serializable",function(){return o}),n.d(t,"SerializationMap",function(){return s}),n.d(t,"registerClass",function(){return l}),n.d(t,"getRegisteredName",function(){return u});var r=n(10);let i=new Map,a=new Map;class o{getClassName(){return this.constructor.className}static fromConfig(e,t){return new e(t)}}class s{constructor(){this.classNameMap={}}static getMap(){return null==s.instance&&(s.instance=new s),s.instance}static register(e){s.getMap().classNameMap[e.className]=[e,e.fromConfig]}}function l(e,t,n){Object(r.c)(null!=e.className,()=>"Class being registered does not have the static className property defined."),Object(r.c)("string"==typeof e.className,()=>"className is required to be a string, but got type "+typeof e.className),Object(r.c)(e.className.length>0,()=>"Class being registered has an empty-string as its className, which is disallowed."),void 0===t&&(t="Custom"),void 0===n&&(n=e.className);let o=t+">"+n;return s.register(e),i.set(o,e),a.set(e,o),e}function u(e){return a.has(e)?a.get(e):e.className}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(29),o=n(2);let s=Object(n(4).b)({floorDiv_:function(e,t){let n=Object(o.a)(e,"a","floorDiv"),s=Object(o.a)(t,"b","floorDiv");[n,s]=Object(a.makeTypesMatch)(n,s);let l={a:n,b:s};return r.a.runKernel(i.lb,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(5),i=n(30),a=n(17),o=n(19),s=n(106),l=n(11),u=n(51),c=n(32),p=n(79);class d extends p.a{static get className(){return"Adagrad"}constructor(e,t=.1){super(),this.learningRate=e,this.initialAccumulatorValue=t,this.accumulatedGrads=[]}applyGradients(e){(Array.isArray(e)?e.map(e=>
vendor: 11,578 bytes, line 2
2e.name):Object.keys(e)).forEach((t,n)=>{let p=r.a.registeredVariables[t];if(null==this.accumulatedGrads[n]){let e=!1;this.accumulatedGrads[n]={originalName:t+"/accumulator",variable:Object(i.t)(()=>Object(s.a)(p.shape,this.initialAccumulatorValue).variable(e))}}let d=Array.isArray(e)?e[n].tensor:e[t];if(null==d)return;let f=this.accumulatedGrads[n].variable;Object(i.t)(()=>{let e=Object(a.a)(f,Object(c.a)(d));f.assign(e);let t=Object(a.a)(Object(l.a)(Object(o.a)(d,Object(u.a)(Object(a.a)(e,r.a.backend.epsilon()))),-this.learningRate),p);p.assign(t)})}),this.incrementIterations()}dispose(){null!=this.accumulatedGrads&&Object(i.d)(this.accumulatedGrads.map(e=>e.variable))}async getWeights(){return[await this.saveIterations()].concat(this.accumulatedGrads.map(e=>({name:e.originalName,tensor:e.variable})))}async setWeights(e){e=await this.extractIterations(e),this.accumulatedGrads=e.map(e=>({originalName:e.name,variable:e.tensor.variable(!1)}))}getConfig(){return{learningRate:this.learningRate,initialAccumulatorValue:this.initialAccumulatorValue}}static fromConfig(e,t){return new e(t.learningRate,t.initialAccumulatorValue)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n(5),i=n(30),a=n(17),o=n(19),s=n(11),l=n(73),u=n(23),c=n(51),p=n(32),d=n(18),f=n(25),h=n(79);class g extends h.a{static get className(){return"Adam"}constructor(e,t,n,a=null){super(),this.learningRate=e,this.beta1=t,this.beta2=n,this.epsilon=a,this.accumulatedFirstMoment=[],this.accumulatedSecondMoment=[],Object(i.t)(()=>{this.accBeta1=Object(u.a)(t).variable(),this.accBeta2=Object(u.a)(n).variable()}),null==a&&(this.epsilon=r.a.backend.epsilon())}applyGradients(e){let t=Array.isArray(e)?e.map(e=>e.name):Object.keys(e);Object(i.t)(()=>{let n=Object(d.a)(1,this.accBeta1),l=Object(d.a)(1,this.accBeta2);t.forEach((t,u)=>{let d=r.a.registeredVariables[t];null==this.accumulatedFirstMoment[u]&&(this.accumulatedFirstMoment[u]={originalName:t+"/m",variable:Object(i.t)(()=>Object(f.a)(d).variable(!1))}),null==this.accumulatedSecondMoment[u]&&(this.accumulatedSecondMoment[u]={originalName:t+"/v",variable:Object(i.t)(()=>Object(f.a)(d).variable(!1))});let h=Array.isArray(e)?e[u].tensor:e[t];if(null==h)return;let g=this.accumulatedFirstMoment[u].variable,b=this.accumulatedSecondMoment[u].variable,m=Object(a.a)(Object(s.a)(g,this.beta1),Object(s.a)(h,1-this.beta1)),y=Object(a.a)(Object(s.a)(b,this.beta2),Object(s.a)(Object(p.a)(h),1-this.beta2)),S=Object(o.a)(m,n),v=Object(o.a)(y,l);g.assign(m),b.assign(y);let O=Object(a.a)(Object(s.a)(Object(o.a)(S,Object(a.a)(Object(c.a)(v),this.epsilon)),-this.learningRate),d);d.assign(O)}),this.accBeta1.assign(Object(s.a)(this.accBeta1,this.beta1)),this.accBeta2.assign(Object(s.a)(this.accBeta2,this.beta2))}),this.incrementIterations()}dispose(){this.accBeta1.dispose(),this.accBeta2.dispose(),null!=this.accumulatedFirstMoment&&Object(i.d)(this.accumulatedFirstMoment.map(e=>e.variable)),null!=this.accumulatedSecondMoment&&Object(i.d)(this.accumulatedSecondMoment.map(e=>e.variable))}async getWeights(){let e=[...this.accumulatedFirstMoment,...this.accumulatedSecondMoment];return[await this.saveIterations()].concat(e.map(e=>({name:e.originalName,tensor:e.variable})))}async setWeights(e){e=await this.extractIterations(e),Object(i.t)(()=>{this.accBeta1.assign(Object(l.a)(this.beta1,this.iterations_+1)),this.accBeta2.assign(Object(l.a)(this.beta2,this.iterations_+1))});let t=e.length/2;this.accumulatedFirstMoment=e.slice(0,t).map(e=>({originalName:e.name,variable:e.tensor.variable(!1)})),this.accumulatedSecondMoment=e.slice(t,2*t).map(e=>({originalName:e.name,variable:e.tensor.variable(!1)}))}getConfig(){return{learningRate:this.learningRate,beta1:this.beta1,beta2:this.beta2,epsilon:this.epsilon}}static fromConfig(e,t){return new e(t.learningRate,t.beta1,t.beta2,t.epsilon)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(5),i=n(30),a=n(62),o=n(17),s=n(19),l=n(128),u=n(11),c=n(23),p=n(18),d=n(25),f=n(79);class h extends f.a{static get className(){return"Adamax"}constructor(e,t,n,a=null,o=0){super(),this.learningRate=e,this.beta1=t,this.beta2=n,this.epsilon=a,this.decay=o,this.accumulatedFirstMoment=[],this.accumulatedWeightedInfNorm=[],Object(i.t)(()=>{this.iteration=Object(c.a)(0).variable(),this.accBeta1=Object(c.a)(t).variable()}),null==a&&(this.epsilon=r.a.backend.epsilon())}applyGradients(e){let t=Array.isArray(e)?e.map(e=>e.name):Object.keys(e);Object(i.t)(()=>{let n=Object(p.a)(1,this.accBeta1),i=Object(s.a)(-this.learningRate,Object(o.a)(Object(u.a)(this.iteration,this.decay),1));t.forEach((t,c)=>{let p=r.a.registeredVariables[t];null==this.accumulatedFirstMoment[c]&&(this.accumulatedFirstMoment[c]={originalName:t+"/m",variable:Object(d.a)(p).variable(!1)}),null==this.accumulatedWeightedInfNorm[c]&&(this.accumulatedWeightedInfNorm[c]={originalName:t+"/v",variable:Object(d.a)(p).variable(!1)});let f=Array.isArray(e)?e[c].tensor:e[t];if(null==f)return;let h=this.accumulatedFirstMoment[c].variable,g=this.accumulatedWeightedInfNorm[c].variable,b=Object(o.a)(Object(u.a)(h,this.beta1),Object(u.a)(f,1-this.beta1)),m=Object(u.a)(g,this.beta2),y=Object(a.a)(f),S=Object(l.a)(m,y);h.assign(b),g.assign(S);let v=Object(o.a)(Object(u.a)(Object(s.a)(i,n),Object(s.a)(b,Object(o.a)(S,this.epsilon))),p);p.assign(v)}),this.iteration.assign(Object(o.a)(this.iteration,1)),this.accBeta1.assign(Object(u.a)(this.accBeta1,this.beta1))}),this.incrementIterations()}dispose(){this.accBeta1.dispose(),this.iteration.dispose(),null!=this.accumulatedFirstMoment&&Object(i.d)(this.accumulatedFirstMoment.map(e=>e.variable)),null!=this.accumulatedWeightedInfNorm&&Object(i.d)(this.accumulatedWeightedInfNorm.map(e=>e.variable))}async getWeights(){throw Error("getWeights() is not implemented for Adamax yet.")}async setWeights(e){throw Error("setWeights() is not implemented for Adamax yet.")}getConfig(){return{learningRate:this.learningRate,beta1:this.beta1,beta2:this.beta2,epsilon:this.epsilon,decay:this.decay}}static fromConfig(e,t){return new e(t.learningRate,t.beta1,t.beta2,t.epsilon,t.decay)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(5),i=n(30),a=n(17),o=n(11),s=n(23),l=n(25),u=n(129);class c extends u.a{static get className(){return"Momentum"}constructor(e,t,n=!1){super(e),this.learningRate=e,this.momentum=t,this.useNesterov=n,this.accumulations=[],this.m=Object(s.a)(this.momentum)}applyGradients(e){(Array.isArray(e)?e.map(e=>e.name):Object.keys(e)).forEach((t,n)=>{let s=r.a.registeredVariables[t];if(null==this.accumulations[n]){let e=!1;this.accumulations[n]={originalName:t+"/momentum",variable:Object(i.t)(()=>Object(l.a)(s).variable(e))}}let u=this.accumulations[n].variable,c=Array.isArray(e)?e[n].tensor:e[t];null!=c&&Object(i.t)(()=>{let e,t=Object(a.a)(Object(o.a)(this.m,u),c);e=this.useNesterov?Object(a.a)(Object(o.a)(this.c,Object(a.a)(c,Object(o.a)(t,this.m))),s):Object(a.a)(Object(o.a)(this.c,t),s),u.assign(t),s.assign(e)})}),this.incrementIterations()}dispose(){this.m.dispose(),null!=this.accumulations&&Object(i.d)(this.accumulations.map(e=>e.variable))}setMomentum(e){this.momentum=e}async getWeights(){return[await this.saveIterations()].concat(this.accumulations.map(e=>({name:e.originalName,tensor:e.variable})))}async setWeights(e){e=await this.extractIterations(e),this.accumulations=e.map(e=>({originalName:e.name,variable:e.tensor.variable(!1)}))}getConfig(){return{learningRate:this.learningRate,momentum:this.momentum,useNesterov:this.useNesterov}}static fromConfig(e,t){return new e(t.learningRate,t.momentum,t.useNesterov)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(5),i=n(30),a=n(17),o=n(19),s=n(11),l=n(51),u=n(32),c=n(18),p=n(25),d=n(79);class f extends d.a{static get className(){return"RMSProp"}constructor(e,t=.9,n=0,i=null,a=!1){if(super(),this.learningRate=e,this.decay=t,this.momentum=n,this.epsilon=i,this.accumulatedMeanSquares=[],this.accumulatedMoments=[],this.accumulatedMeanGrads=[],this.centered=a,null==i&&(this.epsilon=r.a.backend.epsilon()),null==e)throw Error("learningRate for RMSPropOptimizer must be defined.")}applyGradients(e){(Array.isArray(e)?e.map(e=>e.name):Object.keys(e)).forEach((t,n)=>{let d=r.a.registeredVariables[t];null==this.accumulatedMeanSquares[n]&&(this.accumulatedMeanSquares[n]={originalName:t+"/rms",variable:Object(i.t)(()=>Object(p.a)(d).variable(!1))}),null==this.accumulatedMoments[n]&&(this.accumulatedMoments[n]={originalName:t+"/momentum",variable:Object(i.t)(()=>Object(p.a)(d).variable(!1))}),null==this.accumulatedMeanGrads[n]&&this.centered&&(this.accumulatedMeanGrads[n]={originalName:t+"/mg",variable:Object(i.t)(()=>Object(p.a)(d).variable(!1))});let f=Array.isArray(e)?e[n].tensor:e[t];if(null==f)return;let h=this.accumulatedMeanSquares[n].variable,g=this.accumulatedMoments[n].variable;Object(i.t)(()=>{let e=Object(a.a)(Object(s.a)(h,this.decay),Object(s.a)(Object(u.a)(f),1-this.decay));if(this.centered){let t=this.accumulatedMeanGrads[n].variable,r=Object(a.a)(Object(s.a)(t,this.decay),Object(s.a)(f,1-this.decay)),i=Object(o.a)(Object(s.a)(f,this.learningRate),Object(l.a)(Object(c.a)(e,Object(a.a)(Object(u.a)(r),this.epsilon)))),p=Object(a.a)(Object(s.a)(g,this.momentum),i);h.assign(e),t.assign(r),g.assign(p);let b=Object(c.a)(d,p);d.assign(b)}else{let e=Object(a.a)(Object(s.a)(h,this.decay),Object(s.a)(Object(u.a)(f),1-this.decay)),t=Object(a.a)(Object(s.a)(g,this.momentum),Object(o.a)(Object(s.a)(f,this.learningRate),Object(l.a)(Object(a.a)(e,this.epsilon))));h.assign(e),g.assign(t);let n=Object(c.a)(d,t);d.assign(n)}})}),this.incrementIterations()}dispose(){null!=this.accumulatedMeanSquares&&Object(i.d)(this.accumulatedMeanSquares.map(e=>e.variable)),null!=this.accumulatedMeanGrads&&this.centered&&Object(i.d)(this.accumulatedMeanGrads.map(e=>e.variable)),null!=this.accumulatedMoments&&Object(i.d)(this.accumulatedMoments.map(e=>e.variable))}async getWeights(){let e=[...this.accumulatedMeanSquares,...this.accumulatedMoments];return this.centered&&e.push(...this.accumulatedMeanGrads),[await this.saveIterations()].concat(e.map(e=>({name:e.originalName,tensor:e.variable})))}async setWeights(e){e=await this.extractIterations(e);let t=this.centered?e.length/3:e.length/2;this.accumulatedMeanSquares=e.slice(0,t).map(e=>({originalName:e.name,variable:e.tensor.variable(!1)})),this.accumulatedMoments=e.slice(t,2*t).map(e=>({originalName:e.name,variable:e.tensor.variable(!1)})),this.centered&&(this.accumulatedMeanGrads=e.slice(2*t,3*t).map(e=>({originalName:e.name,variable:e.tensor.variable(!1)})))}getConfig(){return{learningRate:this.learningRate,decay:this.decay,momentum:this.momentum,epsilon:this.epsilon,centered:this.centered}}static fromConfig(e,t){return new e(t.learningRate,t.decay,t.momentum,t.epsilon,t.centered)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(16),l=n(26),u=n(4),c=n(8);let p=Object(u.b)({avgPool_:function(e,t,n,u,p){let d=Object(a.a)(e,"x","avgPool","float32");o.c(l.i(n,1),()=>`Error in avgPool: Either strides or dilations must be 1. Got strides ${n} and dilations '1'`);let f=d,h=!1;3===d.rank&&(h=!0,f=Object(c.a)(d,[1,d.shape[0],d.shape[1],d.shape[2]])),o.c(4===f.rank,()=>`Error in avgPool: x must be rank 4 but got rank ${f.rank}.`),l.a("avgPool",u,p);let g={x:f},b={filterSize:t,strides:n,pad:u,dimRoundingMode:p},m=r.a.runKernel(i.o,g,b);return m=Object(s.a)(m,d.dtype),h?Object(c.a)(m,[m.shape[1],m.shape[2],m.shape[3]]):m}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({cos_:function(e){let t={x:Object(a.a)(e,"x","cos","float32")};return r.a.runKernel(i.K,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({cumsum_:function(e,t=0,n=!1,o=!1){let s={x:Object(a.a)(e,"x","cumsum")},l={axis:t,exclusive:n,reverse:o};return r.a.runKernel(i.O,s,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({elu_:function(e){let t={x:Object(a.a)(e,"x","elu","float32")};return r.a.runKernel(i.ab,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({floor_:function(e){let t={x:Object(a.a)(e,"x","floor","float32")};return r.a.runKernel(i.kb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({leakyRelu_:function(e,t=.2){let n={x:Object(a.a)(e,"x","leakyRelu")},o={alpha:t};return r.a.runKernel(i.Cb,n,o)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(2),i=n(10),a=n(17),o=n(55),s=n(56),l=n(99),u=n(94),c=n(4),p=n(8),d=n(18),f=n(21);let h=Object(c.b)({logSumExp_:function(e,t=null,n=!1){let c=Object(r.a)(e,"x","logSumExp"),h=Object(i.I)(t,c.shape),g=Object(u.a)(c,h,!0),b=Object(d.a)(c,g),m=Object(s.a)(b),y=Object(f.a)(m,h),S=Object(l.a)(y),v=Object(a.a)(Object(p.a)(g,S.shape),S);if(n){let e=Object(o.e)(v.shape,h);return Object(p.a)(v,e)}return v}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(20);let s=Object(n(4).b)({logicalOr_:function(e,t){let n=Object(a.a)(e,"a","logicalOr","bool"),s=Object(a.a)(t,"b","logicalOr","bool");Object(o.assertAndGetBroadcastShape)(n.shape,s.shape);let l={a:n,b:s};return r.a.runKernel(i.Lb,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(26),l=n(4),u=n(8);let c=Object(l.b)({maxPool_:function(e,t,n,l,c){let p=Object(a.a)(e,"x","maxPool"),d=p,f=!1;3===p.rank&&(f=!0,d=Object(u.a)(p,[1,p.shape[0],p.shape[1],p.shape[2]])),o.c(4===d.rank,()=>`Error in maxPool: input must be rank 4 but got rank ${d.rank}.`),o.c(s.i(n,1),()=>`Error in maxPool: Either strides or dilations must be 1. Got strides ${n} and dilations '1'`),s.a("maxPool",l,c);let h={x:d},g={filterSize:t,strides:n,pad:l,dimRoundingMode:c},b=r.a.runKernel(i.Qb,h,g);return f?Object(u.a)(b,[b.shape[1],b.shape[2],b.shape[3]]):b}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20);let l=Object(n(4).b)({notEqual_:function(e,t){let n=Object(o.a)(e,"a","notEqual","string_or_numeric"),l=Object(o.a)(t,"b","notEqual","string_or_numeric");[n,l]=Object(a.makeTypesMatch)(n,l),Object(s.assertAndGetBroadcastShape)(n.shape,l.shape);let u={a:n,b:l};return r.a.runKernel(i.hc,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({prelu_:function(e,t){let n={x:Object(a.a)(e,"x","prelu"),alpha:Object(a.a)(t,"alpha","prelu")};return r.a.runKernel(i.oc,n)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({relu6_:function(e){let t={x:Object(a.a)(e,"x","relu6")};return r.a.runKernel(i.yc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(10);let o=Object(n(4).b)({fft_:function(e){Object(a.c)("complex64"===e.dtype,()=>`The dtype for tf.spectral.fft() must be complex64 but got ${e.dtype}.`);let t={input:e};return r.a.runKernel(i.hb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n(10),i=n(72),a=n(44),o=n(135),s=n(4),l=n(120),u=n(8),c=n(34),p=n(85),d=n(107),f=n(25),h=n(184);let g=Object(s.b)({rfft_:function(e,t){let n;Object(r.c)("float32"===e.dtype,()=>"The dtype for rfft() must be real value but got "+e.dtype);let s=e.shape[e.shape.length-1],g=e.size/s;if(null!=t&&t<s){let r=e.shape.map(e=>0),i=e.shape.map(e=>e);i[e.shape.length-1]=t,n=Object(c.a)(e,r,i),s=t}else if(null!=t&&t>s){let r=e.shape.map(e=>e);r[e.shape.length-1]=t-s,n=Object(a.a)([e,Object(d.a)(r)],e.shape.length-1),s=t}else n=e;let b=Object(f.a)(n),m=Object(u.a)(Object(i.a)(n,b),[g,s]),y=Object(h.a)(m),S=Math.floor(s/2)+1,v=Object(l.a)(y),O=Object(o.a)(y),x=Object(p.a)(v,[S,s-S],v.shape.length-1),I=Object(p.a)(O,[S,s-S],O.shape.length-1),N=n.shape.slice();return N[n.shape.length-1]=S,Object(u.a)(Object(i.a)(x[0],I[0]),N)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(29),o=n(2),s=n(20);let l=Object(n(4).b)({squaredDifference_:function(e,t){let n=Object(o.a)(e,"a","squaredDifference"),l=Object(o.a)(t,"b","squaredDifference");[n,l]=Object(a.makeTypesMatch)(n,l),Object(s.assertAndGetBroadcastShape)(n.shape,l.shape);let u={a:n,b:l};return r.a.runKernel(i.cd,u,{})}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({unsortedSegmentSum_:function(e,t,n){let s=Object(a.a)(e,"x","unsortedSegmentSum"),l=Object(a.a)(t,"segmentIds","unsortedSegmentSum","int32");Object(o.c)(Object(o.w)(n),()=>"numSegments must be of dtype int");let u={x:s,segmentIds:l},c={numSegments:n};return r.a.runKernel(i.ud,u,c)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(3),a=n(10),o=n(26),s=n(4),l=n(8);let u=Object(s.b)({conv2DBackpropInput_:function(e,t,n,s,u,c="NHWC",p){a.c(e.length===t.rank,()=>`Length of inShape (${e.length}) and rank of dy (${t.rank}) must match`);let d=e,f=t,h=!1;3===t.rank&&(h=!0,f=Object(l.a)(t,[1,t.shape[0],t.shape[1],t.shape[2]]),d=[1,e[0],e[1],e[2]]),a.c(4===d.length,()=>
2"Error in conv2dDerInput: inShape must be length 4, but got length "+d.length+"."),a.c(4===f.rank,()=>"Error in conv2dDerInput: dy must be rank 4, but got rank "+f.rank),a.c(4===n.rank,()=>"Error in conv2dDerInput: filter must be rank 4, but got rank "+n.rank);let g="NHWC"===c?d[3]:d[1],b="NHWC"===c?f.shape[3]:f.shape[1];a.c(g===n.shape[2],()=>`Error in conv2dDerInput: depth of input (${g}) must match input depth for filter ${n.shape[2]}.`),a.c(b===n.shape[3],()=>`Error in conv2dDerInput: depth of output (${b}) must match output depth for filter ${n.shape[3]}.`),o.a("conv2dDerInput",u,p);let m={dy:f,filter:n},y={strides:s,pad:u,dataFormat:c,dimRoundingMode:p,inputShape:d},S=r.a.runKernel(i.G,m,y);return h?Object(l.a)(S,[S.shape[1],S.shape[2],S.shape[3]]):S}})},function(e,t,n){"use strict";n.r(t),n.d(t,"TEST_EPSILON_FLOAT16",function(){return s}),n.d(t,"expectArraysClose",function(){return l}),n.d(t,"testEpsilon",function(){return u}),n.d(t,"expectPromiseToFail",function(){return p}),n.d(t,"expectArraysEqual",function(){return d}),n.d(t,"expectNumbersClose",function(){return f}),n.d(t,"expectValuesInRange",function(){return g}),n.d(t,"expectArrayBuffersEqual",function(){return b}),n.d(t,"encodeStrings",function(){return m}),n.d(t,"createVideoElement",function(){return y}),n.d(t,"play",function(){return S});var r=n(5),i=n(2),a=n(12),o=n(10);let s=.1;function l(e,t,n){return null==n&&(n=u()),c(e,t,(e,t)=>h(e,t,n))}function u(){return 32===r.a.backend.floatPrecision()?.001:s}function c(e,t,n){let r=!0;if((Object(a.isTypedArray)(e)||Object(a.isTypedArray)(t))&&(r=!1),Object(a.isTypedArray)(e)&&Object(a.isTypedArray)(t)&&(r=!0),r){let n=e.constructor.name,r=t.constructor.name;if(n!==r)throw Error(`Arrays are of different type. Actual: ${n}. Expected: `+r)}if(Array.isArray(e)&&Array.isArray(t)){let n=Object(i.c)(e),r=Object(i.c)(t);if(!Object(o.a)(n,r))throw Error(`Arrays have different shapes. Actual: [${n}]. Expected: [${r}]`)}let s=Object(a.isTypedArray)(e)?e:Object(a.flatten)(e),l=Object(a.isTypedArray)(t)?t:Object(a.flatten)(t);if(s.length!==l.length)throw Error(`Arrays have different lengths actual: ${s.length} vs expected: ${l.length}. 3Actual: ${s}. 4Expected: ${l}.`);for(let e=0;e<l.length;++e){let t=s[e],r=l[e];if(!n(t,r))throw Error(`Arrays differ: actual[${e}] = ${t}, expected[${e}] = ${r}. 5Actual: ${s}. 6Expected: ${l}.`)}"undefined"!=typeof expect&&expect().nothing()}function p(e,t){e().then(()=>t.fail(),()=>t()),"undefined"!=typeof expect&&expect().nothing()}function d(e,t){let n="string"==typeof t||"number"==typeof t||"boolean"==typeof t?[t]:t;return Object(o.A)(e)||Object(o.A)(e[0])||Object(o.A)(t)||Object(o.A)(t[0])?c(e,n,(e,t)=>e==t):c(e,t,(e,t)=>h(e,t,0))}function f(e,t,n){if(null==n&&(n=u()),!h(e,t,n))throw Error(`Numbers differ: actual === ${e}, expected === ${t}`);"undefined"!=typeof expect&&expect().nothing()}function h(e,t,n){return!isFinite(e)&&!isFinite(t)||!(isNaN(e)||isNaN(t)||Math.abs(e-t)>n)}function g(e,t,n){for(let r=0;r<e.length;r++)if(e[r]<t||e[r]>n)throw Error(`Value out of range:${e[r]} low: ${t}, high: ${n}`)}function b(e,t){let n=new Float32Array(e),r=new Float32Array(t);if(n.length!==r.length)throw Error(`Expected ArrayBuffer to be of length ${r.length}, but it was ${n.length}`);for(let e=0;e<r.length;e++)if(n[e]!==r[e])throw Error(`Expected ArrayBuffer value at ${e} to be ${r[e]} but got ${n[e]} instead`)}function m(e){for(let t=0;t<e.length;t++){let n=e[t];Array.isArray(n)?m(n):e[t]=Object(a.encodeString)(n)}return e}function y(e){let t=document.createElement("video");return"playsInline"in t&&(t.playsInline=!0),t.muted=!0,t.loop=!0,t.style.position="fixed",t.style.left="0px",t.style.top="0px",t.preload="auto",t.appendChild(e),new Promise(e=>{t.addEventListener("loadeddata",n=>e(t)),t.load()})}async function S(e){await e.play(),"requestVideoFrameCallback"in e&&await new Promise(t=>{e.requestVideoFrameCallback(t)})}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(3),a=n(10),o=n(26),s=n(4),l=n(8);let u=Object(s.b)({conv2DBackpropFilter_:function(e,t,n,s,u,c="NHWC",p){let d=e;3===e.rank&&(d=Object(l.a)(e,[1,e.shape[0],e.shape[1],e.shape[2]]));let f=t;3===f.rank&&(f=Object(l.a)(t,[1,t.shape[0],t.shape[1],t.shape[2]])),a.c(4===d.rank,()=>"Error in conv2dDerFilter: input must be rank 4, but got shape "+d.shape+"."),a.c(4===f.rank,()=>"Error in conv2dDerFilter: dy must be rank 4, but got shape "+f.shape+"."),a.c(4===n.length,()=>"Error in conv2dDerFilter: filterShape must be length 4, but got "+n+".");let h="NHWC"===c?d.shape[3]:d.shape[1],g="NHWC"===c?f.shape[3]:f.shape[1];a.c(h===n[2],()=>`Error in conv2dDerFilter: depth of input ${h}) must match input depth in filter (${n[2]}.`),a.c(g===n[3],()=>`Error in conv2dDerFilter: depth of dy (${g}) must match output depth for filter (${n[3]}).`),o.a("conv2dDerFilter",u,p);let b={x:d,dy:f},m={strides:s,pad:u,dataFormat:c,dimRoundingMode:p,filterShape:n};return r.a.runKernel(i.F,b,m)}})},function(e,t,n){var r=n(564),i=n(565),a=n(566),o=n(568);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=!n(41)(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(98),i=n(48),a=n(143),o=n(299),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},function(e,t,n){"use strict";var r,i,a=n(46),o=n(124),s=a.process,l=a.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>
60&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},function(e,t,n){"use strict";var r=n(87).f,i=n(65),a=n(49)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(312),i=n(102),a=n(192),o=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(57),i=n(87),a=n(193);e.exports=function(e,t,n){r?i.f(e,t,a(0,n)):e[t]=n}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=n(46).Promise},function(e,t,n){"use strict";var r=n(46),i=n(201),a=n(48),o=n(282),s=n(276),l=n(49),u=n(328),c=n(103),p=n(196),d=i&&i.prototype,f=l("species"),h=!1,g=a(r.PromiseRejectionEvent);e.exports={CONSTRUCTOR:o("Promise",function(){var e=s(i),t=e!==String(i);if(!t&&66===p||c&&(!d.catch||!d.finally))return!0;if(!p||p<51||!/native code/.test(e)){var n=new i(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[f]=r,!(h=n.then(function(){})instanceof r))return!0}return!t&&("BROWSER"===u||"DENO"===u)&&!g}),REJECTION_EVENT:g,SUBCLASSING:h}},function(e,t,n){"use strict";var r=n(102),i=TypeError,a=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},function(e,t,n){"use strict";(function(e){n(5);var t=n(227);let r=Object(n(24).c)();r.registerFlag("DEBUG",()=>!1,e=>{e&&console.warn("Debugging mode is ON. The output of every math call will be downloaded to CPU and checked for NaNs. This significantly impacts performance.")}),r.registerFlag("IS_BROWSER",()=>t.isBrowser()),r.registerFlag("IS_NODE",()=>void 0!==e&&void 0!==e.versions&&void 0!==e.versions.node),r.registerFlag("IS_CHROME",()=>"undefined"!=typeof navigator&&null!=navigator&&null!=navigator.userAgent&&/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)),r.registerFlag("IS_SAFARI",()=>"undefined"!=typeof navigator&&null!=navigator&&null!=navigator.userAgent&&/Safari/.test(navigator.userAgent)&&/Apple/.test(navigator.vendor)),r.registerFlag("PROD",()=>!1),r.registerFlag("TENSORLIKE_CHECK_SHAPE_CONSISTENCY",()=>r.getBool("DEBUG")),r.registerFlag("DEPRECATION_WARNINGS_ENABLED",()=>!0),r.registerFlag("IS_TEST",()=>!1),r.registerFlag("CHECK_COMPUTATION_FOR_ERRORS",()=>r.getBool("DEBUG")),r.registerFlag("WRAP_TO_IMAGEBITMAP",()=>!1),r.registerFlag("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU",()=>!1),r.registerFlag("USE_SETTIMEOUTCUSTOM",()=>!1)}).call(this,n(144))},function(e,t,n){"use strict";(function(e){n(13);var t=n(261);let r=Object(n(28).b)();r.registerFlag("DEBUG",()=>!1,e=>{e&&console.warn("Debugging mode is ON. The output of every math call will be downloaded to CPU and checked for NaNs. This significantly impacts performance.")}),r.registerFlag("IS_BROWSER",()=>t.a()),r.registerFlag("IS_NODE",()=>void 0!==e&&void 0!==e.versions&&void 0!==e.versions.node),r.registerFlag("IS_CHROME",()=>"undefined"!=typeof navigator&&null!=navigator&&null!=navigator.userAgent&&/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)),r.registerFlag("PROD",()=>!1),r.registerFlag("TENSORLIKE_CHECK_SHAPE_CONSISTENCY",()=>r.getBool("DEBUG")),r.registerFlag("DEPRECATION_WARNINGS_ENABLED",()=>!0),r.registerFlag("IS_TEST",()=>!1),r.registerFlag("CHECK_COMPUTATION_FOR_ERRORS",()=>!0),r.registerFlag("WRAP_TO_IMAGEBITMAP",()=>!1),r.registerFlag("ENGINE_COMPILE_ONLY",()=>!1),r.registerFlag("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU",()=>!1)}).call(this,n(144))},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});class r{constructor(e,t){this.backend=e,this.dataMover=t,this.data=new WeakMap,this.dataIdsCount=0}get(e){return this.data.has(e)||this.dataMover.moveData(this.backend,e),this.data.get(e)}set(e,t){this.dataIdsCount++,this.data.set(e,t)}has(e){return this.data.has(e)}delete(e){return this.dataIdsCount--,this.data.delete(e)}numDataIds(){return this.dataIdsCount}}class i{refCount(e){return a("refCount")}incRef(e){return a("incRef")}timerAvailable(){return!0}time(e){return a("time")}read(e){return a("read")}readSync(e){return a("readSync")}readToGPU(e,t){return a("readToGPU")}numDataIds(){return a("numDataIds")}disposeData(e,t){return a("disposeData")}write(e,t,n){return a("write")}move(e,t,n,r,i){return a("move")}createTensorFromGPUData(e,t,n){return a("createTensorFromGPUData")}memory(){return a("memory")}floatPrecision(){return a("floatPrecision")}epsilon(){return 32===this.floatPrecision()?1e-7:1e-4}dispose(){return a("dispose")}}function a(e){throw Error(`'${e}' not yet implemented or not found in the registry. This kernel may not be supported by the tfjs backend you have chosen`)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});class r{refCount(e){return i("refCount")}incRef(e){return i("incRef")}timerAvailable(){return!0}time(e){return i("time")}read(e){return i("read")}readSync(e){return i("readSync")}readToGPU(e,t){return i("readToGPU")}numDataIds(){return i("numDataIds")}disposeData(e,t){return i("disposeData")}write(e,t,n){return i("write")}move(e,t,n,r,a){return i("move")}memory(){return i("memory")}floatPrecision(){return i("floatPrecision")}epsilon(){return 32===this.floatPrecision()?1e-7:1e-4}dispose(){return i("dispose")}}function i(e){throw Error(`'${e}' not yet implemented or not found in the registry. This kernel may not be supported by the tfjs backend you have chosen`)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
6);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({tanh_:function(e){let t={x:Object(a.a)(e,"x","tanh","float32")};return r.a.runKernel(i.md,t)}})},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});let r=1.7580993408473768,i=1.0507009873554805},function(e,t,n){"use strict";n.d(t,"d",function(){return ef.a}),n.d(t,"e",function(){return eh.a}),n.d(t,"f",function(){return eg.a}),n.d(t,"g",function(){return eb.a}),n.d(t,"jc",function(){return em.a}),n.d(t,"uc",function(){return ey.a}),n.d(t,"vc",function(){return eO}),n.d(t,"Cc",function(){return eS.a}),n.d(t,"Xc",function(){return ev.a}),n.d(t,"Dd",function(){return K.a}),n.d(t,"Ed",function(){return K.b}),n.d(t,"Od",function(){return K.c}),n.d(t,"Hc",function(){return ex.a}),n.d(t,"ri",function(){return ex.d}),n.d(t,"Qi",function(){return ex.e}),n.d(t,"Rd",function(){return eI.b}),n.d(t,"Sd",function(){return eI.c}),n.d(t,"Td",function(){return eI.d}),n.d(t,"Ud",function(){return eI.e}),n.d(t,"Vd",function(){return eI.f}),n.d(t,"Wd",function(){return eI.g}),n.d(t,"Xd",function(){return eI.h}),n.d(t,"Yd",function(){return eI.i}),n.d(t,"Zd",function(){return eI.j}),n.d(t,"ae",function(){return eI.k}),n.d(t,"be",function(){return eI.l}),n.d(t,"ce",function(){return eI.m}),n.d(t,"de",function(){return eI.n}),n.d(t,"ee",function(){return eI.o}),n.d(t,"fe",function(){return eI.p}),n.d(t,"ge",function(){return eI.q}),n.d(t,"je",function(){return eI.r}),n.d(t,"oe",function(){return eI.w}),n.d(t,"ke",function(){return eI.s}),n.d(t,"le",function(){return eI.t}),n.d(t,"me",function(){return eI.u}),n.d(t,"ne",function(){return eI.v}),n.d(t,"pe",function(){return eI.x}),n.d(t,"qe",function(){return eI.y}),n.d(t,"se",function(){return eI.A}),n.d(t,"te",function(){return eI.B}),n.d(t,"we",function(){return eI.C}),n.d(t,"xe",function(){return eI.D}),n.d(t,"ye",function(){return eI.E}),n.d(t,"ze",function(){return eI.F}),n.d(t,"Ae",function(){return eI.G}),n.d(t,"Be",function(){return eI.H}),n.d(t,"Ce",function(){return eI.I}),n.d(t,"De",function(){return eI.J}),n.d(t,"Ee",function(){return eI.K}),n.d(t,"Fe",function(){return eI.L}),n.d(t,"Ge",function(){return eI.M}),n.d(t,"He",function(){return eI.N}),n.d(t,"Ie",function(){return eI.O}),n.d(t,"Je",function(){return eI.P}),n.d(t,"Ke",function(){return eI.Q}),n.d(t,"Le",function(){return eI.R}),n.d(t,"Ne",function(){return eI.S}),n.d(t,"Oe",function(){return eI.T}),n.d(t,"Qe",function(){return eI.V}),n.d(t,"Re",function(){return eI.W}),n.d(t,"Te",function(){return eI.X}),n.d(t,"Ve",function(){return eI.Y}),n.d(t,"We",function(){return eI.Z}),n.d(t,"Ye",function(){return eI.ab}),n.d(t,"Ze",function(){return eI.bb}),n.d(t,"df",function(){return eI.cb}),n.d(t,"ef",function(){return eI.db}),n.d(t,"ff",function(){return eI.eb}),n.d(t,"hf",function(){return eI.gb}),n.d(t,"if",function(){return eI.hb}),n.d(t,"nf",function(){return eI.jb}),n.d(t,"pf",function(){return eI.kb}),n.d(t,"qf",function(){return eI.lb}),n.d(t,"rf",function(){return eI.mb}),n.d(t,"sf",function(){return eI.nb}),n.d(t,"tf",function(){return eI.ob}),n.d(t,"uf",function(){return eI.pb}),n.d(t,"vf",function(){return eI.qb}),n.d(t,"xf",function(){return eI.sb}),n.d(t,"Af",function(){return eI.tb}),n.d(t,"Bf",function(){return eI.ub}),n.d(t,"Df",function(){return eI.wb}),n.d(t,"Mf",function(){return eI.yb}),n.d(t,"Nf",function(){return eI.zb}),n.d(t,"Pf",function(){return eI.Bb}),n.d(t,"Uf",function(){return eI.Fb}),n.d(t,"Vf",function(){return eI.Gb}),n.d(t,"Wf",function(){return eI.Hb}),n.d(t,"Zf",function(){return eI.Ib}),n.d(t,"ag",function(){return eI.Jb}),n.d(t,"bg",function(){return eI.Kb}),n.d(t,"dg",function(){return eI.Mb}),n.d(t,"eg",function(){return eI.Nb}),n.d(t,"fg",function(){return eI.Ob}),n.d(t,"gg",function(){return eI.Pb}),n.d(t,"hg",function(){return eI.Qb}),n.d(t,"ig",function(){return eI.Rb}),n.d(t,"jg",function(){return eI.Sb}),n.d(t,"kg",function(){return eI.Tb}),n.d(t,"lg",function(){return eI.Ub}),n.d(t,"mg",function(){return eI.Vb}),n.d(t,"ng",function(){return eI.Wb}),n.d(t,"pg",function(){return eI.Yb}),n.d(t,"qg",function(){return eI.Zb}),n.d(t,"sg",function(){return eI.ac}),n.d(t,"tg",function(){return eI.bc}),n.d(t,"ug",function(){return eI.cc}),n.d(t,"vg",function(){return eI.dc}),n.d(t,"wg",function(){return eI.ec}),n.d(t,"xg",function(){return eI.fc}),n.d(t,"zg",function(){return eI.gc}),n.d(t,"Ag",function(){return eI.hc}),n.d(t,"Bg",function(){return eI.ic}),n.d(t,"Cg",function(){return eI.jc}),n.d(t,"Dg",function(){return eI.kc}),n.d(t,"Eg",function(){return eI.lc}),n.d(t,"Gg",function(){return eI.nc}),n.d(t,"Hg",function(){return eI.oc}),n.d(t,"Ig",function(){return eI.pc}),n.d(t,"Jg",function(){return eI.qc}),n.d(t,"Mg",function(){return eI.sc}),n.d(t,"Ng",function(){return eI.tc}),n.d(t,"Og",function(){return eI.uc}),n.d(t,"Pg",function(){return eI.vc}),n.d(t,"Rg",function(){return eI.xc}),n.d(t,"Sg",function(){return eI.yc}),n.d(t,"Tg",function(){return eI.zc}),n.d(t,"Ug",function(){return eI.Ac}),n.d(t,"Vg",function(){return eI.Bc}),n.d(t,"Wg",function(){return eI.Cc}),n.d(t,"Xg",function(){return eI.Dc}),n.d(t,"Yg",function(){return eI.Ec}),n.d(t,"Zg",function(){return eI.Fc}),n.d(t,"ah",function(){return eI.Gc}),n.d(t,"bh",function(){return eI.Hc}),n.d(t,"dh",function(){return eI.Ic}),n.d(t,"eh",function(){return eI.Jc}),n.d(t,"fh",function(){return eI.Kc}),n.d(t,"gh",function(){return eI.Lc}),n.d(t,"hh",function(){return eI.Mc}),n.d(t,"ih",function(){return eI.Nc}),n.d(t,"jh",function(){return eI.Oc}),n.d(t,"kh",function(){return eI.Pc}),n.d(t,"lh",function(){return eI.Qc}),n.d(t,"mh",function(){return eI.Rc}),n.d(t,"oh",function(){return eI.Sc}),n.d(t,"ph",function(){return eI.Tc}),n.d(t,"th",function(){return eI.Uc}),n.d(t,"uh",function(){return eI.Vc}),n.d(t,"wh",function(){return eI.Wc}),n.d(t,"xh",function(){return eI.Xc}),n.d(t,"yh",function(){return eI.Yc}),n.d(t,"zh",function(){return eI.Zc}),n.d(t,"Ah",function(){return eI.ad}),n.d(t,"Bh",function(){return eI.bd}),n.d(t,"Dh",function(){return eI.dd}),n.d(t,"Eh",function(){return eI.ed}),n.d(t,"Fh",function(){return eI.fd}),n.d(t,"Jh",function(){return eI.id}),n.d(t,"Kh",function(){return eI.jd}),n.d(t,"Oh",function(){return eI.kd}),n.d(t,"Ph",function(){return eI.ld}),n.d(t,"Qh",function(){return eI.md}),n.d(t,"Sh",function(){return eI.od}),n.d(t,"Th",function(){return eI.pd}),n.d(t,"Uh",function(){return eI.qd}
6),n.d(t,"Vh",function(){return eI.rd}),n.d(t,"Wh",function(){return eI.sd}),n.d(t,"Xh",function(){return eI.td}),n.d(t,"Yh",function(){return eI.ud}),n.d(t,"ai",function(){return eI.vd}),n.d(t,"bi",function(){return eI.wd}),n.d(t,"ci",function(){return eI.xd}),n.d(t,"wf",function(){return eI.rb}),n.d(t,"Of",function(){return eI.Ab}),n.d(t,"Tf",function(){return eI.Eb}),n.d(t,"Ch",function(){return eI.cd}),n.d(t,"gi",function(){return eI.Bd}),n.d(t,"hi",function(){return eI.Cd}),n.d(t,"ii",function(){return eI.Dd}),n.d(t,"ji",function(){return eI.Ed}),n.d(t,"ki",function(){return eI.Fd}),n.d(t,"li",function(){return eI.Gd}),n.d(t,"mi",function(){return eI.Hd}),n.d(t,"ni",function(){return eI.Id}),n.d(t,"pi",function(){return eI.Kd}),n.d(t,"qi",function(){return eI.Ld}),n.d(t,"si",function(){return eI.Md}),n.d(t,"ti",function(){return eI.Nd}),n.d(t,"ui",function(){return eI.Od}),n.d(t,"vi",function(){return eI.Pd}),n.d(t,"wi",function(){return eI.Qd}),n.d(t,"xi",function(){return eI.Rd}),n.d(t,"yi",function(){return eI.Sd}),n.d(t,"zi",function(){return eI.Td}),n.d(t,"Ai",function(){return eI.Ud}),n.d(t,"Bi",function(){return eI.Vd}),n.d(t,"Fi",function(){return eI.Wd}),n.d(t,"Hi",function(){return eI.Xd}),n.d(t,"Ki",function(){return eI.Zd}),n.d(t,"Li",function(){return eI.ae}),n.d(t,"Oi",function(){return eI.be}),n.d(t,"Pi",function(){return eI.ce}),n.d(t,"Ri",function(){return eI.de}),n.d(t,"Vi",function(){return eI.ee}),n.d(t,"Yi",function(){return eI.fe}),n.d(t,"Zi",function(){return eI.ge}),n.d(t,"aj",function(){return eI.he}),n.d(t,"bj",function(){return eI.ie}),n.d(t,"re",function(){return eI.z}),n.d(t,"Ji",function(){return eI.Yd}),n.d(t,"Lg",function(){return eI.rc}),n.d(t,"Fg",function(){return eI.mc}),n.d(t,"Gh",function(){return eI.gd}),n.d(t,"Ih",function(){return eI.hd}),n.d(t,"ei",function(){return eI.zd}),n.d(t,"Ef",function(){return eI.xb}),n.d(t,"gf",function(){return eI.fb}),n.d(t,"lf",function(){return eI.ib}),n.d(t,"Pe",function(){return eI.U}),n.d(t,"Rf",function(){return eI.Db}),n.d(t,"Qg",function(){return eI.wc}),n.d(t,"rc",function(){return eI.a}),n.d(t,"Qf",function(){return eI.Cb}),n.d(t,"cg",function(){return eI.Lb}),n.d(t,"og",function(){return eI.Xb}),n.d(t,"fi",function(){return eI.Ad}),n.d(t,"Cf",function(){return eI.vb}),n.d(t,"Rh",function(){return eI.nd}),n.d(t,"di",function(){return eI.yd}),n.d(t,"oi",function(){return eI.Jd}),n.d(t,"Lc",function(){return eN.a}),n.d(t,"Ii",function(){return ek}),n.d(t,"kf",function(){return eT.g}),n.d(t,"jf",function(){return eT.f}),n.d(t,"af",function(){return eT.c}),n.d(t,"Ue",function(){return eT.b}),n.d(t,"cf",function(){return eT.e}),n.d(t,"mf",function(){return eT.h}),n.d(t,"yg",function(){return eT.m}),n.d(t,"ch",function(){return eT.n}),n.d(t,"Ei",function(){return eT.t}),n.d(t,"bf",function(){return eT.d}),n.d(t,"Xf",function(){return eT.l}),n.d(t,"Gi",function(){return eT.u}),n.d(t,"Mh",function(){return eT.r}),n.d(t,"nh",function(){return eT.o}),n.d(t,"Gf",function(){return eT.k}),n.d(t,"vh",function(){return eT.q}),n.d(t,"yf",function(){return eT.i}),n.d(t,"zf",function(){return eT.j}),n.d(t,"qh",function(){return eT.p}),n.d(t,"he",function(){return eT.a}),n.d(t,"Nh",function(){return eT.s}),n.d(t,"If",function(){return q.c}),n.d(t,"Hf",function(){return q.b}),n.d(t,"Jf",function(){return q.d}),n.d(t,"sh",function(){return q.f}),n.d(t,"rh",function(){return q.e}),n.d(t,"Ni",function(){return q.h}),n.d(t,"Mi",function(){return q.g}),n.d(t,"Me",function(){return q.a}),n.d(t,"Se",function(){return ew.a}),n.d(t,"Kf",function(){return ew.b}),n.d(t,"Lf",function(){return ew.c}),n.d(t,"Ti",function(){return ew.d}),n.d(t,"Ui",function(){return ew.e}),n.d(t,"Wi",function(){return ew.f}),n.d(t,"ib",function(){return c.b}),n.d(t,"of",function(){return c.c}),n.d(t,"eb",function(){return c.a}),n.d(t,"Xi",function(){return ed}),n.d(t,"Kg",function(){return ej.a}),n.d(t,"ve",function(){return a}),n.d(t,"Sf",function(){return r}),n.d(t,"rg",function(){return i}),n.d(t,"Lh",function(){return el}),n.d(t,"Di",function(){return ec}),n.d(t,"Si",function(){return ep}
6),n.d(t,"ie",function(){return l}),n.d(t,"ue",function(){return G}),n.d(t,"Ci",function(){return eu}),n.d(t,"Zh",function(){return es}),n.d(t,"Ff",function(){return o}),n.d(t,"Hh",function(){return eo}),n.d(t,"Xe",function(){return tN}),n.d(t,"Yf",function(){return u}),n.d(t,"Hb",function(){return tw.b}),n.d(t,"T",function(){return tw.a}),n.d(t,"a",function(){return H.a}),n.d(t,"b",function(){return H.b}),n.d(t,"c",function(){return H.c}),n.d(t,"h",function(){return H.d}),n.d(t,"i",function(){return H.e}),n.d(t,"j",function(){return H.f}),n.d(t,"k",function(){return H.g}),n.d(t,"l",function(){return H.h}),n.d(t,"m",function(){return H.i}),n.d(t,"n",function(){return H.j}),n.d(t,"o",function(){return H.k}),n.d(t,"p",function(){return H.l}),n.d(t,"r",function(){return H.n}),n.d(t,"q",function(){return H.m}),n.d(t,"s",function(){return H.o}),n.d(t,"v",function(){return H.r}),n.d(t,"t",function(){return H.p}),n.d(t,"u",function(){return H.q}),n.d(t,"w",function(){return H.s}),n.d(t,"x",function(){return H.t}),n.d(t,"y",function(){return H.u}),n.d(t,"z",function(){return H.v}),n.d(t,"B",function(){return H.x}),n.d(t,"A",function(){return H.w}),n.d(t,"C",function(){return H.y}),n.d(t,"D",function(){return H.z}),n.d(t,"E",function(){return H.A}),n.d(t,"F",function(){return H.B}),n.d(t,"G",function(){return H.C}),n.d(t,"H",function(){return H.D}),n.d(t,"I",function(){return H.E}),n.d(t,"J",function(){return H.F}),n.d(t,"K",function(){return H.G}),n.d(t,"L",function(){return H.H}),n.d(t,"M",function(){return H.I}),n.d(t,"N",function(){return H.J}),n.d(t,"O",function(){return H.K}),n.d(t,"P",function(){return H.L}),n.d(t,"R",function(){return H.N}),n.d(t,"S",function(){return H.O}),n.d(t,"Q",function(){return H.M}),n.d(t,"U",function(){return H.P}),n.d(t,"V",function(){return H.Q}),n.d(t,"W",function(){return H.R}),n.d(t,"X",function(){return H.S}),n.d(t,"Y",function(){return H.T}),n.d(t,"Z",function(){return H.U}),n.d(t,"ab",function(){return H.V}),n.d(t,"cb",function(){return H.X}),n.d(t,"bb",function(){return H.W}),n.d(t,"db",function(){return H.Y}),n.d(t,"Jc",function(){return H.vc}),n.d(t,"fb",function(){return H.Z}),n.d(t,"gb",function(){return H.ab}),n.d(t,"hb",function(){return H.bb}),n.d(t,"kb",function(){return H.db}),n.d(t,"jb",function(){return H.cb}),n.d(t,"lb",function(){return H.eb}),n.d(t,"mb",function(){return H.fb}),n.d(t,"nb",function(){return H.gb}),n.d(t,"ob",function(){return H.hb}),n.d(t,"pb",function(){return H.ib}),n.d(t,"qb",function(){return H.jb}),n.d(t,"rb",function(){return H.kb}),n.d(t,"sb",function(){return H.lb}),n.d(t,"ub",function(){return H.nb}),n.d(t,"yb",function(){return H.rb}),n.d(t,"xb",function(){return H.qb}),n.d(t,"zb",function(){return H.sb}),n.d(t,"Ab",function(){return H.tb}),n.d(t,"Cb",function(){return H.vb}),n.d(t,"Bb",function(){return H.ub}),n.d(t,"Db",function(){return H.wb}),n.d(t,"Eb",function(){return H.xb}),n.d(t,"Fb",function(){return H.yb}),n.d(t,"Gb",function(){return H.zb}),n.d(t,"Kb",function(){return H.Cb}),n.d(t,"Lb",function(){return H.Db}),n.d(t,"Mb",function(){return H.Eb}),n.d(t,"Nb",function(){return H.Fb}),n.d(t,"Ob",function(){return H.Gb}),n.d(t,"Pb",function(){return H.Hb}),n.d(t,"Rb",function(){return H.Jb}),n.d(t,"Sb",function(){return H.Kb}),n.d(t,"Tb",function(){return H.Lb}),n.d(t,"Ub",function(){return H.Mb}),n.d(t,"Qb",function(){return H.Ib}),n.d(t,"Vb",function(){return H.Nb}),n.d(t,"Ib",function(){return H.Ab}),n.d(t,"Jb",function(){return H.Bb}),n.d(t,"Wb",function(){return H.Ob}),n.d(t,"Xb",function(){return H.Pb}),n.d(t,"dc",function(){return H.Vb}),n.d(t,"Yb",function(){return H.Qb}),n.d(t,"bc",function(){return H.Tb}),n.d(t,"Zb",function(){return H.Rb}),n.d(t,"ac",function(){return H.Sb}),n.d(t,"cc",function(){return H.Ub}),n.d(t,"ec",function(){return H.Wb}),n.d(t,"fc",function(){return H.Xb}),n.d(t,"gc",function(){return H.Yb}),n.d(t,"hc",function(){return H.Zb}),n.d(t,"ic",function(){return H.ac}),n.d(t,"kc",function(){return H.bc}),n.d(t,"lc",function(){return H.cc}),n.d(t,"mc",function(){return H.dc}),n.d(t,"qc",function(){return H.hc}),n.d(t,"nc",function(){return H.ec}),n.d(t,"oc",function(){return H.fc}),n.d(t,"pc",function(){return H.gc}),n.d(t,"tc",function(){return H.jc}),n.d(t,"sc",function(){return H.ic}),n.d(t,"wc",function(){return H.kc}),n.d(t,"xc",function(){return H.lc}),n.d(t,"yc",function(){return H.mc}),n.d(t,"zc",function(){return H.nc}),n.d(t,"Ac",function(){return H.oc}),n.d(t,"Bc",function(){return H.pc}),n.d(t,"Dc",function(){return H.qc}),n.d(t,"Ec",function(){return H.rc}),n.d(t,"Fc",function(){return H.sc}),n.d(t,"Gc",function(){return H.tc}),n.d(t,"Ic",function(){return H.uc}),n.d(t,"Kc",function(){return H.wc}
6),n.d(t,"Mc",function(){return H.xc}),n.d(t,"Oc",function(){return H.zc}),n.d(t,"Rc",function(){return H.Cc}),n.d(t,"Sc",function(){return H.Dc}),n.d(t,"Pc",function(){return H.Ac}),n.d(t,"Qc",function(){return H.Bc}),n.d(t,"Nc",function(){return H.yc}),n.d(t,"Tc",function(){return H.Ec}),n.d(t,"Vc",function(){return H.Gc}),n.d(t,"Wc",function(){return H.Hc}),n.d(t,"Yc",function(){return H.Ic}),n.d(t,"Fd",function(){return H.nd}),n.d(t,"Zc",function(){return H.Jc}),n.d(t,"ad",function(){return H.Kc}),n.d(t,"bd",function(){return H.Lc}),n.d(t,"gd",function(){return H.Qc}),n.d(t,"ed",function(){return H.Oc}),n.d(t,"fd",function(){return H.Pc}),n.d(t,"dd",function(){return H.Nc}),n.d(t,"cd",function(){return H.Mc}),n.d(t,"id",function(){return H.Sc}),n.d(t,"qd",function(){return H.ad}),n.d(t,"Ad",function(){return H.kd}),n.d(t,"jd",function(){return H.Tc}),n.d(t,"pd",function(){return H.Zc}),n.d(t,"hd",function(){return H.Rc}),n.d(t,"kd",function(){return H.Uc}),n.d(t,"ld",function(){return H.Vc}),n.d(t,"md",function(){return H.Wc}),n.d(t,"nd",function(){return H.Xc}),n.d(t,"od",function(){return H.Yc}
6),n.d(t,"sd",function(){return H.cd}),n.d(t,"rd",function(){return H.bd}),n.d(t,"td",function(){return H.dd}),n.d(t,"vd",function(){return H.fd}),n.d(t,"wd",function(){return H.gd}),n.d(t,"xd",function(){return H.hd}),n.d(t,"yd",function(){return H.id}),n.d(t,"zd",function(){return H.jd}),n.d(t,"Bd",function(){return H.ld}),n.d(t,"Cd",function(){return H.md}),n.d(t,"Gd",function(){return H.od}),n.d(t,"Hd",function(){return H.pd}),n.d(t,"Id",function(){return H.qd}),n.d(t,"Jd",function(){return H.rd}),n.d(t,"Kd",function(){return H.sd}),n.d(t,"Ld",function(){return H.td}),n.d(t,"Md",function(){return H.ud}),n.d(t,"Nd",function(){return H.vd}),n.d(t,"Pd",function(){return H.wd}),n.d(t,"ud",function(){return H.ed}),n.d(t,"tb",function(){return H.mb}),n.d(t,"Uc",function(){return H.Fc}),n.d(t,"Qd",function(){return H.xd}),n.d(t,"vb",function(){return H.ob}),n.d(t,"wb",function(){return H.pb});var r={};n.r(r),n.d(r,"copyModel",function(){return M.b}),n.d(r,"listModels",function(){return M.c}),n.d(r,"moveModel",function(){return M.d}),n.d(r,"removeModel",function(){return M.e}),n.d(r,"browserFiles",function(){return m}),n.d(r,"browserHTTPRequest",function(){return j}),n.d(r,"CompositeArrayBuffer",function(){return f.a}),n.d(r,"concatenateArrayBuffers",function(){return p.d}),n.d(r,"decodeWeights",function(){return p.e}),n.d(r,"decodeWeightsStream",function(){return p.f}),n.d(r,"encodeWeights",function(){return p.g}),n.d(r,"fromMemory",function(){return R}),n.d(r,"fromMemorySync",function(){return D}),n.d(r,"getLoadHandlers",function(){return d.b}),n.d(r,"getModelArtifactsForJSON",function(){return p.h}),n.d(r,"getModelArtifactsForJSONSync",function(){return p.i}),n.d(r,"getModelArtifactsInfoForJSON",function(){return p.j}),n.d(r,"getSaveHandlers",function(){return d.c}),n.d(r,"getWeightSpecs",function(){return p.l}),n.d(r,"http",function(){return w}),n.d(r,"isHTTPScheme",function(){return k}),n.d(r,"loadWeights",function(){return x}),n.d(r,"registerLoadRouter",function(){return d.d}),n.d(r,"registerSaveRouter",function(){return d.e}),n.d(r,"weightsLoaderFactory",function(){return I}),n.d(r,"withSaveHandler",function(){return C}),n.d(r,"withSaveHandlerSync",function(){return A});var i={};n.r(i),n.d(i,"confusionMatrix",function(){return z});var a={};n.r(a),n.d(a,"fromPixelsAsync",function(){return ee}),n.d(a,"toPixels",function(){return en}),n.d(a,"draw",function(){return er}),n.d(a,"fromPixels",function(){return ei});var o={};n.r(o),n.d(o,"prepareAndValidate",function(){return ea});var s={};n.r(s),n.d(s,"segOpComputeOptimalWindowSize",function(){return tS}),n.d(s,"computeOutShape",function(){return tv}),n.d(s,"collectGatherOpShapeInfo",function(){return tO});var l={};n.r(l),n.d(l,"axesAreInnerMostDims",function(){return eF.b}),n.d(l,"combineLocations",function(){return eF.c}),n.d(l,"computeOutAndReduceShapes",function(){return eF.d}),n.d(l,"expandShapeToKeepDim",function(){return eF.e}),n.d(l,"assertAxesAreInnerMostDims",function(){return eF.a}),n.d(l,"getAxesPermutation",function(){return eF.f}),n.d(l,"getUndoAxesPermutation",function(){return eF.h}),n.d(l,"getInnerMostAxes",function(){return eF.g}),n.d(l,"getBroadcastDims",function(){return G.getBroadcastDims}),n.d(l,"getReductionAxes",function(){return G.getReductionAxes}),n.d(l,"assertAndGetBroadcastShape",function(){return G.assertAndGetBroadcastShape}),n.d(l,"assertParamsConsistent",function(){return e_}),n.d(l,"computeOutShape",function(){return eE}),n.d(l,"computeDilation2DInfo",function(){return eD.e}),n.d(l,"computePool2DInfo",function(){return eD.f}),n.d(l,"computePool3DInfo",function(){return eD.g}),n.d(l,"computeConv2DInfo",function(){return eD.b}),n.d(l,"computeConv3DInfo",function(){return eD.c}),n.d(l,"computeDefaultPad",function(){return eD.d}),n.d(l,"tupleValuesAreOne",function(){return eD.k}),n.d(l,"eitherStridesOrDilationsAreOne",function(){return eD.i}),n.d(l,"stridesOrDilationsArePositive",function(){return eD.j}),n.d(l,"convertConv2DDataFormat",function(){return eD.h}),n.d(l,"checkPadOnDimRoundingMode",function(){return eD.a}),n.d(l,"getFusedDyActivation",function(){return eC.c}),n.d(l,"getFusedBiasGradient",function(){return eC.b}),n.d(l,"applyActivation",function(){return eC.a}),n.d(l,"shouldFuse",function(){return eC.d}),n.d(l,"RowPartitionType",function(){return eR}),n.d(l,"combineRaggedTensorToTensorShapes",function(){return eA}),n.d(l,"getRowPartitionTypesHelper",function(){return eM}),n.d(l,"getRaggedRank",function(){return e$}),n.d(l,"validateDefaultValueShape",function(){return eU}),n.d(l,"PARALLELIZE_THRESHOLD",function(){return eP}),n.d(l,"computeOptimalWindowSize",function(){return eB}),n.d(l,"slice_util",function(){return es}),n.d(l,"upcastType",function(){return ex.e}),n.d(l,"getImageCenter",function(){return eL}),n.d(l,"getReshaped",function(){return eW}),n.d(l,"getPermuted",function(){return ez}),n.d(l,"getReshapedPermuted",function(){return eG}),n.d(l,"getSliceBeginCoords",function(){return eV}),n.d(l,"getSliceSize",function(){return eH}),n.d(l,"prepareAndValidate",function(){return ea}),n.d(l,"validateUpdateShape",function(){return eo.validateUpdateShape}),n.d(l,"validateInput",function(){return eo.validateInput}),n.d(l,"calculateShapes",function(){return eo.calculateShapes}),n.d(l,"SELU_SCALEALPHA",function(){return eq.b}),n.d(l,"SELU_SCALE",function(){return eq.a}
6),n.d(l,"ERF_P",function(){return eK}),n.d(l,"ERF_A1",function(){return eX}),n.d(l,"ERF_A2",function(){return eY}),n.d(l,"ERF_A3",function(){return eQ}),n.d(l,"ERF_A4",function(){return eJ}),n.d(l,"ERF_A5",function(){return eZ}),n.d(l,"warn",function(){return e0.b}),n.d(l,"log",function(){return e0.a}),n.d(l,"mergeRealAndImagArrays",function(){return e1}),n.d(l,"splitRealAndImagArrays",function(){return e2}),n.d(l,"complexWithEvenIndex",function(){return e3}),n.d(l,"complexWithOddIndex",function(){return e4}),n.d(l,"getComplexWithIndex",function(){return e6}),n.d(l,"assignToTypedArray",function(){return e5}),n.d(l,"exponents",function(){return e8}),n.d(l,"exponent",function(){return e7}),n.d(l,"decodeEinsumEquation",function(){return te}),n.d(l,"getEinsumPermutation",function(){return tt}),n.d(l,"checkEinsumDimSizes",function(){return tn}),n.d(l,"getEinsumComputePath",function(){return tr}),n.d(l,"isIdentityPermutation",function(){return ti}),n.d(l,"prepareSplitSize",function(){return to}),n.d(l,"getSparseFillEmptyRowsIndicesDenseShapeMismatch",function(){return ts}),n.d(l,"getSparseFillEmptyRowsNegativeIndexErrorMessage",function(){return tl}),n.d(l,"getSparseFillEmptyRowsOutOfRangeIndexErrorMessage",function(){return tu}),n.d(l,"getSparseReshapeMultipleNegativeOneOutputDimErrorMessage",function(){return tc}),n.d(l,"getSparseReshapeNegativeOutputDimErrorMessage",function(){return tp}),n.d(l,"getSparseReshapeEmptyTensorZeroOutputDimErrorMessage",function(){return td}),n.d(l,"getSparseReshapeInputOutputMultipleErrorMessage",function(){return tf}),n.d(l,"getSparseReshapeInputOutputMismatchErrorMessage",function(){return th}),n.d(l,"getSparseSegmentReductionNegativeSegmentIdsErrorMessage",function(){return tg}),n.d(l,"getSparseSegmentReductionNonIncreasingSegmentIdsErrorMessage",function(){return tb}),n.d(l,"getSparseSegmentReductionSegmentIdOutOfRangeErrorMessage",function(){return tm}),n.d(l,"getSparseSegmentReductionIndicesOutOfRangeErrorMessage",function(){return ty}),n.d(l,"segment_util",function(){return s}),n.d(l,"fromUint8ToStringArray",function(){return tx}),n.d(l,"fromStringArrayToUint8",function(){return tI});var u={};n.r(u),n.d(u,"nonMaxSuppressionV3Impl",function(){return tk.a}),n.d(u,"nonMaxSuppressionV4Impl",function(){return tk.b}),n.d(u,"nonMaxSuppressionV5Impl",function(){return tk.c}),n.d(u,"whereImpl",function(){return tT.a}),n(263),n(264),n(204);var c=n(24),p=n(40),d=n(59),f=n(70);function h(e){return new Promise(e=>setTimeout(e)).then(e)}class g{constructor(e){if(!Object(c.c)().getBool("IS_BROWSER"))throw Error("browserDownloads() cannot proceed because the current environment is not a browser.");e.startsWith(g.URL_SCHEME)&&(e=e.slice(g.URL_SCHEME.length)),null!=e&&0!==e.length||(e="model"),this.modelJsonFileName=e+".json",this.weightDataFileName=e+".weights.bin"}async save(e){if("undefined"==typeof document)throw Error("Browser downloads are not supported in this environment since `document` is not present");let t=f.a.join(e.weightData),n=window.URL.createObjectURL(new Blob([t],{type:"application/octet-stream"}));if(e.modelTopology instanceof ArrayBuffer)throw Error("BrowserDownloads.save() does not support saving model topology in binary formats yet.");{let t=[{paths:["./"+this.weightDataFileName],weights:e.weightSpecs}],r=Object(p.k)(e,t),i=window.URL.createObjectURL(new Blob([JSON.stringify(r)],{type:"application/json"})),a=null==this.modelJsonAnchor?document.createElement("a"):this.modelJsonAnchor;if(a.download=this.modelJsonFileName,a.href=i,await h(()=>a.dispatchEvent(new MouseEvent("click"))),null!=e.weightData){let e=null==this.weightDataAnchor?document.createElement("a"):this.weightDataAnchor;e.download=this.weightDataFileName,e.href=n,await h(()=>e.dispatchEvent(new MouseEvent("click")))}return{modelArtifactsInfo:Object(p.j)(e)}}}}g.URL_SCHEME="downloads://";class b{constructor(e){if(null==e||e.length<1)throw Error("When calling browserFiles, at least 1 file is required, but received "+e);this.jsonFile=e[0],this.weightsFiles=e.slice(1)}async load(){return new Promise((e,t)=>{let n=new FileReader;n.onload=n=>{let r=JSON.parse(n.target.result),i=r.modelTopology;return null==i?void t(Error("modelTopology field is missing from file "+this.jsonFile.name)):null==r.weightsManifest?void t(Error("weightManifest field is missing from file "+this.jsonFile.name)):0===this.weightsFiles.length?void e({modelTopology:i}):void e(Object(p.h)(r,e=>this.loadWeights(e)))},n.onerror=e=>t(`Failed to read model topology and weights manifest JSON from file '${this.jsonFile.name}'. BrowserFiles supports loading Keras-style tf.Model artifacts only.`),n.readAsText(this.jsonFile)})}loadWeights(e){let t=[],n=[];for(let r of e)t.push(...r.weights),n.push(...r.paths);let r=this.checkManifestAndWeightFiles(e);return Promise.all(n.map(e=>
6this.loadWeightsFile(e,r[e]))).then(e=>[t,e])}loadWeightsFile(e,t){return new Promise((n,r)=>{let i=new FileReader;i.onload=e=>{n(e.target.result)},i.onerror=t=>r(`Failed to weights data from file of path '${e}'.`),i.readAsArrayBuffer(t)})}checkManifestAndWeightFiles(e){let t=[],n=this.weightsFiles.map(e=>Object(p.c)(e.name)),r={};for(let i of e)i.paths.forEach(e=>{let i=Object(p.c)(e);if(-1!==t.indexOf(i))throw Error(`Duplicate file basename found in weights manifest: '${i}'`);if(t.push(i),-1===n.indexOf(i))throw Error(`Weight file with basename '${i}' is not provided.`);r[e]=this.weightsFiles[n.indexOf(i)]});if(t.length!==this.weightsFiles.length)throw Error(`Mismatch in the number of files in weights manifest (${t.length}) and the number of weight files provided (${this.weightsFiles.length}).`);return r}}function m(e){return new b(e)}d.a.registerSaveRouter(e=>Object(c.c)().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(g.URL_SCHEME)?function(e="model"){return new g(e)}(e.slice(g.URL_SCHEME.length)):null);var y=n(10);function S(e,t,n,r){!function(e){Object(y.c)(null!=e&&Array.isArray(e)&&e.length>0,()=>"promises must be a none empty array")}(e),function(e,t){Object(y.c)(e>=0&&e<=1,()=>"Progress fraction must be in range [0, 1], but got startFraction "+e),Object(y.c)(t>=0&&t<=1,()=>"Progress fraction must be in range [0, 1], but got endFraction "+t),Object(y.c)(t>=e,()=>`startFraction must be no more than endFraction, but got startFraction ${e} and endFraction `+t)}(n=null==n?0:n,r=null==r?1:r);let i=0;return Promise.all(e.map(a=>(a.then(a=>(t(n+ ++i/e.length*(r-n)),a)),a)))}var v=n(122);async function O(e,t){null==t&&(t={});let n=null==t.fetchFunc?Object(c.c)().platform.fetch:t.fetchFunc,r=e.map(e=>n(e,t.requestInit,{isBinary:!0})),i=(null==t.onProgress?await Promise.all(r):await S(r,t.onProgress,0,.5)).map(e=>e.arrayBuffer());return null==t.onProgress?await Promise.all(i):await S(i,t.onProgress,.5,1)}async function x(e,t="",n,r){return I(e=>O(e,{requestInit:r}))(e,t,n)}function I(e){return async(t,n="",r)=>{let i=t.map(()=>!1),a={},o=null!=r?r.map(()=>!1):[],s=[];if(t.forEach((e,t)=>{let n=0;e.weights.forEach(e=>{let l="quantization"in e?e.quantization.dtype:e.dtype,u=v.a[l]*y.O(e.shape),c=()=>{i[t]=!0,null==a[t]&&(a[t]=[]),a[t].push({manifestEntry:e,groupOffset:n,sizeBytes:u})};null!=r?r.forEach((t,n)=>{t===e.name&&(c(),o[n]=!0)}):c(),s.push(e.name),n+=u})}),!o.every(e=>e))throw Error("Could not find weights in manifest with names: "+r.filter((e,t)=>!o[t]).join(", ")+". \nManifest JSON has weights with names: "+s.join(", ")+".");let l=i.reduce((e,t,n)=>(t&&e.push(n),e),[]),u=[];l.forEach(e=>{t[e].paths.forEach(e=>{let t=n+(n.endsWith("/")?"":"/")+e;u.push(t)})});let c=await e(u),d={},h=0;return l.forEach(e=>{let n=t[e].paths.length,r=new f.a(c.slice(h,h+n));a[e].forEach(e=>{let t=r.slice(e.groupOffset,e.groupOffset+e.sizeBytes),n=Object(p.e)(t,[e.manifestEntry]);for(let e in n)d[e]=n[e]}),h+=n}),d}}class N{constructor(e,t){if(this.DEFAULT_METHOD="POST",null==t&&(t={}),this.weightPathPrefix=t.weightPathPrefix,this.weightUrlConverter=t.weightUrlConverter,null!=t.fetchFunc?(Object(y.c)("function"==typeof t.fetchFunc,()=>"Must pass a function that matches the signature of `fetch` (see https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)"),this.fetch=t.fetchFunc):this.fetch=Object(c.c)().platform.fetch,Object(y.c)(null!=e&&e.length>0,()=>"URL path for http must not be null, undefined or empty."),Array.isArray(e)&&Object(y.c)(2===e.length,()=>`URL paths for http must have a length of 2, (actual length is ${e.length}).`),this.path=e,null!=t.requestInit&&null!=t.requestInit.body)throw Error("requestInit is expected to have no pre-existing body, but has one.");this.requestInit=t.requestInit||{},this.loadOptions=t}async save(e){if(e.modelTopology instanceof ArrayBuffer)throw Error("BrowserHTTPRequest.save() does not support saving model topology in binary formats yet.");let t=Object.assign({method:this.DEFAULT_METHOD},this.requestInit);t.body=new FormData;let n=[{paths:["./model.weights.bin"],weights:e.weightSpecs}],r=Object(p.k)(e,n);if(t.body.append("model.json",new Blob([JSON.stringify(r)],{type:"application/json"}),"model.json"),null!=e.weightData){let n=f.a.join(e.weightData);t.body.append("model.weights.bin",new Blob([n],{type:"application/octet-stream"}),"model.weights.bin")}let i=await this.fetch(this.path,t);if(i.ok)return{modelArtifactsInfo:Object(p.j)(e),responses:[i]};throw Error("BrowserHTTPRequest.save() failed due to HTTP response status "+i.status+".")}async loadModelJSON(){let e,t=await this.fetch(this.path,this.requestInit);if(!t.ok)throw Error(`Request to ${this.path} failed with status code `+t.status+". Please verify this URL points to the model JSON of the model to load.");try{e=await t.json()}catch(t){let e=`Failed to parse model JSON of response from ${this.path}.`;throw this.path.endsWith(".pb")?e+=" Your path contains a .pb file extension. Support for .pb models have been removed in TensorFlow.js 1.0 in favor of .json models. You can re-convert your Python TensorFlow model using the TensorFlow.js 1.0 conversion scripts or you can convert your.pb models with the 'pb2json'NPM script in the tensorflow/tfjs-converter repository.":e+=" Please make sure the server is serving valid JSON for this request.",Error(e)}let n=e.modelTopology,r=e.weightsManifest;if(null==n&&null==r)throw Error(`The JSON from HTTP path ${this.path}
6 contains neither model topology or manifest for weights.`);return e}async load(){if(this.loadOptions.streamWeights)return this.loadStream();let e=await this.loadModelJSON();return Object(p.h)(e,e=>this.loadWeights(e))}async loadStream(){let e=await this.loadModelJSON(),t=await this.getWeightUrls(e.weightsManifest),n=Object(p.l)(e.weightsManifest);return Object.assign(Object.assign({},e),{weightSpecs:n,getWeightStream:()=>(function(e,t){var n;let r=null==t.fetchFunc?Object(c.c)().platform.fetch:t.fetchFunc,i,a=0;return null==(n=t.onProgress)||n.call(t,0),new ReadableStream({pull:async n=>{for(var o;a<e.length;){i||(i=(await r(e[a],t.requestInit,{isBinary:!0})).body.getReader());let{done:s,value:l}=await i.read();if(!s)return void n.enqueue(l);a++,i=void 0,null==(o=t.onProgress)||o.call(t,a/e.length)}n.close()}})})(t,this.loadOptions)})}async getWeightUrls(e){let[t,n]=function(e){let t=e.lastIndexOf("/"),n=e.lastIndexOf("?");return[e.substring(0,t)+"/",n>t?e.substring(n):""]}(Array.isArray(this.path)?this.path[1]:this.path),r=this.weightPathPrefix||t,i=[],a=[];for(let t of e)for(let e of t.paths)null!=this.weightUrlConverter?a.push(this.weightUrlConverter(e)):i.push(r+e+n);return this.weightUrlConverter&&i.push(...await Promise.all(a)),i}async loadWeights(e){let t=await this.getWeightUrls(e);return[Object(p.l)(e),await O(t,this.loadOptions)]}}function k(e){return null!=e.match(N.URL_SCHEME_REGEX)}N.URL_SCHEME_REGEX=/^https?:\/\//;let T=(e,t)=>{if("undefined"==typeof fetch&&(null==t||null==t.fetchFunc))return null;{let n=!0;if(n=Array.isArray(e)?e.every(e=>k(e)):k(e))return w(e,t)}return null};function w(e,t){return new N(e,t)}function j(e,t){return w(e,t)}d.a.registerSaveRouter(T),d.a.registerLoadRouter(T);class F{constructor(e){this.modelArtifacts=e}load(){return this.modelArtifacts}}class _{constructor(e){this.saveHandler=e}save(e){return this.saveHandler(e)}}class E{constructor(e){e.load&&(this.load=()=>Promise.resolve(e.load())),e.save&&(this.save=t=>Promise.resolve(e.save(t)))}}function R(e,t,n,r){let i=arguments;return new E(D(...i))}function D(e,t,n,r){return 1==arguments.length?null!=e.modelTopology||null!=e.weightSpecs?new F(e):(console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."),new F({modelTopology:e})):(console.warn("Please call tf.io.fromMemory() with only one argument. The argument should be of type ModelArtifacts. The multi-argument signature of tf.io.fromMemory() has been deprecated and will be removed in a future release."),new F({modelTopology:e,weightSpecs:t,weightData:n,trainingConfig:r}))}function C(e){return new _(e)}function A(e){return new _(e)}var M=n(126),$=n(2),U=n(16),P=n(31),B=n(148),L=n(4),W=n(61);let z=Object(L.b)({confusionMatrix_:function(e,t,n){let r=Object($.a)(e,"labels","confusionMatrix"),i=Object($.a)(t,"predictions","confusionMatrix");y.c(null==n||n>0&&Number.isInteger(n),()=>"If provided, numClasses must be a positive integer, but got "+n),y.c(1===r.rank,()=>"Expected the rank of labels to be 1, but got "+r.rank),y.c(1===i.rank,()=>"Expected the rank of predictions to be 1, but got "+i.rank),y.c(r.shape[0]===i.shape[0],()=>`Mismatch in the number of examples: ${r.shape[0]} vs. ${i.shape[0]}. Labels and predictions should have the same number of elements.`),y.c(n>0&&Number.isInteger(n),()=>"numClasses is required to be a positive integer, but got "+n);let a=Object(B.a)(Object(U.a)(r,"int32"),n),o=Object(B.a)(Object(U.a)(i,"int32"),n),s=Object(W.a)(a),l=Object(P.a)(s,o);return Object(U.a)(l,"int32")}});var G=n(20),V=n(5),H=n(3),q=n(82),K=n(6),X=n(257);let Y,Q=!1;function J(e,t=3){let n,r;if(t>4)throw Error("Cannot construct Tensor with more than 4 channels from pixels.");if(null==e)throw Error("pixels passed to tf.browser.fromPixels() can not be null");let i=!1,a=!1,o=!1,s=!1,l=!1,u=!1;if(e.data instanceof Uint8Array)i=!0;else if("undefined"!=typeof ImageData&&e instanceof ImageData)a=!0;else if("undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement)o=!0;else if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement)s=!0;else if(null!=e.getContext)l=!0;else{if(!("undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap))throw Error("pixels passed to tf.browser.fromPixels() must be either an HTMLVideoElement, HTMLImageElement, HTMLCanvasElement, ImageData in browser, or OffscreenCanvas, ImageData in webworker or {data: Uint32Array, width: number, height: number}, but was "+e.constructor.name);u=!0}if(null!=Object(q.c)(H.mb,V.a.backendName)){let n={pixels:e},r={numChannels:t};return V.a.runKernel(H.mb,n,r)}let[c,p]=o?[e.videoWidth,e.videoHeight]:[e.width,e.height];if(l)n=e.getContext("2d").getImageData(0,0,c,p).data;else if(a||i)n=e.data;else if(s||o||u){if(null==Y)if("undefined"==typeof document){if("undefined"==typeof OffscreenCanvas||"undefined"==typeof OffscreenCanvasRenderingContext2D)throw Error("Cannot parse input in current context. Reason: OffscreenCanvas Context2D rendering is not supported.");Y=new OffscreenCanvas(1,1).getContext("2d")}else Y=document.createElement("canvas").getContext("2d",{willReadFrequently:!0});Y.canvas.width=c,Y.canvas.height=p,Y.drawImage(e,0,0,c,p),n=Y.getImageData(0,0,c,p).data}if(4===t)r=new Int32Array(n);else{let e=c*p;r=new Int32Array(e*t);for(let i=0;i<e;i++)for(let e=0;e<t;++e)r[i*t+e]=n[4*i+e]}
6let d=[p,c,t];return Object(X.a)(r,d,"int32")}function Z(e){return"undefined"!=typeof window&&"undefined"!=typeof ImageBitmap&&window.hasOwnProperty("createImageBitmap")&&!(e instanceof ImageBitmap)&&function(e){return null!=e&&0!==e.width&&0!==e.height}(e)&&!function(e){return null!=e&&e.data instanceof Uint8Array}(e)}async function ee(e,t=3){let n=null;if(Object(c.c)().getBool("WRAP_TO_IMAGEBITMAP")&&Z(e)){let t;try{t=await createImageBitmap(e,{premultiplyAlpha:"none"})}catch(e){t=null}n=null!=t&&t.width===e.width&&t.height===e.height?t:e}else n=e;return J(n,t)}function et(e){if(2!==e.rank&&3!==e.rank)throw Error(`toPixels only supports rank 2 or 3 tensors, got rank ${e.rank}.`);let t=2===e.rank?1:e.shape[2];if(t>4||2===t)throw Error("toPixels only supports depth of size 1, 3 or 4 but got "+t);if("float32"!==e.dtype&&"int32"!==e.dtype)throw Error(`Unsupported type for toPixels: ${e.dtype}. Please use float32 or int32 tensors.`)}async function en(e,t){let n=Object($.a)(e,"img","toPixels");if(!(e instanceof K.a)){let e=n;n=Object(U.a)(e,"int32"),e.dispose()}et(n);let[r,i]=n.shape.slice(0,2),a=2===n.rank?1:n.shape[2],o=await n.data(),s="float32"===n.dtype?255:1,l=new Uint8ClampedArray(i*r*4);for(let e=0;e<r*i;++e){let t=[0,0,0,255];for(let r=0;r<a;r++){let i=o[e*a+r];if("float32"===n.dtype){if(i<0||i>1)throw Error(`Tensor values for a float32 Tensor must be in the range [0 - 1] but encountered ${i}.`)}else if("int32"===n.dtype&&(i<0||i>255))throw Error(`Tensor values for a int32 Tensor must be in the range [0 - 255] but encountered ${i}.`);1===a?(t[0]=i*s,t[1]=i*s,t[2]=i*s):t[r]=i*s}let r=4*e;l[r+0]=Math.round(t[0]),l[r+1]=Math.round(t[1]),l[r+2]=Math.round(t[2]),l[r+3]=Math.round(t[3])}if(null!=t){Q||null==Object(q.c)(H.Y,V.a.backendName)||(console.warn("tf.browser.toPixels is not efficient to draw tensor on canvas. Please try tf.browser.draw instead."),Q=!0),t.width=i,t.height=r;let e=t.getContext("2d"),n=new ImageData(l,i,r);e.putImageData(n,0,0)}return n!==e&&n.dispose(),l}function er(e,t,n){let r=Object($.a)(e,"img","draw");if(!(e instanceof K.a)){let e=r;r=Object(U.a)(e,"int32"),e.dispose()}et(r),function(e){let t=(null==e?void 0:e.alpha)||1;if(t>1||t<0)throw Error(`Alpha value ${t} is suppoed to be in range [0 - 1].`)}(null==n?void 0:n.imageOptions);let i={image:r},a={canvas:t,options:n};V.a.runKernel(H.Y,i,a)}let ei=Object(L.b)({fromPixels_:J});function ea(e,t){let n=e.shape.length,r=t.shape.length;if(n<1)throw Error(`tf.gatherND() expects the input to be rank 1 or higher, but the rank was ${n}.`);if(r<1)throw Error(`tf.gatherND() expects the indices to be rank 1 or higher, but the rank was ${r}.`);if("int32"!==t.dtype)throw Error(`tf.gatherND() expects the indices to be int32 type, but the dtype was ${t.dtype}.`);if(t.shape[r-1]>n)throw Error(`index innermost dimension length must be <= tensor rank; saw: ${t.shape[r-1]} vs. ${n}`);if(0===Object(y.O)(e.shape))throw Error(`Requested more than 0 entries, but input is empty. Input shape: ${e.shape}.`);let i=t.shape,a=i[i.length-1],o=1;for(let e=0;e<i.length-1;++e)o*=i[e];let s=e.shape,l=i.slice();l.pop();let u=1;for(let e=a;e<n;++e)u*=s[e],l.push(s[e]);let c=[...Object(y.k)(e.shape).map(e=>e/u),1].slice(0,a);return[l,o,u,c]}var eo=n(127),es=n(162),el=n(165),eu=n(29),ec=n(189),ep=n(12);let ed="4.22.0";var ef=n(164),eh=n(167),eg=n(168),eb=n(169),em=n(170),ey=n(79),eS=n(171),ev=n(129);class eO{static sgd(e){return new ev.a(e)}static momentum(e,t,n=!1){return new em.a(e,t,n)}static rmsprop(e,t=.9,n=0,r=null,i=!1){return new eS.a(e,t,n,r,i)}static adam(e=.001,t=.9,n=.999,r=null){return new eg.a(e,t,n,r)}static adadelta(e=.001,t=.95,n=null){return new ef.a(e,t,n)}static adamax(e=.002,t=.9,n=.999,r=null,i=0){return new eb.a(e,t,n,r,i)}static adagrad(e,t=.1){return new eh.a(e,t)}}var ex=n(78),eI=n(27),eN=n(52);let ek=eO;var eT=n(30),ew=n(50),ej=n(359),eF=n(55);function e_(e,t){let n=e[0].length;e.forEach((e,t)=>{y.c(e.length===n,()=>`Error in concat${n}D: rank of tensors[${t}] must be the same as the rank of the rest (${n})`)}),y.c(t>=0&&t<n,()=>`Error in concat${n}D: axis must be between 0 and ${n-1}.`);let r=e[0];e.forEach((e,i)=>{for(let a=0;a<n;
6a++)y.c(a===t||e[a]===r[a],()=>`Error in concat${n}D: Shape of tensors[${i}] (${e}) does not match the shape of the rest (${r}) along the non-concatenated axis ${i}.`)})}function eE(e,t){let n=e[0].slice();for(let r=1;r<e.length;r++)n[t]+=e[r][t];return n}var eR,eD=n(26),eC=n(63);function eA(e,t,n){let r=[];if(null==n&&null==t)return r;if(null==t)for(;r.length<e+n.length;)r.push(-1);else r=t.slice();if(null==n)return r;if(e+n.length!==r.length)throw Error(`rt input.shape and shape=${t} are incompatible: rt input.rank = ${e+n.length}, but shape.rank = ${r.length}`);for(let i=1;i<n.length;++i){let a=n[i],o=r[r.length-n.length+i],s=r[o];if(a>=0)if(s>=0){if(s!==a)throw Error(`rt input.shape and shape=${t} are incompatible: rt input.shape[${i+e}] = ${a} but shape[${i+e}] = ${s}`)}else r[o]=a}return r}function eM(e){let t={FIRST_DIM_SIZE:eR.FIRST_DIM_SIZE,VALUE_ROWIDS:eR.VALUE_ROWIDS,ROW_LENGTHS:eR.ROW_LENGTHS,ROW_SPLITS:eR.ROW_SPLITS,ROW_LIMITS:eR.ROW_LIMITS,ROW_STARTS:eR.ROW_STARTS},n=[];for(let r of e){if(!(r in t))break;n.push(t[r])}return n}function e$(e){return 0===e.length?0:e[0]===eR.FIRST_DIM_SIZE?e.length-1:e.length}function eU(e,t){if(null==e||null==t)return;let n=e.length,r=t.length;if(n>=r)throw Error(`defaultValue.shape=${e} and ragged tensor flatValues.shape=${t}, are incompatible: defaultValue.rank = ${n} must be less than ragged tensor input flatValues.rank = ${r})`);for(let i=0;i<Math.min(n,r-1);++i){let n=e[i],r=t[i+1];if(n>=0&&r>=0&&1!==n&&n!==r)throw Error(`defaultValue.shape=${e}, and ragged tensor input flatValues.shape=${t} are incompatible: defaultValue.shape[${i-e.length}] = ${n} but ragged tensor input.flatValues.shape[${i-e.length}] = ${r}`)}}!function(e){e[e.FIRST_DIM_SIZE=0]="FIRST_DIM_SIZE",e[e.VALUE_ROWIDS=1]="VALUE_ROWIDS",e[e.ROW_LENGTHS=2]="ROW_LENGTHS",e[e.ROW_SPLITS=3]="ROW_SPLITS",e[e.ROW_LIMITS=4]="ROW_LIMITS",e[e.ROW_STARTS=5]="ROW_STARTS"}(eR||(eR={}));let eP=30;function eB(e){return e<=eP?e:Object(y.G)(e,Math.floor(Math.sqrt(e)))}
6function eL(e,t,n){return[n*("number"==typeof e?e:e[0]),t*("number"==typeof e?e:e[1])]}function eW(e,t,n,r=!0){let i=[];if(r)(i=i.concat(t.slice(0))).push(e[0]/n),i=i.concat(e.slice(1));else{i=i.concat(e[0]);let n=t.length;for(let r=0;r<n;++r)i=i.concat([e[r+1]/t[r],t[r]]);i=i.concat(e.slice(n+1))}return i}function ez(e,t,n=!0){let r=[];if(n){r.push(t);for(let n=t+1;n<e;++n)n<=2*t?(r.push(n),r.push(n-(t+1))):r.push(n)}else{let n=[],i=[];for(let r=1;r<e;++r)r>=2*t+1||r%2==1?i.push(r):n.push(r);r.push(...n),r.push(0),r.push(...i)}return r}function eG(e,t,n,r=!0){let i=[];r?i.push(e[0]/n):i.push(e[0]*n);for(let n=1;n<e.length;++n)n<=t.length?r?i.push(t[n-1]*e[n]):i.push(e[n]/t[n-1]):i.push(e[n]);return i}function eV(e,t){let n=[0];for(let r=0;r<t;++r)n.push(e[r][0]);return n}function eH(e,t,n){let r=e.slice(0,1);for(let i=0;i<n;++i)r.push(e[i+1]-t[i][0]-t[i][1]);return r}var eq=n(209);let eK=.3275911,eX=.254829592,eY=-.284496736,eQ=1.421413741,eJ=-1.453152027,eZ=1.061405429;var e0=n(100);function e1(e,t){if(e.length!==t.length)throw Error(`Cannot merge real and imag arrays of different lengths. real:${e.length}, imag: ${t.length}.`);let n=new Float32Array(2*e.length);for(let r=0;r<n.length;r+=2)n[r]=e[r/2],n[r+1]=t[r/2];return n}function e2(e){let t=new Float32Array(e.length/2),n=new Float32Array(e.length/2);for(let r=0;r<e.length;r+=2)t[r/2]=e[r],n[r/2]=e[r+1];return{real:t,imag:n}}function e3(e){let t=Math.ceil(e.length/4),n=new Float32Array(t),r=new Float32Array(t);for(let t=0;t<e.length;t+=4)n[Math.floor(t/4)]=e[t],r[Math.floor(t/4)]=e[t+1];return{real:n,imag:r}}function e4(e){let t=Math.floor(e.length/4),n=new Float32Array(t),r=new Float32Array(t);for(let t=2;t<e.length;t+=4)n[Math.floor(t/4)]=e[t],r[Math.floor(t/4)]=e[t+1];return{real:n,imag:r}}function e6(e,t){return{real:e[2*t],imag:e[2*t+1]}}function e5(e,t,n,r){e[2*r]=t,e[2*r+1]=n}function e8(e,t){let n=new Float32Array(e/2),r=new Float32Array(e/2);for(let i=0;i<Math.ceil(e/2);i++){let a=(t?2:-2)*Math.PI*(i/e);n[i]=Math.cos(a),r[i]=Math.sin(a)}return{real:n,imag:r}}function e7(e,t,n){let r=(n?2:-2)*Math.PI*(e/t);return{real:Math.cos(r),imag:Math.sin(r)}}let e9=/->/g;function te(e,t){let n=((e=e.replace(/\s/g,"")).length-e.replace(e9,"").length)/2;if(n<1)throw Error("Equations without an arrow are not supported.");if(n>1)throw Error('Equation must contain exactly one arrow ("->").');let[r,i]=e.split("->");Object(y.c)(-1===r.indexOf("..."),()=>'The ellipsis notation ("...") is not supported yet.');let a=r.split(","),o=a.length;if(t!==o)throw Error(`Expected ${o} input tensors, received ${t}`);if(o>2)throw Error("Support for more than 2 input tensors is not implemented yet.");let s=[];for(let e=0;e<i.length;++e){let t=i[e];if(!a.some(e=>-1!==e.indexOf(t)))throw Error(`Output subscripts contain the label ${t} not present in the input subscripts.`);-1===s.indexOf(t)&&s.push(t)}for(let e=0;e<r.length;++e){let t=r[e];-1===s.indexOf(t)&&","!==t&&s.push(t)}let l=Array(a.length);for(let e=0;e<o;++e){if(new Set(a[e].split("")).size!==a[e].length)throw Error(`Found duplicate axes in input component ${a[e]}. Support for duplicate axes in input is not implemented yet.`);l[e]=[];for(let t=0;t<a[e].length;++t)l[e].push(s.indexOf(a[e][t]))}let u=s.length,c=[];for(let e=i.length;e<u;++e)c.push(e);return{allDims:s,summedDims:c,idDims:l}}function tt(e,t){let n=Array(e);n.fill(-1);for(let e=0;e<t.length;++e)n[t[e]]=e;let r=[];for(let t=0;t<e;++t)-1===n[t]&&r.push(t);return{permutationIndices:n=n.filter(e=>-1!==e),expandDims:r}}function tn(e,t,n){let r=Array(e);for(let e=0;e<n.length;++e){let i=n[e].shape;for(let n=0;n<t[e].length;++n)void 0===r[t[e][n]]?r[t[e][n]]=i[n]:Object(y.c)(r[t[e][n]]===i[n],()=>`Expected dimension ${r[t[e][n]]} at axis ${n} of input shaped ${JSON.stringify(i)}, but got dimension `+i[n])}}function tr(e,t){let n=e,r=[],i=0;0===e.length&&n.push(-1),i=e.length+1;for(let e=0;e<i;++e)r.push([]);let a=[];for(let e=0;e<n.length;++e)for(let i of ta(t,n[e]))-1===a.indexOf(i)&&(r[e].push(i),a.push(i));return{path:n,steps:r}}function ti(e){return e.every((e,t)=>e===t)}function ta(e,t){let n=[];for(let r=0;r<e.length;++r)0!==e[r].length&&-1===e[r].indexOf(t)&&-1!==t||n.push(r);return n}function to(e,t,n=0){let r=[];if("number"==typeof t)Object(y.c)(e.shape[n]%t==0,()=>"Number of splits must evenly divide the axis."),r=Array(t).fill(e.shape[n]/t);else{let i=t.reduce((e,t)=>
6(-1===t&&(e+=1),e),0);Object(y.c)(i<=1,()=>"There should be only one negative value in split array.");let a=t.indexOf(-1);if(-1!==a){let r=t.reduce((e,t)=>t>0?e+t:e);t[a]=e.shape[n]-r}Object(y.c)(e.shape[n]===t.reduce((e,t)=>e+t),()=>"The sum of sizes must match the size of the axis dimension."),r=t}return r}function ts(e){return"Received SparseTensor with denseShape[0] = 0 but\n indices.shape[0] = "+e}function tl(e,t){return`indices(${e}, 0) is invalid: ${t} < 0`}function tu(e,t,n){return`indices(${e}, 0) is invalid: ${t} >= ${n}`}function tc(e,t){return`only one output dimension may be -1, not both ${e} and ${t}`}function tp(e,t){return`size ${e} must be non-negative, not ${t}`}function td(){return"reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero"}function tf(e,t){return`Input to reshape is a SparseTensor with ${Object(y.O)(e)} 7 dense values, but the requested shape requires a multiple of ${Object(y.O)(t)}. inputShape=${e} outputShape= ${t}`}function th(e,t){return`Input to reshape is a tensor with ${Object(y.O)(e)}
7 dense values, but the requested shape has ${Object(y.O)(t)}. inputShape=${e} outputShape=${t}`}function tg(){return"segment ids must be >= 0"}function tb(){return"segment ids are not increasing"}function tm(e,t){return`Segment id ${e} out of range [0, ${t}), possibly because segmentIds input is not sorted.`}function ty(e,t,n){return`Bad: indices[${e}] == ${t} out of range [0, ${n})`}function tS(e,t){let n,r=!1;for(e<=eP?(n=e,r=!0):n=Object(y.G)(e,Math.floor(Math.sqrt(e)));!r;)n>t||n===e?r=!0:n=Object(y.G)(e,n+1);return n}function tv(e,t,n){let r=[],i=e.length;for(let a=0;a<i;a++)a!==t?r.push(e[a]):r.push(n);return r}function tO(e,t,n,r){let i=t.shape.length,a=e.shape.length;if(0!==r&&(r<-i||r>i))throw Error(`Expect batchDims in the range of [-${i}, ${i}], but got ${r}`);if(r<0&&(r+=i),r>a)throw Error(`batchDims (${r}) must be less than rank(x) ( 8 ${a}).`);if(n<r)throw Error(`batchDims (${r}) must be less than or equal to axis (${n}).`);for(let n=0;n<r;++n)if(e.shape[n]!==t.shape[n])throw Error(`x.shape[${n}]: ${e.shape[n]} should be equal to indices.shape[${n}]: ${t.shape[n]}.`);let o=e.shape[n],s=[],l=1,u=1,c=1;for(let t=0;t<r;++t)s.push(e.shape[t]),l*=e.shape[t];for(let t=r;t<n;t++)s.push(e.shape[t]),u*=e.shape[t];for(let e=r;e<i;e++)s.push(t.shape[e]);for(let t=n+1;t<a;t++)s.push(e.shape[t]),c*=e.shape[t];return{batchSize:l,sliceSize:c,outerSize:u,dimSize:o,outputShape:s}}function tx(e){try{return e.map(e=>Object(ep.decodeString)(e))}catch(e){throw Error("Failed to decode encoded string bytes into utf-8, error: "+e)}}function tI(e){return e.map(e=>Object(ep.encodeString)(e))}var tN=n(227),tk=n(105),tT=n(260),tw=n(206)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});let r={float32:4,float16:2,int32:4,uint16:2,uint8:1,bool:1,complex64:8}},function(e,t,n){"use strict";var r=n(102),i=n(194);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},function(e,t,n){"use strict";var r=n(46),i=n(66),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){"use strict";var r=n(57),i=n(65),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),l=s&&"something"===(function(){}).name,u=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},function(e,t,n){"use strict";var r=n(155),i=n(275),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(305),i=n(280).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(283),i=n(48),a=n(115),o=n(49)("toStringTag"),s=Object,l="Arguments"===a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),o))?n:l?a(t):"Object"===(r=a(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(305),i=n(280);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(302),i=n(87);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},function(e,t,n){"use strict";var r=n(198),i=n(43),a=n(297),o=n(116),s=n(125),l=n(313),u=i([].push),c=function(e){var t=1===e,n=2===e,i=3===e,c=4===e,p=6===e,d=7===e,f=5===e||p;return function(h,g,b,m){for(var y,S,v=o(h),O=a(v),x=s(O),I=r(g,b),N=0,k=m||l,T=t?k(h,x):n||d?k(h,0):void 0;x>N;N++)if((f||N in O)&&(S=I(y=O[N],N,v),e))if(t)T[N]=S;else if(S)switch(e){case 3:return!0;case 5:return y;case 6:return N;case 2:u(T,y)}else switch(e){case 4:return!1;case 7:u(T,y)}return p?-1:i||c?c:T}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){"use strict";var r=n(115);e.exports=Array.isArray||function(e){return"Array"===r(e)}},function(e,t,n){"use strict";var r=n(43),i=n(41),a=n(48),o=n(218),s=n(98),l=n(276),u=function(){},c=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),f=!p.test(u),h=function(e){if(!a(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},g=function(e){if(!a(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(p,l(e))}catch(e){return!0}};g.sham=!0,e.exports=!c||i(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?g:h},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(41),i=n(49),a=n(196),o=i("species");e.exports=function(e){return a>=51||!r(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}
vendor: 4,176 bytes, line 8
8},1!==t[e](Boolean).foo})}},function(e,t,n){"use strict";(function(e){var r=n(642),i=n(643),a=n(644);function o(){return l.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function s(e,t){if(o()<t)throw RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return p(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n,r=0|f(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!==n?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=o())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return w(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,n);default:if(r)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),isNaN(n*=1)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;
vendor: 14,471 bytes, line 8
8o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var p=!0,d=0;d<l;d++)if(u(e,a+d)!==u(t,d)){p=!1;break}if(p)return a}return -1}function S(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))break;e[n+o]=s}return o}function v(e,t,n,r){return W(B(t,e.length-n),e,n,r)}function O(e,t,n,r){return W(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return O(e,t,n,r)}function I(e,t,n,r){return W(L(t),e,n,r)}function N(e,t,n,r){return W(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,u=e[i],c=null,p=u>239?4:u>223?3:u>191?2:1;if(i+p<=n)switch(p){case 1:u<128&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function w(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=P(e[a]);return i}function _(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function E(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,a){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function C(e,t,n,r){t<0&&(t=0xffffffff+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function A(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function M(e,t,n,r,a){return a||A(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function $(e,t,n,r,a){return a||A(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(null,t):void 0!==n?"string"==typeof r?s(null,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return p(null,e)},l.allocUnsafeSlow=function(e){return p(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var n,r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?T(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),c=e.slice(t,n),p=0;p<s;++p)if(u[p]!==c[p]){a=u[p],o=c[p];break}return a<o?-1:+(o<a)},l.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,t,n);default:if(a)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||E(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||E(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||E(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||E(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||E(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},l.prototype.readInt16BE=function(e,t){t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},l.prototype.readInt32LE=function(e,t){return t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||E(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||E(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||E(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||E(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e*=1,t|=0,n|=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){e*=1,t|=0,n|=0,r||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,4,0xffffffff,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,4,0xffffffff,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,4,0x7fffffff,-0x80000000),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e*=1,t|=0,n||R(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i,a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=l.isBuffer(e)?e:B(new l(e,r).toString()),s=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>
8-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function L(e){return r.toByteArray(function(e){if((e=(function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")})(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(114))},function(e,t,n){"use strict";let r;function i(e){r=e}function a(e){if(void 0!==r)return r;if(e||"undefined"!=typeof navigator&&null!=navigator){if(e||(e=navigator),"ReactNative"===e.product)return!0;let t=e.userAgent||e.vendor||("undefined"!=typeof window?window.opera:"");if(!t){let t=e;return t.userAgentData&&t.userAgentData.mobile}return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))}return!1}function o(){return"undefined"!=typeof window&&null!=window.document||"undefined"!=typeof WorkerGlobalScope}n.r(t),n.d(t,"mockIsMobile",function(){return i}),n.d(t,"isMobile",function(){return a}),n.d(t,"isBrowser",function(){return o})},function(e,t,n){"use strict";function r(e,t=!1){console.log(e.toString(t))}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({all_:function(e,t=null,n=!1){let o={x:Object(a.a)(e,"x","all","bool")},s={axis:t,keepDims:n};return r.a.runKernel(i.f,o,s)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({any_:function(e,t=null,n=!1){let o={x:Object(a.a)(e,"x","any","bool")},s={axis:t,keepDims:n};return r.a.runKernel(i.g,o,s)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({argMax_:function(e,t=0){let n={x:Object(a.a)(e,"x","argMax")},o={axis:t};return r.a.runKernel(i.h,n,o)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
8);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({argMin_:function(e,t=0){let n={x:Object(a.a)(e,"x","argMin")},o={axis:t};return r.a.runKernel(i.i,n,o)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(29),o=n(2);let s=Object(n(4).b)({atan2_:function(e,t){let n=Object(o.a)(e,"a","atan2"),s=Object(o.a)(t,"b","atan2");[n,s]=Object(a.makeTypesMatch)(n,s);let l={a:n,b:s};return r.a.runKernel(i.m,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(2),i=n(10),a=n(90),o=n(26),s=n(4),l=n(8);let u=Object(s.b)({conv1d_:function(e,t,n,s,u="NWC",c=1,p){let d=Object(r.a)(e,"x","conv1d"),f=Object(r.a)(t,"filter","conv1d"),h=d,g=!1;2===d.rank&&(g=!0,h=Object(l.a)(d,[1,d.shape[0],d.shape[1]])),i.c(3===h.rank,()=>`Error in conv1d: input must be rank 3, but got rank ${h.rank}.`),i.c(3===f.rank,()=>"Error in conv1d: filter must be rank 3, but got rank "+f.rank+"."),o.a("conv1d",s,p),i.c(h.shape[2]===f.shape[1],()=>`Error in conv1d: depth of input (${h.shape[2]}) must match input depth for filter ${f.shape[1]}.`),i.c(o.i(n,c),()=>`Error in conv1D: Either stride or dilation must be 1. Got stride ${n} and dilation '${c}'`),i.c(o.j(c),()=>"Error in conv1D: Dilated rates should be larger than 0."),i.c(o.j(n),()=>"Error in conv1D: Stride should be larger than 0."),i.c("NWC"===u,()=>`Error in conv1d: got dataFormat of ${u} but only NWC is currently supported.`);let b=Object(l.a)(f,[1,f.shape[0],f.shape[1],f.shape[2]]),m=Object(l.a)(h,[h.shape[0],1,h.shape[1],h.shape[2]]),y=[1,n],S=[1,c],v=Object(a.a)(m,b,y,s,"NHWC",S,p);return g?Object(l.a)(v,[v.shape[2],v.shape[3]]):Object(l.a)(v,[v.shape[0],v.shape[2],v.shape[3]])}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(2),i=n(188);let a=Object(n(4).b)({conv2dTranspose_:function(e,t,n,a,o,s){let l=Object(r.a)(e,"x","conv2dTranspose"),u=Object(r.a)(t,"filter","conv2dTranspose");return Object(i.a)(n,l,u,a,o,"NHWC",s)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({cosh_:function(e){let t={x:Object(a.a)(e,"x","cosh","float32")};return r.a.runKernel(i.L,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({depthToSpace_:function(e,t,n="NHWC"){let s=Object(a.a)(e,"x","depthToSpace","float32"),l="NHWC"===n?s.shape[1]:s.shape[2],u="NHWC"===n?s.shape[2]:s.shape[3],c="NHWC"===n?s.shape[3]:s.shape[1];o.c(t>1,()=>"blockSize should be > 1 for depthToSpace, but was: "+t),o.c(l*t>=0,()=>`Negative dimension size caused by overflow when multiplying 9 ${l} and ${t} for depthToSpace with input shape 10 ${s.shape}`),o.c(u*t>=0,()=>`Negative dimension size caused by overflow when multiplying 11 ${u} and ${t} for depthToSpace with input shape 12 ${s.shape}`),o.c(c%(t*t)==0,()=>`Dimension size must be evenly divisible by ${t*t} but is ${c} for depthToSpace with input shape ${s.shape}`);let p={x:s},d={blockSize:t,dataFormat:n};return r.a.runKernel(i.Q,p,d)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(4),l=n(8);let u=Object(s.b)({dilation2d_:function(e,t,n,s,u=[1,1],c="NHWC"){let p=Object(a.a)(e,"x","dilation2d"),d=Object(a.a)(t,"filter","dilation2d");o.c(3===p.rank||4===p.rank,()=>"Error in dilation2d: input must be rank 3 or 4, but got rank "+p.rank+"."),o.c(3===d.rank,()=>"Error in dilation2d: filter must be rank 3, but got rank "+d.rank+"."),o.c("NHWC"===c,()=>"Error in dilation2d: Only NHWC is currently supported, but got dataFormat of "+c);let f=p,h=!1;3===p.rank&&(f=Object(l.a)(p,[1,p.shape[0],p.shape[1],p.shape[2]]),h=!0),o.c(f.shape[3]===d.shape[2],()=>`Error in dilation2d: input and filter must have the same depth: ${f.shape[3]} vs ${d.shape[2]}`);let g={x:f,filter:d},b={strides:n,pad:s,dilations:u},m=r.a.runKernel(i.V,g,b);return h?Object(l.a)(m,[m.shape[1],m.shape[2],m.shape[3]]):m}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(29),i=n(2),a=n(19),o=n(132),s=n(4),l=n(45),u=n(25);let c=Object(s.b)({divNoNan_:function(e,t){let n=Object(i.a)(e,"a","div"),s=Object(i.a)(t,"b","div");[n,s]=Object(r.makeTypesMatch)(n,s);let c=Object(a.a)(n,s),p=Object(u.a)(c),d=Object(o.a)(s,p);return Object(l.a)(d,p,c)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(2),i=n(10),a=n(31),o=n(4),s=n(8);let l=Object(o.b)({dot_:function(e,t){let n=Object(r.a)(e,"t1","dot"),o=Object(r.a)(t,"t2","dot");i.c((1===n.rank||2===n.rank)&&(1===o.rank||2===o.rank),()=>`Error in dot: inputs must all be rank 1 or 2, but got ranks ${n.rank}
12 and ${o.rank}.`);let l=1===n.rank?n.size:n.shape[1],u=1===o.rank?o.size:o.shape[0];if(i.c(l===u,()=>`Error in dot: inner dimensions of inputs must match, but got ${l} and ${u}.`),1===n.rank&&1===o.rank){let e=Object(s.a)(n,[1,-1]),t=Object(s.a)(o,[-1,1]),r=Object(a.a)(e,t);return Object(s.a)(r,[])}if(1===n.rank&&2===o.rank){let e=Object(s.a)(n,[1,-1]),t=Object(s.a)(o,[o.shape[0],o.shape[1]]),r=Object(a.a)(e,t);return Object(s.a)(r,[r.size])}if(2===n.rank&&1===o.rank){let e=Object(s.a)(o,[-1,1]),t=Object(a.a)(n,e);return Object(s.a)(t,[t.size])}{let e=Object(s.a)(o,[o.shape[0],o.shape[1]]);return Object(a.a)(n,e)}}})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(133);let i=Object(n(4).b)({euclideanNorm_:function(e,t=null,n=!1){return Object(r.a)(e,"euclidean",t,n)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(4),l=n(8);let u=Object(s.b)({localResponseNormalization_:function(e,t=5,n=1,s=1,u=.5){let c=Object(a.a)(e,"x","localResponseNormalization");o.c(4===c.rank||3===c.rank,()=>`Error in localResponseNormalization: x must be rank 3 or 4 but got 13 rank ${c.rank}.`),o.c(o.w(t),()=>`Error in localResponseNormalization: depthRadius must be an integer but got depthRadius ${t}.`);let p=c,d=!1;3===c.rank&&(d=!0,p=Object(l.a)(c,[1,c.shape[0],c.shape[1],c.shape[2]]));let f={x:p},h={depthRadius:t,bias:n,alpha:s,beta:u},g=r.a.runKernel(i.Ab,f,h);return d?Object(l.a)(g,[g.shape[1],g.shape[2],g.shape[3]]):g}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({log1p_:function(e){let t={x:Object(a.a)(e,"x","log1p")};return r.a.runKernel(i.Hb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({softplus_:function(e){let t={x:Object(a.a)(e,"x","softplus")};return r.a.runKernel(i.Sc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(2),i=n(20),a=n(84),o=n(136),s=n(179);let l=Object(n(4).b)({logicalXor_:function(e,t){let n=Object(r.a)(e,"a","logicalXor","bool"),l=Object(r.a)(t,"b","logicalXor","bool");return Object(i.assertAndGetBroadcastShape)(n.shape,l.shape),Object(a.a)(Object(s.a)(e,t),Object(o.a)(Object(a.a)(e,t)))}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({mirrorPad_:function(e,t,n){o.c("reflect"===n||"symmetric"===n,()=>`Invalid mode. Mode must be either reflect or symmetric. Got ${n}.`);let s=Object(a.a)(e,"x","mirrorPad");if(0===s.rank)throw Error("mirrorPad(scalar) is not defined. Pass non-scalar to mirrorPad");o.c(t.length===s.rank,()=>`Padding doesn't match input. Must be ${s.rank}. Got ${t.length}.`);let l=+("reflect"===n);for(let e=0;e<s.rank;e++)o.c(2===t[e].length,()=>"Invalid number of paddings. Must be length of 2 each."),o.c(t[e][0]>=0&&t[e][0]<=s.shape[e]-l&&t[e][1]>=0&&t[e][1]<=s.shape[e]-l,()=>`Padding in dimension ${e} cannot be greater than or equal to ${s.shape[e]-l} or less than 0 for input of shape `+s.shape);let u={paddings:t,mode:n},c={x:s};return r.a.runKernel(i.Zb,c,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(29),o=n(2);let s=Object(n(4).b)({mod_:function(e,t){let n=Object(o.a)(e,"a","mod"),s=Object(o.a)(t,"b","mod");[n,s]=Object(a.makeTypesMatch)(n,s);let l={a:n,b:s};return r.a.runKernel(i.ac,l)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(2),i=n(10),a=n(172),o=n(130),s=n(26),l=n(180),u=n(4),c=n(8),p=n(137);let d=Object(u.b)({pool_:function(e,t,n,u,d,f,h){let g;null==d&&(d=[1,1]),null==f&&(f=1),0===u&&(u="valid");let b=Object(r.a)(e,"x","maxPool"),m=b,y=!1;3===b.rank&&(y=!0,m=Object(c.a)(b,[1,b.shape[0],b.shape[1],b.shape[2]])),i.c(s.i(f,d),()=>`Error in pool: Either strides or dilations must be 1. Got strides ${f} and dilations '${d}'`);let S=s.f(m.shape,t,f,d,u),v=[S.dilationHeight,S.dilationWidth];g="same"===u?function(e,t){let n=e.map((e,n)=>e+(e-1)*(t[n]-1)).map(e=>e-1),r=n.map(e=>Math.floor(e/2)),i=n.map((e,t)=>e-r[t]);return n.map((e,t)=>
13[r[t],i[t]])}([S.filterHeight,S.filterWidth],v):[[0,0],[0,0]];let O=1===v[0]&&1===v[1],[x,I]=function(e,t,n){let r=n.map(e=>e[0]),i=n.map(e=>e[1]),a=e.concat(r,i),o=t.map((e,t)=>(e-a[t]%e)%e),s=i.map((e,t)=>e+o[t]);return[t.map((e,t)=>[r[t],s[t]]),t.map((e,t)=>[0,o[t]])]}([S.inHeight,S.inWidth],v,g),N=O?u:"valid",k=O?m:Object(p.a)(m,v,x),T=("avg"===n?()=>Object(a.a)(k,t,f,N,h):()=>Object(l.a)(k,t,f,N,h))(),w=O?T:Object(o.a)(T,v,I);return y?Object(c.a)(w,[w.shape[1],w.shape[2],w.shape[3]]):w}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(16);let s=Object(n(4).b)({prod_:function(e,t=null,n=!1){let s=Object(a.a)(e,"x","prod");"bool"===s.dtype&&(s=Object(o.a)(s,"int32"));let l={x:s},u={axis:t,keepDims:n};return r.a.runKernel(i.pc,l,u)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({round_:function(e){let t={x:Object(a.a)(e,"x","round")};return r.a.runKernel(i.Gc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({rsqrt_:function(e){let t={x:Object(a.a)(e,"x","rsqrt","float32")};return r.a.runKernel(i.Hc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({selu_:function(e){let t={x:Object(a.a)(e,"x","selu")};return r.a.runKernel(i.Lc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(2),i=n(10),a=n(90),o=n(131),s=n(4),l=n(8);let u=Object(s.b)({separableConv2d_:function(e,t,n,s,u,c=[1,1],p="NHWC"){let d=Object(r.a)(e,"x","separableConv2d"),f=Object(r.a)(t,"depthwiseFilter","separableConv2d"),h=Object(r.a)(n,"pointwiseFilter","separableConv2d"),g=d,b=!1;if(3===d.rank&&(b=!0,g=Object(l.a)(d,[1,d.shape[0],d.shape[1],d.shape[2]])),"NCHW"===p)throw Error("separableConv2d currently does not support dataFormat NCHW; only NHWC is supported");i.c(4===g.rank,()=>`Error in separableConv2d: input must be rank 4, but got rank ${g.rank}.`),i.c(4===f.rank,()=>`Error in separableConv2d: depthwise filter must be rank 4, but got rank ${f.rank}.`),i.c(4===h.rank,()=>`Error in separableConv2d: pointwise filter must be rank 4, but got rank ${f.rank}.`),i.c(1===h.shape[0],()=>`Error in separableConv2d: the first dimension of pointwise filter must be 1, but got ${h.shape[0]}.`),i.c(1===h.shape[1],()=>`Error in separableConv2d: the second dimension of pointwise filter must be 1, but got ${h.shape[1]}.`);let m=f.shape[2],y=f.shape[3];i.c(h.shape[2]===m*y,()=>`Error in separableConv2d: the third dimension of pointwise filter must be ${m*y}, but got ${h.shape[2]}.`);let S=Object(o.a)(g,f,s,u,p,c),v=Object(a.a)(S,h,1,"valid",p);return b?Object(l.a)(v,[v.shape[1],v.shape[2],v.shape[3]]):v}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({sin_:function(e){let t={x:Object(a.a)(e,"x","sin","float32")};return r.a.runKernel(i.Oc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({sinh_:function(e){let t={x:Object(a.a)(e,"x","sinh")};return r.a.runKernel(i.Pc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(72),i=n(44),a=n(135),o=n(11),s=n(4),l=n(120),u=n(8),c=n(68),p=n(23),d=n(34),f=n(149);let h=Object(s.b)({irfft_:function(e){let t,n=e.shape[e.shape.length-1],s=e.size/n;if(n<=2){let r=Object(u.a)(e,[s,n]);t=Object(f.a)(r)}else{let h=[s,2*(n-1)],g=Object(u.a)(Object(l.a)(e),[s,n]),b=Object(u.a)(Object(a.a)(e),[s,n]),m=Object(c.a)(Object(d.a)(g,[0,1],[s,n-2]),1),y=Object(o.a)(Object(c.a)(Object(d.a)(b,[0,1],[s,n-2]),1),Object(p.a)(-1)),S=Object(i.a)([g,m],1),v=Object(i.a)([b,y],1),O=Object(u.a)(Object(r.a)(S,v),[h[0],h[1]]);t=Object(f.a)(O)}if(t=Object(l.a)(t),3===e.rank&&0!==e.shape[0]){let n=t,r=e.shape[0];t=Object(u.a)(t,[r,t.shape[0]/r,t.shape[1]]),n.dispose()}return t}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(2),i=n(10),a=n(71);function o(e,t,n){if(Object(i.e)(e),null!=t&&3!==t.length)throw Error("tensor3d() requires shape to have three numbers");let o=Object(r.c)(e,n);if(3!==o.length&&1!==o.length)throw Error("tensor3d() requires values to be number[][][] or flat/TypedArray");if(1===o.length&&null==t)throw Error("tensor3d() requires shape to be provided when `values` are a flat array");return Object(a.a)(e,t,o,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
13);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({topk_:function(e,t=1,n=!0){let o=Object(a.a)(e,"x","topk");if(0===o.rank)throw Error("topk() expects the input to be of rank 1 or higher");let s=o.shape[o.shape.length-1];if(t<0)throw Error("'k' passed to topk() must be >= 0 but got "+t);if(t>s)throw Error(`'k' passed to topk() must be <= the last dimension (${s}) but got `+t);let l={x:o},u={k:t,sorted:n},[c,p]=r.a.runKernel(i.pd,l,u);return{values:c,indices:p}}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(2),o=n(10);let s=Object(n(4).b)({unique_:function(e,t=0){let n=Object(a.a)(e,"x","unique","string_or_numeric");Object(o.c)(n.rank>0,()=>"The input tensor must be at least 1D");let s={x:n},l={axis:t},[u,c]=r.a.runKernel(i.sd,s,l);return{values:u,indices:c}}})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(67);function i(e,t){let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(e);let i=Object(r.a)(e,"int32"),a=Object(r.a)([n.length,e.length],"int32");for(let t=0;t<n.length;t++){let r=i.indexToLoc(n[t]),o=t*e.length;a.values.set(r,o)}return a.toTensor()}},function(e,t,n){"use strict";function r(){return"undefined"!=typeof window&&null!=window.document||"undefined"!=typeof WorkerGlobalScope}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){return e instanceof Float32Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return p}),n(204);var r=n(24),i=n(40),a=n(59),o=n(70);function s(){if(!Object(r.c)().getBool("IS_BROWSER"))throw Error("Failed to obtain IndexedDB factory because the current environmentis not a web browser.");let e="undefined"==typeof window?self:window,t=e.indexedDB||e.mozIndexedDB||e.webkitIndexedDB||e.msIndexedDB||e.shimIndexedDB;if(null==t)throw Error("The current browser does not appear to support IndexedDB.");return t}function l(e){let t=e.result;t.createObjectStore("models_store",{keyPath:"modelPath"}),t.createObjectStore("model_info_store",{keyPath:"modelPath"})}class u{constructor(e){if(this.indexedDB=s(),null==e||!e)throw Error("For IndexedDB, modelPath must not be null, undefined or empty.");this.modelPath=e}async save(e){if(e.modelTopology instanceof ArrayBuffer)throw Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");return this.databaseAction(this.modelPath,e)}async load(){return this.databaseAction(this.modelPath)}databaseAction(e,t){return new Promise((e,n)=>{let r=this.indexedDB.open("tensorflowjs",1);r.onupgradeneeded=()=>l(r),r.onsuccess=()=>{let a=r.result;if(null==t){let t=a.transaction("models_store","readonly"),r=t.objectStore("models_store").get(this.modelPath);r.onsuccess=()=>{if(null==r.result)return a.close(),n(Error(`Cannot find model with path '${this.modelPath}' in IndexedDB.`));e(r.result.modelArtifacts)},r.onerror=e=>(a.close(),n(r.error)),t.oncomplete=()=>a.close()}else{t.weightData=o.a.join(t.weightData);let r=Object(i.j)(t),s=a.transaction("model_info_store","readwrite"),l,u,c=s.objectStore("model_info_store");try{l=c.put({modelPath:this.modelPath,modelArtifactsInfo:r})}catch(e){return n(e)}l.onsuccess=()=>{let i,o=(u=a.transaction("models_store","readwrite")).objectStore("models_store");try{i=o.put({modelPath:this.modelPath,modelArtifacts:t,modelArtifactsInfo:r})}catch(e){return n(e)}i.onsuccess=()=>e({modelArtifactsInfo:r}),i.onerror=e=>{let t=(c=s.objectStore("model_info_store")).delete(this.modelPath);t.onsuccess=()=>(a.close(),n(i.error)),t.onerror=e=>(a.close(),n(i.error))}},l.onerror=e=>(a.close(),n(l.error)),s.oncomplete=()=>{null==u?a.close():u.oncomplete=()=>a.close()}}},r.onerror=e=>n(r.error)})}}u.URL_SCHEME="indexeddb://";let c=e=>{var t;return Object(r.c)().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(u.URL_SCHEME)?(t=e.slice(u.URL_SCHEME.length),new u(t)):null};a.a.registerSaveRouter(c),a.a.registerLoadRouter(c);class p{constructor(){this.indexedDB=s()}async listModels(){return new Promise((e,t)=>
13{let n=this.indexedDB.open("tensorflowjs",1);n.onupgradeneeded=()=>l(n),n.onsuccess=()=>{let r=n.result,i=r.transaction("model_info_store","readonly"),a=i.objectStore("model_info_store").getAll();a.onsuccess=()=>{let t={};for(let e of a.result)t[e.modelPath]=e.modelArtifactsInfo;e(t)},a.onerror=e=>(r.close(),t(a.error)),i.oncomplete=()=>r.close()},n.onerror=e=>t(n.error)})}async removeModel(e){var t;return e=(t=e).startsWith(u.URL_SCHEME)?t.slice(u.URL_SCHEME.length):t,new Promise((t,n)=>{let r=this.indexedDB.open("tensorflowjs",1);r.onupgradeneeded=()=>l(r),r.onsuccess=()=>{let i,a=r.result,o=a.transaction("model_info_store","readwrite"),s=o.objectStore("model_info_store"),l=s.get(e);l.onsuccess=()=>{if(null==l.result)return a.close(),n(Error(`Cannot find model with path '${e}' in IndexedDB.`));{let r=s.delete(e),o=()=>{let r=(i=a.transaction("models_store","readwrite")).objectStore("models_store").delete(e);r.onsuccess=()=>t(l.result.modelArtifactsInfo),r.onerror=e=>n(l.error)};r.onsuccess=o,r.onerror=e=>(o(),a.close(),n(l.error))}},l.onerror=e=>(a.close(),n(l.error)),o.oncomplete=()=>{null==i?a.close():i.oncomplete=()=>a.close()}},r.onerror=e=>n(r.error)})}}},function(e,t,n){"use strict";n.d(t,"a",function(){return m}),n.d(t,"b",function(){return S}),n(204);var r=n(24),i=n(10),a=n(40),o=n(70),s=n(59);let l="tensorflowjs_models",u="info",c="model_topology",p="weight_specs",d="weight_data",f="model_metadata";function h(e){return{info:[l,e,u].join("/"),topology:[l,e,c].join("/"),weightSpecs:[l,e,p].join("/"),weightData:[l,e,d].join("/"),modelMetadata:[l,e,f].join("/")}}function g(e){for(let t of Object.values(e))window.localStorage.removeItem(t)}function b(e){let t=e.split("/");if(t.length<3)throw Error("Invalid key format: "+e);return t.slice(1,t.length-1).join("/")}class m{constructor(e){if(!Object(r.c)().getBool("IS_BROWSER")||"undefined"==typeof window||void 0===window.localStorage)throw Error("The current environment does not support local storage.");if(this.LS=window.localStorage,null==e||!e)throw Error("For local storage, modelPath must not be null, undefined or empty.");this.modelPath=e,this.keys=h(this.modelPath)}async save(e){if(e.modelTopology instanceof ArrayBuffer)throw Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");{let t=JSON.stringify(e.modelTopology),n=JSON.stringify(e.weightSpecs),r=Object(a.j)(e),i=o.a.join(e.weightData);try{this.LS.setItem(this.keys.info,JSON.stringify(r)),this.LS.setItem(this.keys.topology,t),this.LS.setItem(this.keys.weightSpecs,n),this.LS.setItem(this.keys.weightData,Object(a.a)(i));let o={format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy,signature:null!=e.signature?e.signature:void 0,userDefinedMetadata:null!=e.userDefinedMetadata?e.userDefinedMetadata:void 0,modelInitializer:null!=e.modelInitializer?e.modelInitializer:void 0,initializerSignature:null!=e.initializerSignature?e.initializerSignature:void 0,trainingConfig:null!=e.trainingConfig?e.trainingConfig:void 0};return this.LS.setItem(this.keys.modelMetadata,JSON.stringify(o)),{modelArtifactsInfo:r}}catch(e){throw g(this.keys),Error(`Failed to save model '${this.modelPath}' to local storage: size quota being exceeded is a possible cause of this failure: modelTopologyBytes=${r.modelTopologyBytes}, weightSpecsBytes=${r.weightSpecsBytes}, weightDataBytes=${r.weightDataBytes}.`)}}}async load(){let e=JSON.parse(this.LS.getItem(this.keys.info));if(null==e)throw Error(`In local storage, there is no model with name '${this.modelPath}'`);if("JSON"!==e.modelTopologyType)throw Error("BrowserLocalStorage does not support loading non-JSON model topology yet.");let t={},n=JSON.parse(this.LS.getItem(this.keys.topology));if(null==n)throw Error(`In local storage, the topology of model '${this.modelPath}' is missing.`);t.modelTopology=n;let r=JSON.parse(this.LS.getItem(this.keys.weightSpecs));if(null==r)throw Error(`In local storage, the weight specs of model '${this.modelPath}' are missing.`);t.weightSpecs=r;let i=this.LS.getItem(this.keys.modelMetadata);if(null!=i){let e=JSON.parse(i);t.format=e.format,t.generatedBy=e.generatedBy,t.convertedBy=e.convertedBy,null!=e.signature&&(t.signature=e.signature),null!=e.userDefinedMetadata&&(t.userDefinedMetadata=e.userDefinedMetadata),null!=e.modelInitializer&&(t.modelInitializer=e.modelInitializer),null!=e.initializerSignature&&(t.initializerSignature=e.initializerSignature),null!=e.trainingConfig&&(t.trainingConfig=e.trainingConfig)}let o=this.LS.getItem(this.keys.weightData);if(null==o)throw Error(`In local storage, the binary weight values of model '${this.modelPath}' are missing.`);return t.weightData=Object(a.b)(o),t}}m.URL_SCHEME="localstorage://";let y=e=>{var t;
13return Object(r.c)().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(m.URL_SCHEME)?(t=e.slice(m.URL_SCHEME.length),new m(t)):null};s.a.registerSaveRouter(y),s.a.registerLoadRouter(y);class S{constructor(){Object(i.c)(Object(r.c)().getBool("IS_BROWSER"),()=>"Current environment is not a web browser"),Object(i.c)("undefined"==typeof window||void 0!==window.localStorage,()=>"Current browser does not appear to support localStorage"),this.LS=window.localStorage}async listModels(){let e={},t=l+"/",n="/"+u;for(let r=0;r<this.LS.length;++r){let i=this.LS.key(r);i.startsWith(t)&&i.endsWith(n)&&(e[b(i)]=JSON.parse(this.LS.getItem(i)))}return e}async removeModel(e){var t;let n=h(e=(t=e).startsWith(m.URL_SCHEME)?t.slice(m.URL_SCHEME.length):t);if(null==this.LS.getItem(n.info))throw Error(`Cannot find model at path '${e}'`);let r=JSON.parse(this.LS.getItem(n.info));return g(n),r}}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(10),o=n(4),s=n(8);let l=Object(o.b)({conv3DBackpropInput_:function(e,t,n,o,l){a.c(e.length===t.rank,()=>`Length of inShape (${e.length}) and rank of dy (${t.rank}) must match`);let u=e,c=t,p=!1;4===t.rank&&(p=!0,c=Object(s.a)(t,[1,t.shape[0],t.shape[1],t.shape[2],t.shape[3]]),u=[1,e[0],e[1],e[2],e[3]]);let d=u[4],f=c.shape[4];a.c(5===u.length,()=>"Error in conv3dDerInput: inShape must be length 5, but got length "+u.length+"."),a.c(5===c.rank,()=>"Error in conv3dDerInput: dy must be rank 5, but got rank "+c.rank),a.c(5===n.rank,()=>"Error in conv3dDerInput: filter must be rank 5, but got rank "+n.rank),a.c(d===n.shape[3],()=>`Error in conv3dDerInput: depth of input (${d}) must match input depth for filter ${n.shape[3]}.`),a.c(f===n.shape[4],()=>`Error in conv3dDerInput: depth of output (${f}) must match output depth for filter ${n.shape[4]}.`);let h={dy:c,filter:n},g={pad:l,strides:o,inputShape:u},b=r.a.runKernel(i.J,h,g);return p?Object(s.a)(b,[b.shape[1],b.shape[2],b.shape[3],b.shape[4]]):b}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(4),l=n(8);let u=Object(s.b)({resizeNearestNeighbor_:function(e,t,n=!1,s=!1){let u=Object(a.a)(e,"images","resizeNearestNeighbor");o.c(3===u.rank||4===u.rank,()=>`Error in resizeNearestNeighbor: x must be rank 3 or 4, but got rank ${u.rank}.`),o.c(2===t.length,()=>"Error in resizeNearestNeighbor: new shape must 2D, but got shape "+t+"."),o.c("float32"===u.dtype||"int32"===u.dtype,()=>"`images` must have `int32` or `float32` as dtype"),o.c(!1===s||!1===n,()=>"Error in resizeNearestNeighbor: If halfPixelCenters is true, alignCorners must be false.");let c=u,p=!1;3===u.rank&&(p=!0,c=Object(l.a)(u,[1,u.shape[0],u.shape[1],u.shape[2]]));let[]=t,d={images:c}
13,f={alignCorners:n,halfPixelCenters:s,size:t},h=r.a.runKernel(i.Cc,d,f);return p?Object(l.a)(h,[h.shape[1],h.shape[2],h.shape[3]]):h}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(4),l=n(8);let u=Object(s.b)({resizeBilinear_:function(e,t,n=!1,s=!1){let u=Object(a.a)(e,"images","resizeBilinear");o.c(3===u.rank||4===u.rank,()=>`Error in resizeBilinear: x must be rank 3 or 4, but got rank ${u.rank}.`),o.c(2===t.length,()=>"Error in resizeBilinear: new shape must 2D, but got shape "+t+"."),o.c(!1===s||!1===n,()=>"Error in resizeBilinear: If halfPixelCenters is true, alignCorners must be false.");let c=u,p=!1;3===u.rank&&(p=!0,c=Object(l.a)(u,[1,u.shape[0],u.shape[1],u.shape[2]]));let[]=t,d={images:c},f={alignCorners:n,halfPixelCenters:s,size:t},h=r.a.runKernel(i.Ac,d,f);return p?Object(l.a)(h,[h.shape[1],h.shape[2],h.shape[3]]):h}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(4),o=n(8);let s=Object(a.b)({depthwiseConv2dNativeBackpropInput_:function(e,t,n,a,s,l=[1,1],u){let c=t,p=!1;3===t.rank&&(p=!0,c=Object(o.a)(t,[1,t.shape[0],t.shape[1],t.shape[2]]));let d={dy:c,filter:n},f={strides:a,pad:s,dimRoundingMode:u,dilations:l,inputShape:e},h=r.a.runKernel(i.T,d,f);return p?Object(o.a)(h,[h.shape[1],h.shape[2],h.shape[3]]):h}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(5),i=n(3),a=n(4),o=n(8);let s=Object(a.b)({depthwiseConv2dNativeBackpropFilter_:function(e,t,n,a,s,l=[1,1],u){let c=e;3===e.rank&&(c=Object(o.a)(e,[1,e.shape[0],e.shape[1],e.shape[2]]));let p=t;3===p.rank&&(p=Object(o.a)(t,[1,t.shape[0],t.shape[1],t.shape[2]]));let d={x:c,dy:p},f={strides:a,pad:s,dimRoundingMode:u,dilations:l,filterShape:n};return r.a.runKernel(i.S,d,f)}})},function(e,t,n){(function(e){(function(){"use strict";function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},r=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof e&&e];for(var n=0;n<t.length;++n){var r=t[n];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function i(e,t){if(t)e:{var i=r;e=e.split(".");for(var a=0;a<e.length-1;a++){var o=e[a];if(!(o in i))break e;i=i[o]}(t=t(a=i[e=e[e.length-1]]))!=a&&null!=t&&n(i,e,{configurable:!0,writable:!0,value:t})}}function a(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function o(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}function s(e){if(!(e instanceof Array)){e=o(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}i("Symbol",function(e){function t(e,t){this.h=e,n(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.h};var r="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return function e(n){if(this instanceof e)throw TypeError("Symbol is not a constructor");return new t(r+(n||"")+"_"+i++,n)}}),i("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var i="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;o<i.length;o++){var s=r[i[o]];"function"==typeof s&&"function"!=typeof s.prototype[e]&&n(s.prototype,e,{configurable:!0,writable:!0,value:function(){return a(t(this))}})}return e});var l="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};i("Object.assign",function(e){return e||l});var u,c,p="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)c=Object.setPrototypeOf;else{e:{var d={};try{d.__proto__={a:!0},M=d.a;break e}catch(e){}M=!1}c=M?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw TypeError(e+" is not extensible");return e}:null}var f=c;function h(e,t){if(e.prototype=p(t.prototype),e.prototype.constructor=e,f)f(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.za=t.prototype}function g(){this.m=!1,this.j=null,this.i=void 0,this.h=1,this.v=this.s=0,this.l=null}function b(e){if(e.m)throw TypeError("Generator is already running");e.m=!0}function m(e,t){e.l={ma:t,na:!0},e.h=e.s||e.v}function y(e,t,n){return e.h=n,{value:t}}function S(e){this.h=new g,this.i=e}function v(e,t,n,r){try{var i=t.call(e.h.j,n);if(!(i instanceof Object))throw TypeError("Iterator result "+i+" is not an object");
vendor: 4,617 bytes, line 13
13if(!i.done)return e.h.m=!1,i;var a=i.value}catch(t){return e.h.j=null,m(e.h,t),O(e)}return e.h.j=null,r.call(e.h,a),O(e)}function O(e){for(;e.h.h;)try{var t=e.i(e.h);if(t)return e.h.m=!1,{value:t.value,done:!1}}catch(t){e.h.i=void 0,m(e.h,t)}if(e.h.m=!1,e.h.l){if(t=e.h.l,e.h.l=null,t.na)throw t.ma;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function x(e){this.next=function(t){return b(e.h),e.h.j?t=v(e,e.h.j.next,t,e.h.u):(e.h.u(t),t=O(e)),t},this.throw=function(t){return b(e.h),e.h.j?t=v(e,e.h.j.throw,t,e.h.u):(m(e.h,t),t=O(e)),t},this.return=function(t){return function(e,t){b(e.h);var n=e.h.j;return n?v(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.h.return):(e.h.return(t),O(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function I(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise(function(r,i){!function e(a){a.done?r(a.value):Promise.resolve(a.value).then(t,n).then(e,i)}(e.next())})}(new x(new S(e)))}function N(e){return e||Array.prototype.fill}g.prototype.u=function(e){this.i=e},g.prototype.return=function(e){this.l={return:e},this.h=this.v},i("Promise",function(e){function t(e){this.i=0,this.j=void 0,this.h=[],this.u=!1;var t=this.l();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.h=null}function i(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;n.prototype.i=function(e){if(null==this.h){this.h=[];var t=this;this.j(function(){t.m()})}this.h.push(e)};var a=r.setTimeout;n.prototype.j=function(e){a(e,0)},n.prototype.m=function(){for(;this.h&&this.h.length;){var e=this.h;this.h=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.l(e)}}}this.h=null},n.prototype.l=function(e){this.j(function(){throw e})},t.prototype.l=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.I),reject:e(this.m)}},t.prototype.I=function(e){if(e===this)this.m(TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.L(e);else{switch(typeof e){case"object":var n=null!=e;break;case"function":n=!0;break;default:n=!1}n?this.F(e):this.s(e)}},t.prototype.F=function(e){var t=void 0;try{t=e.then}catch(e){return void this.m(e)}"function"==typeof t?this.M(t,e):this.s(e)},t.prototype.m=function(e){this.v(2,e)},t.prototype.s=function(e){this.v(1,e)},t.prototype.v=function(e,t){if(0!=this.i)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.i);this.i=e,this.j=t,2===this.i&&this.K(),this.H()},t.prototype.K=function(){var e=this;a(function(){if(e.D()){var t=r.console;void 0!==t&&t.error(e.j)}},1)},t.prototype.D=function(){if(this.u)return!1;var e=r.CustomEvent,t=r.Event,n=r.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=r.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.j,n(e))},t.prototype.H=function(){if(null!=this.h){for(var e=0;e<this.h.length;++e)s.i(this.h[e]);this.h=null}};var s=new n;return t.prototype.L=function(e){var t=this.l();e.T(t.resolve,t.reject)},t.prototype.M=function(e,t){var n=this.l();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){a(e)}}:t}var i,a,o=new t(function(e,t){i=e,a=t});return this.T(r(e,i),r(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.T=function(e,t){function n(){switch(r.i){case 1:e(r.j);break;case 2:t(r.j);break;default:throw Error("Unexpected state: "+r.i)}}var r=this;null==this.h?s.i(n):this.h.push(n),this.u=!0},t.resolve=i,t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var r=o(e),a=r.next();!a.done;a=r.next())i(a.value).T(t,n)})},t.all=function(e){var n=o(e),r=n.next();return r.done?i([]):new t(function(e,t){function a(t){return function(n){o[t]=n,0==--s&&e(o)}}var o=[],s=0;do o.push(void 0),s++,i(r.value).T(a(o.length-1),t),r=n.next();while(!r.done)})},t}),i("Array.prototype.keys",function(e){return e||function(){return function(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}(this,function(e){return e})}}),i("Array.prototype.fill",function(e){return e||function(e,t,n){var r=this.length||0;for(0>t&&(t=Math.max(0,r+t)),(null==n||n>
13r)&&(n=r),0>(n=Number(n))&&(n=Math.max(0,r+n)),t=Number(t||0);t<n;t++)this[t]=e;return this}}),i("Int8Array.prototype.fill",N),i("Uint8Array.prototype.fill",N),i("Uint8ClampedArray.prototype.fill",N),i("Int16Array.prototype.fill",N),i("Uint16Array.prototype.fill",N),i("Int32Array.prototype.fill",N),i("Uint32Array.prototype.fill",N),i("Float32Array.prototype.fill",N),i("Float64Array.prototype.fill",N),i("Object.is",function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}}),i("Array.prototype.includes",function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var r=n.length;for(0>(t=t||0)&&(t=Math.max(t+r,0));t<r;t++){var i=n[t];if(i===e||Object.is(i,e))return!0}return!1}}),i("String.prototype.includes",function(e){return e||function(e,t){if(null==this)throw TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(e instanceof RegExp)throw TypeError("First argument to String.prototype.includes must not be a regular expression");return -1!==this.indexOf(e,t||0)}});var k=this||self;function T(e,t){e=e.split(".");var n,r=k;for((e[0]in r)||void 0===r.execScript||r.execScript("var "+e[0]);e.length&&(n=e.shift());)e.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function w(e){var t;return(t=k.navigator)&&(t=t.userAgent)||(t=""),-1!=t.indexOf(e)}var j=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),i="string"==typeof e?e.split(""):e,a=0;a<n;a++)a in i&&(r[a]=t.call(void 0,i[a],a,e));return r},F={},_=null;function E(e){var t=e.length,n=3*t/4;n%3?n=Math.floor(n):-1!="=.".indexOf(e[t-1])&&(n=-1!="=.".indexOf(e[t-2])?n-2:n-1);var r=new Uint8Array(n),i=0;return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=_[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}R();for(var r=0;;){var i=n(-1),a=n(0),o=n(64),s=n(64);if(64===s&&-1===i)break;t(i<<2|a>>4),64!=o&&(t(a<<4&240|o>>2),64!=s&&t(o<<6&192|s))}}(e,function(e){r[i++]=e}),i!==n?r.subarray(0,i):r}function R(){if(!_){_={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=e.concat(t[n].split(""));F[n]=r;for(var i=0;i<r.length;i++){var a=r[i];void 0===_[a]&&(_[a]=i)}}}}var D="undefined"!=typeof Uint8Array,C=!(w("Trident")||w("MSIE"))&&"function"==typeof k.btoa;function A(e){if(!C){var t;void 0===t&&(t=0),R(),t=F[t];for(var n=Array(Math.floor(e.length/3)),r=t[64]||"",i=0,a=0;i<e.length-2;i+=3){var o=e[i],s=e[i+1],l=e[i+2],u=t[o>>2];o=t[(3&o)<<4|s>>4],s=t[(15&s)<<2|l>>6],l=t[63&l],n[a++]=u+o+s+l}switch(u=0,l=r,e.length-i){case 2:l=t[(15&(u=e[i+1]))<<2]||r;case 1:e=e[i],n[a]=t[e>>2]+t[(3&e)<<4|u>>4]+l+r}return n.join("")}for(t="";10240<e.length;)t+=String.fromCharCode.apply(null,e.subarray(0,10240)),e=e.subarray(10240);return btoa(t+=String.fromCharCode.apply(null,e))}var M,$,U=RegExp("[-_.]","g");function P(e){switch(e){case"-":return"+";case"_":return"/";case".":return"=";default:return""}}function B(e){if(!C)return E(e);U.test(e)&&(e=e.replace(U,P)),e=atob(e);for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function L(){return $||($=new Uint8Array(0))}var W={},z="function"==typeof Uint8Array.prototype.slice,G=0,V=0;function H(e){var t=0>e,n=(e=Math.abs(e))>>>0;e=Math.floor((e-n)/0x100000000),t&&(t=(n=o(X(n,e))).next().value,e=n.next().value,n=t),G=n>>>0,V=e>>>0}var q,K="function"==typeof BigInt;function X(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}function Y(e,t){this.i=e>>>0,this.h=t>>>0}function Q(e){if(!e)return q||(q=new Y(0,0));if(!/^-?\d+$/.test(e))return null;if(16>e.length)H(Number(e));else if(K)G=Number((e=BigInt(e))&BigInt(0xffffffff))>>>0,V=Number(e>>BigInt(32)&BigInt(0xffffffff));else{var t=+("-"===e[0]);V=G=0;for(var n=e.length,r=t,i=(n-t)%6+t;i<=n;r=i,i+=6)r=Number(e.slice(r,i)),V*=1e6,0x100000000<=(G=1e6*G+r)&&(V+=G/0x100000000|0,G%=0x100000000);t&&(e=(t=o(X(G,V))).next().value,t=t.next().value,G=e,V=t)}return new Y(G,V)}function J(e,t){return Error("Invalid wire type: "+e+" (at position "+t+")")}function Z(){return Error("Failed to read varint, encoding is invali
13d.")}function ee(e,t){return Error("Tried to read past the end of the data "+t+" > "+e)}function et(){throw Error("Invalid UTF8")}function en(e,t){return t=String.fromCharCode.apply(null,t),null==e?t:e+t}var er,ei,ea,eo=void 0,es="undefined"!=typeof TextDecoder,el="undefined"!=typeof TextEncoder;function eu(e){if(e!==W)throw Error("illegal external caller")}function ec(e,t){if(eu(t),this.V=e,null!=e&&0===e.length)throw Error("ByteString should be constructed with non-empty values")}function ep(){return ea||(ea=new ec(null,W))}function ed(e){eu(W);var t=e.V;return null==(t=null==t||D&&null!=t&&t instanceof Uint8Array?t:"string"==typeof t?B(t):null)?t:e.V=t}function ef(e,t){this.i=null,this.m=!1,this.h=this.j=this.l=0,eh(this,e,t)}function eh(e,t,n){e.S=void 0!==(n=void 0===n?{}:n).S&&n.S,t&&(e.i=(t=function(e){if("string"==typeof e)return{buffer:B(e),C:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),C:!1};if(e.constructor===Uint8Array)return{buffer:e,C:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),C:!1};if(e.constructor===ec)return{buffer:ed(e)||L(),C:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),C:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}(t)).buffer,e.m=t.C,e.l=0,e.j=e.i.length,e.h=e.l)}function eg(e,t){if(e.h=t,t>e.j)throw ee(e.j,t)}function eb(e){var t=e.i,n=e.h,r=t[n++],i=127&r;if(128&r&&(i|=(127&(r=t[n++]))<<7,128&r&&(i|=(127&(r=t[n++]))<<14,128&r&&(i|=(127&(r=t[n++]))<<21,128&r&&(i|=(r=t[n++])<<28,128&r&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++])))))throw Z();return eg(e,n),i}function em(e,t){if(0>t)throw Error("Tried to read a negative byte length: "+t);var n=e.h,r=n+t;if(r>e.j)throw ee(t,e.j-n);return e.h=r,n}ef.prototype.reset=function(){this.h=this.l};var ey=[];function eS(){this.h=[]}function ev(e,t,n){for(;0<n||127<t;)e.h.push(127&t|128),t=(t>>>7|n<<25)>>>0,n>>>=7;e.h.push(t)}function eO(e,t){for(;127<t;)e.h.push(127&t|128),t>>>=7;e.h.push(t)}function ex(e,t){if(ey.length){var n=ey.pop();eh(n,e,t),e=n}else e=new ef(e,t);this.h=e,this.j=this.h.h,this.i=this.l=-1,this.setOptions(t)}function eI(e){var t=e.h;if(t.h==t.j)return!1;e.j=e.h.h;var n=eb(e.h)>>>0;if(t=n>>>3,!(0<=(n&=7)&&5>=n))throw J(n,e.j);if(1>t)throw Error("Invalid field number: "+t+" (at position "+e.j+")");return e.l=t,e.i=n,!0}function eN(e){switch(e.i){case 0:if(0!=e.i)eN(e);else e:{for(var t=(e=e.h).h,n=t+10,r=e.i;t<n;)if(0==(128&r[t++])){eg(e,t);break e}throw Z()}break;case 1:eg(e=e.h,e.h+8);break;case 2:2!=e.i?eN(e):(t=eb(e.h)>>>0,eg(e=e.h,e.h+t));break;case 5:eg(e=e.h,e.h+4);break;case 3:for(t=e.l;;){if(!eI(e))throw Error("Unmatched start-group tag: stream EOF");if(4==e.i){if(e.l!=t)throw Error("Unmatched end-group tag");break}eN(e)}break;default:throw J(e.i,e.j)}}eS.prototype.length=function(){return this.h.length},eS.prototype.end=function(){var e=this.h;return this.h=[],e},ex.prototype.setOptions=function(e){e=void 0===e?{}:e,this.ca=void 0!==e.ca&&e.ca},ex.prototype.reset=function(){this.h.reset(),this.j=this.h.h,this.i=this.l=-1};var ek=[];function eT(){this.j=[],this.i=0,this.h=new eS}function ew(e,t){0!==t.length&&(e.j.push(t),e.i+=t.length)}var ej="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;function eF(e,t){return ej?e[ej]|=t:void 0!==e.A?e.A|=t:(Object.defineProperties(e,{A:{value:t,configurable:!0,writable:!0,enumerable:!1}}),t)}function e_(e,t){ej?e[ej]&&(e[ej]&=~t):void 0!==e.A&&(e.A&=~t)}function eE(e){var t;return null==(t=ej?e[ej]:e.A)?0:t}function eR(e,t){ej?e[ej]=t:void 0!==e.A?e.A=t:Object.defineProperties(e,{A:{value:t,configurable:!0,writable:!0,enumerable:!1}})}function eD(e){return eF(e,1),e}function eC(e,t){eR(t,-51&(0|e))}function eA(e,t){eR(t,-41&(18|e))}var eM={};function e$(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)&&e.constructor===Object}var eU,eP,eB=[];function eL(e){if(2&eE(e.o))throw Error("Cannot mutate an immutable Message")}function eW(e){var t=e.length;(t=t?e[t-1]:void 0)&&e$(t)?t.g=1:(t={},e.push((t.g=1,t)))}function ez(e){var t=e.i+e.G;return e.B||(e.B=e.o[t]={})}function eG(e,t){return -1===t?null:t>=e.i?e.B?e.B[t]:void 0:e.o[t+e.G]}function eV(e,t,n,r){eL(e),eH(e,t,n,r)}function eH(e,t,n,r){e.j&&(e.j=void 0),t>=e.i||r?ez(e)[t]=n:(e.o[t+e.G]=n,(e=e.B)&&t in e&&delete e[t])}function eq(e,t,n,r){var i=eG(e,t);Array.isArray(i)||(i=eU);var a=eE(i);if(1&a||eD(i),r)2&a||eF(i,2),1&n||Object.freeze(i);else{r=!(2&n);var o=2&a;1&n||!o?r&&16&a&&!o&&e_(i,16):eH(e,t,i=eD(Array.prototype.slice.call(i)))}return i}function eK(e,t){var n=eG(e,t),r=null==n?n:"number"==typeof n||"NaN"===n||"Infinity"===n||"-Infinity"===n?Number(n):void 0;return null!=r&&r!==n&&eH(e,t,r),r}function eX(e,t,n,r,i){e.h||(e.h={});var a=e.h[n],o=eq(e,n,3,i);if(!a){var s=o;a=[];var l=!!(16&eE(e.o));o=!!(2&eE(s));var u=s;!i&&o&&(s=Array.prototype.slice.call(s));for(var c=o,p=0;p<s.length;p++){var d=s[p],f=t,h=!1;if(void 0!==(d=Array.isArray(d)?new f(d):h?new f:void 0)){var g=h=eE(f=d.o);o&&(g|=2),l&&(g|=16),g!=h&&eR(f,g),f=g,c=c||!!(2&f),a.push(d)}}return e.h[n]=a,t=33|(l=eE(s)),l!=(t=c?-9&t:8|t)&&(Object.isFrozen(c=s)&&(c=Array.prototype.slice.call(c)),eR(c,t),s=c),u!==s&&eH(e,n,s),(i||r&&o)&&eF(a,2),r&&Object.freeze(a),a}
13return i||(i=Object.isFrozen(a),r&&!i?Object.freeze(a):!r&&i&&(a=Array.prototype.slice.call(a),e.h[n]=a)),a}function eY(e,t,n){var r=!!(2&eE(e.o));if(t=eX(e,t,n,r,r),e=eq(e,n,3,r),!(r||8&eE(e))){for(r=0;r<t.length;r++){if(2&eE((n=t[r]).o)){var i=e7(n,!1);i.j=n}else i=n;n!==i&&(t[r]=i,e[r]=i.o)}eF(e,8)}return t}function eQ(e,t,n){if(null!=n&&"number"!=typeof n)throw Error("Value of float/double field must be a number|null|undefined, found "+typeof n+": "+n);eV(e,t,n)}function eJ(e,t,n,r,i){eL(e);var a=eX(e,n,t,!1,!1);return n=null!=r?r:new n,e=eq(e,t,2,!1),void 0!=i?(a.splice(i,0,n),e.splice(i,0,n.o)):(a.push(n),e.push(n.o)),n.C()&&e_(e,8),n}function eZ(e,t){return null==e?t:e}function e0(e,t,n){return n=void 0===n?0:n,eZ(eK(e,t),n)}function e1(e,t,n,r){if(null!=e){if(Array.isArray(e))e=e2(e,t,n,void 0!==r);else if(e$(e)){var i,a={};for(i in e)a[i]=e1(e[i],t,n,r);e=a}else e=t(e,r);return e}}function e2(e,t,n,r){var i=eE(e);r=r?!!(16&i):void 0,e=Array.prototype.slice.call(e);for(var a=0;a<e.length;a++)e[a]=e1(e[a],t,n,r);return n(i,e),e}function e3(e){return e.ja===eM?e.toJSON():function(e){switch(typeof e){case"number":return isFinite(e)?e:String(e);case"object":if(e)if(Array.isArray(e)){if(0!=(128&eE(e)))return eW(e=Array.prototype.slice.call(e)),e}else{if(D&&null!=e&&e instanceof Uint8Array)return A(e);if(e instanceof ec){var t=e.V;return null==t?"":"string"==typeof t?t:e.V=A(t)}}}return e}(e)}function e4(e,t){128&e&&eW(t)}function e6(e,t,n){if(n=void 0===n?eA:n,null!=e){if(D&&e instanceof Uint8Array)return e.length?new ec(new Uint8Array(e),W):ep();if(Array.isArray(e)){var r=eE(e);return 2&r||(t&&!(32&r)&&(16&r||0===r)?eR(e,2|r):4&(t=eE(e=e2(e,e6,4&r?eA:n,!0)))&&2&t&&Object.freeze(e)),e}return e.ja===eM?e8(e):e}}function e5(e,t,n,r,i,a,o){if(e=e.h&&e.h[n]){if(2&(r=eE(e))?r=e:(eA(r,a=j(e,e8)),Object.freeze(a),r=a),eL(t),o=null==r?eU:eD([]),null!=r){for(a=!!r.length,e=0;e<r.length;e++){var s=r[e];a=a&&!(2&eE(s.o)),o[e]=s.o}a=1|8*!!a,((e=eE(o))&a)!==a&&(Object.isFrozen(o)&&(o=Array.prototype.slice.call(o)),eR(o,e|a)),t.h||(t.h={}),t.h[n]=r}else t.h&&(t.h[n]=void 0);eH(t,n,o,i)}else eV(t,n,e6(r,a,o),i)}function e8(e){return 2&eE(e.o)||eF((e=e7(e,!0)).o,2),e}function e7(e,t){var n=e.o,r=[];eF(r,16);var i=e.constructor.h;if(i&&r.push(i),i=e.B){r.length=n.length,r.fill(void 0,r.length,n.length);var a={};r[r.length-1]=a}0!=(128&eE(n))&&eW(r),t=t||e.C()?eA:eC,a=e.constructor,eP=r,r=new a(r),eP=void 0,e.R&&(r.R=e.R.slice()),a=!!(16&eE(n));for(var o=i?n.length-1:n.length,s=0;s<o;s++)e5(e,r,s-e.G,n[s],!1,a,t);if(i)for(var l in i)e5(e,r,+l,i[l],!0,a,t);return r}function e9(e,t,n){null==e&&(e=eP),eP=void 0;var r,i=this.constructor.i||0,a=0<i,o=this.constructor.h,s=!1;if(null==e){var l=48,u=!0;a&&(i=0,l|=128),eR(e=o?[o]:[],l)}else{if(!Array.isArray(e)||o&&o!==e[0])throw Error();var c=l=eF(e,0);if((u=0!=(16&c))&&((s=0!=(32&c))||(c|=32)),a){if(128&c)i=0;else if(0<e.length){var p=e[e.length-1];if(e$(p)&&"g"in p){i=0,c|=128,delete p.g;var d,f=!0;for(d in p){f=!1;break}f&&e.pop()}}}else if(128&c)throw Error();l!==c&&eR(e,c)}if(this.G=(o?0:-1)-i,this.h=void 0,this.o=e,i=(o=this.o.length)-1,o&&e$(o=this.o[i])?(this.B=o,this.i=i-this.G):void 0!==t&&-1<t?(this.i=Math.max(t,i+1-this.G),this.B=void 0):this.i=Number.MAX_VALUE,!a&&this.B&&"g"in this.B)throw Error('Unexpected "g" flag in sparse object of message that is not a group type.');if(n)for(t=u&&!s&&!0,a=this.i,u=0;u<n.length;u++)(s=n[u])<a?(i=e[s+=this.G])?te(i,t):e[s]=eU:(r||(r=ez(this)),(i=r[s])?te(i,t):r[s]=eU)}function te(e,t){if(Array.isArray(e)){var n=eE(e),r=1;!t||2&n||(r|=16),(n&r)!==r&&eR(e,n|r)}}function tt(e,t,n){if(n){var r,i={};for(r in n){var a=n[r],o=a.ra;o||(i.J=a.xa||a.oa.W,a.ia?(i.aa=tu(a.ia),o=function(e){return function(t,n,r){return e.J(t,n,r,e.aa)}}(i)):a.ka?(i.Z=tc(a.da.P,a.ka),o=function(e){return function(t,n,r){return e.J(t,n,r,e.Z)}}(i)):o=i.J,a.ra=o),o(t,e,a.da),i={J:i.J,aa:i.aa,Z:i.Z}}}!function(e,t){if(t=t.R){ew(e,e.h.end());for(var n=0;n<t.length;n++)ew(e,ed(t[n])||L())}}(t,e)}eR(eB,23),eU=Object.freeze(eB),e9.prototype.toJSON=function(){return e2(this.o,e3,e4)},e9.prototype.C=function(){return!!(2&eE(this.o))},e9.prototype.ja=eM,e9.prototype.toString=function(){return this.o.toString()};var tn=Symbol();function tr(e,t,n){return e[tn]||(e[tn]=function(e,r){return t(e,r,n)})}function ti(e){var t=e[tn];if(!t){var n=tx(e);t=function(e,t){return tI(e,t,n)},e[tn]=t}return t}function ta(e){var t=function(e){var t=e.ia;return t?ti(t):(t=e.wa)?tr(e.da.P,t,e.ka):void 0}(e),n=e.da,r=e.oa.U;return t?function(e,i){return r(e,i,n,t)}:function(e,t){return r(e,t,n)}}function to(e,t){var n=e[t];return"function"==typeof n&&0===n.length&&(n=n(),e[t]=n),Array.isArray(n)&&(tm in n||tp in n||0<n.length&&"function"==typeof n[0])?n:void 0}function ts(e,t,n,r,i,a){t.P=e[0];var o=1;if(e.length>
13o&&"number"!=typeof e[o]){var s=e[o++];n(t,s)}for(;o<e.length;){n=e[o++];for(var l=o+1;l<e.length&&"number"!=typeof e[l];)l++;switch(s=e[o++],l-=o){case 0:r(t,n,s);break;case 1:(l=to(e,o))?(o++,i(t,n,s,l)):r(t,n,s,e[o++]);break;case 2:i(t,n,s,l=to(e,l=o++),e[o++]);break;case 3:a(t,n,s,e[o++],e[o++],e[o++]);break;case 4:a(t,n,s,e[o++],e[o++],e[o++],e[o++]);break;default:throw Error("unexpected number of binary field arguments: "+l)}}return t}var tl=Symbol();function tu(e){var t=e[tl];if(!t){var n=tb(e);t=function(e,t){return tN(e,t,n)},e[tl]=t}return t}function tc(e,t){var n=e[tl];return n||(n=function(e,n){return tt(e,n,t)},e[tl]=n),n}var tp=Symbol();function td(e,t){e.push(t)}function tf(e,t,n){e.push(t,n.W)}function th(e,t,n,r){var i=tu(r),a=tb(r).P,o=n.W;e.push(t,function(e,t,n){return o(e,t,n,a,i)})}function tg(e,t,n,r,i,a){var o=tc(r,a),s=n.W;e.push(t,function(e,t,n){return s(e,t,n,r,o)})}function tb(e){var t=e[tp];return t||(t=ts(e,e[tp]=[],td,tf,th,tg),tm in e&&tp in e&&(e.length=0),t)}var tm=Symbol();function ty(e,t){e[0]=t}function tS(e,t,n,r){var i=n.U;e[t]=r?function(e,t,n){return i(e,t,n,r)}:i}function tv(e,t,n,r,i){var a=n.U,o=ti(r),s=tx(r).P;e[t]=function(e,t,n){return a(e,t,n,s,o,i)}}function tO(e,t,n,r,i,a,o){var s=n.U,l=tr(r,i,a);e[t]=function(e,t,n){return s(e,t,n,r,l,o)}}function tx(e){var t=e[tm];return t||(t=ts(e,e[tm]={},ty,tS,tv,tO),tm in e&&tp in e&&(e.length=0),t)}function tI(e,t,n){for(;eI(t)&&4!=t.i;){var r=t.l,i=n[r];if(!i){var a=n[0];a&&(a=a[r])&&(i=n[r]=ta(a))}if(!i||!i(t,e,r)){r=e,a=(i=t).j,eN(i);var o=i;if(!o.ca){if(i=o.h.h-a,o.h.h=a,o=o.h,0==i)i=ep();else{if(a=em(o,i),o.S&&o.m)i=o.i.subarray(a,a+i);else{o=o.i;var s=a;i=s===(i=a+i)?L():z?o.slice(s,i):new Uint8Array(o.subarray(s,i))}i=0==i.length?ep():new ec(i,W)}(a=r.R)?a.push(i):r.R=[i]}}}return e}function tN(e,t,n){for(var r=n.length,i=1==r%2,a=+!!i;a<r;a+=2)(0,n[a+1])(t,e,n[a]);tt(e,t,i?n[0]:void 0)}function tk(e,t){return{U:e,W:t}}var tT=tk(function(e,t,n){if(5!==e.i)return!1;var r=(e=e.h).i,i=e.h,a=r[i],o=r[i+1],s=r[i+2];return r=r[i+3],eg(e,e.h+4),e=2*((o=(0|a|o<<8|s<<16|r<<24)>>>0)>>31)+1,a=o>>>23&255,o&=8388607,eV(t,n,255==a?o?NaN:1/0*e:0==a?1401298464324817e-60*e*o:e*Math.pow(2,a-150)*(o+8388608)),!0},function(e,t,n){if(null!=(t=eK(t,n))){eO(e.h,8*n+5),e=e.h;var r=+t;0===r?0<1/r?G=V=0:(V=0,G=0x80000000):isNaN(r)?(V=0,G=0x7fffffff):34028234663852886e22<(r=(n=0>r?-0x80000000:0)?-r:r)?(V=0,G=(0x7f800000|n)>>>0):11754943508222875e-54>r?(V=0,G=(n|(r=Math.round(r/1401298464324817e-60)))>>>0):(t=Math.floor(Math.log(r)/Math.LN2),r*=Math.pow(2,-t),0x1000000<=(r=Math.round(8388608*r))&&++t,V=0,G=(n|t+127<<23|8388607&r)>>>0),n=G,e.h.push(n>>>0&255),e.h.push(n>>>8&255),e.h.push(n>>>16&255),e.h.push(n>>>24&255)}}),tw=tk(function(e,t,n){if(0!==e.i)return!1;var r=e.h,i=0,a=e=0,o=r.i,s=r.h;do{var l=o[s++];i|=(127&l)<<a,a+=7}while(32>a&&128&l);for(32<a&&(e|=(127&l)>>4),a=3;32>a&&128&l;a+=7)e|=(127&(l=o[s++]))<<a;if(eg(r,s),!(128>l))throw Z();return r=i>>>0,(e=0x80000000&(l=e>>>0))&&(l=~l>>>0,0==(r=1+~r>>>0)&&(l=l+1>>>0)),r=0x100000000*l+(r>>>0),eV(t,n,e?-r:r),!0},function(e,t,n){null!=(t=eG(t,n))&&("string"==typeof t&&Q(t),null!=t&&(eO(e.h,8*n),"number"==typeof t?(e=e.h,H(t),ev(e,G,V)):(n=Q(t),ev(e.h,n.i,n.h))))}),tj=tk(function(e,t,n){return 0===e.i&&(eV(t,n,eb(e.h)),!0)},function(e,t,n){if(null!=(t=eG(t,n))&&null!=t)if(eO(e.h,8*n),e=e.h,0<=(n=t))eO(e,n);else{for(t=0;9>t;t++)e.h.push(127&n|128),n>>=7;e.h.push(1)}}),tF=tk(function(e,t,n){if(2!==e.i)return!1;var r=eb(e.h)>>>0,i=em(e=e.h,r);if(e=e.i,es){var a,o=e;
13(a=er)||(a=er=new TextDecoder("utf-8",{fatal:!0})),e=i+r,o=0===i&&e===o.length?o:o.subarray(i,e);try{var s=a.decode(o)}catch(e){if(void 0===eo){try{a.decode(new Uint8Array([128]))}catch(e){}try{a.decode(new Uint8Array([97])),eo=!0}catch(e){eo=!1}}throw eo||(er=void 0),e}}else{r=(s=i)+r,i=[];for(var l,u,c=null;s<r;)128>(l=e[s++])?i.push(l):224>l?s>=r?et():(u=e[s++],194>l||128!=(192&u)?(s--,et()):i.push((31&l)<<6|63&u)):240>l?s>=r-1?et():128!=(192&(u=e[s++]))||224===l&&160>u||237===l&&160<=u||128!=(192&(o=e[s++]))?(s--,et()):i.push((15&l)<<12|(63&u)<<6|63&o):244>=l?s>=r-2?et():128!=(192&(u=e[s++]))||0!=u-144+(l<<28)>>30||128!=(192&(o=e[s++]))||128!=(192&(a=e[s++]))?(s--,et()):(l=((7&l)<<18|(63&u)<<12|(63&o)<<6|63&a)-65536,i.push(55296+(l>>10&1023),56320+(1023&l))):et(),8192<=i.length&&(c=en(c,i),i.length=0);s=en(c,i)}return eV(t,n,s),!0},function(e,t,n){if(null!=(t=eG(t,n))){var r=!1;if(el){if(r&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(t))throw Error("Found an unpaired surrogate");t=(ei||(ei=new TextEncoder)).encode(t)}else{for(var i=0,a=new Uint8Array(3*t.length),o=0;o<t.length;o++){var s=t.charCodeAt(o);if(128>s)a[i++]=s;else{if(2048>s)a[i++]=s>>6|192;else{if(55296<=s&&57343>=s){if(56319>=s&&o<t.length){var l=t.charCodeAt(++o);if(56320<=l&&57343>=l){s=1024*(s-55296)+l-56320+65536,a[i++]=s>>18|240,a[i++]=s>>12&63|128,a[i++]=s>>6&63|128,a[i++]=63&s|128;continue}o--}if(r)throw Error("Found an unpaired surrogate");s=65533}a[i++]=s>>12|224,a[i++]=s>>6&63|128}a[i++]=63&s|128}}t=i===a.length?a:a.subarray(0,i)}eO(e.h,8*n+2),eO(e.h,t.length),ew(e,e.h.end()),ew(e,t)}}),t_=tk(function(e,t,n,r,i){if(2!==e.i)return!1;t=eJ(t,n,r),n=e.h.j,r=eb(e.h)>>>0;var a=e.h.h+r,o=a-n;if(0>=o&&(e.h.j=a,i(t,e,void 0,void 0,void 0),o=a-e.h.h),o)throw Error("Message parsing ended unexpectedly. Expected to read "+r+" bytes, instead read "+(r-o)+" bytes, either the data ended unexpectedly or the message misreported its own length");return e.h.h=a,e.h.j=n,!0},function(e,t,n,r,i){if(null!=(t=eY(t,r,n)))for(r=0;r<t.length;r++){var a=e;eO(a.h,8*n+2);var o=a.h.end();ew(a,o),o.push(a.i),a=o,i(t[r],e),o=e;var s=a.pop();for(s=o.i+o.h.length()-s;127<s;)a.push(127&s|128),s>>>=7,o.i++;a.push(s),o.i++}
13});function tE(e){return function(t,n){e:{if(ek.length){var r=ek.pop();r.setOptions(n),eh(r.h,t,n),t=r}else t=new ex(t,n);try{var i=tx(e),a=tI(new i.P,t,i);break e}finally{(i=t.h).i=null,i.m=!1,i.l=0,i.j=0,i.h=0,i.S=!1,t.l=-1,t.i=-1,100>ek.length&&ek.push(t)}}return a}}function tR(e){return function(){var t=new eT;tN(this,t,tb(e)),ew(t,t.h.end());for(var n=new Uint8Array(t.i),r=t.j,i=r.length,a=0,o=0;o<i;o++){var s=r[o];n.set(s,a),a+=s.length}return t.j=[n],n}}function tD(e){e9.call(this,e)}h(tD,e9);var tC=[tD,1,tj,2,tT,3,tF,4,tF];function tA(e){e9.call(this,e,-1,tM)}tD.prototype.l=tR(tC),h(tA,e9),tA.prototype.addClassification=function(e,t){return eJ(this,1,tD,e,t),this};var tM=[1],t$=tE([tA,1,t_,tC]);function tU(e){e9.call(this,e)}h(tU,e9);var tP=[tU,1,tT,2,tT,3,tT,4,tT,5,tT];function tB(e){e9.call(this,e,-1,tL)}tU.prototype.l=tR(tP),h(tB,e9);var tL=[1],tW=tE([tB,1,t_,tP]);function tz(e){e9.call(this,e)}h(tz,e9);var tG=[tz,1,tT,2,tT,3,tT,4,tT,5,tT,6,tw],tV=tE(tG);function tH(e,t,n){if(n=e.createShader(0===n?e.VERTEX_SHADER:e.FRAGMENT_SHADER),e.shaderSource(n,t),e.compileShader(n),!e.getShaderParameter(n,e.COMPILE_STATUS))throw Error("Could not compile WebGL shader.\n\n"+e.getShaderInfoLog(n));return n}function tq(e){return eY(e,tD,1).map(function(e){var t=eG(e,1);return{index:null==t?0:t,qa:e0(e,2),label:null!=eG(e,3)?eZ(eG(e,3),""):void 0,displayName:null!=eG(e,4)?eZ(eG(e,4),""):void 0}})}function tK(e){return{x:e0(e,1),y:e0(e,2),z:e0(e,3),visibility:null!=eK(e,4)?e0(e,4):void 0}}function tX(e){return eY(tW(e),tU,1).map(tK)}function tY(e,t){this.i=e,this.h=t,this.m=0}function tQ(e,t,n){return function(e,t){var n=e.h;if(void 0===e.s){var r=tH(n,"\n attribute vec2 aVertex;\n attribute vec2 aTex;\n varying vec2 vTex;\n void main(void) {\n gl_Position = vec4(aVertex, 0.0, 1.0);\n vTex = aTex;\n }",0),i=tH(n,"\n precision mediump float;\n varying vec2 vTex;\n uniform sampler2D sampler0;\n void main(){\n gl_FragColor = texture2D(sampler0, vTex);\n }",1),a=n.createProgram();if(n.attachShader(a,r),n.attachShader(a,i),n.linkProgram(a),!n.getProgramParameter(a,n.LINK_STATUS))throw Error("Could not compile WebGL program.\n\n"+n.getProgramInfoLog(a));r=e.s=a,n.useProgram(r),i=n.getUniformLocation(r,"sampler0"),e.l={O:n.getAttribLocation(r,"aVertex"),N:n.getAttribLocation(r,"aTex"),ya:i},e.v=n.createBuffer(),n.bindBuffer(n.ARRAY_BUFFER,e.v),n.enableVertexAttribArray(e.l.O),n.vertexAttribPointer(e.l.O,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),e.u=n.createBuffer(),n.bindBuffer(n.ARRAY_BUFFER,e.u),n.enableVertexAttribArray(e.l.N),n.vertexAttribPointer(e.l.N,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([0,1,0,0,1,0,1,1]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),n.uniform1i(i,0)}r=e.l,n.useProgram(e.s),n.canvas.width=t.width,n.canvas.height=t.height,n.viewport(0,0,t.width,t.height),n.activeTexture(n.TEXTURE0),e.i.bindTexture2d(t.glName),n.enableVertexAttribArray(r.O),n.bindBuffer(n.ARRAY_BUFFER,e.v),n.vertexAttribPointer(r.O,2,n.FLOAT,!1,0,0),n.enableVertexAttribArray(r.N),n.bindBuffer(n.ARRAY_BUFFER,e.u),n.vertexAttribPointer(r.N,2,n.FLOAT,!1,0,0),n.bindFramebuffer(n.DRAW_FRAMEBUFFER?n.DRAW_FRAMEBUFFER:n.FRAMEBUFFER,null),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.colorMask(!0,!0,!0,!0),n.drawArrays(n.TRIANGLE_FAN,0,4),n.disableVertexAttribArray(r.O),n.disableVertexAttribArray(r.N),n.bindBuffer(n.ARRAY_BUFFER,null),e.i.bindTexture2d(0)}(e,t),"function"==typeof e.h.canvas.transferToImageBitmap?Promise.resolve(e.h.canvas.transferToImageBitmap()):n?Promise.resolve(e.h.canvas):"function"==typeof createImageBitmap?createImageBitmap(e.h.canvas):(void 0===e.j&&(e.j=document.createElement("canvas")),new Promise(function(t){e.j.height=e.h.canvas.height,e.j.width=e.h.canvas.width,e.j.getContext("2d",{}).drawImage(e.h.canvas,0,0,e.h.canvas.width,e.h.canvas.height),t(e.j)}))}function tJ(e){this.h=e}tz.prototype.l=tR(tG);var tZ=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]);function t0(e,t){return t+e}function t1(e,t){window[e]=t}function t2(e){if(this.h=e,this.listeners={},this.l={},this.L={},this.s={},this.v={},this.M=this.u=this.ga=!0,this.I=Promise.resolve(),this.fa="",this.D={},this.locateFile=e&&e.locateFile||t0,"object"==typeof window)var t=window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/";else{if("undefined"==typeof location)throw Error("solutions can only be loaded on a web page or in a web worker");t=location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/"}if(this.ha=t,e.options)for(var n=(t=o(Object.keys(e.options))).next();!n.done;n=t.next()){n=n.value;var r=e.options[n].default;void 0!==r&&(this.l[n]="function"==typeof r?r():r)}}function t3(e){var t,n,r,i,a,o,l,u,c,p,d;return I(function(f){switch(f.h){case 1:return e.ga?(t=void 0===e.h.files?[]:"function"==typeof e.h.files?e.h.files(e.l):e.h.files,y(f,I(function(e){switch(e.h){case 1:return e.s=2,y(e,WebAssembly.instantiate(tZ),4);case 4:e.h=3,e.s=0;break;case 2:return e.s=0,e.l=null,e.return(!1);case 3:return e.return(!0)}}),2)):f.return();case 2:if(n=f.i,"object"==typeof window)return t1("createMediapipeSolutionsWasm",{locateFile:e.locateFile}),t1("createMediapipeSolutionsPackedAssets",{locateFile:e.locateFile}),o=t.filter(function(e){return void 0!==e.data}),l=t.filter(function(e){return void 0===e.data}),u=Promise.all(o.map(function(t){var n=t4(e,t.url);if(void 0!==t.path){var r=t.path;n=n.then(function(t){return e.overrideFile(r,t),Promise.resolve(t)})}return n})),c=Promise.all(l.map(function(t){return void 0===t.simd||t.simd&&n||!t.simd&&!n?function(e){var t=document.createElement("script");return t.setAttribute("src",e),t.setAttribute("crossorigin","anonymous"),new Promise(function(e){t.addEventListener("load",function(){e()},!1),t.addEventListener("error",function(){e()},!1),document.body.appendChild(t)})}(e.locateFile(t.url,e.ha)):Promise.resolve()})).then(function(){var t,n,r;return I(function(i){if(1==i.h)return t=window.createMediapipeSolutionsWasm,n=window.createMediapipeSolutionsPackedAssets,r=e,y(i,t(n),2);r.i=i.i,i.h=0})}),p=I(function(t){return e.h.graph&&e.h.graph.url?t=y(t,t4(e,e.h.graph.url),0):(t.h=0,t=void 0),t}),y(f,Promise.all([c,u,p]),7);if("function"!=typeof importScripts)throw Error("solutions can only be loaded on a web page or in a web worker");return r=t.filter(function(e){return void 0===e.simd||e.simd&&n||!e.simd&&!n}).map(function(t){return e.locateFile(t.url,e.ha)}),importScripts.apply(null,s(r)),i=e,y(f,createMediapipeSolutionsWasm(Module),6);case 6:i.i=f.i,e.m=new OffscreenCanvas(1,1),e.i.canvas=e.m,a=e.i.GL.createContext(e.m,{antialias:!1,alpha:!1,va:"undefined"!=typeof WebGL2RenderingContext?2:1}),e.i.GL.makeContextCurrent(a),f.h=4;break;case 7:if(e.m=document.createElement("canvas"),!(d=e.m.getContext("webgl2",{}))&&!(d=e.m.getContext("webgl",{})))return alert("Failed to create WebGL canvas context when passing video frame."),f.return();e.K=d,e.i.canvas=e.m,e.i.createContext(e.m,!0,!0,{});case 4:e.j=new e.i.SolutionWasm,e.ga=!1,f.h=0}})}function t4(e,t){var n;
13return I(function(r){return t in e.L?r.return(e.L[t]):(n=fetch(e.locateFile(t,"")).then(function(e){return e.arrayBuffer()}),e.L[t]=n,r.return(n))})}function t6(e,t,n){var r,i,a,s,l,u,c,p,d,f,h,g,b;return I(function(m){switch(m.h){case 1:if(!n)return m.return(t);for(r={},i=0,s=(a=o(Object.keys(n))).next();!s.done;s=a.next())"string"!=typeof(l=n[s.value])&&"texture"===l.type&&void 0!==t[l.stream]&&++i;1<i&&(e.M=!1),s=(u=o(Object.keys(n))).next();case 2:if(s.done){m.h=4;break}if("string"==typeof(p=n[c=s.value]))return g=r,b=c,y(m,function(e,t,n){var r;return I(function(i){return"number"==typeof n||n instanceof Uint8Array||n instanceof e.i.Uint8BlobList?i.return(n):n instanceof e.i.Texture2dDataOut?((r=e.v[t])||(r=new tY(e.i,e.K),e.v[t]=r),i.return(tQ(r,n,e.M))):i.return(void 0)})}(e,c,t[p]),14);if(d=t[p.stream],"detection_list"===p.type){if(d){for(var S=d.getRectList(),v=d.getLandmarksList(),O=d.getClassificationsList(),x=[],N=0;N<S.size();++N){var k=tV(S.get(N)),T=void 0;T=void 0===T?0:T,k={la:{sa:e0(k,1),ta:e0(k,2),height:e0(k,3),width:e0(k,4),rotation:e0(k,5,0),pa:eZ(eG(k,6),T)},ea:tX(v.get(N)),ba:tq(t$(O.get(N)))},x.push(k)}S=x}else S=[];r[c]=S,m.h=7;break}if("proto_list"===p.type){if(d){for(S=Array(d.size()),v=0;v<d.size();v++)S[v]=d.get(v);d.delete()}else S=[];r[c]=S,m.h=7;break}if(void 0===d){m.h=3;break}if("float_list"===p.type||"proto"===p.type){r[c]=d,m.h=7;break}if("texture"!==p.type)throw Error("Unknown output config type: '"+p.type+"'");return(f=e.v[c])||(f=new tY(e.i,e.K),e.v[c]=f),y(m,tQ(f,d,e.M),13);case 13:h=m.i,r[c]=h;case 7:p.transform&&r[c]&&(r[c]=p.transform(r[c])),m.h=3;break;case 14:g[b]=m.i;case 3:s=u.next(),m.h=2;break;case 4:return m.return(r)}})}function t5(e,t){for(var n=t.name||"$",r=[].concat(s(t.wants)),i=new e.i.StringList,a=o(t.wants),l=a.next();!l.done;l=a.next())i.push_back(l.value);a=e.i.PacketListener.implement({onResults:function(i){for(var a={},o=0;o<t.wants.length;++o)a[r[o]]=i.get(o);var s=e.listeners[n];s&&(e.I=t6(e,a,t.outs).then(function(n){n=s(n);for(var i=0;i<t.wants.length;++i){var o=a[r[i]];"object"==typeof o&&o.hasOwnProperty&&o.hasOwnProperty("delete")&&o.delete()}n&&(e.I=n)}))}}),e.j.attachMultiListener(i,a),i.delete()}function t8(e){switch(void 0===e&&(e=0),e){case 1:return"pose_landmark_full.tflite";case 2:return"pose_landmark_heavy.tflite";default:return"pose_landmark_lite.tflite"}}function t7(e){var t=this;e=e||{},this.h=new t2({locateFile:e.locateFile,files:function(e){return[{url:"pose_solution_packed_assets_loader.js"},{simd:!1,url:"pose_solution_wasm_bin.js"},{simd:!0,url:"pose_solution_simd_wasm_bin.js"},{data:!0,url:t8(e.modelComplexity)}]},graph:{url:"pose_web.binarypb"},listeners:[{wants:["pose_landmarks","world_landmarks","segmentation_mask","image_transformed"],outs:{image:{type:"texture",stream:"image_transformed"},poseLandmarks:{type:"proto",stream:"pose_landmarks",transform:tX},poseWorldLandmarks:{type:"proto",stream:"world_landmarks",transform:tX},segmentationMask:{type:"texture",stream:"segmentation_mask"}}}],inputs:{image:{type:"video",stream:"input_frames_gpu"}},options:{useCpuInference:{type:0,graphOptionXref:{calculatorType:"InferenceCalculator",fieldName:"use_cpu_inference"},default:"object"==typeof window&&void 0!==window.navigator&&("iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)},selfieMode:{type:0,graphOptionXref:{calculatorType:"GlScalerCalculator",calculatorIndex:1,fieldName:"flip_horizontal"}},modelComplexity:{type:1,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorModelComplexity",fieldName:"int_value"},onChange:function(e){var n,r,i;return I(function(a){return 1==a.h?(r="third_party/mediapipe/modules/pose_landmark/"+(n=t8(e)),y(a,t4(t.h,n),2)):(i=a.i,t.h.overrideFile(r,i),a.return(!0))})}},smoothLandmarks:{type:0,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorSmoothLandmarks",fieldName:"bool_value"}},enableSegmentation:{type:0,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorEnableSegmentation",fieldName:"bool_value"}},smoothSegmentation:{type:0,graphOptionXref:{calculatorType:"ConstantSidePacketCalculator",calculatorName:"ConstantSidePacketCalculatorSmoothSegmentation",fieldName:"bool_value"}},minDetectionConfidence:{type:1,graphOptionXref:{calculatorType:"TensorsToDetectionsCalculator",calculatorName:"poselandmarkgpu__posedetectiongpu__TensorsToDetectionsCalculator",fieldName:"min_score_thresh"}},minTrackingConfidence:{type:1,graphOptionXref:{calculatorType:"ThresholdingCalculator",calculatorName:"poselandmarkgpu__poselandmarkbyroigpu__tensorstoposelandmarksandsegmentation__ThresholdingCalculator",fieldName:"threshold"}}}})}(u=t2.prototype).close=function(){return this.j&&this.j.delete(),Promise.resolve()},u.reset=function(){var e=this;return I(function(t){e.j&&(e.j.reset(),e.s={},e.v={}),t.h=0})},u.setOptions=function(e,t){var n=this;if(t=t||this.h.options){for(var r=[],i=[],a={},s=o(Object.keys(e)),l=s.next();!l.done;a={X:a.X,Y:a.Y},l=s.next())if(!((l=l.value)in this.l)||this.l[l]!==e[l]){this.l[l]=e[l];var u=t[l];void 0!==u&&(u.onChange&&(a.X=u.onChange,a.Y=e[l],r.push(function(e){return function(){return I(function(t){if(1==t.h)return y(t,e.X(e.Y),2);!0===t.i&&(n.u=!0),t.h=0})}}(a))),u.graphOptionXref&&(l=Object.assign({},{calculatorName:"",calculatorIndex:0},u.graphOptionXref,{valueNumber:1===u.type?e[l]:0,valueBoolean:0===u.type&&e[l],valueString:2===u.type?e[l]:""}),i.push(l)))}0===r.length&&0===i.length||(this.u=!0,this.H=(void 0===this.H?[]:this.H).concat(i),this.F=(void 0===this.F?[]:this.F).concat(r))}},u.initialize=function(){var e=this;return I(function(t){return 1==t.h?y(t,t3(e),2):3!=t.h?y(t,function(e){var t,n,r,i,a,s,l;return I(function(u){if(1==u.h)return e.h.graph&&e.h.graph.url&&e.fa===e.h.graph.url?u.return():(e.u=!0,e.h.graph&&e.h.graph.url?(e.fa=e.h.graph.url,y(u,t4(e,e.h.graph.url),3)):void(u.h=2));for(2!=u.h&&(t=u.i,e.j.loadGraph(t)),r=(n=o(Object.keys(e.D))).next();!r.done;r=n.next())i=r.value,e.j.overrideFile(i,e.D[i]);if(e.D={},e.h.listeners)for(s=(a=o(e.h.listeners)).next();!s.done;s=a.next())t5(e,s.value);l=e.l,e.l={},e.setOptions(l),u.h=0})}(e),3):y(t,function(e){var t,n,r,i,a,s;return I(function(l){switch(l.h){case 1:if(!e.u)return l.return();if(!e.F){l.h=2;break}n=(t=o(e.F)).next();case 3:if(n.done){l.h=5;break}return y(l,(0,n.value)(),4);case 4:n=t.next(),l.h=3;break;case 5:e.F=void 0;case 2:if(e.H){for(r=new e.i.GraphOptionChangeRequestList,a=(i=o(e.H)).next();!a.done;a=i.next())s=a.value,r.push_back(s);e.j.changeOptions(r),r.delete(),e.H=void 0}e.u=!1,l.h=0}})}(e),0)})},u.overrideFile=function(e,t){this.j?this.j.overrideFile(e,t):this.D[e]=t},u.clearOverriddenFiles=function(){this.D={},this.j&&this.j.clearOverriddenFiles()},u.send=function(e,t){var n,r,i,a,s,l,u,c,p,d=this;return I(function(f){switch(f.h){case 1:return d.h.inputs?(n=1e3*(null==t?performance.now():t),y(f,d.I,2)):f.return();case 2:return y(f,d.initialize(),3);case 3:for(r=new d.i.PacketDataList,a=(i=o(Object.keys(e))).next();!a.done;a=i.next())if(s=a.value,l=d.h.inputs[s]){e:{var h=e[s];switch(l.type){case"video":var g=d.s[l.stream];if(g||(g=new tY(d.i,d.K),d.s[l.stream]=g),0===g.m&&(g.m=g.i.createTexture()),"undefined"!=typeof HTMLVideoElement&&h instanceof HTMLVideoElement)var b=h.videoWidth,m=h.videoHeight;else"undefined"!=typeof HTMLImageElement&&h instanceof HTMLImageElement?(b=h.naturalWi
13dth,m=h.naturalHeight):(b=h.width,m=h.height);m={glName:g.m,width:b,height:m},(b=g.h).canvas.width=m.width,b.canvas.height=m.height,b.activeTexture(b.TEXTURE0),g.i.bindTexture2d(g.m),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,h),g.i.bindTexture2d(0),g=m;break e;case"detections":for((g=d.s[l.stream])||(g=new tJ(d.i),d.s[l.stream]=g),g.data||(g.data=new g.h.DetectionListData),g.data.reset(h.length),m=0;m<h.length;++m){b=h[m];var S=g.data,v=S.setBoundingBox,O=m,x=b.la,I=new tz;if(eQ(I,1,x.sa),eQ(I,2,x.ta),eQ(I,3,x.height),eQ(I,4,x.width),eQ(I,5,x.rotation),eV(I,6,x.pa),x=I.l(),v.call(S,O,x),b.ea)for(S=0;S<b.ea.length;++S){I=b.ea[S],O=(v=g.data).addNormalizedLandmark,x=m,I=Object.assign({},I,{visibility:I.visibility?I.visibility:0});var N=new tU;eQ(N,1,I.x),eQ(N,2,I.y),eQ(N,3,I.z),I.visibility&&eQ(N,4,I.visibility),I=N.l(),O.call(v,x,I)}if(b.ba)for(S=0;S<b.ba.length;++S)O=(v=g.data).addClassification,x=m,I=b.ba[S],eQ(N=new tD,2,I.qa),I.index&&eV(N,1,I.index),I.label&&eV(N,3,I.label),I.displayName&&eV(N,4,I.displayName),I=N.l(),O.call(v,x,I)}g=g.data;break e;default:g={}}}switch(u=g,c=l.stream,l.type){case"video":r.pushTexture2d(Object.assign({},u,{stream:c,timestamp:n}));break;case"detections":(p=u).stream=c,p.timestamp=n,r.pushDetectionList(p);break;default:throw Error("Unknown input config type: '"+l.type+"'")}}return d.j.send(r),y(f,d.I,4);case 4:r.delete(),f.h=0}})},u.onResults=function(e,t){this.listeners[t||"$"]=e},T("Solution",t2),T("OptionType",{BOOL:0,NUMBER:1,ua:2,0:"BOOL",1:"NUMBER",2:"STRING"}),(u=t7.prototype).reset=function(){this.h.reset()},u.close=function(){return this.h.close(),Promise.resolve()},u.onResults=function(e){this.h.onResults(e)},u.initialize=function(){var e=this;return I(function(t){return y(t,e.h.initialize(),0)})},u.send=function(e,t){var n=this;return I(function(r){return y(r,n.h.send(e,t),0)})},u.setOptions=function(e){this.h.setOptions(e)},T("Pose",t7),T("POSE_CONNECTIONS",[[0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]]),T("POSE_LANDMARKS",{NOSE:0,LEFT_EYE_INNER:1,LEFT_EYE:2,LEFT_EYE_OUTER:3,RIGHT_EYE_INNER:4,RIGHT_EYE:5,RIGHT_EYE_OUTER:6,LEFT_EAR:7,RIGHT_EAR:8,LEFT_RIGHT:9,RIGHT_LEFT:10,LEFT_SHOULDER:11,RIGHT_SHOULDER:12,LEFT_ELBOW:13,RIGHT_ELBOW:14,LEFT_WRIST:15,RIGHT_WRIST:16,LEFT_PINKY:17,RIGHT_PINKY:18,LEFT_INDEX:19,RIGHT_INDEX:20,LEFT_THUMB:21,RIGHT_THUMB:22,LEFT_HIP:23,RIGHT_HIP:24,LEFT_KNEE:25,RIGHT_KNEE:26,LEFT_ANKLE:27,RIGHT_ANKLE:28,LEFT_HEEL:29,RIGHT_HEEL:30,LEFT_FOOT_INDEX:31,RIGHT_FOOT_INDEX:32}),T("POSE_LANDMARKS_LEFT",{LEFT_EYE_INNER:1,LEFT_EYE:2,LEFT_EYE_OUTER:3,LEFT_EAR:7,LEFT_RIGHT:9,LEFT_SHOULDER:11,LEFT_ELBOW:13,LEFT_WRIST:15,LEFT_PINKY:17,LEFT_INDEX:19,LEFT_THUMB:21,LEFT_HIP:23,LEFT_KNEE:25,LEFT_ANKLE:27,LEFT_HEEL:29,LEFT_FOOT_INDEX:31}),T("POSE_LANDMARKS_RIGHT",{RIGHT_EYE_INNER:4,RIGHT_EYE:5,RIGHT_EYE_OUTER:6,RIGHT_EAR:8,RIGHT_LEFT:10,RIGHT_SHOULDER:12,RIGHT_ELBOW:14,RIGHT_WRIST:16,RIGHT_PINKY:18,RIGHT_INDEX:20,RIGHT_THUMB:22,RIGHT_HIP:24,RIGHT_KNEE:26,RIGHT_ANKLE:28,RIGHT_HEEL:30,RIGHT_FOOT_INDEX:32}),T("POSE_LANDMARKS_NEUTRAL",{NOSE:0}),T("VERSION","0.5.1675469404")}).call(this)}).call(this,n(114))},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;t.f=i&&!r.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){"use strict";var r=n(298),i=n(195);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},function(e,t,n){"use strict";var r=n(103),i=n(46),a=n(274),o=e.exports=i["__core-js_shared__"]||a("__core-js_shared__",{});(o.versions||(o.versions=[])).push({version:"3.41.0",mode:r?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var r=n(46),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){"use strict";var r=n(43),i=0,a=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},function(e,t,n){"use strict";var r=n(43),i=n(48),a=n(273),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},function(e,t,n){"use strict";var r=n(97),i=n(278),a=n(125),o=function(e){return function(t,n,o){var s=r(t),l=a(s);if(0===l)return!e&&-1;var u,c=i(o,l);if(e&&n!=n){for(;l>c;)if((u=s[c++])!==u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){"use strict";var r=n(279),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},function(e,t,n){"use strict";var r=n(548);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
13ing","toString","valueOf"]},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(41),i=n(48),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n===c||n!==u&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){"use strict";var r={};r[n(49)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(192),i=Function.prototype,a=i.apply,o=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},function(e,t,n){"use strict";var r=n(49),i=n(158),a=n(87).f,o=r("unscopables"),s=Array.prototype;void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,n){"use strict";var r=n(41);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},function(e,t,n){"use strict";var r=n(218),i=n(212),a=n(194),o=n(200),s=n(49)("iterator");e.exports=function(e){if(!a(e))return i(e,s)||i(e,"@@iterator")||o[r(e)]}},function(e,t,n){"use strict";var r=n(65),i=n(48),a=n(116),o=n(215),s=n(585),l=o("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=a(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},function(e,t,n){"use strict";var r=n(586),i=n(66),a=n(142),o=n(587);
vendor: 13,034 bytes, line 13
13e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return a(n),o(r),i(n)&&(t?e(n,r):n.__proto__=r),n}}():void 0)},function(e,t,n){"use strict";var r=n(198),i=n(58),a=n(69),o=n(154),s=n(319),l=n(125),u=n(143),c=n(320),p=n(287),d=n(318),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},g=h.prototype;e.exports=function(e,t,n){var b,m,y,S,v,O,x,I=n&&n.that,N=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),j=r(t,I),F=function(e){return b&&d(b,"normal",e),new h(!0,e)},_=function(e){return N?(a(e),w?j(e[0],e[1],F):j(e[0],e[1])):w?j(e,F):j(e)};if(k)b=e.iterator;else if(T)b=e;else{if(!(m=p(e)))throw new f(o(e)+" is not iterable");if(s(m)){for(y=0,S=l(e);S>y;y++)if((v=_(e[y]))&&u(g,v))return v;return new h(!1)}b=c(e,m)}for(O=k?e.next:b.next;!(x=i(O,b)).done;){try{v=_(x.value)}catch(e){d(b,"throw",e)}if("object"==typeof v&&v&&u(g,v))return v}return new h(!1)}},function(e,t,n){"use strict";e.exports="NODE"===n(328)},function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(58),i=n(43),a=n(88),o=n(334),s=n(623),l=n(155),u=n(158),c=n(157).get,p=n(624),d=n(625),f=l("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,b=i("".charAt),m=i("".indexOf),y=i("".replace),S=i("".slice),v=function(){var e=/a/,t=/b*/g;return r(h,e,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),O=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(v||x||O||p||d)&&(g=function(e){var t,n,i,s,l,p,d,I=this,N=c(I),k=a(e),T=N.raw;if(T)return T.lastIndex=I.lastIndex,t=r(g,T,k),I.lastIndex=T.lastIndex,t;var w=N.groups,j=O&&I.sticky,F=r(o,I),_=I.source,E=0,R=k;if(j&&(-1===m(F=y(F,"y",""),"g")&&(F+="g"),R=S(k,I.lastIndex),I.lastIndex>0&&(!I.multiline||I.multiline&&"\n"!==b(k,I.lastIndex-1))&&(_="(?: "+_+")",R=" "+R,E++),n=RegExp("^(?:"+_+")",F)),x&&(n=RegExp("^"+_+"$(?!\\s)",F)),v&&(i=I.lastIndex),s=r(h,j?n:I,R),j?s?(s.input=S(s.input,E),s[0]=S(s[0],E),s.index=I.lastIndex,I.lastIndex+=s[0].length):I.lastIndex=0:v&&s&&(I.lastIndex=I.global?s.index+s[0].length:i),x&&s&&s.length>1&&r(f,s[0],n,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)}),s&&w)for(s.groups=p=u(null),l=0;l<w.length;l++)p[(d=w[l])[0]]=s[d[1]];return s}),e.exports=g},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=r;var n=null;try{n=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function i(e){return!0===(e&&e.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=i;var a={},o={};function s(e,t){var n,r,i;return t?(i=0<=(e>>>=0)&&e<256)&&(r=o[e])?r:(n=u(e,(0|e)<0?-1:0,!0),i&&(o[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(r=a[e])?r:(n=u(e,e<0?-1:0,!1),i&&(a[e]=n),n)}function l(e,t){if(isNaN(e))return t?y:m;if(t){if(e<0)return y;if(e>=h)return I}else{if(e<=-g)return N;if(e+1>=g)return x}return e<0?l(-e,t).neg():u(e%f|0,e/f|0,t)}function u(e,t,n){return new r(e,t,n)}r.fromInt=s,r.fromNumber=l,r.fromBits=u;var c=Math.pow;function p(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return m;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");if((r=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return p(e.substring(1),t,n).neg();for(var r,i=l(c(n,8)),a=m,o=0;o<e.length;o+=8){var s=Math.min(8,e.length-o),u=parseInt(e.substring(o,o+s),n);if(s<8){var d=l(c(n,s));a=a.mul(d).add(l(u))}else a=(a=a.mul(i)).add(l(u))}return a.unsigned=t,a}function d(e,t){return"number"==typeof e?l(e,t):"string"==typeof e?p(e,t):u(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=p,r.fromValue=d;var f=0x100000000,h=0xffffffffffffffff,g=0xffffffffffffffff/2,b=s(0x1000000),m=s(0);r.ZERO=m;var y=s(0,!0);r.UZERO=y;var S=s(1);r.ONE=S;var v=s(1,!0);r.UONE=v;var O=s(-1);r.NEG_ONE=O;var x=u(-1,0x7fffffff,!1);r.MAX_VALUE=x;var I=u(-1,-1,!0);r.MAX_UNSIGNED_VALUE=I;var N=u(0,-0x80000000,!1);r.MIN_VALUE=N;var k=r.prototype;k.toInt=function(){return this.unsigned?this.low>>>0:this.low},k.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},k.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(N)){var t=l(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=l(c(e,6),this.unsigned),a=this,o="";;){var s=a.div(i),u=(a.sub(s.mul(i)).toInt()>>>0).toString(e);if((a=s).isZero())return u+o;for(;u.length<6;)u="0"+u;o=""+u+o}},k.getHighBits=function(){return this.high},k.getHighBitsUnsigned=function(){return this.high>>>0},k.getLowBits=function(){return this.low},k.getLowBitsUnsigned=function(){return this.low>>>0},k.getNumBitsAbs=function(){if(this.isNegative())return this.eq(N)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},k.isZero=function(){return 0===this.high&&0===this.low},k.eqz=k.isZero,k.isNegative=function(){return!this.unsigned&&this.high<0},k.isPositive=function(){return this.unsigned||this.high>=0},k.isOdd=function(){return 1==(1&this.low)},k.isEven=function(){return 0==(1&this.low)},k.equals=function(e){return i(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},k.eq=k.equals,k.notEquals=function(e){return!this.eq(e)},k.neq=k.notEquals,k.ne=k.notEquals,k.lessThan=function(e){return 0>this.comp(e)},k.lt=k.lessThan,k.lessThanOrEqual=function(e){return 0>=this.comp(e)},k.lte=k.lessThanOrEqual,k.le=k.lessThanOrEqual,k.greaterThan=function(e){return this.comp(e)>0},k.gt=k.greaterThan,k.greaterThanOrEqual=function(e){return this.comp(e)>=0},k.gte=k.greaterThanOrEqual,k.ge=k.greaterThanOrEqual,k.compare=function(e){if(i(e)||(e=d(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},k.comp=k.compare,k.negate=function(){return!this.unsigned&&this.eq(N)?N:this.not().add(S)},k.neg=k.negate,k.add=function(e){i(e)||(e=d(e));var t,n,r,a=this.high>>>16,o=65535&this.high,s=this.low>>>16,l=65535&this.low,c=e.high>>>16,p=65535&e.high,f=e.low>>>16,h=0;return r=0+((t=0+((n=0+(l+(65535&e.low)))>>>16)+(s+f))>>>16),h+=(r+=o+p)>>>16,h+=a+c,u((t&=65535)<<16|(n&=65535),(h&=65535)<<16|(r&=65535),this.unsigned)},k.subtract=function(e){return i(e)||(e=d(e)),this.add(e.neg())},k.sub=k.subtract,k.multiply=function(e){if(this.isZero())return m;if(i(e)||(e=d(e)),n)return u(n.mul(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned);if(e.isZero())return m;if(this.eq(N))return e.isOdd()?N:m;if(e.eq(N))return this.isOdd()?N:m;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(b)&&e.lt(b))return l(this.toNumber()*e.toNumber(),this.unsigned);var t,r,a,o=this.high>>>16,s=65535&this.high,c=this.low>>>16,p=65535&this.low,f=e.high>>>16,h=65535&e.high,g=e.low>>>16,y=65535&e.low,S=0;return a=0+((t=0+((r=0+p*y)>>>16)+c*y)>>>16),t&=65535,a+=(t+=p*g)>>>16,S+=(a+=s*y)>>>16,a&=65535,S+=(a+=c*g)>>>16,a&=65535,S+=(a+=p*h)>>>16,S+=o*y+s*g+c*h+p*f,u((t&=65535)<<16|(r&=65535),(S&=65535)<<16|(a&=65535),this.unsigned)},k.mul=k.multiply,k.divide=function(e){if(i(e)||(e=d(e)),e.isZero())throw Error("division by zero");if(n)return this.unsigned||-0x80000000!==this.high||-1!==e.low||-1!==e.high?u((this.unsigned?n.div_u:n.div_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?y:m;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return y;if(e.gt(this.shru(1)))return v;a=y}else{if(this.eq(N))return e.eq(S)||e.eq(O)?N:e.eq(N)?S:(t=this.shr(1).div(e).shl(1)).eq(m)?e.isNegative()?S:O:(r=this.sub(e.mul(t)),a=t.add(r.div(e)));if(e.eq(N))return this.unsigned?y:m;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=m}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var t,r,a,o=Math.ceil(Math.log(t)/Math.LN2),s=o<=48?1:c(2,o-48),p=l(t),f=p.mul(e);f.isNegative()||f.gt(r);)f=(p=l(t-=s,this.unsigned)).mul(e);p.isZero()&&(p=S),a=a.add(p),r=r.sub(f)}return a},k.div=k.divide,k.modulo=function(e){return i(e)||(e=d(e)),n?u((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},k.mod=k.modulo,k.rem=k.modulo,k.not=function(){return u(~this.low,~this.high,this.unsigned)},k.and=function(e){return i(e)||(e=d(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},k.or=function(e){return i(e)||(e=d(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},k.xor=function(e){return i(e)||(e=d(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},k.shiftLeft=function(e){return i(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):u(0,this.low<<e-32,this.unsigned)},k.shl=k.shiftLeft,k.shiftRight=function(e){return i(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},k.shr=k.shiftRight,k.shiftRightUnsigned=function(e){if(i(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?u(this.low>>>e|t<<32-e,t>>>e,this.unsigned):u(32===e?t:t>>>e-32,0,this.unsigned)},k.shru=k.shiftRightUnsigned,k.shr_u=k.shiftRightUnsigned,k.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},k.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},k.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},k.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},k.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},function(e,t,n){(function(e){(function(){"use strict";function t(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},r=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof e&&e];for(var n=0;n<t.length;++n){var r=t[n];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function i(e,t){if(t)e:{var i=r;e=e.split(".");for(var a=0;a<e.length-1;a++){var o=e[a];if(!(o in i))break e;i=i[o]}(t=t(a=i[e=e[e.length-1]]))!=a&&null!=t&&n(i,e,{configurable:!0,writable:!0,value:t})}}function a(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}var o="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};function s(e){return e||Array.prototype.fill}i("Object.assign",function(e){return e||o}),i("Array.prototype.fill",function(e){return e||function(e,t,n){var r=this.length||0;for(0>t&&(t=Math.max(0,r+t)),(null==n||n>
13r)&&(n=r),0>(n=Number(n))&&(n=Math.max(0,r+n)),t=Number(t||0);t<n;t++)this[t]=e;return this}}),i("Int8Array.prototype.fill",s),i("Uint8Array.prototype.fill",s),i("Uint8ClampedArray.prototype.fill",s),i("Int16Array.prototype.fill",s),i("Uint16Array.prototype.fill",s),i("Int32Array.prototype.fill",s),i("Uint32Array.prototype.fill",s),i("Float32Array.prototype.fill",s),i("Float64Array.prototype.fill",s);var l=this||self;function u(e,t){e=e.split(".");var n,r=l;for((e[0]in r)||void 0===r.execScript||r.execScript("var "+e[0]);e.length&&(n=e.shift());)e.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}var c={color:"white",lineWidth:4,radius:6,visibilityMin:.5};function p(e){return Object.assign({},c,{fillColor:(e=e||{}).color},e)}function d(e,t){return e instanceof Function?e(t):e}function f(e,t,n){return Math.max(Math.min(t,n),Math.min(Math.max(t,n),e))}u("clamp",f),u("drawLandmarks",function(e,t,n){if(t){n=p(n),e.save();for(var r=e.canvas,i=0,o=(t=a(t)).next();!o.done;o=t.next())if(void 0!==(o=o.value)&&(void 0===o.visibility||o.visibility>n.visibilityMin)){e.fillStyle=d(n.fillColor,{index:i,from:o}),e.strokeStyle=d(n.color,{index:i,from:o}),e.lineWidth=d(n.lineWidth,{index:i,from:o});var s=new Path2D;s.arc(o.x*r.width,o.y*r.height,d(n.radius,{index:i,from:o}),0,2*Math.PI),e.fill(s),e.stroke(s),++i}e.restore()}}),u("drawConnectors",function(e,t,n,r){if(t&&n){r=p(r),e.save();for(var i=e.canvas,o=0,s=(n=a(n)).next();!s.done;s=n.next()){var l=s.value;e.beginPath(),s=t[l[0]],l=t[l[1]],s&&l&&(void 0===s.visibility||s.visibility>r.visibilityMin)&&(void 0===l.visibility||l.visibility>r.visibilityMin)&&(e.strokeStyle=d(r.color,{index:o,from:s,to:l}),e.lineWidth=d(r.lineWidth,{index:o,from:s,to:l}),e.moveTo(s.x*i.width,s.y*i.height),e.lineTo(l.x*i.width,l.y*i.height)),++o,e.stroke()}e.restore()}}),u("drawRectangle",function(e,t,n){n=p(n),e.save();var r=e.canvas;e.beginPath(),e.lineWidth=d(n.lineWidth,{}),e.strokeStyle=d(n.color,{}),e.fillStyle=d(n.fillColor,{}),e.translate(t.xCenter*r.width,t.yCenter*r.height),e.rotate(t.rotation*Math.PI/180),e.rect(-t.width/2*r.width,-t.height/2*r.height,t.width*r.width,t.height*r.height),e.translate(-t.xCenter*r.width,-t.yCenter*r.height),e.stroke(),e.fill(),e.restore()}),u("lerp",function(e,t,n,r,i){return f(r*(1-(e-t)/(n-t))+i*(1-(n-e)/(n-t)),r,i)})}).call(this)}).call(this,n(114))},function(e,t,n){"use strict";var r=n(43),i=n(41),a=n(115),o=Object,s=r("".split);e.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===a(e)?s(e,""):o(e)}:o},function(e,t,n){"use strict";var r=n(58),i=n(66),a=n(195),o=n(212),s=n(546),l=n(49),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),!i(n=r(l,e,t))||a(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){"use strict";e.exports=n(153)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(57),i=n(41),a=n(213);e.exports=!r&&!i(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(57),i=n(41);e.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},function(e,t,n){"use strict";var r=n(43),i=n(41),a=n(48),o=n(65),s=n(57),l=n(214).CONFIGURABLE,u=n(276),c=n(157),p=c.enforce,d=c.get,f=String,h=Object.defineProperty,g=r("".slice),b=r("".replace),m=r([].join),y=s&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),S=String(String).split("String"),v=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+b(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=p(e);return o(r,"source")||(r.source=m(S,"string"==typeof t?t:"")),e};Function.prototype.toString=v(function(){return a(this)&&d(this).source||u(this)},"toString")},function(e,t,n){"use strict";var r=n(65),i=n(304),a=n(152),o=n(87);e.exports=function(e,t,n){for(var s=i(t),l=o.f,u=a.f,c=0;c<s.length;c++){var p=s[c];r(e,p)||n&&r(n,p)||l(e,p,u(t,p))}}},function(e,t,n){"use strict";var r=n(98),i=n(43),a=n(217),o=n(281),s=n(69),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},function(e,t,n){"use strict";var r=n(43),i=n(65),a=n(97),o=n(277).indexOf,s=n(216),l=r([].push);e.exports=function(e,t){var n,r=a(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);for(;t.length>u;
13)i(r,n=t[u++])&&(~o(c,n)||l(c,n));return c}},function(e,t,n){"use strict";var r=n(279),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,0x1fffffffffffff):0}},function(e,t,n){"use strict";var r=n(57),i=n(301),a=n(87),o=n(69),s=n(97),l=n(219);t.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),i=l(t),u=i.length,c=0;u>c;)a.f(e,n=i[c++],r[n]);return e}},function(e,t,n){"use strict";e.exports=n(98)("document","documentElement")},function(e,t,n){"use strict";t.f=n(49)},function(e,t,n){"use strict";var r=n(311),i=n(65),a=n(309),o=n(87).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},function(e,t,n){"use strict";e.exports=n(46)},function(e,t,n){"use strict";var r=n(115),i=n(43);e.exports=function(e){if("Function"===r(e))return i(e)}},function(e,t,n){"use strict";var r=n(551);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";e.exports=n(153)&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";var r=n(223),i=n(154),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a constructor")}},function(e,t,n){var r=n(224).default,i=n(569);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(221).forEach;e.exports=n(286)("forEach")?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(58),i=n(69),a=n(212);e.exports=function(e,t,n){var o,s;i(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){s=!0,o=e}if("throw"===t)throw n;if(s)throw o;return i(o),n}},function(e,t,n){"use strict";var r=n(49),i=n(200),a=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[a]===e)}},function(e,t,n){"use strict";var r=n(58),i=n(102),a=n(69),o=n(154),s=n(287),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return a(r(n,e));throw new l(o(e)+" is not iterable")}},function(e,t,n){"use strict";var r=n(49)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(97),i=n(285),a=n(200),o=n(157),s=n(87).f,l=n(323),u=n(325),c=n(103),p=n(57),d=o.set,f=o.getterFor("Array Iterator");e.exports=l(Array,"Array",function(e,t){d(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var h=a.Arguments=a.Array;
vendor: 3,396 bytes, line 13
13if(i("keys"),i("values"),i("entries"),!c&&p&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(37),i=n(58),a=n(103),o=n(214),s=n(48),l=n(584),u=n(288),c=n(289),p=n(197),d=n(156),f=n(104),h=n(49),g=n(200),b=n(324),m=o.PROPER,y=o.CONFIGURABLE,S=b.IteratorPrototype,v=b.BUGGY_SAFARI_ITERATORS,O=h("iterator"),x=function(){return this};e.exports=function(e,t,n,o,h,b,I){l(n,t,o);var N,k,T,w=function(e){if(e===h&&R)return R;if(!v&&e&&e in _)return _[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",F=!1,_=e.prototype,E=_[O]||_["@@iterator"]||h&&_[h],R=!v&&E||w(h),D="Array"===t&&_.entries||E;if(D&&(N=u(D.call(new e)))!==Object.prototype&&N.next&&(a||u(N)===S||(c?c(N,S):s(N[O])||f(N,O,x)),p(N,j,!0,!0),a&&(g[j]=x)),m&&"values"===h&&E&&"values"!==E.name&&(!a&&y?d(_,"name","values"):(F=!0,R=function(){return i(E,this)})),h)if(k={values:w("values"),keys:b?R:w("keys"),entries:w("entries")},I)for(T in k)!v&&!F&&T in _||f(_,T,k[T]);else r({target:t,proto:!0,forced:v||F},k);return a&&!I||_[O]===R||f(_,O,R,{name:h}),g[t]=R,k}},function(e,t,n){"use strict";var r,i,a,o=n(41),s=n(48),l=n(66),u=n(158),c=n(288),p=n(104),d=n(49),f=n(103),h=d("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(i=c(c(a)))!==Object.prototype&&(r=i):g=!0),!l(r)||o(function(){var e={};return r[h].call(e)!==e})?r={}:f&&(r=u(r)),s(r[h])||p(r,h,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){"use strict";var r=n(37),i=n(221).map;r({target:"Array",proto:!0,forced:!n(225)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(283),i=n(104),a=n(605);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,n){"use strict";var r=n(46),i=n(124),a=n(115),o=function(e){return i.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},function(e,t,n){"use strict";var r,i,a,o,s=n(46),l=n(284),u=n(198),c=n(48),p=n(65),d=n(41),f=n(308),h=n(159),g=n(213),b=n(611),m=n(330),y=n(291),S=s.setImmediate,v=s.clearImmediate,O=s.process,x=s.Dispatch,I=s.Function,N=s.MessageChannel,k=s.String,T=0,w={};d(function(){r=s.location});var j=function(e){if(p(w,e)){var t=w[e];delete w[e],t()}},F=function(e){return function(){j(e)}},_=function(e){j(e.data)},E=function(e){s.postMessage(k(e),r.protocol+"//"+r.host)};S&&v||(S=function(e){b(arguments.length,1);var t=c(e)?e:I(e),n=h(arguments,1);return w[++T]=function(){l(t,void 0,n)},i(T),T},v=function(e){delete w[e]},y?i=function(e){O.nextTick(F(e))}:x&&x.now?i=function(e){x.now(F(e))}:N&&!m?(o=(a=new N).port2,a.port1.onmessage=_,i=u(o.postMessage,o)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(E)?(i=E,s.addEventListener("message",_,!1)):i="onreadystatechange"in g("script")?function(e){f.appendChild(g("script")).onreadystatechange=function(){f.removeChild(this),j(e)}}:function(e){setTimeout(F(e),0)}),e.exports={set:S,clear:v}},function(e,t,n){"use strict";var r=n(124);
13e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},function(e,t,n){"use strict";var r=n(201),i=n(321);e.exports=n(202).CONSTRUCTOR||!i(function(e){r.all(e).then(void 0,function(){})})},function(e,t,n){"use strict";var r=n(37),i=n(293);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r=n(69);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(43),i=n(279),a=n(88),o=n(142),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,p=a(o(t)),d=i(n),f=p.length;return d<0||d>=f?e?"":void 0:(r=l(p,d))<55296||r>56319||d+1===f||(c=l(p,d+1))<56320||c>57343?e?s(p,d):r:e?u(p,d,d+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},function(e,t,n){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(213)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({acos_:function(e){let t={x:Object(a.a)(e,"x","acos")};return r.a.runKernel(i.b,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({acosh_:function(e){let t={x:Object(a.a)(e,"x","acosh")};return r.a.runKernel(i.c,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({asin_:function(e){let t={x:Object(a.a)(e,"x","asin")};return r.a.runKernel(i.j,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({asinh_:function(e){let t={x:Object(a.a)(e,"x","asinh")};return r.a.runKernel(i.k,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({atan_:function(e){let t={x:Object(a.a)(e,"x","atan")};return r.a.runKernel(i.l,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({atanh_:function(e){let t={x:Object(a.a)(e,"x","atanh")};return r.a.runKernel(i.n,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({ceil_:function(e){let t={x:Object(a.a)(e,"x","ceil","float32")};return r.a.runKernel(i.z,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(106);let l=Object(n(4).b)({clipByValue_:function(e,t,n){let l=Object(a.a)(e,"x","clipByValue");if(o.c(t<=n,()=>`Error in clip: min (${t}) must be less than or equal to max (${n}).`),t===n)return Object(s.a)(l.shape,t,l.dtype);let u={x:l},c={clipValueMin:t,clipValueMax:n};return r.a.runKernel(i.A,u,c)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(5),i=n(3),a=n(2),o=n(10),s=n(16);let l=Object(n(4).b)({erf_:function(e){let t=Object(a.a)(e,"x","erf");o.c("int32"===t.dtype||"float32"===t.dtype,()=>"Input dtype must be `int32` or `float32`."),"int32"===t.dtype&&(t=Object(s.a)(t,"float32"));let n={x:t};return r.a.runKernel(i.db,n)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
13);var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({expm1_:function(e){let t={x:Object(a.a)(e,"x","expm1")};return r.a.runKernel(i.gb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({isFinite_:function(e){let t={x:Object(a.a)(e,"x","isFinite")};return r.a.runKernel(i.xb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({isInf_:function(e){let t={x:Object(a.a)(e,"x","isInf")};return r.a.runKernel(i.yb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({isNaN_:function(e){let t={x:Object(a.a)(e,"x","isNaN")};return r.a.runKernel(i.zb,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(50),i=n(2),a=n(11),o=n(36),s=n(4),l=n(93),u=n(244);let c=Object(s.b)({logSigmoid_:function(e){let t=Object(i.a)(e,"x","logSigmoid");return Object(r.a)(e=>({value:Object(o.a)(Object(u.a)(Object(o.a)(e))),gradFunc:t=>Object(a.a)(t,Object(l.a)(Object(o.a)(e)))}))(t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(50),i=n(2),a=n(16),o=n(56),s=n(99),l=n(94),u=n(11),c=n(4),p=n(18),d=n(21);let f=Object(c.b)({logSoftmax_:function(e,t=-1){let n=Object(i.a)(e,"logits","logSoftmax");if(-1===t&&(t=n.rank-1),t!==n.rank-1)throw Error(`Log Softmax along a non-last dimension is not yet supported. Logits was rank ${n.rank} and axis was ${t}`);return Object(r.a)((e,n)=>{let r=Object(l.a)(e,t,!0),i=Object(p.a)(e,r),c=Object(p.a)(Object(a.a)(i,"float32"),Object(s.a)(Object(d.a)(Object(o.a)(i),t,!0)));return n([c]),{value:c,gradFunc:(e,n)=>{let[r]=n,i=Object(o.a)(r);return Object(p.a)(e,Object(u.a)(Object(d.a)(e,t,!0),i))}}})(n)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({onesLike_:function(e){let t={x:Object(a.a)(e,"x","onesLike")};return r.a.runKernel(i.jc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({reciprocal_:function(e){let t={x:Object(a.a)(e,"x","reciprocal")};return r.a.runKernel(i.wc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({sign_:function(e){let t={x:Object(a.a)(e,"x","sign")};return r.a.runKernel(i.Nc,t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({softmax_:function(e,t=-1){let n=Object(a.a)(e,"logits","softmax","float32");if(-1===t&&(t=n.rank-1),t!==n.rank-1)throw Error(`Softmax along a non-last dimension is not yet supported. Logits was rank ${n.rank} and dim was ${t}`);let o={logits:n},s={dim:t};return r.a.runKernel(i.Rc,o,s)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({stridedSlice_:function(e,t,n,o,s=0,l=0,u=0,c=0,p=0){let d={x:Object(a.a)(e,"x","stridedSlice","string_or_numeric")},f={begin:t,end:n,strides:o,beginMask:s,endMask:l,ellipsisMask:u,newAxisMask:c,shrinkAxisMask:p};return r.a.runKernel(i.fd,d,f)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),i=n(3),a=n(2);let o=Object(n(4).b)({tan_:function(e){let t={x:Object(a.a)(e,"x","tan","float32")};return r.a.runKernel(i.ld,t)}})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});let r="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:void 0!==e?e:e=>e();function i(){return new Promise(e=>r(()=>e()))}}).call(this,n(656).setImmediate)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(316);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(224).default,i=n(570);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(571);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"Add",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}
13]},{tfOpName:"AddV2",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"AddN",category:"arithmetic",inputs:[{start:0,end:0,name:"tensors",type:"tensors"}]},{tfOpName:"BiasAdd",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0}]},{tfOpName:"Sub",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"RealDiv",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Div",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"DivNoNan",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"FloorDiv",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Mul",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Maximum",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Minimum",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Pow",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"SquaredDifference",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Mod",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"FloorMod",category:"arithmetic",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"Abs",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Acos",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Asin",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Atan",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Atan2",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"y",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Ceil",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"ClipByValue",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"clipValueMin",type:"number"},{start:2,name:"clipValueMax",type:"number"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Complex",category:"basic_math",inputs:[{start:0,name:"real",type:"tensor"},{start:1,name:"imag",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}
13]},{tfOpName:"ComplexAbs",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Cos",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Cosh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Elu",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Exp",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Floor",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Log",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Imag",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"Tout",name:"outputType",type:"dtype",notSupported:!0}]},{tfOpName:"Neg",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Real",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"Tout",name:"outputType",type:"dtype",notSupported:!0}]},{tfOpName:"Prelu",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"alpha",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Relu",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Relu6",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Selu",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Sigmoid",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Sin",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Sinh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Sqrt",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Rsqrt",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Square",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Tan",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Tanh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Sign",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Round",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Expm1",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Log1p",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Reciprocal",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Softplus",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}
13]},{tfOpName:"Asinh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Acosh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Atanh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Erf",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"LeakyRelu",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"alpha",name:"alpha",type:"number",defaultValue:.2},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"IsNan",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"IsFinite",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"IsInf",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"EmptyTensorList",category:"control",inputs:[{start:0,name:"elementShape",type:"shape"},{start:1,name:"maxNumElements",type:"number"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"LoopCond",category:"control",inputs:[{start:0,name:"pred",type:"tensor"}]},{tfOpName:"Switch",category:"control",inputs:[{start:0,name:"data",type:"tensor"},{start:1,name:"pred",type:"tensor"}]},{tfOpName:"Merge",category:"control",inputs:[{start:0,end:0,name:"tensors",type:"tensors"}]},{tfOpName:"Enter",category:"control",inputs:[{start:0,name:"tensor",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"frame_name",name:"frameName",type:"string"},{tfName:"is_constant",name:"isConstant",type:"bool"}]},{tfOpName:"Exit",category:"control",inputs:[{start:0,name:"tensor",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"NextIteration",category:"control",inputs:[{start:0,name:"tensor",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"TensorArrayV3",category:"control",inputs:[{start:0,name:"size",type:"number"}],attrs:[{tfName:"dtype",name:"dtype",type:"dtype"},{tfName:"element_shape",name:"elementShape",type:"shape"},{tfName:"dynamic_size",name:"dynamicSize",type:"bool"},{tfName:"clear_after_read",name:"clearAfterRead",type:"bool"},{tfName:"identical_element_shapes",name:"identicalElementShapes",type:"bool"},{tfName:"tensor_array_name",name:"name",type:"string"}]},{tfOpName:"TensorArrayWriteV3",category:"control",inputs:[{start:0,name:"tensorArrayId",type:"tensor"},{start:1,name:"index",type:"number"},{start:2,name:"tensor",type:"tensor"},{start:3,name:"flowIn",type:"number"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"TensorArrayReadV3",category:"control",inputs:[{start:0,name:"tensorArrayId",type:"tensor"},{start:1,name:"index",type:"number"},{start:2,name:"flowIn",type:"number"}],attrs:[{tfName:"dtype",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"TensorArrayGatherV3",category:"control",inputs:[{start:0,name:"tensorArrayId",type:"tensor"},{start:1,name:"indices",type:"number[]"},{start:2,name:"flowIn",type:"number"}],attrs:[{tfName:"dtype",name:"dtype",type:"dtype"},{tfName:"element_shape",name:"elementShape",type:"shape"}]},{tfOpName:"TensorArrayScatterV3",category:"control",inputs:[{start:0,name:"tensorArrayId",type:"tensor"},{start:1,name:"indices",type:"number[]"},{start:2,name:"tensor",type:"tensor"},{start:3,name:"flowIn",type:"number"}],attrs:[{tfName:"T",name:"dtype",type:"dtype"}]},{tfOpName:"TensorArrayConcatV3",category:"control",inputs:[{start:0,name:"tensorArrayId",type:"tensor"},{start:1,name:"flowIn",type:"number"}],attrs:[{tfName:"dtype",name:"dtype",type:"dtype"},{tfName:"element_shape_except0",name:"elementShapeExcept0",type:"shape",notSupported:!0}
13]},{tfOpName:"TensorArraySplitV3",category:"control",inputs:[{start:0,name:"tensorArrayId",type:"tensor"},{start:1,name:"tensor",type:"tensor"},{start:2,name:"lengths",type:"number[]"},{start:3,name:"flowIn",type:"number"}],attrs:[{tfName:"T",name:"dtype",type:"dtype"}]},{tfOpName:"TensorArraySizeV3",category:"control",inputs:[{start:0,name:"tensorArrayId",type:"tensor"},{start:1,name:"flowIn",type:"number"}]},{tfOpName:"TensorArrayCloseV3",category:"control",inputs:[{start:0,name:"tensorArrayId",type:"tensor"}]},{tfOpName:"StatelessIf",category:"control",inputs:[{start:0,name:"cond",type:"tensor"},{start:1,end:0,name:"args",type:"tensors"}],attrs:[{tfName:"then_branch",name:"thenBranch",type:"func"},{tfName:"else_branch",name:"elseBranch",type:"func"}]},{tfOpName:"If",category:"control",inputs:[{start:0,name:"cond",type:"tensor"},{start:1,end:0,name:"args",type:"tensors"}],attrs:[{tfName:"then_branch",name:"thenBranch",type:"func"},{tfName:"else_branch",name:"elseBranch",type:"func"}]},{tfOpName:"StatelessWhile",category:"control",inputs:[{start:0,end:0,name:"args",type:"tensors"}],attrs:[{tfName:"cond",name:"cond",type:"func"},{tfName:"body",name:"body",type:"func"}]},{tfOpName:"While",category:"control",inputs:[{start:0,end:0,name:"args",type:"tensors"}],attrs:[{tfName:"cond",name:"cond",type:"func"},{tfName:"body",name:"body",type:"func"}]},{tfOpName:"TensorListScatter",category:"control",inputs:[{start:0,name:"tensor",type:"tensor"},{start:1,name:"indices",type:"number[]"},{start:2,name:"elementShape",type:"shape"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListScatterV2",category:"control",inputs:[{start:0,name:"tensor",type:"tensor"},{start:1,name:"indices",type:"number[]"},{start:2,name:"elementShape",type:"shape"},{start:3,name:"numElements",type:"number"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListGather",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"},{start:1,name:"indices",type:"number[]"},{start:2,name:"elementShape",type:"shape"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListGetItem",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"},{start:1,name:"index",type:"number"},{start:2,name:"elementShape",type:"shape"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListSetItem",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"},{start:1,name:"index",type:"number"},{start:2,name:"tensor",type:"tensor"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListReserve",category:"control",inputs:[{start:0,name:"elementShape",type:"shape"},{start:1,name:"numElements",type:"number"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListFromTensor",category:"control",inputs:[{start:0,name:"tensor",type:"tensor"},{start:1,name:"elementShape",type:"shape"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListStack",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"},{start:1,name:"elementShape",type:"shape"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"},{tfName:"num_elements",name:"numElements",type:"dtype"}]},{tfOpName:"TensorListSplit",category:"control",inputs:[{start:0,name:"tensor",type:"tensor"},{start:1,name:"elementShape",type:"shape"},{start:2,name:"lengths",type:"number[]"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListConcat",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"}],attrs:[{tfName:"element_shape",name:"elementShape",type:"shape"},{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListConcatV2",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"}],attrs:[{tfName:"element_shape",name:"elementShape",type:"shape"},{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListPopBack",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"},{start:1,name:"elementShape",type:"shape"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]}
13,{tfOpName:"TensorListPushBack",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"},{start:1,name:"tensor",type:"tensor"}],attrs:[{tfName:"element_dtype",name:"elementDType",type:"dtype"}]},{tfOpName:"TensorListLength",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"}]},{tfOpName:"TensorListResize",category:"control",inputs:[{start:0,name:"tensorListId",type:"tensor"},{start:1,name:"size",type:"number"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"AvgPool",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"MaxPool",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[],notSupported:!0},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"MaxPoolWithArgmax",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"include_batch_in_index",name:"includeBatchInIndex",type:"bool"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"AvgPool3D",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"MaxPool3D",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Conv1D",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"filter",type:"tensor"}],attrs:[{tfName:"stride",name:"stride",type:"number"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",defaultValue:"NWC"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"dilation",name:"dilation",type:"number",defaultValue:1}]},{tfOpName:"Conv2D",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"filter",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"useCudnnOnGpu",name:"useCudnnOnGpu",type:"bool"},{tfName:"data_format",name:"dataFormat",type:"string",defaultValue:"NHWC"},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[]},{tfName:"dilations",name:"dilations",type:"number[]"}]},{tfOpName:"_FusedConv2D",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"filter",type:"tensor"},{start:2,end:0,name:"args",type:"tensors"}],attrs:[{tfName:"num_args",name:"numArgs",type:"number"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[]},{tfName:"use_cudnn_on_gpu",name:"useCudnnOnGpu",type:"bool",defaultValue:!0},{tfName:"data_format",name:"dataFormat",type:"string",defaultValue:"NHWC"},{tfName:"dilations",name:"dilations",type:"number[]",defaultValue:[1,1,1,1]},{tfName:"fused_ops",name:"fusedOps",type:"string[]",defaultValue:[]},{tfName:"epsilon",name:"epsilon",type:"number",defaultValue:1e-4}
vendor: 9,954 bytes, line 13
13,{tfName:"leakyrelu_alpha",name:"leakyreluAlpha",type:"number",defaultValue:.2}]},{tfOpName:"Conv2DBackpropInput",category:"convolution",inputs:[{start:2,name:"x",type:"tensor"},{start:1,name:"filter",type:"tensor"},{start:0,name:"outputShape",type:"number[]"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[]},{tfName:"dilations",name:"dilations",type:"number[]",notSupported:!0}]},{tfOpName:"DepthwiseConv2d",category:"convolution",inputs:[{start:0,name:"input",type:"tensor"},{start:1,name:"filter",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",defaultValue:"NHWC"},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[]},{tfName:"dilations",name:"dilations",type:"number[]"}]},{tfOpName:"DepthwiseConv2dNative",category:"convolution",inputs:[{start:0,name:"input",type:"tensor"},{start:1,name:"filter",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",defaultValue:"NHWC"},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[]},{tfName:"dilations",name:"dilations",type:"number[]"}]},{tfOpName:"FusedDepthwiseConv2dNative",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"filter",type:"tensor"},{start:2,end:0,name:"args",type:"tensors"}],attrs:[{tfName:"num_args",name:"numArgs",type:"number"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",defaultValue:"NHWC"},{tfName:"dilations",name:"dilations",type:"number[]",defaultValue:[1,1,1,1]},{tfName:"fused_ops",name:"fusedOps",type:"string[]",defaultValue:[]},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[]}]},{tfOpName:"Conv3D",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"filter",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"padding",name:"pad",type:"string"},{tfName:"data_format",name:"dataFormat",type:"string",defaultValue:"NHWC"},{tfName:"dilations",name:"dilations",type:"number[]"}]},{tfOpName:"Dilation2D",category:"convolution",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"filter",type:"tensor"}],attrs:[{tfName:"strides",name:"strides",type:"number[]"},{tfName:"rates",name:"dilations",type:"number[]"},{tfName:"padding",name:"pad",type:"string"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"Fill",category:"creation",inputs:[{start:0,name:"shape",type:"number[]"},{start:1,name:"value",type:"number"}],attrs:[{tfName:"T",name:"dtype",type:"dtype"}]},{tfOpName:"LinSpace",category:"creation",inputs:[{start:0,name:"start",type:"number"},{start:1,name:"stop",type:"number"},{start:2,name:"num",type:"number"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"OneHot",category:"creation",inputs:[{start:0,name:"indices",type:"tensor"},{start:1,name:"depth",type:"number"},{start:2,name:"onValue",type:"number",defaultValue:1},{start:3,name:"offValue",type:"number",defaultValue:0}],attrs:[{tfName:"axis",name:"axis",type:"number",notSupported:!0},{tfName:"T",name:"dtype",type:"dtype"}]},{tfOpName:"Ones",category:"creation",inputs:[{start:0,name:"shape",type:"number[]"}],attrs:[{tfName:"T",name:"dtype",type:"dtype"}]},{tfOpName:"OnesLike",category:"creation",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"dtype",name:"dtype",type:"dtype"}]},{tfOpName:"RandomStandardNormal",category:"creation",inputs:[{start:0,name:"shape",type:"number[]"}],attrs:[{tfName:"seed",name:"seed",type:"number",defaultValue:0},{tfName:"seed2",name:"seed2",type:"number",defaultValue:0,notSupported:!0},{tfName:"dtype",name:"dtype",type:"dtype"},{tfName:"T",name:"T",type:"number",notSupported:!0}]},{tfOpName:"RandomUniform",category:"creation",inputs:[{start:0,name:"shape",type:"number[]"}],attrs:[{tfName:"minval",name:"minval",type:"number",defaultValue:0},{tfName:"maxval",name:"maxval",type:"number",defaultValue:1},{tfName:"dtype",name:"dtype",type:"dtype"},{tfName:"seed",name:"seed",type:"number",defaultValue:0},{tfName:"seed2",name:"seed2",type:"number",defaultValue:0,notSupported:!0},{tfName:"T",name:"T",type:"number",notSupported:!0}]},{tfOpName:"RandomUniformInt",category:"creation",inputs:[{start:0,name:"shape",type:"number[]"}],attrs:[{tfName:"minval",name:"minval",type:"number"},{tfName:"maxval",name:"maxval",type:"number"},{tfName:"seed",name:"seed",type:"number",defaultValue:0},{tfName:"seed2",name:"seed2",type:"number",defaultValue:0,notSupported:!0}]},{tfOpName:"Range",category:"creation",inputs:[{start:0,name:"start",type:"number"},{start:1,name:"stop",type:"number"},{start:2,name:"step",type:"number",defaultValue:0}],attrs:[{tfName:"Tidx",name:"dtype",type:"dtype"}]},{tfOpName:"TruncatedNormal",category:"creation",inputs:[{start:0,name:"shape",type:"number[]"}],attrs:[{tfName:"means",name:"mean",type:"number",defaultValue:0},{tfName:"stddev",name:"stdDev",type:"number",defaultValue:1},{tfName:"seed",name:"seed",type:"number"},{tfName:"seed2",name:"seed2",type:"number",defaultValue:0,notSupported:!0},{tfName:"dtype",name:"dtype",type:"dtype"},{tfName:"T",name:"T",type:"number",notSupported:!0}]},{tfOpName:"Zeros",category:"creation",inputs:[{start:0,name:"shape",type:"number[]"}],attrs:[{tfName:"T",name:"dtype",type:"dtype"}]},{tfOpName:"ZerosLike",category:"creation",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype"}]},{tfOpName:"Multinomial",category:"creation",inputs:[{start:0,name:"logits",type:"tensor"},{start:1,name:"numSamples",type:"number"}],attrs:[{tfName:"seed",name:"seed",type:"number"},{tfName:"seed2",name:"seed2",type:"number"},{tfName:"T",name:"dtype",type:"dtype"},{tfName:"output_dtype",name:"output_dtype",type:"dtype"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"NonMaxSuppressionV2",category:"dynamic",inputs:[{start:0,name:"boxes",type:"tensor"},{start:1,name:"scores",type:"tensor"},{start:2,name:"maxOutputSize",type:"number"},{start:3,name:"iouThreshold",type:"number"}]},{tfOpName:"NonMaxSuppressionV3",category:"dynamic",inputs:[{start:0,name:"boxes",type:"tensor"},{start:1,name:"scores",type:"tensor"},{start:2,name:"maxOutputSize",type:"number"},{start:3,name:"iouThreshold",type:"number"},{start:4,name:"scoreThreshold",type:"number"}]},{tfOpName:"NonMaxSuppressionV4",category:"dynamic",inputs:[{start:0,name:"boxes",type:"tensor"},{start:1,name:"scores",type:"tensor"},{start:2,name:"maxOutputSize",type:"number"},{start:3,name:"iouThreshold",type:"number"},{start:4,name:"scoreThreshold",type:"number"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0},{tfName:"T_threshold",name:"threshold",type:"dtype",notSupported:!0},{tfName:"pad_to_max_output_size",name:"padToMaxOutputSize",type:"bool"}]},{tfOpName:"NonMaxSuppressionV5",category:"dynamic",inputs:[{start:0,name:"boxes",type:"tensor"},{start:1,name:"scores",type:"tensor"},{start:2,name:"maxOutputSize",type:"number"},{start:3,name:"iouThreshold",type:"number"},{start:4,name:"scoreThreshold",type:"number"},{start:5,name:"softNmsSigma",type:"number"}]},{tfOpName:"Where",category:"dynamic",inputs:[{start:0,name:"condition",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"ListDiff",category:"dynamic",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"y",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"LowerBound",category:"evaluation",inputs:[{start:0,name:"sortedSequence",type:"tensor"},{start:1,name:"values",type:"tensor"}]},{tfOpName:"TopKV2",category:"evaluation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"k",type:"number"}],attrs:[{tfName:"sorted",name:"sorted",type:"bool"}]},{tfOpName:"UpperBound",category:"evaluation",inputs:[{start:0,name:"sortedSequence",type:"tensor"},{start:1,name:"values",type:"tensor"}]},{tfOpName:"Unique",category:"evaluation",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"UniqueV2",category:"evaluation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"PlaceholderWithDefault",category:"graph",inputs:[{start:0,name:"default",type:"tensor"}],attrs:[{tfName:"shape",name:"shape",type:"shape"},{tfName:"dtype",name:"dtype",type:"dtype"}]},{tfOpName:"Placeholder",category:"graph",attrs:[{tfName:"shape",name:"shape",type:"shape"},{tfName:"dtype",name:"dtype",type:"dtype"}]},{tfOpName:"Const",category:"graph"},{tfOpName:"Identity",category:"graph",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"IdentityN",category:"graph",inputs:[{start:0,end:0,name:"x",type:"tensors"}]},{tfOpName:"Snapshot",category:"graph",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"Rank",category:"graph",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"Size",category:"graph",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"Shape",category:"graph",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"ShapeN",category:"graph",inputs:[{start:0,end:0,name:"x",type:"tensors"}]},{tfOpName:"Print",category:"graph",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"data",type:"tensors"}],attrs:[{tfName:"message",name:"message",type:"string"},{tfName:"first_n",name:"firstN",type:"number",notSupported:!0}
13,{tfName:"summarize",name:"summarize",type:"number",defaultValue:3}]},{tfOpName:"NoOp",category:"graph",inputs:[]},{tfOpName:"StopGradient",category:"graph",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"FakeQuantWithMinMaxVars",category:"graph",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"min",name:"min",type:"number"},{tfName:"max",name:"max",type:"number"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"HashTable",category:"hash_table",inputs:[],attrs:[{tfName:"shared_name",name:"sharedName",type:"string"},{tfName:"use_node_name_sharing",name:"useNodeNameSharing",type:"bool"},{tfName:"key_dtype",name:"keyDType",type:"dtype"},{tfName:"value_dtype",name:"valueDType",type:"dtype"}]},{tfOpName:"HashTableV2",category:"hash_table",inputs:[],attrs:[{tfName:"shared_name",name:"sharedName",type:"string"},{tfName:"use_node_name_sharing",name:"useNodeNameSharing",type:"bool"},{tfName:"key_dtype",name:"keyDType",type:"dtype"},{tfName:"value_dtype",name:"valueDType",type:"dtype"}]},{tfOpName:"LookupTableImport",category:"hash_table",inputs:[{start:0,name:"tableHandle",type:"tensor"},{start:1,name:"keys",type:"tensor"},{start:2,name:"values",type:"tensor"}],attrs:[{tfName:"Tin",name:"tIn",type:"dtype",notSupported:!0},{tfName:"Tout",name:"tOut",type:"dtype",notSupported:!0}]},{tfOpName:"LookupTableImportV2",category:"hash_table",inputs:[{start:0,name:"tableHandle",type:"tensor"},{start:1,name:"keys",type:"tensor"},{start:2,name:"values",type:"tensor"}],attrs:[{tfName:"Tin",name:"tIn",type:"dtype",notSupported:!0},{tfName:"Tout",name:"tOut",type:"dtype",notSupported:!0}]},{tfOpName:"LookupTableFind",category:"hash_table",inputs:[{start:0,name:"tableHandle",type:"tensor"},{start:1,name:"keys",type:"tensor"},{start:2,name:"defaultValue",type:"tensor"}],attrs:[{tfName:"Tin",name:"tIn",type:"dtype",notSupported:!0},{tfName:"Tout",name:"tOut",type:"dtype",notSupported:!0}]},{tfOpName:"LookupTableFindV2",category:"hash_table",inputs:[{start:0,name:"tableHandle",type:"tensor"},{start:1,name:"keys",type:"tensor"},{start:2,name:"defaultValue",type:"tensor"}],attrs:[{tfName:"Tin",name:"tIn",type:"dtype",notSupported:!0},{tfName:"Tout",name:"tOut",type:"dtype",notSupported:!0}]},{tfOpName:"LookupTableSize",category:"hash_table",inputs:[{start:0,name:"tableHandle",type:"tensor"}]},{tfOpName:"LookupTableSizeV2",category:"hash_table",inputs:[{start:0,name:"tableHandle",type:"tensor"}]},{tfOpName:"InitializeTable",category:"hash_table",inputs:[{start:0,name:"tableHandle",type:"tensor"},{start:1,name:"keys",type:"tensor"},{start:2,name:"values",type:"tensor"}]},{tfOpName:"InitializeTableV2",category:"hash_table",inputs:[{start:0,name:"tableHandle",type:"tensor"},{start:1,name:"keys",type:"tensor"},{start:2,name:"values",type:"tensor"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"ResizeBilinear",category:"image",inputs:[{start:0,name:"images",type:"tensor"},{start:1,name:"size",type:"number[]"}],attrs:[{tfName:"align_corners",name:"alignCorners",type:"bool"},{tfName:"half_pixel_centers",name:"halfPixelCenters",type:"bool"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"ResizeNearestNeighbor",category:"image",inputs:[{start:0,name:"images",type:"tensor"},{start:1,name:"size",type:"number[]"}],attrs:[{tfName:"align_corners",name:"alignCorners",type:"bool"},{tfName:"half_pixel_centers",name:"halfPixelCenters",type:"bool"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"CropAndResize",category:"image",inputs:[{start:0,name:"image",type:"tensor"},{start:1,name:"boxes",type:"tensor"},{start:2,name:"boxInd",type:"tensor"},{start:3,name:"cropSize",type:"number[]"}],attrs:[{tfName:"method",name:"method",type:"string"},{tfName:"extrapolation_value",name:"extrapolationValue",type:"number"}]},{tfOpName:"ImageProjectiveTransformV3",category:"image",inputs:[{start:0,name:"images",type:"tensor"},{start:1,name:"transforms",type:"tensor"},{start:2,name:"outputShape",type:"number[]"},{start:3,name:"fillValue",type:"number"}],attrs:[{tfName:"interpolation",name:"interpolation",type:"string"},{tfName:"fill_mode",name:"fillMode",type:"string"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});
13let r=[{tfOpName:"Equal",category:"logical",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"NotEqual",category:"logical",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Greater",category:"logical",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"GreaterEqual",category:"logical",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Less",category:"logical",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"LessEqual",category:"logical",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"LogicalAnd",category:"logical",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"LogicalNot",category:"logical",inputs:[{start:0,name:"a",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"LogicalOr",category:"logical",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Select",category:"logical",inputs:[{start:0,name:"condition",type:"tensor"},{start:1,name:"a",type:"tensor"},{start:2,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"SelectV2",category:"logical",inputs:[{start:0,name:"condition",type:"tensor"},{start:1,name:"a",type:"tensor"},{start:2,name:"b",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"BitwiseAnd",category:"logical",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"y",type:"tensor"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"_FusedMatMul",category:"matrices",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"},{start:2,end:0,name:"args",type:"tensors"}],attrs:[{tfName:"num_args",name:"numArgs",type:"number"},{tfName:"fused_ops",name:"fusedOps",type:"string[]",defaultValue:[]},{tfName:"epsilon",name:"epsilon",type:"number",defaultValue:1e-4},{tfName:"transpose_a",name:"transposeA",type:"bool",defaultValue:!1},{tfName:"transpose_b",name:"transposeB",type:"bool",defaultValue:!1},{tfName:"leakyrelu_alpha",name:"leakyreluAlpha",type:"number",defaultValue:.2},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"MatMul",category:"matrices",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"transpose_a",name:"transposeA",type:"bool",defaultValue:!1},{tfName:"transpose_b",name:"transposeB",type:"bool",defaultValue:!1},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"BatchMatMul",category:"matrices",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"adj_x",name:"transposeA",type:"bool",defaultValue:!1},{tfName:"adj_y",name:"transposeB",type:"bool",defaultValue:!1},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"BatchMatMulV2",category:"matrices",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"b",type:"tensor"}],attrs:[{tfName:"adj_x",name:"transposeA",type:"bool",defaultValue:!1},{tfName:"adj_y",name:"transposeB",type:"bool",defaultValue:!1},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Transpose",category:"matrices",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"perm",type:"number[]"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Einsum",category:"matrices",inputs:[{start:0,end:0,name:"tensors",type:"tensors"}],attrs:[{tfName:"equation",name:"equation",type:"string"},{tfName:"N",name:"n",type:"number",defaultValue:2},{tfName:"T",name:"dtype",type:"dtype"}]},{tfOpName:"MatrixBandPart",category:"matrices",inputs:[{start:0,name:"a",type:"tensor"},{start:1,name:"numLower",type:"tensor"},{start:1,name:"numUpper",type:"tensor"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"EuclideanNorm",category:"normalization",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}],attrs:[{tfName:"keep_dims",name:"keepDims",type:"bool",defaultValue:!1}]},{tfOpName:"FusedBatchNorm",category:"normalization",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"scale",type:"tensor"},{start:2,name:"offset",type:"tensor"},{start:3,name:"mean",type:"tensor"},{start:4,name:"variance",type:"tensor"}],attrs:[{tfName:"epsilon",name:"epsilon",type:"number",defaultValue:.001},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0}
vendor: 4,665 bytes, line 13
13]},{tfOpName:"FusedBatchNormV2",category:"normalization",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"scale",type:"tensor"},{start:2,name:"offset",type:"tensor"},{start:3,name:"mean",type:"tensor"},{start:4,name:"variance",type:"tensor"}],attrs:[{tfName:"epsilon",name:"epsilon",type:"number",defaultValue:.001},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0}]},{tfOpName:"FusedBatchNormV3",category:"normalization",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"scale",type:"tensor"},{start:2,name:"offset",type:"tensor"},{start:3,name:"mean",type:"tensor"},{start:4,name:"variance",type:"tensor"}],attrs:[{tfName:"epsilon",name:"epsilon",type:"number",defaultValue:.001},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:!0}]},{tfOpName:"LRN",category:"normalization",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"depth_radius",name:"radius",type:"number",defaultValue:5},{tfName:"bias",name:"bias",type:"number",defaultValue:1},{tfName:"alpha",name:"alpha",type:"number",defaultValue:1},{tfName:"beta",name:"beta",type:"number",defaultValue:.5}]},{tfOpName:"Softmax",category:"normalization",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"LogSoftmax",category:"normalization",inputs:[{start:0,name:"x",type:"tensor"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"Bincount",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"size",type:"number"},{start:2,name:"weights",type:"tensor"}]},{tfOpName:"DenseBincount",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"size",type:"number"},{start:2,name:"weights",type:"tensor"}],attrs:[{tfName:"binary_output",name:"binaryOutput",type:"bool"}]},{tfOpName:"Max",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}],attrs:[{tfName:"keep_dims",name:"keepDims",type:"bool"}]},{tfOpName:"Mean",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}],attrs:[{tfName:"keep_dims",name:"keepDims",type:"bool"}]},{tfOpName:"Min",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}],attrs:[{tfName:"keep_dims",name:"keepDims",type:"bool"}]},{tfOpName:"Sum",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}],attrs:[{tfName:"keep_dims",name:"keepDims",type:"bool"}]},{tfOpName:"All",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}],attrs:[{tfName:"keep_dims",name:"keepDims",type:"bool"}]},{tfOpName:"Any",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}],attrs:[{tfName:"keep_dims",name:"keepDims",type:"bool"}]},{tfOpName:"ArgMax",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number"}]},{tfOpName:"ArgMin",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number"}]},{tfOpName:"Prod",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}],attrs:[{tfName:"keep_dims",name:"keepDims",type:"bool"},{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"Cumprod",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number"}],attrs:[{tfName:"exclusive",name:"exclusive",type:"bool"},{tfName:"reverse",name:"reverse",type:"bool"}]},{tfOpName:"Cumsum",category:"reduction",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number"}],attrs:[{tfName:"exclusive",name:"exclusive",type:"bool"},{tfName:"reverse",name:"reverse",type:"bool"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"ConcatV2",category:"slice_join",inputs:[{start:0,end:-1,name:"tensors",type:"tensors"},{start:-1,name:"axis",type:"number"}],attrs:[{tfName:"N",name:"n",type:"number",defaultValue:2}]},{tfOpName:"Concat",category:"slice_join",inputs:[{start:1,end:0,name:"tensors",type:"tensors"},{start:0,name:"axis",type:"number"}],attrs:[{tfName:"N",name:"n",type:"number",defaultValue:2}]},{tfOpName:"GatherV2",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"indices",type:"tensor"},{start:2,name:"axis",type:"number",defaultValue:0}],attrs:[{tfName:"batch_dims",name:"batchDims",type:"number",defaultValue:0}]},{tfOpName:"Gather",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"indices",type:"tensor"}],attrs:[{tfName:"validate_indices",name:"validateIndices",type:"bool",notSupported:!0}
13]},{tfOpName:"Reverse",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"dims",type:"bool[]"}]},{tfOpName:"ReverseV2",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number[]"}]},{tfOpName:"Slice",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"begin",type:"number[]"},{start:2,name:"size",type:"number[]"}]},{tfOpName:"StridedSlice",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"begin",type:"number[]"},{start:2,name:"end",type:"number[]"},{start:3,name:"strides",type:"number[]"}],attrs:[{tfName:"begin_mask",name:"beginMask",type:"number",defaultValue:0},{tfName:"end_mask",name:"endMask",type:"number",defaultValue:0},{tfName:"new_axis_mask",name:"newAxisMask",type:"number",defaultValue:0},{tfName:"ellipsis_mask",name:"ellipsisMask",type:"number",defaultValue:0},{tfName:"shrink_axis_mask",name:"shrinkAxisMask",type:"number",defaultValue:0}]},{tfOpName:"Pack",category:"slice_join",inputs:[{start:0,end:0,name:"tensors",type:"tensors"}],attrs:[{tfName:"axis",name:"axis",type:"number",defaultValue:0}]},{tfOpName:"Unpack",category:"slice_join",inputs:[{start:0,name:"tensor",type:"tensor"}],attrs:[{tfName:"axis",name:"axis",type:"number",defaultValue:0},{tfName:"num",name:"num",type:"number",defaultValue:0,notSupported:!0}]},{tfOpName:"Tile",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"reps",type:"number[]"}]},{tfOpName:"Split",category:"slice_join",inputs:[{start:0,name:"axis",type:"number",defaultValue:0},{start:1,name:"x",type:"tensor"}],attrs:[{tfName:"num_split",name:"numOrSizeSplits",type:"number",defaultValue:1}]},{tfOpName:"SplitV",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"numOrSizeSplits",type:"number[]"},{start:2,name:"axis",type:"number",defaultValue:0}]},{tfOpName:"ScatterNd",category:"slice_join",inputs:[{start:0,name:"indices",type:"tensor"},{start:1,name:"values",type:"tensor"},{start:2,name:"shape",type:"number[]"}]},{tfOpName:"GatherNd",category:"slice_join",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"indices",type:"tensor"}]},{tfOpName:"SparseToDense",category:"slice_join",inputs:[{start:0,name:"sparseIndices",type:"tensor"},{start:1,name:"outputShape",type:"number[]"},{start:2,name:"sparseValues",type:"tensor"},{start:3,name:"defaultValue",type:"tensor"}],attrs:[{tfName:"validate_indices",name:"validateIndices",type:"bool",defaultValue:!1,notSupported:!0}]},{tfOpName:"TensorScatterUpdate",category:"slice_join",inputs:[{start:0,name:"tensor",type:"tensor"},{start:1,name:"indices",type:"tensor"},{start:2,name:"values",type:"tensor"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"SparseFillEmptyRows",category:"sparse",inputs:[{start:0,name:"indices",type:"tensor"},{start:1,name:"values",type:"tensor"},{start:2,name:"denseShape",type:"tensor"},{start:3,name:"defaultValue",type:"tensor"}]},{tfOpName:"SparseReshape",category:"sparse",inputs:[{start:0,name:"inputIndices",type:"tensor"},{start:1,name:"inputShape",type:"tensor"},{start:2,name:"newShape",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:!0}]},{tfOpName:"SparseSegmentMean",category:"sparse",inputs:[{start:0,name:"data",type:"tensor"},{start:1,name:"indices",type:"tensor"},{start:2,name:"segmentIds",type:"tensor"}]},{tfOpName:"SparseSegmentSum",category:"sparse",inputs:[{start:0,name:"data",type:"tensor"},{start:1,name:"indices",type:"tensor"},{start:2,name:"segmentIds",type:"tensor"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"FFT",category:"spectral",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"IFFT",category:"spectral",inputs:[{start:0,name:"x",type:"tensor"}]},{tfOpName:"RFFT",category:"spectral",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"fft_length",type:"number",notSupported:!0}]},{tfOpName:"IRFFT",category:"spectral",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"fft_length",type:"number",notSupported:!0}
13]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"StaticRegexReplace",category:"string",inputs:[{start:0,name:"input",type:"tensor"}],attrs:[{tfName:"pattern",name:"pattern",type:"string"},{tfName:"rewrite",name:"rewrite",type:"string"},{tfName:"replace_global",name:"replaceGlobal",type:"bool"}]},{tfOpName:"StringNGrams",category:"string",inputs:[{start:0,name:"data",type:"tensor"},{start:1,name:"dataSplits",type:"tensor"}],attrs:[{tfName:"separator",name:"separator",type:"string"},{tfName:"ngram_widths",name:"nGramWidths",type:"number[]"},{tfName:"left_pad",name:"leftPad",type:"string"},{tfName:"right_pad",name:"rightPad",type:"string"},{tfName:"pad_width",name:"padWidth",type:"number"},{tfName:"preserve_short_sequences",name:"preserveShortSequences",type:"bool"}],outputs:["ngrams","ngrams_splits"]},{tfOpName:"StringSplit",category:"string",inputs:[{start:0,name:"input",type:"tensor"},{start:1,name:"delimiter",type:"tensor"}],attrs:[{tfName:"skip_empty",name:"skipEmpty",type:"bool"}],outputs:["indices","values","shape"]},{tfOpName:"StringToHashBucketFast",category:"string",inputs:[{start:0,name:"input",type:"tensor"}],attrs:[{tfName:"num_buckets",name:"numBuckets",type:"number"}]}]},function(e,t,n){"use strict";n.r(t),n.d(t,"json",function(){return r});let r=[{tfOpName:"Cast",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"SrcT",name:"sdtype",type:"dtype",notSupported:!0},{tfName:"DstT",name:"dtype",type:"dtype"}]},{tfOpName:"ExpandDims",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"axis",type:"number"}]},{tfOpName:"MirrorPad",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"padding",type:"number[]"}],attrs:[{tfName:"mode",name:"mode",type:"string"}]},{tfOpName:"Pad",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"padding",type:"number[]"}],attrs:[{tfName:"constant_value",name:"constantValue",type:"number",defaultValue:0}]},{tfOpName:"PadV2",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"padding",type:"number[]"},{start:2,name:"constantValue",type:"number",defaultValue:0}]},{tfOpName:"Reshape",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"shape",type:"number[]"}]},{tfOpName:"EnsureShape",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"shape",type:"number[]"}]},{tfOpName:"Squeeze",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"axis",tfDeprecatedName:"squeeze_dims",name:"axis",type:"number[]"}]},{tfOpName:"SpaceToBatchND",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"blockShape",type:"number[]"},{start:2,name:"paddings",type:"number[]"}]},{tfOpName:"BatchToSpaceND",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"blockShape",type:"number[]"},{start:2,name:"crops",type:"number[]"}]},{tfOpName:"DepthToSpace",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"block_size",name:"blockSize",type:"number"},{tfName:"data_format",name:"dataFormat",type:"string"}]},{tfOpName:"BroadcastTo",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"shape",type:"number[]"}],attrs:[]},{tfOpName:"BroadcastArgs",category:"transformation",inputs:[{start:0,name:"s0",type:"tensor"},{start:1,name:"s1",type:"tensor"}],attrs:[]}]},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return o});var r=n(0),i=n(64),a=n(384);class o extends i.a{decodeUTF8(){return new s(this)}}class s extends a.a{constructor(e){super(),this.upstream=e,this.impl=new l(e)}summary(){return this.impl.summary()}async next(){return this.impl.next()}}class l extends i.b{constructor(e){if(super(),this.upstream=e,Object(r.of)().get("IS_BROWSER"))this.decoder=new TextDecoder("utf-8");else{let{StringDecoder:e}=n(659);this.decoder=new e("utf8")}}summary(){return this.upstream.summary()+" -> Utf8"}async pump(){let t,n,i=await this.upstream.next();
13return!i.done&&(t=i.value,n=Object(r.of)().get("IS_BROWSER")?this.decoder.decode(t,{stream:!0}):this.decoder.write(e.from(t.buffer)),this.outputQueue.push(n),!0)}}}).call(this,n(226).Buffer)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(64);class i extends r.a{split(e){return new a(this,e)}}class a extends i{constructor(e,t){super(),this.upstream=e,this.impl=new o(e,t)}summary(){return this.impl.summary()}async next(){return this.impl.next()}}class o extends r.b{constructor(e,t){super(),this.upstream=e,this.separator=t,this.carryover=""}summary(){return`${this.upstream.summary()} -> Split('${this.separator}')`}async pump(){let e=await this.upstream.next();if(e.done)return""!==this.carryover&&(this.outputQueue.push(this.carryover),this.carryover="",!0);let t=e.value.split(this.separator);for(let e of(t[0]=this.carryover+t[0],t.slice(0,-1)))this.outputQueue.push(e);return this.carryover=t[t.length-1],!0}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(545),n(552),n(553),n(554),n(556)},function(e,t,n){"use strict";var r=n(37),i=n(46),a=n(58),o=n(43),s=n(103),l=n(57),u=n(153),c=n(41),p=n(65),d=n(143),f=n(69),h=n(97),g=n(272),b=n(88),m=n(193),y=n(158),S=n(219),v=n(217),O=n(549),x=n(281),I=n(152),N=n(87),k=n(307),T=n(271),w=n(104),j=n(220),F=n(155),_=n(215),E=n(216),R=n(275),D=n(49),C=n(309),A=n(310),M=n(550),$=n(197),U=n(157),P=n(221).forEach,B=_("hidden"),L=U.set,W=U.getterFor("Symbol"),z=Object.prototype,G=i.Symbol,V=G&&G.prototype,H=i.RangeError,q=i.TypeError,K=i.QObject,X=I.f,Y=N.f,Q=O.f,J=T.f,Z=o([].push),ee=F("symbols"),et=F("op-symbols"),en=F("wks"),er=!K||!K.prototype||!K.prototype.findChild,ei=function(e,t,n){var r=X(z,t);r&&delete z[t],Y(e,t,n),r&&e!==z&&Y(z,t,r)},ea=l&&c(function(){return 7!==y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?ei:Y,eo=function(e,t){var n=ee[e]=y(V);return L(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},es=function(e,t,n){e===z&&es(et,t,n),f(e);var r=g(t);return f(n),p(ee,r)?(n.enumerable?(p(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:m(0,!1)})):(p(e,B)||Y(e,B,m(1,y(null))),e[B][r]=!0),ea(e,r,n)):Y(e,r,n)},el=function(e,t){f(e);var n=h(t);return P(S(n).concat(ed(n)),function(t){l&&!a(eu,n,t)||es(e,t,n[t])}),e},eu=function(e){var t=g(e),n=a(J,this,t);return!(this===z&&p(ee,t)&&!p(et,t))&&(!(n||!p(this,t)||!p(ee,t)||p(this,B)&&this[B][t])||n)},ec=function(e,t){var n=h(e),r=g(t);if(n!==z||!p(ee,r)||p(et,r)){var i=X(n,r);return!i||!p(ee,r)||p(n,B)&&n[B][r]||(i.enumerable=!0),i}},ep=function(e){var t=Q(h(e)),n=[];return P(t,function(e){p(ee,e)||p(E,e)||Z(n,e)}),n},ed=function(e){var t=e===z,n=Q(t?et:h(e)),r=[];return P(n,function(e){p(ee,e)&&(!t||p(z,e))&&Z(r,ee[e])}),r};u||(w(V=(G=function(){if(d(V,this))throw new q("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,t=R(e),n=function(e){var r=void 0===this?i:this;r===z&&a(n,et,e),p(r,B)&&p(r[B],t)&&(r[B][t]=!1);var o=m(1,e);try{ea(r,t,o)}catch(e){if(!(e instanceof H))throw e;ei(r,t,o)}};return l&&er&&ea(z,t,{configurable:!0,set:n}),eo(t,e)}).prototype,"toString",function(){return W(this).tag}),w(G,"withoutSetter",function(e){return eo(R(e),e)}),T.f=eu,N.f=es,k.f=el,I.f=ec,v.f=O.f=ep,x.f=ed,C.f=function(e){return eo(D(e),e)},l&&(j(V,"description",{configurable:!0,get:function(){return W(this).description}}),s||w(z,"propertyIsEnumerable",eu,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),P(S(en),function(e){A(e)}),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){er=!0},useSimple:function(){er=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):el(y(e),t)},defineProperty:es,defineProperties:el,getOwnPropertyDescriptor:ec}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ep}),M(),$(G,"Symbol"),E[B]=!0},function(e,t,n){"use strict";var r=n(58),i=n(48),a=n(66),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e))||i(n=e.valueOf)&&!a(s=r(n,e))||"string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(46),i=n(48),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},function(e,t,n){"use strict";var r=n(115),i=n(97),a=n(217).f,o=n(159),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return a(e)}catch(e){return o(s)}}(e):a(i(e))}},function(e,t,n){"use strict";var r=n(58),i=n(98),a=n(49),o=n(104);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=a("toPrimitive");t&&!t[s]&&o(t,s,function(e){return r(n,this)},{arity:1}
vendor: 4,482 bytes, line 13
13)}},function(e,t,n){"use strict";var r=n(222),i=n(223),a=n(66),o=n(49)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(i(t=e.constructor)&&(t===s||r(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0),void 0===t?s:t}},function(e,t,n){"use strict";var r=n(37),i=n(98),a=n(65),o=n(88),s=n(155),l=n(314),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=o(e);if(a(u,t))return u[t];var n=i("Symbol")(t);return u[t]=n,c[n]=t,n}})},function(e,t,n){"use strict";var r=n(37),i=n(65),a=n(195),o=n(154),s=n(155),l=n(314),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!a(e))throw TypeError(o(e)+" is not a symbol");if(i(u,e))return u[e]}})},function(e,t,n){"use strict";var r=n(37),i=n(98),a=n(284),o=n(58),s=n(43),l=n(41),u=n(48),c=n(195),p=n(159),d=n(555),f=n(153),h=String,g=i("JSON","stringify"),b=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),S=s("".replace),v=s(1..toString),O=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,N=!f||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))}),k=l(function(){return'"\udf06\ud834"'!==g("\udf06\ud834")||'"\udead"'!==g("\udead")}),T=function(e,t){var n=p(arguments),r=d(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=o(r,this,h(e),t)),!c(t))return t},a(g,null,n)},w=function(e,t,n){var r=m(n,t-1),i=m(n,t+1);return b(x,e)&&!b(I,i)||b(I,e)&&!b(x,r)?"\\u"+v(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:N||k},{stringify:function(e,t,n){var r=p(arguments),i=a(N?T:g,null,r);return k&&"string"==typeof i?S(i,O,w):i}})},function(e,t,n){"use strict";var r=n(43),i=n(222),a=n(48),o=n(115),s=n(88),l=r([].push);e.exports=function(e){if(a(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?l(n,u):"number"!=typeof u&&"Number"!==o(u)&&"String"!==o(u)||l(n,s(u))}var c=n.length,p=!0;return function(e,t){if(p)return p=!1,t;if(i(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},function(e,t,n){"use strict";var r=n(37),i=n(153),a=n(41),o=n(281),s=n(116);r({target:"Object",stat:!0,forced:!i||a(function(){o.f(1)})},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(37),i=n(57),a=n(46),o=n(43),s=n(65),l=n(48),u=n(143),c=n(88),p=n(220),d=n(303),f=a.Symbol,h=f&&f.prototype;if(i&&l(f)&&(!("description"in h)||void 0!==f().description)){var g={},b=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(h,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};d(b,f),b.prototype=h,h.constructor=b;var m="Symbol(description detection)"===String(f("description detection")),y=o(h.valueOf),S=o(h.toString),v=/^Symbol\((.*)\)[^)]+$/,O=o("".replace),x=o("".slice);p(h,"description",{configurable:!0,get:function(){var e=y(this);if(s(g,e))return"";var t=S(e),n=m?x(t,7,-1):O(t,v,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:b})}},function(e,t,n){"use strict";n(310)("iterator")},function(e,t,n){"use strict";var r=n(57),i=n(214).EXISTS,a=n(43),o=n(220),s=Function.prototype,l=a(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=a(u.exec);r&&!i&&o(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(37),i=n(41),a=n(97),o=n(152).f,s=n(57);r({target:"Object",stat:!0,forced:!s||i(function(){o(1)}),sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},function(e,t,n){"use strict";var r=n(37),i=n(57),a=n(304),o=n(97),s=n(152),l=n(199);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),i=s.f,u=a(r),c={},p=0;u.length>p;)void 0!==(n=i(r,t=u[p++]))&&l(c,t,n);return c}})},function(e,t,n){"use strict";var r=n(37),i=n(98),a=n(284),o=n(563),s=n(315),l=n(69),u=n(66),c=n(158),p=n(41),d=i("Reflect","construct"),f=Object.prototype,h=[].push,g=p(function(){function e(){}return!(d(function(){},[],e)instanceof e)}),b=!p(function(){d(function(){})}),m=g||b;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(b&&!g)return d(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}
13var r=[null];return a(h,r,t),new(a(o,e,r))}var i=n.prototype,p=c(u(i)?i:f),m=a(e,p,t);return u(m)?m:p}})},function(e,t,n){"use strict";var r=n(43),i=n(102),a=n(66),o=n(65),s=n(159),l=n(192),u=Function,c=r([].concat),p=r([].join),d={},f=function(e,t,n){if(!o(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=u("C,a","return new C("+p(r,",")+")")}return d[t](e,n)};e.exports=l?u.bind:function(e){var t=i(this),n=t.prototype,r=s(arguments,1),o=function(){var n=c(r,s(arguments));return this instanceof o?f(t,n.length,n):t.apply(e,n)};return a(n)&&(o.prototype=n),o}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(567);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(224).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(224).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=Object.create((t&&t.prototype instanceof S?t:S).prototype);return s(i,"_invoke",{value:j(e,n,new R(r||[]))}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var g="suspendedStart",b="executing",m="completed",y={};function S(){}function v(){}function O(){}var x={};d(x,u,function(){return this});var I=Object.getPrototypeOf,N=I&&I(I(D([])));N&&N!==a&&o.call(N,u)&&(x=N);var k=O.prototype=S.prototype=Object.create(x);function T(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var n;function i(n,a,s,l){var u=h(e[n],e,a);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==r(p)&&o.call(p,"__await")?t.resolve(p.__await).then(function(e){i("next",e,s,l)},function(e){i("throw",e,s,l)}):t.resolve(p).then(function(e){c.value=e,s(c)},function(e){return i("throw",e,s,l)})}l(u.arg)}s(this,"_invoke",{value:function(e,r){function a(){return new t(function(t,n){i(e,r,t,n)})}return n=n?n.then(a,a):a()}})}function j(e,n,r){var i=g;return function(a,o){if(i===b)throw Error("Generator is already running");if(i===m){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var l=F(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=b;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?m:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=m,r.method="throw",r.arg=u.arg)}}}function F(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&
vendor: 5,668 bytes, line 13
13(n.method="return",n.arg=t,F(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),y;var a=h(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):o:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw TypeError(r(e)+" is not iterable")}return v.prototype=O,s(k,"constructor",{value:O,configurable:!0}),s(O,"constructor",{value:v,configurable:!0}),v.displayName=d(O,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,d(e,p,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},T(w.prototype),d(w.prototype,c,function(){return this}),n.AsyncIterator=w,n.async=function(e,t,r,i,a){void 0===a&&(a=Promise);var o=new w(f(e,t,r,i),a);return n.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},T(k),d(k,p,"Generator"),d(k,u,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=D,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(37),i=n(41),a=n(222),o=n(66),s=n(116),l=n(125),u=n(574),c=n(199),p=n(313),d=n(225),f=n(49),h=n(196),g=f("isConcatSpreadable"),b=h>=51||!i(function(){var e=[];return e[g]=!1,e.concat()[0]!==e}),m=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,arity:1,forced:!b||!d("concat")},{concat:function(e){var t,n,r,i,a,o=s(this),d=p(o,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(m(a=-1===t?o:arguments[t]))for(u(f+(i=l(a))),n=0;n<i;n++,f++)n in a&&c(d,f,a[n]);else u(f+1),c(d,f++,a);return d.length=f,d}})},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if(e>0x1fffffffffffff)throw r("Maximum allowed index exceeded");return e}},function(e,t,n){"use strict";var r=n(37),i=n(576),a=n(285);r({target:"Array",proto:!0},{fill:i}),a("fill")},function(e,t,n){"use strict";var r=n(116),i=n(278),a=n(125);e.exports=function(e){for(var t=r(this),n=a(t),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(37),i=n(221).filter;r({target:"Array",proto:!0,forced:!n(225)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(37),i=n(317);r({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i}
13)},function(e,t,n){"use strict";var r=n(37),i=n(580);r({target:"Array",stat:!0,forced:!n(321)(function(e){Array.from(e)})},{from:i})},function(e,t,n){"use strict";var r=n(198),i=n(58),a=n(116),o=n(581),s=n(319),l=n(223),u=n(125),c=n(199),p=n(320),d=n(287),f=Array;e.exports=function(e){var t=a(e),n=l(this),h=arguments.length,g=h>1?arguments[1]:void 0,b=void 0!==g;b&&(g=r(g,h>2?arguments[2]:void 0));var m,y,S,v,O,x,I=d(t),N=0;if(!I||this===f&&s(I))for(m=u(t),y=n?new this(m):f(m);m>N;N++)x=b?g(t[N],N):t[N],c(y,N,x);else for(y=n?new this:[],O=(v=p(t,I)).next;!(S=i(O,v)).done;N++)x=b?o(v,g,[S.value,N],!0):S.value,c(y,N,x);return y.length=N,y}},function(e,t,n){"use strict";var r=n(69),i=n(318);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(37),i=n(277).includes,a=n(41),o=n(285);r({target:"Array",proto:!0,forced:a(function(){return![,].includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){"use strict";var r=n(37),i=n(312),a=n(277).indexOf,o=n(286),s=i([].indexOf),l=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:a(this,e,t)}})},function(e,t,n){"use strict";var r=n(324).IteratorPrototype,i=n(158),a=n(193),o=n(197),s=n(200),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:a(+!u,n)}),o(e,c,!1,!0),s[c]=l,e}},function(e,t,n){"use strict";e.exports=!n(41)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){"use strict";var r=n(43),i=n(102);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){"use strict";var r=n(588),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(66);e.exports=function(e){return r(e)||null===e}},function(e,t,n){"use strict";var r=n(37),i=n(222),a=n(223),o=n(66),s=n(278),l=n(125),u=n(97),c=n(199),p=n(49),d=n(225),f=n(159),h=d("slice"),g=p("species"),b=Array,m=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,p,d=u(this),h=l(d),y=s(e,h),S=s(void 0===t?h:t,h);if(i(d)&&((a(n=d.constructor)&&(n===b||i(n.prototype))||o(n)&&null===(n=n[g]))&&(n=void 0),n===b||void 0===n))return f(d,y,S);for(r=new(void 0===n?b:n)(m(S-y,0)),p=0;y<S;y++,p++)y in d&&c(r,p,d[y]);return r.length=p,r}})},function(e,t,n){"use strict";var r=n(37),i=n(43),a=n(102),o=n(116),s=n(125),l=n(591),u=n(88),c=n(41),p=n(592),d=n(286),f=n(593),h=n(594),g=n(196),b=n(595),m=[],y=i(m.sort),S=i(m.push),v=c(function(){m.sort(void 0)}),O=c(function(){m.sort(null)}),x=d("sort"),I=!c(function(){if(g)return g<70;if(!(f&&f>3)){if(h)return!0;if(b)return b<603;var e,t,n,r,i="";for(e=65;e<76;
13e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort(function(e,t){return t.v-e.v}),r=0;r<m.length;r++)t=m[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});r({target:"Array",proto:!0,forced:v||!O||!x||!I},{sort:function(e){void 0!==e&&a(e);var t=o(this);if(I)return void 0===e?y(t):y(t,e);var n,r,i=[],c=s(t);for(r=0;r<c;r++)r in t&&S(i,t[r]);for(p(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=s(i),r=0;r<n;)t[r]=i[r++];for(;r<c;)l(t,r++);return t}})},function(e,t,n){"use strict";var r=n(154),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t,n){"use strict";var r=n(159),i=Math.floor,a=function(e,t){var n=e.length;if(n<8)for(var o,s,l=1;l<n;){for(s=l,o=e[l];s&&t(e[s-1],o)>0;)e[s]=e[--s];s!==l++&&(e[s]=o)}else for(var u=i(n/2),c=a(r(e,0,u),t),p=a(r(e,u),t),d=c.length,f=p.length,h=0,g=0;h<d||g<f;)e[h+g]=h<d&&g<f?0>=t(c[h],p[g])?c[h++]:p[g++]:h<d?c[h++]:p[g++];return e};e.exports=a},function(e,t,n){"use strict";var r=n(124).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(124);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){"use strict";var r=n(124).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(37),i=n(103),a=n(57),o=n(46),s=n(311),l=n(43),u=n(282),c=n(65),p=n(597),d=n(143),f=n(195),h=n(298),g=n(41),b=n(217).f,m=n(152).f,y=n(87).f,S=n(598),v=n(599).trim,O=o.Number,x=s.Number,I=O.prototype,N=o.TypeError,k=l("".slice),T=l("".charCodeAt),w=function(e){var t=h(e,"number");return"bigint"==typeof t?t:j(t)},j=function(e){var t,n,r,i,a,o,s,l,u=h(e,"number");if(f(u))throw new N("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2){if(43===(t=T(u=v(u),0))||45===t){if(88===(n=T(u,2))||120===n)return NaN}else if(48===t){switch(T(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=(a=k(u,2)).length,s=0;s<o;s++)if((l=T(a,s))<48||l>i)return NaN;return parseInt(a,r)}}return+u},F=u("Number",!O(" 0o1")||!O("0b1")||O("+0x1")),_=function(e){return d(I,e)&&g(function(){S(e)})},E=function(e){var t=arguments.length<1?0:O(w(e));return _(this)?p(Object(t),this,E):t};E.prototype=I,F&&!i&&(I.constructor=E),r({global:!0,constructor:!0,wrap:!0,forced:F},{Number:E});var R=function(e,t){for(var n,r=a?b(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)c(t,n=r[i])&&!c(e,n)&&y(e,n,m(t,n))};i&&x&&R(s.Number,x),(F||i)&&R(s.Number,O)},function(e,t,n){"use strict";var r=n(48),i=n(66),a=n(289);e.exports=function(e,t,n){var o,s;return a&&r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},function(e,t,n){"use strict";e.exports=n(43)(1..valueOf)},function(e,t,n){"use strict";var r=n(43),i=n(142),a=n(88),o=n(600),s=r("".replace),l=RegExp("^["+o+"]+"),u=RegExp("(^|[^"+o+"])["+o+"]+$"),c=function(e){return function(t){var n=a(i(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t,n){"use strict";e.exports=" \n\v\f\r \xa0áââââââ
ââââââ¯âã\u2028\u2029\uFEFF"},function(e,t,n){"use strict";var r=n(37),i=n(602).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(57),i=n(41),a=n(43),o=n(288),s=n(219),l=n(97),u=a(n(271).f),c=a([].push),p=r&&i(function(){var e=Object.create(null);return e[2]=2,!u(e,2)}),d=function(e){return function(t){for(var n,i=l(t),a=s(i),d=p&&null===o(i),f=a.length,h=0,g=[];f>h;)n=a[h++],(!r||(d?n in i:u(i,n)))&&c(g,e?[n,i[n]]:i[n]);return g}};e.exports={entries:d(!0),values:d(!1)}},function(e,t,n){"use strict";var r=n(37),i=n(290),a=n(199);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,function(e,n){a(t,e,n)},{AS_ENTRIES:!0}),t}})},function(e,t,n){"use strict";var r=n(37),i=n(116),a=n(219);r({target:"Object",stat:!0,forced:n(41)(function(){a(1)})},{keys:function(e){return a(i(e))}})},function(e,t,n){"use strict";var r=n(283),i=n(218);e.exports=r?({}).toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";n(607),n(617),n(618),n(619),n(620),n(621)},function(e,t,n){"use strict";var r,i,a,o=n(37),s=n(103),l=n(291),u=n(46),c=n(58),p=n(104),d=n(289),f=n(197),h=n(608),g=n(102),b=n(48),m=n(66),y=n(609),S=n(610),v=n(329).set,O=n(612),x=n(616),I=n(292),N=n(331),k=n(157),T=n(201),w=n(202),j=n(203),F=w.CONSTRUCTOR,_=w.REJECTION_EVENT,E=w.SUBCLASSING,R=k.getterFor("Promise"),D=k.set,C=T&&T.prototype,A=T,M=C,$=u.TypeError,U=u.document,P=u.process,B=j.f,L=B,W=!!(U&&U.createEvent&&u.dispatchEvent),z=function(e){var t;return!(!m(e)||!b(t=e.then))&&t},G=function(e,t){var n,r,i,a=t.value,o=1===t.state,s=o?e.ok:e.fail,l=e.resolve,u=e.reject,p=e.domain;
vendor: 5,227 bytes, line 13
13try{s?(o||(2===t.rejection&&X(t),t.rejection=1),!0===s?n=a:(p&&p.enter(),n=s(a),p&&(p.exit(),i=!0)),n===e.promise?u(new $("Promise-chain cycle")):(r=z(n))?c(r,n,l,u):l(n)):u(a)}catch(e){p&&!i&&p.exit(),u(e)}},V=function(e,t){e.notified||(e.notified=!0,O(function(){for(var n,r=e.reactions;n=r.get();)G(n,e);e.notified=!1,t&&!e.rejection&&q(e)}))},H=function(e,t,n){var r,i;W?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!_&&(i=u["on"+e])?i(r):"unhandledrejection"===e&&x("Unhandled promise rejection",n)},q=function(e){c(v,u,function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=I(function(){l?P.emit("unhandledRejection",r,n):H("unhandledrejection",n,r)}),e.rejection=l||K(e)?2:1,t.error))throw t.value})},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(v,u,function(){var t=e.facade;l?P.emit("rejectionHandled",t):H("rejectionhandled",t,e.value)})},Y=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},J=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new $("Promise can't be resolved itself");var r=z(t);r?O(function(){var n={done:!1};try{c(r,t,Y(J,n,e),Y(Q,n,e))}catch(t){Q(n,t,e)}}):(e.value=t,e.state=1,V(e,!1))}catch(t){Q({done:!1},t,e)}}};if(F&&(M=(A=function(e){y(this,M),g(e),c(r,this);var t=R(this);try{e(Y(J,t),Y(Q,t))}catch(e){Q(t,e)}}).prototype,(r=function(e){D(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new N,rejection:!1,state:0,value:null})}).prototype=p(M,"then",function(e,t){var n=R(this),r=B(S(this,A));return n.parent=!0,r.ok=!b(e)||e,r.fail=b(t)&&t,r.domain=l?P.domain:void 0,0===n.state?n.reactions.add(r):O(function(){G(r,n)}),r.promise}),i=function(){var e=new r,t=R(e);this.promise=e,this.resolve=Y(J,t),this.reject=Y(Q,t)},j.f=B=function(e){return e===A||void 0===e?new i(e):L(e)},!s&&b(T)&&C!==Object.prototype)){a=C.then,E||p(C,"then",function(e,t){var n=this;return new A(function(e,t){c(a,n,e,t)}).then(e,t)},{unsafe:!0});try{delete C.constructor}catch(e){}d&&d(C,M)}o({global:!0,constructor:!0,wrap:!0,forced:F},{Promise:A}),f(A,"Promise",!1,!0),h("Promise")},function(e,t,n){"use strict";var r=n(98),i=n(220),a=n(49),o=n(57),s=a("species");e.exports=function(e){var t=r(e);o&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(143),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},function(e,t,n){"use strict";var r=n(69),i=n(315),a=n(194),o=n(49)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||a(n=r(s)[o])?t:i(n)}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},function(e,t,n){"use strict";var r,i,a,o,s,l=n(46),u=n(613),c=n(198),p=n(329).set,d=n(331),f=n(330),h=n(614),g=n(615),b=n(291),m=l.MutationObserver||l.WebKitMutationObserver,y=l.document,S=l.process,v=l.Promise,O=u("queueMicrotask");if(!O){var x=new d,I=function(){var e,t;for(b&&(e=S.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&r(),e}e&&e.enter()};f||b||g||!m||!y?!h&&v&&v.resolve?((o=v.resolve(void 0)).constructor=v,s=c(o.then,o),r=function(){s(I)}):b?r=function(){S.nextTick(I)}:(p=c(p,l),r=function(){p(I)}):(i=!0,a=y.createTextNode(""),new m(I).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),O=function(e){x.head||r(),x.add(e)}}e.exports=O},function(e,t,n){"use strict";var r=n(46),i=n(57),a=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=a(r,e);return t&&t.value}},function(e,t,n){"use strict";var r=n(124);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},function(e,t,n){"use strict";var r=n(124);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){"use strict";e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},function(e,t,n){"use strict";var r=n(37),i=n(58),a=n(102),o=n(203),s=n(292),l=n(290);r({target:"Promise",stat:!0,forced:n(332)},{all:function(e){var t=this,n=o.f(t),r=n.resolve,u=n.reject,c=s(function(){var n=a(t.resolve),o=[],s=0,c=1;l(e,function(e){var a=s++,l=!1;c++,i(n,t,e).then(function(e){l||(l=!0,o[a]=e,--c||r(o))},u)}),--c||r(o)});return c.error&&u(c.value),n.promise}})},function(e,t,n){"use strict";var r=n(37),i=n(103),a=n(202).CONSTRUCTOR,o=n(201),s=n(98),l=n(48),u=n(104),c=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(o)){var p=s("Promise").prototype.catch;c.catch!==p&&u(c,"catch",p,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(37),i=n(58),a=n(102),o=n(203),s=n(292),l=n(290);r({target:"Promise",stat:!0,forced:n(332)},{race:function(e){var t=this,n=o.f(t),r=n.reject,u=s(function(){var o=a(t.resolve);l(e,function(e){i(o,t,e).then(n.resolve,r)})});return u.error&&r(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(37),i=n(203);r({target:"Promise",stat:!0,forced:n(202).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},function(e,t,n){"use strict";var r=n(37),i=n(98),a=n(103),o=n(201),s=n(202).CONSTRUCTOR,l=n(622),u=i("Promise"),c=a&&
13!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(e){return l(c&&this===u?o:this,e)}})},function(e,t,n){"use strict";var r=n(69),i=n(66),a=n(203);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(41),i=n(46).RegExp,a=r(function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),o=a||r(function(){return!i("a","y").sticky});e.exports={BROKEN_CARET:a||r(function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(e,t,n){"use strict";var r=n(41),i=n(46).RegExp;e.exports=r(function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},function(e,t,n){"use strict";var r=n(41),i=n(46).RegExp;e.exports=r(function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},function(e,t,n){"use strict";var r=n(214).PROPER,i=n(104),a=n(69),o=n(88),s=n(41),l=n(627),u=RegExp.prototype,c=u.toString,p=s(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),d=r&&"toString"!==c.name;(p||d)&&i(u,"toString",function(){var e=a(this);return"/"+o(e.source)+"/"+o(l(e))},{unsafe:!0})},function(e,t,n){"use strict";var r=n(58),i=n(65),a=n(143),o=n(334),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!a(s,e)?t:r(o,e)}},function(e,t,n){"use strict";var r=n(37),i=n(43),a=n(629),o=n(142),s=n(88),l=n(631),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(630),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var r=n(66),i=n(115),a=n(49)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},function(e,t,n){"use strict";var r=n(49)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(335).charAt,i=n(88),a=n(157),o=n(323),s=n(325),l=a.set,u=a.getterFor("String Iterator");o(String,"String",function(e){l(this,{type:"String Iterator",string:i(e),index:0})},function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))})},function(e,t,n){"use strict";var r=n(58),i=n(634),a=n(69),o=n(194),s=n(306),l=n(88),u=n(142),c=n(212),p=n(635),d=n(636);i("match",function(e,t,n){return[function(t){var n=u(this),i=o(t)?void 0:c(t,e);return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=a(this),i=l(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return d(r,i);var u=r.unicode;r.lastIndex=0;for(var c,f=[],h=0;null!==(c=d(r,i));){var g=l(c[0]);f[h]=g,""===g&&(r.lastIndex=p(i,s(r.lastIndex),u)),h++}return 0===h?null:f}]})},function(e,t,n){"use strict";n(333);var r=n(58),i=n(104),a=n(293),o=n(41),s=n(49),l=n(156),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,p){var d=s(e),f=!o(function(){var t={};return t[d]=function(){return 7},7!==""[e](t)}),h=f&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t});if(!f||!h||n){var g=/./[d],b=t(d,""[e],function(e,t,n,i,o){var s=t.exec;return s===a||s===c.exec?f&&!o?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}});i(String.prototype,e,b[0]),i(c,d,b[1])}p&&l(c[d],"sham",!0)}},function(e,t,n){"use strict";var r=n(335).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(58),i=n(69),a=n(48),o=n(115),s=n(293),l=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===o(e))return r(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(46),i=n(336),a=n(337),o=n(317),s=n(156),l=function(e){if(e&&e.forEach!==o)try{s(e,"forEach",o)}catch(t){e.forEach=o}};for(var u in i)i[u]&&l(r[u]&&r[u].prototype);l(a)},function(e,t,n){"use strict";var r=n(46),i=n(336),a=n(337),o=n(322),s=n(156),l=n(197),u=n(49)("iterator"),c=o.values,p=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),i[t]){for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch(t){e[n]=o[n]}}}};for(var d in i)p(r[d]&&r[d].prototype,d);p(a,"DOMTokenList")},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r,o,s=u(e),l=s[0],c=s[1],p=new a((t=0,3*(l+(n=c))/4-n)),d=0,f=c>0?l-4:l;for(o=0;o<f;o+=4)r=i[e.charCodeAt(o)]<<18|i[e.charCodeAt(o+1)]<<12|i[e.charCodeAt(o+2)]<<6|i[e.charCodeAt(o+3)],p[d++]=r>>16&255,p[d++]=r>>8&255,p[d++]=255&r;return 2===c&&(r=i[e.charCodeAt(o)]<<2|i[e.charCodeAt(o+1)]>>4,p[d++]=255&r),1===c&&(r=i[e.charCodeAt(o)]<<10|i[e.charCodeAt(o+1)]<<4|i[e.charCodeAt(o+2)]>>2,p[d++]=r>>8&255,p[d++]=255&r),p},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(c(e,o,o+16383>
13s?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return -1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,a=[],o=t;o<n;o+=3)a.push(r[(i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,p=n?i-1:0,d=n?-1:1,f=e[t+p];for(p+=d,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+p],p+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+p],p+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=u}return(f?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,p=c>>1,d=5960464477539062e-23*(23===i),f=r?0:a-1,h=r?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(o++,l/=2),o+p>=c?(s=0,o=c):o+p>=1?(s=(t*l-1)*Math.pow(2,i),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+f]=255&o,f+=h,o/=256,u-=8);e[n+f-h]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(e){let t;var r=n(24);let i=()=>n(646);class a{constructor(){this.util=n(647),this.textEncoder=new this.util.TextEncoder}fetch(e,n){return null!=Object(r.c)().global.fetch?Object(r.c)().global.fetch(e,n):(null==t&&(t=i()),t(e,n))}now(){let t=e.hrtime();return 1e3*t[0]+t[1]/1e6}encode(e,t){if("utf-8"!==t&&"utf8"!==t)throw Error("Node built-in encoder only supports utf-8, but got "+t);return this.textEncoder.encode(e)}decode(e,t){return 0===e.length?"":new this.util.TextDecoder(t).decode(e)}isTypedArray(e){return this.util.types.isFloat32Array(e)||this.util.types.isInt32Array(e)||this.util.types.isUint8Array(e)||this.util.types.isUint8ClampedArray(e)}}Object(r.c)().get("IS_NODE")&&!Object(r.c)().get("IS_BROWSER")&&Object(r.c)().setPlatform("node",new a)}).call(this,n(144))},function(e,t){},function(e,t){},function(e,t,n){(function(e){var r;!function(e,i,a){function o(e){var t=this,n=function(){var e=0xefc8249d;return function(t){t=String(t);for(var n=0;n<t.length;n++){var r=.02519603282416938*(e+=t.charCodeAt(n));r-=e=r>>>0,e=(r*=e)>>>0,e+=0x100000000*(r-=e)}return 23283064365386963e-26*(e>>>0)}}();t.next=function(){var e=2091639*t.s0+23283064365386963e-26*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=n(" "),t.s1=n(" "),t.s2=n(" "),t.s0-=n(e),t.s0<0&&(t.s0+=1),t.s1-=n(e),t.s1<0&&(t.s1+=1),t.s2-=n(e),t.s2<0&&(t.s2+=1),n=null}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function l(e,t){var n=new o(e),r=t&&t.state,i=n.next;return i.int32=function(){return 0x100000000*n.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n(89)&&n(161)?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.alea=l}(0,e,n(89))}).call(this,n(160)(e))},function(e,t,n){(function(e){var r;!function(e,i,a){function o(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=n.charCodeAt(r),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function l(e,t){var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/0x100000000};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n(89)&&n(161)?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.xor128=l}(0,e,n(89))}).call(this,n(160)(e))},function(e,t,n){(function(e){var r;!function(e,i,a){function o(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=n.charCodeAt(r),r==n.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function l(e,t){var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/0x100000000};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n(89)&&n(161)?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.xorwow=l}
vendor: 7,754 bytes, line 13
13(0,e,n(89))}).call(this,n(160)(e))},function(e,t,n){(function(e){var r;!function(e,i,a){function o(e){var t=this;t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],n=(e^=e>>>7)^e<<24^((e=r[i+1&7])^e>>>10)^((e=r[i+3&7])^e>>>3)^((e=r[i+4&7])^e<<7),e=r[i+7&7],n^=(e^=e<<13)^e<<9,r[i]=n,t.i=i+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,n=0;n<t.length;++n)r[7&n]=r[7&n]<<15^t.charCodeAt(n)+r[n+1&7]<<13;for(;r.length<8;)r.push(0);for(n=0;n<8&&0===r[n];++n);for(8==n?r[7]=-1:r[n],e.x=r,e.i=0,n=256;n>0;--n)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function l(e,t){null==e&&(e=+new Date);var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/0x100000000};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n(89)&&n(161)?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.xorshift7=l}(0,e,n(89))}).call(this,n(160)(e))},function(e,t,n){(function(e){var r;!function(e,i,a){function o(e){var t=this;t.next=function(){var e,n,r=t.w,i=t.X,a=t.i;return t.w=r=r+0x61c88647|0,n=i[a+34&127],e=i[a=a+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=i[a]=n^e,t.i=a,n+(r^r>>>16)|0},function(e,t){var n,r,i,a,o,s=[],l=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,l=Math.max(l,t.length)),i=0,a=-32;a<l;++a)t&&(r^=t.charCodeAt((a+32)%t.length)),0===a&&(o=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,a>=0&&(o=o+0x61c88647|0,i=0==(n=s[127&a]^=r+o)?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,a=512;a>0;--a)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;e.w=o,e.X=s,e.i=i}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function l(e,t){null==e&&(e=+new Date);var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/0x100000000};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n(89)&&n(161)?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.xor4096=l}(0,e,n(89))}).call(this,n(160)(e))},function(e,t,n){(function(e){var r;!function(e,i,a){function o(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-0x61c88647,t.d=0x517cc1b7,e===Math.floor(e)?(t.a=e/0x100000000|0,t.b=0|e):n+=e;for(var r=0;r<n.length+20;r++)t.b^=n.charCodeAt(r),t.next()}function s(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function l(e,t){var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/0x100000000};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/0x100000000)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n(89)&&n(161)?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.tychei=l}(0,e,n(89))}).call(this,n(160)(e))},function(e,t,n){var r;!function(i,a,o){var s,l=o.pow(256,6),u=o.pow(2,52),c=2*u;function p(e,t,n){var r=[],p=h(function e(t,n){var r,i=[],a=typeof t;if(n&&"object"==a)for(r in t)try{i.push(e(t[r],n-1))}catch(e){}return i.length?i:"string"==a?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,g(a)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(256):(e=new Uint8Array(256),(i.crypto||i.msCrypto).getRandomValues(e)),g(e)}catch(e){var t=i.navigator,n=t&&t.plugins;return[+new Date,i,n,i.screen,g(a)]}}():e,3),r),b=new d(r),m=function(){for(var e=b.g(6),t=l,n=0;e<u;)e=256*(e+n),t*=256,n=b.g(1);for(;e>=c;)e/=2,t/=2,n>>>=1;return(e+n)/t};return m.int32=function(){return 0|b.g(4)},m.quick=function(){return b.g(4)/0x100000000},m.double=m,h(g(b.S),a),(t.pass||n||function(e,t,n,r){return r&&(r.S&&f(r,b),e.state=function(){return f(b,{})}),n?(o.random=e,t):e})(m,p,"global"in t?t.global:this==o,t.state)}function d(e){var t,n=e.length,r=this,i=0,a=r.i=r.j=0,o=r.S=[];for(n||(e=[n++]);i<256;)o[i]=i++;for(i=0;i<256;i++)o[i]=o[a=255&a+e[i%n]+(t=o[i])],o[a]=t;(r.g=function(e){for(var t,n=0,i=r.i,a=r.j,o=r.S;e--;)t=o[i=255&i+1],n=256*n+o[255&(o[i]=o[a=255&a+t])+(o[a]=t)];return r.i=i,r.j=a,n})(256)}function f(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function h(e,t){for(var n,r=e+"",i=0;i<r.length;)t[255&i]=255&(n^=19*t[255&i])+r.charCodeAt(i++);return g(t)}function g(e){return String.fromCharCode.apply(0,e)}if(h(o.random(),a),e.exports){e.exports=p;try{s=n(655)}catch(e){}}else void 0===(r=(function(){return p}).call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof self?self:this,[],Math)},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(657),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(114))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i=1,a={},o=!1,s=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"===({}).toString.call(e.process)?r=function(e){t.nextTick(function(){c(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&c(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},r=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;r=function(t){var n=s.createElement("script");n.onreadystatechange=function(){c(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():r=function(e){setTimeout(c,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=Function(""+e));for(var t=Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return a[i]=o,r(i),i++},l.clearImmediate=u}function u(e){delete a[e]}function c(e){if(o)setTimeout(c,0,e);else{var t=a[e];if(t){o=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{u(e),o=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(114),n(144))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";(function(e){let t;var r=n(28);let i=()=>n(662);class a{constructor(){this.util=n(663),this.textEncoder=new this.util.TextEncoder}
13fetch(e,n){return null!=Object(r.b)().global.fetch?Object(r.b)().global.fetch(e,n):(null==t&&(t=i()),t(e,n))}now(){let t=e.hrtime();return 1e3*t[0]+t[1]/1e6}encode(e,t){if("utf-8"!==t&&"utf8"!==t)throw Error("Node built-in encoder only supports utf-8, but got "+t);return this.textEncoder.encode(e)}decode(e,t){return 0===e.length?"":new this.util.TextDecoder(t).decode(e)}}Object(r.b)().get("IS_NODE")&&!Object(r.b)().get("IS_BROWSER")&&Object(r.b)().setPlatform("node",new a)}).call(this,n(144))},function(e,t){},function(e,t){},function(e,t,n){},function(e){e.exports=JSON.parse('{"name":"@3dlook-me/camera-rpv","version":"1.32.0","description":"Widget camera component","engines":{"node":">=12.0.0"},"scripts":{"start":"cross-env NODE_ENV=development webpack-dev-server","build:test":"cross-env NODE_ENV=development webpack --progress","build:prod":"cross-env NODE_ENV=production webpack --progress"},"publishConfig":{"registry":"https://npm.pkg.github.com"},"repository":"github:3dlook-me/widget-camera-rpv","files":["dist/","README.md","LICENSE.md"],"author":"3DLOOK","license":"ISC","main":"dist/index.js","homepage":"https://github.com/3dlook-me/widget-camera-rpv/src","devDependencies":{"@babel/core":"^7.24.0","@babel/plugin-transform-class-properties":"^7.24.1","@babel/plugin-transform-react-jsx":"^7.23.4","@babel/plugin-transform-runtime":"^7.24.0","@babel/preset-env":"^7.24.0","autoprefixer":"^9.7.4","babel-eslint":"^10.0.3","babel-loader":"^8.3.0","breakpoint-sass":"^2.7.1","clean-webpack-plugin":"^3.0.0","cross-env":"^7.0.0","css-loader":"^3.4.2","cssnano":"^4.1.10","eslint":"^9.24.0","eslint-plugin-import":"^2.20.1","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.18.3","file-loader":"^5.0.2","git-revision-webpack-plugin":"^3.0.4","html-loader":"^0.5.5","html-webpack-inline-source-plugin":"0.0.10","html-webpack-plugin":"^3.2.0","image-webpack-loader":"^6.0.0","jsdoc":"^3.6.3","jsdoc-to-markdown":"^5.0.3","mini-css-extract-plugin":"^0.9.0","postcss-loader":"^3.0.0","preact-compat-enzyme":"^0.2.5","preact-test-utils":"^0.1.4","regenerator-runtime":"^0.13.3","rename-output-webpack-plugin":"^1.0.1","sass-loader":"^8.0.2","standard-version":"^7.1.0","style-loader":"^1.1.3","terser-webpack-plugin":"^2.3.4","webpack":"^4.41.5","webpack-clean":"^1.2.3","webpack-cli":"^3.2.3","webpack-dev-server":"^3.10.3"},"dependencies":{"@babel/runtime":"^7.24.0","@mediapipe/drawing_utils":"^0.3.1675466124","@mediapipe/pose":"^0.5.1675469404","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@tensorflow/tfjs":"^4.22.0","@tensorflow/tfjs-tflite":"^0.0.1-alpha.9","classnames":"^2.5.1","core-js":"^3.36.0","preact":"^10.19.6","regenerator-runtime":"^0.14.0","sass":"^1.71.1","semantic-release":"^22.0.12"},"peerDependencies":{"preact":"^10.19.6"}}')},function(e,t,n){"use strict";let r,i,a;n.r(t);var o,s,l,u,c,p,d,f={};n.r(f),n.d(f,"maxNorm",function(){return oa}),n.d(f,"unitNorm",function(){return oo}),n.d(f,"nonNeg",function(){return os}),n.d(f,"minMaxNorm",function(){return ol});var h={};n.r(h),n.d(h,"zeros",function(){return ou}),n.d(h,"ones",function(){return oc}),n.d(h,"constant",function(){return op}),n.d(h,"randomUniform",function(){return od}),n.d(h,"randomNormal",function(){return of}),n.d(h,"truncatedNormal",function(){return oh}),n.d(h,"identity",function(){return og}),n.d(h,"varianceScaling",function(){return ob}),n.d(h,"glorotUniform",function(){return om}),n.d(h,"glorotNormal",function(){return oy}),n.d(h,"heNormal",function(){return oS}),n.d(h,"heUniform",function(){return ov}),n.d(h,"leCunNormal",function(){return oO}),n.d(h,"leCunUniform",function(){return ox}),n.d(h,"orthogonal",function(){return oI});var g={};n.r(g),n.d(g,"inputLayer",function(){return u_}),n.d(g,"elu",function(){return uE}),n.d(g,"reLU",function(){return uR}),n.d(g,"leakyReLU",function(){return uD}),n.d(g,"prelu",function(){return uC}),n.d(g,"softmax",function(){return uA}),n.d(g,"thresholdedReLU",function(){return uM}),n.d(g,"conv1d",function(){return u$}),n.d(g,"conv2d",function(){return uU}),n.d(g,"conv2dTranspose",function(){return uP}),n.d(g,"conv3d",function(){return uB}),n.d(g,"conv3dTranspose",function(){return uL}),n.d(g,"separableConv2d",function(){return uW}),n.d(g,"cropping2D",function(){return uz}),n.d(g,"upSampling2d",function(){return uG}),n.d(g,"depthwiseConv2d",function(){return uV}),n.d(g,"activation",function(){return uH}
13),n.d(g,"dense",function(){return uq}),n.d(g,"dropout",function(){return uK}),n.d(g,"spatialDropout1d",function(){return uX}),n.d(g,"flatten",function(){return uY}),n.d(g,"repeatVector",function(){return uQ}),n.d(g,"reshape",function(){return uJ}),n.d(g,"permute",function(){return uZ}),n.d(g,"embedding",function(){return u0}),n.d(g,"add",function(){return u1}),n.d(g,"average",function(){return u2}),n.d(g,"concatenate",function(){return u3}),n.d(g,"maximum",function(){return u4}),n.d(g,"minimum",function(){return u6}),n.d(g,"multiply",function(){return u5}),n.d(g,"dot",function(){return u8}),n.d(g,"batchNormalization",function(){return u7}),n.d(g,"layerNormalization",function(){return u9}),n.d(g,"zeroPadding2d",function(){return ce}),n.d(g,"averagePooling1d",function(){return ct}),n.d(g,"avgPool1d",function(){return cn}),n.d(g,"avgPooling1d",function(){return cr}),n.d(g,"averagePooling2d",function(){return ci}),n.d(g,"avgPool2d",function(){return ca}),n.d(g,"avgPooling2d",function(){return co}),n.d(g,"averagePooling3d",function(){return cs}),n.d(g,"avgPool3d",function(){return cl}),n.d(g,"avgPooling3d",function(){return cu}),n.d(g,"globalAveragePooling1d",function(){return cc}),n.d(g,"globalAveragePooling2d",function(){return cp}),n.d(g,"globalMaxPooling1d",function(){return cd}),n.d(g,"globalMaxPooling2d",function(){return cf}),n.d(g,"maxPooling1d",function(){return ch}),n.d(g,"maxPooling2d",function(){return cg}),n.d(g,"maxPooling3d",function(){return cb}),n.d(g,"gru",function(){return cm}),n.d(g,"gruCell",function(){return cy}),n.d(g,"lstm",function(){return cS}),n.d(g,"lstmCell",function(){return cv}),n.d(g,"simpleRNN",function(){return cO}),n.d(g,"simpleRNNCell",function(){return cx}),n.d(g,"convLstm2d",function(){return cI}),n.d(g,"convLstm2dCell",function(){return cN}),n.d(g,"rnn",function(){return ck}),n.d(g,"stackedRNNCells",function(){return cT}),n.d(g,"bidirectional",function(){return cw}),n.d(g,"timeDistributed",function(){return cj}),n.d(g,"globalMaxPool1d",function(){return cF}),n.d(g,"globalMaxPool2d",function(){return c_}),n.d(g,"maxPool1d",function(){return cE}),n.d(g,"maxPool2d",function(){return cR}),n.d(g,"Layer",function(){return aX}),n.d(g,"RNN",function(){return lx}),n.d(g,"RNNCell",function(){return lI}),n.d(g,"input",function(){return sF}),n.d(g,"gaussianNoise",function(){return cD}),n.d(g,"gaussianDropout",function(){return cC}),n.d(g,"alphaDropout",function(){return cA}),n.d(g,"masking",function(){return cM}),n.d(g,"rescaling",function(){return c$}),n.d(g,"centerCrop",function(){return cU}),n.d(g,"resizing",function(){return cP}),n.d(g,"categoryEncoding",function(){return cB}),n.d(g,"randomWidth",function(){return cL});var b={};n.r(b),n.d(b,"binaryAccuracy",function(){return cW}),n.d(b,"binaryCrossentropy",function(){return cz}
13),n.d(b,"sparseCategoricalAccuracy",function(){return cG}),n.d(b,"categoricalAccuracy",function(){return cV}),n.d(b,"categoricalCrossentropy",function(){return cH}),n.d(b,"precision",function(){return cq}),n.d(b,"recall",function(){return cK}),n.d(b,"cosineProximity",function(){return cX}),n.d(b,"meanAbsoluteError",function(){return cY}),n.d(b,"meanAbsolutePercentageError",function(){return cQ}),n.d(b,"MAPE",function(){return cJ}),n.d(b,"mape",function(){return cZ}),n.d(b,"meanSquaredError",function(){return c0}),n.d(b,"MSE",function(){return c1}),n.d(b,"mse",function(){return c2}),n.d(b,"r2Score",function(){return c3});var m={};n.r(m),n.d(m,"modelFromJSON",function(){return sN});var y={};n.r(y),n.d(y,"l1l2",function(){return c4}),n.d(y,"l1",function(){return c6}),n.d(y,"l2",function(){return c5});var S={};n.r(S),n.d(S,"abs",function(){return po.b}),n.d(S,"acos",function(){return po.c}),n.d(S,"acosh",function(){return po.d}),n.d(S,"add",function(){return po.e}),n.d(S,"addN",function(){return po.f}),n.d(S,"all",function(){return po.g}),n.d(S,"any",function(){return po.h}),n.d(S,"argMax",function(){return po.i}),n.d(S,"argMin",function(){return po.j}),n.d(S,"asin",function(){return po.k}),n.d(S,"asinh",function(){return po.l}),n.d(S,"atan",function(){return po.m}),n.d(S,"atan2",function(){return po.n}),n.d(S,"atanh",function(){return po.o}),n.d(S,"avgPool",function(){return po.p}),n.d(S,"avgPool3d",function(){return po.q}),n.d(S,"basicLSTMCell",function(){return po.r}),n.d(S,"batchToSpaceND",function(){return po.w}),n.d(S,"batchNorm",function(){return po.s}),n.d(S,"batchNorm2d",function(){return po.t}),n.d(S,"batchNorm3d",function(){return po.u}),n.d(S,"batchNorm4d",function(){return po.v}),n.d(S,"bincount",function(){return po.x}),n.d(S,"bitwiseAnd",function(){return po.y}),n.d(S,"broadcastArgs",function(){return po.A}),n.d(S,"broadcastTo",function(){return po.B}),n.d(S,"buffer",function(){return po.C}),n.d(S,"cast",function(){return po.D}),n.d(S,"ceil",function(){return po.E}),n.d(S,"clipByValue",function(){return po.F}),n.d(S,"clone",function(){return po.G}),n.d(S,"complex",function(){return po.H}),n.d(S,"concat",function(){return po.I}),n.d(S,"concat1d",function(){return po.J}),n.d(S,"concat2d",function(){return po.K}),n.d(S,"concat3d",function(){return po.L}),n.d(S,"concat4d",function(){return po.M}),n.d(S,"conv1d",function(){return po.N}),n.d(S,"conv2d",function(){return po.O}),n.d(S,"conv2dTranspose",function(){return po.P}),n.d(S,"conv3d",function(){return po.Q}),n.d(S,"conv3dTranspose",function(){return po.R}),n.d(S,"cos",function(){return po.S}),n.d(S,"cosh",function(){return po.T}),n.d(S,"cumprod",function(){return po.V}),n.d(S,"cumsum",function(){return po.W}),n.d(S,"denseBincount",function(){return po.X}),n.d(S,"depthToSpace",function(){return po.Y}),n.d(S,"depthwiseConv2d",function(){return po.Z}),n.d(S,"diag",function(){return po.ab}),n.d(S,"dilation2d",function(){return po.bb}),n.d(S,"div",function(){return po.cb}),n.d(S,"divNoNan",function(){return po.db}),n.d(S,"dot",function(){return po.eb}),n.d(S,"einsum",function(){return po.gb}),n.d(S,"elu",function(){return po.hb}),n.d(S,"ensureShape",function(){return po.jb}),n.d(S,"equal",function(){return po.kb}),n.d(S,"erf",function(){return po.lb}),n.d(S,"euclideanNorm",function(){return po.mb}),n.d(S,"exp",function(){return po.nb}),n.d(S,"expandDims",function(){return po.ob}),n.d(S,"expm1",function(){return po.pb}),n.d(S,"eye",function(){return po.qb}),n.d(S,"fill",function(){return po.sb}),n.d(S,"floor",function(){return po.tb}),n.d(S,"floorDiv",function(){return po.ub}),n.d(S,"gather",function(){return po.wb}),n.d(S,"greater",function(){return po.yb}),n.d(S,"greaterEqual",function(){return po.zb}),n.d(S,"imag",function(){return po.Bb}),n.d(S,"isFinite",function(){return po.Fb}),n.d(S,"isInf",function(){return po.Gb}),n.d(S,"isNaN",function(){return po.Hb}),n.d(S,"leakyRelu",function(){return po.Ib}),n.d(S,"less",function(){return po.Jb}),n.d(S,"lessEqual",function(){return po.Kb}),n.d(S,"linspace",function(){return po.Mb}),n.d(S,"localResponseNormalization",function(){return po.Nb}),n.d(S,"log",function(){return po.Ob}),n.d(S,"log1p",function(){return po.Pb}),n.d(S,"logSigmoid",function(){return po.Qb}),n.d(S,"logSoftmax",function(){return po.Rb}),n.d(S,"logSumExp",function(){return po.Sb}),n.d(S,"logicalAnd",function(){return po.Tb}),n.d(S,"logicalNot",function(){return po.Ub}),n.d(S,"logicalOr",function(){return po.Vb}),n.d(S,"logicalXor",function(){return po.Wb}),n.d(S,"lowerBound",function(){return po.Yb}),n.d(S,"matMul",function(){return po.Zb}),n.d(S,"max",function(){return po.ac}),n.d(S,"maxPool",function(){return po.bc}),n.d(S,"maxPool3d",function(){return po.cc}),n.d(S,"maxPoolWithArgmax",function(){return po.dc}),n.d(S,"maximum",function(){return po.ec}),n.d(S,"mean",function(){return po.fc}),n.d(S,"meshgrid",function(){return po.gc}),n.d(S,"min",function(){return po.hc}),n.d(S,"minimum",function(){return po.ic}),n.d(S,"mirrorPad",function(){return po.jc}),n.d(S,"mod",function(){return po.kc}),n.d(S,"moments",function(){return po.lc}),n.d(S,"mul",function(){return po.nc}),n.d(S,"multiRNNCell",function(){return po.oc}),n.d(S,"multinomial",function(){return po.pc}),n.d(S,"neg",function(){return po.qc}),n.d(S,"notEqual",function(){return po.sc}),n.d(S,"oneHot",function(){return po.tc}),n.d(S,"ones",function(){return po.uc}),n.d(S,"onesLike",function(){return po.vc}),n.d(S,"outerProduct",function(){return po.xc}),n.d(S,"pad",function(){return po.yc}),n.d(S,"pad1d",function(){return po.zc}),n.d(S,"pad2d",function(){return po.Ac}),n.d(S,"pad3d",function(){return po.Bc}),n.d(S,"pad4d",function(){return po.Cc}),n.d(S,"pool",function(){return po.Dc}),n.d(S,"pow",function(){return po.Ec}),n.d(S,"prelu",function(){return po.Fc}),n.d(S,"print",function(){return po.Gc}),n.d(S,"prod",function(){return po.Hc}),n.d(S,"raggedGather",function(){return po.Ic}),n.d(S,"raggedRange",function(){return po.Jc}),n.d(S,"raggedTensorToTensor",function(){return po.Kc}),n.d(S,"rand",function(){return po.Lc}),n.d(S,"randomGamma",function(){return po.Mc}),n.d(S,"randomNormal",function(){return po.Nc}),n.d(S,"randomStandardNormal",function(){return po.Oc}),n.d(S,"randomUniform",function(){return po.Pc}),n.d(S,"randomUniformInt",function(){return po.Qc}),n.d(S,"range",function(){return po.Rc}),n.d(S,"real",function(){return po.Sc}),n.d(S,"reciprocal",function(){return po.Tc}),n.d(S,"relu",function(){return po.Uc}),n.d(S,"relu6",function(){return po.Vc}),n.d(S,"reshape",function(){return po.Wc}),n.d(S,"reverse",function(){return po.Xc}),n.d(S,"reverse1d",function(){return po.Yc}),n.d(S,"reverse2d",function(){return po.Zc}),n.d(S,"reverse3d",function(){return po.ad}),n.d(S,"reverse4d",function(){return po.bd}),n.d(S,"round",function(){return po.dd}),n.d(S,"rsqrt",function(){return po.ed}),n.d(S,"scalar",function(){return po.fd}),n.d(S,"selu",function(){return po.id}),n.d(S,"separableConv2d",function(){return po.jd}),n.d(S,"setdiff1dAsync",function(){return po.kd}),n.d(S,"sigmoid",function(){return po.ld}),n.d(S,"sign",function(){return po.md}),n.d(S,"sin",function(){return po.od}),n.d(S,"sinh",function(){return po.pd}),n.d(S,"slice",function(){return po.qd}),n.d(S,"slice1d",function(){return po.rd}),n.d(S,"slice2d",function(){return po.sd}),n.d(S,"slice3d",function(){return po.td}),n.d(S,"slice4d",function(){return po.ud}),n.d(S,"softmax",function(){return po.vd}),n.d(S,"softplus",function(){return po.wd}),n.d(S,"spaceToBatchND",function(){return po.xd}),n.d(S,"fft",function(){return po.rb}),n.d(S,"ifft",function(){return po.Ab}),n.d(S,"irfft",function(){return po.Eb}),n.d(S,"rfft",function(){return po.cd}),n.d(S,"split",function(){return po.Bd}),n.d(S,"sqrt",function(){return po.Cd}),n.d(S,"square",function(){return po.Dd}),n.d(S,"squaredDifference",function(){return po.Ed}),n.d(S,"squeeze",function(){return po.Fd}),n.d(S,"stack",function(){return po.Gd}),n.d(S,"step",function(){return po.Hd}),n.d(S,"stridedSlice",function(){return po.Id}),n.d(S,"sub",function(){return po.Kd}),n.d(S,"sum",function(){return po.Ld}),n.d(S,"tan",function(){return po.Md}),n.d(S,"tanh",function(){return po.Nd}),n.d(S,"tensor",function(){return po.Od}),n.d(S,"tensor1d",function(){return po.Pd}),n.d(S,"tensor2d",function(){return po.Qd}),n.d(S,"tensor3d",function(){return po.Rd}),n.d(S,"tensor4d",function(){return po.Sd}),n.d(S,"tensor5d",function(){return po.Td}),n.d(S,"tensor6d",function(){return po.Ud}),n.d(S,"tensorScatterUpdate",function(){return po.Vd}),n.d(S,"tile",function(){return po.Wd}),n.d(S,"topk",function(){return po.Xd}),n.d(S,"truncatedNormal",function(){return po.Zd}),n.d(S,"unique",function(){return po.ae}),n.d(S,"unsortedSegmentSum",function(){return po.be}),n.d(S,"unstack",function(){return po.ce}),n.d(S,"upperBound",function(){return po.de}),n.d(S,"variable",function(){return po.ee}),n.d(S,"where",function(){return po.fe}),n.d(S,"whereAsync",function(){return po.ge}),n.d(S,"zeros",function(){return po.he}),n.d(S,"zerosLike",function(){return po.ie}),n.d(S,"booleanMaskAsync",function(){return po.z}),n.d(S,"transpose",function(){return po.Yd}),n.d(S,"norm",function(){return po.rc}),n.d(S,"movingAverage",function(){return po.mc}),n.d(S,"scatterND",function(){return po.gd}),n.d(S,"searchSorted",function(){return po.hd}),n.d(S,"sparseToDense",function(){return po.zd}),n.d(S,"gatherND",function(){return po.xb}),n.d(S,"dropout",function(){return po.fb}),n.d(S,"enclosingPowerOfTwo",function(){return po.ib}),n.d(S,"cosineWindow",function(){return po.U}),n.d(S,"inTopKAsync",function(){return po.Db}),n.d(S,"op",function(){return po.wc}),n.d(S,"OP_SCOPE_SUFFIX",function(){return po.a}),n.d(S,"image",function(){return po.Cb}),n.d(S,"linalg",function(){return po.Lb}),n.d(S,"losses",function(){return po.Xb}),n.d(S,"spectral",function(){return po.Ad}),n.d(S,"fused",function(){return po.vb}),n.d(S,"signal",function(){return po.nd}),n.d(S,"sparse",function(){return po.yd}),n.d(S,"string",function(){return po.Jd});var v={};n.r(v),n.d(v,"array",function(){return pB}),n.d(v,"Dataset",function(){return pU}),n.d(v,"zip",function(){return pL}),n.d(v,"CSVDataset",function(){return pX}),n.d(v,"TextLineDataset",function(){return pz}),n.d(v,"csv",function(){return p6}),n.d(v,"func",function(){return p5}),n.d(v,"generator",function(){return p8}),n.d(v,"microphone",function(){return p9}),n.d(v,"webcam",function(){return p7}),n.d(v,"FileDataSource",function(){return p3}),n.d(v,"URLDataSource",function(){return p4}),n.d(v,"version_data",function(){return de});var O={};n.r(O),n.d(O,"simpleAbsImpl",function(){return di}),n.d(O,"addImpl",function(){return dv}),n.d(O,"bincountImpl",function(){return dN}),n.d(O,"bincountReduceImpl",function(){return dk}),n.d(O,"bitwiseAndImpl",function(){return dT}),n.d(O,"castImpl",function(){return dg}),n.d(O,"ceilImpl",function(){return dR}),n.d(O,"concatImpl",function(){return dA}),n.d(O,"equalImpl",function(){return dM}),n.d(O,"expImpl",function(){return dP}),n.d(O,"expm1Impl",function(){return dW}),n.d(O,"floorImpl",function(){return dV}),n.d(O,"floorDivImpl",function(){return dK}),n.d(O,"gatherNdImpl",function(){return dQ}),n.d(O,"gatherV2Impl",function(){return dJ}),n.d(O,"greaterImpl",function(){return dZ}),n.d(O,"greaterEqualImpl",function(){return d2}),n.d(O,"lessImpl",function(){return d6}),n.d(O,"lessEqualImpl",function(){return d7}),n.d(O,"linSpaceImpl",function(){return ft}),n.d(O,"logImpl",function(){return fn}),n.d(O,"maxImpl",function(){return fa}),n.d(O,"maximumImpl",function(){return fo}),n.d(O,"minimumImpl",function(){return fu}),n.d(O,"multiplyImpl",function(){return fd}),n.d(O,"negImpl",function(){return fb}),n.d(O,"notEqualImpl",function(){return fy}),n.d(O,"prodImpl",function(){return fN}),n.d(O,"raggedGatherImpl",function(){return fF}),n.d(O,"raggedRangeImpl",function(){return f_}),n.d(O,"raggedTensorToTensorImpl",function(){return fA}),n.d(O,"rangeImpl",function(){return fM}),n.d(O,"rsqrtImpl",function(){return f$}),n.d(O,"scatterImpl",function(){return fB}
13),n.d(O,"sigmoidImpl",function(){return fL}),n.d(O,"sliceImpl",function(){return fG}),n.d(O,"sparseFillEmptyRowsImpl",function(){return fq}),n.d(O,"sparseReshapeImpl",function(){return fK}),n.d(O,"sparseSegmentReductionImpl",function(){return fX}),n.d(O,"sqrtImpl",function(){return fY}),n.d(O,"squaredDifferenceImpl",function(){return fZ}),n.d(O,"staticRegexReplaceImpl",function(){return f2}),n.d(O,"stridedSliceImpl",function(){return f6}),n.d(O,"stringNGramsImpl",function(){return f8}),n.d(O,"stringSplitImpl",function(){return f9}),n.d(O,"stringToHashBucketFastImpl",function(){return he}),n.d(O,"subImpl",function(){return ht}),n.d(O,"tileImpl",function(){return ha}),n.d(O,"topKImpl",function(){return hl}),n.d(O,"transposeImpl",function(){return fO}),n.d(O,"uniqueImpl",function(){return hu});var x={};n.r(x),n.d(x,"callAndCheck",function(){return mV}),n.d(x,"canBeRepresented",function(){return mH}),n.d(x,"getWebGLErrorMessage",function(){return mq}),n.d(x,"getExtensionOrThrow",function(){return mK}),n.d(x,"createVertexShader",function(){return mX}),n.d(x,"createFragmentShader",function(){return mY}),n.d(x,"logShaderSourceAndInfoLog",function(){return mJ}),n.d(x,"createProgram",function(){return mZ}),n.d(x,"linkProgram",function(){return m0}),n.d(x,"validateProgram",function(){return m1}),n.d(x,"createStaticVertexBuffer",function(){return m2}),n.d(x,"createStaticIndexBuffer",function(){return m3}),n.d(x,"getNumChannels",function(){return m4}),n.d(x,"createTexture",function(){return m6}),n.d(x,"validateTextureSize",function(){return m5}),n.d(x,"createFramebuffer",function(){return m8}),n.d(x,"bindVertexBufferToProgramAttribute",function(){return m7}),n.d(x,"bindTextureUnit",function(){return m9}),n.d(x,"unbindTextureUnit",function(){return ye}),n.d(x,"getProgramUniformLocationOrThrow",function(){return yt}),n.d(x,"getProgramUniformLocation",function(){return yn}),n.d(x,"bindTextureToProgramUniformSampler",function(){return yr}),n.d(x,"bindCanvasToFramebuffer",function(){return yi}),n.d(x,"bindColorTextureToFramebuffer",function(){return ya}),n.d(x,"unbindColorTextureFromFramebuffer",function(){return yo}),n.d(x,"validateFramebuffer",function(){return ys}),n.d(x,"getFramebufferErrorMessage",function(){return yl}),n.d(x,"getBatchDim",function(){return yp}),n.d(x,"getRowsCols",function(){return yd}),n.d(x,"getShapeAs3D",function(){return yf}),n.d(x,"getTextureShapeFromLogicalShape",function(){return yh}),n.d(x,"isReshapeFree",function(){return yb}),n.d(x,"getWebGLMaxTextureSize",function(){return ym}),n.d(x,"resetMaxTextureSize",function(){return yy}),n.d(x,"resetMaxTexturesInShader",function(){return yS}),n.d(x,"getMaxTexturesInShader",function(){return yv}),n.d(x,"getWebGLDisjointQueryTimerVersion",function(){return yO}),n.d(x,"hasExtension",function(){return yx}),n.d(x,"isWebGLVersionEnabled",function(){return yI}),n.d(x,"isCapableOfRenderingToFloatTexture",function(){return yN}),n.d(x,"isDownloadFloatTextureEnabled",function(){return yk}),n.d(x,"isWebGLFenceEnabled",function(){return yw}),n.d(x,"assertNotComplex",function(){return yj});var I={};n.r(I),n.d(I,"createVertexShader",function(){return y8}),n.d(I,"createVertexBuffer",function(){return y7}),n.d(I,"createIndexBuffer",function(){return y9}),n.d(I,"getInternalFormatForFloat32MatrixTexture",function(){return St}),n.d(I,"createFloat32MatrixTexture",function(){return Sn}),n.d(I,"getInternalFormatForFloat16MatrixTexture",function(){return Sr}),n.d(I,"createFloat16MatrixTexture",function(){return Si}),n.d(I,"getInternalFormatForUnsignedBytesMatrixTexture",function(){return Sa}),n.d(I,"createUnsignedBytesMatrixTexture",function(){return So}),n.d(I,"getInternalFormatForPackedMatrixTexture",function(){return Ss}),n.d(I,"createPackedMatrixTexture",function(){return Sl}),n.d(I,"getInternalFormatForFloat16PackedMatrixTexture",function(){return Su}),n.d(I,"createFloat16PackedMatrixTexture",function(){return Sc}),n.d(I,"bindVertexProgramAttributeStreams",function(){return Sp}),n.d(I,"uploadDenseMatrixToTexture",function(){return Sd}),n.d(I,"uploadPixelDataToTexture",function(){return Sf}),n.d(I,"createBufferFromOutputTexture",function(){return Sh}),n.d(I,"downloadFloat32MatrixFromBuffer",function(){return Sg}),n.d(I,"downloadByteEncodedFloatMatrixFromOutputTexture",function(){return Sb}),n.d(I,"downloadPackedMatrixFromBuffer",function(){return Sm}),n.d(I,"downloadMatrixFromPackedOutputTexture",function(){return Sy});var N={};n.r(N),n.d(N,"AdadeltaOptimizer",function(){return ep.d}),n.d(N,"AdagradOptimizer",function(){return ep.e}),n.d(N,"AdamOptimizer",function(){return ep.f}),n.d(N,"AdamaxOptimizer",function(){return ep.g}),n.d(N,"MomentumOptimizer",function(){return ep.jc}),n.d(N,"Optimizer",function(){return ep.uc}),n.d(N,"OptimizerConstructors",function(){return ep.vc}),n.d(N,"RMSPropOptimizer",function(){return ep.Cc}),n.d(N,"SGDOptimizer",function(){return ep.Xc}),n.d(N,"Tensor",function(){return ep.Dd}),n.d(N,"TensorBuffer",function(){return ep.Ed}),n.d(N,"Variable",function(){return ep.Od}),n.d(N,"Rank",function(){return ep.Hc}),n.d(N,"sumOutType",function(){return ep.ri}),n.d(N,"upcastType",function(){return ep.Qi}),n.d(N,"abs",function(){return ep.Rd}),n.d(N,"acos",function(){return ep.Sd}),n.d(N,"acosh",function(){return ep.Td}),n.d(N,"add",function(){return ep.Ud}),n.d(N,"addN",function(){return ep.Vd}),n.d(N,"all",function(){return ep.Wd}),n.d(N,"any",function(){return ep.Xd}),n.d(N,"argMax",function(){return ep.Yd}),n.d(N,"argMin",function(){return ep.Zd}),n.d(N,"asin",function(){return ep.ae}),n.d(N,"asinh",function(){return ep.be}),n.d(N,"atan",function(){return ep.ce}),n.d(N,"atan2",function(){return ep.de}),n.d(N,"atanh",function(){return ep.ee}),n.d(N,"avgPool",function(){return ep.fe}),n.d(N,"avgPool3d",function(){return ep.ge}),n.d(N,"basicLSTMCell",function(){return ep.je}),n.d(N,"batchToSpaceND",function(){return ep.oe}),n.d(N,"batchNorm",function(){return ep.ke}),n.d(N,"batchNorm2d",function(){return ep.le}),n.d(N,"batchNorm3d",function(){return ep.me}),n.d(N,"batchNorm4d",function(){return ep.ne}),n.d(N,"bincount",function(){return ep.pe}),n.d(N,"bitwiseAnd",function(){return ep.qe}),n.d(N,"broadcastArgs",function(){return ep.se}),n.d(N,"broadcastTo",function(){return ep.te}),n.d(N,"buffer",function(){return ep.we}),n.d(N,"cast",function(){return ep.xe}),n.d(N,"ceil",function(){return ep.ye}),n.d(N,"clipByValue",function(){return ep.ze}),n.d(N,"clone",function(){return ep.Ae}),n.d(N,"complex",function(){return ep.Be}),n.d(N,"concat",function(){return ep.Ce}),n.d(N,"concat1d",function(){return ep.De}),n.d(N,"concat2d",function(){return ep.Ee}),n.d(N,"concat3d",function(){return ep.Fe}),n.d(N,"concat4d",function(){return ep.Ge}),n.d(N,"conv1d",function(){return ep.He}),n.d(N,"conv2d",function(){return ep.Ie}),n.d(N,"conv2dTranspose",function(){return ep.Je}),n.d(N,"conv3d",function(){return ep.Ke}),n.d(N,"conv3dTranspose",function(){return ep.Le}),n.d(N,"cos",function(){return ep.Ne}),n.d(N,"cosh",function(){return ep.Oe}),n.d(N,"cumprod",function(){return ep.Qe}),n.d(N,"cumsum",function(){return ep.Re}),n.d(N,"denseBincount",function(){return ep.Te}),n.d(N,"depthToSpace",function(){return ep.Ve}),n.d(N,"depthwiseConv2d",function(){return ep.We}),n.d(N,"diag",function(){return ep.Ye}),n.d(N,"dilation2d",function(){return ep.Ze}),n.d(N,"div",function(){return ep.df}),n.d(N,"divNoNan",function(){return ep.ef}),n.d(N,"dot",function(){return ep.ff}),n.d(N,"einsum",function(){return ep.hf}),n.d(N,"elu",function(){return ep.if}),n.d(N,"ensureShape",function(){return ep.nf}),n.d(N,"equal",function(){return ep.pf}),n.d(N,"erf",function(){return ep.qf}),n.d(N,"euclideanNorm",function(){return ep.rf}),n.d(N,"exp",function(){return ep.sf}),n.d(N,"expandDims",function(){return ep.tf}),n.d(N,"expm1",function(){return ep.uf}),n.d(N,"eye",function(){return ep.vf}),n.d(N,"fill",function(){return ep.xf}),n.d(N,"floor",function(){return ep.Af}),n.d(N,"floorDiv",function(){return ep.Bf}),n.d(N,"gather",function(){return ep.Df}),n.d(N,"greater",function(){return ep.Mf}),n.d(N,"greaterEqual",function(){return ep.Nf}),n.d(N,"imag",function(){return ep.Pf}),n.d(N,"isFinite",function(){return ep.Uf}),n.d(N,"isInf",function(){return ep.Vf}),n.d(N,"isNaN",function(){return ep.Wf}),n.d(N,"leakyRelu",function(){return ep.Zf}),n.d(N,"less",function(){return ep.ag}),n.d(N,"lessEqual",function(){return ep.bg}),n.d(N,"linspace",function(){return ep.dg}),n.d(N,"localResponseNormalization",function(){return ep.eg}),n.d(N,"log",function(){return ep.fg}),n.d(N,"log1p",function(){return ep.gg}),n.d(N,"logSigmoid",function(){return ep.hg}),n.d(N,"logSoftmax",function(){return ep.ig}),n.d(N,"logSumExp",function(){return ep.jg}),n.d(N,"logicalAnd",function(){return ep.kg}),n.d(N,"logicalNot",function(){return ep.lg}),n.d(N,"logicalOr",function(){return ep.mg}),n.d(N,"logicalXor",function(){return ep.ng}),n.d(N,"lowerBound",function(){return ep.pg}),n.d(N,"matMul",function(){return ep.qg}),n.d(N,"max",function(){return ep.sg}),n.d(N,"maxPool",function(){return ep.tg}),n.d(N,"maxPool3d",function(){return ep.ug}),n.d(N,"maxPoolWithArgmax",function(){return ep.vg}),n.d(N,"maximum",function(){return ep.wg}),n.d(N,"mean",function(){return ep.xg}),n.d(N,"meshgrid",function(){return ep.zg}),n.d(N,"min",function(){return ep.Ag}),n.d(N,"minimum",function(){return ep.Bg}),n.d(N,"mirrorPad",function(){return ep.Cg}),n.d(N,"mod",function(){return ep.Dg}),n.d(N,"moments",function(){return ep.Eg}),n.d(N,"mul",function(){return ep.Gg}),n.d(N,"multiRNNCell",function(){return ep.Hg}),n.d(N,"multinomial",function(){return ep.Ig}),n.d(N,"neg",function(){return ep.Jg}),n.d(N,"notEqual",function(){return ep.Mg}),n.d(N,"oneHot",function(){return ep.Ng}),n.d(N,"ones",function(){return ep.Og}),n.d(N,"onesLike",function(){return ep.Pg}),n.d(N,"outerProduct",function(){return ep.Rg}),n.d(N,"pad",function(){return ep.Sg}),n.d(N,"pad1d",function(){return ep.Tg}),n.d(N,"pad2d",function(){return ep.Ug}),n.d(N,"pad3d",function(){return ep.Vg}),n.d(N,"pad4d",function(){return ep.Wg}),n.d(N,"pool",function(){return ep.Xg}),n.d(N,"pow",function(){return ep.Yg}),n.d(N,"prelu",function(){return ep.Zg}),n.d(N,"print",function(){return ep.ah}),n.d(N,"prod",function(){return ep.bh}),n.d(N,"raggedGather",function(){return ep.dh}),n.d(N,"raggedRange",function(){return ep.eh}),n.d(N,"raggedTensorToTensor",function(){return ep.fh}),n.d(N,"rand",function(){return ep.gh}),n.d(N,"randomGamma",function(){return ep.hh}),n.d(N,"randomNormal",function(){return ep.ih}),n.d(N,"randomStandardNormal",function(){return ep.jh}),n.d(N,"randomUniform",function(){return ep.kh}),n.d(N,"randomUniformInt",function(){return ep.lh}),n.d(N,"range",function(){return ep.mh}),n.d(N,"real",function(){return ep.oh}),n.d(N,"reciprocal",function(){return ep.ph}),n.d(N,"relu",function(){return ep.th}),n.d(N,"relu6",function(){return ep.uh}),n.d(N,"reshape",function(){return ep.wh}),n.d(N,"reverse",function(){return ep.xh}),n.d(N,"reverse1d",function(){return ep.yh}),n.d(N,"reverse2d",function(){return ep.zh}),n.d(N,"reverse3d",function(){return ep.Ah}),n.d(N,"reverse4d",function(){return ep.Bh}),n.d(N,"round",function(){return ep.Dh}),n.d(N,"rsqrt",function(){return ep.Eh}),n.d(N,"scalar",function(){return ep.Fh}),n.d(N,"selu",function(){return ep.Jh}),n.d(N,"separableConv2d",function(){return ep.Kh}),n.d(N,"setdiff1dAsync",function(){return ep.Oh}),n.d(N,"sigmoid",function(){return ep.Ph}),n.d(N,"sign",function(){return ep.Qh}),n.d(N,"sin",function(){return ep.Sh}),n.d(N,"sinh",function(){return ep.Th}),n.d(N,"slice",function(){return ep.Uh}),n.d(N,"slice1d",function(){return ep.Vh}),n.d(N,"slice2d",function(){return ep.Wh}),n.d(N,"slice3d",function(){return ep.Xh}),n.d(N,"slice4d",function(){return ep.Yh}),n.d(N,"softmax",function(){return ep.ai}),n.d(N,"softplus",function(){return ep.bi}),n.d(N,"spaceToBatchND",function(){return ep.ci}),n.d(N,"fft",function(){return ep.wf}),n.d(N,"ifft",function(){return ep.Of}),n.d(N,"irfft",function(){return ep.Tf}),n.d(N,"rfft",function(){return ep.Ch}),n.d(N,"split",function(){return ep.gi}),n.d(N,"sqrt",function(){return ep.hi}),n.d(N,"square",function(){return ep.ii}),n.d(N,"squaredDifference",function(){return ep.ji}),n.d(N,"squeeze",function(){return ep.ki}),n.d(N,"stack",function(){return ep.li}),n.d(N,"step",function(){return ep.mi}),n.d(N,"stridedSlice",function(){return ep.ni}),n.d(N,"sub",function(){return ep.pi}),n.d(N,"sum",function(){return ep.qi}),n.d(N,"tan",function(){return ep.si}),n.d(N,"tanh",function(){return ep.ti}),n.d(N,"tensor",function(){return ep.ui}),n.d(N,"tensor1d",function(){return ep.vi}),n.d(N,"tensor2d",function(){return ep.wi}),n.d(N,"tensor3d",function(){return ep.xi}),n.d(N,"tensor4d",function(){return ep.yi}),n.d(N,"tensor5d",function(){return ep.zi}),n.d(N,"tensor6d",function(){return ep.Ai}),n.d(N,"tensorScatterUpdate",function(){return ep.Bi}),n.d(N,"tile",function(){return ep.Fi}),n.d(N,"topk",function(){return ep.Hi}),n.d(N,"truncatedNormal",function(){return ep.Ki}),n.d(N,"unique",function(){return ep.Li}),n.d(N,"unsortedSegmentSum",function(){return ep.Oi}),n.d(N,"unstack",function(){return ep.Pi}),n.d(N,"upperBound",function(){return ep.Ri}),n.d(N,"variable",function(){return ep.Vi}),n.d(N,"where",function(){return ep.Yi}),n.d(N,"whereAsync",function(){return ep.Zi}),n.d(N,"zeros",function(){return ep.aj}),n.d(N,"zerosLike",function(){return ep.bj}),n.d(N,"booleanMaskAsync",function(){return ep.re}),n.d(N,"transpose",function(){return ep.Ji}),n.d(N,"norm",function(){return ep.Lg}),n.d(N,"movingAverage",function(){return ep.Fg}),n.d(N,"scatterND",function(){return ep.Gh}),n.d(N,"searchSorted",function(){return ep.Ih}),n.d(N,"sparseToDense",function(){return ep.ei}),n.d(N,"gatherND",function(){return ep.Ef}),n.d(N,"dropout",function(){return ep.gf}),n.d(N,"enclosingPowerOfTwo",function(){return ep.lf}),n.d(N,"cosineWindow",function(){return ep.Pe}),n.d(N,"inTopKAsync",function(){return ep.Rf}),n.d(N,"op",function(){return ep.Qg}),n.d(N,"OP_SCOPE_SUFFIX",function(){return ep.rc}),n.d(N,"image",function(){return ep.Qf}),n.d(N,"linalg",function(){return ep.cg}),n.d(N,"losses",function(){return ep.og}),n.d(N,"spectral",function(){return ep.fi}),n.d(N,"fused",function(){return ep.Cf}),n.d(N,"signal",function(){return ep.Rh}),n.d(N,"sparse",function(){return ep.di}),n.d(N,"string",function(){return ep.oi}),n.d(N,"Reduction",function(){return ep.Lc}),n.d(N,"train",function(){return ep.Ii}),n.d(N,"enableProdMode",function(){return ep.kf}),n.d(N,"enableDebugMode",function(){return ep.jf}),n.d(N,"disableDeprecationWarnings",function(){return ep.af}),n.d(N,"deprecationWarn",function(){return ep.Ue}),n.d(N,"disposeVariables",function(){return ep.cf}),n.d(N,"engine",function(){return ep.mf}),n.d(N,"memory",function(){return ep.yg}),n.d(N,"profile",function(){return ep.ch}),n.d(N,"tidy",function(){return ep.Ei}),n.d(N,"dispose",function(){return ep.bf}),n.d(N,"keep",function(){return ep.Xf}),n.d(N,"time",function(){return ep.Gi}),n.d(N,"setBackend",function(){return ep.Mh}),n.d(N,"ready",function(){return ep.nh}),n.d(N,"getBackend",function(){return ep.Gf}),n.d(N,"removeBackend",function(){return ep.vh}),n.d(N,"findBackend",function(){return ep.yf}),n.d(N,"findBackendFactory",function(){return ep.zf}),n.d(N,"registerBackend",function(){return ep.qh}),n.d(N,"backend",function(){return ep.he}),n.d(N,"setPlatform",function(){return ep.Nh}),n.d(N,"getKernel",function(){return ep.If}),n.d(N,"getGradient",function(){return ep.Hf}),n.d(N,"getKernelsForBackend",function(){return ep.Jf}),n.d(N,"registerKernel",function(){return ep.sh}),n.d(N,"registerGradient",function(){return ep.rh}),n.d(N,"unregisterKernel",function(){return ep.Ni}),n.d(N,"unregisterGradient",function(){return ep.Mi}),n.d(N,"copyRegisteredKernels",function(){return ep.Me}),n.d(N,"customGrad",function(){return ep.Se}),n.d(N,"grad",function(){return ep.Kf}),n.d(N,"grads",function(){return ep.Lf}),n.d(N,"valueAndGrad",function(){return ep.Ti}),n.d(N,"valueAndGrads",function(){return ep.Ui}),n.d(N,"variableGrads",function(){return ep.Wi}),n.d(N,"Environment",function(){return ep.ib}),n.d(N,"env",function(){return ep.of}),n.d(N,"ENV",function(){return ep.eb}),n.d(N,"version_core",function(){return ep.Xi}),n.d(N,"nextFrame",function(){return ep.Kg}),n.d(N,"browser",function(){return ep.ve}),n.d
13(N,"io",function(){return ep.Sf}),n.d(N,"math",function(){return ep.rg}),n.d(N,"serialization",function(){return ep.Lh}),n.d(N,"test_util",function(){return ep.Di}),n.d(N,"util",function(){return ep.Si}),n.d(N,"backend_util",function(){return ep.ie}),n.d(N,"broadcast_util",function(){return ep.ue}),n.d(N,"tensor_util",function(){return ep.Ci}),n.d(N,"slice_util",function(){return ep.Zh}),n.d(N,"gather_util",function(){return ep.Ff}),n.d(N,"scatter_util",function(){return ep.Hh}),n.d(N,"device_util",function(){return ep.Xe}),n.d(N,"kernel_impls",function(){return ep.Yf}),n.d(N,"KernelBackend",function(){return ep.Hb}),n.d(N,"DataStorage",function(){return ep.T}),n.d(N,"Abs",function(){return ep.a}),n.d(N,"Acos",function(){return ep.b}),n.d(N,"Acosh",function(){return ep.c}),n.d(N,"Add",function(){return ep.h}),n.d(N,"AddN",function(){return ep.i}),n.d(N,"All",function(){return ep.j}),n.d(N,"Any",function(){return ep.k}),n.d(N,"ArgMax",function(){return ep.l}),n.d(N,"ArgMin",function(){return ep.m}),n.d(N,"Asin",function(){return ep.n}),n.d(N,"Asinh",function(){return ep.o}),n.d(N,"Atan",function(){return ep.p}),n.d(N,"Atanh",function(){return ep.r}),n.d(N,"Atan2",function(){return ep.q}),n.d(N,"AvgPool",function(){return ep.s}),n.d(N,"AvgPoolGrad",function(){return ep.v}),n.d(N,"AvgPool3D",function(){return ep.t}),n.d(N,"AvgPool3DGrad",function(){return ep.u}),n.d(N,"BatchMatMul",function(){return ep.w}),n.d(N,"BatchToSpaceND",function(){return ep.x}),n.d(N,"Bincount",function(){return ep.y}),n.d(N,"BitwiseAnd",function(){return ep.z}),n.d(N,"BroadcastTo",function(){return ep.B}),n.d(N,"BroadcastArgs",function(){return ep.A}),n.d(N,"Cast",function(){return ep.C}),n.d(N,"Ceil",function(){return ep.D}),n.d(N,"ClipByValue",function(){return ep.E}),n.d(N,"Complex",function(){return ep.F}),n.d(N,"ComplexAbs",function(){return ep.G}),n.d(N,"Concat",function(){return ep.H}),n.d(N,"Conv2D",function(){return ep.I}),n.d(N,"Conv2DBackpropFilter",function(){return ep.J}),n.d(N,"Conv2DBackpropInput",function(){return ep.K}),n.d(N,"Conv3D",function(){return ep.L}),n.d(N,"Conv3DBackpropFilterV2",function(){return ep.M}),n.d(N,"Conv3DBackpropInputV2",function(){return ep.N}),n.d(N,"Cos",function(){return ep.O}),n.d(N,"Cosh",function(){return ep.P}),n.d(N,"Cumprod",function(){return ep.R}),n.d(N,"Cumsum",function(){return ep.S}),n.d(N,"CropAndResize",function(){return ep.Q}),n.d(N,"DenseBincount",function(){return ep.U}),n.d(N,"DepthToSpace",function(){return ep.V}),n.d(N,"DepthwiseConv2dNative",function(){return ep.W}),n.d(N,"DepthwiseConv2dNativeBackpropFilter",function(){return ep.X}),n.d(N,"DepthwiseConv2dNativeBackpropInput",function(){return ep.Y}),n.d(N,"Diag",function(){return ep.Z}),n.d(N,"Dilation2D",function(){return ep.ab}),n.d(N,"Dilation2DBackpropInput",function(){return ep.cb}),n.d(N,"Dilation2DBackpropFilter",function(){return ep.bb}),n.d(N,"Draw",function(){return ep.db}),n.d(N,"RealDiv",function(){return ep.Jc}),n.d(N,"Einsum",function(){return ep.fb}),n.d(N,"Elu",function(){return ep.gb}),n.d(N,"EluGrad",function(){return ep.hb}),n.d(N,"Erf",function(){return ep.kb}),n.d(N,"Equal",function(){return ep.jb}),n.d(N,"Exp",function(){return ep.lb}),n.d(N,"ExpandDims",function(){return ep.mb}),n.d(N,"Expm1",function(){return ep.nb}),n.d(N,"FFT",function(){return ep.ob}),n.d(N,"Fill",function(){return ep.pb}),n.d(N,"FlipLeftRight",function(){return ep.qb}),n.d(N,"Floor",function(){return ep.rb}),n.d(N,"FloorDiv",function(){return ep.sb}),n.d(N,"FusedBatchNorm",function(){return ep.ub}),n.d(N,"GatherV2",function(){return ep.yb}),n.d(N,"GatherNd",function(){return ep.xb}),n.d(N,"Greater",function(){return ep.zb}),n.d(N,"GreaterEqual",function(){return ep.Ab}),n.d(N,"Identity",function(){return ep.Cb}),n.d(N,"IFFT",function(){return ep.Bb}),n.d(N,"Imag",function(){return ep.Db}),n.d(N,"IsFinite",function(){return ep.Eb}),n.d(N,"IsInf",function(){return ep.Fb}),n.d(N,"IsNan",function(){return ep.Gb}),n.d(N,"LeakyRelu",function(){return ep.Kb}),n.d(N,"Less",function(){return ep.Lb}),n.d(N,"LessEqual",function(){return ep.Mb}),n.d(N,"LinSpace",function(){return ep.Nb}),n.d(N,"Log",function(){return ep.Ob}),n.d(N,"Log1p",function(){return ep.Pb}),n.d(N,"LogicalAnd",function(){return ep.Rb}),n.d(N,"LogicalNot",function(){return ep.Sb}),n.d(N,"LogicalOr",function(){return ep.Tb}),n.d(N,"LogicalXor",function(){return ep.Ub}),n.d(N,"LogSoftmax",function(){return ep.Qb}),n.d(N,"LowerBound",function(){return ep.Vb}),n.d(N,"LRN",function(){return ep.Ib}),n.d(N,"LRNGrad",function(){return ep.Jb}),n.d(N,"MatrixBandPart",function(){return ep.Wb}),n.d(N,"Max",function(){return ep.Xb}),n.d(N,"Maximum",function(){return ep.dc}),n.d(N,"MaxPool",function(){return ep.Yb}),n.d(N,"MaxPoolGrad",function(){return ep.bc}),n.d(N,"MaxPool3D",function(){return ep.Zb}),n.d(N,"MaxPool3DGrad",function(){return ep.ac}),n.d(N,"MaxPoolWithArgmax",function(){return ep.cc}),n.d(N,"Mean",function(){return ep.ec}),n.d(N,"Min",function(){return ep.fc}),n.d(N,"Minimum",function(){return ep.gc}),n.d(N,"MirrorPad",function(){return ep.hc}),n.d(N,"Mod",function(){return ep.ic}),n.d(N,"Multinomial",function(){return ep.kc}),n.d(N,"Multiply",function(){return ep.lc}),n.d(N,"Neg",function(){return ep.mc}),n.d(N,"NotEqual",function(){return ep.qc}),n.d(N,"NonMaxSuppressionV3",function(){return ep.nc}),n.d(N,"NonMaxSuppressionV4",function(){return ep.oc}),n.d(N,"NonMaxSuppressionV5",function(){return ep.pc}),n.d(N,"OnesLike",function(){return ep.tc}),n.d(N,"OneHot",function(){return ep.sc}),n.d(N,"Pack",function(){return ep.wc}),n.d(N,"PadV2",function(){return ep.xc}),n.d(N,"Pool",function(){return ep.yc}),n.d(N,"Pow",function(){return ep.zc}),n.d(N,"Prelu",function(){return ep.Ac}),n.d(N,"Prod",function(){return ep.Bc}),n.d(N,"RaggedGather",function(){return ep.Dc}),n.d(N,"RaggedRange",function(){return ep.Ec}),n.d(N,"RaggedTensorToTensor",function(){return ep.Fc}),n.d(N,"Range",function(){return ep.Gc}),n.d(N,"Real",function(){return ep.Ic}),n.d(N,"Reciprocal",function(){return ep.Kc}),n.d(N,"Relu",function(){return ep.Mc}
13),n.d(N,"Reshape",function(){return ep.Oc}),n.d(N,"ResizeNearestNeighbor",function(){return ep.Rc}),n.d(N,"ResizeNearestNeighborGrad",function(){return ep.Sc}),n.d(N,"ResizeBilinear",function(){return ep.Pc}),n.d(N,"ResizeBilinearGrad",function(){return ep.Qc}),n.d(N,"Relu6",function(){return ep.Nc}),n.d(N,"Reverse",function(){return ep.Tc}),n.d(N,"Round",function(){return ep.Vc}),n.d(N,"Rsqrt",function(){return ep.Wc}),n.d(N,"ScatterNd",function(){return ep.Yc}),n.d(N,"TensorScatterUpdate",function(){return ep.Fd}),n.d(N,"SearchSorted",function(){return ep.Zc}),n.d(N,"Select",function(){return ep.ad}),n.d(N,"Selu",function(){return ep.bd}),n.d(N,"Slice",function(){return ep.gd}),n.d(N,"Sin",function(){return ep.ed}),n.d(N,"Sinh",function(){return ep.fd}),n.d(N,"Sign",function(){return ep.dd}),n.d(N,"Sigmoid",function(){return ep.cd}),n.d(N,"Softplus",function(){return ep.id}),n.d(N,"Sqrt",function(){return ep.qd}),n.d(N,"Sum",function(){return ep.Ad}),n.d(N,"SpaceToBatchND",function(){return ep.jd}),n.d(N,"SplitV",function(){return ep.pd}),n.d(N,"Softmax",function(){return ep.hd}),n.d(N,"SparseFillEmptyRows",function(){return ep.kd}),n.d(N,"SparseReshape",function(){return ep.ld}),n.d(N,"SparseSegmentMean",function(){return ep.md}),n.d(N,"SparseSegmentSum",function(){return ep.nd}),n.d(N,"SparseToDense",function(){return ep.od}),n.d(N,"SquaredDifference",function(){return ep.sd}),n.d(N,"Square",function(){return ep.rd}),n.d(N,"StaticRegexReplace",function(){return ep.td}),n.d(N,"StridedSlice",function(){return ep.vd}),n.d(N,"StringNGrams",function(){return ep.wd}),n.d(N,"StringSplit",function(){return ep.xd}),n.d(N,"StringToHashBucketFast",function(){return ep.yd}),n.d(N,"Sub",function(){return ep.zd}),n.d(N,"Tan",function(){return ep.Bd}),n.d(N,"Tanh",function(){return ep.Cd}),n.d(N,"Tile",function(){return ep.Gd}),n.d(N,"TopK",function(){return ep.Hd}),n.d(N,"Transform",function(){return ep.Id}),n.d(N,"Transpose",function(){return ep.Jd}),n.d(N,"Unique",function(){return ep.Kd}),n.d(N,"Unpack",function(){return ep.Ld}),n.d(N,"UnsortedSegmentSum",function(){return ep.Md}),n.d(N,"UpperBound",function(){return ep.Nd}),n.d(N,"ZerosLike",function(){return ep.Pd}),n.d(N,"Step",function(){return ep.ud}),n.d(N,"FromPixels",function(){return ep.tb}),n.d(N,"RotateWithOffset",function(){return ep.Uc}),n.d(N,"_FusedMatMul",function(){return ep.Qd}),n.d(N,"FusedConv2D",function(){return ep.vb}),n.d(N,"FusedDepthwiseConv2D",function(){return ep.wb}),n.d(N,"CallbackList",function(){return ow}),n.d(N,"CustomCallback",function(){return o_}),n.d(N,"History",function(){return oF}),n.d(N,"Callback",function(){return c8}),n.d(N,"callbacks",function(){return pt}),n.d(N,"EarlyStopping",function(){return pe}),n.d(N,"InputSpec",function(){return aG}),n.d(N,"SymbolicTensor",function(){return aV}),n.d(N,"LayersModel",function(){return sx}),n.d(N,"input",function(){return sF}),n.d(N,"loadLayersModel",function(){return sk}),n.d(N,"model",function(){return sw}),n.d(N,"registerCallbackConstructor",function(){return s_}),n.d(N,"sequential",function(){return sj}),n.d(N,"RNN",function(){return lx}),n.d(N,"Sequential",function(){return sT}),n.d(N,"LayerVariable",function(){return aL}),n.d(N,"version_layers",function(){return sn}),n.d(N,"constraints",function(){return f}),n.d(N,"initializers",function(){return h}),n.d(N,"layers",function(){return g}),n.d(N,"metrics",function(){return b}),n.d(N,"models",function(){return m}),n.d(N,"regularizers",function(){return y}),n.d(N,"GraphModel",function(){return pE}),n.d(N,"loadGraphModel",function(){return pR}),n.d(N,"loadGraphModelSync",function(){return pD}),n.d(N,"deregisterOp",function(){return pa.a}),n.d(N,"registerOp",function(){return pa.c}),n.d(N,"version_converter",function(){return pC}),n.d(N,"data",function(){return v}),n.d(N,"MathBackendCPU",function(){return dr}),n.d(N,"version_cpu",function(){return hc}),n.d(N,"shared",function(){return O}),n.d(N,"version_webgl",function(){return vx}),n.d(N,"MathBackendWebGL",function(){return vO}),n.d(N,"setWebGLContext",function(){return mP}),n.d(N,"GPGPUContext",function(){return SS}),n.d(N,"gpgpu_util",function(){return I}),n.d(N,"webgl_util",function(){return x}),n.d(N,"forceHalfFloat",function(){return vI}),n.d(N,"webgl",function(){return vN}),n.d(N,"version",function(){return Tt});var k={};n.r(k),n.d(k,"TFLiteModel",function(){return wK}),n.d(k,"loadTFLiteModel",function(){return wX}),n.d(k,"getDTypeFromTFLiteType",function(){return wY}),n.d(k,"ImageClassifier",function(){return w2}),n.d(k,"OutputType",function(){return d}),n.d(k,"ImageSegmenter",function(){return w3}),n.d(k,"ObjectDetector",function(){return w4}),n.d(k,"NLClassifier",function(){return w5}),n.d(k,"BertNLClassifier",function(){return w8}),n.d(k,"BertQuestionAnswerer",function(){return w7}),n.d(k,"setWasmPath",function(){return wJ}),n.d(k,"getWasmFeatures",function(){return wZ}),n(544),n(557),n(558),n(559),n(560),n(561),n(562);var T=n(54),w=n.n(T),j=n(191),F=n.n(j),_=n(360),E=n.n(_),R=n(361),D=n.n(R),C=n(362),A=n.n(C),M=n(294),$=n.n(M),U=n(363),P=n.n(U),B=n(33),L=n.n(B),W=n(35),z=n.n(W),G=(n(573),n(575),n(577),n(578),n(579),n(582),n(583),n(322),n(326),n(589),n(590),n(596),n(601),n(603),n(604),n(327),n(606),n(333),n(626),n(628),n(632),n(633),n(637),n(638),n(7)),V=n(101),H=n.n(V),q=function(e){return Object(G.h)("svg",{className:e.className,width:"40px",height:"380px",viewBox:"0 0 40 380",ver
13sion:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(G.h)("title",null,"grade"),Object(G.h)("desc",null,"Created with Sketch."),Object(G.h)("defs",null,Object(G.h)("filter",{x:"-57.5%",y:"-6.4%",width:"215.0%",height:"112.8%",filterUnits:"objectBoundingBox",id:"filter-1"},Object(G.h)("feOffset",{dx:"0",dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),Object(G.h)("feGaussianBlur",{stdDeviation:"5",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),Object(G.h)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),Object(G.h)("feMerge",null,Object(G.h)("feMergeNode",{in:"shadowMatrixOuter1"}),Object(G.h)("feMergeNode",{in:"SourceGraphic"}))),Object(G.h)("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"linearGradient-2"},Object(G.h)("stop",{"stop-color":"#D13434",offset:"0%"}),Object(G.h)("stop",{"stop-color":"#EA621E",offset:"58.659734%"}),Object(G.h)("stop",{"stop-color":"#E0D889",offset:"84.905511%"}),Object(G.h)("stop",{"stop-color":"#33CF7C",offset:"100%"}))),Object(G.h)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",opacity:"0.8"},Object(G.h)("g",{transform:"translate(-7.000000, -126.000000)"},Object(G.h)("g",{filter:"url(#filter-1)",transform:"translate(7.000000, 134.000000)"},Object(G.h)("g",{transform:"translate(10.000000, 0.000000)"},Object(G.h)("path",{d:"M4,0 L16,0 C18.209139,-4.05812251e-16 20,1.790861 20,4 L20,180 L20,180 L0,180 L0,4 C-2.705415e-16,1.790861 1.790861,4.05812251e-16 4,0 Z",fill:"url(#linearGradient-2)"}),Object(G.h)("path",{d:"M4,180 L16,180 C18.209139,180 20,181.790861 20,184 L20,360 L20,360 L0,360 L0,184 C-2.705415e-16,181.790861 1.790861,180 4,180 Z",fill:"url(#linearGradient-2)",transform:"translate(10.000000, 270.000000) scale(1, -1) translate(-10.000000, -270.000000) "}),Object(G.h)("g",{transform:"translate(3.000000, 14.000000)",fill:"#FFFFFF"},Object(G.h)("rect",{x:"4",y:"0",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"11",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"22",width:"6",height:"1"}),Object(G.h)("rect",{x:"0",y:"33",width:"14",height:"1"}),Object(G.h)("rect",{x:"4",y:"44",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"55",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"66",width:"6",height:"1"}),Object(G.h)("rect",{x:"0",y:"77",width:"14",height:"1"}),Object(G.h)("rect",{x:"4",y:"88",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"99",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"110",width:"6",height:"1"}),Object(G.h)("rect",{x:"0",y:"121",width:"14",height:"1"}),Object(G.h)("rect",{x:"4",y:"132",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"143",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"154",width:"6",height:"1"}),Object(G.h)("rect",{x:"0",y:"165",width:"14",height:"1"}),Object(G.h)("rect",{x:"4",y:"176",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"187",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"198",width:"6",height:"1"}),Object(G.h)("rect",{x:"0",y:"209",width:"14",height:"1"}),Object(G.h)("rect",{x:"4",y:"220",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"231",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"242",width:"6",height:"1"}),Object(G.h)("rect",{x:"0",y:"253",width:"14",height:"1"}),Object(G.h)("rect",{x:"4",y:"264",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"275",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"286",width:"6",height:"1"}),Object(G.h)("rect",{x:"0",y:"297",width:"14",height:"1"}),Object(G.h)("rect",{x:"4",y:"308",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"319",width:"6",height:"1"}),Object(G.h)("rect",{x:"4",y:"330",width:"6",height:"1"})))))))},K=function(e){return Object(G.h)("svg",{className:e.className,width:"40px",height:"14px",viewBox:"0 0 40 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(G.h)("title",null,"pointer"),Object(G.h)("desc",null,"Created with Sketch."),Object(G.h)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Object(G.h)("g",{transform:"translate(-7.000000, -219.000000)",fill:"#FFFFFF"},Object(G.h)("g",{transform:"translate(7.000000, 219.000000)"},Object(G.h)("path",{d:"M40,1.10188411 L40,12.8981159 C40,13.1742583 39.7761424,13.3981159 39.5,13.3981159 C39.3788884,13.3981159 39.2618934,13.3541568 39.1707477,13.2744042 L32.8600877,7.75257669 C32.444451,7.38889464 32.4023335,6.75713202 32.7660156,6.34149539 C32.79525,6.30808462 32.8266769,6.27665773 32.8600877,6.24742331 L39.1707477,0.725595766 C39.378566,0.54375474 39.6944473,0.564813494 39.8762883,0.772631809 C39.9560409,0.863777557 40,0.98077254 40,1.10188411 Z"}),Object(G.h)("path",{d:"M8,1.10188411 L8,12.8981159 C8,13.1742583 7.77614237,13.3981159 7.5,13.3981159 C7.37888843,13.3981159 7.26189344,13.3541568 7.1707477,13.2744042 L0.860087651,7.75257669 C0.44445102,7.38889464 0.402333512,6.75713202 0.766015564,6.34149539 C0.795249989,6.30808462 0.82667688,6.27665773
130.860087651,6.24742331 L7.1707477,0.725595766 C7.37856601,0.54375474 7.69444732,0.564813494 7.87628835,0.772631809 C7.95604088,0.863777557 8,0.98077254 8,1.10188411 Z",transform:"translate(4.000000, 7.000000) scale(-1, 1) translate(-4.000000, -7.000000) "})))))},X=function(e){return Object(G.h)("svg",{className:e.className,width:"59px",height:"92px",viewBox:"0 0 59 92",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(G.h)("title",null,"77D3622C-CECD-42B8-A143-B5DC04AB7263@1x"),Object(G.h)("desc",null,"Created with sketchtool."),Object(G.h)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Object(G.h)("g",{transform:"translate(-164.000000, -201.000000)"},Object(G.h)("g",{transform:"translate(164.000000, 201.000000)"},Object(G.h)("g",{fill:"#FFFFFF"},Object(G.h)("circle",{cy:"38",r:"2"}),Object(G.h)("circle",{cx:"29.5",cy:"38.5",r:"2.5"}),Object(G.h)("circle",{cx:"38.5",cy:"38.5",r:"2.5"}),Object(G.h)("circle",{cx:"46.5",cy:"37.5",r:"1.5"}),Object(G.h)("circle",{cx:"55",cy:"37",r:"1"}),Object(G.h)("circle",{cx:"29.5",cy:"47.5",r:"2.5"}),Object(G.h)("circle",{cx:"38",cy:"47",r:"2"}),Object(G.h)("circle",{cx:"46.5",cy:"46.5",r:"1.5"}),Object(G.h)("circle",{cx:"55",cy:"46",r:"1"}),Object(G.h)("circle",{cx:"29",cy:"56",r:"2"}),Object(G.h)("circle",{cx:"38",cy:"56",r:"2"}),Object(G.h)("circle",{cx:"46.5",cy:"55.5",r:"1.5"}),Object(G.h)("circle",{cx:"54.5",cy:"54.5",r:"1"}),Object(G.h)("circle",{cx:"28.5",cy:"64.5",r:"1.5"}),Object(G.h)("circle",{cx:"37.5",cy:"64.5",r:"1.5"}),Object(G.h)("circle",{cx:"45.5",cy:"63.5",r:"1"}),Object(G.h)("circle",{cx:"27.5",cy:"72.5",r:"1"}),Object(G.h)("circle",{cx:"11",cy:"38",r:"2"}),Object(G.h)("circle",{cx:"1",cy:"37",r:"1"}),Object(G.h)("circle",{cx:"20",cy:"29",r:"2"}),Object(G.h)("circle",{cx:"29.5",cy:"29.5",r:"2.5"}),Object(G.h)("circle",{cx:"38",cy:"29",r:"2"}),Object(G.h)("circle",{cx:"46.5",cy:"28.5",r:"1.5"}),Object(G.h)("circle",{cx:"55",cy:"28",r:"1"}),Object(G.h)("circle",{cx:"29",cy:"20",r:"2"}),Object(G.h)("circle",{cx:"37.5",cy:"19.5",r:"1.5"}),Object(G.h)("circle",{cx:"46.5",cy:"19.5",r:"1.5"}),Object(G.h)("circle",{cx:"54.5",cy:"18.5",r:"1"}),Object(G.h)("circle",{cx:"28",cy:"10",r:"1"}),Object(G.h)("circle",{cx:"37",cy:"10",r:"1"}),Object(G.h)("circle",{cx:"45.5",cy:"9.5",r:"1"}),Object(G.h)("circle",{cx:"27.5",cy:"0.5",r:"1"}),Object(G.h)("circle",{cx:"10.5",cy:"28.5",r:"1.5"}),Object(G.h)("circle",{cx:"1",cy:"28",r:"1"}),Object(G.h)("circle",{cx:"19.5",cy:"19.5",r:"1.5"}),Object(G.h)("circle",{cx:"10",cy:"19",r:"1"}),Object(G.h)("circle",{cx:"0.5",cy:"18.5",r:"1"}),Object(G.h)("circle",{cx:"19",cy:"10",r:"1"}),Object(G.h)("circle",{cx:"9.5",cy:"9.5",r:"1"}),Object(G.h)("circle",{cx:"20",cy:"47",r:"2"}),Object(G.h)("circle",{cx:"11",cy:"47",r:"2"}),Object(G.h)("circle",{cx:"1",cy:"46",r:"1"}),Object(G.h)("circle",{cx:"20",cy:"56",r:"2"}),Object(G.h)("circle",{cx:"10.5",cy:"55.5",r:"1.5"}),Object(G.h)("circle",{cx:"0.5",cy:"54.5",r:"1"}),Object(G.h)("circle",{cx:"19.5",cy:"64.5",r:"1.5"}),Object(G.h)("circle",{cx:"10",cy:"64",r:"1"}
13)),Object(G.h)("g",{transform:"translate(25.000000, 26.000000)"},Object(G.h)("rect",{fill:"#FFFFFF",x:"0",y:"0",width:"34",height:"66",rx:"5"}),Object(G.h)("rect",{fill:"#433D3E",x:"2",y:"2",width:"30",height:"62",rx:"4"}),Object(G.h)("path",{d:"M8,0 L26,0 L25.1893661,3.24253563 C25.0780743,3.68770263 24.6780912,4 24.2192236,4 L9.78077641,4 C9.32190876,4 8.92192566,3.68770263 8.81063391,3.24253563 L8,0 Z",fill:"#FFFFFF"}),Object(G.h)("polygon",{fill:"#FFFFFF",opacity:"0.50125558",points:"13 3.367208 33.2423404 41.2662662 33.2423404 4.19520707 32.4185636 2.19520707 29.8721685 1 13 1 13 2.19520707"}))))))},Y=(n(639),function(e){var t=e.gyroscopePosition,n=e.isLastPhoto,r=e.info;return Object(G.h)(G.Fragment,null,Object(G.h)("div",{className:"widget-camera__grade-wrap"},Object(G.h)("div",{className:"widget-camera__grade-container"},Object(G.h)(q,{className:"widget-camera__grade"}),Object(G.h)("div",{className:"widget-camera__pointer",style:{transform:"translateY(-".concat(t,"px)")}},Object(G.h)(K,{className:"widget-camera__pointer-icon"})))),Object(G.h)("div",{className:H()("allow-frame",{"allow-frame--warning":r,"allow-frame--hidden":n})},Object(G.h)("div",{className:"allow-frame__warning-content"},Object(G.h)(X,{className:"allow-frame__warning-img"}),Object(G.h)("h2",{className:"allow-frame__warning-txt"},"Hold your phone vertically and line up the green arrows"))))}),Q=(n(640),function(e){return Object(G.h)("svg",{className:e.className,width:"50px",height:"360px",viewBox:"0 0 50 360",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(G.h)("title",null,"grade"),Object(G.h)("defs",null,Object(G.h)("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"linearGradient-1"},Object(G.h)("stop",{"stop-color":"#FF0000",offset:"0%"}),Object(G.h)("stop",{"stop-color":"#EA621E",offset:"58.659734%"}),Object(G.h)("stop",{"stop-color":"#E0D889",offset:"84.905511%"}),Object(G.h)("stop",{"stop-color":"#5AFF00",offset:"100%"}))),Object(G.h)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Object(G.h)("g",{transform:"translate(-163.000000, -135.000000)"},Object(G.h)("g",{transform:"translate(135.000000, 135.000000)"},Object(G.h)("g",{transform:"translate(28.000000, 0.000000)"},Object(G.h)("path",{d:"M4,0 L46,0 C48.209139,-4.05812251e-16 50,1.790861 50,4 L50,180 L50,180 L0,180 L0,4 C-2.705415e-16,1.790861 1.790861,4.05812251e-16 4,0 Z",fill:"url(#linearGradient-1)"}),Object(G.h)("path",{d:"M4,180 L46,180 C48.209139,180 50,181.790861 50,184 L50,360 L50,360 L0,360 L0,184 C-2.705415e-16,181.790861 1.790861,180 4,180 Z",fill:"url(#linearGradient-1)",transform:"translate(25.
13000000, 270.000000) scale(1, -1) translate(-25.000000, -270.000000) "}),Object(G.h)("g",{transform:"translate(13.000000, 14.000000)",fill:"#FFFFFF"},Object(G.h)("rect",{x:"6.85714286",y:"0",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"11",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"22",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"0",y:"33",width:"24",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"44",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"55",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"66",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"0",y:"77",width:"24",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"88",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"99",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"110",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"0",y:"121",width:"24",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"132",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"143",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"154",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"0",y:"165",width:"24",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"176",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"187",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"198",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"0",y:"209",width:"24",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"220",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"231",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"242",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"0",y:"253",width:"24",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"264",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"275",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"286",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"0",y:"297",width:"24",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"308",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"319",width:"10.2857143",height:"1"}),Object(G.h)("rect",{x:"6.85714286",y:"330",width:"10.2857143",height:"1"})))))))}),J=function(e){return Object(G.h)("svg",{className:e.className,width:"214",height:"34",viewBox:"0 0 214 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(G.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M164 0V34L144 17L164 0Z",fill:"white"}),Object(G.h)("rect",{width:"50",height:"2",transform:"matrix(-1 0 0 1 214 16)",fill:"url(#paint0_linear_492_423)"}),Object(G.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M50 0V34L70 17L50 0Z",fill:"white"}),Object(G.h)("rect",{y:"16",width:"50",height:"2",fill:"url(#paint1_linear_492_423)"}),Object(G.h)("defs",null,Object(G.h)("linearGradient",{id:"paint0_linear_492_423",x1:"0",y1:"1",x2:"50",y2:"1",gradientUnits:"userSpaceOnUse"},Object(G.h)("stop",{"stop-color":"white","stop-opacity":"0"}),Object(G.h)("stop",{offset:"1","stop-color":"white"})),Object(G.h)("linearGradient",{id:"paint1_linear_492_423",x1:"0",y1:"17",x2:"50",y2:"17",gradientUnits:"userSpaceOnUse"},Object(G.h)("stop",{"stop-color":"white","stop-opacity":"0"}),Object(G.h)("stop",{offset:"1","stop-color":"white"}))))},Z=function(e){var t=e.gyroscopePosition,n=e.isLastPhoto,r=e.info;return e.type,Object(G.h)("div",{className:H()("allow-frame-tf",{"allow-frame-tf--warning":r,"allow-frame-tf--hidden":n})},Object(G.h)("div",{className:"allow-frame-tf__warning-content"},Object(G.h)("p",{className:"allow-frame-tf__warning-txt"},"Place your phone on a table vertically",Object(G.h)("br",null)),Object(G.h)("div",{className:"allow-frame-tf__grade-wrap"},Object(G.h)("div",{className:"allow-frame-tf__grade-container"},Object(G.h)(Q,{className:"allow-frame-tf__grade"}),Object(G.h)("div",{className:"allow-frame-tf__pointer",style:{transform:"translateY(-".concat(t,"px)")}},Object(G.h)(J,{className:"allow-frame-tf__pointer-icon"}))))))},ee=function(e){return"https://front-end-assets.3dlook.me/pose-validation/images/".concat(e)},et=[{text:["Open",Object(G.h)("b",null," âSettingsâ ")],image:ee("ios-1.png")},{text:["Scroll down and click",Object(G.h)("b",null," âSafariâ ")],image:ee("ios-2.png")},{text:["Scroll down and click",Object(G.h)("b",null," âCameraâ ")],image:ee("ios-3.png")},{text:["You need to choose an option:",Object(G.h)("br",null),Object(G.h)("p",null,Object(G.h)("b",null," âAskâ - "),"you will be notified each time you need to use the camera on your browser."),Object(G.h)("p",null,Object(G.h)("b",null," âAllowâ - "),"browser will have access to your camera without any restrictions")],image:ee("ios-4.png")}],en=[{text:["Click on",Object(G.h)("b",null," âMenu buttonâ "),"in your Chrome"],image:ee("android-1.png")},{text:["Scroll down and click",Object(G.h)("b",null," âSettingsâ ")],image:ee("android-2.png")},{text:["Scroll down and click",Object(G.h)("b",null," âSite settingsâ ")],image:ee("android-3.png")},{text:["Scroll down and click",Object(G.h)("b",null," âCameraâ ")],image:ee("android-4.png")},{text:["Choose our site"],image:ee("android-5.png"),widget_host:window.location.origin},{text:["Click",Object(G.h)("b",null," âClear & resetâ "),"button"],image:ee("android-6.png")}],er=(n(641),function(e){var t=e.isAndroid?en:et;return Object(G.h)("div",{className:"access-guide"},Object(G.h)("ul",{className:"access-guide__container"},t.map(function(e,t){return Object(G.h)("li",{className:"access-guide__item"},Object(G.h)("p",{className:"access-guide__text"},"".concat(t+1,". "),e.text),Object(G.h)("figure",{className:"access-guide__img-wrap"},Object(G.h)("img",{src:e.image,alt:"screen"}),Object(G.h)("span",{className:"access-guide__widget-address access-guide__text"},e.widget_host)))})),Object(G.h)("div",{className:"access-guide__btn-wrap"},Object(G.h)("a",{className:"access-guide__btn",href:"/camera-mode-selection"},Object(G.h)("img",{src:"https://front-end-assets.3dlook.me/pose-validation/images/ic_try.svg",alt:"arrow"}),"Try again")),Object(G.h)("div",null))}),ei=function(e){return new Promise(function(t,n){var r=new FileReader;r.addEventListener("load",function(){var e=new DataView(r.result);if(65496!==e.getUint16(0,!1))return t(-2);for(var n=e.byteLength,i=2;i<n;){var a=e.getUint16(i,!1);if(i+=2,65505===a){if(i+=2,0x45786966!==e.getUint32(i,!1))return t(-1);var o=18761===e.getUint16(i+=6,!1);i+=e.getUint32(i+4,o);var s=e.getUint16(i,o);i+=2;for(var l=0;l<s;l+=1)if(274===e.getUint16(i+12*l,o))return t(e.getUint16(i+12*l+8,o))}else{if(65280!=(65280&a))return t(-1);i+=e.getUint16(i,!1)}}return t(-1)}),r.addEventListener("error",function(e){return n(e)}),r.readAsArrayBuffer(e)})},ea=function(e,t){return new Promise(function(n,r){var i=new FileReader;i.addEventListener("load",function(){if(!t||t<=1)return n(i.result);var e=new Image;return e.addEventListener("load",function(){var r=document.createElement("canvas"),i=r.getContext("2d"),a=e.width,o=e.height;switch(r.width=a,r.height=o,t){case 2:i.translate(a,0),i.scale(-1,1);break;case 3:i.translate(a,o),i.rotate(+Math.PI);break;case 4:i.translate(0,o),i.scale(1,-1);break;case 5:r.width=o,r.height=a,i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:r.width=o,r.height=a,i.rotate(.5*Math.PI),i.translate(0,-o);break;case 7:r.width=o,r.height=a,i.rotate(1.5*Math.PI),i.translate(-a,o),i.scale(1,-1);break;case 8:r.width=o,r.height=a,i.translate(0,a),i.rotate(1.5*Math.PI)}i.drawImage(e,0,0,a,o),n(r.toDataURL("image/jpeg",.95))}),e.src=i.result,null}),i.addEventListener("error",function(e){r(e)}),i.readAsDataURL(e)})},eo=function(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(){return t(r.result)},r.onerror=function(){return function(e){return n(e)}}
13,r.readAsDataURL(e)})},es=function(){var e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return!!e&&parseInt(e[2],10)},el=function(){var e=w()(z.a.mark(function e(t,n,r){var i,a,o,s,l,u,c,p,d=arguments;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=d.length>3&&void 0!==d[3]?d[3]:{},t&&n){e.next=3;break}return e.abrupt("return");case 3:o=void 0===(a=i.delay)?120:a,l=void 0===(s=i.playbackRate)?1:s,u=/iPhone|iPad|iPod/i.test(navigator.userAgent);try{t._endedHandlerRef&&(t.removeEventListener("ended",t._endedHandlerRef),t._endedHandlerRef=null)}catch(e){}try{(t.getAttribute("src")||(null==(c=t.querySelector("source"))?void 0:c.getAttribute("src"))||"").endsWith(n)||(t.src=n)}catch(e){}return e.next=9,new Promise(function(e){return setTimeout(e,o)});case 9:return e.prev=9,e.next=12,t.play();case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(9),console.warn("safePlayAudio play() failed:",e.t0.name);case 17:try{t.playbackRate=l}catch(e){}p=function(){u?setTimeout(function(){return null==r?void 0:r()},300):null==r||r(),t._endedHandlerRef=null,t.removeEventListener("ended",p)},t._endedHandlerRef=p,t.addEventListener("ended",p);case 21:case"end":return e.stop()}},e,null,[[9,14]])}));return function(t,n,r){return e.apply(this,arguments)}}(),eu=n(296),ec=n(270),ep=n(0),ed=n(3),ef=n(16),eh=n(11),eg=n(109);let eb={kernelName:ed.a,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(e,Object(eg.a)(Object(ef.a)(n,"float32"),-1))}}};var em=n(19),ey=n(36),eS=n(23),ev=n(51),eO=n(32),ex=n(18);let eI={kernelName:ed.b,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>{let t=Object(eO.a)(Object(ef.a)(n,"float32")),r=Object(ev.a)(Object(ex.a)(Object(eS.a)(1),t));return Object(ey.a)(Object(em.a)(e,r))}}}},eN={kernelName:ed.c,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>{let t=Object(ev.a)(Object(ex.a)(Object(eO.a)(Object(ef.a)(n,"float32")),1));return Object(em.a)(e,t)}}}};var ek=n(20),eT=n(8),ew=n(21);let ej={kernelName:ed.d,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t,i=ek.assertAndGetBroadcastShape(n.shape,r.shape);return{a:()=>{let t=e,r=ek.getReductionAxes(n.shape,i);return r.length>0&&(t=Object(ew.a)(t,r)),Object(eT.a)(t,n.shape)},b:()=>{let t=e,n=ek.getReductionAxes(r.shape,i);return n.length>0&&(t=Object(ew.a)(t,n)),Object(eT.a)(t,r.shape)}}}},eF={kernelName:ed.e,saveAllInputs:!0,gradFunc:(e,t)=>{let n={};return t.forEach((t,r)=>{n[r]=()=>e.clone()}),n}};var e_=n(25);let eE={kernelName:ed.h,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(e_.a)(n)}}},eR={kernelName:ed.i,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(e_.a)(n)}}},eD={kernelName:ed.j,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(em.a)(e,Object(ev.a)(Object(ex.a)(Object(eS.a)(1),Object(eO.a)(Object(ef.a)(n,"float32")))))}}};var eC=n(17);let eA={kernelName:ed.k,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>{let t=Object(ev.a)(Object(eC.a)(Object(eS.a)(1),Object(eO.a)(Object(ef.a)(n,"float32"))));return Object(em.a)(e,t)}}}},eM={kernelName:ed.m,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t,i=Object(ek.assertAndGetBroadcastShape)(n.shape,r.shape);return{a:()=>{let t=Object(eC.a)(Object(eO.a)(n),Object(eO.a)(r)),a=Object(eh.a)(e,Object(em.a)(r,t)),o=Object(ek.getReductionAxes)(n.shape,i);return o.length>0&&(a=Object(ew.a)(a,o)),Object(eT.a)(a,n.shape)},b:()=>{let t=Object(eC.a)(Object(eO.a)(n),Object(eO.a)(r)),a=Object(ey.a)(Object(eh.a)(e,Object(em.a)(n,t))),o=Object(ek.getReductionAxes)(r.shape,i);return o.length>0&&(a=Object(ew.a)(a,o)),Object(eT.a)(a,r.shape)}}}},e$={kernelName:ed.l,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(em.a)(e,Object(eC.a)(Object(eO.a)(Object(ef.a)(n,"float32")),1))}}},eU={kernelName:ed.n,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(em.a)(e,Object(ex.a)(Object(eS.a)(1),Object(eO.a)(Object(ef.a)(n,"float32"))))}}};var eP=n(5),eB=n(2),eL=n(10),eW=n(26),ez=n(4);let eG=Object(ez.b)({avgPool3dGrad_:function(e,t,n,r,i,a){let o=Object(eB.a)(e,"dy","avgPool3dGrad"),s=Object(eB.a)(t,"input","avgPool3dGrad"),l=o,u=s,c=!1;4===s.rank&&(c=!0,l=Object(eT.a)(o,[1,o.shape[0],o.shape[1],o.shape[2],o.shape[3]]),u=Object(eT.a)(s,[1,s.shape[0],s.shape[1],s.shape[2],s.shape[3]])),eL.c(5===l.rank,()=>"Error in avgPool3dGrad: dy must be rank 5 but got rank "+l.rank+"."),eL.c(5===u.rank,()=>"Error in avgPool3dGrad: input must be rank 5 but got rank "+u.rank+"."),Object(eW.a)("avgPool3dGrad",i,a);let p={dy:l,input:u},d={filterSize:n,strides:r,pad:i,dimRoundingMode:a},f=eP.a.runKernel(ed.q,p,d);return c?Object(eT.a)(f,[f.shape[1],f.shape[2],f.shape[3],f.shape[4]]):f}}),eV={kernelName:ed.p,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{filterSize:i,strides:a,pad:o,dimRoundingMode:s}=n;return{x:()=>eG(e,r,i,a,o,s)}}},eH=Object(ez.b)({avgPoolGrad_:function(e,t,n,r,i){let a=Object(eB.a)(e,"dy","avgPoolGrad"),o=Object(eB.a)(t,"input","avgPoolGrad");eL.c(o.rank===a.rank,()=>`Rank of input (${o.rank}) does not match rank of dy (${a.rank})`);let s=o,l=a,u=!1;3===o.rank&&(u=!0,s=Object(eT.a)(o,[1,o.shape[0],o.shape[1],o.shape[2]]),l=Object(eT.a)(a,[1,a.shape[0],a.shape[1],a.shape[2]])),eL.c(4===l.rank,()=>"Error in avgPoolGrad: dy must be rank 4 but got rank "+l.rank+"."),eL.c(4===s.rank,()=>"Error in avgPoolGrad: input must be rank 4 but got rank "+s.rank+".");let c={dy:l,input:s},p={filterSize:n,strides:r,pad:i},d=eP.a.runKernel(ed.r,c,p);return u?Object(eT.a)(d,[d.shape[1],d.shape[2],d.shape[3]]):d}}),eq={kernelName:ed.o,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{filterSize:i,strides:a,pad:o}=n;return{x:()=>eH(e,r,i,a,o)}}};var eK=n(31);let eX={kernelName:ed.s,inputsToSave:["a","b"],gradFunc:(e,t,n)=>{let[r,i]=t,{transposeA:a,transposeB:o}=n;return a||o?!a&&o?{a:()=>Object(eK.a)(e,i,!1,!1),b:()=>Object(eK.a)(e,r,!0,!1)}:a&&!o?{a:()=>Object(eK.a)(i,e,!1,!0),b:()=>Object(eK.a)(r,e,!1,!1)}:{a:()=>Object(eK.a)(i,e,!0,!0),b:()=>Object(eK.a)(e,r,!0,!0)}:{a:()=>Object(eK.a)(e,i,!1,!0),b:()=>Object(eK.a)(r,e,!0,!1)}}};var eY=n(137);let eQ={kernelName:ed.t,gradFunc:(e,t,n)=>
vendor: 4,644 bytes, line 13
13{let{blockShape:r,crops:i}=n;return{x:()=>Object(eY.a)(e,r,i)}}},eJ={kernelName:ed.x,gradFunc:(e,t,n)=>{let r=n,i=r.inputShape,a=r.shape,o=Array.from(a);for(let e=i.length-1;e>=0;e--)if(i[e]===a[e])o[e]=1;else if(1!==i[e])throw Error(`broadcastTo(): [${i}] cannot be broadcast to [${a}].`);let s=[];for(let e=0;e<o.length;e++)o[e]>1&&s.push(e);return{x:()=>Object(ew.a)(e,s,!0)}}},eZ={kernelName:ed.y,gradFunc:e=>({x:()=>e.clone()})},e0={kernelName:ed.z,gradFunc:e=>({x:()=>Object(e_.a)(e)})};var e1=n(91),e2=n(80),e3=n(84),e4=n(45);let e6={kernelName:ed.A,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{clipValueMin:i,clipValueMax:a}=n;return{x:()=>Object(e4.a)(Object(e3.a)(Object(e1.a)(r,i),Object(e2.a)(r,a)),e,Object(e_.a)(e))}}},e5={kernelName:ed.C,inputsToSave:["x"],gradFunc:eb.gradFunc};var e8=n(85);let e7={kernelName:ed.D,saveAllInputs:!0,gradFunc:(e,t,n)=>{let r=t.map(e=>e.shape),{axis:i}=n,a=Object(eL.I)(i,t[0].shape)[0],o=r.map(e=>e[a]);return Object(e8.a)(e,o,a).map(e=>()=>e)}};var e9=n(190),te=n(188);let tt={kernelName:ed.E,inputsToSave:["x","filter"],gradFunc:(e,t,n)=>{let[r,i]=t,{dilations:a,strides:o,pad:s,dataFormat:l}=n;return eL.c(eW.k(a),()=>`Error in gradient of conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '${a}'`),{x:()=>Object(te.a)(r.shape,e,i,o,s,l),filter:()=>Object(e9.a)(r,e,i.shape,o,s,l)}}};var tn=n(90);let tr={kernelName:ed.G,inputsToSave:["dy","filter"],gradFunc:(e,t,n)=>{let[r,i]=t,{strides:a,pad:o,dataFormat:s,dimRoundingMode:l}=n;return{dy:()=>Object(tn.a)(e,i,a,o,s,1,l),filter:()=>Object(e9.a)(e,r,i.shape,a,o,s,l)}}},ti=Object(ez.b)({conv3DBackpropFilter_:function(e,t,n,r,i){let a=e;4===e.rank&&(a=Object(eT.a)(e,[1,e.shape[0],e.shape[1],e.shape[2],e.shape[3]]));let o=t;4===o.rank&&(o=Object(eT.a)(t,[1,t.shape[0],t.shape[1],t.shape[2],t.shape[3]])),eL.c(5===a.rank,()=>"Error in conv3dDerFilter: input must be rank 5, but got shape "+a.shape+"."),eL.c(5===o.rank,()=>"Error in conv3dDerFilter: dy must be rank 5, but got shape "+o.shape+"."),eL.c(5===n.length,()=>"Error in conv3dDerFilter: filterShape must be length 5, but got "+n+"."),eL.c(a.shape[4]===n[3],()=>`Error in conv3dDerFilter: depth of input ${a.shape[4]}) must match input depth in filter (${n[3]}.`),eL.c(o.shape[4]===n[4],()=>`Error in conv3dDerFilter: depth of dy (${o.shape[4]}) must match output depth for filter (${n[4]}).`);let s={x:a,dy:o},l={strides:r,pad:i,filterShape:n};return eP.a.runKernel(ed.I,s,l)}});var ta=n(265);let to={kernelName:ed.H,inputsToSave:["x","filter"],gradFunc:(e,t,n)=>{let{dilations:r,strides:i,pad:a}=n;eL.c(Object(eW.k)(r),()=>`Error in gradient of conv3D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '${r}'`);let[o,s]=t;return{x:()=>Object(ta.a)(o.shape,e,s,i,a),filter:()=>ti(o,e,s.shape,i,a)}}};var ts=n(254);let tl={kernelName:ed.K,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(Object(ey.a)(Object(ts.a)(Object(ef.a)(n,"float32"))),e)}}};var tu=n(255);let tc={kernelName:ed.L,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(Object(tu.a)(Object(ef.a)(n,"float32")),e)}}};var tp=n(55),td=n(174),tf=n(61);let th={kernelName:ed.O,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{axis:i,exclusive:a,reverse:o}=n;return{x:()=>{let t=Object(tp.f)([i],r.rank),n=Object(td.a)(e,i,a,!o);return null!=t&&(n=Object(tf.a)(n,t)),n}}}};var tg=n(269),tb=n(268);let tm={kernelName:ed.R,inputsToSave:["x","filter"],gradFunc:(e,t,n)=>{let{dilations:r,strides:i,pad:a,dimRoundingMode:o}=n,s=null==r?[1,1]:r;eL.c(eW.k(s),()=>`Error in gradient of depthwiseConv2dNative: dilation rates greater than 1 are not yet supported. Got dilations '${s}'`);let[l,u]=t;return eL.c(4===l.rank,()=>`Error in gradient of depthwiseConv2dNative: input must be rank 4, but got rank ${l.rank}.`),eL.c(4===u.rank,()=>`Error in gradient of depthwiseConv2dNative: filter must be rank 4, but got rank ${u.rank}.`),eL.c(l.shape[3]===u.shape[2],()=>`Error in gradient of depthwiseConv2d: number of input channels (${l.shape[3]}) must match the inChannels dimension in filter ${u.shape[2]}.`),eL.c(eW.i(i,s),()=>`Error in gradient of depthwiseConv2d: Either strides or dilations must be 1. Got strides ${i} and dilations '${s}'.`),eW.a("depthwiseConv2d",a,o),{x:()=>Object(tb.a)(l.shape,e,u,i,a,s,o),filter:()=>Object(tg.a)(l,e,u.shape,i,a,s,o)}}},ty={kernelName:ed.V,inputsToSave:["x","filter"],gradFunc:(e,t,n)=>{let[r,i]=t,a={x:r,filter:i,dy:e},o={x:r,filter:i,dy:e};return{x:()=>eP.a.runKernel(ed.X,a,n),filter:()=>eP.a.runKernel(ed.W,o,n)}}},tS={kernelName:ed.ab,outputsToSave:[!0],gradFunc:(e,t)=>
13{let[n]=t,r={dy:e,y:n};return{x:()=>eP.a.runKernel(ed.bb,r)}}};var tv=n(56);let tO={kernelName:ed.db,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t,r=Object(eh.a)(Object(tv.a)(Object(ey.a)(Object(eO.a)(n))),2/Math.sqrt(Math.PI));return{x:()=>Object(eh.a)(e,r)}}},tx={kernelName:ed.eb,outputsToSave:[!0],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(e,n)}}},tI={kernelName:ed.fb,inputsToSave:["input"],gradFunc:(e,t)=>{let[n]=t;return{input:()=>Object(eT.a)(e,n.shape)}}},tN={kernelName:ed.gb,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(e,Object(tv.a)(n))}}},tk={kernelName:ed.kb,gradFunc:e=>({x:()=>Object(e_.a)(e)})},tT={kernelName:ed.lb,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t,i=Object(ek.assertAndGetBroadcastShape)(n.shape,r.shape);return{a:()=>{let t=Object(em.a)(e,Object(ef.a)(r,"float32")),a=Object(ek.getReductionAxes)(n.shape,i);return a.length>0?Object(eT.a)(Object(ew.a)(t,a),n.shape):t},b:()=>{let t=Object(eh.a)(e,Object(ef.a)(n,"float32")),a=Object(ek.getReductionAxes)(r.shape,i);a.length>0&&(t=Object(eT.a)(Object(ew.a)(t,a),r.shape));let o=Object(eO.a)(r);return Object(ey.a)(Object(em.a)(t,Object(ef.a)(o,"float32")))}}}};var tw=n(251),tj=n(95);let tF={kernelName:ed.nb,inputsToSave:["x","mean","variance","scale"],gradFunc:(e,t,n)=>{let{varianceEpsilon:r}=n,[i,a,o,s]=t,l=null==s?Object(eS.a)(1):s,u=Object(ek.getReductionAxes)(a.shape,i.shape),c=[];if(1===a.rank){for(let e=0;e<i.shape.length-1;++e)c.push(i.shape[e]);c.push(1)}let p=Object(ex.a)(i,a),d=Object(eh.a)(e,l),f=Object(tw.a)(Object(eC.a)(o,Object(eS.a)(r))),h=Object(eh.a)(Object(eh.a)(Object(eh.a)(f,f),f),Object(eS.a)(-.5));return{x:()=>1===a.rank?Object(eT.a)(Object(eh.a)(Object(eh.a)(e,Object(tj.a)(Object(eT.a)(f,[1,1,1,a.shape[0]]),c)),l),i.shape):Object(eT.a)(Object(eh.a)(Object(eh.a)(e,f),l),i.shape),mean:()=>{let e=Object(eh.a)(Object(eh.a)(f,Object(eS.a)(-1)),d);return 1===a.rank&&(e=Object(ew.a)(e,u)),Object(eT.a)(e,a.shape)},variance:()=>{let e=Object(eh.a)(Object(eh.a)(h,p),d);return 1===a.rank&&(e=Object(ew.a)(e,u)),Object(eT.a)(e,a.shape)},scale:()=>{let t=Object(eh.a)(p,f),n=Object(eh.a)(e,t);return 1===a.rank&&(n=Object(ew.a)(n,u)),Object(eT.a)(n,a.shape)},offset:()=>{let t=e;return 1===a.rank&&(t=Object(ew.a)(t,u)),Object(eT.a)(t,a.shape)}}}};var t_=n(74),tE=n(187);let tR={kernelName:ed.rb,inputsToSave:["x","indices"],gradFunc:(e,t,n)=>{let[r,i]=t,{axis:a,batchDims:o}=n,s=Object(eL.I)(a,r.shape)[0],l=(e,t,n)=>()=>{let r=e.shape,i=t.size,o=r.slice(0,s),l=o.length,u=r.slice(a,r.length).slice(1),c=u.length,p=tD(0,l),d=tD(l+1,l+1+c),f=tC([o,[i],u]),h=Object(eT.a)(n,f),g=Object(eT.a)(t,[i]),b=tC([[l],p,d]),m=Object(tf.a)(h,b),y=Object(tE.a)(m,g,e.shape[s]),S=Object(tp.h)(b);return Object(tf.a)(y,S)};if(1===o){let t=r.shape[0],n=r.split(t,0);return{x:()=>Object(t_.a)(n.map((t,n)=>l(t,i.slice(n,1),e.slice(n,1))())).reshape(r.shape),indices:()=>i}}return{x:l(r,i,e),indices:()=>i}}};function tD(e,t){let n=[];for(let r=e;r<t;++r)n.push(r);return n}function tC(e){let t=[];for(let n=0;n<e.length;++n)for(let r=0;r<e[n].length;++r)t.push(e[n][r]);return t}let tA={kernelName:ed.tb,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t;return{a:()=>Object(e_.a)(n),b:()=>Object(e_.a)(r)}}},tM={kernelName:ed.vb,gradFunc:e=>({x:()=>Object(ef.a)(e,"float32")})}
13,t$={kernelName:ed.xb,gradFunc:e=>({x:()=>Object(e_.a)(e)})},tU={kernelName:ed.yb,gradFunc:e=>({x:()=>Object(e_.a)(e)})},tP={kernelName:ed.zb,gradFunc:e=>({x:()=>Object(e_.a)(e)})};var tB=n(60);let tL={kernelName:ed.Cb,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{alpha:i}=n,a=Object(tB.a)(r,0);return{x:()=>Object(e4.a)(a,e,Object(eh.a)(e,i))}}},tW={kernelName:ed.Hb,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(em.a)(e,Object(eC.a)(n,1))}}},tz={kernelName:ed.Gb,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(em.a)(e,Object(ef.a)(n,"float32"))}}},tG={kernelName:ed.Ib,inputsToSave:[],outputsToSave:[!0],gradFunc:(e,t,n)=>{let[r]=t,{axis:i}=n;return{logits:()=>{let t=Object(tv.a)(r);return Object(ex.a)(e,Object(eh.a)(Object(ew.a)(e,i,!0),t))}}}},tV=Object(ez.b)({localResponseNormalizationBackprop_:function(e,t,n,r=5,i=1,a=1,o=.5){let s={x:e,y:t,dy:n},l={depthRadius:r,bias:i,alpha:a,beta:o};return eP.a.runKernel(ed.Bb,s,l)}}),tH={kernelName:ed.Ab,inputsToSave:["x"],outputsToSave:[!0],gradFunc:(e,t,n)=>{let[r,i]=t,{depthRadius:a,bias:o,alpha:s,beta:l}=n;return{x:()=>tV(r,i,e,a,o,s,l)}}};var tq=n(132);function tK(e,t,n,r){return t.rank<n.rank&&(t=Object(eT.a)(t,tp.e(t.shape,r))),e.rank<n.rank&&(e=Object(eT.a)(e,tp.e(e.shape,r))),{x:()=>Object(eh.a)(e,Object(ef.a)(Object(tq.a)(n,t),e.dtype))}}let tX={kernelName:ed.Pb,inputsToSave:["x"],outputsToSave:[!0],gradFunc:(e,t,n)=>{let{reductionIndices:r}=n,i=t[0],a=tK(e,t[1],i,eL.I(r,i.shape));return{x:()=>a.x()}}};var tY=n(117);let tQ={kernelName:ed.Vb,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t;return{a:()=>Object(eh.a)(e,Object(ef.a)(Object(e1.a)(n,r),"float32")),b:()=>Object(eh.a)(e,Object(ef.a)(Object(tY.a)(n,r),"float32"))}}},tJ=Object(ez.b)({maxPool3dGrad_:function(e,t,n,r,i,a,o){let s=Object(eB.a)(e,"dy","maxPool3dGrad"),l=Object(eB.a)(t,"input","maxPool3dGrad"),u=Object(eB.a)(n,"output","maxPool3dGrad"),c=s,p=l,d=u,f=!1;4===l.rank&&(f=!0,c=Object(eT.a)(s,[1,s.shape[0],s.shape[1],s.shape[2],s.shape[3]]),p=Object(eT.a)(l,[1,l.shape[0],l.shape[1],l.shape[2],l.shape[3]]),d=Object(eT.a)(u,[1,u.shape[0],u.shape[1],u.shape[2],u.shape[3]])),eL.c(5===c.rank,()=>"Error in maxPool3dGrad: dy must be rank 5 but got rank "+c.rank+"."),eL.c(5===p.rank,()=>"Error in maxPool3dGrad: input must be rank 5 but got rank "+p.rank+"."),eL.c(5===d.rank,()=>"Error in maxPool3dGrad: output must be rank 5 but got rank "+d.rank+"."),Object(eW.a)("maxPool3dGrad",a,o);let h={dy:c,input:p,output:d},g={filterSize:r,strides:i,pad:a,dimRoundingMode:o},b=eP.a.runKernel(ed.Sb,h,g);return f?Object(eT.a)(b,[b.shape[1],b.shape[2],b.shape[3],b.shape[4]]):b}}),tZ={kernelName:ed.Rb,inputsToSave:["x"],outputsToSave:[!0],gradFunc:(e,t,n)=>{let[r,i]=t,{filterSize:a,strides:o,pad:s,dimRoundingMode:l}=n;return{x:()=>tJ(e,r,i,a,o,s,l)}}},t0=Object(ez.b)({maxPoolGrad_:function(e,t,n,r,i,a,o){let s=Object(eB.a)(e,"dy","maxPoolGrad"),l=Object(eB.a)(t,"input","maxPoolGrad"),u=Object(eB.a)(n,"output","maxPoolGrad");eL.c(l.rank===s.rank,()=>`Rank of input (${l.rank}) does not match rank of dy (${s.rank})`),eL.c(4===s.rank,()=>"Error in maxPoolGrad: dy must be rank 4 but got rank "+s.rank+"."),eL.c(4===l.rank,()=>"Error in maxPoolGrad: input must be rank 4 but got rank "+l.rank+"."),eW.a("maxPoolGrad",a,o);let c={dy:s,input:l,output:u},p={filterSize:r,strides:i,pad:a,dimRoundingMode:o};return eP.a.runKernel(ed.Tb,c,p)}}),t1={kernelName:ed.Qb,inputsToSave:["x"],outputsToSave:[!0],gradFunc:(e,t,n)=>{let[r,i]=t,{filterSize:a,strides:o,pad:s}=n;return{x:()=>t0(e,r,i,a,o,s)}}};var t2=n(76);let t3={kernelName:ed.Wb,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{axis:i}=n,a=eL.I(i,r.shape),o=Object(tp.d)(r.shape,a)[1],s=eL.O(o);return{x:()=>{let t=r.shape.slice();a.forEach(e=>{t[e]=1});let n=Object(eT.a)(e,t);return Object(em.a)(Object(eh.a)(n,Object(t2.a)(r.shape,"float32")),s)}}}},t4={kernelName:ed.Xb,inputsToSave:["x"],outputsToSave:[!0],gradFunc:(e,t,n)=>{let{axis:r}=n,[i,a]=t,o=tK(e,a,i,eL.I(r,i.shape));return{x:()=>o.x()}}},t6={kernelName:ed.Yb,inputsToSave:["a","b"],gradFunc:(e,t)=>
13{let[n,r]=t;return{a:()=>Object(eh.a)(e,Object(ef.a)(Object(e2.a)(n,r),"float32")),b:()=>Object(eh.a)(e,Object(ef.a)(Object(tB.a)(n,r),"float32"))}}};var t5=n(34);let t8={kernelName:ed.Zb,inputsToSave:["x"],gradFunc:(e,t,n)=>{let r=t[0],{paddings:i}=n,a=i.map(e=>e[0]);return{x:()=>Object(t5.a)(e,a,r.shape)}}};var t7=n(176);let t9={kernelName:ed.ac,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t,i=Object(ek.assertAndGetBroadcastShape)(n.shape,r.shape);return{a:()=>{let t=Object(ek.getReductionAxes)(n.shape,i);return t.length>0?Object(eT.a)(Object(ew.a)(e,t),n.shape):e},b:()=>{let t=Object(eh.a)(e,Object(ey.a)(Object(t7.a)(Object(em.a)(n,r)))),a=Object(ek.getReductionAxes)(r.shape,i);return a.length>0?Object(eT.a)(Object(ew.a)(t,a),r.shape):t}}}},ne={kernelName:ed.cc,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t,i=Object(ek.assertAndGetBroadcastShape)(n.shape,r.shape);return{a:()=>{let t=Object(eh.a)(e,Object(ef.a)(r,"float32")),a=Object(ek.getReductionAxes)(n.shape,i);return a.length>0?Object(eT.a)(Object(ew.a)(t,a),n.shape):t},b:()=>{let t=Object(eh.a)(e,Object(ef.a)(n,"float32")),a=Object(ek.getReductionAxes)(r.shape,i);return a.length>0?Object(eT.a)(Object(ew.a)(t,a),r.shape):t}}}},nt={kernelName:ed.dc,gradFunc:e=>({x:()=>Object(ey.a)(e)})};var nn=n(107);let nr={kernelName:ed.ic,inputsToSave:["indices"],gradFunc:(e,t)=>{let n=t[0];return{indices:()=>Object(nn.a)(n.shape,"float32")}}},ni={kernelName:ed.jc,gradFunc:e=>({x:()=>Object(e_.a)(e)})};var na=n(110);let no={kernelName:ed.kc,saveAllInputs:!0,gradFunc:(e,t,n)=>{let{axis:r}=n;return Object(na.a)(e,r).map(e=>()=>e)}},ns={kernelName:ed.lc,inputsToSave:["x"],gradFunc:(e,t,n)=>{let r=t[0],{paddings:i}=n,a=i.map(e=>e[0]);return{x:()=>Object(t5.a)(e,a,r.shape)}}};var nl=n(99),nu=n(73);let nc={kernelName:ed.nc,inputsToSave:["a","b"],outputsToSave:[!0],gradFunc:(e,t)=>{let[n,r,i]=t,a=n,o=r,s=ek.assertAndGetBroadcastShape(a.shape,o.shape);return{a:()=>{let t=Object(ef.a)(o,"float32"),n=Object(eh.a)(e,Object(eh.a)(t,Object(nu.a)(a,Object(ex.a)(t,Object(eS.a)(1))))),r=ek.getReductionAxes(a.shape,s);return r.length>0&&(n=Object(ew.a)(n,r)),Object(eT.a)(n,a.shape)},b:()=>{let t=Object(tB.a)(a,0),n=Object(e4.a)(t,Object(nl.a)(a),Object(e_.a)(a)),r=Object(eh.a)(e,Object(eh.a)(i,n)),l=ek.getReductionAxes(o.shape,s);return l.length>0&&(r=Object(ew.a)(r,l)),Object(eT.a)(r,o.shape)}}}},np={kernelName:ed.oc,inputsToSave:["x","alpha"],gradFunc:(e,t)=>{let[n,r]=t,i=Object(tB.a)(n,0);return{x:()=>Object(e4.a)(i,e,Object(eh.a)(e,r)),alpha:()=>{let t=Object(e4.a)(i,Object(e_.a)(e),Object(eh.a)(e,n)),a=Object(ek.getReductionAxes)(r.shape,e.shape);return a.length>0&&(t=Object(ew.a)(t,a)),Object(eT.a)(t,r.shape)}}}};var nd=n(210),nf=n(146);function nh(e,t,n){let r=e.shape.length,i=r-n.length,a=nd.ie.getAxesPermutation(n,r),o=e;null!=a&&(o=Object(tf.a)(e,a));let s=o.shape.slice(),l=s.splice(r-n.length,n.length).reduce((e,t)=>e*t,1);s.push(l);let u=function(e,t,n){let r=e.shape.slice();r[n]=1;let i=Object(eT.a)(t,r),a=Object(nf.a)(e,n,!0,!1),o=Object(nf.a)(e,n,!0,!0),s=Object(eh.a)(a,o);return Object(eh.a)(i,s)}(o.reshape(s),t,i);if(u=u.reshape(o.shape),null!=a){let e=nd.ie.getUndoAxesPermutation(a);u=Object(tf.a)(u,e)}return u}let ng={kernelName:ed.pc,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{axis:i}=n,a=[];return a=null==i?r.shape.map((e,t)=>t):"number"==typeof i?[i]:i,{x:()=>nh(r,e,a)}}},nb={kernelName:ed.vc,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t,i=ek.assertAndGetBroadcastShape(n.shape,r.shape);return{a:()=>{let t=Object(em.a)(e,Object(ef.a)(r,"float32")),a=ek.getReductionAxes(n.shape,i);return a.length>0?Object(eT.a)(Object(ew.a)(t,a),n.shape):t},b:()=>{let t=Object(eh.a)(e,Object(ef.a)(n,"float32")),a=ek.getReductionAxes(r.shape,i);a.length>0&&(t=Object(eT.a)(Object(ew.a)(t,a),r.shape));let o=Object(eO.a)(r);return Object(ey.a)(Object(em.a)(t,Object(ef.a)(o,"float32")))}}}},nm={kernelName:ed.wc,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(em.a)(e,Object(ey.a)(Object(eO.a)(n)))}}},ny={kernelName:ed.yc,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t,r=Object(eh.a)(Object(e2.a)(n,6),Object(eg.a)(n));return{x:()=>Object(eh.a)(e,Object(ef.a)(r,"float32"))}}},nS={kernelName:ed.xc,inputsToSave:["x"],gradFunc:(e,t)=>
vendor: 5,333 bytes, line 13
13{let[n]=t;return{x:()=>Object(eh.a)(e,Object(ef.a)(Object(eg.a)(n),"float32"))}}},nv={kernelName:ed.zc,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eT.a)(e,n.shape)}}},nO={kernelName:ed.Ac,inputsToSave:["images"],gradFunc:(e,t,n)=>{let[r]=t,i={dy:e,images:r};return{images:()=>eP.a.runKernel(ed.Bc,i,n)}}},nx={kernelName:ed.Cc,inputsToSave:["images"],gradFunc:(e,t,n)=>{let[r]=t,i={dy:e,images:r};return{images:()=>eP.a.runKernel(ed.Dc,i,n)}}};var nI=n(68);let nN={kernelName:ed.Ec,gradFunc:(e,t,n)=>{let{dims:r}=n,i=Object(eL.I)(r,e.shape);return{x:()=>Object(nI.a)(e,i)}}},nk={kernelName:ed.Gc,gradFunc:e=>({x:()=>Object(e_.a)(e)})},nT={kernelName:ed.Hc,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(ey.a)(Object(em.a)(e,Object(eh.a)(Object(nu.a)(n,1.5),2)))}}};var nw=n(136);let nj={kernelName:ed.Kc,inputsToSave:["condition"],gradFunc:(e,t)=>{let[n]=t;return{condition:()=>Object(ef.a)(Object(e_.a)(n),"float32"),t:()=>Object(eh.a)(e,Object(ef.a)(n,e.dtype)),e:()=>Object(eh.a)(e,Object(ef.a)(Object(nw.a)(n),e.dtype))}}};var nF=n(209);let n_={kernelName:ed.Lc,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>{let t=Object(tB.a)(n,Object(eS.a)(0)),r=Object(eS.a)(nF.b),i=Object(eS.a)(nF.a),a=Object(eh.a)(e,i),o=Object(eh.a)(Object(eh.a)(e,r),Object(tv.a)(Object(ef.a)(n,"float32")));return Object(e4.a)(t,a,o)}}}},nE={kernelName:ed.Mc,outputsToSave:[!0],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(e,Object(eh.a)(n,Object(ex.a)(Object(eS.a)(1),n)))}}},nR={kernelName:ed.Nc,gradFunc:e=>({x:()=>Object(e_.a)(e)})};var nD=n(173);let nC={kernelName:ed.Oc,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(Object(nD.a)(Object(ef.a)(n,"float32")),e)}}};var nA=n(236);let nM={kernelName:ed.Pc,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(Object(nA.a)(Object(ef.a)(n,"float32")),e)}}};var n$=n(81),nU=n(162);let nP={kernelName:ed.Qc,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{begin:i,size:a}=n,o=r.shape,[s,l]=Object(nU.parseSliceParams)(r,i,a),u=[];for(let t=0;t<e.rank;t++)u.push([s[t],o[t]-s[t]-l[t]]);return{x:()=>Object(n$.a)(e,u)}}},nB={kernelName:ed.Rc,outputsToSave:[!0],gradFunc:(e,t,n)=>{let[r]=t,{dim:i}=n,a=Object(eh.a)(e,r);return{logits:()=>Object(ex.a)(a,Object(eh.a)(Object(ew.a)(a,[i],!0),r))}}};var nL=n(93);let nW={kernelName:ed.Sc,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(e,Object(nL.a)(n))}}};var nz=n(130);let nG={kernelName:ed.Tc,gradFunc:(e,t,n)=>{let{blockShape:r,paddings:i}=n;return{x:()=>Object(nz.a)(e,r,i)}}};var nV=n(44);let nH={kernelName:ed.Zc,gradFunc:(e,t,n)=>{let{axis:r}=n;return{x:()=>Object(nV.a)(e,r)}}},nq={kernelName:ed.ad,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(em.a)(e,Object(eh.a)(Object(ev.a)(Object(ef.a)(n,"float32")),2))}}},nK={kernelName:ed.bd,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(e,Object(eh.a)(Object(ef.a)(n,"float32"),2))}}},nX={kernelName:ed.cd,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t,i=Object(eS.a)(2);return{a:()=>Object(eh.a)(e,Object(eh.a)(i,Object(ex.a)(n,r))),b:()=>Object(eh.a)(e,Object(eh.a)(i,Object(ex.a)(r,n)))}}},nY={kernelName:ed.ed,gradFunc:e=>({x:()=>Object(e_.a)(e)})},nQ={kernelName:ed.jd,inputsToSave:["a","b"],gradFunc:(e,t)=>{let[n,r]=t,i=ek.assertAndGetBroadcastShape(n.shape,r.shape);return{a:()=>{let t=e,r=ek.getReductionAxes(n.shape,i);return r.length>0&&(t=Object(ew.a)(t,r)),Object(eT.a)(t,n.shape)},b:()=>{let t=e,n=ek.getReductionAxes(r.shape,i);return n.length>0&&(t=Object(ew.a)(t,n)),Object(eT.a)(Object(ey.a)(t),r.shape)}}}},nJ={kernelName:ed.kd,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,i=r.shape.slice(),{axis:a}=n;Object(eL.I)(a,r.shape).forEach(e=>{i[e]=1});let o=Object(eT.a)(e,i),s=Object(eh.a)(o,Object(t2.a)(r.shape,"float32"));return{x:()=>s}}},nZ={kernelName:ed.ld,inputsToSave:["x"],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(em.a)(e,Object(eO.a)(Object(nD.a)(n)))}}},n0={kernelName:ed.md,outputsToSave:[!0],gradFunc:(e,t)=>{let[n]=t;return{x:()=>Object(eh.a)(Object(ex.a)(Object(eS.a)(1),Object(eO.a)(n)),e)}}},n1={kernelName:ed.od,inputsToSave:["x"],gradFunc:(e,t,n)=>{let[r]=t,{reps:i}=n;return{x:()=>{let t=Object(e_.a)(r);if(1===r.rank)for(let n=0;n<i[0];++n)t=Object(eC.a)(t,Object(t5.a)(e,[n*r.shape[0]],[r.shape[0]]));else if(2===r.rank)for(let n=0;n<i[0];++n)for(let a=0;a<i[1];++a)t=Object(eC.a)(t,Object(t5.a)(e,[n*r.shape[0],a*r.shape[1]],[r.shape[0],r.shape[1]]));else if(3===r.rank)for(let n=0;n<i[0];++n)for(let a=0;a<i[1];++a)for(let o=0;o<i[2];++o)t=Object(eC.a)(t,Object(t5.a)(e,[n*r.shape[0],a*r.shape[1],o*r.shape[2]],[r.shape[0],r.shape[1],r.shape[2]]));else{if(4!==r.rank)throw Error("Gradient for tile operation is not implemented for rank-"+r.rank+" tensors yet.");for(let n=0;n<i[0];++n)for(let a=0;a<i[1];++a)for(let o=0;o<i[2];++o)for(let s=0;s<i[3];++s)t=Object(eC.a)(t,Object(t5.a)(e,[n*r.shape[0],a*r.shape[1],o*r.shape[2],s*r.shape[3]],[r.shape[0],r.shape[1],r.shape[2],r.shape[3]]))}return t}}}},n2={kernelName:ed.rd,gradFunc:(e,t,n)=>{let{perm:r}=n,i=tp.h(r);return{x:()=>Object(tf.a)(e,i)}}},n3={kernelName:ed.td,gradFunc:(e,t,n)=>{let{axis:r}=n;return{value:()=>Object(t_.a)(e,r)}}};var n4=n(77),n6=n(134),n5=n(128);let n8={kernelName:ed.ud,inputsToSave:["segmentIds"],gradFunc:(e,t)=>
13{let[n]=t;return{x:()=>(function(e,t){let n=Object(n5.a)(t,Object(e_.a)(t)),r=Object(n6.a)(e,n),i=Object(e1.a)(t,Object(eS.a)(0,"int32")),a=r.rank-i.rank;for(let e=0;e<a;++e)i=Object(n4.a)(i,e+1);i=Object(e3.a)(i,Object(t2.a)(r.shape,"bool"));let o=Object(e_.a)(r);return Object(e4.a)(i,r,o)})(e,n)}}},n7={kernelName:ed.wd,gradFunc:e=>({x:()=>Object(e_.a)(e)})};var n9=n(82);for(let e of[eb,eI,eN,ej,eF,eE,eR,eD,eA,eM,e$,eU,eV,eq,eX,eQ,eJ,eZ,e0,e6,e5,e7,tr,tt,to,tl,tc,th,tm,ty,nb,tS,tO,tx,tI,tN,tT,tk,tF,tR,tA,tM,t$,tU,tP,tL,tW,tz,tG,tH,tX,tX,tQ,tZ,t1,t3,t4,t6,t8,t9,ne,nt,nr,ni,no,ns,ns,nc,np,ng,nm,ny,nS,nv,nO,nx,nN,nk,nT,nj,n_,nE,nR,nC,nM,nP,nB,nW,nG,nG,nH,nH,nq,nX,nK,nY,nQ,nJ,nZ,n0,n1,n2,n3,n8,n7])Object(n9.e)(e);var re=n(62),rt=n(6);Object(rt.d)().prototype.abs=function(){return this.throwIfDisposed(),Object(re.a)(this)};var rn=n(338);Object(rt.d)().prototype.acos=function(){return this.throwIfDisposed(),Object(rn.a)(this)};var rr=n(339);Object(rt.d)().prototype.acosh=function(){return this.throwIfDisposed(),Object(rr.a)(this)},Object(rt.d)().prototype.add=function(e){return this.throwIfDisposed(),Object(eC.a)(this,e)};var ri=n(229);Object(rt.d)().prototype.all=function(e,t){return this.throwIfDisposed(),Object(ri.a)(this,e,t)};var ra=n(230);Object(rt.d)().prototype.any=function(e,t){return this.throwIfDisposed(),Object(ra.a)(this,e,t)};var ro=n(231);Object(rt.d)().prototype.argMax=function(e){return this.throwIfDisposed(),Object(ro.a)(this,e)};var rs=n(232);Object(rt.d)().prototype.argMin=function(e){return this.throwIfDisposed(),Object(rs.a)(this,e)},Object(rt.d)().prototype.asScalar=function(){return this.throwIfDisposed(),Object(eL.c)(1===this.size,()=>"The array must have only 1 element."),Object(eT.a)(this,[])},Object(rt.d)().prototype.asType=function(e){return this.throwIfDisposed(),Object(ef.a)(this,e)},Object(rt.d)().prototype.as1D=function(){return this.throwIfDisposed(),Object(eT.a)(this,[this.size])},Object(rt.d)().prototype.as2D=function(e,t){return this.throwIfDisposed(),Object(eT.a)(this,[e,t])},Object(rt.d)().prototype.as3D=function(e,t,n){return this.throwIfDisposed(),Object(eT.a)(this,[e,t,n])},Object(rt.d)().prototype.as4D=function(e,t,n,r){return this.throwIfDisposed(),Object(eT.a)(this,[e,t,n,r])},Object(rt.d)().prototype.as5D=function(e,t,n,r,i){return this.throwIfDisposed(),Object(eT.a)(this,[e,t,n,r,i])};var rl=n(340);Object(rt.d)().prototype.asin=function(){return this.throwIfDisposed(),Object(rl.a)(this)};var ru=n(341);Object(rt.d)().prototype.asinh=function(){return this.throwIfDisposed(),Object(ru.a)(this)};var rc=n(342);Object(rt.d)().prototype.atan=function(){return this.throwIfDisposed(),Object(rc.a)(this)};var rp=n(233);Object(rt.d)().prototype.atan2=function(e){return this.throwIfDisposed(),Object(rp.a)(this,e)};var rd=n(343);Object(rt.d)().prototype.atanh=function(){return this.throwIfDisposed(),Object(rd.a)(this)};var rf=n(172);Object(rt.d)().prototype.avgPool=function(e,t,n,r){return this.throwIfDisposed(),Object(rf.a)(this,e,t,n,r)},Object(rt.d)().prototype.batchToSpaceND=function(e,t){return this.throwIfDisposed(),Object(nz.a)(this,e,t)};var rh=n(111);Object(rt.d)().prototype.batchNorm=function(e,t,n,r,i){return this.throwIfDisposed(),Object(rh.a)(this,e,t,n,r,i)};var rg=n(139);Object(rt.d)().prototype.broadcastTo=function(e){return this.throwIfDisposed(),Object(rg.a)(this,e)},Object(rt.d)().prototype.cast=function(e){return this.throwIfDisposed(),Object(ef.a)(this,e)};var rb=n(344);Object(rt.d)().prototype.ceil=function(){return this.throwIfDisposed(),Object(rb.a)(this)};var rm=n(345);Object(rt.d)().prototype.clipByValue=function(e,t){return this.throwIfDisposed(),Object(rm.a)(this,e,t)},Object(rt.d)().prototype.concat=function(e,t){return this.throwIfDisposed(),e instanceof rt.a&&(e=[e]),Object(nV.a)([this,...e],t)};var ry=n(234);Object(rt.d)().prototype.conv1d=function(e,t,n,r,i,a){return this.throwIfDisposed(),Object(ry.a)(this,e,t,n,r,i,a)};var rS=n(235);Object(rt.d)().prototype.conv2dTranspose=function(e,t,n,r,i){return this.throwIfDisposed(),Object(rS.a)(this,e,t,n,r,i)},Object(rt.d)().prototype.conv2d=function(e,t,n,r,i,a){return this.throwIfDisposed(),Object(tn.a)(this,e,t,n,r,i,a)},Object(rt.d)().prototype.cos=function(){return this.throwIfDisposed(),Object(nD.a)(this)},Object(rt.d)().prototype.cosh=function(){return this.throwIfDisposed(),Object(nA.a)(this)},Object(rt.d)().prototype.cumprod=function(e,t,n){return this.throwIfDisposed(),Object(nf.a)(this,e,t,n)},Object(rt.d)().prototype.cumsum=function(e,t,n){return this.throwIfDisposed(),Object(td.a)(this,e,t,n)};var rv=n(237);Object(rt.d)().prototype.depthToSpace=function(e,t){return this.throwIfDisposed(),Object(rv.a)(this,e,t)};var rO=n(131);Object(rt.d)().prototype.depthwiseConv2d=function(e,t,n,r,i,a){return this.throwIfDisposed(),Object(rO.a)(this,e,t,n,r,i,a)};var rx=n(238);Object(rt.d)().prototype.dilation2d=function(e,t,n,r,i){return this.throwIfDisposed(),Object(rx.a)(this,e,t,n,r,i)};var rI=n(239);Object(rt.d)().prototype.divNoNan=function(e){return this.throwIfDisposed(),Object(rI.a)(this,e)},Object(rt.d)().prototype.div=function(e){return this.throwIfDisposed(),Object(em.a)(this,e)};var rN=n(240);Object(rt.d)().prototype.dot=function(e){return this.throwIfDisposed(),Object(rN.a)(this,e)};var rk=n(175);Object(rt.d)().prototype.elu=function(){return this.throwIfDisposed(),Object(rk.a)(this)},Object(rt.d)().prototype.equal=function(e){return this.throwIfDisposed(),Object(tq.a)(this,e)};var rT=n(346);Object(rt.d)().prototype.erf=function(){return this.throwIfDisposed(),Object(rT.a)(this)};var rw=n(241);Object(rt.d)().prototype.euclideanNorm=function(e,t){return this.throwIfDisposed(),Object(rw.a)(this,e,t)},Object(rt.d)().prototype.exp=function(){return this.throwIfDisposed(),Object(tv.a)(this)},Object(rt.d)().prototype.expandDims=function(e){return this.throwIfDisposed(),Object(n4.a)(this,e)};
13var rj=n(347);Object(rt.d)().prototype.expm1=function(){return this.throwIfDisposed(),Object(rj.a)(this)};var rF=n(184);Object(rt.d)().prototype.fft=function(){return this.throwIfDisposed(),Object(rF.a)(this)},Object(rt.d)().prototype.flatten=function(){return this.throwIfDisposed(),Object(eT.a)(this,[this.size])},Object(rt.d)().prototype.floor=function(){return this.throwIfDisposed(),Object(t7.a)(this)};var r_=n(166);Object(rt.d)().prototype.floorDiv=function(e){return this.throwIfDisposed(),Object(r_.a)(this,e)},Object(rt.d)().prototype.gather=function(e,t,n){return this.throwIfDisposed(),Object(n6.a)(this,e,t,n)},Object(rt.d)().prototype.greaterEqual=function(e){return this.throwIfDisposed(),Object(e1.a)(this,e)},Object(rt.d)().prototype.greater=function(e){return this.throwIfDisposed(),Object(tB.a)(this,e)};var rE=n(149);Object(rt.d)().prototype.ifft=function(){return this.throwIfDisposed(),Object(rE.a)(this)};var rR=n(256);Object(rt.d)().prototype.irfft=function(){return this.throwIfDisposed(),Object(rR.a)(this)};var rD=n(348);Object(rt.d)().prototype.isFinite=function(){return this.throwIfDisposed(),Object(rD.a)(this)};var rC=n(349);Object(rt.d)().prototype.isInf=function(){return this.throwIfDisposed(),Object(rC.a)(this)};var rA=n(350);Object(rt.d)().prototype.isNaN=function(){return this.throwIfDisposed(),Object(rA.a)(this)};var rM=n(177);Object(rt.d)().prototype.leakyRelu=function(e){return this.throwIfDisposed(),Object(rM.a)(this,e)},Object(rt.d)().prototype.lessEqual=function(e){return this.throwIfDisposed(),Object(e2.a)(this,e)},Object(rt.d)().prototype.less=function(e){return this.throwIfDisposed(),Object(tY.a)(this,e)};var r$=n(242);Object(rt.d)().prototype.localResponseNormalization=function(e,t,n,r){return this.throwIfDisposed(),Object(r$.a)(this,e,t,n,r)};var rU=n(351);Object(rt.d)().prototype.logSigmoid=function(){return this.throwIfDisposed(),Object(rU.a)(this)};var rP=n(352);Object(rt.d)().prototype.logSoftmax=function(e){return this.throwIfDisposed(),Object(rP.a)(this,e)};var rB=n(178);Object(rt.d)().prototype.logSumExp=function(e,t){return this.throwIfDisposed(),Object(rB.a)(this,e,t)},Object(rt.d)().prototype.log=function(){return this.throwIfDisposed(),Object(nl.a)(this)};var rL=n(243);Object(rt.d)().prototype.log1p=function(){return this.throwIfDisposed(),Object(rL.a)(this)},Object(rt.d)().prototype.logicalAnd=function(e){return this.throwIfDisposed(),Object(e3.a)(this,e)},Object(rt.d)().prototype.logicalNot=function(){return this.throwIfDisposed(),Object(nw.a)(this)};var rW=n(179);Object(rt.d)().prototype.logicalOr=function(e){return this.throwIfDisposed(),Object(rW.a)(this,e)};var rz=n(245);Object(rt.d)().prototype.logicalXor=function(e){return this.throwIfDisposed(),Object(rz.a)(this,e)},Object(rt.d)().prototype.matMul=function(e,t,n){return this.throwIfDisposed(),Object(eK.a)(this,e,t,n)};var rG=n(180);Object(rt.d)().prototype.maxPool=function(e,t,n,r){return this.throwIfDisposed(),Object(rG.a)(this,e,t,n,r)};var rV=n(94);Object(rt.d)().prototype.max=function(e,t){return this.throwIfDisposed(),Object(rV.a)(this,e,t)},Object(rt.d)().prototype.maximum=function(e){return this.throwIfDisposed(),Object(n5.a)(this,e)};var rH=n(118);Object(rt.d)().prototype.mean=function(e,t){return this.throwIfDisposed(),Object(rH.a)(this,e,t)};var rq=n(147);Object(rt.d)().prototype.min=function(e,t){return this.throwIfDisposed(),Object(rq.a)(this,e,t)};var rK=n(119);Object(rt.d)().prototype.minimum=function(e){return this.throwIfDisposed(),Object(rK.a)(this,e)};var rX=n(246);Object(rt.d)().prototype.mirrorPad=function(e,t){return this.throwIfDisposed(),Object(rX.a)(this,e,t)};var rY=n(247);Object(rt.d)().prototype.mod=function(e){return this.throwIfDisposed(),Object(rY.a)(this,e)},Object(rt.d)().prototype.mul=function(e){return this.throwIfDisposed(),Object(eh.a)(this,e)},Object(rt.d)().prototype.neg=function(){return this.throwIfDisposed(),Object(ey.a)(this)};var rQ=n(133);Object(rt.d)().prototype.norm=function(e,t,n){return this.throwIfDisposed(),Object(rQ.a)(this,e,t,n)};var rJ=n(181);Object(rt.d)().prototype.notEqual=function(e){return this.throwIfDisposed(),Object(rJ.a)(this,e)};var rZ=n(148);Object(rt.d)().prototype.oneHot=function(e,t=1,n=0){return this.throwIfDisposed(),Object(rZ.a)(this,e,t,n)};var r0=n(353);Object(rt.d)().prototype.onesLike=function(){return this.throwIfDisposed(),Object(r0.a)(this)},Object(rt.d)().prototype.pad=function(e,t){return this.throwIfDisposed(),Object(n$.a)(this,e,t)};var r1=n(248);Object(rt.d)().prototype.pool=function(e,t,n,r,i,a){return this.throwIfDisposed(),Object(r1.a)(this,e,t,n,r,i,a)},Object(rt.d)().prototype.pow=function(e){return this.throwIfDisposed(),Object(nu.a)(this,e)};var r2=n(182);Object(rt.d)().prototype.prelu=function(e){return this.throwIfDisposed(),Object(r2.a)(this,e)};var r3=n(249);Object(rt.d)().prototype.prod=function(e,t){return this.throwIfDisposed(),Object(r3.a)(this,e,t)};var r4=n(354);Object(rt.d)().prototype.reciprocal=function(){return this.throwIfDisposed(),Object(r4.a)(this)};var r6=n(108);Object(rt.d)().prototype.relu=function(){return this.throwIfDisposed(),Object(r6.a)(this)};var r5=n(183);Object(rt.d)().prototype.relu6=function(){return this.throwIfDisposed(),Object(r5.a)(this)},Object(rt.d)().prototype.reshapeAs=function(e){return this.throwIfDisposed(),Object(eT.a)(this,e.shape)},Object(rt.d)().prototype.reshape=function(e){return this.throwIfDisposed(),Object(eT.a)(this,e)};var r8=n(267);Object(rt.d)().prototype.resizeBilinear=function(e,t,n){return this.throwIfDisposed(),Object(r8.a)(this,e,t,n)};var r7=n(266);Object(rt.d)().prototype.resizeNearestNeighbor=function(e,t,n){return this.throwIfDisposed(),Object(r7.a)(this,e,t,n)},Object(rt.d)().prototype.reverse=function(e){return this.throwIfDisposed(),Object(nI.a)(this,e)};var r9=n(185);Object(rt.d)().prototype.rfft=function(){return this.throwIfDisposed(),Object(r9.a)(this)};var ie=n(250);Object(rt.d)().prototype.round=function(){return this.throwIfDisposed(),Object(ie.a)(this)},Object(rt.d)().prototype.rsqrt=function(){return this.throwIfDisposed(),Object(tw.a)(this)};var it=n(252);Object(rt.d)().prototype.selu=function(){return this.throwIfDisposed(),Object(it.a)(this)};var ir=n(253);Object(rt.d)().prototype.separableConv2d=function(e,t,n,r,i,a){return this.throwIfDisposed(),Object(ir.a)(this,e,t,n,r,i,a)},Object(rt.d)().prototype.sigmoid=function(){return this.throwIfDisposed(),Object(nL.a)(this)};var ii=n(355);Object(rt.d)().prototype.sign=function(){return this.throwIfDisposed(),Object(ii.a)(this)},Object(rt.d)().prototype.sin=function(){return this.throwIfDisposed(),Object(ts.a)(this)},Object(rt.d)().prototype.sinh=function(){return this.throwIfDisposed(),Object(tu.a)(this)},Object(rt.d)().prototype.slice=function(e,t){return this.throwIfDisposed(),Object(t5.a)(this,e,t)};var ia=n(356);Object(rt.d)().prototype.softmax=function(e){return this.throwIfDisposed(),Object(ia.a)(this,e)};var io=n(244);Object(rt.d)().prototype.softplus=function(){return this.throwIfDisposed(),Object(io.a)(this)},Object(rt.d)().prototype.spaceToBatchND=function(e,t){return this.throwIfDisposed(),Object(eY.a)(this,e,t)},Object(rt.d)().prototype.split=function(e,t){return this.throwIfDisposed(),Object(e8.a)(this,e,t)},Object(rt.d)().prototype.sqrt=function(){return this.throwIfDisposed(),Object(ev.a)(this)},Object(rt.d)().prototype.square=function(){return this.throwIfDisposed(),Object(eO.a)(this)};var is=n(186);Object(rt.d)().prototype.squaredDifference=function(e){return this.throwIfDisposed(),Object(is.a)(this,e)};var il=n(138);Object(rt.d)().prototype.squeeze=function(e){return this.throwIfDisposed(),Object(il.a)(this,e)},Object(rt.d)().prototype.stack=function(e,t){this.throwIfDisposed();let n=e instanceof rt.a?[this,e]:[this,...e];return Object(t_.a)(n,t)},Object(rt.d)().prototype.step=function(e){return this.throwIfDisposed(),Object(eg.a)(this,e)};var iu=n(357);Object(rt.d)().prototype.stridedSlice=function(e,t,n,r,i,a,o,s){return this.throwIfDisposed(),Object(iu.a)(this,e,t,n,r,i,a,o,s)}
13,Object(rt.d)().prototype.sub=function(e){return this.throwIfDisposed(),Object(ex.a)(this,e)},Object(rt.d)().prototype.sum=function(e,t){return this.throwIfDisposed(),Object(ew.a)(this,e,t)};var ic=n(358);Object(rt.d)().prototype.tan=function(){return this.throwIfDisposed(),Object(ic.a)(this)};var ip=n(208);Object(rt.d)().prototype.tanh=function(){return this.throwIfDisposed(),Object(ip.a)(this)},Object(rt.d)().prototype.tile=function(e){return this.throwIfDisposed(),Object(tj.a)(this,e)},Object(rt.d)().prototype.toBool=function(){return this.throwIfDisposed(),Object(ef.a)(this,"bool")},Object(rt.d)().prototype.toFloat=function(){return this.throwIfDisposed(),Object(ef.a)(this,"float32")},Object(rt.d)().prototype.toInt=function(){return this.throwIfDisposed(),Object(ef.a)(this,"int32")};var id=n(258);Object(rt.d)().prototype.topk=function(e,t){return this.throwIfDisposed(),Object(id.a)(this,e,t)},Object(rt.d)().prototype.transpose=function(e){return this.throwIfDisposed(),Object(tf.a)(this,e)};var ih=n(259);Object(rt.d)().prototype.unique=function(e){return this.throwIfDisposed(),Object(ih.a)(this,e)},Object(rt.d)().prototype.unsortedSegmentSum=function(e,t){return this.throwIfDisposed(),Object(tE.a)(this,e,t)},Object(rt.d)().prototype.unstack=function(e){return this.throwIfDisposed(),Object(na.a)(this,e)},Object(rt.d)().prototype.where=function(e,t){return this.throwIfDisposed(),Object(e4.a)(e,this,t)},Object(rt.d)().prototype.zerosLike=function(){return this.throwIfDisposed(),Object(e_.a)(this)};class ig extends Error{constructor(e){super(e),Object.setPrototypeOf(this,ig.prototype)}}class ib extends Error{constructor(e){super(e),Object.setPrototypeOf(this,ib.prototype)}}class im extends Error{constructor(e){super(e),Object.setPrototypeOf(this,im.prototype)}}class iy extends Error{constructor(e){super(e),Object.setPrototypeOf(this,iy.prototype)}}class iS extends Error{constructor(e){super(e),Object.setPrototypeOf(this,iS.prototype)}}class iv{constructor(e){this.maxEntries=e||100,this.cache=new Map}get(e){let t;return this.cache.has(e)&&(t=this.cache.get(e),this.cache.delete(e),this.cache.set(e,t)),t}put(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxEntries){let e=this.cache.keys().next().value;this.cache.delete(e)}this.cache.set(e,t)}getMaxEntries(){return this.maxEntries}setMaxEntries(e){if(e<0)throw Error(`The maxEntries of LRU caches must be at least 0, but got ${e}.`);if(this.maxEntries>e)for(let t=0;t<this.maxEntries-e;t++){let e=this.cache.keys().next().value;this.cache.delete(e)}this.maxEntries=e}}function iO(e,t){if(Array.isArray(e)){let n=[];for(let r=0;r<t;r++)n=n.concat(e);return n}{let n=Array(t);return n.fill(e),n}}function ix(e,t){if(!e)throw new iS(t)}function iI(e,t){let n=0;for(let r of e)r===t&&n++;return n}function iN(e){return 1===e.length?e[0]:e}function ik(e){return Array.isArray(e)?e:[e]}function iT(e){let t=e.replace(/(.)([A-Z][a-z0-9]+)/g,"$1_$2").replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase();return"_"!==t[0]?t:"private"+t}function iw(e){return e.length<=1||-1===e.indexOf("_")?e:e.replace(/[_]+(\w|$)/g,(e,t)=>t.toUpperCase())}let ij={};function iF(e){if(null==e)return null;let t={};return t.className=e.getClassName(),t.config=e.getConfig(),t}function i_(e,t={},n={},r="object",i=!1){if("string"==typeof e){let i,a=e;if(a in n)i=n[a];else if(a in ij)i=ij[a];else if(null==(i=t[a]))throw new im(`Unknown ${r}: ${e}. This may be due to one of the following reasons: 141. The ${r} is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code. 152. The custom ${r} is defined in JavaScript, but is not registered properly with tf.serialization.registerClass().`);return i}{let a,o,s=e;if(null==s.className||null==s.config)throw new im(r+": Improper config format: "+JSON.stringify(s)+".\n'className' and 'config' must set.");let l=s.className;if(l in n?[a,o]=n[l]:l in ij?[a,o]=ij.className:l in t&&([a,o]=t[l]),null==a)throw new im(`Unknown ${r}: ${l}. This may be due to one of the following reasons: 161. The ${r} is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code. 172. The custom ${r} is defined in JavaScript, but is not registered properly with tf.serialization.registerClass().`);if(null!=o){let e={};for(let t of Object.keys(ij))e[t]=ij[t];for(let t of Object.keys(n))e[t]=n[t];s.config.customObjects=e;let t=Object.assign({},ij);for(let e of Object.keys(n))ij[e]=n[e];!function e(t){if(null!=t&&"object"==typeof t)if(Array.isArray(t))t.forEach(t=>e(t));else for(let n of Object.keys(t)){let r=t[n];null!=r&&"object"==typeof r&&(Array.isArray(r)||"ndarray"!==r.type||"number"!=typeof r.value?e(r):t[n]=r.value)}}(s.config);let r=o(a,s.config,n,i);return ij=Object.assign({},t),r}{let e=Object.assign({},ij);for(let e of Object.keys(n))ij[e]=n[e];let t=new a(s.config);return ij=Object.assign({},e),t}}}function iE(e,t){var n,r;return -1*((n=e)<(r=t)?-1:+(n>r))}function iR(e){if(null==e)return e;let t=[];for(let n of e)-1===t.indexOf(n)&&t.push(n);return t}function iD(e){if(null==e)throw new im("Invalid value in obj: "+JSON.stringify(e));for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}function iC(e,t,n){if(null!=n&&0>e.indexOf(n))throw new im(`${n} is not a valid ${t}. Valid values are ${e} or null/undefined.`)}function iA(e,t,n=0,r=1/0){return ix(n>=0),ix(r>=n),Array.isArray(e)&&e.length>=n&&e.length<=r&&e.every(e=>typeof e===t)}function iM(e,t){Array.isArray(e)?(ep.Si.assert(e.length>0,()=>t+" is unexpectedly an empty array."),e.forEach((e,n)=>iM(e,`element ${n+1} of ${t}`))):ep.Si.assert(Number.isInteger(e)&&e>0,()=>`Expected ${t} to be a positive integer, but got `+function e(t){return null===t?"null":Array.isArray(t)?"["+t.map(t=>e(t)).join(",")+"]":"string"==typeof t?`"${t}"`:""+t}(e)+".")}function i$(e){return"relu"===e?"relu":"linear"===e?"linear":"elu"===e?"elu":null}let iU=0;function iP(){return iU++}let iB={};function iL(e=""){return e in iB||(iB[e]=0),iB[e]+=1,e+iB[e].toString()}let iW=["channelsFirst","channelsLast"],iz=["nearest","bilinear"],iG=["valid","same","causal"],iV=["max","avg"],iH=["sum","mul","concat","ave"],iq=new Map;function iK(e){iC(iW,"DataFormat",e)}function iX(e){iC(iG,"PaddingMode",e)}function iY(e){iC(iV,"PoolMode",e)}let iQ=[];function iJ(e,t){iQ.push(e);try{let e=t();return iQ.pop(),e}catch(e){throw iQ.pop(),e}}function iZ(e){if(!i2(e))throw Error("Not a valid tensor name: '"+e+"'");return(0===iQ.length?"":iQ.join("/")+"/")+e}function i0(e){if(!i2(e))throw Error("Not a valid tensor name: '"+e+"'");iq.has(e)||iq.set(e,0);let t=iq.get(e);if(iq.set(e,iq.get(e)+1),t>0){let n=`${e}_${t}`;return iq.set(n,1),n}return e}let i1=new RegExp(/^[A-Za-z0-9][-A-Za-z0-9\._\/]*$/);function i2(e){return!!e.match(i1)}function i3(e,t,n){null==t&&(t=0),null==n&&(n=e.length);let r=1;for(let i=t;i<n;++i)r*=e[i];return r}function i4(e){if(0===e.length)return NaN;let t=1/0;for(let n=0;n<e.length;n++){let r=e[n];r<t&&(t=r)}return t}function i6(e){if(0===e.length)return NaN;let t=-1/0;for(let n=0;n<e.length;n++){let r=e[n];r>t&&(t=r)}return t}function i5(e,t){if(t<e)throw new im(`end (${t}) < begin (${e}) is forbidden.`);let n=[];for(let r=e;r<t;++r)n.push(r);return n}function i8(){return null==r&&(r=Object(ep.he)().epsilon()),r}function i7(e,t){return ep.xe(e,t)}function i9(e,t=-1){let n=e.shape.slice();
vendor: 6,569 bytes, line 17
17return t<0&&(t=n.length+t+1),n.splice(t,0,1),ep.wh(e,n)}function ae(e,t,n){return Object(ep.Ei)(()=>{switch(e.rank){case 1:return ep.Vh(e,t,n);case 2:return ep.Wh(e,[t,0],[n,e.shape[1]]);case 3:return ep.Xh(e,[t,0,0],[n,e.shape[1],e.shape[2]]);case 4:return ep.Yh(e,[t,0,0,0],[n,e.shape[1],e.shape[2],e.shape[3]]);case 5:return ep.Uh(e,[t,0,0,0,0],[n,e.shape[1],e.shape[2],e.shape[3],e.shape[4]]);case 6:return ep.Uh(e,[t,0,0,0,0,0],[n,e.shape[1],e.shape[2],e.shape[3],e.shape[4],e.shape[5]]);default:throw new im("sliceAlongFirstAxis() received an unsupported tensor rank: "+e.rank)}})}function at(e,t,n){return Object(ep.Ei)(()=>{switch(e.rank){case 1:return ep.Vh(e,t,n);case 2:return ep.Wh(e,[0,t],[e.shape[0],n]);case 3:return ep.Xh(e,[0,0,t],[e.shape[0],e.shape[1],n]);case 4:return ep.Yh(e,[0,0,0,t],[e.shape[0],e.shape[1],e.shape[2],n]);default:throw new im("sliceAlongLastAxis() received an unsupported tensor rank: "+e.rank)}})}function an(e,t,n,r){return Object(ep.Ei)(()=>{switch(e.rank){case 1:return ep.Vh(e,t,n);case 2:switch(r){case 1:return ae(e,t,n);case 2:return at(e,t,n);default:throw new im("The axis is not within the rank of the tensor "+r)}case 3:switch(r){case 1:return ae(e,t,n);case 2:return ep.Xh(e,[0,t,0],[e.shape[0],n,e.shape[2]]);case 3:return at(e,t,n);default:throw new im("The axis is not within the rank of the tensor "+r)}case 4:switch(r){case 1:return ae(e,t,n);case 2:return ep.Yh(e,[0,t,0,0],[e.shape[0],n,e.shape[2],e.shape[3]]);case 3:return ep.Yh(e,[0,0,t,0],[e.shape[0],e.shape[1],n,e.shape[3]]);case 4:return at(e,t,n);default:throw new im("The axis is not within the rank of the tensor "+r)}default:throw new im("sliceAlongLastAxis() received an unsupported tensor rank: "+e.rank)}})}function ar(e,t=-1){let n;return t<0&&(t=0!==(n=e[0].rank)?n:0),t===e[0].rank&&(t=-1),ep.Ce(e,t)}function ai(e,t){switch(e.rank){case 1:return ep.De([e,t]);case 2:return ep.Ee([e,t],0);case 3:return ep.Fe([e,t],0);case 4:return ep.Ge([e,t],0);default:throw new im("concatAlongFirstAxis() received an unsupported tensor rank: "+e.rank)}}function aa(e,t){if(Array.isArray(t)||(t=[t]),e.rank!==t.length)throw new im(`The length of input n (${t.length}) does not match the number of dimensions in input x (${e.rank})`);return ep.Fi(e,t)}function ao(e,t=0,n=1,r,i){return ep.ih(e,t,n,r,i)}function as(e,t,n,r){if(e.rank<2||t.rank<2)throw new iy(`dot requires both inputs to be rank >= 2 but got x shape = ${e.shape} and y shape = ${t.shape}`);if(t.rank>=3&&e.shape.slice(-1)[0]!==t.shape.slice(-2)[0])throw new iy(`If rank y >= 3, then the second last dim of y must equal the last dim of x but got x shape = ${e.shape} and y shape = `+t.shape);if(2===e.rank&&2===t.rank){let i=!1,a=!1;return ep.Cf.matMul({a:e,b:t,transposeA:i,transposeB:a,bias:r?ac(e.rank,r,"channelsLast"):null,activation:n})}{let i=e.shape.slice(),a=i.pop();e=ep.wh(e,[-1,a]);let o=t.shape.slice(),s=o.pop(),l=o.pop(),u=[...o,s],c=Array.from({length:t.rank},(e,n)=>0===n?t.rank-2:n<=t.rank-2?n-1:n);t=ep.wh(ep.Ji(t,c),[l,-1]);let p=[...i,...u],d=!1,f=!1;return ep.wh(ep.Cf.matMul({a:e,b:t,transposeA:d,transposeB:f,bias:r?ac(e.rank,r,"channelsLast"):null,activation:n}),p)}}function al(e,t,n){return Object(ep.Ei)(()=>(t=Array.isArray(t)?Object(ep.vi)(t,"int32"):ep.xe(t,"int32"),ep.Df(e,t,n)))}function au(e){return ep.Gg(e,e)}function ac(e,t,n){let r=t.shape;if(1!==t.rank&&t.rank!==e)throw new im("Unexpected bias dimensions: "+t.rank+"; expected it to be 1 or "+e);if(5===e){if("channelsFirst"===n)return 1===r.length?ep.wh(t,[1,r[0],1,1,1]):ep.wh(t,[1,r[3],r[0],r[1],r[2]]);if("channelsLast"===n)return 1===r.length?ep.wh(t,[1,1,1,1,r[0]]):ep.wh(t,[1].concat(r))}else if(4===e){if("channelsFirst"===n)return 1===r.length?ep.wh(t,[1,r[0],1,1]):ep.wh(t,[1,r[2],r[0],r[1]]);if("channelsLast"===n)return 1===r.length?ep.wh(t,[1,1,1,r[0]]):ep.wh(t,[1].concat(r))}else if(3===e){if("channelsFirst"===n)return 1===r.length?ep.wh(t,[1,r[0],1]):ep.wh(t,[1,r[1],r[0]]);if("channelsLast"===n)return 1===r.length?ep.wh(t,[1,1,r[0]]):ep.wh(t,[1].concat(r))}else if(e<3)return t;throw new im("Unsupported input rank by biasAdd: "+t.rank)}function ap(e,t,n){return Object(ep.Ei)(()=>(null==n&&(n="channelsLast"),iK(n),ep.Ud(e,ac(e.rank,t,n))))}function ad(e,t,n,r){return Object(ep.Ei)(()=>ep.gf(e,t,n,r))}function af(e,t,n=!1){return n?e():t()}let ah=["fanIn","fanOut","fanAvg"],ag=["normal","uniform","truncatedNormal"];class ab extends ep.Lh.Serializable{fromConfigUsesCustomObjects(){return!1}getConfig(){return{}}}class am extends ab{apply(e,t){return Object(ep.aj)(e,t)}}am.className="Zeros",ep.Lh.registerClass(am);class ay extends ab{apply(e,t){return Object(ep.Og)(e,t)}}ay.className="Ones",ep.Lh.registerClass(ay);class aS extends ab{constructor(e){if(super(),"object"!=typeof e)throw new im("Expected argument of type ConstantConfig but got "+e);if(void 0===e.value)throw new im("config must have value set but got "+e);this.value=e.value}apply(e,t){return Object(ep.Ei)(()=>Object(ep.Gg)(Object(ep.Fh)(this.value),Object(ep.Og)(e,t)))}getConfig(){return{value:this.value}}}aS.className="Constant",ep.Lh.registerClass(aS);class av extends ab{constructor(e){super(),this.DEFAULT_MINVAL=-.05,this.DEFAULT_MAXVAL=.05,this.minval=e.minval||this.DEFAULT_MINVAL,this.maxval=e.maxval||this.DEFAULT_MAXVAL,this.seed=e.seed}apply(e,t){return Object(ep.kh)(e,this.minval,this.maxval,t,this.seed)}getConfig(){return{minval:this.minval,maxval:this.maxval,seed:this.seed}}}av.className="RandomUniform",ep.Lh.registerClass(av);class aO extends ab{constructor(e){super(),this.DEFAULT_MEAN=0,this.DEFAULT_STDDEV=.05,this.mean=e.mean||this.DEFAULT_MEAN,this.stddev=e.stddev||this.DEFAULT_STDDEV,this.seed=e.seed}apply(e,t){if("float32"!==(t=t||"float32")&&"int32"!==t)throw new iy(`randomNormal does not support dType ${t}.`);return ao(e,this.mean,this.stddev,t,this.seed)}getConfig(){return{mean:this.mean,stddev:this.stddev,seed:this.seed}}}aO.className="RandomNormal",ep.Lh.registerClass(aO);class ax extends ab{constructor(e){super(),this.DEFAULT_MEAN=0,this.DEFAULT_STDDEV=.05,this.mean=e.mean||this.DEFAULT_MEAN,this.stddev=e.stddev||this.DEFAULT_STDDEV,this.seed=e.seed}apply(e,t){if("float32"!==(t=t||"float32")&&"int32"!==t)throw new iy(`truncatedNormal does not support dType ${t}.`);return Object(ep.Ki)(e,this.mean,this.stddev,t,this.seed)}getConfig(){return{mean:this.mean,stddev:this.stddev,seed:this.seed}}}ax.className="TruncatedNormal",ep.Lh.registerClass(ax);class aI extends ab{constructor(e){super(),this.gain=null!=e.gain?e.gain:1}apply(e,t){return Object(ep.Ei)(()=>
17{if(2!==e.length||e[0]!==e[1])throw new im("Identity matrix initializer can only be used for 2D square matrices.");return Object(ep.Gg)(this.gain,Object(ep.vf)(e[0]))})}getConfig(){return{gain:this.gain}}}aI.className="Identity",ep.Lh.registerClass(aI);class aN extends ab{constructor(e){if(super(),e.scale<0)throw new im("scale must be a positive float. Got: "+e.scale);this.scale=null==e.scale?1:e.scale,this.mode=null==e.mode?"fanIn":e.mode,iC(ah,"FanMode",this.mode),this.distribution=null==e.distribution?"normal":e.distribution,function(e){iC(ag,"Distribution",e)}(this.distribution),this.seed=e.seed}apply(e,t){let n=function(e,t="channelsLast"){let n,r;if(iK(t),2===e.length)n=e[0],r=e[1];else if(-1!==[3,4,5].indexOf(e.length)){if("channelsFirst"===t){let t=i3(e,2);n=e[1]*t,r=e[0]*t}else if("channelsLast"===t){let t=i3(e,0,e.length-2);n=e[e.length-2]*t,r=e[e.length-1]*t}}else{let t=i3(e);n=Math.sqrt(t),r=Math.sqrt(t)}return[n,r]}(e),r=n[0],i=n[1],a=this.scale;if("fanIn"===this.mode?a/=Math.max(1,r):"fanOut"===this.mode?a/=Math.max(1,i):a/=Math.max(1,(r+i)/2),"normal"===this.distribution){let n=Math.sqrt(a);if("float32"!==(t=t||"float32")&&"int32"!==t)throw new iy(`${this.getClassName()} does not support dType ${t}.`);return Object(ep.Ki)(e,0,n,t,this.seed)}{let n=Math.sqrt(3*a);return Object(ep.kh)(e,-n,n,t,this.seed)}}getConfig(){return{scale:this.scale,mode:this.mode,distribution:this.distribution,seed:this.seed}}}aN.className="VarianceScaling",ep.Lh.registerClass(aN);class ak extends aN{constructor(e){super({scale:1,mode:"fanAvg",distribution:"uniform",seed:null==e?null:e.seed})}getClassName(){return aN.className}}ak.className="GlorotUniform",ep.Lh.registerClass(ak);class aT extends aN{constructor(e){super({scale:1,mode:"fanAvg",distribution:"normal",seed:null==e?null:e.seed})}getClassName(){return aN.className}}aT.className="GlorotNormal",ep.Lh.registerClass(aT);class aw extends aN{constructor(e){super({scale:2,mode:"fanIn",distribution:"normal",seed:null==e?null:e.seed})}getClassName(){return aN.className}}aw.className="HeNormal",ep.Lh.registerClass(aw);class aj extends aN{constructor(e){super({scale:2,mode:"fanIn",distribution:"uniform",seed:null==e?null:e.seed})}getClassName(){return aN.className}}aj.className="HeUniform",ep.Lh.registerClass(aj);class aF extends aN{constructor(e){super({scale:1,mode:"fanIn",distribution:"normal",seed:null==e?null:e.seed})}getClassName(){return aN.className}}aF.className="LeCunNormal",ep.Lh.registerClass(aF);class a_ extends aN{constructor(e){super({scale:1,mode:"fanIn",distribution:"uniform",seed:null==e?null:e.seed})}getClassName(){return aN.className}}a_.className="LeCunUniform",ep.Lh.registerClass(a_);class aE extends ab{constructor(e){super(),this.DEFAULT_GAIN=1,this.ELEMENTS_WARN_SLOW=2e3,this.gain=null==e.gain?this.DEFAULT_GAIN:e.gain,this.seed=e.seed}apply(e,t){return Object(ep.Ei)(()=>{if(e.length<2)throw new iy("Shape must be at least 2D.");if("int32"!==t&&"float32"!==t&&void 0!==t)throw TypeError(`Unsupported data type ${t}.`);let n=ep.Si.sizeFromShape(e.slice(0,-1)),r=e[e.length-1],i=n*r;i>this.ELEMENTS_WARN_SLOW&&console.warn(`Orthogonal initializer is being called on a matrix with more than ${this.ELEMENTS_WARN_SLOW} (${i}) elements: Slowness may result.`);let a=ao([Math.max(r,n),Math.min(r,n)],0,1,t,this.seed),o=ep.cg.qr(a,!1),s=o[0],l=o[1].flatten().stridedSlice([0],[Math.min(r,n)*Math.min(r,n)],[Math.min(r,n)+1]);return s=Object(ep.Gg)(s,l.sign()),n<r&&(s=s.transpose()),Object(ep.Gg)(Object(ep.Fh)(this.gain),s.reshape(e))})}getConfig(){return{gain:this.gain,seed:this.seed}}}aE.className="Orthogonal",ep.Lh.registerClass(aE);let aR={constant:"Constant",glorotNormal:"GlorotNormal",glorotUniform:"GlorotUniform",heNormal:"HeNormal",heUniform:"HeUniform",identity:"Identity",leCunNormal:"LeCunNormal",leCunUniform:"LeCunUniform",ones:"Ones",orthogonal:"Orthogonal",randomNormal:"RandomNormal",randomUniform:"RandomUniform",truncatedNormal:"TruncatedNormal",varianceScaling:"VarianceScaling",zeros:"Zeros"};function aD(e,t={}){return i_(e,ep.Lh.SerializationMap.getMap().classNameMap,t,"initializer")}function aC(e){return iF(e)}function aA(e){if("string"==typeof e){let t=e in aR?aR[e]:e;if("GlorotNormal"===t)return new aT;if("GlorotUniform"===t)return new ak;if("HeNormal"===t)return new aw;if("HeUniform"===t)return new aj;if("LeCunNormal"===t)return new aF;if("LeCunUniform"===t)return new a_;{let e={};return e.className=t,e.config={},aD(e)}}return e instanceof ab?e:aD(e)}function aM(e){return Array.isArray(e)&&Array.isArray(e[0])}function a$(e){return 0===e.length?[]:Array.isArray(e[0])?e:[e]}function aU(e){let t;if(Array.isArray(e)){if(1!==e.length)throw new im("Expected Tensor length to be 1; got "+e.length);t=e[0]}else t=e;return t}function aP(e){if(Array.isArray(e)&&Array.isArray(e[0])){if(1===e.length)return e[0];throw new im("Expected exactly 1 Shape; got "+e.length)}return e}function aB(e){let t=0;for(let n of e)0===n.shape.length?t+=1:t+=n.shape.reduce((e,t)=>
vendor: 4,503 bytes, line 17
17e*t);return t}class aL{constructor(e,t="float32",n="Variable",r=!0,i=null){this.dtype=null==t?"float32":t,this.shape=e.shape,this.id=iP(),n=null==n?"Variable":n,this.originalName=iZ(n),this.name=i0(this.originalName),this.trainable_=r,this.constraint=i,this.val=ep.Vi(e,this.trainable_,this.name,this.dtype)}read(){return this.assertNotDisposed(),this.val}write(e){return this.assertNotDisposed(),function(e,t){if(e.shape.toString()!==t.shape.toString())throw Error("Shape mismatch: "+JSON.stringify(e.shape)+" vs. "+JSON.stringify(t.shape))}(this.val,e),this.val.id!==e.id&&(this.val.assign(e),null!=this.constraint&&this.val.assign(this.constraint.apply(this.val))),this}dispose(){this.assertNotDisposed(),this.val.dispose()}assertNotDisposed(){if(this.val.isDisposed)throw Error(`LayersVariable ${this.name} is already disposed.`)}get trainable(){return this.trainable_}set trainable(e){this.trainable_=e,this.val.trainable=e}}function aW(e){return e.map(e=>e.read())}function az(e){e.forEach(e=>{e[0].write(e[1])})}class aG{constructor(e){this.dtype=e.dtype,this.shape=e.shape,null!=e.shape?this.ndim=e.shape.length:this.ndim=e.ndim,this.maxNDim=e.maxNDim,this.minNDim=e.minNDim,this.axes=e.axes||{}}}class aV{constructor(e,t,n,r,i,a,o){this.dtype=e,this.shape=t,this.sourceLayer=n,this.inputs=r,this.callArgs=i,this.outputTensorIndex=o,this.id=iP(),null!=a&&(this.originalName=iZ(a),this.name=i0(this.originalName)),this.rank=t.length}}let aH=0;class aq{constructor(e,t){for(let n of(this.callArgs=t,this.id=aH++,this.outboundLayer=e.outboundLayer,this.inboundLayers=e.inboundLayers,this.nodeIndices=e.nodeIndices,this.tensorIndices=e.tensorIndices,this.inputTensors=e.inputTensors,this.outputTensors=e.outputTensors,this.inputMasks=e.inputMasks,this.outputMasks=e.outputMasks,this.inputShapes=e.inputShapes,this.outputShapes=e.outputShapes,e.inboundLayers))null!=n&&n.outboundNodes.push(this);e.outboundLayer.inboundNodes.push(this)}getConfig(){let e=[];for(let t of this.inboundLayers)null!=t?e.push(t.name):e.push(null);return{outboundLayer:this.outboundLayer?this.outboundLayer.name:null,inboundLayers:e,nodeIndices:this.nodeIndices,tensorIndices:this.tensorIndices}}}let aK=0;class aX extends ep.Lh.Serializable{constructor(e={}){super(),this._callHook=null,this._addedWeightNames=[],this._stateful=!1,this.id=aK++,this.activityRegularizer=null,this.inputSpec=null,this.supportsMasking=!1,this._trainableWeights=[],this._nonTrainableWeights=[],this._losses=[],this._updates=[],this._built=!1,this.inboundNodes=[],this.outboundNodes=[];let t=e.name;if(!t){let e=this.getClassName();t=iT(e)+"_"+iL(e)}if(this.name=t,this.trainable_=null==e.trainable||e.trainable,null!=e.inputShape||null!=e.batchInputShape){let t;if(null!=e.batchInputShape)t=e.batchInputShape;else if(null!=e.inputShape){let n=null;null!=e.batchSize&&(n=e.batchSize),t=[n].concat(e.inputShape)}this.batchInputShape=t;let n=e.dtype;null==n&&(n=e.inputDType),null==n&&(n="float32"),this.dtype=n}null!=e.weights?this.initialWeights=e.weights:this.initialWeights=null,this._refCount=null,this.fastWeightInitDuringBuild=!1}static nodeKey(e,t){return e.name+"_ib-"+t.toString()}getNodeAtIndex(e,t){if(0===this.inboundNodes.length)throw new ib(`The layer has never been called and thus has no defined ${t}.`);if(this.inboundNodes.length<=e)throw new im(`Asked to get ${t} at node ${e}, but the layer has only ${this.inboundNodes.length} inbound nodes.`);return this.inboundNodes[e]}getInputAt(e){return iN(this.getNodeAtIndex(e,"input").inputTensors)}getOutputAt(e){return iN(this.getNodeAtIndex(e,"output").outputTensors)}get input(){if(this.inboundNodes.length>1)throw new ig("Layer "+this.name+' has multiple inbound nodes, hence the notion of "layer input" is ill-defined. Use `getInputAt(nodeIndex)` instead.');if(0===this.inboundNodes.length)throw new ig("Layer "+this.name+" is not connected, no input to return.");return iN(this.getNodeAtIndex(0,"input").inputTensors)}get output(){if(0===this.inboundNodes.length)throw new ig("Layer "+this.name+" has no inbound nodes.");if(this.inboundNodes.length>1)throw new ig("Layer "+this.name+' has multiple inbound nodes, hence the notion of "layer output" is ill-defined. Use `getOutputAt(nodeIndex)` instead.');return iN(this.getNodeAtIndex(0,"output").outputTensors)}get losses(){return this._losses}calculateLosses(){return this.losses.map(e=>e())}get updates(){return this._updates}get built(){return this._built}set built(e){this._built=e}get trainable(){return this.trainable_}
17set trainable(e){this._trainableWeights.forEach(t=>t.trainable=e),this.trainable_=e}get trainableWeights(){return this.trainable_?this._trainableWeights.filter(e=>e.trainable):[]}set trainableWeights(e){this._trainableWeights=e}get nonTrainableWeights(){return this.trainable?this._trainableWeights.filter(e=>!e.trainable).concat(this._nonTrainableWeights):this._trainableWeights.concat(this._nonTrainableWeights)}set nonTrainableWeights(e){this._nonTrainableWeights=e}get weights(){return this.trainableWeights.concat(this.nonTrainableWeights)}get stateful(){return this._stateful}resetStates(){if(!this.stateful)throw Error("Cannot call the resetStates() method of a non-stateful Layer object.")}assertInputCompatibility(e){let t=ik(e);if(null==this.inputSpec||0===this.inputSpec.length)return;let n=ik(this.inputSpec);if(t.length!==n.length)throw new im(`Layer ${this.name} expects ${n.length} inputs, but it received ${t.length} input tensors. Input received: `+e);for(let e=0;e<t.length;e++){let r=t[e],i=n[e];if(null==i)continue;let a=r.rank;if(null!=i.ndim&&a!==i.ndim)throw new im(`Input ${e} is incompatible with layer ${this.name}: expected ndim=${i.ndim}, found ndim=${a}`);if(null!=i.maxNDim&&a>i.maxNDim)throw new im(`Input ${e} is incompatible with layer ${this.name}: expected max_ndim=${i.maxNDim}, found ndim=${a}`);if(null!=i.minNDim&&a<i.minNDim)throw new im(`Input ${e} is incompatible with layer ${this.name}: expected min_ndim=${i.minNDim}, found ndim=${a}.`);if(null!=i.dtype&&r.dtype!==i.dtype)throw new im(`Input ${e} is incompatible with layer ${this.name} : expected dtype=${i.dtype}, found dtype=${r.dtype}.`);if(i.axes){let t=r.shape;for(let n in i.axes){let r=Number(n),a=i.axes[n],o=r>=0?t[r]:t[t.length+r];if(null!=a&&-1===[a,null].indexOf(o))throw new im(`Input ${e} is incompatible with layer ${this.name}: expected axis ${r} of input shape to have value ${a} but got shape ${t}.`)}}if(null!=i.shape)for(let t=0;t<i.shape.length;++t){let n=i.shape[t],a=r.shape[t];if(null!=n&&null!=a&&n!==a)throw new im(`Input ${e} is incompatible with layer ${this.name}: expected shape=${i.shape}, found shape=${r.shape}.`)}}}call(e,t){return e}invokeCallHook(e,t){null!=this._callHook&&this._callHook(e,t)}setCallHook(e){this._callHook=e}clearCallHook(){this._callHook=null}apply(e,t){t=t||{},this.assertNotDisposed();let n=ik(e),r=function(e){let t=!0;for(let n of ik(e))if(!(n instanceof aV)){t=!1;break}return t}(e),i=function(e){let t=!0;for(let n of ik(e))if(n instanceof aV){t=!1;break}return t}(e);if(r===i)throw new im("Arguments to apply() must be all SymbolicTensors or all Tensors");return iJ(this.name,()=>{if(!this.built){this.assertInputCompatibility(e);let t=[];for(let n of ik(e))t.push(n.shape);this.build(iN(t)),this.built=!0,this.initialWeights&&this.setWeights(this.initialWeights),null===this._refCount&&i&&(this._refCount=1)}if(this.assertInputCompatibility(e),i){let r=this.call(e,t);this.supportsMasking&&this.setMaskMetadata(e,r);let i=ik(r),a=[];for(let e of i)-1!==n.indexOf(e)&&(e=e.clone()),a.push(e);if(r=iN(a),null!=this.activityRegularizer)throw new iy("Layer invocation in the presence of activity regularizer(s) is not supported yet.");return r}{let n,r=function(e){e=ik(e);let t=[];for(let n of e)t.push(n.shape);return iN(t)}(e),i=this.computeOutputShape(r),a="float32";if(this.warnOnIncompatibleInputShape(Array.isArray(e)?r[0]:r),n=null!=i&&i.length>0&&Array.isArray(i[0])?i.map((n,r)=>new aV(a,n,this,ik(e),t,this.name,r)):new aV(a,i,this,ik(e),t,this.name),this.addInboundNode(e,n,null,null,r,i,t),this._refCount++,null!=this.activityRegularizer)throw new iy("Layer invocation in the presence of activity regularizer(s) is not supported yet.");return n}})}warnOnIncompatibleInputShape(e){if(null!=this.batchInputShape)if(e.length!==this.batchInputShape.length)console.warn("The rank of the input tensor provided (shape: "+JSON.stringify(e)+") does not match that of the "+`batchInputShape (${JSON.stringify(this.batchInputShape)}) of the layer `+this.name);else{let t=!1;this.batchInputShape.forEach((n,r)=>{null!=n&&null!=e[r]&&e[r]!==n&&(t=!0)}),t&&console.warn(`The shape of the input tensor (${JSON.stringify(e)}) does not match the expectation of layer ${this.name}: `+JSON.stringify(this.batchInputShape))}}
vendor: 5,349 bytes, line 17
17get outputShape(){if(null==this.inboundNodes||0===this.inboundNodes.length)throw new ig(`The layer ${this.name} has never been called and thus has no defined output shape.`);let e=[];for(let t of this.inboundNodes){let n=JSON.stringify(t.outputShapes);-1===e.indexOf(n)&&e.push(n)}if(1===e.length){let e=this.inboundNodes[0].outputShapes;return Array.isArray(e)&&Array.isArray(e[0])&&1===e.length?e[0]:e}throw new ig(`The layer ${this.name} has multiple inbound nodes with different output shapes. Hence the notion of "output shape" is ill-defined for the layer.`)}countParams(){if(!this.built)throw new ib(`You tried to call countParams() on ${this.name}, but the layer is not built yet. Build it first by calling build(batchInputShape).`);return aB(this.weights)}build(e){this.built=!0}getWeights(e=!1){return aW(e?this.trainableWeights:this.weights)}setWeights(e){Object(ep.Ei)(()=>{let t=this.weights;if(t.length!==e.length)throw new im(`You called setWeights(weights) on layer "${this.name}" with a weight list of length ${e.length}, but the layer was expecting ${t.length} weights. Provided weights: ${e}...`);if(0===t.length)return;let n=[],r=aW(t);for(let i=0;i<r.length;++i){let a=r[i],o=t[i],s=e[i];if(!ep.Si.arraysEqual(a.shape,s.shape))throw new im(`Layer weight shape ${a.shape} not compatible with provided weight shape `+s.shape);n.push([o,s])}az(n)})}addWeight(e,t,n,r,i,a,o,s){if(-1!==this._addedWeightNames.indexOf(e))throw new im(`Duplicate weight name ${e} for layer ${this.name}`);this._addedWeightNames.push(e),null==n&&(n="float32"),this.fastWeightInitDuringBuild&&(r=null!=s?s():aA("zeros"));let l=r.apply(t,n),u=new aL(l,n,e,a,o);return l.dispose(),null!=i&&this.addLoss(()=>i.apply(u.read())),null==a&&(a=!0),a?this._trainableWeights.push(u):this._nonTrainableWeights.push(u),u}setFastWeightInitDuringBuild(e){this.fastWeightInitDuringBuild=e}addLoss(e){null==e||Array.isArray(e)&&0===e.length||(e=ik(e),void 0!==this._losses&&null!==this._losses&&this.losses.push(...e))}computeOutputShape(e){return e}computeMask(e,t){if(!this.supportsMasking){if(null!=t){if(!Array.isArray(t))throw TypeError(`Layer ${this.name} does not support masking, but was passed an inputMask.`);t.forEach(e=>{if(null!=e)throw TypeError(`Layer ${this.name} does not support masking, but was passed an inputMask.`)})}return null}return t}setMaskMetadata(e,t,n){if(!this.supportsMasking)return;let r=this.computeMask(e,n),i=ik(t),a=ik(r);if(i.length!==a.length)throw Error(`${this.name} outputs ${i.length} tensors but ${i.length} masks for those tensors`);for(let e=0;e<i.length;e++)i[e].kerasMask=a[e]}addInboundNode(e,t,n,r,i,a,o=null){let s=ik(e);t=ik(t),n=ik(n),r=ik(r),i=a$(i),a=a$(a);let l=[],u=[],c=[];for(let e of s)l.push(e.sourceLayer),u.push(e.nodeIndex),c.push(e.tensorIndex);new aq({outboundLayer:this,inboundLayers:l,nodeIndices:u,tensorIndices:c,inputTensors:s,outputTensors:t,inputMasks:n,outputMasks:r,inputShapes:i,outputShapes:a},o);for(let e=0;e<t.length;e++)t[e].sourceLayer=this,t[e].nodeIndex=this.inboundNodes.length-1,t[e].tensorIndex=e}getConfig(){let e={name:this.name,trainable:this.trainable};return null!=this.batchInputShape&&(e.batchInputShape=this.batchInputShape),null!=this.dtype&&(e.dtype=this.dtype),e}disposeWeights(){return this.weights.forEach(e=>e.dispose()),this.weights.length}assertNotDisposed(){if(0===this._refCount)throw Error(`Layer '${this.name}' is already disposed.`)}dispose(){if(!this.built)throw Error(`Cannot dispose Layer ${this.name} because it has not been built yet.`);if(null===this._refCount)throw Error(`Cannot dispose Layer ${this.name} because it has not been used yet.`);this.assertNotDisposed();let e=0;return 0==--this._refCount&&(e=this.disposeWeights()),{refCountAfterDispose:this._refCount,numDisposedVariables:e}}}class aY extends aX{constructor(e){if(super({dtype:e.dtype,name:null!=e.name?e.name:iL("input").toString()}),null==e.batchSize&&(e.batchSize=null),null==e.sparse&&(e.sparse=!1),this.trainable=!1,this.built=!0,this.sparse=e.sparse,null!=e.inputShape&&null!=e.batchInputShape)throw new im("Only provide the inputShape OR batchInputShape argument to inputLayer, not both at the same time.");let t=e.batchInputShape;if(null==t){if(null==e.inputShape)throw new im("An InputLayer should be passed either a `batchInputShape` or an `inputShape`.");t=[e.batchSize].concat(e.inputShape)}else if(null!=e.batchSize)throw new im("Cannot specify batchSize if batchInputShape is specified when creating an InputLayer.");let n=e.dtype||"float32";this.batchInputShape=t,this.dtype=n,this.inputSpec=[{shape:t}];let r=new aV(this.dtype,this.batchInputShape,this,[],{},this.name);r.nodeIndex=0,r.tensorIndex=0,new aq({outboundLayer:this,inboundLayers:[],nodeIndices:[],tensorIndices:[],inputTensors:[r],outputTensors:[r],inputMasks:[null],outputMasks:[null],inputShapes:[t],outputShapes:[t]})}apply(e,t){throw new im("Cannot pass any input to an InputLayer's apply() method. InputLayer name: "+this.name)}dispose(){return{refCountAfterDispose:this._refCount,numDisposedVariables:0}}getConfig(){return{batchInputShape:this.batchInputShape,dtype:this.dtype,sparse:this.sparse,name:this.name}}}function aQ(e){if(null==e.batchShape&&null==e.shape)throw Error("Please provide to Input either a `shape` or a `batchShape` argument. Note that `shape` does not include the batch dimension.");
17if(null!=e.batchShape&&null!=e.shape)throw new im("Please provide either a `shape` or `batchShape` argument to Input, but not both.");let t=e.batchShape;null!=e.shape&&null==t&&(t=[null].concat(e.shape));let n=e.dtype;return null==n&&(n="float32"),new aY({batchInputShape:t,name:e.name,dtype:n,sparse:e.sparse}).inboundNodes[0].outputTensors[0]}aY.className="InputLayer",ep.Lh.registerClass(aY);class aJ{constructor(e){if(this.id2Value={},this.id2Mask={},this.name2Id={},e instanceof aJ)for(let t in e.id2Value)this.id2Value[t]=e.id2Value[t],t in e.id2Mask&&(this.id2Mask[t]=e.id2Mask[t]);else{if(null==e)return;for(let t of e)this.add(t.key,t.value)}}add(e,t,n){if(null!=this.id2Value[e.id])throw new im(`Duplicate key: name=${e.name}, id=${e.id}`);return this.id2Value[e.id]=function(e,t){if(null==e.dtype||e.dtype===t.dtype)return t;try{return Object(ep.xe)(t,e.dtype)}catch(n){throw new im(`The dtype of the feed (${t.dtype}) can not be cast to the dtype of the key '${e.name}' (${e.dtype}).`)}}(e,t),this.name2Id[e.name]=e.id,null!=n&&(this.id2Mask[e.id]=n),this}addFeed(e){this.add(e.key,e.value)}hasKey(e){return null!=this.id2Value[e.id]}names(){return Object.keys(this.name2Id)}getValue(e){if(e instanceof aV){if(null==this.id2Value[e.id])throw new im("Nonexistent key: "+e.name);return this.id2Value[e.id]}{let t=this.name2Id[e];if(null==t)throw new im("Feed dict has no SymbolicTensor name: "+e);return this.id2Value[t]}}getMask(e){if(e instanceof aV){if(null==this.id2Value[e.id])throw new im("Nonexistent key: "+e.name);return this.id2Mask[e.id]}{let t=this.name2Id[e];if(null==t)throw new im("Feed dict has no SymbolicTensor name: "+e);return this.id2Mask[t]}}disposeMasks(){null!=this.id2Mask&&Object(ep.bf)(this.id2Mask)}}let aZ=new iv,a0=new iv;function a1(e,t,n,r){let i=null!=n&&n.training,a=Array.isArray(e),o=a?e:[e],s=o.map(e=>e.name),l=[],u=t.names();for(let e of s)-1!==u.indexOf(e)?l.push(t.getValue(e)):l.push(null);null!=r&&(r.maxNumTensors=-1/0,r.minNumTensors=1/0);let c=s.join(",")+"|"+t.names().sort().join(","),p,d=aZ.get(c);if(null==d){let e=function(e,t){ep.Si.assert(null!=e&&e.length>0,()=>"Expected at least one fetch, got none");let n=[],r={};if(1===e.length){let i=a3(e[0],t);n=i.sorted,r=i.recipientMap}else{let i=new Set;for(let a of e){let{sorted:e,recipientMap:o}=a3(a,t);for(let t of e)i.has(t.name)||(n.push(t),i.add(t.name));for(let e in o)null==r[e]&&(r[e]=new Set),o[e].forEach(t=>r[e].add(t))}}return{sorted:n,recipientCounts:a2(r)}}(o,t);d=e.sorted,p=e.recipientCounts,aZ.put(c,d),a0.put(c,p)}p={},i||Object.assign(p,a0.get(c));let f=new aJ(t);for(let e=0;e<d.length;++e){if(null!=r){let e=Object(ep.yg)().numTensors;e>r.maxNumTensors&&(r.maxNumTensors=e),e<r.minNumTensors&&(r.minNumTensors=e)}let a=d[e],o=a.sourceLayer;if(o instanceof aY)continue;let u=[],c=[],h=[],g=!1;for(let e of a.inputs){let n=f.getValue(e),r=f.getMask(e);u.push(n),c.push(r),null!=r&&(g=!0),i||(p[e.name]--,0!==p[e.name]||t.hasKey(e)||-1!==s.indexOf(e.name)||n.isDisposed||!0===e.sourceLayer.stateful||h.push(n))}g&&((n=n||{}).mask=c[0]);let b=ik(o.apply(u,n)),m=null;o.supportsMasking&&(m=o.computeMask(u,c));let y=a4(a),S=Array.isArray(y)?y:[y];for(let e=0;e<S.length;++e){f.hasKey(S[e])||f.add(S[e],b[e],Array.isArray(m)?m[0]:m);let t=s.indexOf(S[e].name);-1!==t&&(l[t]=b[e])}i||Object(ep.bf)(h)}return f.disposeMasks(),a?l:l[0]}function a2(e){let t={};for(let n in e)t[n]=e[n].size;return t}function a3(e,t){let n=new Set,r=[],i={};for(let e of t.names())n.add(e);let a=[],o=[];for(a.push(e);a.length>0;){let e=a[a.length-1];if(n.has(e.name)){a.pop();continue}let t=o[o.length-1]===a.length-1;if(0===e.inputs.length||t)a.pop(),r.push(e),n.add(e.name),t&&o.pop();else for(let t of(o.push(a.length-1),e.inputs))null==i[t.name]&&(i[t.name]=new Set),i[t.name].add(e.name),n.has(t.name)||a.push(t)}return{sorted:r,recipientMap:i}}function a4(e){let t;
17if(1===e.sourceLayer.inboundNodes.length)t=e.sourceLayer.output;else{let n=null;for(let t=0;t<e.sourceLayer.inboundNodes.length;++t)for(let r of e.sourceLayer.inboundNodes[t].outputTensors)if(r.id===e.id){n=t;break}t=e.sourceLayer.getOutputAt(n)}return t}function a6(e,t){return Object(ep.Ei)(()=>ep.hi(ep.qi(ep.Gg(e,e),t,!0)))}Object(ep.of)().registerFlag("TOPOLOGICAL_SORT_CACHE_MAX_ENTRIES",()=>100,function(e){null!=aZ&&aZ.setMaxEntries(e),null!=a0&&a0.setMaxEntries(e)});class a5 extends ep.Lh.Serializable{getConfig(){return{}}}class a8 extends a5{constructor(e){super(),this.defaultMaxValue=2,this.defaultAxis=0,this.maxValue=null!=e.maxValue?e.maxValue:this.defaultMaxValue,this.axis=null!=e.axis?e.axis:this.defaultAxis}apply(e){return Object(ep.Ei)(()=>{let t=a6(e,this.axis),n=ep.ze(t,0,this.maxValue);return ep.Gg(e,ep.df(n,ep.Ud(i8(),t)))})}getConfig(){return{maxValue:this.maxValue,axis:this.axis}}}a8.className="MaxNorm",ep.Lh.registerClass(a8);class a7 extends a5{constructor(e){super(),this.defaultAxis=0,this.axis=null!=e.axis?e.axis:this.defaultAxis}apply(e){return Object(ep.Ei)(()=>ep.df(e,ep.Ud(i8(),a6(e,this.axis))))}getConfig(){return{axis:this.axis}}}a7.className="UnitNorm",ep.Lh.registerClass(a7);class a9 extends a5{apply(e){return ep.th(e)}}a9.className="NonNeg",ep.Lh.registerClass(a9);class oe extends a5{constructor(e){super(),this.defaultMinValue=0,this.defaultMaxValue=1,this.defaultRate=1,this.defaultAxis=0,this.minValue=null!=e.minValue?e.minValue:this.defaultMinValue,this.maxValue=null!=e.maxValue?e.maxValue:this.defaultMaxValue,this.rate=null!=e.rate?e.rate:this.defaultRate,this.axis=null!=e.axis?e.axis:this.defaultAxis}apply(e){return Object(ep.Ei)(()=>{let t=a6(e,this.axis),n=ep.Ud(ep.Gg(this.rate,ep.ze(t,this.minValue,this.maxValue)),ep.Gg(1-this.rate,t));return ep.Gg(e,ep.df(n,ep.Ud(i8(),t)))})}getConfig(){return{minValue:this.minValue,maxValue:this.maxValue,rate:this.rate,axis:this.axis}}}oe.className="MinMaxNorm",ep.Lh.registerClass(oe);let ot={maxNorm:"MaxNorm",minMaxNorm:"MinMaxNorm",nonNeg:"NonNeg",unitNorm:"UnitNorm"};function on(e){return iF(e)}function or(e,t={}){return i_(e,ep.Lh.SerializationMap.getMap().classNameMap,t,"constraint")}function oi(e){return null==e?null:"string"==typeof e?or({className:e in ot?ot[e]:e,config:{}}):e instanceof a5?e:or(e)}function oa(e){return new a8(e)}function oo(e){return new a7(e)}function os(){return new a9}function ol(e){return new oe(e)}function ou(){return new am}function oc(){return new ay}function op(e){return new aS(e)}function od(e){return new av(e)}function of(e){return new aO(e)}function oh(e){return new ax(e)}function og(e){return new aI(e)}function ob(e){return new aN(e)}function om(e){return new ak(e)}function oy(e){return new aT(e)}function oS(e){return new aw(e)}function ov(e){return new aj(e)}function oO(e){return new aF(e)}function ox(e){return new a_(e)}function oI(e){return new aE(e)}async function oN(e){if(null==e)return;let t=[],n=[],r=[];for(let i in e){let a=e[i];if("number"!=typeof a){let e=a;t.push(e.data()),n.push(i),r.push(e)}}if(t.length>0){let i=await Promise.all(t);for(let t=0;t<i.length;++t)e[n[t]]=i[t][0];Object(ep.bf)(r)}}function ok(e){if(null!=e)for(let t in e){let n=e[t];"number"!=typeof n&&n.dispose()}}!function(e){e[e.SILENT=0]="SILENT",e[e.VERBOSE=1]="VERBOSE"}(o||(o={}));class oT{constructor(){this.validationData=null}setParams(e){this.params=e}async onEpochBegin(e,t){}async onEpochEnd(e,t){}async onBatchBegin(e,t){}async onBatchEnd(e,t){}async onTrainBegin(e){}async onTrainEnd(e){}setModel(e){}}class ow{constructor(e,t=10){null==e&&(e=[]),this.callbacks=e,this.queueLength=t}append(e){this.callbacks.push(e)}setParams(e){for(let t of this.callbacks)t.setParams(e)}setModel(e){for(let t of this.callbacks)t.setModel(e)}async onEpochBegin(e,t){for(let n of(null==t&&(t={}),this.callbacks))await n.onEpochBegin(e,t)}async onEpochEnd(e,t){for(let n of(null==t&&(t={}),this.callbacks))await n.onEpochEnd(e,t)}async onBatchBegin(e,t){for(let n of(null==t&&(t={}),this.callbacks))await n.onBatchBegin(e,t)}async onBatchEnd(e,t){for(let n of(null==t&&(t={}),this.callbacks))await n.onBatchEnd(e,t)}async onTrainBegin(e){for(let t of(null==e&&(e={}),this.callbacks))await t.onTrainBegin(e)}async onTrainEnd(e){for(let t of(null==e&&(e={}),this.callbacks))await t.onTrainEnd(e)}}class oj extends oT{constructor(){super()}async onEpochBegin(e){this.seen=0,this.totals={}}async onBatchEnd(e,t){null==t&&(t={});let n=null==t.size?0:t.size;
17for(let e in this.seen+=n,t){let r=t[e];if("number"==typeof r)this.totals.hasOwnProperty(e)||(this.totals[e]=0),this.totals[e]=this.totals[e]+r*n;else{let t;e in this.totals?t=this.totals[e]:this.totals[e]=0;let i=Object(ep.Ei)(()=>Object(ep.Ud)(this.totals[e],Object(ep.Gg)(r,n)));this.totals[e]=i,null!=t&&t.dispose()}}}async onEpochEnd(e,t){if(null!=t)for(let e of this.params.metrics)null!=this.totals[e]&&("number"==typeof this.totals[e]?t[e]=this.totals[e]/this.seen:Object(ep.Ei)(()=>{let n=Object(ep.Gg)(Object(ep.df)(1,this.seen),this.totals[e]);t[e]=n,this.totals[e].dispose(),Object(ep.Xf)(t[e])}))}}class oF extends oT{async onTrainBegin(e){this.epoch=[],this.history={}}async onEpochEnd(e,t){for(let n in null==t&&(t={}),this.epoch.push(e),t)null==this.history[n]&&(this.history[n]=[]),this.history[n].push(t[n])}async syncData(){let e=[],t=[],n=[];for(let r in this.history){let i=this.history[r];for(let a=0;a<i.length;++a)if("number"!=typeof i[a]){let o=i[a];e.push(o.data()),t.push(r),n.push(a)}}let r=await Promise.all(e);for(let e=0;e<r.length;++e)this.history[t[e]][n[e]].dispose(),this.history[t[e]][n[e]]=r[e][0]}}class o_ extends oT{constructor(e,t){if(super(),this.currentEpoch=0,this.nowFunc=e.nowFunc,this.nextFrameFunc=e.nextFrameFunc||ep.Kg,this.yieldEvery=t||"auto","auto"===this.yieldEvery&&(this.yieldEvery=125),"never"===this.yieldEvery&&null!=e.onYield)throw Error("yieldEvery is `never` but you provided an `onYield` callback. Either change `yieldEvery` or remove the callback");ep.Si.isNumber(this.yieldEvery)&&(this.maybeWait=function(e,t,n){let r,i=null!=n?n():ep.Si.now();return(...a)=>{let o=null!=n?n():ep.Si.now();return o-i<t||(i=o,r=e(...a)),r}}(this.maybeWait.bind(this),this.yieldEvery,this.nowFunc)),this.trainBegin=e.onTrainBegin,this.trainEnd=e.onTrainEnd,this.epochBegin=e.onEpochBegin,this.epochEnd=e.onEpochEnd,this.batchBegin=e.onBatchBegin,this.batchEnd=e.onBatchEnd,this.yield=e.onYield}async maybeWait(e,t,n){let r=[];null!=this.yield&&(await oN(n),r.push(this.yield(e,t,n))),r.push(this.nextFrameFunc()),await Promise.all(r)}async onEpochBegin(e,t){this.currentEpoch=e,null!=this.epochBegin&&(await oN(t),await this.epochBegin(e,t))}async onEpochEnd(e,t){let n=[];null!=this.epochEnd&&(await oN(t),n.push(this.epochEnd(e,t))),"epoch"===this.yieldEvery&&n.push(this.nextFrameFunc()),await Promise.all(n)}async onBatchBegin(e,t){null!=this.batchBegin&&(await oN(t),await this.batchBegin(e,t))}async onBatchEnd(e,t){let n=[];null!=this.batchEnd&&(await oN(t),n.push(this.batchEnd(e,t))),"batch"===this.yieldEvery?n.push(this.nextFrameFunc()):ep.Si.isNumber(this.yieldEvery)&&n.push(this.maybeWait(this.currentEpoch,e,t)),await Promise.all(n)}async onTrainBegin(e){null!=this.trainBegin&&(await oN(e),await this.trainBegin(e))}async onTrainEnd(e){null!=this.trainEnd&&(await oN(e),await this.trainEnd(e))}}function oE(e,t){return(null==e&&(e={}),e instanceof oT)?[e]:Array.isArray(e)&&e[0]instanceof oT?e:ik(e).map(e=>new o_(e,t))}class oR{constructor(){}static registerCallbackConstructor(e,t){ep.Si.assert(e>=0&&Number.isInteger(e),()=>"Verbosity level is expected to be an integer >= 0, but got "+e),oR.checkForDuplicate(t),null==oR.constructors[e]&&(oR.constructors[e]=[]),oR.constructors[e].push(t)}static checkForDuplicate(e){for(let t in oR.constructors)oR.constructors[+t].forEach(t=>{if(t===e)throw new im("Duplicate callback constructor.")})}static clear(){oR.constructors={}}static createCallbacks(e){let t=[];for(let n in oR.constructors){let r=+n;e>=r&&t.push(...oR.constructors[r])}return t.map(e=>new e)}}function oD(e,t,n,r,i,a,o,s,l){let u=new oF,c=[new oj,...oR.createCallbacks(t)];null!=e&&c.push(...e),c.push(u);let p=new ow(c);return p.setParams({epochs:n,initialEpoch:r,samples:i,steps:a,batchSize:o,verbose:t,doValidation:s,metrics:l}),{callbackList:p,history:u}}function oC(e,t={},n=!1){return i_(e,ep.Lh.SerializationMap.getMap().classNameMap,t,"layer",n)}function oA(e,t){return Object(ep.Ei)(()=>{"float32"!==e.dtype&&(e=ep.xe(e,"float32"));let n=ep.qi(au(e),t,!0),r=ep.xf(n.shape,i8()),i=ep.hi(ep.wg(n,r));return ep.df(e,i)})}function oM(e,t){return Object(ep.Ei)(()=>ep.xg(au(ep.pi(t,e)),-1))}function o$(e,t){return Object(ep.Ei)(()=>ep.xg(ep.Rd(ep.pi(t,e)),-1))}function oU(e,t){return Object(ep.Ei)(()=>{let n=ep.pi(e,t),r=ep.ze(ep.Rd(e),i8(),Number.MAX_VALUE),i=ep.Rd(ep.df(n,r));return ep.Gg(100,ep.xg(i,-1))})}function oP(e,t){return Object(ep.Ei)(()=>{let n=ep.ze(t,i8(),Number.MAX_VALUE),r=ep.fg(ep.Ud(1,n)),i=ep.ze(e,i8(),Number.MAX_VALUE),a=ep.fg(ep.Ud(1,i));return ep.xg(au(ep.pi(r,a)),-1)})}function oB(e,t,n=!1){return Object(ep.Ei)(()=>
17{if(n)t=ep.ai(t);else{let e=ep.qi(t,t.shape.length-1,!0);t=ep.df(t,e)}return t=ep.ze(t,i8(),1-i8()),ep.Jg(ep.qi(ep.Gg(ep.xe(e,"float32"),ep.fg(t)),t.shape.length-1))})}function oL(e,t,n=!1){return Object(ep.Ei)(()=>{let r=ep.xe(ep.Af(function(e){let t=[i3(e.shape)];return ep.wh(e,t)}(e)),"int32"),i=(t=ep.ze(t,i8(),1-i8())).shape;return oB(ep.wh(ep.Ng(r,i[i.length-1]),i),t,n)})}function oW(e,t){return Object(ep.Ei)(()=>{let n;return n=ep.ze(t,i8(),1-i8()),n=ep.fg(ep.df(n,ep.pi(1,n))),ep.xg(function(e,t){if(!ep.Si.arraysEqual(e.shape,t.shape))throw new im(`logits and labels must have the same shape, but got shapes ${JSON.stringify(e.shape)} and ${JSON.stringify(t.shape)}`);return Object(ep.Ei)(()=>{let n=ep.th(t),r=ep.Jg(ep.Rd(t));return ep.Ud(ep.pi(n,ep.Gg(t,e)),ep.gg(ep.sf(r)))})}(e,n),-1)})}function oz(e,t){return Object(ep.Ei)(()=>{let n=ep.ze(e,i8(),1),r=ep.ze(t,i8(),1);return ep.qi(ep.Gg(e,ep.fg(ep.df(n,r))),-1)})}function oG(e,t){return Object(ep.Ei)(()=>{let n=oA(e,-1),r=oA(t,-1),i=ep.Gg(n,r);return ep.Jg(ep.qi(i,-1))})}oR.constructors={};let oV={meanSquaredError:oM,meanAbsoluteError:o$,meanAbsolutePercentageError:oU,meanSquaredLogarithmicError:oP,squaredHinge:function(e,t){return Object(ep.Ei)(()=>{let n=ep.wg(0,ep.pi(1,ep.Gg(e,t)));return ep.xg(au(n),-1)})},hinge:function(e,t){return Object(ep.Ei)(()=>{let n=ep.wg(0,ep.pi(1,ep.Gg(e,t)));return ep.xg(n,-1)})},categoricalHinge:function(e,t){return Object(ep.Ei)(()=>{let n=ep.qi(ep.Gg(e,t),-1),r=ep.sg(ep.Gg(ep.pi(1,e),t),-1);return ep.wg(0,ep.Ud(1,ep.pi(r,n)))})},logcosh:function(e,t){return Object(ep.Ei)(()=>{let n=Math.log(2),r=ep.pi(t,e),i=ep.pi(ep.Ud(r,ep.bi(ep.Gg(-2,r))),n);return ep.xg(i,-1)})},categoricalCrossentropy:oB,sparseCategoricalCrossentropy:oL,binaryCrossentropy:oW,kullbackLeiblerDivergence:oz,poisson:function(e,t){return Object(ep.Ei)(()=>{let n=ep.fg(ep.Ud(i8(),t));return ep.xg(ep.pi(t,ep.Gg(e,n)),-1)})},cosineProximity:oG};function oH(e){if("string"==typeof e){if(e in oV)return oV[e];let t="Unknown loss "+e;throw e.toLowerCase().includes("softmaxcrossentropy")&&(t=`Unknown loss ${e}. Use "categoricalCrossentropy" as the string name for tf.losses.softmaxCrossEntropy`),new im(t)}return e}function oq(e,t){return Object(ep.Ei)(()=>{let n=ep.Gg(.5,ep.Pg(t)),r=i7(ep.Mf(t,n),e.dtype);return ep.xg(ep.pf(e,r),-1)})}function oK(e,t){return Object(ep.Ei)(()=>i7(ep.pf(ep.Yd(e,-1),ep.Yd(t,-1)),"float32"))}function oX(e,t){return Object(ep.Ei)(()=>ep.xe(ep.qi(ep.kg(ep.pf(e,1),ep.pf(t,1))),"float32"))}function oY(e,t){return Object(ep.Ei)(()=>{let n=oX(e,t),r=function(e,t){return Object(ep.Ei)(()=>ep.xe(ep.qi(ep.kg(ep.pf(e,0),ep.pf(t,1))),"float32"))}(e,t),i=ep.Ud(n,r);return ep.xe(ep.Yi(ep.Mf(i,0),ep.df(n,i),0),"float32")})}function oQ(e,t){return Object(ep.Ei)(()=>{let n=oX(e,t),r=function(e,t){return Object(ep.Ei)(()=>ep.xe(ep.qi(ep.kg(ep.pf(e,1),ep.pf(t,0))),"float32"))}(e,t),i=ep.Ud(n,r);return ep.xe(ep.Yi(ep.Mf(i,0),ep.df(n,i),0),"float32")})}function oJ(e,t){return oW(e,t)}function oZ(e,t){return e.rank===t.rank&&(e=ep.ki(e,[e.rank-1])),(t=ep.Yd(t,-1)).dtype!==e.dtype&&(t=ep.xe(t,e.dtype)),ep.xe(ep.pf(e,t),"float32")}let o0=oB,o1=oL,o2={binaryAccuracy:oq,categoricalAccuracy:oK,precision:oY,categoricalCrossentropy:o0,sparseCategoricalCrossentropy:o1,mse:oM,MSE:oM,mae:o$,MAE:o$,mape:oU,MAPE:oU,cosine:oG};function o3(e){if("string"==typeof e&&e in o2)return o2[e];if("string"!=typeof e&&null!=e)return e;throw new im("Unknown metric "+e)}function o4(e){if(ix(null!==e,"Unknown LossOrMetricFn "+e),"string"==typeof e)return e;{let t;for(let n of Object.keys(oV))if(oV[n]===e){t=n;break}if(void 0!==t)return t;for(let n of Object.keys(o2))if(o2[n]===e){t=n;break}return void 0!==t?t:e.name}}function o6(e,t,n=!1){if(null==e||"object"!=typeof e||Object.getPrototypeOf(e)!==Object.prototype||!function e(t){if(null===t)return!0;if("object"==typeof t){if(Object.getPrototypeOf(t)===Object.prototype){for(let n of Object.keys(t))if("string"!=typeof n||!e(t[n]))return!1;return!0}if(Array.isArray(t)){for(let n of t)if(!e(n))return!1;return!0}return!1}{let e=typeof t;return"string"===e||"number"===e||"boolean"===e}}(e))throw Error("User-defined metadata is expected to be a JSON object, but is not.");if(n){let n=JSON.stringify(e);n.length>1048576&&console.warn(`User-defined metadata of model "${t}" is too large in size (length=${n.length} when serialized). It is not recommended to store such large objects in user-defined metadata. Please make sure its serialized length is <= 1048576.`)}}function o5(e,t,n,r=console.log){let i,a=function(e){let t=!0,n=[],r=[];for(let t in e.nodesByDepth)n.push(e.nodesByDepth[t]);for(let e of n){if(e.length>1||1===e.length&&e[0].inboundLayers.length>1){t=!1;break}r.push(...e)}if(t)for(let n of e.layers){let e=!1;for(let i of n.inboundNodes)if(-1!==r.indexOf(i)){if(e){t=!1;break}e=!0}if(!t)break}return t}(e),o=["Layer (type)","Input Shape","Output shape","Param #"];if(a?(t=t||90,n=n||[.32,.61,.89,1]):(t=t||115,n=n||[.24,.48,.7,.8,1]),n[n.length-1]<=1&&(n=n.map(e=>Math.floor(t*e))),!a)for(let t in o.push("Receives inputs"),i=[],e.nodesByDepth)i.push(...e.nodesByDepth[t]);r("_".repeat(t)),o8(o,n,r),r("=".repeat(t));let s=e.layers;for(let e=0;e<s.length;++e)a?o7(s[e],n,r):o9(s[e],n,i,r),r((e===s.length-1?"=":"_").repeat(t));e.checkTrainableWeightsConsistency();let l=function(e){return null!=e.collectedTrainableWeights?aB(e.collectedTrainableWeights):aB(e.trainableWeights)}(e),u=aB(e.nonTrainableWeights);r("Total params: "+(l+u)),r("Trainable params: "+l),r("Non-trainable params: "+u),r("_".repeat(t))}function o8(e,t,n=console.log){let r="";for(let n=0;n<e.length;++n)n>0&&(r=r.slice(0,r.length-1)+" "),r+=e[n],r=r.slice(0,t[n]),r+=" ".repeat(t[n]-r.length);n(r)}function o7(e,t,n){let r,i;try{i=e.inboundNodes.map(e=>JSON.stringify(e.inputShapes)).join(",")}catch(e){i="multiple"}try{r=JSON.stringify(e.outputShape)}catch(e){r="multiple"}o8([`${e.name} (${e.getClassName()})`,i,r,e.countParams().toString()],t,n)}function o9(e,t,n,r){let i,a;try{a=e.inboundNodes.map(e=>JSON.stringify(e.inputShapes)).join(",")}catch(e){a="multiple"}try{i=JSON.stringify(e.outputShape)}catch(e){i="multiple"}let o=[];for(let t of e.inboundNodes)if(!(null!=n&&n.length>0&&-1===n.indexOf(t)))for(let e=0;
17e<t.inboundLayers.length;++e){let n=t.inboundLayers[e].name,r=t.nodeIndices[e],i=t.tensorIndices[e];o.push(`${n}[${r}][${i}]`)}let s=e.name,l=e.getClassName(),u=0===o.length?"":o[0];o8([`${s} (${l})`,a,i,e.countParams().toString(),u],t,r);for(let e=1;e<o.length;++e)o8(["","","","",o[e]],t,r)}function se(e,t,n){return("inboundNodes"===e||"outputLayers"===e||"inputLayers"===e)&&0===t&&"string"==typeof n}function st(e,t){if(null===e)return null;if("string"==typeof e)return iw(e);if("number"==typeof e||"boolean"==typeof e)return e;if(e instanceof Array){let n=[],r=e.length;for(let i=0;i<r;++i){let r=e[i];se(t,i,r)?n.push(r):n.push(st(r,t))}return n}{let t={};for(let n of Object.keys(e)){let r=e[n];if("name"===n&&"string"==typeof r)t[n]=r;else{let e=iw(n);t[e]=st(r,e)}}return t}}let sn="4.22.0";class sr extends aX{constructor(e){if(super({}),this.containerNodes=new Set,this.name=e.name,null==this.name){let e=this.getClassName().toLowerCase();this.name=iL(e)}if(this.supportsMasking=!1,this.trainable_=!0,Array.isArray(e.inputs)?this.inputs=e.inputs.slice():this.inputs=[e.inputs],Array.isArray(e.outputs)?this.outputs=e.outputs.slice():this.outputs=[e.outputs],iR(this.inputs).length!==this.inputs.length)throw new im("The list of inputs passed to the model is redundant. All inputs should only appear once. Found: "+this.inputs.map(e=>e.name));for(let e of(iR(this.outputs).length!==this.outputs.length&&console.warn("The list of outputs passed to the model is redundant. All outputs should only appear once. Found: "+this.outputs.map(e=>e.name)),this.inputLayers=[],this.inputLayersNodeIndices=[],this.inputLayersTensorIndices=[],this.outputLayers=[],this.outputLayersNodeIndices=[],this.outputLayersTensorIndices=[],this.layers=[],this.internalContainerRefs=[],this.outputs)){let t=e.sourceLayer,n=e.nodeIndex,r=e.tensorIndex;this.outputLayers.push(t),this.outputLayersNodeIndices.push(n),this.outputLayersTensorIndices.push(r)}for(let e of this.inputs){let t=e.sourceLayer,n=e.nodeIndex,r=e.tensorIndex;ix(0===n,"input layer has >1 nodes"),ix(0===r,"input layer has >1 tensors"),this.inputLayers.push(t),this.inputLayersNodeIndices.push(n),this.inputLayersTensorIndices.push(r)}this.inputNames=[],this.outputNames=[],this.feedInputShapes=[],this.feedInputNames=[],this.feedOutputNames=[];for(let t=0;t<this.inputLayers.length;t++){let n=this.inputLayers[t];if(!(n instanceof aY))throw TypeError(`Input layers to a LayersModel must be InputLayer objects. Received inputs: ${e.inputs}. Input ${t} (0-based) originates from layer type ${n.getClassName()}.`);this.inputNames.push(n.name),this.feedInputShapes.push(n.batchInputShape),this.feedInputNames.push(n.name)}for(let e of this.outputLayers)this.outputNames.push(e.name);this.internalInputShapes=this.inputs.map(e=>e.shape),this.internalOutputShapes=this.outputs.map(e=>e.shape);let t={},n={},r={},i={},a={},o=[],s=(e,t,n,r,i,l)=>{null!=r&&null!=i&&null!=l||(r=e.sourceLayer,i=e.nodeIndex,l=e.tensorIndex);let u=r.inboundNodes[i];if(-1!==n.indexOf(u))throw new ib(`The tensor ${e.name} at layer "${r.name}" is part of a cycle.`);if(-1!==t.indexOf(u))return;this.containerNodes.add(sr.nodeKey(r,i)),r.id in a||(a[r.id]=Object.keys(a).length),-1===n.indexOf(u)&&n.push(u);let c=u.inboundLayers.length;for(let e=0;e<c;e++){let r=u.inputTensors[e],i=u.inboundLayers[e];s(r,t,n,i,u.nodeIndices[e],u.tensorIndices[e])}for(t.push(u);n.indexOf(u)>=0;)n.splice(n.indexOf(u),1);o.push(u)},l=[],u=[];for(let e of this.outputs)s(e,l,u);for(let e of o.slice().reverse()){n[e.id]=e,e.id in t||(t[e.id]=0);let a=t[e.id];a=Math.max(a,null==r[e.outboundLayer.id]?0:r[e.outboundLayer.id]),r[e.outboundLayer.id]=a,i[e.outboundLayer.id]=e.outboundLayer,t[e.id]=a;for(let r=0;r<e.inboundLayers.length;r++){let i=e.inboundLayers[r],o=e.nodeIndices[r],s=i.inboundNodes[o],l=null==t[s.id]?0:t[s.id];t[s.id]=Math.max(a+1,l),n[s.id]=s}}let c={};for(let e in t){let r=t[e];r in c||(c[r]=[]),c[r].push(n[e])}let p={};for(let e in r){let t=r[e];t in p||(p[t]=[]),p[t].push(i[e])}let d=Object.keys(p).map(e=>parseInt(e,10)).sort(iE);for(let e of(this.layers=[],d)){let t=p[e];for(let e of(t.sort((e,t)=>
17{let n=a[e.id],r=a[t.id];return n<r?-1:+(n>r)}),t))e instanceof sr&&this.internalContainerRefs.push(e),this.layers.push(e)}this.layersByDepth=p,d=Object.keys(c).map(e=>parseInt(e,10)).sort(iE);let f=this.inputs.slice(),h=[];for(let e of d)for(let t of c[e]){let e=t.outboundLayer;if(null!=e){for(let n of t.inputTensors)if(-1===f.indexOf(n))throw new ib("Graph disconnected: cannot obtain value for tensor "+n+` at layer "${e.name}". The following previous layers were accessed without issue: `+h);for(let e of t.outputTensors)f.push(e);h.push(e.name)}}this.nodesByDepth=c;let g=this.layers.map(e=>e.name);for(let e of g){let t=g.filter(t=>t===e).length;if(1!==t)throw new ib(`The name "${e}" is used ${t} times in the model. All layer names should be unique. Layer names: `+JSON.stringify(g))}this.outboundNodes=[],this.inboundNodes=[],new aq({outboundLayer:this,inboundLayers:[],nodeIndices:[],tensorIndices:[],inputTensors:this.inputs,outputTensors:this.outputs,inputMasks:this.inputs.map(e=>null),outputMasks:this.outputs.map(e=>null),inputShapes:this.inputs.map(e=>e.shape),outputShapes:this.outputs.map(e=>e.shape)}),this.built=!0,this._refCount=1}assertNotDisposed(){if(0===this._refCount)throw Error(`Container '${this.name}' is already disposed.`)}dispose(){this.assertNotDisposed();let e={refCountAfterDispose:null,numDisposedVariables:0};if(0==--this._refCount){for(let t of this.layers)e.numDisposedVariables+=t.dispose().numDisposedVariables;for(let t of this.internalContainerRefs)e.numDisposedVariables+=t.dispose().numDisposedVariables}return e.refCountAfterDispose=this._refCount,e}get trainable(){return this.trainable_}set trainable(e){this.layers.forEach(t=>{t._trainableWeights.forEach(t=>t.trainable=e)}),this.trainable_=e}get trainableWeights(){if(this._trainableWeights.length>0)throw new im("Container instance unexpectedly contains _trainableWeights.The trainable weights of a Container are a union of the trainable weights of its consituent Layers. Its own _trainableWeights must remain an empty Array.");if(!this.trainable)return[];let e=[];for(let t of this.layers)e=e.concat(t.trainableWeights);return e}get nonTrainableWeights(){let e=[];for(let t of this.layers)e.push(...t.nonTrainableWeights);if(!this.trainable){let t=[];for(let e of this.layers)t.push(...e.trainableWeights);return t.concat(e)}return e}get weights(){return this.trainableWeights.concat(this.nonTrainableWeights)}loadWeights(e,t=!0){let n={},r=0,i=(e=>{let t=Object.keys(e);if(0===t.length)return!1;let n=t[0].split("/");return!isNaN(parseInt(n[n.length-1],10))})(e);for(let t of(i&&this.parseWeights(e),this.layers))for(let[e,a]of t.weights.entries()){let t=i?`${a.name.split("/").slice(0,-1).join("/")+"/"}${e}`:a.originalName;if(null!=n[t])throw new im("Duplicate weight name: "+t);n[t]=a,r++}let a=[];for(let r in e){let i=r;if(null==n[r]){let e=r.split("/");i=e.slice(0,-2).concat([e[e.length-1]]).join("/")}if(null!=n[i])a.push([n[i],e[r]]);else if(t)throw new im("Provided weight data has no target variable: "+r);delete n[i]}if(t){let e=[];for(let t in n)e.push(t);if(e.length>0)throw new im(`${e.length} of ${r} weights are not set: `+e)}az(a)}parseWeights(e){for(let t in Object.keys(e)){let n=t.split("/"),r=["vars","layer_checkpoint_dependencies"],i=n.map(e=>e.startsWith("_")?e.slice(1):e).filter(e=>!r.includes(e)).join("/");i!==t&&(e[i]=e[t],delete e[t])}}updatedConfig(){let e=this.getConfig(),t={};return t.className=this.getClassName(),t.config=e,t.kerasVersion="tfjs-layers "+sn,t.backend="TensorFlow.js",t}toJSON(e,t=!0){let n=function e(t,n){if(null==t)return null;if("string"==typeof t)return iT(t);if("number"==typeof t||"boolean"==typeof t)return t;if(t instanceof Array){let r=[],i=t.length;for(let a=0;a<i;++a){let i=t[a];se(n,a,i)?r.push(i):r.push(e(i,n))}return r}{let n={};for(let r of Object.keys(t)){let i=t[r];n[iT(r)]="name"!==r&&"className"!==r||"string"!=typeof i?e(i,r):i}return n}}(this.updatedConfig());return t?JSON.stringify(n):n}call(e,t){return Object(ep.Ei)(()=>{e=ik(e);let n=new aJ;for(let t=0;t<this.inputs.length;++t)n.add(this.inputs[t],e[t]);return a1(this.outputs,n,t)})}computeMask(e,t){return Object(ep.Ei)(()=>{let n;return e=ik(e),n=null==t?iO(null,e.length):ik(t),this.runInternalGraph(e,n)[1]})}computeOutputShape(e){let t=a$(e);
17if(t.length!==this.inputLayers.length)throw new im(`Invalid inputShape argument ${e}: model has ${this.inputLayers.length} tensor inputs.`);let n={};for(let e=0;e<t.length;e++){let r=this.inputLayers[e],i=t[e];n[r.name+"_0_0"]=i}let r=Object.keys(this.nodesByDepth).map(e=>parseInt(e,10)).sort(iE);if(r.length>1)for(let e of r)for(let t of this.nodesByDepth[e]){let e=t.outboundLayer;if(-1!==this.inputLayers.map(e=>e.id).indexOf(e.id))continue;let r=[];for(let e=0;e<t.inboundLayers.length;e++){let i=t.inboundLayers[e],a=t.nodeIndices[e],o=t.tensorIndices[e],s=n[`${i.name}_${a}_${o}`];r.push(s)}let i=a$(e.computeOutputShape(iN(r))),a=e.inboundNodes.indexOf(t);for(let t=0;t<i.length;t++)n[`${e.name}_${a}_${t}`]=i[t]}let i=[],a=[];for(let e=0;e<this.outputLayers.length;e++){let t=this.outputLayers[e],n=this.outputLayersNodeIndices[e],r=this.outputLayersTensorIndices[e],i=`${t.name}_${n}_${r}`;a.push(i)}for(let e=0;e<a.length;e++){let t=a[e];ix(t in n),i.push(n[t])}return iN(i)}runInternalGraph(e,t){null==t&&(t=iO(null,e.length));let n={};for(let r=0;r<this.inputs.length;++r){let i=this.inputs[r],a=e[r],o=t[r];n[i.id]=[a,o]}for(let e of Object.keys(this.nodesByDepth).map(e=>parseInt(e,10)).sort(iE))for(let t of this.nodesByDepth[e]){let e=t.outboundLayer,r=t.inputTensors,i=t.outputTensors,a=[];for(let e of r)e.id in n&&a.push(n[e.id]);if(a.length===r.length){let r,o,s,l,u={};if(null!=t.callArgs&&(u=t.callArgs),1===a.length){let[t,n]=a[0];null==u.mask&&(u.mask=n),s=ik(e.call(t,u)),l=ik(e.computeMask(t,n)),r=[t],o=[n]}else r=a.map(e=>e[0]),o=a.map(e=>e[1]),null==u.mask&&(u.mask=o),s=ik(e.call(r,u)),l=ik(e.computeMask(r,o));if(e.activityRegularizer)throw new iy("LayersModel invocation with concrete Tensor value(s) in the presence of activity regularizer(s) is not supported yet.");for(let e=0;e<i.length;++e){let t=i[e],r=s[e],a=l[e];n[t.id]=[r,a]}}}let r=[],i=[],a=[];for(let e of this.outputs){ix(e.id in n,`Could not compute output ${e.name} : ${e.id}`);let[t,o]=n[e.id];a.push(t.shape),r.push(t),i.push(o)}return[r,i,a]}buildNodeConversionMap(e){let t,n={};for(let e of this.layers){t=+(e instanceof sr);for(let r=0;r<e.inboundNodes.length;r++){let i=sr.nodeKey(e,r);this.containerNodes.has(i)&&(n[i]=t,t+=1)}}return n}getLayer(e,t){if(null!=t)return this.findLayer(t);if(null==e)throw new im("Provide either a layer name or layer index");if("number"==typeof e)return this.findLayer(e);for(let t of this.layers)if(t.name===e)return t;throw new im("No such layer: "+e)}findLayer(e){if(this.layers.length<=e)throw new im(`Was asked to retrieve layer at index ${e}, but model only has ${this.layers.length} layer(s).`);return this.layers[e]}calculateLosses(){return Object(ep.Ei)(()=>{let e=[];for(let t of this.layers)for(let n=0;n<t.inboundNodes.length;++n){let r=sr.nodeKey(t,n);this.containerNodes.has(r)&&e.push(...t.calculateLosses())}return e})}getConfig(){let e={name:this.name},t=this.buildNodeConversionMap(this.layers),n=[];for(let e of this.layers){let r=e.getClassName(),i=e.getConfig(),a=[];for(let n=0;n<e.inboundNodes.length;n++){let r=e.inboundNodes[n],i=sr.nodeKey(e,n),o={};if(this.containerNodes.has(i)){if(r.callArgs)try{JSON.stringify(r.callArgs),o=r.callArgs}catch(t){console.warn(`Layer ${e.name} was passed non-serializable keyword arguments: `+r.callArgs+". They will not be included in the serialized model (and thus will be missing at deserialization time)."),o={}}if(r.inboundLayers.length>0){let e=[];for(let n=0;n<r.inboundLayers.length;n++){let i=r.inboundLayers[n],a=r.nodeIndices[n],s=r.tensorIndices[n],l=t[sr.nodeKey(i,a)];null==l&&(l=0),e.push([i.name,l,s,o])}a.push(e)}}}let o={};o.name=e.name,o.className=r,o.config=i,o.inboundNodes=a,n.push(o)}e.layers=n;let r=[];for(let e=0;e<this.inputLayers.length;e++){let n=this.inputLayers[e],i=this.inputLayersNodeIndices[e],a=sr.nodeKey(n,i);if(!this.containerNodes.has(a))continue;let o=t[a];null!=o||(o=0);let s=this.inputLayersTensorIndices[e];r.push([n.name,o,s])}e.inputLayers=r;let i=[];for(let e=0;e<this.outputLayers.length;e++){let n=this.outputLayers[e],r=this.outputLayersNodeIndices[e],a=sr.nodeKey(n,r);if(!this.containerNodes.has(a))continue;let o=t[a];null!=o||(o=0);let s=this.outputLayersTensorIndices[e];i.push([n.name,o,s])}return e.outputLayers=i,e}static fromConfig(e,t,n={},r=!1){let i={},a={};function o(e,t){e.name in a?a[e.name].push(t):a[e.name]=[t]}function s(e,t){let n,r=[];for(let a of t){let s=a[0],l=a[1],u=a[2];if(n=null==a[3]?{}:a[3],!(s in i))return void o(e,t);let c=i[s];if(c.inboundNodes.length<=l)return void o(e,t);let p=c.inboundNodes[l];r.push(p.outputTensors[u])}r.length>
170&&e.apply(iN(r),n)}function l(e){let n=e.name,a=oC(e,null!=t.customObjects?t.customObjects:{});a.setFastWeightInitDuringBuild(r),i[n]=a,e.inboundNodes.forEach(e=>{if(!(e instanceof Array))throw new im("Corrupted configuration, expected array for nodeData: "+e);o(a,e)})}let u=t.name,c=t.layers;for(let e of c)l(e);for(;!iD(a);)for(let e of c){let t=i[e.name];if(t.name in a){let e=a[t.name];for(let n of(delete a[t.name],e))s(t,n)}}let p=[],d=[];for(let e of t.inputLayers){let t=e[0],n=e[1],r=e[2];ix(t in i);let a=i[t].inboundNodes[n].outputTensors;p.push(a[r])}for(let e of t.outputLayers){let t=e[0],n=e[1],r=e[2];ix(t in i);let a=i[t].inboundNodes[n].outputTensors;d.push(a[r])}return new e({inputs:p,outputs:d,name:u})}get stateful(){if(this._stateful)throw new im("Container instance unexpectedly has _stateful = true. The statefulness of a Container is determined by the Layers it contains. Its _stateful property must remain the default false.");for(let e of this.layers)if(e.stateful)return!0;return!1}resetStates(){Object(ep.Ei)(()=>{this.layers.forEach(e=>{e.stateful&&e.resetStates()})})}}function si(e,t,n){let r=t.length;if(null==e||Array.isArray(e)&&0===e.length)return t.map(e=>null);if(1===r)return Array.isArray(e)&&1===e.length?e:"object"==typeof e&&t[0]in e?[e[t[0]]]:[e];if(Array.isArray(e)){if(e.length!==r)throw Error(`Provided ${n} is an array of ${e.length} element(s), but the model has ${r} outputs. Make sure a set of weights is provided for each model output.`);return e}if("object"==typeof e&&Object.keys(e).length>0&&"object"==typeof e[Object.keys(e)[0]]){let n=[];return t.forEach(t=>{t in e?n.push(e[t]):n.push(null)}),n}throw Error(`The model has multiple (${r}) outputs, so ${n} must be either an array with ${r} elements or an object with ${t} keys. Provided ${n} not understood: ${JSON.stringify(e)}`)}function sa(e,t){return si(e,t,"classWeight")}async function so(e,t,n,r){if(null!=t||null!=r)throw Error("Support sampleWeight is not implemented yet");if(null!=n){let t=Object(ep.Ei)(()=>{if(1===e.shape.length)return Object(ep.Ae)(e);if(2===e.shape.length){if(e.shape[1]>1){let t=1;return Object(ep.Yd)(e,t)}if(1===e.shape[1])return Object(ep.wh)(e,[e.shape[0]]);throw Error(`Encountered unexpected last-dimension size (${e.shape[1]}) during handling of class weights. The size is expected to be >= 1.`)}throw Error(`Unexpected rank of target (y) tensor (${e.rank}) during handling of class weights. The rank is expected to be 1 or 2.`)}),r=Array.from(await t.data());Object(ep.bf)(t);let i=[];return r.forEach(e=>{if(null==n[e])throw Error(`classWeight must contain all classes in the training data. The class ${e} exists in the data but not in classWeight`);i.push(n[e])}),Object(ep.vi)(i,"float32")}return null}function ss(e,t){return Object(ep.Gg)(e,t)}function sl(e,t){let n,r,i=t;n=i.xs,r=i.ys,ep.Si.assert(null!=n&&null!=r,()=>"A Dataset iterator for fitDataset() is expected to generate objects of the form `{xs: xVal, ys: yVal}`, where the two values may be `tf.Tensor`, an array of Tensors, or a map of string to Tensor. The provided Dataset instead generates "+t);let a=su("input",e.inputNames,n),o=su("output",e.outputNames,r),s=a[0].shape[0];ep.Si.assert(a.length===e.inputs.length,()=>`LayersModel has ${e.inputs.length} inputs, but the dataset provides ${a.length} inputs. (Expected input keys: `+JSON.stringify(e.inputNames)+")"),ep.Si.assert(o.length===e.outputs.length,()=>`LayersModel has ${e.outputs.length} outputs, but the dataset provides ${o.length} outputs. (Expected output keys: `+JSON.stringify(e.outputNames)+")");for(let t=0;t<a.length;t++)ep.Si.assert(a[t].shape[0]===s,()=>`Batch size mismatch: input ${e.inputNames[t]} has ${a[t].shape[0]}; expected ${s} based on input ${e.inputNames[0]}.`);for(let t=0;t<o.length;t++)ep.Si.assert(o[t].shape[0]===s,()=>`Batch size mismatch: output ${e.outputNames[t]} has ${o[t].shape[0]}; expected ${s} based on input ${e.inputNames[0]}.`);return{xs:a,ys:o}}function su(e,t,n){if(n instanceof ep.Dd)return[n];if(Array.isArray(n))return ep.Si.assert(n.length===t.length,()=>`Received an array of ${n.length} Tensors, but expected ${t.length} to match the ${e} keys ${t}.`),n;{let r=[];for(let i of t){if(null==n[i])throw new im(`The feature data generated by the dataset lacks the required ${e} key '${i}'.`);r.push(n[i])}return r}}async function sc(e,t,n){let r=null!=n.batchesPerEpoch;if(ep.Si.assert(null!=e.optimizer,()=>"You must compile a model before training/testing. Use LayersModel.compile(modelCompileConfig)."),ep.Si.assert(null!=n,
17()=>"For fitDataset(), the 2nd argument (config) is required, but it is not provided in this call."),ep.Si.assert(null!=n.epochs&&n.epochs>0&&Number.isInteger(n.epochs),()=>"For fitDataset(), config.epochs is expected to be a positive integer, but got "+n.epochs),ep.Si.assert(!r||n.batchesPerEpoch>0&&Number.isInteger(n.batchesPerEpoch),()=>"For fitDataset(), config.batchesPerEpoch is expected to be a positive integer if specified, but got "+n.batchesPerEpoch),ep.Si.assert(null==n.validationSplit,()=>"`validationSplit` is not supported by `fitDataset()`. Use validationData instead."),e.isTraining)throw Error("Cannot start training because another fit() call is ongoing.");e.isTraining=!0;try{let i,a,o,s=null!=n.validationData;if(s)if(sp(n.validationData))ep.Si.assert(null==n.validationBatches||n.validationBatches>0&&Number.isInteger(n.validationBatches),()=>"For fitDataset() with dataset-based validation, config.validationBatches is expected not to be provided, or to be a positive integer, but got "+n.validationBatches);else{let e=function(e){if(3===e.length)throw new iy("Validation with sample weights is not implemented yet.");return{xs:e[0],ys:e[1]}}(n.validationData);i=e.xs,a=e.ys}let l=e.makeTrainFunction(),u=e.getDedupedMetricsNames();o=s?u.slice().concat(u.map(e=>"val_"+e)):u.slice();let c=oE(n.callbacks,n.yieldEvery),p=null==n.verbose?1:n.verbose,{callbackList:d,history:f}=oD(c,p,n.epochs,null,null,function(e,t){let n=null;return null!=t.batchesPerEpoch?n=t.batchesPerEpoch:Number.isFinite(e.size)&&(n=e.size),n}(t,n),null,s,o);d.setModel(e),e.history=f,await d.onTrainBegin(),e.stopTraining_=!1;let h=null==n.initialEpoch?0:n.initialEpoch,g=await t.iterator();for(;h<n.epochs;){let o={};await d.onEpochBegin(h);let c=0,p=0;for(r||(g=await t.iterator());!r||c<n.batchesPerEpoch;){let t=await g.next();if(r&&t.done){console.warn("You provided `batchesPerEpoch` as "+n.batchesPerEpoch+", but your dataset iterator ran out of data after "+c+" batches; interrupting training. Make sure that your dataset can generate at least `batchesPerEpoch * epochs` batches (in this case, "+n.batchesPerEpoch*n.epochs+" batches). You may need to use the repeat() function when building your dataset.");break}if(null!=t.value){let{xs:r,ys:i}=sl(e,t.value),a={};a.batch=p,a.size=r[0].shape[0],await d.onBatchBegin(p,a);let o=[];if(null!=n.classWeight){let t=sa(n.classWeight,e.outputNames);for(let e=0;e<t.length;++e)o.push(await so(i[e],null,t[e]))}let s=r.concat(i).concat(o),f=l(s);ep.bf(s);for(let e=0;e<u.length;++e){let t=u[e],n=f[e];a[t]=n,ep.Xf(n)}await d.onBatchEnd(p,a),ok(a),p++,c++}if(r?c>=n.batchesPerEpoch:t.done){if(s){let t;t=sp(n.validationData)?ik(await e.evaluateDataset(n.validationData,{batches:n.validationBatches})):ik(e.evaluate(i,a,{batchSize:null==n.validationBatchSize?32:n.validationBatchSize,verbose:0}));for(let n=0;n<e.metricsNames.length;++n)o["val_"+e.metricsNames[n]]=t[n]}break}if(e.stopTraining_)break}if(await d.onEpochEnd(h,o),h++,e.stopTraining_)break}return await d.onTrainEnd(),await e.history.syncData(),e.history}finally{e.isTraining=!1}}function sp(e){return"function"==typeof e.iterator}function sd(e){ep.Si.assert(e>0&&Number.isInteger(e),()=>"batchSize is required to be a positive integer, but got "+e)}function sf(e,t,n){return null==e?[null]:Array.isArray(e)?e.map(e=>ae(e,t,n-t)):ae(e,t,n-t)}function sh(e,t){return ep.Ei(()=>null==e?null:Array.isArray(e)?e.map(e=>sh(e,t)):al(e,"int32"===t.dtype?t:ep.xe(t,"int32")))}function sg(e,t){let n=[],r=0,i=null;for(;r<e;)(i=r+t)>=e&&(i=e),n.push([r,i]),r=i;return n}function sb(e){let t=[];e instanceof ep.Dd&&(e=[e]);for(let n=0;n<e.length;++n){let r=e[n];if(1===r.rank)t.push(i9(r,1));else{if(0===r.rank)throw Error("Expected tensor to be at least 1D, but received a 0D tensor (scalar).");t.push(r)}}return t}function sm(e,t){if(null==e)return;let n=[];if(t instanceof ep.Dd)n.push(t.id);else if(Array.isArray(t))t.forEach(e=>n.push(e.id));else if(null!=t)for(let e in t){let r=t[e];n.push(r.id)}let r=[];if(e instanceof ep.Dd)-1===n.indexOf(e.id)&&r.push(e);
17else if(Array.isArray(e))e.forEach(e=>{-1===n.indexOf(e.id)&&r.push(e)});else if(null!=e)for(let t in e){let i=e[t];-1===n.indexOf(i.id)&&r.push(i)}r.forEach(e=>{e.isDisposed||e.dispose()})}function sy(e){return Array.isArray(e)}function sS(e){return!function(e){return e instanceof ep.Dd}(e)&&!sy(e)}function sv(e,t,n,r=!0,i=""){let a;if(null==t||0===t.length){if(null!=e){let t=!1;if(sy(e)&&e.length>0)t=!0;else if(sS(e)){for(let n in e)if(e.hasOwnProperty(n)){t=!0;break}}else t=!0;if(t)throw new im(`Error when checking model ${i} expected no data, but got `+e)}return[]}if(null==e)return t.map(e=>null);if(sS(e))for(let n of(a=[],t)){if(null==e[n])throw new im(`No data provided for "${n}". Need data for each key in: `+t);a.push(e[n])}else if(sy(e)){if(e.length!==t.length)throw new im(`Error when checking model ${i}: the Array of Tensors that you are passing to your model is not the size the model expected. Expected to see ${t.length} Tensor(s), but instead got the following list of Tensor(s): `+e);a=e}else{if(t.length>1)throw new im(`The model ${i} expects ${t.length} Tensor(s), but only received one Tensor. Found: Tensor with shape `+e.shape);a=[e]}if(a=sb(a),null!=n)for(let e=0;e<t.length;++e){if(null==n[e])continue;let o=a[e];if(o.shape.length!==n[e].length)throw new im(`Error when checking ${i}: expected ${t[e]} to have ${n[e].length} dimension(s). but got array with shape `+o.shape);for(let t=0;t<n[e].length;++t){if(0===t&&!r)continue;let a=o.shape[t],s=n[e][t];if(null!=s&&s>=0&&a!==s)throw new im(i+" expected a batch of elements where each "+`example has shape [${n[e].slice(1,n[e].length)}] `+`(i.e.,tensor shape [*,${n[e].slice(1,n[e].length)}])`+` but the ${i} received an input with ${o.shape[0]}`+` examples, each with shape [${o.shape.slice(1,o.shape.length)}]`+` (tensor shape [${o.shape}])`)}}return a}function sO(e,t,n,r=!0,i=""){let a;if(Array.isArray(e)){if(e.length!==t.length)throw new im(`Error when checking model ${i}: the Array of Tensors that you are passing to your model is not the size the the model expected. Expected to see ${t.length} Tensor(s), but instead got ${e.length} Tensors(s).`);a=e}else{if(t.length>1)throw new im(`The model expects ${t.length} ${i} Tensors, but only received one Tensor. Found: array with shape `+JSON.stringify(e.shape)+".");a=[e]}if(null!=n)for(let e=0;e<t.length;++e){if(null==n[e])continue;let o=a[e];if(o.shape.length!==n[e].length)throw new im(`Error when checking ${i}: expected ${t[e]} to have ${n[e].length} dimension(s), but got array with shape `+JSON.stringify(o.shape));for(let a=0;a<n[e].length;++a){if(0===a&&!r)continue;let s=o.shape[a],l=n[e][a];if(null!=l&&l!==s)throw new im(`Error when checking ${i}: expected ${t[e]} to have shape ${JSON.stringify(n[e])} but got array with shape ${JSON.stringify(o.shape)}.`)}}}class sx extends sr{constructor(e){super(e),this.isTraining=!1}summary(e,t,n=console.log){if(!this.built)throw new im("This model has never been called, thus its weights have not been created yet. So no summary can be displayed. Build the model first (e.g., by calling it on some test data).");o5(this,e,t,n)}compile(e){if(null==e.loss&&(e.loss=[]),this.loss=e.loss,"string"==typeof e.optimizer)this.optimizer_=function(e){let t={Adagrad:()=>ep.Ii.adagrad(.01),Adadelta:()=>ep.Ii.adadelta(1,.95,i8()),Adam:()=>ep.Ii.adam(.001,.9,.999,i8()),Adamax:()=>ep.Ii.adamax(.002,.9,.999,i8(),0),RMSProp:()=>ep.Ii.rmsprop(.001,.9,0,i8()),SGD:()=>ep.Ii.sgd(.01)};if(t.adagrad=t.Adagrad,t.adadelta=t.Adadelta,t.adam=t.Adam,t.adamax=t.Adamax,t.rmsprop=t.RMSProp,t.sgd=t.SGD,e in t)return t[e]();throw new im("Unknown Optimizer "+e)}(e.optimizer),this.isOptimizerOwned=!0;else{if(!(e.optimizer instanceof ep.uc))throw new im("User-defined optimizer must be an instance of tf.Optimizer.");this.optimizer_=e.optimizer,this.isOptimizerOwned=!1}let t=[];if(Array.isArray(e.loss)||"string"==typeof e.loss||"function"==typeof e.loss)if(Array.isArray(e.loss)){if(e.loss.length!==this.outputs.length)throw new im(`When passing an Array as loss, it should have one entry per model output. The model has ${this.outputs.length} output(s), but you passed loss=${e.loss}.`);t=e.loss.map(e=>oH(e))}else{let n=oH(e.loss);
17this.outputs.forEach(e=>{t.push(n)})}else{for(let t in e.loss=e.loss,e.loss)if(-1===this.outputNames.indexOf(t))throw new im(`Unknown entry in loss dictionary: "${t}". Only expected the following keys: `+this.outputNames);for(let n of this.outputNames)null==e.loss[n]&&console.warn(`Output "${n}" is missing from loss dictionary. We assume this was done on purpose, and we will not be expecting data to be passed to ${n} during training`),t.push(oH(e.loss[n]))}this.lossFunctions=t,this.feedOutputNames=[],this.feedOutputShapes=[],this.feedLossFns=[];for(let e=0;e<this.outputs.length;++e){let t=this.internalOutputShapes[e],n=this.outputNames[e];this.feedOutputNames.push(n),this.feedOutputShapes.push(t),this.feedLossFns.push(this.lossFunctions[e])}let n=[];this.metrics=e.metrics,this.metricsNames=["loss"],this.metricsTensors=[],iJ("loss",()=>{for(let e=0;e<this.outputs.length;++e){if(-1!==n.indexOf(e))continue;let t=this.lossFunctions[e];this.outputs.length>1&&(this.metricsTensors.push([t,e]),this.metricsNames.push(this.outputNames[e]+"_loss"))}});let r=function(e,t){let n;if(null==e||Array.isArray(e)&&0===e.length)return t.map(e=>[]);if("string"==typeof e||"function"==typeof e)n=[e];else{if(!Array.isArray(e)&&"object"!=typeof e)throw TypeError("Type of metrics argument not understood. Expected an string,function, Array, or Object, found: "+e);n=e}if(Array.isArray(n))return t.map(e=>n);{let e=[];for(let r of t){let t=n.hasOwnProperty(r)?n[r]:[];Array.isArray(t)||(t=[t]),e.push(t)}return e}}(e.metrics,this.outputNames),i=(e,t,n)=>{this.outputNames.length>1&&(t=this.outputNames[e]+"_"+t),this.metricsNames.push(t),this.metricsTensors.push([n,e])};iJ("metric",()=>{for(let e=0;e<this.outputs.length;++e)-1===n.indexOf(e)&&(t=>{let n,r,a;for(let o of t){let t;if("string"==typeof o&&-1!==["accuracy","acc","crossentropy","ce"].indexOf(o)){let t,i=this.internalOutputShapes[e];1===i[i.length-1]||this.lossFunctions[e]===oW?-1!==["accuracy","acc"].indexOf(o)?r=oq:-1!==["crossentropy","ce"].indexOf(o)&&(r=oJ):this.lossFunctions[e]===oL?-1!==["accuracy","acc"].indexOf(o)?r=oZ:-1!==["crossentropy","ce"].indexOf(o)&&(r=o1):-1!==["accuracy","acc"].indexOf(o)?r=oK:-1!==["crossentropy","ce"].indexOf(o)&&(r=o0),-1!==["accuracy","acc"].indexOf(o)?t="acc":-1!==["crossentropy","ce"].indexOf(o)&&(t="ce"),a=r,n=""+t}else a=o3(o),n=""+o4(o);iJ(n,()=>{t=a}),i(e,n,t)}})(r[e])}),this.collectedTrainableWeights=this.trainableWeights}checkTrainableWeightsConsistency(){null!=this.collectedTrainableWeights&&this.trainableWeights.length!==this.collectedTrainableWeights.length&&console.warn("Discrepancy between trainableweights and collected trainable weights. Did you set `model.trainable` without calling `model.compile()` afterwards?")}evaluate(e,t,n={}){let r=null==n.batchSize?32:n.batchSize;sd(r);let i=this.standardizeUserDataXY(e,t,!0,r);try{let e=i[0].concat(i[1]);this.makeTestFunction();let t=this.testFunction;return iN(this.testLoop(t,e,r,n.verbose,n.steps))}finally{sm(i[0],e),sm(i[1],t)}}async evaluateDataset(e,t){return this.makeTestFunction(),async function(e,t,n){let r=null!=(n=n||{}).batches,i=e.testFunction,a=[];if(n.verbose>0)throw new iy("Verbose mode is not implemented yet.");ep.Si.assert(!r||n.batches>0&&Number.isInteger(n.batches),()=>"Test loop expects `batches` to be a positive integer, but received "+JSON.stringify(n.batches));let o="function"==typeof t.next?t:await t.iterator(),s=0,l=0;for(;!r||l<n.batches;){let t=await o.next();if(a=ep.Ei(()=>{if(t.value){let{xs:n,ys:r}=sl(e,t.value),o=n.concat(r),u=ep.Ei(()=>i(o));if(ep.bf(o),0===l)for(let e=0;e<u.length;++e)a.push(Object(ep.Fh)(0));let c=o[0].shape[0];for(let e=0;e<u.length;++e){let t=u[e],n=a[e];a[e]=ep.Ei(()=>ep.Ud(a[e],ep.Gg(c,t))),l>0&&ep.bf(n)}ep.bf(u),s+=c,++l}return a}),t.done){r&&console.warn(`Your dataset iterator ran out of data during evaluateDataset(). Interrupting evalution. Make sure that your dataset can generate at least \`batches\` batches (in this case, ${n.batches} batches). You may need to use the repeat() function when building your dataset.`);break}}for(let e=0;e<a.length;++e){let t=a[e];a[e]=ep.df(a[e],s),ep.bf(t)}return iN(a)}(this,e,t)}checkNumSamples(e,t,n,r="steps"){let i;if(null!=n){if(i=null,null!=t)throw new im(`If ${r} is set, batchSize must be null or undefined.Got batchSize = `+t)}
17else{if(null==e)throw new im("Either the input data should have a defined shape, or "+r+" shoud be specified.");i=Array.isArray(e)?e[0].shape[0]:e.shape[0]}return i}execute(e,t){if(Array.isArray(t)&&0===t.length)throw new im("`outputs` is an empty Array, which is not allowed.");let n=Array.isArray(t),r=n?t:[t],i=this.retrieveSymbolicTensors(r),a=new aJ;if(e instanceof ep.Dd&&(e=[e]),Array.isArray(e)){if(e.length!==this.inputs.length)throw new im(`The number of inputs provided (${e.length}) does not match the number of inputs of this model (${this.inputs.length}).`);for(let t=0;t<this.inputs.length;++t)a.add(this.inputs[t],e[t])}else for(let t of this.inputs){let n=e[t.name];if(null==n)throw new im("No value is provided for the model's input "+t.name);a.add(t,n)}let o=a1(i,a);return n?o:o[0]}retrieveSymbolicTensors(e){let t=iO(null,e.length),n=e.length;for(let r of this.layers){let i=Array.isArray(r.output)?r.output:[r.output],a=i.map(e=>e.name);for(let r=0;r<e.length;++r){let o=a.indexOf(e[r]);if(-1!==o&&(t[r]=i[o],n--),0===n)break}if(0===n)break}if(n>0){let n=[];throw t.forEach((t,r)=>{null==t&&n.push(e[r])}),new im("Cannot find SymbolicTensors for output name(s): "+JSON.stringify(n))}return t}predictLoop(e,t=32,n=!1){return ep.Ei(()=>{let r=this.checkNumSamples(e);if(n)throw new iy("Verbose predictLoop() is not implemented yet.");let i=sg(r,t),a=this.outputs.map(e=>[]);for(let t=0;t<i.length;++t)ep.Ei(()=>{let n=sf(e,i[t][0],i[t][1]),r=[];if(Array.isArray(n))for(let e=0;e<n.length;++e)r.push({key:this.inputs[e],value:n[e]});else r.push({key:this.inputs[0],value:n});let a=new aJ(r);return a1(this.outputs,a)}).forEach((e,t)=>a[t].push(e));return iN(a.map(e=>ep.Ce(e,0)))})}predict(e,t={}){let n=sb(e);sO(n,this.inputNames,this.feedInputShapes,!1);try{let e=null==t.batchSize?32:t.batchSize;return sd(e),this.predictLoop(n,e)}finally{sm(n,e)}}predictOnBatch(e){sO(e,this.inputNames,this.feedInputShapes,!0);let t=(Array.isArray(e)?e[0]:e).shape[0];return this.predictLoop(e,t)}standardizeUserDataXY(e,t,n=!0,r){if(null==this.optimizer_)throw new ib("You must compile a model before training/testing. Use LayersModel.compile(modelCompileArgs).");let i=[];for(let e=0;e<this.feedOutputShapes.length;++e){let t=this.feedOutputShapes[e];this.feedLossFns[e]===oL?i.push(t.slice(0,t.length-1).concat([1])):i.push(t)}if(function(e,t,n){let r=iR(e.map(e=>e.shape[0]));r.sort();let i=iR(t.map(e=>e.shape[0]));if(i.sort(),r.length>1)throw new im("All input Tensors (x) should have the same number of samples. Got array shapes: "+JSON.stringify(e.map(e=>e.shape)));if(i.length>1)throw new im("All target Tensors (y) should have the same number of samples. Got array shapes: "+JSON.stringify(t.map(e=>e.shape)));if(r.length>0&&i.length>0&&!ep.Si.arraysEqual(r,i))throw new im(`Input Tensors should have the same number of samples as target Tensors. Found ${r[0]} input sample(s) and ${i[0]} target sample(s).`)}(e=sv(e,this.feedInputNames,this.feedInputShapes,!1,"input"),t=sv(t,this.feedOutputNames,i,!1,"target")),function(e,t,n){let r=[oM,oW,oB];for(let i=0;i<e.length;++i){let a=e[i],o=t[i],s=n[i];if(null!=o){if(o===oB&&1===a.shape[a.shape.length-1])throw new im(`You are passing a target array of shape ${a.shape} while using a loss 'categorical_crossentropy'. 'categorical_crossentropy'expects targets to be binary matrices (1s and 0s) of shape [samples, classes].`);if(-1!==r.indexOf(o)){let e=a.shape.slice(1),t=s.slice(1);for(let n=0;n<e.length;++n){let r=e[n],i=t[n];if(null!=i&&r!==i)throw new im(`A target Tensor with shape ${a.shape} was passed for an output of shape ${s}, while using a loss function that expects targets to have the same shape as the output.`)}}}}}(t,this.feedLossFns,this.feedOutputShapes),this.stateful&&null!=r&&r>0&&e[0].shape[0]%r!=0)throw new im(`In a stateful network, you should only pass inputs with a number of samples that is divisible by the batch size ${r}. Found: ${e[0].shape[0]} sample(s).`);return[e,t]}async standardizeUserData(e,t,n,r,i=!0,a){let[o,s]=this.standardizeUserDataXY(e,t,i,a);if(null!=n)throw Error("sample weight is not supported yet.");let l=null;if(null!=r){let e=sa(r,this.outputNames);l=[];for(let t=0;t<e.length;++t)l.push(await so(s[t],null,e[t]))}return[o,s,l]}testLoop(e,t,n,r=0,i){return ep.Ei(()=>{let a=this.checkNumSamples(t,n,i,"steps"),o=[];if(r>0)throw new iy("Verbose mode is not implemented yet.");if(null!=i)throw new iy("steps mode in testLoop() is not implemented yet");{let r=sg(a,n),i=Object(ep.vi)(i5(0,a));for(let n=0;n<r.length;++n){let a=r[n][0],s=r[n][1],l=e(sh(t,ae(i,a,s-a)));if(0===n)for(let e=0;e<l.length;++e)o.push(Object(ep.Fh)(0));for(let e=0;e<l.length;++e){let t=l[e];o[e]=ep.Ud(o[e],ep.Gg(s-a,t))}}for(let e=0;e<o.length;++e)o[e]=ep.df(o[e],a)}return o}
17)}getDedupedMetricsNames(){let e=this.metricsNames,t=[];for(let n=0;n<e.length;++n){let r=e[n],i=r;iI(e,r)>1&&(i+="_"+iI(e.slice(0,n),r)),t.push(i)}return t}makeTrainFunction(){return e=>{let t=[],n=e.slice(0,this.inputs.length),r=e.slice(this.inputs.length,this.inputs.length+this.outputs.length),i=e.slice(this.inputs.length+this.outputs.length,this.inputs.length+2*this.outputs.length),a=[],o=this.collectedTrainableWeights.map(e=>e.read());return[this.optimizer_.minimize(()=>{let e,o=[];for(let e=0;e<this.inputs.length;++e)o.push({key:this.inputs[e],value:n[e]});let s=new aJ(o),l=a1(this.outputs,s,{training:!0});for(let n=0;n<this.lossFunctions.length;++n){let a=(0,this.lossFunctions[n])(r[n],l[n]);null!=i[n]&&(a=ss(a,i[n]));let o=ep.xg(a);t.push(o),e=0===n?a:ep.Ud(e,a)}for(let e=0;e<this.metricsTensors.length;++e){let n;if(this.outputs.length>1&&e<this.outputs.length)n=t[e];else{let t=this.metricsTensors[e][0],i=this.metricsTensors[e][1];n=ep.xg(t(r[i],l[i]))}ep.Xf(n),a.push(n)}return e=ep.xg(e),this.calculateLosses().forEach(t=>{e=ep.Ud(e,t)}),e},!0,o)].concat(a)}}makeTestFunction(){this.testFunction=e=>ep.Ei(()=>{let t,n=[],r=e.slice(0,this.inputs.length),i=e.slice(this.inputs.length,this.inputs.length+this.outputs.length),a=[];for(let e=0;e<this.inputs.length;++e)a.push({key:this.inputs[e],value:r[e]});let o=new aJ(a),s=a1(this.outputs,o);for(let e=0;e<this.lossFunctions.length;++e){let r=this.lossFunctions[e],a=ep.xg(r(i[e],s[e]));t=0===e?a:ep.Ud(t,a),n.push(t)}for(let e=0;e<this.metricsTensors.length;++e){let t=this.metricsTensors[e][0],r=this.metricsTensors[e][1],a=ep.xg(t(i[r],s[r]));n.push(a)}return n})}async fit(e,t,n={}){let r,i,a,o,s,l,u,c,p;if(this.isTraining)throw Error("Cannot start training because another fit() call is ongoing.");this.isTraining=!0;try{let d,f,h=null==n.batchSize?32:n.batchSize;sd(h);let g=!1,b=await this.standardizeUserData(e,t,n.sampleWeight,n.classWeight,g,h);r=b[0],i=b[1],p=b[2];let m,y=!1;if(null!=n.validationData&&n.validationData.length>0){if(y=!0,2!==n.validationData.length)throw 3===n.validationData.length?new iy("validationData including sample weights is not supported yet."):new im("When passing validation data, it must contain 2 (valX, valY) or 3 (valX, valY, valSampleWeight) items; "+n.validationData+" is invalid.");s=n.validationData[0],l=n.validationData[1];let e=!0,t=await this.standardizeUserData(s,l,null,null,e,h);u=t[0],c=t[1],m=u.concat(c)}else if(null!=n.validationSplit&&n.validationSplit>0&&n.validationSplit<1){y=!0;let e=Math.floor(r[0].shape[0]*(1-n.validationSplit)),t=r[0].shape[0];u=sf(r,e,t),a=r,r=sf(r,0,e),c=sf(i,e,t),o=i,i=sf(i,0,e),m=u.concat(c)}else null!=n.validationSteps&&(y=!0);let S=r.concat(i).concat(p);this.checkTrainableWeightsConsistency();let v=this.makeTrainFunction(),O=this.getDedupedMetricsNames();y?(this.makeTestFunction(),d=this.testFunction,f=O.slice().concat(O.map(e=>"val_"+e))):(d=null,m=[],f=O.slice());let x=oE(n.callbacks,n.yieldEvery);return await this.fitLoop(v,S,O,h,n.epochs,n.verbose,x,d,m,n.shuffle,f,n.initialEpoch,null,null)}finally{this.isTraining=!1,sm(r,e),sm(i,t),sm(a,e),sm(o,t),sm(u,s),sm(c,l),null!=p&&ep.bf(p)}}async fitLoop(e,t,n,r,i,a,o,s,l,u,c,p,d,f){let h;null==r&&(r=32),null==i&&(i=1),null==u&&(u=!0),null==p&&(p=0);let g=!1;if(null!=s&&null!=l&&(g=!0),null!=f&&(g=!0,null==d))throw new im("Can only use `validationSteps` when doing step-wise training, i.e., `stepsPerEpoch` must be set.");let b=this.checkNumSamples(t,r,d,"steps_per_epoch");null!=b&&(h=i5(0,b)),null==a&&(a=1);let{callbackList:m,history:y}=oD(o,a,i,p,b,d,r,g,c);m.setModel(this),this.history=y,await m.onTrainBegin(),this.stopTraining_=!1;for(let a=p;a<i;++a){await m.onEpochBegin(a);let i={};if(null!=d)throw new iy("stepsPerEpoch mode is not implemented yet.");{if("batch"===u)throw new iy("batch shuffling is not implemneted yet");u&&ep.Si.shuffle(h);let a=Object(ep.vi)(h),o=sg(b,r);for(let u=0;u<o.length;++u){let c={};if(await m.onBatchBegin(u,c),ep.Ei(()=>{let p=o[u][0],d=o[u][1],f=ae(a,p,d-p);c.batch=u,c.size=d-p;let h=e(sh(t,f));for(let e=0;e<n.length;++e){let t=n[e],r=h[e];c[t]=r,ep.Xf(r)}if(u===o.length-1&&g){let e=this.testLoop(s,l,r);for(let t=0;t<n.length;++t){let r=n[t],a=e[t];ep.Xf(a),i["val_"+r]=a}}}),await m.onBatchEnd(u,c),ok(c),this.stopTraining_)break}a.dispose()}if(await m.onEpochEnd(a,i),this.stopTraining_)break}return await m.onTrainEnd(),await this.history.syncData(),this.history}async fitDataset(e,t){return sc(this,e,t)}async trainOnBatch(e,t){let n=await this.standardizeUserData(e,t),r=n[0],i=n[1],a=this.makeTrainFunction()(r.concat(i)),o=[];for(let e of a){let t=await e.data();o.push(t[0])}return ep.bf(a),sm(n[0],e),sm(n[1],t),iN(o)}getNamedWeights(e){let t=[],n=null!=e&&e.trainableOnly,r=n?this.trainableWeights:this.weights,i=this.getWeights(n);for(let e=0;e<r.length;++e)n&&!r[e].trainable||t.push({name:r[e].originalName,tensor:i[e]});return t}set stopTraining(e){this.stopTraining_=e}get stopTraining(){return this.stopTraining_}get optimizer(){return this.optimizer_}set optimizer(e){this.optimizer_!==e&&(this.optimizer_=e,this.isOptimizerOwned=!1)}dispose(){let e=super.dispose();if(0===e.refCountAfterDispose&&null!=this.optimizer&&this.isOptimizerOwned){let t=ep.yg().numTensors;this.optimizer_.dispose(),e.numDisposedVariables+=t-ep.yg().numTensors}return e}getLossIdentifiers(){let e;if("string"==typeof this.loss)e=iT(this.loss);else if(Array.isArray(this.loss)){for(let e of this.loss)if("string"!=typeof e)throw Error("Serialization of non-string loss is not supported.");e=this.loss.map(e=>iT(e))}else{let t=Object.keys(this.loss);e={};let n=this.loss;for(let r of t){if("string"!=typeof n[r])throw Error("Serialization of non-string loss is not supported.");e[r]=iT(n[r])}}return e}getMetricIdentifiers(){if("string"==typeof this.metrics||"function"==typeof this.metrics)return[iT(o4(this.metrics))];if(Array.isArray(this.metrics))return this.metrics.map(e=>iT(o4(e)));{let e={};for(let t in this.metrics)e[t]=iT(o4(this.metrics[t]));return e}}getTrainingConfig(){return{loss:this.getLossIdentifiers(),metrics:this.getMetricIdentifiers(),optimizer_config:{class_name:this.optimizer.getClassName(),config:this.optimizer.getConfig()}}}loadTrainingConfig(e){let t,n;if(null!=e.weighted_metrics)throw Error("Loading weight_metrics is not supported yet.");if(null!=e.loss_weights)throw Error("Loading loss_weights is not supported yet.");if(null!=e.sample_weight_mode)throw Error("Loading sample_weight_mode is not supported yet.");let r=oC(st(e.optimizer_config));if("string"==typeof e.loss)t=iw(e.loss);else if(Array.isArray(e.loss))t=e.loss.map(e=>iw(e));else if(null!=e.loss)for(let n in t={},e.loss)t[n]=iw(e.loss[n]);if(Array.isArray(e.metrics))n=e.metrics.map(e=>iw(e));else if(null!=e.metrics)for(let t in n={},e.metrics)n[t]=iw(e.metrics[t]);this.compile({loss:t,metrics:n,optimizer:r})}async save(e,t){if("string"==typeof e){let t=ep.Sf.getSaveHandlers(e);if(0===t.length)throw new im(`Cannot find any save handlers for URL '${e}'`);if(t.length>1)throw new im(`Found more than one (${t.length}) save handlers for URL '${e}'`);e=t[0]}if(null==e.save)throw new im("LayersModel.save() cannot proceed because the IOHandler provided does not have the `save` attribute defined.");let n=await ep.Sf.encodeWeights(this.getNamedWeights(t)),r={modelTopology:this.toJSON(null,!1),format:"layers-model",generatedBy:"TensorFlow.js tfjs-layers v"+sn,convertedBy:null};if(null!=t&&t.includeOptimizer&&null!=this.optimizer){r.trainingConfig=this.getTrainingConfig();let e="optimizer",{data:t,specs:i}=await ep.Sf.encodeWeights(await this.optimizer.getWeights(),e);n.specs.push(...i),n.data=ep.Sf.concatenateArrayBuffers([n.data,t])}if(null!=this.userDefinedMetadata){let e=!0;o6(this.userDefinedMetadata,this.name,e),r.userDefinedMetadata=this.userDefinedMetadata}return r.weightData=n.data,r.weightSpecs=n.specs,e.save(r)}setUserDefinedMetadata(e){o6(e,this.name),this.userDefinedMetadata=e}getUserDefinedMetadata(){return this.userDefinedMetadata}}sx.className="Model",ep.Lh.registerClass(sx);class sI extends sx{}async function sN(e,t){"modelTopology"in e||(e={modelTopology:e});let n=e.modelTopology;null!=n.model_config&&(n=n.model_config);let r=oC(st(n),t);
17if(null!=e.weightsManifest){let t=await ep.Sf.loadWeights(e.weightsManifest,e.pathPrefix,r.weights.map(e=>e.originalName)),n={};for(let e of r.weights)n[e.originalName]=t[e.originalName];r.loadWeights(n),Object(ep.bf)(t)}return r}async function sk(e,t){if(null==t&&(t={}),"string"==typeof e){let n=ep.Sf.getLoadHandlers(e,t);if(0===n.length)n.push(ep.Sf.browserHTTPRequest(e,t));else if(n.length>1)throw new im(`Found more than one (${n.length}) load handlers for URL '${e}'`);e=n[0]}return async function(e,t,n){if(null==n&&(n={}),null==e.load)throw new im("Cannot proceed with model loading because the IOHandler provided does not have the `load` method implemented.");let r=await e.load(),i=r.modelTopology;null!=i.model_config&&(i=i.model_config);let a=null==n.strict||n.strict,o=null!=r.weightData&&null!=r.weightSpecs&&a,s=oC(st(i),t,o),l=r.trainingConfig;if(null!=l&&s.loadTrainingConfig(l),null!=r.userDefinedMetadata&&s.setUserDefinedMetadata(r.userDefinedMetadata),null!=r.weightData){if(null==r.weightSpecs)throw new im("LayersModel artifacts contains weight data, but not weight specs. Therefore loading of weights cannot proceed.");let{modelWeights:e,optimizerWeights:t}=function(e,t){let n=ep.Sf.decodeWeights(e,t),r={},i=[];return t.forEach(e=>{"optimizer"===e.group?i.push({name:e.name,tensor:n[e.name]}):r[e.name]=n[e.name]}),{modelWeights:r,optimizerWeights:i}}(r.weightData,r.weightSpecs);s.loadWeights(e,a),null!=s.optimizer&&t.length>0&&await s.optimizer.setWeights(t),Object(ep.bf)(e),Object(ep.bf)(t.map(e=>e.tensor))}return s}(e,void 0,t)}sI.className="Functional",ep.Lh.registerClass(sI);class sT extends sx{constructor(e){if(super({inputs:[],outputs:[]}),e=e||{},this.trainable=!0,this.built=!1,this.name=null!=e.name?e.name:iL("sequential_"),null!=e.layers)for(let t of e.layers)this.add(t)}checkShape(e){if(e.inboundNodes[0].outputTensors[0].shape.some(e=>e<0))throw new im("Negative dimension size caused by adding layer "+e.name+" with input shape ["+e.inboundNodes[0].inputTensors[0].shape+"]")}add(e){let t,n=e instanceof sT||e instanceof sx;if(n){if(1!==(t=e).outputs.length)throw new im("All layers in a Sequential model should have a single output tensor. For multi-output layers, use the functional API.");if(1!==t.inputs.length)throw new im("All layers in a Sequential model should have a single input tensor. For multi-input layers, use the functional API.")}if(0===this.outputs.length){if(0===e.inboundNodes.length){if(null==e.batchInputShape)throw new im("The first layer in a Sequential model must get an `inputShape` or `batchInputShape` argument.");let t=aQ({batchShape:e.batchInputShape,dtype:e.dtype,name:e.name+"_input"});e.apply(t)}if(n)this.outputs=t.outputs,this.inputs=t.inputs;else{if(1!==e.inboundNodes.length)throw new im(`A layer added to a Sequential model must not already be connected somewhere else. LayersModel received layer ${e.name} which has ${e.inboundNodes.length} pre-existing inbound connections.`);if(1!==e.inboundNodes[0].outputTensors.length)throw new im("All layers in a Sequential model should have a single output tensor. For multi-output layers, use the functional API.");this.checkShape(e),this.outputs=[e.inboundNodes[0].outputTensors[0]],this.inputs=function e(t,n,r){if((null==n||null!=r&&r>0)&&(n=t.sourceLayer,r=t.nodeIndex),0===n.inboundNodes.length)return[t];{let t=n.inboundNodes[r];if(0===t.inboundLayers.length)return t.inputTensors;{let n=[];for(let r=0;r<t.inboundLayers.length;r++)for(let i of e(t.inputTensors[r],t.inboundLayers[r],t.nodeIndices[r]))-1===n.indexOf(i)&&n.push(i);return n}}}(this.outputs[0])}this.inboundNodes=[],new aq({outboundLayer:this,inboundLayers:[],nodeIndices:[],tensorIndices:[],inputTensors:this.inputs,outputTensors:this.outputs,inputMasks:iO(null,this.inputs.length),outputMasks:[null],inputShapes:this.inputs.map(e=>e.shape),outputShapes:this.outputs[0].shape})}else{let t=e.apply(this.outputs[0]);if(Array.isArray(t))throw TypeError("All layers in a Sequential model should have a single output tensor. For multi-output layers, use the functional API.");this.checkShape(e),this.outputs=[t],this.inboundNodes[0].outputTensors=this.outputs,this.inboundNodes[0].outputShapes=[this.outputs[0].shape]}this.layers.push(e),this.built=!1}pop(){if(0===this.layers.length)throw TypeError("There are no layers in the model.");if(this.layers.pop(),0===this.layers.length)this.outputs=[],this.inboundNodes=[],this.outboundNodes=[];else{let e=this.layers.length-1;this.layers[e].outboundNodes=[],this.outputs=[this.layers[e].output],this.inboundNodes[0].outputTensors=this.outputs,this.inboundNodes[0].outputShapes=[this.outputs[0].shape]}}call(e,t){return null==this.model&&this.build(),this.model.call(e,t)}build(e){if(aP(e),0===this.inputs.length||0===this.outputs.length)throw TypeError("Sequential model cannot be built: model is empty. Add some layers first.");this.model=new sx({inputs:this.inputs,outputs:this.outputs[0],name:this.name+"_model"}),this.model.trainable=this.trainable,this.supportsMasking=this.model.supp
17ortsMasking,this.inputLayers=this.model.inputLayers,this.inputLayersNodeIndices=this.model.inputLayersNodeIndices,this.inputLayersTensorIndices=this.model.inputLayersTensorIndices,this.outputLayers=this.model.outputLayers,this.outputLayersNodeIndices=this.model.outputLayersNodeIndices,this.outputLayersTensorIndices=this.model.outputLayersTensorIndices,this.nodesByDepth=this.model.nodesByDepth,this.containerNodes=this.model.containerNodes,this.outputNames=this.model.outputNames,this.inputNames=this.model.inputNames,this.built=!0}countParams(){return this.built||this.build(),super.countParams()}summary(e,t,n=console.log){this.built||this.build(),super.summary(e,t,n)}setWeights(e){null==this.model&&this.build(),this.model.setWeights(e)}evaluate(e,t,n={}){if(!this.built)throw new ib("The model needs to be compiled before being used.");return this.model.evaluate(e,t,n)}async evaluateDataset(e,t){if(!this.built)throw new ib("The model needs to be compiled before being used.");return this.model.evaluateDataset(e,t)}predict(e,t={}){return null==this.model&&this.build(),this.model.predict(e,t)}predictOnBatch(e){return null==this.model&&this.build(),this.model.predictOnBatch(e)}compile(e){this.build(),this.model.compile(e),this.optimizer_=this.model.optimizer,this.isOptimizerOwned=this.model.isOptimizerOwned,this.loss=this.model.loss,this.metrics=this.model.metrics,this.metricsTensors=this.model.metricsTensors,this.metricsNames=this.model.metricsNames}get optimizer(){return null==this.model?void 0:this.model.optimizer}set optimizer(e){this.model.optimizer=e}async fit(e,t,n={}){if(!this.built)throw new ib("The model needs to be compiled before being used.");return this.model.fit(e,t,n)}async fitDataset(e,t){if(!this.built)throw new ib("The model needs to be compiled before being used.");return this.model.fitDataset(e,t)}async trainOnBatch(e,t){return this.model.trainOnBatch(e,t)}static fromConfig(e,t,n={},r=!1){let i,a={};if(t instanceof Array){if(null==t[0].className||"Merge"===t[0].className)throw new im("Legacy serialization format not supported yet.");i=t}else ep.Si.assert(null!=t.layers,()=>"When the config data for a Sequential model is not an Array, it must be an Object that contains the 'layers' field."),i=t.layers,delete t.layers,a=t;let o=new e(a);if(!(o instanceof sT))throw new iy("Sequential.fromConfig called on non-Sequential input: "+o);for(let e of i){let t=oC(e,void 0,r);r&&t.setFastWeightInitDuringBuild(!0),o.add(t)}return o}set stopTraining(e){if(null==this.model)throw new im("Cannot set the stopTraining property of a sequential model before it is compiled.");this.model.stopTraining=e}get stopTraining(){if(null==this.model)throw new im("Cannot get the stopTraining property of a sequential model before it is compiled.");return this.model.stopTraining}getConfig(){let e=[];for(let t of this.layers){let n={};n.className=t.getClassName(),n.config=t.getConfig(),e.push(n)}return{name:this.name,layers:e}}}function sw(e){return new sx(e)}function sj(e){return new sT(e)}function sF(e){return aQ(e)}function s_(e,t){oR.registerCallbackConstructor(e,t)}sT.className="Sequential",ep.Lh.registerClass(sT);class sE extends ep.Lh.Serializable{getConfig(){return{}}}class sR extends sE{apply(e,t=1){return function(e,t=1){if(1!==t)throw new iy(`Support for alpha values other than 1 (${t}) is not implemented yet.`);return ep.if(e)}(e,t)}}sR.className="elu",ep.Lh.registerClass(sR);class sD extends sE{apply(e){return ep.Jh(e)}}sD.className="selu",ep.Lh.registerClass(sD);class sC extends sE{apply(e){return ep.th(e)}}sC.className="relu",ep.Lh.registerClass(sC);class sA extends sE{apply(e){return Object(ep.Ei)(()=>ep.Bg(6,ep.th(e)))}}sA.className="relu6",ep.Lh.registerClass(sA);class sM extends sE{apply(e){return e}}sM.className="linear",ep.Lh.registerClass(sM);class s$ extends sE{apply(e){return ep.Ph(e)}}s$.className="sigmoid",ep.Lh.registerClass(s$);class sU extends sE{apply(e){return function(e){return Object(ep.Ei)(()=>{let t=ep.Ud(.5,ep.Gg(.2,e));return ep.ze(t,0,1)})}(e)}}sU.className="hardSigmoid",ep.Lh.registerClass(sU);class sP extends sE{apply(e){return ep.bi(e)}}sP.className="softplus",ep.Lh.registerClass(sP);class sB extends sE{apply(e){return function(e){return Object(ep.Ei)(()=>ep.df(e,ep.Ud(ep.Rd(e),1)))}(e)}}sB.className="softsign",ep.Lh.registerClass(sB);class sL extends sE{apply(e){return ep.ti(e)}}sL.className="tanh",ep.Lh.registerClass(sL);class sW extends sE{apply(e,t=-1){return ep.ai(e,t)}}sW.className="softmax",ep.Lh.registerClass(sW);class sz extends sE{apply(e,t=-1){return ep.ig(e,t)}}sz.className="logSoftmax",ep.Lh.registerClass(sz);class sG extends sE{apply(e){return Object(ep.Ei)(()=>ep.Ei(()=>{let t=Math.sqrt(2),n=ep.Gg(.5,ep.Ud(1,ep.qf(ep.df(e,t))));return ep.Gg(e,n)}))}}sG.className="gelu",ep.Lh.registerClass(sG);class sV extends sE{apply(e){return Object(ep.Ei)(()=>ep.Gg(.5,ep.Gg(e,ep.Ud(1,ep.ti(ep.Gg(ep.hi(ep.df(2,Math.PI)),ep.Ud(e,ep.Gg(.044715,ep.Yg(e,3)))))))))}}sV.className="gelu_new",ep.Lh.registerClass(sV);class sH extends sE{apply(e){return Object(ep.Ei)(()=>ep.Gg(e,ep.ti(ep.bi(e))))}}sH.className="mish",ep.Lh.registerClass(sH);class sq extends sE{apply(e,t=1){return Object(ep.Ei)(()=>ep.Gg(ep.Ph(ep.Gg(e,t)),e))}}function sK(e){return e.getClassName()}function sX(e,t={}){return i_(e,ep.Lh.SerializationMap.getMap().classNameMap,t,"activation")}function sY(e){if(null==e)return sX({className:"linear",config:{}});if("string"==typeof e){let t={};return t.className=e,t.config={},sX(t)}return e instanceof sE?e:sX(e)}function sQ(e){if(null!=e&&"object"!=typeof e)throw Error("Argument to L1L2 regularizer's constructor is expected to be an object, but received: "+e)}sq.className="swish",ep.Lh.registerClass(sq);class sJ extends ep.Lh.Serializable{}class sZ extends sJ{constructor(e){super(),sQ(e),this.l1=null==e||null==e.l1?.01:e.l1,this.l2=null==e||null==e.l2?.01:e.l2,this.hasL1=0!==this.l1,this.hasL2=0!==this.l2}apply(e){return Object(ep.Ei)(()=>{let t=Object(ep.aj)([1]);return this.hasL1&&(t=Object(ep.Ud)(t,Object(ep.qi)(ep.Gg(this.l1,Object(ep.Rd)(e))))),this.hasL2&&(t=Object(ep.Ud)(t,Object(ep.qi)(ep.Gg(this.l2,au(e))))),ep.wh(t,[])})}getConfig(){return{l1:this.l1,l2:this.l2}}static fromConfig(e,t){return new e({l1:t.l1,l2:t.l2})}}sZ.className="L1L2",ep.Lh.registerClass(sZ);let s0={l1l2:"L1L2"};function s1(e){return iF(e)}function s2(e,t={}){return i_(e,ep.Lh.SerializationMap.getMap().classNameMap,t,"regularizer")}function s3(e){return null==e?null:"string"==typeof e?s2({className:e in s0?s0[e]:e,config:{}}):e instanceof sJ?e:s2(e)}class s4 extends aX{constructor(e){super(null==e?{}:e),this.supportsMasking=!0,null!=e&&(this.maxValue=e.maxValue)}call(e,t){e=aU(e);let n=Object(ep.th)(e);return null!=this.maxValue&&(n=Object(ep.ze)(n,0,this.maxValue)),n}computeOutputShape(e){return e}getConfig(){let e={maxValue:this.maxValue};return Object.assign(e,super.getConfig()),e}}s4.className="ReLU",ep.Lh.registerClass(s4);class s6 extends aX{constructor(e){super(null==e?{}:e),this.DEFAULT_ALPHA=.3,null==e&&(e={}),this.alpha=null==e.alpha?this.DEFAULT_ALPHA:e.alpha}call(e,t){let n=aU(e);return Object(ep.Zf)(n,this.alpha)}computeOutputShape(e){return e}getConfig(){let e={alpha:this.alpha};return Object.assign(e,super.getConfig()),e}}s6.className="LeakyReLU",ep.Lh.registerClass(s6);class s5 extends aX{constructor(e){if(super(null==e?{}:e),this.DEFAULT_ALPHA_INITIALIZER="zeros",null==e&&(e={}),this.supportsMasking=!0,this.alphaInitializer=aA(e.alphaInitializer||this.DEFAULT_ALPHA_INITIALIZER),this.alphaRegularizer=s3(e.alphaRegularizer),this.alphaConstraint=oi(e.alphaConstraint),null==e.sharedAxes)this.sharedAxes=null;else if(Array.isArray(e.sharedAxes))this.sharedAxes=e.sharedAxes;else{if("number"!=typeof e.sharedAxes)throw new im("Expected sharedAxes to be a number or an array of numbers, but got "+e.sharedAxes);this.sharedAxes=[e.sharedAxes]}}build(e){let t=(e=aP(e)).slice(1);if(null!=this.sharedAxes)for(let e of this.sharedAxes)t[e-1]=1;this.alpha=this.addWeight("alpha",t,"float32",this.alphaInitializer,this.alphaRegularizer,!0,this.alphaConstraint);let n={};if(null!=this.sharedAxes)for(let t=1;t<e.length;++t)n[t]=e[t];
17this.inputSpec=[new aG({ndim:e.length,axes:n})],this.built=!0}call(e,t){return e=aU(e),Object(ep.Zg)(e,this.alpha.read())}getConfig(){let e={alphaInitializer:aC(this.alphaInitializer),alphaRegularizer:s1(this.alphaRegularizer),alphaConstraint:on(this.alphaConstraint),sharedAxes:this.sharedAxes};return Object.assign(e,super.getConfig()),e}}s5.className="PReLU",ep.Lh.registerClass(s5);class s8 extends aX{constructor(e){if(super(null==e?{}:e),this.DEFAULT_ALPHA=1,null==e&&(e={}),null!=e.alpha&&e.alpha!==this.DEFAULT_ALPHA)throw new iy(`Non-default alpha value (${e.alpha}) is not supported by the ELU layer yet.`);this.alpha=null==e.alpha?this.DEFAULT_ALPHA:e.alpha}call(e,t){let n=aU(e);return Object(ep.if)(n)}computeOutputShape(e){return e}getConfig(){let e={alpha:this.alpha};return Object.assign(e,super.getConfig()),e}}s8.className="ELU",ep.Lh.registerClass(s8);class s7 extends aX{constructor(e){super(null==e?{}:e),this.DEFAULT_THETA=1,null==e&&(e={}),this.theta=null==e.theta?this.DEFAULT_THETA:e.theta}call(e,t){let n=aU(e);return Object(ep.Gg)(n,Object(ep.xe)(Object(ep.Mf)(n,this.theta),"float32"))}computeOutputShape(e){return e}getConfig(){let e={theta:this.theta};return Object.assign(e,super.getConfig()),e}}s7.className="ThresholdedReLU",ep.Lh.registerClass(s7);class s9 extends aX{constructor(e){super(null==e?{}:e),this.DEFAULT_AXIS=1,null==e&&(e={}),this.softmax=(new sW).apply,this.axis=null==e.axis?this.DEFAULT_AXIS:e.axis}call(e,t){return Object(ep.Ei)(()=>{let n=aU(e),r=t.mask;if(null!=r){let e=Object(ep.Gg)(Object(ep.pi)(Object(ep.Og)(n.shape),Object(ep.xe)(r,n.dtype)),Object(ep.Fh)(-1e9));n=Object(ep.Ud)(n,e)}return this.axis instanceof Array?this.axis.length>1?Object(ep.sf)(Object(ep.pi)(n,Object(ep.jg)(n,this.axis,!0))):this.softmax(n,this.axis[0]):this.softmax(n,this.axis)})}computeOutputShape(e){return e}getConfig(){let e={axis:this.axis};return Object.assign(e,super.getConfig()),e}}function le(e,t,n){var r;if("number"==typeof e)return iO(e,t);if(e.length!==t)throw new im(`The ${n} argument must be an integer or tuple of ${t} integers. Received: ${e.length} elements.`);for(let i=0;i<t;++i){let a=e[i];if((r=a)!==parseInt(r.toString(),10))throw new im(`The ${n} argument must be an integer or tuple of ${t} integers. Received: ${JSON.stringify(e)} including a non-integer number `+a)}return e}function lt(e,t,n,r,i=1){return null==e?e:Math.floor((("same"===n?e:e-(t+(t-1)*(i-1))+1)+r-1)/r)}function ln(e,t,n,r){if(null==e)return null;if("valid"===r)e=e*t+i6([n-t,0]);else{if("same"!==r)throw new im(`Unsupport padding mode: ${r}.`);e*=t}return e}function lr(e,t){return Object(ep.Ei)(()=>(iK(t),"channelsFirst"===t?ep.Ji(e,[0,2,3,1]):e))}function li(e,t){return Object(ep.Ei)(()=>(iK(t),"channelsFirst"===t?ep.Ji(e,[0,2,3,4,1]):e))}function la(e,t,n,r=1,i="valid",a,o=1){return Object(ep.Ei)(()=>{if(null==a&&(a="channelsLast"),iK(a),3!==e.shape.length)throw new im("The input of a conv1dWithBias operation should be 3, but is "+e.shape.length+" instead.");if(3!==t.shape.length)throw new im("The kernel for a conv1dWithBias operation should be 3, but is "+t.shape.length+" instead");if(null!=n&&1!==n.shape.length)throw new im("The bias for a conv1dWithBias operation should be 1, but is "+n.shape.length+" instead");if("channelsFirst"===a&&(e=ep.Ji(e,[0,2,1])),"causal"===i)throw new iy("The support for CAUSAL padding mode in conv1dWithBias is not implemented yet.");let s=ep.He(e,t,r,"same"===i?"same":"valid","NWC",o);return null!=n&&(s=ap(s,n)),s})}function lo(e,t,n,r=[1,1],i="valid",a,o,s=null){return Object(ep.Ei)(()=>{if(null==a&&(a="channelsLast"),iK(a),3!==e.rank&&4!==e.rank)throw new im(`conv2dWithBiasActivation expects input to be of rank 3 or 4, but received ${e.rank}.`);if(3!==t.rank&&4!==t.rank)throw new im(`conv2dWithBiasActivation expects kernel to be of rank 3 or 4, but received ${e.rank}.`);let l=lr(e,a);if("causal"===i)throw new iy("The support for CAUSAL padding mode in conv1dWithBias is not implemented yet.");return l=ep.Cf.conv2d({x:l,filter:t,strides:r,pad:"same"===i?"same":"valid",dilations:o,dataFormat:"NHWC",bias:n,activation:s}),"channelsFirst"===a&&(l=ep.Ji(l,[0,3,1,2])),l})}
vendor: 6,424 bytes, line 17
17function ls(e,t,n,r=[1,1,1],i="valid",a,o){return Object(ep.Ei)(()=>{if(null==a&&(a="channelsLast"),iK(a),4!==e.rank&&5!==e.rank)throw new im("conv3dWithBias expects input to be of rank 4 or 5, but received "+e.rank+".");if(4!==t.rank&&5!==t.rank)throw new im("conv3dWithBias expects kernel to be of rank 4 or 5, but received "+e.rank+".");let s=li(e,a);if("causal"===i)throw new iy("The support for CAUSAL padding mode in conv3dWithBias is not implemented yet.");return s=ep.Ke(s,t,r,"same"===i?"same":"valid","NDHWC",o),null!=n&&(s=ap(s,n)),"channelsFirst"===a&&(s=ep.Ji(s,[0,4,1,2,3])),s})}s9.className="Softmax",ep.Lh.registerClass(s9);class ll extends aX{constructor(e,t){if(super(t),this.bias=null,this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_BIAS_INITIALIZER="zeros",ll.verifyArgs(t),this.rank=e,iM(this.rank,"rank"),1!==this.rank&&2!==this.rank&&3!==this.rank)throw new iy(`Convolution layer for rank other than 1, 2, or 3 (${this.rank}) is not implemented yet.`);if(this.kernelSize=le(t.kernelSize,e,"kernelSize"),this.strides=le(null==t.strides?1:t.strides,e,"strides"),this.padding=null==t.padding?"valid":t.padding,iX(this.padding),this.dataFormat=null==t.dataFormat?"channelsLast":t.dataFormat,iK(this.dataFormat),this.activation=sY(t.activation),this.useBias=null==t.useBias||t.useBias,this.biasInitializer=aA(t.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.biasConstraint=oi(t.biasConstraint),this.biasRegularizer=s3(t.biasRegularizer),this.activityRegularizer=s3(t.activityRegularizer),this.dilationRate=le(null==t.dilationRate?1:t.dilationRate,e,"dilationRate"),1===this.rank&&Array.isArray(this.dilationRate)&&1!==this.dilationRate.length)throw new im("dilationRate must be a number or an array of a single number for 1D convolution, but received "+JSON.stringify(this.dilationRate));if(2===this.rank){if("number"==typeof this.dilationRate)this.dilationRate=[this.dilationRate,this.dilationRate];else if(2!==this.dilationRate.length)throw new im("dilationRate must be a number or array of two numbers for 2D convolution, but received "+JSON.stringify(this.dilationRate))}else if(3===this.rank){if("number"==typeof this.dilationRate)this.dilationRate=[this.dilationRate,this.dilationRate,this.dilationRate];else if(3!==this.dilationRate.length)throw new im("dilationRate must be a number or array of three numbers for 3D convolution, but received "+JSON.stringify(this.dilationRate))}}static verifyArgs(e){if(ix("kernelSize"in e,"required key 'kernelSize' not in config"),"number"!=typeof e.kernelSize&&!iA(e.kernelSize,"number",1,3))throw new im(`BaseConv expects config.kernelSize to be number or number[] with length 1, 2, or 3, but received ${JSON.stringify(e.kernelSize)}.`)}getConfig(){let e={kernelSize:this.kernelSize,strides:this.strides,padding:this.padding,dataFormat:this.dataFormat,dilationRate:this.dilationRate,activation:sK(this.activation),useBias:this.useBias,biasInitializer:aC(this.biasInitializer),biasRegularizer:s1(this.biasRegularizer),activityRegularizer:s1(this.activityRegularizer),biasConstraint:on(this.biasConstraint)};return Object.assign(e,super.getConfig()),e}}class lu extends ll{constructor(e,t){super(e,t),this.kernel=null,lu.verifyArgs(t),this.filters=t.filters,iM(this.filters,"filters"),this.kernelInitializer=aA(t.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.kernelConstraint=oi(t.kernelConstraint),this.kernelRegularizer=s3(t.kernelRegularizer)}build(e){e=aP(e);let t="channelsFirst"===this.dataFormat?1:e.length-1;if(null==e[t])throw new im("The channel dimension of the input should be defined. Found "+e[t]);let n=e[t],r=this.kernelSize.concat([n,this.filters]);this.kernel=this.addWeight("kernel",r,null,this.kernelInitializer,this.kernelRegularizer,!0,this.kernelConstraint),this.useBias&&(this.bias=this.addWeight("bias",[this.filters],null,this.biasInitializer,this.biasRegularizer,!0,this.biasConstraint)),this.inputSpec=[{ndim:this.rank+2,axes:{[t]:n}}],this.built=!0}call(e,t){return Object(ep.Ei)(()=>{let t;e=aU(e);let n=null==this.bias?null:this.bias.read(),r=i$(this.activation.getClassName());if(null!=r&&2===this.rank)t=lo(e,this.kernel.read(),n,this.strides,this.padding,this.dataFormat,this.dilationRate,r);else{if(1===this.rank)t=la(e,this.kernel.read(),n,this.strides[0],this.padding,this.dataFormat,this.dilationRate[0]);else if(2===this.rank)t=lo(e,this.kernel.read(),n,this.strides,this.padding,this.dataFormat,this.dilationRate);else{if(3!==this.rank)throw new iy("convolutions greater than 3D are not implemented yet.");t=ls(e,this.kernel.read(),n,this.strides,this.padding,this.dataFormat,this.dilationRate)}null!=this.activation&&(t=this.activation.apply(t))}return t})}computeOutputShape(e){e=aP(e);let t=[],n="channelsLast"===this.dataFormat?e.slice(1,e.length-1):e.slice(2);for(let e=0;e<n.length;++e){let r=lt(n[e],this.kernelSize[e],this.padding,this.strides[e],"number"==typeof this.dilationRate?this.dilationRate:this.dilationRate[e]);t.push(r)}let r=[e[0]];return"channelsLast"===this.dataFormat?(r=r.concat(t)).push(this.filters):(r.push(this.filters),r=r.concat(t)),r}getConfig(){let e={filters:this.filters,kernelInitializer:aC(this.kernelInitializer),kernelRegularizer:s1(this.kernelRegularizer),kernelConstraint:on(this.kernelConstraint)};return Object.assign(e,super.getConfig()),e}static verifyArgs(e){if(!("filters"in e)||"number"!=typeof e.filters||e.filters<1)throw new im("Convolution layer expected config.filters to be a 'number' > 0 but got "+JSON.stringify(e.filters))}}class lc extends lu{constructor(e){super(2,e),lc.verifyArgs(e)}getConfig(){let e=super.getConfig();return delete e.rank,e}static verifyArgs(e){if("number"!=typeof e.kernelSize&&!iA(e.kernelSize,"number",1,2))throw new im(`Conv2D expects config.kernelSize to be number or number[] with length 1 or 2, but received ${JSON.stringify(e.kernelSize)}.`)}}lc.className="Conv2D",ep.Lh.registerClass(lc);class lp extends lu{constructor(e){super(3,e),lp.verifyArgs(e)}getConfig(){let e=super.getConfig();return delete e.rank,e}static verifyArgs(e){if("number"!=typeof e.kernelSize&&(!Array.isArray(e.kernelSize)||1!==e.kernelSize.length&&3!==e.kernelSize.length))throw new im(`Conv3D expects config.kernelSize to be number or [number, number, number], but received ${JSON.stringify(e.kernelSize)}.`)}}lp.className="Conv3D",ep.Lh.registerClass(lp);class ld extends lc{constructor(e){if(super(e),this.inputSpec=[new aG({ndim
17:4})],"same"!==this.padding&&"valid"!==this.padding)throw new im("Conv2DTranspose currently supports only padding modes 'same' and 'valid', but received padding mode "+this.padding)}build(e){if(4!==(e=aP(e)).length)throw new im("Input should have rank 4; Received input shape: "+JSON.stringify(e));let t="channelsFirst"===this.dataFormat?1:e.length-1;if(null==e[t])throw new im("The channel dimension of the inputs should be defined. Found `None`.");let n=e[t],r=this.kernelSize.concat([this.filters,n]);this.kernel=this.addWeight("kernel",r,"float32",this.kernelInitializer,this.kernelRegularizer,!0,this.kernelConstraint),this.useBias&&(this.bias=this.addWeight("bias",[this.filters],"float32",this.biasInitializer,this.biasRegularizer,!0,this.biasConstraint)),this.inputSpec=[new aG({ndim:4,axes:{[t]:n}})],this.built=!0}call(e,t){return ep.Ei(()=>{let t,n,r=aU(e);if(4!==r.shape.length)throw new im("Conv2DTranspose.call() expects input tensor to be rank-4, but received a tensor of rank-"+r.shape.length);let i=r.shape,a=i[0];"channelsFirst"===this.dataFormat?(t=2,n=3):(t=1,n=2);let o=i[t],s=i[n],l=this.kernelSize[0],u=this.kernelSize[1],c=this.strides[0],p=this.strides[1],d=[a,ln(o,c,l,this.padding),ln(s,p,u,this.padding),this.filters];"channelsLast"!==this.dataFormat&&(r=ep.Ji(r,[0,2,3,1]));let f=ep.Je(r,this.kernel.read(),d,this.strides,this.padding);return"channelsLast"!==this.dataFormat&&(f=ep.Ji(f,[0,3,1,2])),null!=this.bias&&(f=ap(f,this.bias.read(),this.dataFormat)),null!=this.activation&&(f=this.activation.apply(f)),f})}computeOutputShape(e){let t,n,r,i=(e=aP(e)).slice();"channelsFirst"===this.dataFormat?(t=1,n=2,r=3):(t=3,n=1,r=2);let a=this.kernelSize[0],o=this.kernelSize[1],s=this.strides[0],l=this.strides[1];return i[t]=this.filters,i[n]=ln(i[n],s,a,this.padding),i[r]=ln(i[r],l,o,this.padding),i}getConfig(){let e=super.getConfig();return delete e.dilationRate,e}}ld.className="Conv2DTranspose",ep.Lh.registerClass(ld);class lf extends lp{constructor(e){if(super(e),this.inputSpec=[new aG({ndim:5})],"same"!==this.padding&&"valid"!==this.padding)throw new im("Conv3DTranspose currently supports only padding modes 'same' and 'valid', but received padding mode "+this.padding)}build(e){if(5!==(e=aP(e)).length)throw new im("Input should have rank 5; Received input shape: "+JSON.stringify(e));let t="channelsFirst"===this.dataFormat?1:e.length-1;if(null==e[t])throw new im("The channel dimension of the inputs should be defined. Found `None`.");let n=e[t],r=this.kernelSize.concat([this.filters,n]);this.kernel=this.addWeight("kernel",r,"float32",this.kernelInitializer,this.kernelRegularizer,!0,this.kernelConstraint),this.useBias&&(this.bias=this.addWeight("bias",[this.filters],"float32",this.biasInitializer,this.biasRegularizer,!0,this.biasConstraint)),this.inputSpec=[new aG({ndim:5,axes:{[t]:n}})],this.built=!0}call(e,t){return ep.Ei(()=>{let t,n,r,i=aU(e);if(5!==i.shape.length)throw new im("Conv3DTranspose.call() expects input tensor to be rank-4, but received a tensor of rank-"+i.shape.length);let a=i.shape,o=a[0];"channelsFirst"===this.dataFormat?(r=2,t=3,n=4):(r=1,t=2,n=3);let s=a[r],l=a[t],u=a[n],c=this.kernelSize[0],p=this.kernelSize[1],d=this.kernelSize[2],f=this.strides[0],h=this.strides[1],g=this.strides[2],b=[o,ln(s,f,c,this.padding),ln(l,h,p,this.padding),ln(u,g,d,this.padding),this.filters];"channelsLast"!==this.dataFormat&&(i=ep.Ji(i,[0,2,3,4,1]));let m=ep.Le(i,this.kernel.read(),b,this.strides,this.padding);return"channelsLast"!==this.dataFormat&&(m=ep.Ji(m,[0,4,1,2,3])),null!==this.bias&&(m=ap(m,this.bias.read(),this.dataFormat)),null!==this.activation&&(m=this.activation.apply(m)),m})}computeOutputShape(e){let t,n,r,i,a=(e=aP(e)).slice();"channelsFirst"===this.dataFormat?(t=1,n=2,r=3,i=4):(t=4,n=1,r=2,i=3);let o=this.kernelSize[0],s=this.kernelSize[1],l=this.kernelSize[2],u=this.strides[0],c=this.strides[1],p=this.strides[2];return a[t]=this.filters,a[n]=ln(a[n],u,o,this.padding),a[r]=ln(a[r],c,s,this.padding),a[i]=ln(a[i],p,l,this.padding),a}getConfig(){let e=super.getConfig();return delete e.dilationRate,e}}lf.className="Conv3DTranspose",ep.Lh.registerClass(lf);class lh extends lu{constructor(e,t){if(super(e,t),this.DEFAULT_DEPTHWISE_INITIALIZER="glorotUniform",this.DEFAULT_POINTWISE_INITIALIZER="glorotUniform",this.depthwiseKernel=null,this.pointwiseKernel=null,null==t.filters)throw new im("The `filters` configuration field is required by SeparableConv, but is unspecified.");if(null!=t.kernelInitializer||null!=t.kernelRegularizer||null!=t.kernelConstraint)throw new im("Fields kernelInitializer, kernelRegularizer and kernelConstraint are invalid for SeparableConv2D. Use depthwiseInitializer, depthwiseRegularizer, depthwiseConstraint, pointwiseInitializer, pointwiseRegularizer and pointwiseConstraint instead.");if(null!=t.padding&&"same"!==t.padding&&"valid"!==t.padding)throw new im(`SeparableConv${this.rank}D supports only padding modes: 'same' and 'valid', but received `+JSON.stringify(t.padding));this.depthMultiplier=null==t.depthMultiplier?1:t.depthMultiplier,this.depthwiseInitializer=aA(t.depthwiseInitializer||this.DEFAULT_DEPTHWISE_INITIALIZER),this.depthwiseRegularizer=s3(t.depthwiseRegularizer),this.depthwiseConstraint=oi(t.depthwiseConstraint),this.pointwiseInitializer=aA(t.depthwiseInitializer||this.DEFAULT_POINTWISE_INITIALIZER),this.pointwiseRegularizer=s3(t.pointwiseRegularizer),this.pointwiseConstraint=oi(t.pointwiseConstraint)}build(e){if((e=aP(e)).length<this.rank+2)throw new im(`Inputs to SeparableConv${this.rank}D should have rank `+(this.rank+2)+", but received input shape: "+JSON.stringify(e));let t="channelsFirst"===this.dataFormat?1:e.length-1;if(null==e[t]||e[t]<0)throw new im("The channel dimension of the inputs should be defined, but found "+JSON.stringify(e[t]));let n=e[t],r=this.kernelSize.concat([n,this.depthMultiplier]),i=[];for(let e=0;e<this.rank;++e)i.push(1);i.push(n*this.depthMultiplier,this.filters),this.depthwiseKernel=this.addWeight("depthwise_kernel",r,"float32",this.depthwiseInitializer,this.depthwiseRegularizer,!0,this.depthwiseConstraint),this.pointwiseKernel=this.addWeight("pointwise_kernel",i,"float32",this.pointwiseInitializer,this.pointwiseRegularizer,!0,this.pointwiseConstraint),this.useBias?this.bias=this.addWeight("bias",[this.filters],"float32",this.biasInitializer,this.biasRegularizer,!0,this.biasConstraint):this.bias=null,this.inputSpec=[new aG({ndim
vendor: 6,424 bytes, line 17
17:this.rank+2,axes:{[t]:n}})],this.built=!0}call(e,t){return Object(ep.Ei)(()=>{let t;if(e=aU(e),1===this.rank)throw new iy("1D separable convolution is not implemented yet.");return 2===this.rank&&("channelsFirst"===this.dataFormat&&(e=ep.Ji(e,[0,2,3,1])),t=ep.Kh(e,this.depthwiseKernel.read(),this.pointwiseKernel.read(),this.strides,this.padding,this.dilationRate,"NHWC")),this.useBias&&(t=ap(t,this.bias.read(),this.dataFormat)),null!=this.activation&&(t=this.activation.apply(t)),"channelsFirst"===this.dataFormat&&(t=ep.Ji(t,[0,3,1,2])),t})}getConfig(){let e=super.getConfig();return delete e.rank,delete e.kernelInitializer,delete e.kernelRegularizer,delete e.kernelConstraint,e.depthwiseInitializer=aC(this.depthwiseInitializer),e.pointwiseInitializer=aC(this.pointwiseInitializer),e.depthwiseRegularizer=s1(this.depthwiseRegularizer),e.pointwiseRegularizer=s1(this.pointwiseRegularizer),e.depthwiseConstraint=on(this.depthwiseConstraint),e.pointwiseConstraint=on(this.pointwiseConstraint),e}}lh.className="SeparableConv";class lg extends lh{constructor(e){super(2,e)}}lg.className="SeparableConv2D",ep.Lh.registerClass(lg);class lb extends lu{constructor(e){super(1,e),lb.verifyArgs(e),this.inputSpec=[{ndim:3}]}getConfig(){let e=super.getConfig();return delete e.rank,delete e.dataFormat,e}static verifyArgs(e){if("number"!=typeof e.kernelSize&&!iA(e.kernelSize,"number",1,1))throw new im(`Conv1D expects config.kernelSize to be number or number[] with length 1, but received ${JSON.stringify(e.kernelSize)}.`)}}lb.className="Conv1D",ep.Lh.registerClass(lb);class lm extends aX{constructor(e){super(e),"number"==typeof e.cropping?this.cropping=[[e.cropping,e.cropping],[e.cropping,e.cropping]]:"number"==typeof e.cropping[0]?this.cropping=[[e.cropping[0],e.cropping[0]],[e.cropping[1],e.cropping[1]]]:this.cropping=e.cropping,this.dataFormat=void 0===e.dataFormat?"channelsLast":e.dataFormat,this.inputSpec=[{ndim:4}]}computeOutputShape(e){return"channelsFirst"===this.dataFormat?[e[0],e[1],e[2]-this.cropping[0][0]-this.cropping[0][1],e[3]-this.cropping[1][0]-this.cropping[1][1]]:[e[0],e[1]-this.cropping[0][0]-this.cropping[0][1],e[2]-this.cropping[1][0]-this.cropping[1][1],e[3]]}call(e,t){return Object(ep.Ei)(()=>{if(e=aU(e),"channelsLast"===this.dataFormat){let t=an(e,this.cropping[0][0],e.shape[1]-this.cropping[0][0]-this.cropping[0][1],2);return an(t,this.cropping[1][0],e.shape[2]-this.cropping[1][1]-this.cropping[1][0],3)}{let t=an(e,this.cropping[0][0],e.shape[2]-this.cropping[0][0]-this.cropping[0][1],3);return an(t,this.cropping[1][0],e.shape[3]-this.cropping[1][1]-this.cropping[1][0],4)}})}getConfig(){let e={cropping:this.cropping,dataFormat:this.dataFormat};return Object.assign(e,super.getConfig()),e}}lm.className="Cropping2D",ep.Lh.registerClass(lm);class ly extends aX{constructor(e){super(e),this.DEFAULT_SIZE=[2,2],this.inputSpec=[{ndim:4}],this.size=null==e.size?this.DEFAULT_SIZE:e.size,this.dataFormat=null==e.dataFormat?"channelsLast":e.dataFormat,iK(this.dataFormat),this.interpolation=null==e.interpolation?"nearest":e.interpolation,iC(iz,"InterpolationFormat",this.interpolation)}computeOutputShape(e){if("channelsFirst"===this.dataFormat){let t=null==e[2]?null:this.size[0]*e[2],n=null==e[3]?null:this.size[1]*e[3];return[e[0],e[1],t,n]}{let t=null==e[1]?null:this.size[0]*e[1],n=null==e[2]?null:this.size[1]*e[2];return[e[0],t,n,e[3]]}}call(e,t){return ep.Ei(()=>{let t=aU(e),n=t.shape;if("channelsFirst"===this.dataFormat){t=ep.Ji(t,[0,2,3,1]);let e=this.size[0]*n[2],r=this.size[1]*n[3],i="nearest"===this.interpolation?ep.Qf.resizeNearestNeighbor(t,[e,r]):ep.Qf.resizeBilinear(t,[e,r]);return ep.Ji(i,[0,3,1,2])}{let e=this.size[0]*n[1],r=this.size[1]*n[2];return"nearest"===this.interpolation?ep.Qf.resizeNearestNeighbor(t,[e,r]):ep.Qf.resizeBilinear(t,[e,r])}})}getConfig(){let e={size:this.size,dataFormat:this.dataFormat,interpolation:this.interpolation};return Object.assign(e,super.getConfig()),e}}ly.className="UpSampling2D",ep.Lh.registerClass(ly);class lS extends ll{constructor(e){super(2,e),this.depthwiseKernel=null,this.depthMultiplier=null==e.depthMultiplier?1:e.depthMultiplier,this.depthwiseInitializer=aA(e.depthwiseInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.depthwiseConstraint=oi(e.depthwiseConstraint),this.depthwiseRegularizer=s3(e.depthwiseRegularizer)}build(e){if((e=aP(e)).length<4)throw new im(`Inputs to DepthwiseConv2D should have rank 4. Received input shape: ${JSON.stringify(e)}.`);let t="channelsFirst"===this.dataFormat?1:3;if(null==e[t]||e[t]<0)throw new im(`The channel dimension of the inputs to DepthwiseConv2D should be defined, but is not (${e[t]}).`);let n=e[t],r=[this.kernelSize[0],this.kernelSize[1],n,this.depthMultiplier];this.depthwiseKernel=this.addWeight("depthwise_kernel",r,null,this.depthwiseInitializer,this.depthwiseRegularizer,!0,this.depthwiseConstraint),this.useBias?this.bias=this.addWeight("bias",[n*this.depthMultiplier],null,this.biasInitializer,this.biasRegularizer,!0,this.biasConstraint):this.bias=null,this.built=!0}call(e,t){return Object(ep.Ei)(()=>{let t=function(e,t,n=[1,1],r="valid",i,a){return Object(ep.Ei)(()=>{null==i&&(i="channelsLast"),iK(i);let a=lr(e,i);if(4!==e.rank)throw new im("Input for depthwiseConv2d is required to be 4-D, but is instead "+e.rank+"-D");if(4!==t.rank)throw new im("depthwiseKernel is required to be 4-D, but is instead "+t.rank+"-D");return a=ep.We(a,t,n,"same"===r?"same":"valid","NHWC",null),"channelsFirst"===i&&(a=ep.Ji(a,[0,3,1,2])),a})}(e=aU(e),this.depthwiseKernel.read(),this.strides,this.padding,this.dataFormat,0);return this.useBias&&(t=ap(t,this.bias.read(),this.dataFormat)),null!=this.activation&&(t=this.activation.apply(t)),t})}computeOutputShape(e){e=aP(e);let t="channelsFirst"===this.dataFormat?e[2]:e[1],n="channelsFirst"===this.dataFormat?e[3]:e[2],r="channelsFirst"===this.dataFormat?e[1]*this.depthMultiplier:e[3]*this.depthMultiplier,i=lt(t,this.kernelSize[0],this.padding,this.strides[0]),a=lt(n,this.kernelSize[1],this.padding,this.strides[1]);return"channelsFirst"===this.dataFormat?[e[0],r,i,a]:[e[0],i,a,r]}getConfig(){let e=super.getConfig();return e.depthMultiplier=this.depthMultiplier,e.depthwiseInitializer=aC(this.depthwiseInitializer),e.depthwiseRegularizer=s1(this.depthwiseRegularizer),e.depthwiseConstraint=on(this.depthwiseRegularizer),e}}function lv(e,t,n,r){if(Array.isArray(e)){if(null!=t||null!=n)throw new im("When input
17s is an array, neither initialState or constants should be provided");null!=r&&(n=e.slice(e.length-r,e.length),e=e.slice(0,e.length-r)),e.length>1&&(t=e.slice(1,e.length)),e=e[0]}function i(e){return null==e||Array.isArray(e)?e:[e]}return{inputs:e,initialState:t=i(t),constants:n=i(n)}}function lO(e,t,n,r=!1,i,a,o=!1,s=!1){return ep.Ei(()=>{let l,u,c=t.shape.length;if(c<3)throw new im(`Input should be at least 3D, but is ${c}D.`);let p=[1,0].concat(i5(2,c));if(t=ep.Ji(t,p),null!=a)throw new iy("The rnn() functoin of the deeplearn.js backend does not support constants yet.");o&&console.warn("Backend rnn(): the unroll = true option is not applicable to the imperative deeplearn.js backend."),null!=i&&((i=ep.xe(ep.xe(i,"bool"),"float32")).rank===c-1&&(i=ep.tf(i,-1)),i=ep.Ji(i,p)),r&&(t=ep.xh(t,0),null!=i&&(i=ep.xh(i,0)));let d=[],f,h=n,g=t.shape[0],b=ep.Pi(t);null!=i&&(l=ep.Pi(i));for(let t=0;t<g;++t){let n=b[t],r=ep.Ei(()=>e(n,h));if(null==i)f=r[0],h=r[1];else{let e=ep.Ei(()=>{let e=l[t],n=ep.pi(ep.Pg(e),e);return{output:ep.Ud(ep.Gg(r[0],e),ep.Gg(h[0],n)),newStates:h.map((t,i)=>ep.Ud(ep.Gg(r[1][i],e),ep.Gg(t,n)))}});f=e.output,h=e.newStates}s&&d.push(f)}if(s){let e=1;u=ep.li(d,e)}return[f,u,h]})}lS.className="DepthwiseConv2D",ep.Lh.registerClass(lS);class lx extends aX{constructor(e){let t;if(super(e),null==e.cell)throw new im("cell property is missing for the constructor of RNN.");if(null==(t=Array.isArray(e.cell)?new l_({cells:e.cell}):e.cell).stateSize)throw new im("The RNN cell should have an attribute `stateSize` (tuple of integers, one integer per RNN state).");this.cell=t,this.returnSequences=null!=e.returnSequences&&e.returnSequences,this.returnState=null!=e.returnState&&e.returnState,this.goBackwards=null!=e.goBackwards&&e.goBackwards,this._stateful=null!=e.stateful&&e.stateful,this.unroll=null!=e.unroll&&e.unroll,this.supportsMasking=!0,this.inputSpec=[new aG({ndim:3})],this.stateSpec=null,this.states_=null,this.numConstants=null,this.keptStates=[]}getStates(){return null==this.states_?i5(0,Array.isArray(this.cell.stateSize)?this.cell.stateSize.length:1).map(e=>null):this.states_}setStates(e){this.states_=e}computeOutputShape(e){let t;aM(e)&&(e=e[0]);let n=this.cell.stateSize;Array.isArray(n)||(n=[n]);let r=n[0];if(t=this.returnSequences?[e[0],e[1],r]:[e[0],r],this.returnState){let r=[];for(let t of n)r.push([e[0],t]);return[t].concat(r)}return t}computeMask(e,t){return ep.Ei(()=>{Array.isArray(t)&&(t=t[0]);let e=this.returnSequences?t:null;return this.returnState?[e].concat(this.states.map(e=>null)):e})}get states(){if(null==this.states_){let e=Array.isArray(this.cell.stateSize)?this.cell.stateSize.length:1,t=[];for(let n=0;n<e;++n)t.push(null);return t}return this.states_}set states(e){this.states_=e}build(e){let t;if(null!=this.numConstants)throw new iy("Constants support is not implemented in RNN yet.");aM(e)&&(e=e[0]);let n=this.stateful?e[0]:null,r=e.slice(2);this.inputSpec[0]=new aG({shape:[n,null,...r]});let i=[e[0]].concat(e.slice(2));if(this.cell.build(i),t=Array.isArray(this.cell.stateSize)?this.cell.stateSize:[this.cell.stateSize],null!=this.stateSpec){if(!ep.Si.arraysEqual(this.stateSpec.map(e=>e.shape[e.shape.length-1]),t))throw new im(`An initialState was passed that is not compatible with cell.stateSize. Received stateSpec=${this.stateSpec}; However cell.stateSize is `+this.cell.stateSize)}else this.stateSpec=t.map(e=>new aG({shape:[null,e]}));this.stateful&&this.resetStates()}resetStates(e,t=!1){Object(ep.Ei)(()=>{if(!this.stateful)throw new ig("Cannot call resetStates() on an RNN Layer that is not stateful.");let n=this.inputSpec[0].shape[0];if(null==n)throw new im("If an RNN is stateful, it needs to know its batch size. Specify the batch size of your input tensors: \n- If using a Sequential model, specify the batch size by passing a `batchInputShape` option to your first layer.\n- If using the functional API, specify the batch size by passing a `batchShape` option to your Input layer.");if(null==this.states_)Array.isArray(this.cell.stateSize)?this.states_=this.cell.stateSize.map(e=>ep.aj([n,e])):this.states_=[ep.aj([n,this.cell.stateSize])];else if(null==e)ep.bf(this.states_),null!=this.keptStates&&(ep.bf(this.keptStates),this.keptStates=[]),Array.isArray(this.cell.stateSize)?this.states_=this.cell.stateSize.map(e=>ep.aj([n,e])):this.states_[0]=ep.aj([n,this.cell.stateSize]);else{if(Array.isArray(e)||(e=[e]),e.length!==this.states_.length)throw new im(`Layer ${this.name} expects ${this.states_.length} state(s), but it received ${e.length} state value(s). Input received: `+e);!0===t?this.keptStates.push(this.states_.slice()):ep.bf(this.states_);for(let t=0;t<this.states_.length;++t){let r=e[t],i=[n,Array.isArray(this.cell.stateSize)?this.cell.stateSize[t]:this.cell.stateSize];if(!ep.Si.arraysEqual(r.shape,i))throw new im(`State ${t} is incompatible with layer ${this.name}: expected shape=${i}, received shape=${r.shape}`);this.states_[t]=r}}this.states_=this.states_.map(e=>ep.Xf(e.clone()))})}apply(e,t){let n=null==t?null:t.initialState,r=null==t?null:t.constants;null==t&&(t={});let i=lv(e,n,r,this.numConstants);e=i.inputs,n=i.initialState,r=i.constants;let a=[],o=[];if(null!=n){for(let e of(t.initialState=n,a=a.concat(n),this.stateSpec=[],n))this.stateSpec.push(new aG({shape:e.shape}));o=o.concat(this.stateSpec)}if(null!=r&&(t.constants=r,a=a.concat(r),this.numConstants=r.length),a[0]instanceof aV){let n=[e].concat(a),r=this.inputSpec.concat(o),i=this.inputSpec;this.inputSpec=r;let s=super.apply(n,t);return this.inputSpec=i,s}return super.apply(e,t)}call(e,t){return Object(ep.Ei)(()=>{let n=null==t?null:t.mask,r=null==t?null:t.training,i=null==t?null:t.initialState;e=aU(e),null==i&&(i=this.stateful?this.states_:this.getInitialState(e));let a=Array.isArray(this.cell.stateSize)?this.cell.stateSize.length:1;if(i.length!==a)throw new im(`RNN Layer has ${a} state(s) but was passed `+i.length+" initial state(s).");this.unroll&&console.warn("Ignoring unroll = true for RNN layer, due to imperative backend.");let o={training:r},s=lO((e,t)=>
vendor: 15,117 bytes, line 17
17{let n=this.cell.call([e].concat(t),o);return[n[0],n.slice(1)]},e,i,this.goBackwards,n,null,this.unroll,this.returnSequences),l=s[0],u=s[1],c=s[2];this.stateful&&this.resetStates(c,r);let p=this.returnSequences?u:l;return this.returnState?[p].concat(c):p})}getInitialState(e){return Object(ep.Ei)(()=>{let t=ep.aj(e.shape);return t=i9(t=ep.qi(t,[1,2])),Array.isArray(this.cell.stateSize)?this.cell.stateSize.map(e=>e>1?aa(t,[1,e]):t):this.cell.stateSize>1?[aa(t,[1,this.cell.stateSize])]:[t]})}get trainableWeights(){return this.trainable?this.cell.trainableWeights:[]}get nonTrainableWeights(){return this.trainable?this.cell.nonTrainableWeights:this.cell.weights}setFastWeightInitDuringBuild(e){super.setFastWeightInitDuringBuild(e),null!=this.cell&&this.cell.setFastWeightInitDuringBuild(e)}getConfig(){let e=super.getConfig(),t={returnSequences:this.returnSequences,returnState:this.returnState,goBackwards:this.goBackwards,stateful:this.stateful,unroll:this.unroll};null!=this.numConstants&&(t.numConstants=this.numConstants);let n=this.cell.getConfig();return this.getClassName()===lx.className&&(t.cell={className:this.cell.getClassName(),config:n}),Object.assign(Object.assign(Object.assign({},n),e),t)}static fromConfig(e,t,n={}){let r=oC(t.cell,n);return new e(Object.assign(t,{cell:r}))}}lx.className="RNN",ep.Lh.registerClass(lx);class lI extends aX{}class lN extends lI{constructor(e){super(e),this.DEFAULT_ACTIVATION="tanh",this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_RECURRENT_INITIALIZER="orthogonal",this.DEFAULT_BIAS_INITIALIZER="zeros",this.units=e.units,iM(this.units,"units"),this.activation=sY(null==e.activation?this.DEFAULT_ACTIVATION:e.activation),this.useBias=null==e.useBias||e.useBias,this.kernelInitializer=aA(e.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.recurrentInitializer=aA(e.recurrentInitializer||this.DEFAULT_RECURRENT_INITIALIZER),this.biasInitializer=aA(e.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.kernelRegularizer=s3(e.kernelRegularizer),this.recurrentRegularizer=s3(e.recurrentRegularizer),this.biasRegularizer=s3(e.biasRegularizer),this.kernelConstraint=oi(e.kernelConstraint),this.recurrentConstraint=oi(e.recurrentConstraint),this.biasConstraint=oi(e.biasConstraint),this.dropout=i4([1,i6([0,null==e.dropout?0:e.dropout])]),this.recurrentDropout=i4([1,i6([0,null==e.recurrentDropout?0:e.recurrentDropout])]),this.dropoutFunc=e.dropoutFunc,this.stateSize=this.units,this.dropoutMask=null,this.recurrentDropoutMask=null}build(e){e=aP(e),this.kernel=this.addWeight("kernel",[e[e.length-1],this.units],null,this.kernelInitializer,this.kernelRegularizer,!0,this.kernelConstraint),this.recurrentKernel=this.addWeight("recurrent_kernel",[this.units,this.units],null,this.recurrentInitializer,this.recurrentRegularizer,!0,this.recurrentConstraint),this.useBias?this.bias=this.addWeight("bias",[this.units],null,this.biasInitializer,this.biasRegularizer,!0,this.biasConstraint):this.bias=null,this.built=!0}call(e,t){return Object(ep.Ei)(()=>{let n;if(2!==e.length)throw new im(`SimpleRNNCell expects 2 input Tensors, got ${e.length}.`);let r=e[1];e=e[0];let i=null!=t.training&&t.training;0<this.dropout&&this.dropout<1&&null==this.dropoutMask&&(this.dropoutMask=lE({ones:()=>ep.Pg(e),rate:this.dropout,training:i,dropoutFunc:this.dropoutFunc})),0<this.recurrentDropout&&this.recurrentDropout<1&&null==this.recurrentDropoutMask&&(this.recurrentDropoutMask=lE({ones:()=>ep.Pg(r),rate:this.recurrentDropout,training:i,dropoutFunc:this.dropoutFunc}));let a=this.dropoutMask,o=this.recurrentDropoutMask;n=as(null!=a?ep.Gg(e,a):e,this.kernel.read()),null!=this.bias&&(n=ap(n,this.bias.read())),null!=o&&(r=ep.Gg(r,o));let s=ep.Ud(n,as(r,this.recurrentKernel.read()));return null!=this.activation&&(s=this.activation.apply(s)),[s,s]})}getConfig(){let e=super.getConfig(),t={units:this.units,activation:sK(this.activation),useBias:this.useBias,kernelInitializer:aC(this.kernelInitializer),recurrentInitializer:aC(this.recurrentInitializer),biasInitializer:aC(this.biasInitializer),kernelRegularizer:s1(this.kernelRegularizer),recurrentRegularizer:s1(this.recurrentRegularizer),biasRegularizer:s1(this.biasRegularizer),activityRegularizer:s1(this.activityRegularizer),kernelConstraint:on(this.kernelConstraint),recurrentConstraint:on(this.recurrentConstraint),biasConstraint:on(this.biasConstraint),dropout:this.dropout,recurrentDropout:this.recurrentDropout};return Object.assign(Object.assign({},e),t)}}lN.className="SimpleRNNCell",ep.Lh.registerClass(lN);class lk extends lx{constructor(e){e.cell=new lN(e),super(e)}call(e,t){return Object(ep.Ei)(()=>{null!=this.cell.dropoutMask&&(ep.bf(this.cell.dropoutMask),this.cell.dropoutMask=null),null!=this.cell.recurrentDropoutMask&&(ep.bf(this.cell.recurrentDropoutMask),this.cell.recurrentDropoutMask=null);let n=null==t?null:t.mask,r=null==t?null:t.training,i=null==t?null:t.initialState;return super.call(e,{mask:n,training:r,initialState:i})})}static fromConfig(e,t){return new e(t)}}lk.className="SimpleRNN",ep.Lh.registerClass(lk);class lT extends lI{constructor(e){if(super(e),this.DEFAULT_ACTIVATION="tanh",this.DEFAULT_RECURRENT_ACTIVATION="hardSigmoid",this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_RECURRENT_INITIALIZER="orthogonal",this.DEFAULT_BIAS_INITIALIZER="zeros",e.resetAfter)throw new im("GRUCell does not support reset_after parameter set to true.");this.units=e.units,iM(this.units,"units"),this.activation=sY(void 0===e.activation?this.DEFAULT_ACTIVATION:e.activation),this.recurrentActivation=sY(void 0===e.recurrentActivation?this.DEFAULT_RECURRENT_ACTIVATION:e.recurrentActivation),this.useBias=null==e.useBias||e.useBias,this.kernelInitializer=aA(e.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.recurrentInitializer=aA(e.recurrentInitializer||this.DEFAULT_RECURRENT_INITIALIZER),this.biasInitializer=aA(e.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.kernelRegularizer=s3(e.kernelRegularizer),this.recurrentRegularizer=s3(e.recurrentRegularizer),this.biasRegularizer=s3(e.biasRegularizer),this.kernelConstraint=oi(e.kernelConstraint),this.recurrentConstraint=oi(e.recurrentConstraint),this.biasConstraint=oi(e.biasConstraint),this.dropout=i4([1,i6([0,null==e.dropout?0:e.dropout])]),this.recurrentDropout=i4([1,i6([0,null==e.recurrentDropout?0:e.recurrentDropout])]),this.dropoutFunc=e.dropoutFunc,this.implementation=e.implementation,this.stateSize=this.units,this.dropoutMask=null,this.recurrentDropoutMask=null}build(e){let t=(e=aP(e))[e.length-1];this.kernel=this.addWeight("kernel",[t,3*this.units],null,this.kernelInitializer,this.kernelRegularizer,!0,this.kernelConstraint),this.recurrentKernel=this.addWeight("recurrent_kernel",[this.units,3*this.units],null,this.recurrentInitializer,this.recurrentRegularizer,!0,this.recurrentConstraint),this.useBias?this.bias=this.addWeight("bias",[3*this.units],null,this.biasInitializer,this.biasRegularizer,!0,this.biasConstraint):this.bias=null,this.built=!0}call(e,t){return Object(ep.Ei)(()=>{let n,r,i;if(2!==e.length)throw new im("GRUCell expects 2 input Tensors (inputs, h, c), got "+e.length+".");let a=null!=t.training&&t.training,o=e[1];e=e[0],0<this.dropout&&this.dropout<1&&null==this.dropoutMask&&(this.dropoutMask=lE({ones:()=>ep.Pg(e),rate:this.dropout,training:a,count:3,dropoutFunc:this.dropoutFunc})),0<this.recurrentDropout&&this.recurrentDropout<1&&null==this.recurrentDropoutMask&&(this.recurrentDropoutMask=lE({ones:()=>ep.Pg(o),rate:this.recurrentDropout,training:a,count:3,dropoutFunc:this.dropoutFunc}));let s=this.dropoutMask,l=this.recurrentDropoutMask;0<this.dropout&&this.dropout<1&&(e=ep.Gg(e,s[0]));let u=as(e,this.kernel.read());this.useBias&&(u=ap(u,this.bias.read())),0<this.recurrentDropout&&this.recurrentDropout<1&&(o=ep.Gg(o,l[0]));let c=this.recurrentKernel.read(),[p,d]=ep.gi(c,[2*this.units,this.units],c.rank-1),f=as(o,p),[h,g,b]=ep.gi(u,3,u.rank-1),[m,y]=ep.gi(f,2,f.rank-1);n=this.recurrentActivation.apply(ep.Ud(h,m)),r=this.recurrentActivation.apply(ep.Ud(g,y));let S=as(ep.Gg(r,o),d);i=this.activation.apply(ep.Ud(b,S));let v=ep.Ud(ep.Gg(n,o),ep.Gg(ep.Ud(1,ep.Jg(n)),i));return[v,v]})}getConfig(){let e=super.getConfig(),t={units:this.units,activation:sK(this.activation),recurrentActivation:sK(this.recurrentActivation),useBias:this.useBias,kernelInitializer:aC(this.kernelInitializer),recurrentInitializer:aC(this.recurrentInitializer),biasInitializer:aC(this.biasInitializer),kernelRegularizer:s1(this.kernelRegularizer),recurrentRegularizer:s1(this.recurrentRegularizer),biasRegularizer:s1(this.biasRegularizer),activityRegularizer:s1(this.activityRegularizer),kernelConstraint:on(this.kernelConstraint),recurrentConstraint:on(this.recurrentConstraint),biasConstraint:on(this.biasConstraint),dropout:this.dropout,recurrentDropout:this.recurrentDropout,implementation:this.implementation,resetAfter:!1};return Object.assign(Object.assign({},e),t)}}lT.className="GRUCell",ep.Lh.registerClass(lT);class lw extends lx{constructor(e){0===e.implementation&&console.warn("`implementation=0` has been deprecated, and now defaults to `implementation=1`. Please update your layer call."),e.cell=new lT(e),super(e)}call(e,t){return Object(ep.Ei)(()=>{null!=this.cell.dropoutMask&&(ep.bf(this.cell.dropoutMask),this.cell.dropoutMask=null),null!=this.cell.recurrentDropoutMask&&(ep.bf(this.cell.recurrentDropoutMask),this.cell.recurrentDropoutMask=null);let n=null==t?null:t.mask,r=null==t?null:t.training,i=null==t?null:t.initialState;return super.call(e,{mask:n,training:r,initialState:i})})}static fromConfig(e,t){return 0===t.implmentation&&(t.implementation=1),new e(t)}}lw.className="GRU",ep.Lh.registerClass(lw);class lj extends lI{constructor(e){super(e),this.DEFAULT_ACTIVATION="tanh",this.DEFAULT_RECURRENT_ACTIVATION="hardSigmoid",this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_RECURRENT_INITIALIZER="orthogonal",this.DEFAULT_BIAS_INITIALIZER="zeros",this.units=e.units,iM(this.units,"units"),this.activation=sY(void 0===e.activation?this.DEFAULT_ACTIVATION:e.activation),this.recurrentActivation=sY(void 0===e.recurrentActivation?this.DEFAULT_RECURRENT_ACTIVATION:e.recurrentActivation),this.useBias=null==e.useBias||e.useBias,this.kernelInitializer=aA(e.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.recurrentInitializer=aA(e.recurrentInitializer||this.DEFAULT_RECURRENT_INITIALIZER),this.biasInitializer=aA(e.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.unitForgetBias=e.unitForgetBias,this.kernelRegularizer=s3(e.kernelRegularizer),this.recurrentRegularizer=s3(e.recurrentRegularizer),this.biasRegularizer=s3(e.biasRegularizer),this.kernelConstraint=oi(e.kernelConstraint),this.recurrentConstraint=oi(e.recurrentConstraint),this.biasConstraint=oi(e.biasConstraint),this.dropout=i4([1,i6([0,null==e.dropout?0:e.dropout])]),this.recurrentDropout=i4([1,i6([0,null==e.recurrentDropout?0:e.recurrentDropout])]),this.dropoutFunc=e.dropoutFunc,this.implementation=e.implementation,this.stateSize=[this.units,this.units],this.dropoutMask=null,this.recurrentDropoutMask=null}build(e){var t;let n,r=(e=aP(e))[e.length-1];if(this.kernel=this.addWeight("kernel",[r,4*this.units],null,this.kernelInitializer,this.kernelRegularizer,!0,this.kernelConstraint),this.recurrentKernel=this.addWeight("recurrent_kernel",[this.units,4*this.units],null,this.recurrentInitializer,this.recurrentRegularizer,!0,this.recurrentConstraint),this.useBias){if(this.unitForgetBias){let e=this.biasInitializer,r=this.units;n=new((t=class extends ab{apply(t,n){let i=e.apply([r]),a=(new ay).apply([r]),o=e.apply([2*r]);return ai(ai(i,a),o)}}).className="CustomInit",t)}else n=this.biasInitializer;this.bias=this.addWeight("bias",[4*this.units],null,n,this.biasRegularizer,!0,this.biasConstraint)}else this.bias=null;this.built=!0}call(e,t){return Object(ep.Ei)(()=>{let n,r,i,a,o=null!=t.training&&t.training;if(3!==e.length)throw new im("LSTMCell expects 3 input Tensors (inputs, h, c), got "+e.length+".");let s=e[1],l=e[2];e=e[0],0<this.dropout&&this.dropout<1&&null==this.dropoutMask&&(this.dropoutMask=lE({ones:()=>ep.Pg(e),rate:this.dropout,training:o,count:4,dropoutFunc:this.dropoutFunc})),0<this.recurrentDropout&&this.recurrentDropout<1&&null==this.recurrentDropoutMask&&(this.recurrentDropoutMask=lE({ones:()=>ep.Pg(s),rate:this.recurrentDropout,training:o,count:4,dropoutFunc:this.dropoutFunc}));let u=this.dropoutMask,c=this.recurrentDropoutMask;0<this.dropout&&this.dropout<1&&(e=ep.Gg(e,u[0]));let p=as(e,this.kernel.read());0<this.recurrentDropout&&this.recurrentDropout<1&&(s=ep.Gg(s,c[0])),p=ep.Ud(p,as(s,this.recurrentKernel.read())),this.useBias&&(p=ap(p,this.bias.read()));let[d,f,h,g]=ep.gi(p,4,p.rank-1);n=this.recurrentActivation.apply(d),r=this.recurrentActivation.apply(f),i=ep.Ud(ep.Gg(r,l),ep.Gg(n,this.activation.apply(h))),a=this.recurrentActivation.apply(g);let b=ep.Gg(a,this.activation.apply(i));return[b,b,i]})}getConfig(){let e=super.getConfig(),t={units:this.units,activation:sK(this.activation),recurrentActivation:sK(this.recurrentActivation),useBias:this.useBias,kernelInitializer:aC(this.kernelInitializer),recurrentInitializer:aC(this.recurrentInitializer),biasInitializer:aC(this.biasInitializer),unitForgetBias:this.unitForgetBias,kernelRegularizer:s1(this.kernelRegularizer),recurrentRegularizer:s1(this.recurrentRegularizer),biasRegularizer:s1(this.biasRegularizer),activityRegularizer:s1(this.activityRegularizer),kernelConstraint:on(this.kernelConstraint),recurrentConstraint:on(this.recurrentConstraint),biasConstraint:on(this.biasConstraint),dropout:this.dropout,recurrentDropout:this.recurrentDropout,implementation:this.implementation};return Object.assign(Object.assign({},e),t)}}lj.className="LSTMCell",ep.Lh.registerClass(lj);class lF extends lx{constructor(e){0===e.implementation&&console.warn("`implementation=0` has been deprecated, and now defaults to `implementation=1`. Please update your layer call."),e.cell=new lj(e),super(e)}call(e,t){return Object(ep.Ei)(()=>{null!=this.cell.dropoutMask&&(ep.bf(this.cell.dropoutMask),this.cell.dropoutMask=null),null!=this.cell.recurrentDropoutMask&&(ep.bf(this.cell.recurrentDropoutMask),this.cell.recurrentDropoutMask=null);let n=null==t?null:t.mask,r=null==t?null:t.training,i=null==t?null:t.initialState;return super.call(e,{mask:n,training:r,initialState:i})})}static fromConfig(e,t){return 0===t.implmentation&&(t.implementation=1),new e(t)}}lF.className="LSTM",ep.Lh.registerClass(lF);class l_ extends lI{constructor(e){super(e),this.cells=e.cells}get stateSize(){let e=[];for(let t of this.cells.slice().reverse())Array.isArray(t.stateSize)?e.push(...t.stateSize):e.push(t.stateSize);return e}call(e,t){return Object(ep.Ei)(()=>{let n,r=e.slice(1),i=[];for(let e of this.cells.slice().reverse())Array.isArray(e.stateSize)?i.push(r.splice(0,e.stateSize.length)):i.push(r.splice(0,1));i.reverse();let a=[];for(let o=0;o<this.cells.length;++o){let s=this.cells[o];r=i[o],n=0===o?[e[0]].concat(r):[n[0]].concat(r),n=s.call(n,t),a.push(n.slice(1))}for(let e of(r=[],a.slice().reverse()))r.push(...e);return[n[0]].concat(r)})}build(e){let t;
17aM(e)&&(e=e[0]),this.cells.forEach((n,r)=>{iJ("RNNCell_"+r,()=>{n.build(e),t=Array.isArray(n.stateSize)?n.stateSize[0]:n.stateSize,e=[e[0],t]})}),this.built=!0}getConfig(){let e=super.getConfig(),t={cells:this.cells.map(e=>({className:e.getClassName(),config:e.getConfig()}))};return Object.assign(Object.assign({},e),t)}static fromConfig(e,t,n={}){let r=[];for(let e of t.cells)r.push(oC(e,n));return new e({cells:r})}get trainableWeights(){if(!this.trainable)return[];let e=[];for(let t of this.cells)e.push(...t.trainableWeights);return e}get nonTrainableWeights(){let e=[];for(let t of this.cells)e.push(...t.nonTrainableWeights);if(!this.trainable){let t=[];for(let e of this.cells)t.push(...e.trainableWeights);return t.concat(e)}return e}getWeights(){let e=[];for(let t of this.cells)e.push(...t.weights);return aW(e)}setWeights(e){let t=[];for(let n of this.cells){let r=n.weights.length,i=e.splice(r);for(let e=0;e<n.weights.length;++e)t.push([n.weights[e],i[e]])}az(t)}}function lE(e){let{ones:t,rate:n,training:r=!1,count:i=1,dropoutFunc:a}=e,o=()=>null!=a?a(t(),n):ad(t(),n),s=()=>af(o,t,r);return!i||i<=1?ep.Xf(s().clone()):Array(i).fill(void 0).map(s).map(e=>ep.Xf(e.clone()))}l_.className="StackedRNNCells",ep.Lh.registerClass(l_);var lR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class lD extends lx{constructor(e){if(e.unroll)throw new iy("Unrolling is not possible with convolutional RNNs.");if(Array.isArray(e.cell))throw new iy("It is not possible at the moment to stack convolutional cells.");super(e),this.inputSpec=[new aG({ndim:5})]}call(e,t){return ep.Ei(()=>{if(null!=this.cell.dropoutMask&&(ep.bf(this.cell.dropoutMask),this.cell.dropoutMask=null),null!=this.cell.recurrentDropoutMask&&(ep.bf(this.cell.recurrentDropoutMask),this.cell.recurrentDropoutMask=null),t&&t.constants)throw new im("ConvRNN2D cell does not support constants");let n=null==t?null:t.mask,r=null==t?null:t.training,i=null==t?null:t.initialState;return super.call(e,{mask:n,training:r,initialState:i})})}computeOutputShape(e){let t=this.computeSingleOutputShape(e);return this.returnSequences||(t=[t[0],...t.slice(2)]),this.returnState&&(t=[t,...[,,].fill([e[0],...t.slice(-3)])]),t}getInitialState(e){return ep.Ei(()=>{let{stateSize:t}=this.cell,n=e.shape,r=this.computeSingleOutputShape(n),i=[r[0],...r.slice(2)],a=ep.aj(i);return Array.isArray(t)?Array(t.length).fill(a):[a]})}resetStates(e,t=!1){ep.Ei(()=>{if(!this.stateful)throw new ig("Cannot call resetStates() on an RNN Layer that is not stateful.");let n=this.inputSpec[0].shape,r=this.computeSingleOutputShape(n),i=[r[0],...r.slice(2)];if(null==n[0])throw new im("If an RNN is stateful, it needs to know its batch size. Specify the batch size of your input tensors: \n- If using a Sequential model, specify the batch size by passing a `batchInputShape` option to your first layer.\n- If using the functional API, specify the batch size by passing a `batchShape` option to your Input layer.");if(null==this.getStates())Array.isArray(this.cell.stateSize)?this.states_=this.cell.stateSize.map(()=>ep.aj(i)):this.states_=[ep.aj(i)];else if(null==e)ep.bf(this.states_),null!=this.keptStates&&(ep.bf(this.keptStates),this.keptStates=[]),Array.isArray(this.cell.stateSize)?this.states_=this.cell.stateSize.map(()=>ep.aj(i)):this.states_[0]=ep.aj(i);else{if(Array.isArray(e)||(e=[e]),e.length!==this.states_.length)throw new im(`Layer ${this.name} expects ${this.states_.length} state(s), but it received ${e.length} state value(s). Input received: `+e);t?this.keptStates.push(this.states_.slice()):ep.bf(this.states_);for(let t=0;t<this.states_.length;++t){let n=e[t],r=i;if(!ep.Si.arraysEqual(n.shape,r))throw new im(`State ${t} is incompatible with layer ${this.name}: expected shape=${r}, received shape=${n.shape}`);this.states_[t]=n}}this.states_=this.states_.map(e=>ep.Xf(e.clone()))})}computeSingleOutputShape(e){let{dataFormat:t,filters:n,kernelSize:r,padding:i,strides:a,dilationRate:o}=this.cell,s="channelsFirst"===t,l=e[s?3:2],u=e[s?4:3],c=lt(l,r[0],i,a[0],o[0]),p=lt(u,r[1],i,a[1],o[1]);
17return[...e.slice(0,2),...s?[n,c,p]:[c,p,n]]}}lD.className="ConvRNN2D";class lC extends lj{constructor(e){let{filters:t,kernelSize:n,strides:r,padding:i,dataFormat:a,dilationRate:o}=e;super(Object.assign(Object.assign({},e),{units:t})),this.filters=t,iM(this.filters,"filters"),this.kernelSize=le(n,2,"kernelSize"),this.kernelSize.forEach(e=>iM(e,"kernelSize")),this.strides=le(r||1,2,"strides"),this.strides.forEach(e=>iM(e,"strides")),this.padding=i||"valid",iX(this.padding),this.dataFormat=a||"channelsLast",iK(this.dataFormat),this.dilationRate=le(o||1,2,"dilationRate"),this.dilationRate.forEach(e=>iM(e,"dilationRate"))}build(e){var t;e=aP(e);let n="channelsFirst"===this.dataFormat?1:e.length-1;if(null==e[n])throw new im("The channel dimension of the input should be defined. Found "+e[n]);let r=e[n],i=this.kernelSize.concat([r,4*this.filters]);this.kernel=this.addWeight("kernel",i,null,this.kernelInitializer,this.kernelRegularizer,!0,this.kernelConstraint);let a=this.kernelSize.concat([this.filters,4*this.filters]);if(this.recurrentKernel=this.addWeight("recurrent_kernel",a,null,this.recurrentInitializer,this.recurrentRegularizer,!0,this.recurrentConstraint),this.useBias){let e;if(this.unitForgetBias){let n=this.biasInitializer,r=this.filters;e=new((t=class extends ab{apply(e,t){return ar([n.apply([r]),ep.Og([r]),n.apply([2*r])])}}).className="CustomInit",t)}else e=this.biasInitializer;this.bias=this.addWeight("bias",[4*this.filters],null,e,this.biasRegularizer,!0,this.biasConstraint)}this.built=!0}call(e,t){return ep.Ei(()=>{if(3!==e.length)throw new im("ConvLSTM2DCell expects 3 input Tensors (inputs, h, c), got "+e.length+".");let n=t.training||!1,r=e[0],i=e[1],a=e[2];0<this.dropout&&this.dropout<1&&null==this.dropoutMask&&(this.dropoutMask=lE({ones:()=>ep.Pg(r),rate:this.dropout,training:n,count:4,dropoutFunc:this.dropoutFunc}));let o=this.dropoutMask,s=(e,t,n)=>t&&t[n]?ep.Gg(t[n],e):e,l=s(r,o,0),u=s(r,o,1),c=s(r,o,2),p=s(r,o,3);0<this.recurrentDropout&&this.recurrentDropout<1&&null==this.recurrentDropoutMask&&(this.recurrentDropoutMask=lE({ones:()=>ep.Pg(i),rate:this.recurrentDropout,training:n,count:4,dropoutFunc:this.dropoutFunc}));let d=this.recurrentDropoutMask,f=s(i,d,0),h=s(i,d,1),g=s(i,d,2),b=s(i,d,3),[m,y,S,v]=ep.gi(this.kernel.read(),4,3),[O,x,I,N]=this.useBias?ep.gi(this.bias.read(),4):[null,null,null,null];l=this.inputConv(l,m,O,this.padding),u=this.inputConv(u,y,x,this.padding),c=this.inputConv(c,S,I,this.padding),p=this.inputConv(p,v,N,this.padding);let[k,T,w,j]=ep.gi(this.recurrentKernel.read(),4,3);f=this.recurrentConv(f,k),h=this.recurrentConv(h,T),g=this.recurrentConv(g,w),b=this.recurrentConv(b,j);let F=this.recurrentActivation.apply(ep.Ud(l,f)),_=this.recurrentActivation.apply(ep.Ud(u,h)),E=ep.Ud(ep.Gg(_,a),ep.Gg(F,this.activation.apply(ep.Ud(c,g)))),R=ep.Gg(this.recurrentActivation.apply(ep.Ud(p,b)),this.activation.apply(E));return[R,R,E]})}getConfig(){let e=super.getConfig(),{units:t}=e,n=lR(e,["units"]),r={filters:this.filters,kernelSize:this.kernelSize,padding:this.padding,dataFormat:this.dataFormat,dilationRate:this.dilationRate,strides:this.strides};return Object.assign(Object.assign({},n),r)}inputConv(e,t,n,r){let i=ep.Ie(e,t,this.strides,r||"valid","channelsFirst"===this.dataFormat?"NCHW":"NHWC",this.dilationRate);return n?ap(i,n,this.dataFormat):i}recurrentConv(e,t){return ep.Ie(e,t,1,"same","channelsFirst"===this.dataFormat?"NCHW":"NHWC")}}lC.className="ConvLSTM2DCell",ep.Lh.registerClass(lC);class lA extends lD{constructor(e){super(Object.assign(Object.assign({},e),{cell:new lC(e)}))}static fromConfig(e,t){return new e(t)}}lA.className="ConvLSTM2D",ep.Lh.registerClass(lA);class lM extends aX{constructor(e){super(e),this.rate=Math.max(Math.min(e.rate,1),0),this.noiseShape=e.noiseShape,this.seed=e.seed,this.supportsMasking=!0}getNoiseShape(e){if(null==this.noiseShape)return this.noiseShape;let t=e.shape,n=[];for(let e=0;e<this.noiseShape.length;++e)n.push(null==this.noiseShape[e]?t[e]:this.noiseShape[e]);return n}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t);let n=aU(e);if(0<this.rate&&this.rate<1){let e=null!=t.training&&t.training,r=this.getNoiseShape(n);return af(()=>ad(n,this.rate,r,this.seed),()=>n,e)}return e})}getConfig(){let e={rate:this.rate,noiseShape:this.noiseShape,seed:this.seed};return Object.assign(e,super.getConfig()),e}dispose(){return super.dispose()}}lM.className="Dropout",ep.Lh.registerClass(lM);class l$ extends lM{constructor(e){super(e),this.inputSpec=[{ndim:3}]}getNoiseShape(e){let t=e.shape;return[t[0],1,t[2]]}}l$.className="SpatialDropout1D",ep.Lh.registerClass(l$);class lU extends aX{constructor(e){if(super(e),this.activation=null,this.useBias=!0,this.kernel=null,this.bias=null,this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_BIAS_INITIALIZER="zeros",null==e.batchInputShape&&null==e.inputShape&&null!=e.inputDim){let t=null;null!=e.batchSize&&(t=e.batchSize),this.batchInputShape=[t,e.inputDim]}this.units=e.units,iM(this.units,"units"),this.activation=sY(e.activation),null!=e.useBias&&(this.useBias=e.useBias),this.kernelInitializer=aA(e.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.biasInitializer=aA(e.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.kernelConstraint=oi(e.kernelConstraint),this.biasConstraint=oi(e.biasConstraint),this.kernelRegularizer=s3(e.kernelRegularizer),this.biasRegularizer=s3(e.biasRegularizer),this.activityRegularizer=s3(e.activityRegularizer),this.supportsMasking=!0,this.inputSpec=[{minNDim:2}]}build(e){let t=(e=aP(e))[e.length-1];null==this.kernel&&(this.kernel=this.addWeight("kernel",[t,this.units],null,this.kernelInitializer,this.kernelRegularizer,!0,this.kernelConstraint),this.useBias&&(this.bias=this.addWeight("bias",[this.units],null,this.biasInitializer,this.biasRegularizer,!0,this.biasConstraint))),this.inputSpec=[{minNDim:2,axes:{[-1]:t}}],this.built=!0}computeOutputShape(e){let t=(e=aP(e)).slice();return t[t.length-1]=this.units,t}call(e,t){return Object(ep.Ei)(()=>{let n;this.invokeCallHook(e,t);let r=aU(e),i=i$(this.activation.getClassName());return null!=i?n=as(r,this.kernel.read(),i,this.bias?this.bias.read():null):(n=as(r,this.kernel.read()),null!=this.bias&&(n=ap(n,this.bias.read())),null!=this.activation&&(n=this.activation.apply(n))),n})}getConfig(){let e={units:this.units,activation:sK(this.activation),useBias:this.useBias,kernelInitializer:aC(this.kernelInitializer),biasInitializer:aC(this.biasInitializer),kernelRegularizer:s1(this.kernelRegularizer),biasRegularizer:s1(this.biasRegularizer),activityRegularizer:s1(this.activityRegularizer),kernelConstraint:on(this.kernelConstraint),biasConstraint:on(this.biasConstraint)};return Object.assign(e,super.getConfig()),e}}lU.className="Dense",ep.Lh.registerClass(lU);class lP extends aX{constructor(e){super(e=e||{}),this.inputSpec=[{minNDim:3}],this.dataFormat=e.dataFormat}computeOutputShape(e){for(let t of(e=aP(e)).slice(1))if(null==t)throw new im(`The shape of the input to "Flatten" is not fully defined (got ${e.slice(1)}). Make sure to pass a complete "input_shape" or "batch_input_shape" argument to the first layer in your model.`);return[e[0],i3(e,1)]}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t);let n=aU(e);if("channelsFirst"===this.dataFormat&&n.rank>1){let e=[0];for(let t=2;t<n.rank;++t)e.push(t);e.push(1),n=Object(ep.Ji)(n,e)}return function(e){if(e.rank<=1)throw new im(`batchFlatten requires a minimum rank of 2. Got rank: ${e.rank}.`);let t=[e.shape[0],i3(e.shape,1)];return ep.wh(e,t)}(n)})}getConfig(){let e={};return null!=this.dataFormat&&(e.dataFormat=this.dataFormat),Object.assign(e,super.getConfig()),e}}lP.className="Flatten",ep.Lh.registerClass(lP);class lB extends aX{constructor(e){super(e),this.supportsMasking=!0,this.activation=sY(e.activation)}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t);let n=aU(e);return this.activation.apply(n)})}getConfig(){let e={activation:sK(this.activation)};return Object.assign(e,super.getConfig()),e}}lB.className="Activation",ep.Lh.registerClass(lB);class lL extends aX{constructor(e){super(e),this.n=e.n,this.inputSpec=[{ndim:2}]}computeOutputShape(e){return[e[0],this.n,e[1]]}call(e,t){return Object(ep.Ei)(()=>{var t,n;return t=e=aU(e),n=this.n,Object(ep.Ei)(()=>
17{if(2!==t.shape.length)throw new im(`repeat() expects a rank-2 tensor, but received a rank-${t.shape.length} tensor.`);return aa(i9(t,1),[1,n,1])})})}getConfig(){let e={n:this.n};return Object.assign(e,super.getConfig()),e}}lL.className="RepeatVector",ep.Lh.registerClass(lL);class lW extends aX{constructor(e){super(e),this.targetShape=e.targetShape;for(let e=0;e<this.targetShape.length;++e)this.isUnknown(this.targetShape[e])&&(this.targetShape[e]=null)}isUnknown(e){return e<0||null==e}fixUnknownDimension(e,t){let n="Total size of new array must be unchanged.",r=t.slice(),i=1,a=null;for(let e=0;e<r.length;++e){let t=r[e];if(this.isUnknown(t)){if(null!==a)throw new im("Can only specifiy one unknown dimension.");a=e}else i*=t}let o=i3(e);if(null!==a){if(0===i||o%i!=0)throw new im(n);r[a]=o/i}else if(o!==i)throw new im(n);return r}computeOutputShape(e){let t=!1;for(let n=0;n<e.length;++n)if(this.isUnknown(e[n])){t=!0;break}return t?e.slice(0,1).concat(this.targetShape):e.slice(0,1).concat(this.fixUnknownDimension(e.slice(1),this.targetShape))}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t);let n=aU(e),r=n.shape,i=r.slice(0,1).concat(this.fixUnknownDimension(r.slice(1),this.targetShape));return Object(ep.wh)(n,i)})}getConfig(){let e={targetShape:this.targetShape};return Object.assign(e,super.getConfig()),e}}lW.className="Reshape",ep.Lh.registerClass(lW);class lz extends aX{constructor(e){if(super(e),null==e.dims)throw Error("Required configuration field `dims` is missing during Permute constructor call.");if(!Array.isArray(e.dims))throw Error("Permute constructor requires `dims` to be an Array, but received "+e.dims+" instead.");let t=i5(1,e.dims.length+1);if(!ep.Si.arraysEqual(e.dims.slice().sort(),t))throw Error("Invalid permutation `dims`: "+JSON.stringify(e.dims)+" `dims` must contain consecutive integers starting from 1.");this.dims=e.dims,this.dimsIncludingBatch=[0].concat(this.dims),this.inputSpec=[new aG({ndim:this.dims.length+1})]}computeOutputShape(e){let t=(e=aP(e)).slice();return this.dims.forEach((n,r)=>{t[r+1]=e[n]}),t}call(e,t){return Object(ep.Ji)(aU(e),this.dimsIncludingBatch)}getConfig(){let e={dims:this.dims};return Object.assign(e,super.getConfig()),e}}lz.className="Permute",ep.Lh.registerClass(lz);class lG extends aX{constructor(e){super(null==e?{}:e),this.supportsMasking=!0,this.maskValue=null!=e?null==e.maskValue?0:e.maskValue:0}computeOutputShape(e){return e}getConfig(){let e=super.getConfig(),t={maskValue:this.maskValue};return Object.assign(t,e),t}computeMask(e,t){let n=aU(e);return Object(ep.Xd)(Object(ep.Mg)(n,this.maskValue),-1)}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t);let n=aU(e),r=Object(ep.Xd)(Object(ep.Mg)(n,this.maskValue),-1,!0);return Object(ep.Gg)(n,Object(ep.xe)(r,n.dtype))})}}lG.className="Masking",ep.Lh.registerClass(lG);class lV extends aX{constructor(e){if(super(e),this.embeddings=null,this.DEFAULT_EMBEDDINGS_INITIALIZER="randomUniform",null==e.batchInputShape&&null==e.inputShape){let t=null;null!=e.batchSize&&(t=e.batchSize),null==e.inputLength?this.batchInputShape=[t,null]:this.batchInputShape=[t].concat(ik(e.inputLength))}this.inputDim=e.inputDim,iM(this.inputDim,"inputDim"),this.outputDim=e.outputDim,iM(this.outputDim,"outputDim"),this.embeddingsInitializer=aA(e.embeddingsInitializer||this.DEFAULT_EMBEDDINGS_INITIALIZER),this.embeddingsRegularizer=s3(e.embeddingsRegularizer),this.activityRegularizer=s3(e.activityRegularizer),this.embeddingsConstraint=oi(e.embeddingsConstraint),this.maskZero=e.maskZero,this.supportsMasking=e.maskZero,this.inputLength=e.inputLength}build(e){this.embeddings=this.addWeight("embeddings",[this.inputDim,this.outputDim],this.dtype,this.embeddingsInitializer,this.embeddingsRegularizer,!0,this.embeddingsConstraint),this.built=!0}warnOnIncompatibleInputShape(e){}computeMask(e,t){return Object(ep.Ei)(()=>this.maskZero?(e=aU(e),Object(ep.Mg)(e,Object(ep.bj)(e))):null)}computeOutputShape(e){if(e=aP(e),null==this.inputLength)return[...e,this.outputDim];let t=ik(this.inputLength);if(t.length!==e.length-1)throw new im(`"inputLength" is ${this.inputLength}, but received input shape has shape `+e);{let n=0;for(let r=0;r<t.length;++r){let i=t[r],a=e[r+1];
17if(null!=i&&null!=a&&i!==a)throw new im(`"inputLength" is ${this.inputLength}, but received input shape has shape `+e);null==i&&(t[n]=a),n++}}return[e[0],...t,this.outputDim]}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t);let n=aU(e);"int32"!==n.dtype&&(n=i7(n,"int32"));let r=al(this.embeddings.read(),Object(ep.wh)(n,[n.size]));return Object(ep.wh)(r,aP(this.computeOutputShape(n.shape)))})}getConfig(){let e={inputDim:this.inputDim,outputDim:this.outputDim,embeddingsInitializer:aC(this.embeddingsInitializer),embeddingsRegularizer:s1(this.embeddingsRegularizer),activityRegularizer:s1(this.activityRegularizer),embeddingsConstraint:on(this.embeddingsConstraint),maskZero:this.maskZero,inputLength:this.inputLength};return Object.assign(e,super.getConfig()),e}}lV.className="Embedding",ep.Lh.registerClass(lV);class lH extends aX{constructor(e){super(e||{}),this.supportsMasking=!0}mergeFunction(e){throw new iy}computeElementwiseOpOutputShape(e,t){if(null==e||null==t)return null;if(e.length<t.length)return this.computeElementwiseOpOutputShape(t,e);if(0===t.length)return e;let n=e.slice(0,e.length-t.length);for(let r=0;r<t.length;++r){let i=e[e.length-t.length+r],a=t[r];if(null==i||null==a||i<0||a<0)n.push(null);else if(1===i)n.push(a);else if(1===a)n.push(i);else{if(i!==a)throw new im("Operands could not be broadcast together with shapes "+JSON.stringify(e)+" "+JSON.stringify(t));n.push(i)}}return n}build(e){if(Array.isArray(e)&&!Array.isArray(e[0])&&(e=[aP(e)]),e.length<2)throw new im(`A merge layer should be called on an Array of at least 2 inputs. Got ${e.length} input(s).`);let t=[];for(let n of e)null!=n&&null!==n[0]&&t.push(n[0]);if((t=iR(t)).length>1)throw new im(`Can not merge tensors with different batch sizes. Got tensors with shapes: ${JSON.stringify(e)}.`);let n=null==e[0]?null:e[0].slice(1);for(let t=1;t<e.length;++t){let r=null==e[t]?null:e[t].slice(1);n=this.computeElementwiseOpOutputShape(n,r)}let r=e.map(e=>e.length);-1===e.indexOf(null)&&1===iR(r).length?this.reshapeRequired=!1:this.reshapeRequired=!0}call(e,t){return Object(ep.Ei)(()=>{if(this.reshapeRequired){let t=[],n=e.map(e=>e.rank);if(-1===n.indexOf(null)){let r=i6(n);for(let n of e){let e=n.rank;for(let t=0;t<r-e;++t)n=i9(n,1);t.push(n)}return this.mergeFunction(t)}{let n=!1;for(let r of e){let e=r.rank;if(null==e){let e=r.shape,i=e[0],a=e.slice(1).concat([i]),o=ep.wh(r,[i].concat(i3(e.slice(1))));o=ep.Ji(o,[1,0]),o=ep.wh(o,a),t.push(o),n=!0}else if(e>1){let i=i5(1,e).concat([0]);t.push(ep.Ji(r,i)),n=!0}else t.push(r)}let r=this.mergeFunction(t),i=r.rank;if(n){if(null==i){let e=r.shape,t=e[e.length-1],n=[t].concat(e.slice(0,e.length-1));r=ep.wh(ep.Ji(ep.wh(r,[-1,t]),[1,0]),n)}else if(i>1){let e=[i-1].concat(i5(0,i-1));r=ep.Ji(r,e)}}return r}}return this.mergeFunction(e)})}computeOutputShape(e){let t;t=null==e[0]?null:e[0].slice(1);for(let n=1;n<e.length;++n){let r=null==e[n]?null:e[n].slice(1);t=this.computeElementwiseOpOutputShape(t,r)}let n=[];for(let t of e)null!=t&&null!==t[0]&&n.push(t[0]);return 1===(n=iR(n)).length?n.concat(t):[null].concat(t)}computeMask(e,t){return ep.Ei(()=>{if(null==t)return null;if(!Array.isArray(t))throw new im("`mask` should be an Array");if(!Array.isArray(e))throw new im("`inputs` should be an Array");if(t.length!==e.length)throw new im(`The Array 'inputs' and 'mask' are expected to have the same length, but have different lengths (${e.length} vs ${t.length})`);if(t.every(e=>null==e))return null;let n=(t=t.map(e=>null==e?e:ep.tf(e,0)))[0];for(let e=1;e<t.length-1;++e)n=ep.kg(n,t[e]);return n})}}class lq extends lH{constructor(e){super(e)}mergeFunction(e){return Object(ep.Ei)(()=>{let t=e[0].clone();for(let n=1;n<e.length;++n)t=ep.Ud(t,e[n]);return t})}}lq.className="Add",ep.Lh.registerClass(lq);class lK extends lH{constructor(e){super(e)}mergeFunction(e){return Object(ep.Ei)(()=>{let t=e[0].clone();for(let n=1;n<e.length;++n)t=ep.Gg(t,e[n]);return t})}}lK.className="Multiply",ep.Lh.registerClass(lK);class lX extends lH{constructor(e){super(e)}mergeFunction(e){return Object(ep.Ei)(()=>{let t=e[0].clone();for(let n=1;n<e.length;++n)t=ep.Ud(t,e[n]);return ep.Gg(1/e.length,t)})}}lX.className="Average",ep.Lh.registerClass(lX);class lY extends lH{constructor(e){super(e)}mergeFunction(e){return Object(ep.Ei)(()=>{let t=e[0];for(let n=1;n<e.length;++n)t=ep.wg(t,e[n]);return t})}}lY.className="Maximum",ep.Lh.registerClass(lY);class lQ extends lH{constructor(e){super(e)}mergeFunction(e){return Object(ep.Ei)(()=>{let t=e[0];for(let n=1;n<e.length;++n)t=ep.Bg(t,e[n]);return t})}}lQ.className="Minimum",ep.Lh.registerClass(lQ);class lJ extends lH{constructor(e){super(e),this.DEFAULT_AXIS=-1,null==e&&(e={}),this.axis=null==e.axis?this.DEFAULT_AXIS:e.axis,this.supportsMasking=!0,this.reshapeRequired=!1}build(e){if(!Array.isArray(e)||!Array.isArray(e[0])||1===e.length)throw new im("A `Concatenate` layer should be called on a list of at least 2 inputs");let t=!0;for(let n of e)if(null!=n){t=!1;break}if(t)return;let n=[];for(let t=0;t<e.length;++t){let r=e[t].slice();r.splice(this.axis,1);let i=!1;for(let e of n)if(ep.Si.arraysEqual(e,r)){i=!0;break}i||n.push(r)}if(n.length>1)throw new im("A `Concatenate` layer requires inputs with matching shapes except for the concat axis. Got input shapes: "+JSON.stringify(e))}mergeFunction(e){return Object(ep.Ei)(()=>ar(e,this.axis))}computeOutputShape(e){if(!Array.isArray(e)||!Array.isArray(e[0]))throw new im("A `Concatenate` layer should be called on a list of inputs.");let t=e,n=t[0].slice(),r=this.axis<0?n.length+this.axis:this.axis;for(let e of t.slice(1)){if(null==n[r]||null==e[r]){n[r]=null;break}n[r]+=e[r]}return n}computeMask(e,t){if(null==t)return null;if(!Array.isArray(t))throw new im("`mask` should be an array for Concatenate");if(!Array.isArray(e))throw new im("`inputs` should be an array for Concatenate");if(t.length!==e.length)throw new im(`Mismatch in the length of mask (${t.length}) and the legnth of inputs (${e.length})`);return ep.Ei(()=>{let n=!0;
17if(t.forEach(e=>{null==e||(n=!1)}),n)return null;let r=[];for(let n=0;n<e.length;++n)null==t[n]?r.push(ep.xe(ep.Pg(e[n]),"bool")):t[n].rank<e[n].rank?r.push(ep.tf(t[n],-1)):r.push(t[n]);let i=ep.Ce(r,this.axis);return ep.Wd(i,-1,!1)})}getConfig(){let e={axis:this.axis};return Object.assign(e,super.getConfig()),e}}function lZ(e,t){for(;e<0;)e+=t;return e}lJ.className="Concatenate",ep.Lh.registerClass(lJ);class l0 extends lH{constructor(e){super(e),this.axes=e.axes,this.normalize=null!=e.normalize&&e.normalize,this.supportsMasking=!0,this.reshapeRequired=!1}build(e){ep.Si.assert(Array.isArray(e)&&2===e.length&&Array.isArray(e[0])&&Array.isArray(e[1]),()=>"A `Dot` layer should be called on a list of exactly 2 inputs.");let t=e[0],n=e[1];if(t.length>3||n.length>3)throw new iy("Dot layer does not support tensors of 4D or higher rank yet.");let r=this.interpretAxes(t,n);if(t[r[0]]!==n[r[1]])throw new im(`Dimension incompatibility: ${t[r[0]]} !== ${n[r[1]]}`)}mergeFunction(e){if(2!==e.length)throw new im(`A \`Dot\` layer must be called on exactly 2 inputs, but received ${e.length} input(s).`);let t,n=e[0],r=e[1];return t=Array.isArray(this.axes)?this.axes.map((t,n)=>lZ(t,e[n].shape.length)):[lZ(this.axes,n.shape.length),lZ(this.axes,r.shape.length)],this.normalize&&(n=oA(n,t[0]),r=oA(r,t[1])),function(e,t,n){if(e.shape.length>3||t.shape.length>3)throw new iy("batchDot is not implemented for tensors of 4D or higher rank yet");if(ep.Si.assert(e.shape.length>=2,()=>"batchDot requires the rank of x to be >= 2, but got "+e.shape.length),ep.Si.assert(e.shape.length>=2,()=>"batchDot requires the rank of y to be >= 2, but got "+t.shape.length),"number"==typeof n&&(n=[n,n]),"complex64"===e.dtype||"complex64"===t.dtype)throw new iy("batchDot is not implemented for complex64-type Tensors yet.");let r=e.shape.length,i=t.shape.length;null==n&&(n=[r-1,i-2]);let a=n;return ep.Ei(()=>{let n,o;
17if(r>i){n=r-i;let e=[];for(let t=0;t<n;++t)e.push(1);t=ep.wh(t,t.shape.concat(e))}else if(i>r){n=i-r;let t=[];for(let e=0;e<n;++e)t.push(1);e=ep.wh(e,e.shape.concat(t))}else n=0;if(2===e.shape.length&&2===t.shape.length)o=a[0]===a[1]?ep.qi(ep.Gg(e,t),a[0]):ep.qi(ep.Gg(ep.Ji(e,[1,0]),t),a[1]);else{let n=a[0]!==e.shape.length-1,r=a[1]===t.shape.length-1;o=ep.qg(e,t,n,r)}if(n>0){let e;e=r>i?r+i-3:r-1;let t=[];for(let r=e;r<e+n;++r)t.push(r);o=ep.ki(o,t)}return 1===o.shape.length&&(o=ep.tf(o,1)),o})}(n,r,t)}interpretAxes(e,t){return Array.isArray(this.axes)?this.axes:[lZ(this.axes,e.length),lZ(this.axes,t.length)]}computeOutputShape(e){ep.Si.assert(Array.isArray(e)&&2===e.length&&Array.isArray(e[0])&&Array.isArray(e[1]),()=>"A `Dot` layer should be called on a list of exactly 2 inputs.");let t=e[0].slice(),n=e[1].slice();if(t.length>3||n.length>3)throw new iy("Dot layer does not support tensors of 4D or higher rank yet.");let r=this.interpretAxes(t,n);t.splice(r[0],1),n.splice(r[1],1),n.splice(0,1);let i=t.concat(n);return 1===i.length&&i.push(1),i}computeMask(e,t){return null}getConfig(){let e={axes:this.axes,normalize:this.normalize};return Object.assign(e,super.getConfig()),e}}l0.className="Dot",ep.Lh.registerClass(l0);class l1 extends aX{constructor(e){super(e),this.supportsMasking=!0,this.stddev=e.stddev}computeOutputShape(e){return e}getConfig(){let e=super.getConfig(),t={stddev:this.stddev};return Object.assign(t,e),t}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t);let n=aU(e);return af(()=>Object(ep.Ud)(ao(n.shape,0,this.stddev),n),()=>n,t.training||!1)})}}l1.className="GaussianNoise",ep.Lh.registerClass(l1);class l2 extends aX{constructor(e){super(e),this.supportsMasking=!0,this.rate=e.rate}computeOutputShape(e){return e}getConfig(){let e=super.getConfig(),t={rate:this.rate};return Object.assign(t,e),t}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t);let n=aU(e);return this.rate>0&&this.rate<1?af(()=>{let e=Math.sqrt(this.rate/(1-this.rate));return Object(ep.Gg)(n,ao(n.shape,1,e))},()=>n,t.training||!1):n})}}l2.className="GaussianDropout",ep.Lh.registerClass(l2);class l3 extends aX{constructor(e){super(e),this.supportsMasking=!0,this.rate=e.rate,this.noiseShape=e.noiseShape}_getNoiseShape(e){return this.noiseShape||aU(e).shape}computeOutputShape(e){return e}getConfig(){let e=super.getConfig(),t={rate:this.rate};return Object.assign(t,e),t}call(e,t){return Object(ep.Ei)(()=>{if(this.rate<1&&this.rate>0){let n=this._getNoiseShape(e);return af(()=>{let t=aU(e),r=-1.7580993408473766,i=Object(ep.Nf)(Object(ep.kh)(n),this.rate);i=i7(i,"float32");let a=((1-this.rate)*(1+this.rate*r**2))**-.5,o=-a*r*this.rate,s=Object(ep.Ud)(Object(ep.Gg)(t,i),Object(ep.Gg)(Object(ep.Ud)(i,-1),r));return Object(ep.Ud)(Object(ep.Gg)(s,a),o)},()=>aU(e),t.training||!1)}return e})}}function l4(e,t,n,r,i,a=.001){let o;if(2===e.rank)o=ep.le(e,t,n,r,i,a);else if(3===e.rank)o=ep.me(e,t,n,r,i,a);else{if(4!==e.rank)throw new iy(`batchNormalization is not implemented for array of rank ${e.rank} yet`);o=ep.ne(e,t,n,r,i,a)}return o}function l6(e,t,n,r,i=.001){return ep.Si.arraysEqual(r.slice().sort(),i5(0,e.rank-1))?function(e,t,n,r,i=.001){return Object(ep.Ei)(()=>{let a=ep.Eg(e,r),o=a.mean,s=a.variance;return[l4(e,o,s,n,t,i),o,s]})}(e,t,n,r,i):function(e,t,n,r,i=.001){return Object(ep.Ei)(()=>{let a=ep.Eg(e,r),o=a.mean,s=a.variance,l=[];for(let t of i5(0,e.rank))-1!==r.indexOf(t)?l.push(1):l.push(e.shape[t]);let u=Object(ep.wh)(o,l),c=Object(ep.wh)(s,l),p=null==t?null:Object(ep.wh)(t,l);return[l4(e,u,c,null==n?null:Object(ep.wh)(n,l),p,i),o,s]})}(e,t,n,r,i)}l3.className="AlphaDropout",ep.Lh.registerClass(l3);class l5 extends aX{constructor(e){null==e&&(e={}),super(e),this.supportsMasking=!0,this.axis=null==e.axis?-1:e.axis,this.momentum=null==e.momentum?.99:e.momentum,this.epsilon=null==e.epsilon?.001:e.epsilon,this.center=null==e.center||e.center,this.scale=null==e.scale||e.scale,this.betaInitializer=aA(e.betaInitializer||"zeros"),this.gammaInitializer=aA(e.gammaInitializer||"ones"),this.movingMeanInitializer=aA(e.movingMeanInitializer||"zeros"),this.movingVarianceInitializer=aA(e.movingVarianceInitializer||"ones"),this.betaConstraint=oi(e.betaConstraint),this.gammaConstraint=oi(e.gammaConstraint),this.betaRegularizer=s3(e.betaRegularizer),this.gammaRegularizer=s3(e.gammaRegularizer)}build(e){e=aP(e);let t=this.axis>=0?this.axis:this.axis+e.length,n=e[t];if(null==n)throw new im(`Axis ${t} of input tensor should have a defined dimension but the layer received an input with shape `+JSON.stringify(e)+".");
17this.inputSpec=[new aG({ndim:e.length,axes:{[t]:n}})];let r=[n];this.scale&&(this.gamma=this.addWeight("gamma",r,null,this.gammaInitializer,this.gammaRegularizer,!0,this.gammaConstraint)),this.center&&(this.beta=this.addWeight("beta",r,null,this.betaInitializer,this.betaRegularizer,!0,this.betaConstraint)),this.movingMean=this.addWeight("moving_mean",r,null,this.movingMeanInitializer,null,!1),this.movingVariance=this.addWeight("moving_variance",r,null,this.movingVarianceInitializer,null,!1),this.built=!0}call(e,t){return Object(ep.Ei)(()=>{let n=null!=t.training&&t.training,r=aU(e),i=r.shape,a=i.length,o=i5(0,a),s=this.axis>=0?this.axis:this.axis+a;o.splice(s,1);let l=iO(1,a);l[s]=i[s];let u=o.slice();u.sort();let c=!ep.Si.arraysEqual(u,i5(0,a).slice(0,a-1));if(!n)return(()=>{if(c){let e=Object(ep.wh)(this.movingMean.read(),l),t=Object(ep.wh)(this.movingVariance.read(),l);return l4(r,e,t,this.center?Object(ep.wh)(this.beta.read(),l):null,this.scale?Object(ep.wh)(this.gamma.read(),l):null,this.epsilon)}return l4(r,this.movingMean.read(),this.movingVariance.read(),null==this.beta?null:this.beta.read(),null==this.gamma?null:this.gamma.read(),this.epsilon)})();let[p,d,f]=l6(r,this.gamma.read(),this.beta.read(),o,this.epsilon),h=(e,t,n)=>{ep.Ei(()=>{let r=1-n,i=e.read(),a=ep.Gg(ep.pi(i,t),r);e.write(ep.pi(i,a))})};return(()=>{h(this.movingMean,d,this.momentum),h(this.movingVariance,f,this.momentum)})(),p})}getConfig(){let e={axis:this.axis,momentum:this.momentum,epsilon:this.epsilon,center:this.center,scale:this.scale,betaInitializer:aC(this.betaInitializer),gammaInitializer:aC(this.gammaInitializer),movingMeanInitializer:aC(this.movingMeanInitializer),movingVarianceInitializer:aC(this.movingVarianceInitializer),betaRegularizer:s1(this.betaRegularizer),gammaRegularizer:s1(this.gammaRegularizer),betaConstraint:on(this.betaConstraint),gammaConstraint:on(this.gammaConstraint)};return Object.assign(e,super.getConfig()),e}}l5.className="BatchNormalization",ep.Lh.registerClass(l5);class l8 extends aX{constructor(e){if(null==e&&(e={}),super(e),this.axis=null==e.axis?-1:e.axis,"number"==typeof this.axis){if(!Number.isInteger(this.axis))throw Error("Expected axis to be an integer, but received "+this.axis)}else{if(!Array.isArray(this.axis))throw Error("Expected axis to be an integer or an array of integers, but received "+JSON.stringify(this.axis));for(let e of this.axis)if(!Number.isInteger(e))throw Error("Expected axis to be an array of integers, but received "+JSON.stringify(this.axis))}this.epsilon=null==e.epsilon?.001:e.epsilon,this.center=null==e.center||e.center,this.scale=null==e.scale||e.scale,this.betaInitializer=aA(e.betaInitializer||"zeros"),this.gammaInitializer=aA(e.gammaInitializer||"ones"),this.betaRegularizer=s3(e.betaRegularizer),this.gammaRegularizer=s3(e.gammaRegularizer),this.supportsMasking=!0}build(e){let t=(e=aP(e)).length;"number"==typeof this.axis&&(this.axis=[this.axis]);for(let e=0;e<this.axis.length;++e)this.axis[e]<0&&(this.axis[e]+=t);for(let e of this.axis)if(e<0||e>=t)throw Error("Invalid axis: "+e);if(this.axis.length!==iR(this.axis).length)throw Error("Found duplicate axes in: "+this.axis);let n=this.axis.map(t=>e[t]);this.scale?this.gamma=this.addWeight("gamma",n,"float32",this.gammaInitializer,this.gammaRegularizer,!0):this.gamma=null,this.center?this.beta=this.addWeight("beta",n,"float32",this.betaInitializer,this.betaRegularizer,!0):this.beta=null,this.built=!0}call(e,t){let n=aU(e),r=n.shape,i=r.length;return Object(ep.Ei)(()=>{let{mean:e,variance:t}=Object(ep.Eg)(n,this.axis,!0),a=iO(1,i);for(let e of this.axis)a[e]=r[e];let o=e=>null!=e&&e.shape.length!==i?ep.wh(e,a):e,s=this.scale?o(this.gamma.read()):null,l=this.center?o(this.beta.read()):null,u=[],c=[];for(let e=0;e<i;++e)-1!==this.axis.indexOf(e)?(u.push(r[e]),c.push(1)):(u.push(1),c.push(r[e]));return e=ep.Fi(e,u),t=ep.Fi(t,u),null!=s&&(s=ep.Fi(s,c)),null!=l&&(l=ep.Fi(l,c)),l4(n,e,t,l,s,this.epsilon)})}getConfig(){let e={axis:this.axis,epsilon:this.epsilon,center:this.center,scale:this.scale,betaInitializer:aC(this.betaInitializer),gammaInitializer:aC(this.gammaInitializer),betaRegularizer:s1(this.betaRegularizer),gammaRegularizer:s1(this.gammaRegularizer)};return Object.assign(e,super.getConfig()),e}}l8.className="LayerNormalization",ep.Lh.registerClass(l8);class l7 extends aX{constructor(e){if(null==e&&(e={}),super(e),this.dataFormat=null==e.dataFormat?"channelsLast":e.dataFormat,null==e.padding)this.padding=[[1,1],[1,1]];else if("number"==typeof e.padding)this.padding=[[e.padding,e.padding],[e.padding,e.padding]];else{let t,n;if(e.padding=e.padding,2!==e.padding.length)throw new im(`ZeroPadding2D expects padding to be a length-2 array, but received a length-${e.padding.length} array.`);if("number"==typeof e.padding[0])t=[e.padding[0],e.padding[0]],n=[e.padding[1],e.padding[1]];else{if(e.padding=e.padding,2!==e.padding[0].length)throw new im(`ZeroPadding2D expects height padding to be a length-2 array, but received a length-${e.padding[0].length} array.`);if(t=e.padding[0],2!==e.padding[1].length)throw new im(`ZeroPadding2D expects width padding to be a length-2 array, but received a length-${e.padding[1].length} array.`);n=e.padding[1]}this.padding=[t,n]}
vendor: 14,690 bytes, line 17
17this.inputSpec=[new aG({ndim:4})]}computeOutputShape(e){let t,n;return e=aP(e),"channelsFirst"===this.dataFormat?(t=null!=e[2]&&e[2]>=0?e[2]+this.padding[0][0]+this.padding[0][1]:null,n=null!=e[3]&&e[3]>=0?e[3]+this.padding[1][0]+this.padding[1][1]:null,[e[0],e[1],t,n]):(t=null!=e[1]&&e[1]>=0?e[1]+this.padding[0][0]+this.padding[0][1]:null,n=null!=e[2]&&e[2]>=0?e[2]+this.padding[1][0]+this.padding[1][1]:null,[e[0],t,n,e[3]])}call(e,t){return Object(ep.Ei)(()=>{var t,n,r;return t=aU(e),n=this.padding,r=this.dataFormat,Object(ep.Ei)(()=>{let e;if(4!==t.rank)throw new im("temporalPadding expects input tensor to be 4-D, but received a "+t.rank+"-D tensor.");if(null==n&&(n=[[1,1],[1,1]]),2!==n.length||2!==n[0].length||2!==n[1].length)throw new im("spatial2dPadding expects `padding` to be an Array of two Arrays, each of which is an Array of two integers.");if(null==r&&(r="channelsLast"),"channelsLast"!==r&&"channelsFirst"!==r)throw new im(`Unknown data format: ${r}. Supported data formats are 'channelsLast' and 'channelsFirst.`);return e="channelsFirst"===r?[[0,0],[0,0],n[0],n[1]]:[[0,0],n[0],n[1],[0,0]],ep.Sg(t,e)})})}getConfig(){let e={padding:this.padding,dataFormat:this.dataFormat};return Object.assign(e,super.getConfig()),e}}function l9(e,t,n,r,i,a){return Object(ep.Ei)(()=>{let o;iK(i),iY(a),iX(r),null==n&&(n=[1,1]),null==r&&(r="valid"),null==i&&(i="channelsLast"),null==a&&(a="max"),e=lr(e,i);let s="same"===r?"same":"valid";return o="max"===a?ep.tg(e,t,n,s):ep.fe(e,t,n,s),"channelsFirst"===i&&(o=ep.Ji(o,[0,3,1,2])),o})}function ue(e,t,n,r,i,a){return Object(ep.Ei)(()=>{let o;iK(i),iY(a),iX(r),null==n&&(n=[1,1,1]),null==r&&(r="valid"),null==i&&(i="channelsLast"),null==a&&(a="max"),e=li(e,i);let s="same"===r?"same":"valid";return o="max"===a?ep.ug(e,t,n,s):ep.ge(e,t,n,s),"channelsFirst"===i&&(o=ep.Ji(o,[0,4,1,2,3])),o})}l7.className="ZeroPadding2D",ep.Lh.registerClass(l7);class ut extends aX{constructor(e){if(null==e.poolSize&&(e.poolSize=2),super(e),"number"==typeof e.poolSize)this.poolSize=[e.poolSize];else{if(!Array.isArray(e.poolSize)||1!==e.poolSize.length||"number"!=typeof e.poolSize[0])throw new im("poolSize for 1D convolutional layer must be a number or an Array of a single number, but received "+JSON.stringify(e.poolSize));this.poolSize=e.poolSize}if(iM(this.poolSize,"poolSize"),null==e.strides)this.strides=this.poolSize;else if("number"==typeof e.strides)this.strides=[e.strides];else{if(!Array.isArray(e.strides)||1!==e.strides.length||"number"!=typeof e.strides[0])throw new im("strides for 1D convolutional layer must be a number or an Array of a single number, but received "+JSON.stringify(e.strides));this.strides=e.strides}iM(this.strides,"strides"),this.padding=null==e.padding?"valid":e.padding,iX(this.padding),this.inputSpec=[new aG({ndim:3})]}computeOutputShape(e){let t=lt((e=aP(e))[1],this.poolSize[0],this.padding,this.strides[0]);return[e[0],t,e[2]]}call(e,t){return Object(ep.Ei)(()=>{this.invokeCallHook(e,t),e=i9(aU(e),2);let n=this.poolingFunction(aU(e),[this.poolSize[0],1],[this.strides[0],1],this.padding,"channelsLast");return ep.ki(n,[2])})}getConfig(){let e={poolSize:this.poolSize,padding:this.padding,strides:this.strides};return Object.assign(e,super.getConfig()),e}}class un extends ut{constructor(e){super(e)}poolingFunction(e,t,n,r,i){return iK(i),iX(r),l9(e,t,n,r,i,"max")}}un.className="MaxPooling1D",ep.Lh.registerClass(un);class ur extends ut{constructor(e){super(e)}poolingFunction(e,t,n,r,i){return iK(i),iX(r),l9(e,t,n,r,i,"avg")}}ur.className="AveragePooling1D",ep.Lh.registerClass(ur);class ui extends aX{constructor(e){if(null==e.poolSize&&(e.poolSize=[2,2]),super(e),this.poolSize=Array.isArray(e.poolSize)?e.poolSize:[e.poolSize,e.poolSize],null==e.strides)this.strides=this.poolSize;else if(Array.isArray(e.strides)){if(2!==e.strides.length)throw new im("If the strides property of a 2D pooling layer is an Array, it is expected to have a length of 2, but received length "+e.strides.length+".");this.strides=e.strides}else this.strides=[e.strides,e.strides];iM(this.poolSize,"poolSize"),iM(this.strides,"strides"),this.padding=null==e.padding?"valid":e.padding,this.dataFormat=null==e.dataFormat?"channelsLast":e.dataFormat,iK(this.dataFormat),iX(this.padding),this.inputSpec=[new aG({ndim:4})]}computeOutputShape(e){e=aP(e);let t="channelsFirst"===this.dataFormat?e[2]:e[1],n="channelsFirst"===this.dataFormat?e[3]:e[2];return t=lt(t,this.poolSize[0],this.padding,this.strides[0]),n=lt(n,this.poolSize[1],this.padding,this.strides[1]),"channelsFirst"===this.dataFormat?[e[0],e[1],t,n]:[e[0],t,n,e[3]]}call(e,t){return Object(ep.Ei)(()=>(this.invokeCallHook(e,t),this.poolingFunction(aU(e),this.poolSize,this.strides,this.padding,this.dataFormat)))}getConfig(){let e={poolSize:this.poolSize,padding:this.padding,strides:this.strides,dataFormat:this.dataFormat};return Object.assign(e,super.getConfig()),e}}class ua extends ui{constructor(e){super(e)}poolingFunction(e,t,n,r,i){return iK(i),iX(r),l9(e,t,n,r,i,"max")}}ua.className="MaxPooling2D",ep.Lh.registerClass(ua);class uo extends ui{constructor(e){super(e)}poolingFunction(e,t,n,r,i){return iK(i),iX(r),l9(e,t,n,r,i,"avg")}}uo.className="AveragePooling2D",ep.Lh.registerClass(uo);class us extends aX{constructor(e){if(null==e.poolSize&&(e.poolSize=[2,2,2]),super(e),this.poolSize=Array.isArray(e.poolSize)?e.poolSize:[e.poolSize,e.poolSize,e.poolSize],null==e.strides)this.strides=this.poolSize;else if(Array.isArray(e.strides)){if(3!==e.strides.length)throw new im("If the strides property of a 3D pooling layer is an Array, it is expected to have a length of 3, but received length "+e.strides.length+".");this.strides=e.strides}else this.strides=[e.strides,e.strides,e.strides];iM(this.poolSize,"poolSize"),iM(this.strides,"strides"),this.padding=null==e.padding?"valid":e.padding,this.dataFormat=null==e.dataFormat?"channelsLast":e.dataFormat,iK(this.dataFormat),iX(this.padding),this.inputSpec=[new aG({ndim:5})]}computeOutputShape(e){e=aP(e);let t="channelsFirst"===this.dataFormat?e[2]:e[1],n="channelsFirst"===this.dataFormat?e[3]:e[2],r="channelsFirst"===this.dataFormat?e[4]:e[3];return t=lt(t,this.poolSize[0],this.padding,this.strides[0]),n=lt(n,this.poolSize[1],this.padding,this.strides[1]),r=lt(r,this.poolSize[2],this.padding,this.strides[2]),"channelsFirst"===this.dataFormat?[e[0],e[1],t,n,r]:[e[0],t,n,r,e[4]]}call(e,t){return Object(ep.Ei)(()=>(this.invokeCallHook(e,t),this.poolingFunction(aU(e),this.poolSize,this.strides,this.padding,this.dataFormat)))}getConfig(){let e={poolSize:this.poolSize,padding:this.padding,strides:this.strides,dataFormat:this.dataFormat};return Object.assign(e,super.getConfig()),e}}class ul extends us{constructor(e){super(e)}poolingFunction(e,t,n,r,i){return iK(i),iX(r),ue(e,t,n,r,i,"max")}}ul.className="MaxPooling3D",ep.Lh.registerClass(ul);class uu extends us{constructor(e){super(e)}poolingFunction(e,t,n,r,i){return iK(i),iX(r),ue(e,t,n,r,i,"avg")}}uu.className="AveragePooling3D",ep.Lh.registerClass(uu);class uc extends aX{constructor(e){super(e),this.inputSpec=[new aG({ndim:3})]}computeOutputShape(e){return[e[0],e[2]]}call(e,t){throw new iy}}class up extends uc{constructor(e){super(e||{})}call(e,t){return Object(ep.Ei)(()=>{let t=aU(e);return ep.xg(t,1)})}}up.className="GlobalAveragePooling1D",ep.Lh.registerClass(up);class ud extends uc{constructor(e){super(e||{})}call(e,t){return Object(ep.Ei)(()=>{let t=aU(e);return ep.sg(t,1)})}}ud.className="GlobalMaxPooling1D",ep.Lh.registerClass(ud);class uf extends aX{constructor(e){super(e),this.dataFormat=null==e.dataFormat?"channelsLast":e.dataFormat,iK(this.dataFormat),this.inputSpec=[new aG({ndim:4})]}computeOutputShape(e){return"channelsLast"===this.dataFormat?[e[0],e[3]]:[e[0],e[1]]}call(e,t){throw new iy}getConfig(){let e={dataFormat:this.dataFormat};return Object.assign(e,super.getConfig()),e}}class uh extends uf{call(e,t){return Object(ep.Ei)(()=>{let t=aU(e);return"channelsLast"===this.dataFormat?ep.xg(t,[1,2]):ep.xg(t,[2,3])})}}uh.className="GlobalAveragePooling2D",ep.Lh.registerClass(uh);class ug extends uf{call(e,t){return Object(ep.Ei)(()=>{let t=aU(e);return"channelsLast"===this.dataFormat?ep.sg(t,[1,2]):ep.sg(t,[2,3])})}}ug.className="GlobalMaxPooling2D",ep.Lh.registerClass(ug);class ub extends aX{constructor(e){super(e),this.layer=e.layer}build(e){this.built=!0}get trainable(){return null!=this.layer&&this.layer.trainable}set trainable(e){null!=this.layer&&(this.layer.trainable=e)}get trainableWeights(){return this.layer.trainableWeights}get nonTrainableWeights(){return this.layer.nonTrainableWeights}get updates(){return this.layer._updates}get losses(){return this.layer.losses}getWeights(){return this.layer.getWeights()}setWeights(e){this.layer.setWeights(e)}getConfig(){let e={layer:{className:this.layer.getClassName(),config:this.layer.getConfig()}};return Object.assign(e,super.getConfig()),e}setFastWeightInitDuringBuild(e){super.setFastWeightInitDuringBuild(e),null!=this.layer&&this.layer.setFastWeightInitDuringBuild(e)}static fromConfig(e,t,n={}){let r=oC(t.layer,n);delete t.layer;let i={layer:r};return Object.assign(i,t),new e(i)}}class um extends ub{constructor(e){super(e),this.supportsMasking=!0}build(e){if((e=aP(e)).length<3)throw new im("TimeDistributed layer expects an input shape >= 3D, but received input shape "+JSON.stringify(e));this.inputSpec=[{shape:e}];let t=[e[0]].concat(e.slice(2));this.layer.built||(this.layer.build(t),this.layer.built=!0),super.build(e)}computeOutputShape(e){let t=[(e=aP(e))[0]].concat(e.slice(2)),n=this.layer.computeOutputShape(t),r=e[1];return[n[0],r].concat(n.slice(1))}call(e,t){return Object(ep.Ei)(()=>lO((e,n)=>[aU(this.layer.call(e,t)),[]],e=aU(e),[],!1,null,null,!1,!0)[1])}}um.className="TimeDistributed",ep.Lh.registerClass(um);class uy extends ub{constructor(e){super(e);let t=e.layer.getConfig(),n={};n.className=e.layer.getClassName(),n.config=t,this.forwardLayer=oC(n),t.goBackwards=!0!==t.goBackwards;let r={};if(r.className=e.layer.getClassName(),r.config=t,this.backwardLayer=oC(r),this.forwardLayer.name="forward_"+this.forwardLayer.name,this.backwardLayer.name="backward_"+this.backwardLayer.name,this.mergeMode=void 0===e.mergeMode?"concat":e.mergeMode,iC(iH,"BidirectionalMergeMode",this.mergeMode),e.weights)throw new iy("weights support is not implemented for Bidirectional layer yet.");this._stateful=e.layer.stateful,this.returnSequences=e.layer.returnSequences,this.returnState=e.layer.returnState,this.supportsMasking=!0,this._trainable=!0,this.inputSpec=e.layer.inputSpec,this.numConstants=null}get trainable(){return this._trainable}set trainable(e){this._trainable=e,null!=this.forwardLayer&&(this.forwardLayer.trainable=e),null!=this.backwardLayer&&(this.backwardLayer.trainable=e)}getWeights(){return this.forwardLayer.getWeights().concat(this.backwardLayer.getWeights())}setWeights(e){let t=Math.floor(e.length/2);this.forwardLayer.setWeights(e.slice(0,t)),this.backwardLayer.setWeights(e.slice(t))}computeOutputShape(e){let t,n,r,i=this.forwardLayer.computeOutputShape(e);return Array.isArray(i)&&Array.isArray(i[0])||(i=[i]),this.returnState&&(r=i.slice(1)),t=i[0],"concat"===this.mergeMode?(t[t.length-1]*=2,n=[t]):n=null==this.mergeMode?[t,t.slice()]:[t],this.returnState?null==this.mergeMode?n.concat(r).concat(r.slice()):[t].concat(r).concat(r.slice()):iN(n)}apply(e,t){let n=null==t?null:t.initialState,r=null==t?null:t.constants;null==t&&(t={});let i=lv(e,n,r,this.numConstants);if(e=i.inputs,n=i.initialState,r=i.constants,Array.isArray(e)&&(n=e.slice(1),e=e[0]),(null==n||0===n.length)&&null==r)return super.apply(e,t);let a=[],o=[];if(null!=n){let e=n.length;if(e%2>0)throw new im("When passing `initialState` to a Bidrectional RNN, the state should be an Array containing the states of the underlying RNNs.");t.initialState=n,a.push(...n);let r=n.map(e=>new aG({shape:e.shape}));this.forwardLayer.stateSpec=r.slice(0,e/2),this.backwardLayer.stateSpec=r.slice(e/2),o.push(...r)}if(null!=r)throw new iy("Support for constants in Bidirectional layers is not implemented yet.");let s=a[0]instanceof aV;for(let e of a)if(e instanceof aV!==s)throw new im("The initial state of a Bidirectional layer cannot be specified as a mix of symbolic and non-symbolic tensors");if(s){let n=[e].concat(a),r=this.inputSpec.concat(o),i=this.inputSpec;this.inputSpec=r;let s=super.apply(n,t);return this.inputSpec=i,s}return super.apply(e,t)}call(e,t){return Object(ep.Ei)(()=>{let n,r,i,a,o=t.initialState;if(null==o)n=this.forwardLayer.call(e,t),r=this.backwardLayer.call(e,t);else{let i=o.slice(0,o.length/2),a=o.slice(o.length/2);n=this.forwardLayer.call(e,Object.assign(t,{initialState:i})),r=this.backwardLayer.call(e,Object.assign(t,{initialState:a}))}return this.returnState&&(Array.isArray(n)&&(i=n.slice(1).concat(r.slice(1))),n=n[0],r=r[0]),this.returnSequences&&(r=ep.xh(r,1)),"concat"===this.mergeMode?a=ar([n,r]):"sum"===this.mergeMode?a=ep.Ud(n,r):"ave"===this.mergeMode?a=ep.Gg(.5,ep.Ud(n,r)):"mul"===this.mergeMode?a=ep.Gg(n,r):null==this.mergeMode&&(a=[n,r]),this.returnState?null==this.mergeMode?a.concat(i):[a].concat(i):a})}resetStates(e){this.forwardLayer.resetStates(),this.backwardLayer.resetStates()}build(e){iJ(this.forwardLayer.name,()=>{this.forwardLayer.build(e)}),iJ(this.backwardLayer.name,()=>{this.backwardLayer.build(e)}),this.built=!0}computeMask(e,t){let n;if(Array.isArray(t)&&(t=t[0]),n=this.returnSequences?null==this.mergeMode?[t,t]:t:null==this.mergeMode?[null,null]:null,this.returnState){let e=this.forwardLayer.states.map(e=>null);return Array.isArray(n)?n.concat(e).concat(e):[n].concat(e).concat(e)}return n}get trainableWeights(){return this.forwardLayer.trainableWeights.concat(this.backwardLayer.trainableWeights)}get nonTrainableWeights(){return this.forwardLayer.nonTrainableWeights.concat(this.backwardLayer.nonTrainableWeights)}setFastWeightInitDuringBuild(e){super.setFastWeightInitDuringBuild(e),null!=this.forwardLayer&&this.forwardLayer.setFastWeightInitDuringBuild(e),null!=this.backwardLayer&&this.backwardLayer.setFastWeightInitDuringBuild(e)}getConfig(){let e={mergeMode:this.mergeMode};return Object.assign(e,super.getConfig()),e}static fromConfig(e,t){let n=oC(t.layer);if(delete t.layer,null!=t.numConstants)throw new iy("Deserialization of a Bidirectional layer with numConstants present is not supported yet.");let r=t;return r.layer=n,new e(r)}}uy.className="Bidirectional",ep.Lh.registerClass(uy);class uS extends aX{constructor(e){super(e),this.scale=e.scale,e.offset?this.offset=e.offset:this.offset=0}getConfig(){let e={scale:this.scale,offset:this.offset};return Object.assign(e,super.getConfig()),e}call(e,t){return Object(ep.Ei)(()=>
17("float32"!==(e=aU(e)).dtype&&(e=i7(e,"float32")),Object(ep.Ud)(Object(ep.Gg)(e,this.scale),this.offset)))}}uS.className="Rescaling",ep.Lh.registerClass(uS);let{resizeBilinear:uv,cropAndResize:uO}=ep.Qf;class ux extends aX{constructor(e){super(e),this.height=e.height,this.width=e.width}centerCrop(e,t,n,r,i,a,o,s){return Object(ep.Ei)(()=>{let l,u=!1,c=[t/a,n/o,(r+t)/a,(i+n)/o],p=[];3===e.rank?(u=!0,l=Object(ep.li)([e])):l=e;for(let e=0;e<l.shape[0];e++)p.push(c);let d=uO(l,Object(ep.ui)(p,[p.length,4]),Object(ep.mh)(0,p.length,1,"int32"),[r,i],"nearest");return i7(u?aU(Object(ep.Pi)(d)):d,s)})}upsize(e,t,n,r){return Object(ep.Ei)(()=>i7(uv(e,[t,n]),r))}call(e,t){return Object(ep.Ei)(()=>{let t=aU(e),n=t.dtype,r=t.shape,i=r[r.length-3],a=r[r.length-2],o=0;i!==this.height&&(o=Math.floor((i-this.height)/2));let s=0;return a!==this.width&&0===(s=Math.floor((a-this.width)/2))&&(s=1),o>=0&&s>=0?this.centerCrop(t,o,s,this.height,this.width,i,a,n):this.upsize(e,this.height,this.width,n)})}getConfig(){let e={height:this.height,width:this.width};return Object.assign(e,super.getConfig()),e}computeOutputShape(e){let t=(e=aP(e)).length-3,n=e.length-2;return e[t]=this.height,e[n]=this.width,e}}ux.className="CenterCrop",ep.Lh.registerClass(ux);class uI extends aX{constructor(e){super(e),this.numTokens=e.numTokens,e.outputMode?this.outputMode=e.outputMode:this.outputMode="multiHot"}getConfig(){let e={numTokens:this.numTokens,outputMode:this.outputMode};return Object.assign(e,super.getConfig()),e}computeOutputShape(e){return null==(e=aP(e))?[this.numTokens]:("oneHot"===this.outputMode&&1!==e[e.length-1]?e.push(this.numTokens):e[e.length-1]=this.numTokens,e)}call(e,t){return Object(ep.Ei)(()=>{let n;if("int32"!==(e=aU(e)).dtype&&(e=i7(e,"int32")),void 0!==t.countWeights){if("count"!==this.outputMode)throw new im("countWeights is not used when outputMode !== count.\n Received countWeights="+t.countWeights);n=aU(t.countWeights)}let r=Object(ep.sg)(e),i=Object(ep.Ag)(e),a=Object(ep.Mf)(this.numTokens,r).bufferSync().get(0),o=Object(ep.Nf)(i,0).bufferSync().get(0);if(!a||!o)throw new im("Input values must be between 0 < values <= numTokens with numTokens="+this.numTokens);return function(e,t,n,r){let i,a=aU(e);if("int32"!==a.dtype&&(a=i7(a,"int32")),"int"===t)return a;let o=a.shape;if(0===a.rank&&(a=Object(ep.tf)(a,-1)),"oneHot"===t&&1!==a.shape[a.shape.length-1]&&(a=Object(ep.tf)(a,-1)),a.rank>2)throw new im(`When outputMode is not int, maximum output rank is 2 Received outputMode ${t} and input shape ${o} which would result in output rank ${a.rank}.`);let s=["multiHot","oneHot"].includes(t),l=a;if(i=void 0!==r&&"count"===t?Object(ep.Te)(l,r,n,s):Object(ep.Te)(l,[],n,s),"tfIdf"!==t)return i;if(r)return Object(ep.Gg)(i,r);throw new im("When outputMode is 'tfIdf', weights must be provided.")}(e,this.outputMode,this.numTokens,n)})}}uI.className="CategoryEncoding",ep.Lh.registerClass(uI);let uN=new Set(["bilinear","nearest"]);class uk extends aX{constructor(e){if(super(e),this.height=e.height,this.width=e.width,e.interpolation){if(!uN.has(e.interpolation))throw new im(`Invalid interpolation parameter: ${e.interpolation} is not implemented`);this.interpolation=e.interpolation}else this.interpolation="bilinear";this.cropToAspectRatio=!!e.cropToAspectRatio}computeOutputShape(e){let t=(e=aP(e))[2];return[this.height,this.width,t]}getConfig(){let e={height:this.height,width:this.width,interpolation:this.interpolation,cropToAspectRatio:this.cropToAspectRatio};return Object.assign(e,super.getConfig()),e}call(e,t){return Object(ep.Ei)(()=>{let t=[this.height,this.width];if("bilinear"===this.interpolation)return ep.Qf.resizeBilinear(e,t,!this.cropToAspectRatio);if("nearest"===this.interpolation)return ep.Qf.resizeNearestNeighbor(e,t,!this.cropToAspectRatio);throw Error(`Interpolation is ${this.interpolation} but only ${[...uN]} are supported`)})}}uk.className="Resizing",ep.Lh.registerClass(uk);class uT{constructor(e){this.seed=e}next(){if(void 0!==this.seed)return this.seed++}}uT.className="RandomSeed";class uw extends aX{constructor(e){super(e),this.randomGenerator=new uT(e.seed)}getConfig(){let e={seed:this.randomGenerator.seed};return Object.assign(e,super.getConfig()),e}}uw.className="BaseRandomLayer";let uj=new Set(["bilinear","nearest"]);class uF extends uw{constructor(e){super(e);let{factor:t,interpolation:n="bilinear"}=e;if(this.factor=t,Array.isArray(this.factor)&&2===this.factor.length)this.widthLower=this.factor[0],this.widthUpper=this.factor[1];else{if(Array.isArray(this.factor)||!(this.factor>0))throw new im(`Invalid factor: ${this.factor}. Must be positive number or tuple of 2 numbers`);this.widthLower=-this.factor,this.widthUpper=this.factor}if(this.widthLower<-1||this.widthUpper<-1)throw new im("factor must have values larger than -1. Got: "+this.factor);if(this.widthUpper<this.widthLower)throw new im(`factor cannot have upper bound less than lower bound. 18 Got upper bound: ${this.widthUpper}. 19 Got lower bound: ${this.widthLower} 20 `);if(n){if(!uj.has(n))throw new im(`Invalid interpolation parameter: ${n} is not implemented`);this.interpolation=n}}getConfig(){let e={factor:this.factor,interpolation:this.interpolation};return Object.assign(e,super.getConfig()),e}computeOutputShape(e){let t=(e=aP(e))[2];return[this.imgHeight,-1,t]}call(e,t){return Object(ep.Ei)(()=>{let t=aU(e);this.imgHeight=t.shape[t.shape.length-3];let n=t.shape[t.shape.length-2];this.widthFactor=Object(ep.kh)([1],1+this.widthLower,1+this.widthUpper,"float32",this.randomGenerator.next());let r=this.widthFactor.dataSync()[0]*n;r=Math.round(r);let i=[this.imgHeight,r];switch(this.interpolation){case"bilinear":return ep.Qf.resizeBilinear(e,i);case"nearest":return ep.Qf.resizeNearestNeighbor(e,i);default:throw Error(`Interpolation is ${this.interpolation} 21 but only ${[...uj]} are supported`)}})}}function u_(e){return new aY(e)}function uE(e){return new s8(e)}function uR(e){return new s4(e)}function uD(e){return new s6(e)}function uC(e){return new s5(e)}function uA(e){return new s9(e)}function uM(e){return new s7(e)}function u$(e){return new lb(e)}function uU(e){return new lc(e)}function uP(e){return new ld(e)}function uB(e){return new lp(e)}function uL(e){return new lf(e)}function uW(e){return new lg(e)}function uz(e){return new lm(e)}function uG(e){return new ly(e)}function uV(e){return new lS(e)}function uH(e){return new lB(e)}function uq(e){return new lU(e)}function uK(e){return new lM(e)}function uX(e){return new l$(e)}function uY(e){return new lP(e)}function uQ(e){return new lL(e)}function uJ(e){return new lW(e)}function uZ(e){return new lz(e)}function u0(e){return new lV(e)}function u1(e){return new lq(e)}function u2(e){return new lX(e)}function u3(e){return new lJ(e)}function u4(e){return new lY(e)}function u6(e){return new lQ(e)}function u5(e){return new lK(e)}function u8(e){return new l0(e)}function u7(e){return new l5(e)}function u9(e){return new l8(e)}function ce(e){return new l7(e)}function ct(e){return new ur(e)}function cn(e){return ct(e)}function cr(e){return ct(e)}function ci(e){return new uo(e)}function ca(e){return ci(e)}function co(e){return ci(e)}function cs(e){return new uu(e)}function cl(e){return cs(e)}function cu(e){return cs(e)}function cc(e){return new up(e)}function cp(e){return new uh(e)}function cd(e){return new ud(e)}function cf(e){return new ug(e)}function ch(e){return new un(e)}function cg(e){return new ua(e)}function cb(e){return new ul(e)}function cm(e){return new lw(e)}function cy(e){return new lT(e)}function cS(e){return new lF(e)}function cv(e){return new lj(e)}function cO(e){return new lk(e)}function cx(e){return new lN(e)}function cI(e){return new lA(e)}function cN(e){return new lC(e)}function ck(e){return new lx(e)}function cT(e){return new l_(e)}function cw(e){return new uy(e)}function cj(e){return new um(e)}
21uF.className="RandomWidth",ep.Lh.registerClass(uF);let cF=cd,c_=cf,cE=ch,cR=cg;function cD(e){return new l1(e)}function cC(e){return new l2(e)}function cA(e){return new l3(e)}function cM(e){return new lG(e)}function c$(e){return new uS(e)}function cU(e){return new ux(e)}function cP(e){return new uk(e)}function cB(e){return new uI(e)}function cL(e){return new uF(e)}function cW(e,t){return oq(e,t)}function cz(e,t){return oJ(e,t)}function cG(e,t){return oZ(e,t)}function cV(e,t){return oK(e,t)}function cH(e,t){return o0(e,t)}function cq(e,t){return oY(e,t)}function cK(e,t){return oQ(e,t)}function cX(e,t){return oG(e,t)}function cY(e,t){return o$(e,t)}function cQ(e,t){return oU(e,t)}function cJ(e,t){return oU(e,t)}function cZ(e,t){return oU(e,t)}function c0(e,t){return oM(e,t)}function c1(e,t){return oM(e,t)}function c2(e,t){return oM(e,t)}function c3(e,t){return function(e,t){return Object(ep.Ei)(()=>{let n=e.sub(t).square().sum(),r=e.sub(e.mean()).square().sum();return ep.Fh(1).sub(n.div(r))})}(e,t)}function c4(e){return new sZ(e)}function c6(e){var t;return sQ(t=e),new sZ({l1:null!=t?t.l1:null,l2:0})}function c5(e){var t;return sQ(t=e),new sZ({l2:null!=t?t.l2:null,l1:0})}class c8 extends oT{constructor(){super(...arguments),this.model=null}setModel(e){if(!(e instanceof sx))throw Error("model must be a LayersModel, not some other Container");this.model=e}}function c7(e,t){return e<t}function c9(e,t){return e>t}class pe extends c8{constructor(e){if(super(),null==e&&(e={}),e.restoreBestWeights)throw new iy("restoreBestWeights = True is not implemented in EarlyStopping yet.");this.monitor=e.monitor||"val_loss",this.minDelta=Math.abs(e.minDelta||0),this.patience=e.patience||0,this.verbose=e.verbose||0,this.mode=e.mode||"auto",this.baseline=e.baseline,-1===["auto","min","max"].indexOf(this.mode)&&(console.warn(`EarlyStopping mode '${this.mode}' is invalid. Falling back to mode 'auto'.`),this.mode="auto"),"min"===this.mode?this.monitorFunc=c7:"max"===this.mode||-1!==this.monitor.indexOf("acc")?this.monitorFunc=c9:this.monitorFunc=c7,this.monitorFunc===c7&&(this.minDelta*=-1)}async onTrainBegin(e){this.wait=0,this.stoppedEpoch=0,null!=this.baseline?this.best=this.baseline:this.best=this.monitorFunc===c7?1/0:-1/0}async onEpochEnd(e,t){await oN(t);let n=this.getMonitorValue(t);null!=n&&(this.monitorFunc(n-this.minDelta,this.best)?(this.best=n,this.wait=0):(this.wait++,this.wait>=this.patience&&(this.stoppedEpoch=e,this.model.stopTraining=!0)))}async onTrainEnd(e){this.stoppedEpoch>0&&this.verbose&&console.log(`Epoch ${this.stoppedEpoch}: early stopping.`)}getMonitorValue(e){null==e&&(e={});let t=e[this.monitor];return null==t&&console.warn(`Metric for EarlyStopping ${this.monitor} is not available. Available metrics are: `+Object.keys(e)),t}}let pt={earlyStopping:function(e){return new pe(e)}};Object(ep.of)().registerFlag("KEEP_INTERMEDIATE_TENSORS",()=>!1,e=>{e&&console.warn("Keep intermediate tensors is ON. This will print the values of all intermediate tensors during model inference. Not all models support this mode. For details, check e2e/benchmarks/ model_config.js. This significantly impacts performance.")});var pn=n(83),pr=n(1);class pi{constructor(e,t,n){this.node=e,this.tensorMap=t,this.context=n,this.inputs=[],this.attrs={},this.inputs=e.inputNames.map(e=>this.getInput(e)),null!=e.rawAttrs&&(this.attrs=Object.keys(e.rawAttrs).reduce((e,t)=>(e[t]=this.getAttr(t),e),{}))}getInput(e){return Object(pr.e)(e,this.tensorMap,this.context)}getAttr(e,t){let n=this.node.rawAttrs[e];if(null!=n.tensor)return Object(pr.e)(e,this.tensorMap,this.context);if(null!=n.i||null!=n.f)return Object(pn.f)(this.node.rawAttrs,e,t);if(null!=n.s)return Object(pn.i)(this.node.rawAttrs,e,t);if(null!=n.b)return Object(pn.c)(this.node.rawAttrs,e,t);if(null!=n.shape)return Object(pn.k)(this.node.rawAttrs,e,t);if(null!=n.type)return Object(pn.e)(this.node.rawAttrs,e,t);if(null!=n.list){if(null!=n.list.i||null!=n.list.f)return Object(pn.g)(this.node.rawAttrs,e,t);if(null!=n.list.s)return Object(pn.h)(this.node.rawAttrs,e,t);if(null!=n.list.shape)return Object(pn.j)(this.node.rawAttrs,e,t);if(null!=n.list.b)return Object(pn.b)(this.node.rawAttrs,e,t);if(null!=n.list.type)return Object(pn.d)(this.node.rawAttrs,e,t)}return t}}var pa=n(145),po=n(27);function ps(e,t,n=""){if("number"!=typeof e&&"number"!=typeof t){ep.Si.assert(e.length===t.length,()=>n+` Shapes ${e} and ${t} must match`);for(let r=0;r<e.length;r++){let i=e[r],a=t[r];ep.Si.assert(i<0||a<0||i===a,()=>n+` Shapes ${e} and ${t} must match`)}}}function pl(e){return"number"!=typeof e&&!e.some(e=>e<0)}function pu(e,t,n){let r=pc(e,n),i=!pl(r);if(i&&0===t.length)throw Error("Tried to calculate elements of an empty list with non-fully-defined elementShape: "+r);
21if(i&&t.forEach(e=>{r=pc(e.shape,r)}),!pl(r))throw Error("Non-fully-defined elementShape: "+r);return r}function pc(e,t){if("number"==typeof e)return t;if("number"==typeof t)return e;if(e.length!==t.length)throw Error(`Incompatible ranks during merge: ${e} vs. ${t}`);let n=[];for(let r=0;r<e.length;++r){let i=e[r],a=t[r];if(i>=0&&a>=0&&i!==a)throw Error(`Incompatible shape during merge: ${e} vs. ${t}`);n[r]=i>=0?i:a}return n}class pp{constructor(e,t,n,r,i,a,o){this.name=e,this.dtype=t,this.maxSize=n,this.elementShape=r,this.identicalElementShapes=i,this.dynamicSize=a,this.clearAfterRead=o,this.tensors=[],this.closed_=!1,this.idTensor=Object(ep.Fh)(0),Object(ep.Xf)(this.idTensor)}get id(){return this.idTensor.id}get closed(){return this.closed_}clearAndClose(e){this.tensors.forEach(t=>{null!=e&&e.has(t.tensor.id)||t.tensor.dispose()}),this.tensors=[],this.closed_=!0,this.idTensor.dispose()}size(){return this.tensors.length}read(e){if(this.closed_)throw Error(`TensorArray ${this.name} has already been closed.`);if(e<0||e>=this.size())throw Error(`Tried to read from index ${e}, but array size is: ${this.size()}`);let t=this.tensors[e];if(t.cleared)throw Error(`TensorArray ${this.name}: Could not read index ${e} twice because it was cleared after a previous read (perhaps try setting clear_after_read = false?).`);return this.clearAfterRead&&(t.cleared=!0),t.read=!0,t.tensor}readMany(e){return e.map(e=>this.read(e))}write(e,t){if(this.closed_)throw Error(`TensorArray ${this.name} has already been closed.`);if(e<0||!this.dynamicSize&&e>=this.maxSize)throw Error(`Tried to write to index ${e}, but array is not resizeable and size is: ${this.maxSize}`);let n=this.tensors[e]||{};if(t.dtype!==this.dtype)throw Error(`TensorArray ${this.name}: Could not write to TensorArray index ${e}, 22 because the value dtype is ${t.dtype}, but TensorArray dtype is ${this.dtype}.`);if(0!==this.size()||null!=this.elementShape&&0!==this.elementShape.length||(this.elementShape=t.shape),ps(this.elementShape,t.shape,`TensorArray ${this.name}: Could not write to TensorArray index ${e}.`),n.read)throw Error(`TensorArray ${this.name}: Could not write to TensorArray index ${e}, because it has already been read.`);if(n.written)throw Error(`TensorArray ${this.name}: Could not write to TensorArray index ${e}, because it has already been written.`);n.tensor=t,Object(ep.Xf)(t),n.written=!0,this.tensors[e]=n}writeMany(e,t){if(e.length!==t.length)throw Error(`TensorArray ${this.name}: could not write multiple tensors,because the index size: ${e.length} is not the same as tensors size: ${t.length}.`);e.forEach((e,n)=>this.write(e,t[n]))}gather(e,t){if(t&&t!==this.dtype)throw Error(`TensorArray dtype is ${this.dtype} but gather requested dtype ${t}`);if(e)e=e.slice(0,this.size());else{e=[];for(let t=0;t<this.size();t++)e.push(t)}if(0===e.length)return Object(ep.ui)([],[0].concat(this.elementShape));let n=this.readMany(e);return ps(this.elementShape,n[0].shape,"TensorArray shape mismatch: "),Object(ep.li)(n,0)}concat(e){if(e&&e!==this.dtype)throw Error(`TensorArray dtype is ${this.dtype} but concat requested dtype ${e}`);if(0===this.size())return Object(ep.ui)([],[0].concat(this.elementShape));let t=[];for(let e=0;e<this.size();e++)t.push(e);let n=this.readMany(t);return ps(this.elementShape,n[0].shape,`TensorArray shape mismatch: tensor array shape (${this.elementShape}) vs first tensor shape (${n[0].shape})`),Object(ep.Ce)(n,0)}scatter(e,t){if(t.dtype!==this.dtype)throw Error(`TensorArray dtype is ${this.dtype} but tensor has dtype ${t.dtype}`);if(e.length!==t.shape[0])throw Error(`Expected len(indices) == tensor.shape[0], but saw: ${e.length} vs. ${t.shape[0]}`);let n=Math.max(...e);if(!this.dynamicSize&&n>=this.maxSize)throw Error(`Max index must be < array size (${n} vs. ${this.maxSize})`);this.writeMany(e,Object(ep.Pi)(t,0))}split(e,t){if(t.dtype!==this.dtype)throw Error(`TensorArray dtype is ${this.dtype} but tensor has dtype ${t.dtype}`);let n=0,r=e.map(e=>n+=e);if(n!==t.shape[0])throw Error(`Expected sum of lengths to be equal to 23 tensor.shape[0], but sum of lengths is 24 ${n}, and tensor's shape is: ${t.shape}`);if(!this.dynamicSize&&e.length!==this.maxSize)throw Error(`TensorArray's size is not equal to the size of lengths (${this.maxSize} vs. ${e.length}), and the TensorArray is not marked as dynamically resizeable`);let i=0===n?0:t.size/n,a=[];Object(ep.Ei)(()=>{t=Object(ep.wh)(t,[1,n,i]);for(let n=0;n<e.length;++n){let o=[0,0===n?0:r[n-1],0],s=[1,e[n],i];a[n]=Object(ep.wh)(Object(ep.Uh)(t,o,s),this.elementShape)}return a});let o=[];for(let t=0;t<e.length;t++)o[t]=t;this.writeMany(o,a)}}class pd{get id(){return this.idTensor.id}constructor(e,t,n,r=-1){this.tensors=e,this.elementShape=t,this.elementDtype=n,null!=e&&e.forEach(e
24=>{if(n!==e.dtype)throw Error(`Invalid data types; op elements ${n}, but list elements ${e.dtype}`);ps(t,e.shape,"TensorList shape mismatch: "),Object(ep.Xf)(e)}),this.idTensor=Object(ep.Fh)(0),this.maxNumElements=r,Object(ep.Xf)(this.idTensor)}copy(){return new pd([...this.tensors],this.elementShape,this.elementDtype)}clearAndClose(e){this.tensors.forEach(t=>{null!=e&&e.has(t.id)||t.dispose()}),this.tensors.length=0,this.idTensor.dispose()}size(){return this.tensors.length}stack(e,t,n=-1){if(t!==this.elementDtype)throw Error(`Invalid data types; op elements ${t}, but list elements ${this.elementDtype}`);if(-1!==n&&this.tensors.length!==n)throw Error(`Operation expected a list with ${n} elements but got a list with ${this.tensors.length} elements.`);ps(e,this.elementShape,"TensorList shape mismatch: ");let r=pu(this.elementShape,this.tensors,e);return Object(ep.Ei)(()=>{let e=this.tensors.map(e=>Object(ep.wh)(e,r));return Object(ep.li)(e,0)})}popBack(e,t){if(t!==this.elementDtype)throw Error(`Invalid data types; op elements ${t}, but list elements ${this.elementDtype}`);if(0===this.size())throw Error("Trying to pop from an empty list.");let n=pu(this.elementShape,this.tensors,e),r=this.tensors.pop();return r.kept=!1,ps(r.shape,e,"TensorList shape mismatch: "),Object(ep.wh)(r,n)}pushBack(e){if(e.dtype!==this.elementDtype)throw Error(`Invalid data types; op elements ${e.dtype}, but list elements ${this.elementDtype}`);if(ps(e.shape,this.elementShape,"TensorList shape mismatch: "),this.maxNumElements===this.size())throw Error("Trying to push element into a full list.");Object(ep.Xf)(e),this.tensors.push(e)}resize(e){if(e<0)throw Error("TensorListResize expects size to be non-negative. Got: "+e);if(-1!==this.maxNumElements&&e>this.maxNumElements)throw Error(`TensorListResize input size ${e} is greater maxNumElement ${this.maxNumElements}.`);let t=new pd([],this.elementShape,this.elementDtype,this.maxNumElements);t.tensors.length=e;for(let n=0;n<Math.min(this.tensors.length,e);++n)t.tensors[n]=this.tensors[n];return t}getItem(e,t,n){if(n!==this.elementDtype)throw Error(`Invalid data types; op elements ${n}, but list elements ${this.elementDtype}`);if(e<0||e>this.tensors.length)throw Error(`Trying to access element ${e} in a list with ${this.tensors.length} elements.`);if(null==this.tensors[e])throw Error(`element at index ${e} is null.`);ps(this.tensors[e].shape,t,"TensorList shape mismatch: ");let r=pu(this.elementShape,this.tensors,t);return Object(ep.wh)(this.tensors[e],r)}setItem(e,t){if(t.dtype!==this.elementDtype)throw Error(`Invalid data types; op elements ${t.dtype}, but list elements ${this.elementDtype}`);if(e<0||-1!==this.maxNumElements&&e>=this.maxNumElements)throw Error(`Trying to set element ${e} in a list with max ${this.maxNumElements} elements.`);ps(this.elementShape,t.shape,"TensorList shape mismatch: "),Object(ep.Xf)(t),null!=this.tensors[e]&&(this.tensors[e].kept=!1),this.tensors[e]=t}gather(e,t,n){if(t!==this.elementDtype)throw Error(`Invalid data types; op elements ${t}, but list elements ${this.elementDtype}`);ps(this.elementShape,n,"TensorList shape mismatch: "),e=e.slice(0,this.size());let r=pu(this.elementShape,this.tensors,n);return 0===e.length?Object(ep.ui)([],[0].concat(r)):Object(ep.Ei)(()=>{let t=e.map(e=>Object(ep.wh)(this.tensors[e],r));return Object(ep.li)(t,0)})}concat(e,t){if(e&&e!==this.elementDtype)throw Error(`TensorList dtype is ${this.elementDtype} but concat requested dtype ${e}`);ps(this.elementShape,t,"TensorList shape mismatch: ");let n=pu(this.elementShape,this.tensors,t);return 0===this.size()?Object(ep.ui)([],[0].concat(n)):Object(ep.Ei)(()=>{let e=this.tensors.map(e=>Object(ep.wh)(e,n));return Object(ep.Ce)(e,0)})}}let pf=async(e,t,n)=>{switch(e.op){case"If":case"StatelessIf":{let r=Object(pr.d)("thenBranch",e,t,n),i=Object(pr.d)("elseBranch",e,t,n),a=Object(pr.d)("cond",e,t,n),o=Object(pr.d)("args",e,t,n);return(await a.data())[0]?n.functionMap[r].executeFunctionAsync(o,n.tensorArrayMap,n.tensorListMap):n.functionMap[i].executeFunctionAsync(o,n.tensorArrayMap,n.tensorListMap)}case"While":case"StatelessWhile":{let r=Object(pr.d)("body",e,t,n),i=Object(pr.d)("cond",e,t,n),a=Object(pr.d)("args",e,t,n),o=await n.functionMap[i].executeFunctionAsync(a,n.tensorArrayMap,n.tensorListMap),s=a.map(e=>e.id),l=await o[0].data();
24o.forEach(e=>{e.kept||-1!==s.indexOf(e.id)||e.dispose()});let u=a;for(;l[0];){let e=u,t=(u=await n.functionMap[r].executeFunctionAsync(u,n.tensorArrayMap,n.tensorListMap)).map(e=>e.id);e.forEach(e=>{e.kept||-1!==s.indexOf(e.id)||-1!==t.indexOf(e.id)||e.dispose()});let a=await n.functionMap[i].executeFunctionAsync(u,n.tensorArrayMap,n.tensorListMap);l=await a[0].data(),a.forEach(e=>{e.kept||-1!==s.indexOf(e.id)||-1!==t.indexOf(e.id)||e.dispose()})}return u}case"LoopCond":{let r=Object(pr.d)("pred",e,t,n);return[Object(pr.a)(r)]}case"Switch":{let r=Object(pr.d)("pred",e,t,n),i=Object(pr.d)("data",e,t,n);return i.kept||(i=Object(pr.a)(i)),(await r.data())[0]?[void 0,i]:[i,void 0]}case"Merge":{let r=e.inputNames.find(e=>void 0!==Object(pr.e)(e,t,n));if(r){let e=Object(pr.e)(r,t,n);return[Object(pr.a)(e)]}return}case"Enter":{let r=Object(pr.d)("frameName",e,t,n),i=Object(pr.d)("tensor",e,t,n);return n.enterFrame(r),[Object(pr.a)(i)]}case"Exit":{let r=Object(pr.d)("tensor",e,t,n);return n.exitFrame(),[Object(pr.a)(r)]}case"NextIteration":{let r=Object(pr.d)("tensor",e,t,n);return n.nextIteration(),[Object(pr.a)(r)]}case"TensorArrayV3":{let r=Object(pr.d)("size",e,t,n),i=Object(pr.d)("dtype",e,t,n),a=Object(pr.d)("elementShape",e,t,n),o=Object(pr.d)("dynamicSize",e,t,n),s=Object(pr.d)("clearAfterRead",e,t,n),l=Object(pr.d)("identicalElementShapes",e,t,n),u=new pp(Object(pr.d)("name",e,t,n),i,r,a,l,o,s);return n.addTensorArray(u),[u.idTensor,Object(ep.Fh)(1)]}case"TensorArrayWriteV3":{let r=Object(pr.d)("tensorArrayId",e,t,n),i=Object(pr.d)("index",e,t,n),a=Object(pr.d)("tensor",e,t,n),o=n.getTensorArray(r.id);return o.write(i,a),[o.idTensor]}case"TensorArrayReadV3":{let r=Object(pr.d)("tensorArrayId",e,t,n),i=Object(pr.d)("index",e,t,n);return[n.getTensorArray(r.id).read(i)]}case"TensorArrayGatherV3":{let r=Object(pr.d)("tensorArrayId",e,t,n),i=Object(pr.d)("indices",e,t,n),a=Object(pr.d)("dtype",e,t,n);return[n.getTensorArray(r.id).gather(i,a)]}case"TensorArrayScatterV3":{let r=Object(pr.d)("tensorArrayId",e,t,n),i=Object(pr.d)("indices",e,t,n),a=Object(pr.d)("tensor",e,t,n),o=n.getTensorArray(r.id);return o.scatter(i,a),[o.idTensor]}case"TensorArrayConcatV3":{let r=Object(pr.d)("tensorArrayId",e,t,n),i=n.getTensorArray(r.id),a=Object(pr.d)("dtype",e,t,n);return[i.concat(a)]}case"TensorArraySplitV3":{let r=Object(pr.d)("tensorArrayId",e,t,n),i=Object(pr.d)("tensor",e,t,n),a=Object(pr.d)("lengths",e,t,n),o=n.getTensorArray(r.id);return o.split(a,i),[o.idTensor]}case"TensorArraySizeV3":{let r=Object(pr.d)("tensorArrayId",e,t,n),i=n.getTensorArray(r.id);return[Object(ep.Fh)(i.size(),"int32")]}case"TensorArrayCloseV3":{let r=Object(pr.d)("tensorArrayId",e,t,n),i=n.getTensorArray(r.id);return i.clearAndClose(),[i.idTensor]}case"TensorListSetItem":{let r=Object(pr.d)("tensorListId",e,t,n),i=Object(pr.d)("index",e,t,n),a=Object(pr.d)("tensor",e,t,n),o=n.getTensorList(r.id);return o.setItem(i,a),[o.idTensor]}case"TensorListGetItem":{let r=Object(pr.d)("tensorListId",e,t,n),i=Object(pr.d)("index",e,t,n),a=Object(pr.d)("elementShape",e,t,n),o=Object(pr.d)("elementDType",e,t,n);return[n.getTensorList(r.id).getItem(i,a,o)]}case"TensorListScatterV2":case"TensorListScatter":{let r=Object(pr.d)("indices",e,t,n),i=function(e,t,n,r){if(t.length!==e.shape[0])throw Error(`Expected len(indices) == tensor.shape[0], but saw: ${t.length} vs. ${e.shape[0]}`);let i=Math.max(...t);if(null!=r&&-1!==r&&i>=r)throw Error(`Max index must be < array size (${i} vs. ${r})`);let a=new pd([],n,e.dtype,r),o=Object(ep.Pi)(e,0);return t.forEach((e,t)=>{a.setItem(e,o[t])}),a}(Object(pr.d)("tensor",e,t,n),r,Object(pr.d)("elementShape",e,t,n),Object(pr.d)("numElements",e,t,n));return n.addTensorList(i),[i.idTensor]}case"TensorListReserve":case"EmptyTensorList":{let r,i=Object(pr.d)("elementShape",e,t,n),a=Object(pr.d)("elementDType",e,t,n);r="TensorListReserve"===e.op?"numElements":"maxNumElements";let o=Object(pr.d)(r,e,t,n),s=function(e,t,n,r){return new pd([],e,t,r)}(i,a,0,"TensorListReserve"===e.op?-1:o);return n.addTensorList(s),[s.idTensor]}case"TensorListGather":{let r=Object(pr.d)("tensorListId",e,t,n),i=Object(pr.d)("indices",e,t,n),a=Object(pr.d)("elementShape",e,t,n),o=Object(pr.d)("elementDType",e,t,n);return[n.getTensorList(r.id).gather(i,o,a)]}case"TensorListStack":{let r=Object(pr.d)("tensorListId",e,t,n),i=Object(pr.d)("elementShape",e,t,n),a=Object(pr.d)("elementDType",e,t,n),o=Object(pr.d)("numElements",e,t,n);return[n.getTensorList(r.id).stack(i,a,o)]}case"TensorListFromTensor":{let r=function(e,t,n){let r=e.dtype;if(e.shape.length<1)throw Error("Tensor must be at least a vector, but saw shape: "+e.shape);if(e.dtype!==n)throw Error(`Invalid data types; op elements ${e.dtype}, but list elements ${n}`);return ps(e.shape.slice(1),t,"TensorList shape mismatch: "),new pd(Object(ep.Pi)(e),t,r)}(Object(pr.d)("tensor",e,t,n),Object(pr.d)("elementShape",e,t,n),Object(pr.d)("elementDType",e,t,n));return n.addTensorList(r),[r.idTensor]}case"TensorListConcat":case"TensorListConcatV2":{let r=Object(pr.d)("tensorListId",e,t,n),i=n.getTensorList(r.id),a=Object(pr.d)("dtype",e,t,n),o=Object(pr.d)("elementShape",e,t,n);return[i.concat(a,o)]}case"TensorListPushBack":{let r=Object(pr.d)("tensorListId",e,t,n),i=Object(pr.d)("tensor",e,t,n),a=n.getTensorList(r.id);return a.pushBack(i),[a.idTensor]}case"TensorListPopBack":{let r=Object(pr.d)("tensorListId",e,t,n),i=Object(pr.d)("elementShape",e,t,n),a=Object(pr.d)("elementDType",e,t,n);return[n.getTensorList(r.id).popBack(i,a)]}case"TensorListSplit":{let r=Object(pr.d)("tensor",e,t,n),i=Object(pr.d)("elementShape",e,t,n),a=function(e,t,n){let r=0,i=t.map(e=>r+=e);if(r!==e.shape[0])throw Error(`Expected sum of lengths to be equal to 25 tensor.shape[0], but sum of lengths is 26 ${r}, and tensor's shape is: ${e.shape}`);let a=pc(e.shape.slice(1),n),o=0===r?0:e.size/r,s=Object(ep.Ei)(()=>{let n=[];
26e=Object(ep.wh)(e,[1,r,o]);for(let r=0;r<t.length;++r){let s=[0,0===r?0:i[r-1],0],l=[1,t[r],o];n[r]=Object(ep.wh)(Object(ep.Uh)(e,s,l),a)}return e.dispose(),n}),l=new pd([],n,e.dtype,t.length);for(let e=0;e<s.length;e++)l.setItem(e,s[e]);return l}(r,Object(pr.d)("lengths",e,t,n),i);return n.addTensorList(a),[a.idTensor]}case"TensorListLength":{let r=Object(pr.d)("tensorListId",e,t,n),i=n.getTensorList(r.id);return[Object(ep.Fh)(i.size(),"int32")]}case"TensorListResize":{let r=Object(pr.d)("tensorListId",e,t,n),i=Object(pr.d)("size",e,t,n),a=n.getTensorList(r.id).resize(i);return n.addTensorList(a),[a.idTensor]}default:throw TypeError(`Node type ${e.op} is not implemented`)}};function ph(e,t,n){let[r,i]=Object(pr.d)("fusedOps",e,t,n),a="biasadd"===r,o=!a,s="prelu"===i,l="fusedbatchnorm"===r,u=Object(pr.d)("numArgs",e,t,n);if(a){if(s&&2!==u)throw Error("FusedConv2d and DepthwiseConv2d with BiasAdd and Prelu must have two extra arguments: bias and alpha.");if(!s&&a&&1!==u)throw Error("FusedConv2d and DepthwiseConv2d with BiasAdd must have one extra argument: bias.")}if(l)throw Error("FusedConv2d and DepthwiseConv2d with FusedBatchNorm is not supported");let c=Object(pr.d)("strides",e,t,n),p=Object(pr.c)(e,t,n),d=Object(pr.d)("dataFormat",e,t,n).toUpperCase(),f=Object(pr.d)("dilations",e,t,n),[h,g]=Object(pr.d)("args",e,t,n);return o&&(g=h,h=void 0),{stride:c,pad:p,dataFormat:d,dilations:f,biasArg:h,preluArg:g,activationFunc:i,leakyreluAlpha:Object(pr.d)("leakyreluAlpha",e,t,n)}}function pg(e,t,n){return{boxes:Object(pr.d)("boxes",e,t,n),scores:Object(pr.d)("scores",e,t,n),maxOutputSize:Object(pr.d)("maxOutputSize",e,t,n),iouThreshold:Object(pr.d)("iouThreshold",e,t,n),scoreThreshold:Object(pr.d)("scoreThreshold",e,t,n),softNmsSigma:Object(pr.d)("softNmsSigma",e,t,n)}}class pb{get id(){return this.handle.id}constructor(e,t){this.keyDType=e,this.valueDType=t,this.handle=Object(ep.Fh)(0),this.tensorMap=new Map,Object(ep.Xf)(this.handle)}clearAndClose(){this.tensorMap.forEach(e=>e.dispose()),this.tensorMap.clear(),this.handle.dispose()}size(){return this.tensorMap.size}tensorSize(){return eS.a(this.size(),"int32")}async import(e,t){this.checkKeyAndValueTensor(e,t);let n=await e.data();return this.tensorMap.forEach(e=>e.dispose()),this.tensorMap.clear(),Object(ep.Ei)(()=>{let e=Object(ep.Pi)(t),r=n.length,i=e.length;ep.Si.assert(r===i,()=>`The number of elements doesn't match, keys has ${r} elements, the values has ${i} elements.`);for(let t=0;t<r;t++){let r=n[t],i=e[t];Object(ep.Xf)(i),this.tensorMap.set(r,i)}return this.handle})}async find(e,t){this.checkKeyAndValueTensor(e,t);let n=await e.data();return Object(ep.Ei)(()=>{let e=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.findWithDefault(i,t);e.push(a)}return Object(ep.li)(e)})}findWithDefault(e,t){let n=this.tensorMap.get(e);return null!=n?n:t}checkKeyAndValueTensor(e,t){if(e.dtype!==this.keyDType)throw Error(`Expect key dtype ${this.keyDType}, but got `+e.dtype);if(t.dtype!==this.valueDType)throw Error(`Expect value dtype ${this.valueDType}, but got `+t.dtype)}}function pm(e,t,n,r,i=ep.Ei){let a=((e,t,n)=>{switch(e.category){case"arithmetic":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"BiasAdd":case"AddV2":case"Add":return[r.add(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"AddN":return[r.addN(Object(pr.d)("tensors",e,t,n))];case"FloorMod":case"Mod":return[r.mod(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"Mul":return[r.mul(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"RealDiv":case"Div":return[r.div(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"DivNoNan":return[r.divNoNan(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"FloorDiv":return[r.floorDiv(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"Sub":return[r.sub(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"Minimum":return[r.minimum(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"Maximum":return[r.maximum(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"Pow":return[r.pow(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"SquaredDifference":return[r.squaredDifference(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"basic_math":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"Abs":case"ComplexAbs":return[r.abs(Object(pr.d)("x",e,t,n))];case"Acos":return[r.acos(Object(pr.d)("x",e,t,n))];case"Acosh":return[r.acosh(Object(pr.d)("x",e,t,n))];case"Asin":return[r.asin(Object(pr.d)("x",e,t,n))];case"Asinh":return[r.asinh(Object(pr.d)("x",e,t,n))];case"Atan":return[r.atan(Object(pr.d)("x",e,t,n))];case"Atan2":return[r.atan2(Object(pr.d)("x",e,t,n),Object(pr.d)("y",e,t,n))];case"Atanh":return[r.atanh(Object(pr.d)("x",e,t,n))];case"Ceil":return[r.ceil(Object(pr.d)("x",e,t,n))];case"Complex":return[r.complex(Object(pr.d)("real",e,t,n),Object(pr.d)("imag",e,t,n))];case"Cos":return[r.cos(Object(pr.d)("x",e,t,n))];case"Cosh":return[r.cosh(Object(pr.d)("x",e,t,n))];case"Elu":return[r.elu(Object(pr.d)("x",e,t,n))];case"Erf":return[r.erf(Object(pr.d)("x",e,t,n))];case"Exp":return[r.exp(Object(pr.d)("x",e,t,n))];case"Expm1":return[r.expm1(Object(pr.d)("x",e,t,n))];case"Floor":return[r.floor(Object(pr.d)("x",e,t,n))];case"Log":return[r.log(Object(pr.d)("x",e,t,n))];case"Log1p":return[r.log1p(Object(pr.d)("x",e,t,n))];case"Imag":return[r.imag(Object(pr.d)("x",e,t,n))];case"Neg":return[r.neg(Object(pr.d)("x",e,t,n))];case"Reciprocal":return[r.reciprocal(Object(pr.d)("x",e,t,n))];case"Real":return[r.real(Object(pr.d)("x",e,t,n))];case"Relu":return[r.relu(Object(pr.d)("x",e,t,n))];case"Round":return[r.round(Object(pr.d)("x",e,t,n))];case"Selu":return[r.selu(Object(pr.d)("x",e,t,n))];case"Sigmoid":return[r.sigmoid(Object(pr.d)("x",e,t,n))];case"Sin":return[r.sin(Object(pr.d)("x",e,t,n))];case"Sign":return[r.sign(Object(pr.d)("x",e,t,n))];case"Sinh":return[r.sinh(Object(pr.d)("x",e,t,n))];case"Softplus":return[r.softplus(Object(pr.d)("x",e,t,n))];case"Sqrt":return[r.sqrt(Object(pr.d)("x",e,t,n))];case"Square":return[r.square(Object(pr.d)("x",e,t,n))];case"Tanh":return[r.tanh(Object(pr.d)("x",e,t,n))];case"Tan":return[r.tan(Object(pr.d)("x",e,t,n))];case"ClipByValue":return[r.clipByValue(Object(pr.d)("x",e,t,n),Object(pr.d)("clipValueMin",e,t,n),Object(pr.d)("clipValueMax",e,t,n))];case"Relu6":return[r.relu6(Object(pr.d)("x",e,t,n))];case"Rsqrt":return[r.rsqrt(Object(pr.e)(e.inputNames[0],t,n))];case"LeakyRelu":return[r.leakyRelu(Object(pr.d)("x",e,t,n),Object(pr.d)("alph
26a",e,t,n))];case"Prelu":return[r.prelu(Object(pr.d)("x",e,t,n),Object(pr.d)("alpha",e,t,n))];case"IsNan":return[r.isNaN(Object(pr.e)(e.inputNames[0],t,n))];case"IsInf":return[r.isInf(Object(pr.e)(e.inputNames[0],t,n))];case"IsFinite":return[r.isFinite(Object(pr.e)(e.inputNames[0],t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"control":return pf(e,t,n);case"convolution":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"Conv1D":{let i=Object(pr.d)("stride",e,t,n),a=Object(pr.d)("pad",e,t,n),o=Object(pr.d)("dataFormat",e,t,n).toUpperCase(),s=Object(pr.d)("dilation",e,t,n);return[r.conv1d(Object(pr.d)("x",e,t,n),Object(pr.d)("filter",e,t,n),i,a,o,s)]}case"Conv2D":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.c)(e,t,n),o=Object(pr.d)("dataFormat",e,t,n).toUpperCase(),s=Object(pr.d)("dilations",e,t,n);return[r.conv2d(Object(pr.d)("x",e,t,n),Object(pr.d)("filter",e,t,n),[i[1],i[2]],a,o,[s[1],s[2]])]}case"_FusedConv2D":{let{stride:i,pad:a,dataFormat:o,dilations:s,biasArg:l,preluArg:u,activationFunc:c,leakyreluAlpha:p}=ph(e,t,n);return[r.fused.conv2d({x:Object(pr.d)("x",e,t,n),filter:Object(pr.d)("filter",e,t,n),strides:[i[1],i[2]],pad:a,dataFormat:o,dilations:[s[1],s[2]],bias:l,activation:c,preluActivationWeights:u,leakyreluAlpha:p})]}case"FusedDepthwiseConv2dNative":{let{stride:i,pad:a,dataFormat:o,dilations:s,biasArg:l,preluArg:u,activationFunc:c,leakyreluAlpha:p}=ph(e,t,n);return[r.fused.depthwiseConv2d({x:Object(pr.d)("x",e,t,n),filter:Object(pr.d)("filter",e,t,n),strides:[i[1],i[2]],pad:a,dataFormat:o,dilations:[s[1],s[2]],bias:l,activation:c,preluActivationWeights:u,leakyreluAlpha:p})]}case"Conv2DBackpropInput":case"Conv2dTranspose":{let i=Object(pr.d)("outputShape",e,t,n),a=Object(pr.d)("strides",e,t,n),o=Object(pr.c)(e,t,n);return[r.conv2dTranspose(Object(pr.d)("x",e,t,n),Object(pr.d)("filter",e,t,n),i,[a[1],a[2]],o)]}case"DepthwiseConv2dNative":case"DepthwiseConv2d":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.c)(e,t,n),o=Object(pr.d)("dilations",e,t,n),s=Object(pr.d)("dataFormat",e,t,n).toUpperCase();return[r.depthwiseConv2d(Object(pr.d)("input",e,t,n),Object(pr.d)("filter",e,t,n),[i[1],i[2]],a,s,[o[1],o[2]])]}case"Conv3D":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.d)("pad",e,t,n),o=Object(pr.d)("dataFormat",e,t,n).toUpperCase(),s=Object(pr.d)("dilations",e,t,n);return[r.conv3d(Object(pr.d)("x",e,t,n),Object(pr.d)("filter",e,t,n),[i[1],i[2],i[3]],a,o,[s[1],s[2],s[3]])]}case"AvgPool":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.d)("pad",e,t,n),o=Object(pr.d)("kernelSize",e,t,n);return[r.avgPool(Object(pr.d)("x",e,t,n),[o[1],o[2]],[i[1],i[2]],a)]}case"MaxPool":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.d)("pad",e,t,n),o=Object(pr.d)("kernelSize",e,t,n);return[r.maxPool(Object(pr.d)("x",e,t,n),[o[1],o[2]],[i[1],i[2]],a)]}case"MaxPoolWithArgmax":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.d)("pad",e,t,n),o=Object(pr.d)("kernelSize",e,t,n),s=Object(pr.d)("includeBatchInIndex",e,t,n),{result:l,indexes:u}=r.maxPoolWithArgmax(Object(pr.d)("x",e,t,n),[o[1],o[2]],[i[1],i[2]],a,s);return[l,u]}case"AvgPool3D":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.d)("pad",e,t,n),o=Object(pr.d)("kernelSize",e,t,n);return[r.avgPool3d(Object(pr.d)("x",e,t,n),[o[1],o[2],o[3]],[i[1],i[2],i[3]],a)]}case"MaxPool3D":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.d)("pad",e,t,n),o=Object(pr.d)("kernelSize",e,t,n);return[r.maxPool3d(Object(pr.d)("x",e,t,n),[o[1],o[2],o[3]],[i[1],i[2],i[3]],a)]}case"Dilation2D":{let i=Object(pr.d)("strides",e,t,n),a=Object(pr.d)("pad",e,t,n),o=Object(pr.d)("dilations",e,t,n),s=i[1],l=i[2],u=o[1],c=o[2];return[r.dilation2d(Object(pr.d)("x",e,t,n),Object(pr.d)("filter",e,t,n),[s,l],a,[u,c],"NHWC")]}default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"creation":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"Fill":{let i=Object(pr.d)("shape",e,t,n),a=Object(pr.d)("dtype",e,t,n),o=Object(pr.d)("value",e,t,n);return[r.fill(i,o,a)]}case"LinSpace":{let i=Object(pr.d)("start",e,t,n),a=Object(pr.d)("stop",e,t,n),o=Object(pr.d)("num",e,t,n);return[r.linspace(i,a,o)]}case"Multinomial":{let i=Object(pr.d)("logits",e,t,n),a=Object(pr.d)("numSamples",e,t,n),o=Object(pr.d)("seed",e,t,n);return[r.multinomial(i,a,o)]}case"OneHot":{let i=Object(pr.d)("indices",e,t,n),a=Object(pr.d)("depth",e,t,n),o=Object(pr.d)("onValue",e,t,n),s=Object(pr.d)("offValue",e,t,n),l=Object(pr.d)("dtype",e,t,n);return[r.oneHot(i,a,o,s,l)]}case"Ones":return[r.ones(Object(pr.d)("shape",e,t,n),Object(pr.d)("dtype",e,t,n))];case"OnesLike":return[r.onesLike(Object(pr.d)("x",e,t,n))];case"RandomStandardNormal":return[r.randomStandardNormal(Object(pr.d)("shape",e,t,n),Object(pr.d)("dtype",e,t,n),Object(pr.d)("seed",e,t,n))];case"RandomUniform":return[r.randomUniform(Object(pr.d)("shape",e,t,n),Object(pr.d)("minval",e,t,n),Object(pr.d)("maxval",e,t,n),Object(pr.d)("dtype",e,t,n))];case"RandomUniformInt":return[r.randomUniformInt(Object(pr.d)("shape",e,t,n),Object(pr.d)("minval",e,t,n),Object(pr.d)("maxval",e,t,n),Object(pr.d)("seed",e,t,n))];case"Range":{let i=Object(pr.d)("start",e,t,n),a=Object(pr.d)("stop",e,t,n),o=Object(pr.d)("step",e,t,n);return[r.range(i,a,o,Object(pr.d)("dtype",e,t,n))]}case"TruncatedNormal":{let i=Object(pr.d)("shape",e,t,n),a=Object(pr.d)("mean",e,t,n),o=Object(pr.d)("stdDev",e,t,n),s=Object(pr.d)("seed",e,t,n);return[r.truncatedNormal(i,a,o,Object(pr.d)("dtype",e,t,n),s)]}case"Zeros":return[r.zeros(Object(pr.d)("shape",e,t,n),Object(pr.d)("dtype",e,t,n))];case"ZerosLike":return[r.zerosLike(Object(pr.d)("x",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"dynamic":return(async(e,t,n,r,i=S)=>{switch(e.op){case"NonMaxSuppressionV5":{let{boxes:r,scores:a,maxOutputSize:o,iouThreshold:s,scoreThreshold:l,softNmsSigma:u}=pg(e,t,n),c=await i.image.nonMaxSuppressionWithScoreAsync(r,a,o,s,l,u);return[c.selectedIndices,c.selectedScores]}case"NonMaxSuppressionV4":{let{boxes:r,scores:a,maxOutputSize:o,iouThreshold:s,scoreThreshold:l}=pg(e,t,n),u=Object(pr.d)("padToMaxOutputSize",e,t,n),c=await i.image.nonMaxSuppressionPaddedAsync(r,a,o,s,l,u);return[c.selectedIndices,c.validOutputs]}case"NonMaxSuppressionV3":case"NonMaxSuppressionV2":{let{boxes:r,scores:a,maxOutputSize:o,iouThreshold:s,scoreThreshold:l}=pg(e,t,n);return[await i.image.nonMaxSuppressionAsync(r,a,o,s,l)]}case"Where":{let r=i.cast(Object(pr.d)("condition",e,t,n),"bool"),a=[await i.whereAsync(r)];return r.dispose(),a}case"ListDiff":return i.setdiff1dAsync(Object(pr.d)("x",e,t,n),Object(pr.d)("y",e,t,n));default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n);case"evaluation":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"LowerBound":{let i=Object(pr.d)("sortedSequence",e,t,n),a=Object(pr.d)("values",e,t,n);return[r.lowerBound(i,a)]}case"TopKV2":{let i=Object(pr.d)("x",e,t,n),a=Object(pr.d)("k",e,t,n),o=Object(pr.d)("sorted",e,t,n),s=r.topk(i,a,o);return[s.values,s.indices]}case"UpperBound":{let i=Object(pr.d)("sortedSequence",e,t,n),a=Object(pr.d)("values",e,t,n);return[r.upperBound(i,a)]}case"Unique":{let i=Object(pr.d)("x",e,t,n),a=r.unique(i);return[a.values,a.indices]}case"UniqueV2":{let i=Object(pr.d)("x",e,t,n),a=Object(pr.d)("axis",e,t,n),o=r.unique(i,a);return[o.values,o.indices]}default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"image":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"ResizeBilinear":{let i=Object(pr.d)("images",e,t,n),a=Object(pr.d)("size",e,t,n),o=Object(pr.d)("alignCorners",e,t,n),s=Object(pr.d)("halfPixelCenters",e,t,n);return[r.image.resizeBilinear(i,[a[0],a[1]],o,s)]}case"ResizeNearestNeighbor":{let i=Object(pr.d)("images",e,t,n),a=Object(pr.d)("size",e,t,n),o=Object(pr.d)("alignCorners",e,t,n),s=Object(pr.d)("halfPixelCenters",e,t,n);return[r.image.resizeNearestNeighbor(i,[a[0],a[1]],o,s)]}case"CropAndResize":{let i=Object(pr.d)("image",e,t,n),a=Object(pr.d)("boxes",e,t,n),o=Object(pr.d)("boxInd",e,t,n),s=Object(pr.d)("cropSize",e,t,n),l=Object(pr.d)("method",e,t,n),u=Object(pr.d)("extrapolationValue",e,t,n);return[r.image.cropAndResize(i,a,o,s,l,u)]}case"ImageProjectiveTransformV3":{let i=Object(pr.d)("images",e,t,n),a=Object(pr.d)("transforms",e,t,n),o=Object(pr.d)("outputShape",e,t,n),s=Object(pr.d)("fillValue",e,t,n),l=Object(pr.d)("interpolation",e,t,n),u=Object(pr.d)("fillMode",e,t,n);return[r.image.transform(i,a,l.toLowerCase(),u.toLowerCase(),s,o)]}default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"graph":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"Const":return t[e.name];case"PlaceholderWithDefault":let i=Object(pr.d)("default",e,t,n);return[Object(pr.e)(e.name,t,n)||i];case"Placeholder":return[Object(pr.e)(e.name,t,n)];case"Identity":case"StopGradient":case"FakeQuantWithMinMaxVars":{let r=Object(pr.d)("x",e,t,n);return[Object(pr.a)(r)]}case"IdentityN":return Object(pr.d)("x",e,t,n).map(e=>Object(pr.a)(e));case"Snapshot":let a=Object(pr.d)("x",e,t,n);return[Object(pr.a)(a)];case"Shape":return[r.tensor1d(Object(pr.d)("x",e,t,n).shape,"int32")];case"ShapeN":return Object(pr.d)("x",e,t,n).map(e=>r.tensor1d(e.shape));case"Size":return[r.scalar(Object(pr.d)("x",e,t,n).size,"int32")];case"Rank":return[r.scalar(Object(pr.d)("x",e,t,n).rank,"int32")];case"NoOp":return[r.scalar(1)];case"Print":let o=Object(pr.d)("x",e,t,n),s=Object(pr.d)("data",e,t,n),l=Object(pr.d)("message",e,t,n),u=Object(pr.d)("summarize",e,t,n);console.warn("The graph has a tf.print() operation,usually used for debugging, which slows down performance."),console.log(l);for(let e=0;e<s.length;e++)console.log(Array.prototype.slice.call(s[e].dataSync()).slice(0,u));return[o];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"logical":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"Equal":return[r.equal(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"NotEqual":return[r.notEqual(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"Greater":return[r.greater(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"GreaterEqual":return[r.greaterEqual(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"Less":return[r.less(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"LessEqual":return[r.lessEqual(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"LogicalAnd":return[r.logicalAnd(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"LogicalNot":return[r.logicalNot(Object(pr.d)("a",e,t,n))];case"LogicalOr":return[r.logicalOr(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"Select":case"SelectV2":return[r.where(Object(pr.d)("condition",e,t,n),Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];case"BitwiseAnd":return[r.bitwiseAnd(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"matrices":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"BatchMatMul":case"BatchMatMulV2":case"MatMul":return[r.matMul(Object(pr.d)("a",e,t,n),Object(pr.d)("b",e,t,n),Object(pr.d)("transposeA",e,t,n),Object(pr.d)("transposeB",e,t,n))];case"Einsum":return[r.einsum(Object(pr.d)("equation",e,t,n),...Object(pr.d)("tensors",e,t,n))];case"Transpose":return[r.transpose(Object(pr.d)("x",e,t,n),Object(pr.d)("perm",e,t,n))];case"_FusedMatMul":let[i,a]=Object(pr.d)("fusedOps",e,t,n),o="biasadd"===i,s="prelu"===a,l=Object(pr.d)("numArgs",e,t,n),u=Object(pr.d)("leakyreluAlpha",e,t,n);if(o){if(s&&2!==l)throw Error("Fused MatMul with BiasAdd and Prelu must have two extra arguments: bias and alpha.");if(!s&&1!==l)throw Error("Fused MatMul with BiasAdd must have one extra argument: bias.")}let[c,p]=Object(pr.d)("args",e,t,n);return[r.fused.matMul({a:Object(pr.d)("a",e,t,n),b:Object(pr.d)("b",e,t,n),transposeA:Object(pr.d)("transposeA",e,t,n),transposeB:Object(pr.d)("transposeB",e,t,n),bias:c,activation:a,preluActivationWeights:p,leakyreluAlpha:u})];
26case"MatrixBandPart":return[r.linalg.bandPart(Object(pr.d)("a",e,t,n),Object(pr.d)("numLower",e,t,n),Object(pr.d)("numUpper",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"normalization":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"EuclideanNorm":return[r.euclideanNorm(Object(pr.d)("x",e,t,n),Object(pr.d)("axis",e,t,n),Object(pr.d)("keepDims",e,t,n))];case"FusedBatchNorm":case"FusedBatchNormV2":case"FusedBatchNormV3":return[r.batchNorm(Object(pr.d)("x",e,t,n),Object(pr.d)("mean",e,t,n),Object(pr.d)("variance",e,t,n),Object(pr.d)("offset",e,t,n),Object(pr.d)("scale",e,t,n),Object(pr.d)("epsilon",e,t,n))];case"LRN":return[r.localResponseNormalization(Object(pr.d)("x",e,t,n),Object(pr.d)("radius",e,t,n),Object(pr.d)("bias",e,t,n),Object(pr.d)("alpha",e,t,n),Object(pr.d)("beta",e,t,n))];case"Softmax":return[r.softmax(Object(pr.d)("x",e,t,n))];case"LogSoftmax":return[r.logSoftmax(Object(pr.d)("x",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"ragged":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"RaggedGather":{let{outputNestedSplits:i,outputDenseValues:a}=r.raggedGather(Object(pr.d)("paramsNestedSplits",e,t,n),Object(pr.d)("paramsDenseValues",e,t,n),Object(pr.d)("indices",e,t,n),Object(pr.d)("outputRaggedRank",e,t,n));return i.concat(a)}case"RaggedRange":{let{rtNestedSplits:i,rtDenseValues:a}=r.raggedRange(Object(pr.d)("starts",e,t,n),Object(pr.d)("limits",e,t,n),Object(pr.d)("splits",e,t,n));return[i,a]}case"RaggedTensorToTensor":return[r.raggedTensorToTensor(Object(pr.d)("shape",e,t,n),Object(pr.d)("values",e,t,n),Object(pr.d)("defaultValue",e,t,n),Object(pr.d)("rowPartitionTensors",e,t,n),Object(pr.d)("rowPartitionTypes",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"reduction":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"Max":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("keepDims",e,t,n);return[r.max(Object(pr.d)("x",e,t,n),i,a)]}case"Mean":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("keepDims",e,t,n);return[r.mean(Object(pr.d)("x",e,t,n),i,a)]}case"Min":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("keepDims",e,t,n);return[r.min(Object(pr.d)("x",e,t,n),i,a)]}case"Sum":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("keepDims",e,t,n);return[r.sum(Object(pr.d)("x",e,t,n),i,a)]}case"All":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("keepDims",e,t,n);return[r.all(Object(pr.d)("x",e,t,n),i,a)]}case"Any":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("keepDims",e,t,n);return[r.any(Object(pr.d)("x",e,t,n),i,a)]}case"ArgMax":{let i=Object(pr.d)("axis",e,t,n);return[r.argMax(Object(pr.d)("x",e,t,n),i)]}case"ArgMin":{let i=Object(pr.d)("axis",e,t,n);return[r.argMin(Object(pr.d)("x",e,t,n),i)]}case"Prod":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("keepDims",e,t,n);return[r.prod(Object(pr.d)("x",e,t,n),i,a)]}case"Cumprod":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("exclusive",e,t,n),o=Object(pr.d)("reverse",e,t,n);return[r.cumprod(Object(pr.d)("x",e,t,n),i,a,o)]}case"Cumsum":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("exclusive",e,t,n),o=Object(pr.d)("reverse",e,t,n);return[r.cumsum(Object(pr.d)("x",e,t,n),i,a,o)]}case"Bincount":let i=Object(pr.d)("x",e,t,n),a=Object(pr.d)("weights",e,t,n),o=Object(pr.d)("size",e,t,n);return[r.bincount(i,a,o)];case"DenseBincount":{let i=Object(pr.d)("x",e,t,n),a=Object(pr.d)("weights",e,t,n),o=Object(pr.d)("size",e,t,n),s=Object(pr.d)("binaryOutput",e,t,n);return[r.denseBincount(i,a,o,s)]}default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"slice_join":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"ConcatV2":case"Concat":{let i=Object(pr.d)("n",e,t,n),a=Object(pr.d)("axis",e,t,n),o=Object(pr.d)("tensors",e,t,n);return o=o.slice(0,i),[r.concat(o,a)]}case"Gather":{let i=Object(pr.d)("x",e,t,n),a=Object(pr.d)("indices",e,t,n);return[r.gather(i,r.cast(a,"int32"),0)]}case"GatherV2":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("batchDims",e,t,n),o=Object(pr.d)("x",e,t,n),s=Object(pr.d)("indices",e,t,n);return[r.gather(o,r.cast(s,"int32"),i,a)]}case"Reverse":{let i=Object(pr.d)("dims",e,t,n),a=[];for(let e=0;e<i.length;e++)i[e]&&a.push(e);let o=Object(pr.d)("x",e,t,n);return[r.reverse(o,a)]}case"ReverseV2":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("x",e,t,n);return[r.reverse(a,i)]}case"Slice":{let i=Object(pr.d)("begin",e,t,n),a=Object(pr.d)("size",e,t,n);return[r.slice(Object(pr.d)("x",e,t,n),i,a)]}
26case"StridedSlice":{let i=Object(pr.d)("begin",e,t,n),a=Object(pr.d)("end",e,t,n),o=Object(pr.d)("strides",e,t,n),s=Object(pr.d)("beginMask",e,t,n),l=Object(pr.d)("endMask",e,t,n),u=Object(pr.d)("ellipsisMask",e,t,n),c=Object(pr.d)("newAxisMask",e,t,n),p=Object(pr.d)("shrinkAxisMask",e,t,n),d=Object(pr.d)("x",e,t,n);return[r.stridedSlice(d,i,a,o,s,l,u,c,p)]}case"Pack":return Object(ep.Ei)(()=>{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("tensors",e,t,n),o=a[0].shape,s=r.squeeze(a[0]).shape,l=a.map(e=>{let t=ep.Si.arraysEqual(e.shape,o);if(!t&&!ep.Si.arraysEqual(r.squeeze(e).shape,s))throw Error("the input tensors shape does not match");return t?e:r.reshape(e,o)});return[r.stack(l,i)]});case"Unpack":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("tensor",e,t,n);return r.unstack(a,i)}case"Tile":{let i=Object(pr.d)("reps",e,t,n);return[r.tile(Object(pr.d)("x",e,t,n),i)]}case"Split":case"SplitV":{let i=Object(pr.d)("axis",e,t,n),a=Object(pr.d)("numOrSizeSplits",e,t,n),o=Object(pr.d)("x",e,t,n);return r.split(o,a,i)}case"ScatterNd":{let i=Object(pr.d)("indices",e,t,n),a=Object(pr.d)("values",e,t,n),o=Object(pr.d)("shape",e,t,n);return[r.scatterND(i,a,o)]}case"GatherNd":{let i=Object(pr.d)("x",e,t,n),a=Object(pr.d)("indices",e,t,n);return[r.gatherND(i,a)]}case"SparseToDense":{let i=Object(pr.d)("sparseIndices",e,t,n),a=Object(pr.d)("outputShape",e,t,n),o=Object(pr.d)("sparseValues",e,t,n),s=Object(pr.d)("defaultValue",e,t,n);return[r.sparseToDense(i,o,a,o.dtype===s.dtype?s:r.cast(s,o.dtype))]}case"TensorScatterUpdate":{let i=Object(pr.d)("indices",e,t,n),a=Object(pr.d)("values",e,t,n),o=Object(pr.d)("tensor",e,t,n);return[r.tensorScatterUpdate(o,i,a)]}default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"sparse":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"SparseFillEmptyRows":{let{outputIndices:i,outputValues:a,emptyRowIndicator:o,reverseIndexMap:s}=r.sparse.sparseFillEmptyRows(Object(pr.d)("indices",e,t,n),Object(pr.d)("values",e,t,n),Object(pr.d)("denseShape",e,t,n),Object(pr.d)("defaultValue",e,t,n));return[i,a,o,s]}case"SparseReshape":{let{outputIndices:i,outputShape:a}=r.sparse.sparseReshape(Object(pr.d)("inputIndices",e,t,n),Object(pr.d)("inputShape",e,t,n),Object(pr.d)("newShape",e,t,n));return[i,a]}case"SparseSegmentMean":return[r.sparse.sparseSegmentMean(Object(pr.d)("data",e,t,n),Object(pr.d)("indices",e,t,n),Object(pr.d)("segmentIds",e,t,n))];case"SparseSegmentSum":return[r.sparse.sparseSegmentSum(Object(pr.d)("data",e,t,n),Object(pr.d)("indices",e,t,n),Object(pr.d)("segmentIds",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"spectral":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"FFT":return[r.fft(Object(pr.d)("x",e,t,n))];case"IFFT":return[r.ifft(Object(pr.d)("x",e,t,n))];case"RFFT":return[r.rfft(Object(pr.d)("x",e,t,n))];case"IRFFT":return[r.irfft(Object(pr.d)("x",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"string":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"StaticRegexReplace":return[r.string.staticRegexReplace(Object(pr.d)("input",e,t,n),Object(pr.d)("pattern",e,t,n),Object(pr.d)("rewrite",e,t,n),Object(pr.d)("replaceGlobal",e,t,n))];case"StringNGrams":{let{nGrams:i,nGramsSplits:a}=r.string.stringNGrams(Object(pr.d)("data",e,t,n),Object(pr.d)("dataSplits",e,t,n),Object(pr.d)("separator",e,t,n),Object(pr.d)("nGramWidths",e,t,n),Object(pr.d)("leftPad",e,t,n),Object(pr.d)("rightPad",e,t,n),Object(pr.d)("padWidth",e,t,n),Object(pr.d)("preserveShortSequences",e,t,n));return[i,a]}case"StringSplit":{let{indices:i,values:a,shape:o}=r.string.stringSplit(Object(pr.d)("input",e,t,n),Object(pr.d)("delimiter",e,t,n),Object(pr.d)("skipEmpty",e,t,n));return[i,a,o]}case"StringToHashBucketFast":return[r.string.stringToHashBucketFast(Object(pr.d)("input",e,t,n),Object(pr.d)("numBuckets",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"transformation":return i(()=>((e,t,n,r=S)=>{switch(e.op){case"Cast":return[r.cast(Object(pr.d)("x",e,t,n),Object(pr.d)("dtype",e,t,n))];case"ExpandDims":{let i=Object(pr.d)("axis",e,t,n);return[r.expandDims(Object(pr.d)("x",e,t,n),i)]}case"Squeeze":{let i=Object(pr.d)("axis",e,t,n);return[r.squeeze(Object(pr.d)("x",e,t,n),i)]}case"Reshape":return[r.reshape(Object(pr.d)("x",e,t,n),Object(pr.d)("shape",e,t,n))];case"EnsureShape":return[r.ensureShape(Object(pr.d)("x",e,t,n),Object(pr.d)("shape",e,t,n))];case"MirrorPad":return[r.mirrorPad(Object(pr.d)("x",e,t,n),Object(pr.d)("padding",e,t,n),Object(pr.d)("mode",e,t,n))];case"PadV2":case"Pad":return[r.pad(Object(pr.d)("x",e,t,n),Object(pr.d)("padding",e,t,n),Object(pr.d)("constantValue",e,t,n))];
26case"SpaceToBatchND":{let i=Object(pr.d)("blockShape",e,t,n),a=Object(pr.d)("paddings",e,t,n);return[r.spaceToBatchND(Object(pr.d)("x",e,t,n),i,a)]}case"BatchToSpaceND":{let i=Object(pr.d)("blockShape",e,t,n),a=Object(pr.d)("crops",e,t,n);return[r.batchToSpaceND(Object(pr.d)("x",e,t,n),i,a)]}case"DepthToSpace":{let i=Object(pr.d)("blockSize",e,t,n),a=Object(pr.d)("dataFormat",e,t,n).toUpperCase();return[r.depthToSpace(Object(pr.d)("x",e,t,n),i,a)]}case"BroadcastTo":return[r.broadcastTo(Object(pr.d)("x",e,t,n),Object(pr.d)("shape",e,t,n))];case"BroadcastArgs":return[r.broadcastArgs(Object(pr.d)("s0",e,t,n),Object(pr.d)("s1",e,t,n))];default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n));case"hash_table":return(async(e,t,n,r)=>{switch(e.op){case"HashTable":case"HashTableV2":{let i=r.getHashTableHandleByName(e.name);if(null!=i)return[i];{let i=new pb(Object(pr.d)("keyDType",e,t,n),Object(pr.d)("valueDType",e,t,n));return r.addHashTable(e.name,i),[i.handle]}}case"InitializeTable":case"InitializeTableV2":case"LookupTableImport":case"LookupTableImportV2":{let i=Object(pr.d)("tableHandle",e,t,n,r),a=Object(pr.d)("keys",e,t,n),o=Object(pr.d)("values",e,t,n),s=r.getHashTableById(i.id);return[await s.import(a,o)]}case"LookupTableFind":case"LookupTableFindV2":{let i=Object(pr.d)("tableHandle",e,t,n,r),a=Object(pr.d)("keys",e,t,n),o=Object(pr.d)("defaultValue",e,t,n),s=r.getHashTableById(i.id);return[await s.find(a,o)]}case"LookupTableSize":case"LookupTableSizeV2":{let i=Object(pr.d)("tableHandle",e,t,n,r);return[r.getHashTableById(i.id).tensorSize()]}default:throw TypeError(`Node type ${e.op} is not implemented`)}})(e,t,n,r);case"custom":let a=Object(pa.b)(e.op);if(a&&a.customExecutor)return a.customExecutor(new pi(e,t,n));throw TypeError(`Custom op ${e.op} is not registered.`);default:throw TypeError(`Unknown op '${e.op}'. File an issue at https://github.com/tensorflow/tfjs/issues so we can add it, or register a custom execution with tf.registerOp()`)}})(e,t,n);return ep.Si.isPromise(a)?a.then(e=>[].concat(e)):[].concat(a)}class py{constructor(e={},t={},n={},r={},i){this.weightMap=e,this.tensorArrayMap=t,this.tensorListMap=n,this.functionMap=r,this.parseNodeNameCache=i,this.rootContext={id:0,frameName:"",iterationId:0},this.contexts=[this.rootContext],this.lastId=0,this.generateCurrentContextIds()}newFrame(e,t){return{id:e,frameName:t,iterationId:0}}set currentContext(e){this.contexts!==e&&(this.contexts=e,this.generateCurrentContextIds())}get currentContext(){return this.contexts}get currentContextId(){return this._currentContextIds[0]}get currentContextIds(){return this._currentContextIds}generateCurrentContextIds(){let e=[];for(let t=0;t<this.contexts.length-1;t++){let n=this.contexts.slice(0,this.contexts.length-t);e.push(this.contextIdforContexts(n))}e.push(""),this._currentContextIds=e}contextIdforContexts(e){return e?e.map(e=>0===e.id&&0===e.iterationId?"":`${e.frameName}-${e.iterationId}`).join("/"):""}enterFrame(e){this.contexts&&(this.lastId++,this.contexts=this.contexts.slice(),this.contexts.push(this.newFrame(this.lastId,e)),this._currentContextIds.unshift(this.contextIdforContexts(this.contexts)))}exitFrame(){if(!(this.contexts&&this.contexts.length>1))throw Error("Cannot exit frame, the context is empty");this.contexts=this.contexts.slice(),this.contexts.splice(-1),this.currentContextIds.shift()}nextIteration(){if(!(this.contexts&&this.contexts.length>0))throw Error("Cannot increase frame iteration, the context is empty");{this.contexts=this.contexts.slice(),this.lastId++;let e=Object.assign({},this.contexts[this.contexts.length-1]);e.iterationId+=1,e.id=this.lastId,this.contexts.splice(-1,1,e),this._currentContextIds.splice(0,1,this.contextIdforContexts(this.contexts))}}getWeight(e){return this.weightMap[e]}addTensorArray(e){this.tensorArrayMap[e.id]=e}getTensorArray(e){return this.tensorArrayMap[e]}addTensorList(e){this.tensorListMap[e.id]=e}getTensorList(e){return this.tensorListMap[e]}dispose(e){for(let t in this.tensorArrayMap)this.tensorArrayMap[t].clearAndClose(e);for(let t in this.tensorListMap)this.tensorListMap[t].clearAndClose(e)}}function pS(e,t,n,r){let i=new Set,a=[],o=null,s=null,l=new Set,u=new Set(Object.keys(e).map(e=>Object(pr.g)(e)[0])),c=new Set((r=r||[]).map(e=>Object(pr.g)(e.name)[0])),p=[...t];for(;p.length>0;){let e=p.pop();(pk(e)||pT(e)||pw(e))&&null==o&&(s=(o=e).children.map(e=>e.name).filter(e=>i.has(e))),i.add(e.name),null==n[e.name]&&(u.has(e.name)||c.has(e.name)||(0!==e.inputs.length?e.inputs.forEac
26h(e=>{l.has(e.name)||(l.add(e.name),p.push(e))}):a.push(e.name)))}return{inputs:e,outputs:t,usedNodes:i,missingInputs:a,dynamicNode:o,syncInputs:s}}function pv(e,t){let{usedNodes:n,inputs:r}=t,i=Object.keys(r).map(e=>Object(pr.g)(e)[0]).map(t=>e.nodes[t]),a=e.initNodes||[],o=e=>n.has("string"==typeof e?e:e.name);function s(e){return[...new Map(e.map(e=>[e.name,e])).values()]}let l=s([...i,...e.weights,...a]).filter(o),u=s([...l,...Object.values(e.nodes)]).filter(o),c=new Map(u.map(e=>[e.name,e])),p={};for(let e of u)for(let t of(p[e.name]=p[e.name]||0,e.children))o(t)||(p[t.name]=1/0),p[t.name]=(p[t.name]||0)+1;let d=Object.entries(p).filter(([,e])=>0===e).map(([e])=>e),f=[...d];for(;d.length>0;){let e=d.pop();for(let t of c.get(e).children.filter(o))0==--p[t.name]&&(f.push(t.name),d.push(t.name))}let h=function(e,t){let n=new Map(e.map(e=>[e.name,e])),r=t.map(e=>e.name),i=new Set(r);for(;r.length>0;){let e=r.pop();for(let t of n.get(e).children)n.has(t.name)&&!i.has(t.name)&&(i.add(t.name),r.push(t.name))}return e.filter(e=>i.has(e.name))}(f.map(e=>c.get(e)),l);return function(e,t){let n=new Map(e.map((e,t)=>[e.name,t])),r=new Set(t.map(e=>e.name)),i=e=>r.has("string"==typeof e?e:e.name),a=new Set(e.map(e=>e.name)),o=e=>a.has("string"==typeof e?e:e.name);for(let t of e){for(let e of t.children.filter(o)){if(!n.has(e.name))throw new pO(`Child ${e.name} of node ${t.name} is unreachable.`);if(n.get(t.name)>n.get(e.name))throw new pO(`Node ${t.name} is scheduled to run after its child ${e.name}.`)}if(!i(t))for(let e of t.inputs){if(!n.has(e.name))throw new pO(`Input ${e.name} of node ${t.name} is unreachable.`);if(n.get(e.name)>n.get(t.name))throw new pO(`Node ${t.name} is scheduled to run before its input ${e.name}.`)}}}(h,l),h}class pO extends Error{constructor(e){super("NodesExecutionOrderError: "+e)}}let px=new Set(["Switch","Merge","Enter","Exit","NextIteration","StatelessIf","StatelessWhile","if","While"]),pI=new Set(["NonMaxSuppressionV2","NonMaxSuppressionV3","NonMaxSuppressionV5","Where"]),pN=new Set(["HashTable","HashTableV2","LookupTableImport","LookupTableImportV2","LookupTableFind","LookupTableFindV2","LookupTableSize","LookupTableSizeV2"]);function pk(e){return px.has(e.op)}function pT(e){return pI.has(e.op)}function pw(e){return pN.has(e.op)}class pj{get weightIds(){return this.parent?this.parent.weightIds:this._weightIds}get functionExecutorMap(){return this.parent?this.parent.functionExecutorMap:this._functionExecutorMap}get weightMap(){return this.parent?this.parent.weightMap:this._weightMap}set weightMap(e){let t=Object.keys(e).map(t=>e[t].map(e=>e.id));this._weightIds=[].concat(...t),this._weightMap=e}set resourceManager(e){this._resourceManager=e}get inputs(){return this._inputs.map(e=>({name:e.name,shape:e.attrParams.shape?e.attrParams.shape.value:void 0,dtype:e.attrParams.dtype?e.attrParams.dtype.value:void 0}))}get outputs(){return this._outputs.map(e=>({name:e.name,shape:e.attrParams.shape?e.attrParams.shape.value:void 0,dtype:e.attrParams.dtype?e.attrParams.dtype.value:void 0}))}get inputNodes(){return this._inputs.map(e=>e.signatureKey||e.name)}get outputNodes(){return this._outputs.map(e=>{let t=e.signatureKey||e.name;return e.defaultOutput?`${t}:${e.defaultOutput}`:t})}get functions(){return Object.keys(this._functions).reduce((e,t)=>(e[t]=this._functions[t].signature,e),{})}constructor(e,t){this.graph=e,this.parent=t,this.compiledMap=new Map,this.parseNodeNameCache=new Map,this._weightMap={},this.SEPARATOR=",",this._functions={},this._functionExecutorMap={},this.keepIntermediateTensors=!1,this._outputs=e.outputs,this._inputs=e.inputs,this._initNodes=e.initNodes,this._signature=e.signature,this._functions=e.functions,null!=e.functions&&Object.keys(e.functions).forEach(t=>{this._functionExecutorMap[t]=new pj(e.functions[t],this)})}getCompilationKey(e,t){let n=e.map(e=>e.name).sort(),r=t.map(e=>e.name).sort();return n.join(this.SEPARATOR)+"--"+r.join(this.SEPARATOR)}compile(e,t){let n=pS(e,t,this.weightMap,this._initNodes),{missingInputs:r,dynamicNode:i,syncInputs:a}=n;if(null!=i)throw Error(`This execution contains the node '${i.name}', which has the dynamic op '${i.op}'. Please use model.executeAsync() instead. Alternatively, to avoid the dynamic ops, specify the inputs [${a}]`);if(r.length>0){let n=t.map(e=>e.name),i=Object.keys(e);throw Error(`Cannot compute the outputs [${n}] from the provided inputs [${i}]. Missing the following inputs: [${r}]`)}let o=pv(this.graph,n),s=function(e){let t=new Map(e.map((e,t)=>[e.name,t])),n=Number.MAX_SAFE_INTEGER,r=e.map((e,t)=>pk(e)?n:t),i=e=>
26{let n=r[t.get(e.name)];return null==n?-1:n},a=e.map((e,t)=>e.children.map(i).reduce((e,t)=>Math.max(e,t),r[t])),o=new Map;for(let t=0;t<e.length;++t){let r=a[t];if(r===n)continue;let i=e[t],s=e[r];o.has(s.name)||o.set(s.name,[]),o.get(s.name).push(i)}return o}(o);return{orderedNodes:o,nodeLiveUntilMap:s}}cloneAndKeepTensor(e){if(null==e)return null;let t=e.clone();return Object(ep.Xf)(t),t}cloneTensorList(e){return e?e.map(e=>this.cloneAndKeepTensor(e)):null}cloneTensorMap(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,this.cloneTensorList(t)]))}execute(e,t){this.disposeIntermediateTensors();let n=Object.keys(e=this.mapInputs(e)).sort();this.checkInputs(e),this.checkInputShapeAndType(e),t=this.mapOutputs(t),this.checkOutputs(t);let r=n.map(e=>this.graph.nodes[Object(pr.g)(e)[0]]),i=t.map(e=>Object(pr.g)(e)[0]),a=new Set(i),o=i.map(e=>this.graph.nodes[e]);0===o.length&&(o=this._outputs);let s=this.getCompilationKey(r,o),l=this.compiledMap.get(s);null==l&&(l=this.compile(e,o),this.compiledMap.set(s,l));try{this.keepIntermediateTensors=Object(ep.of)().getBool("KEEP_INTERMEDIATE_TENSORS")}catch(e){this.keepIntermediateTensors=!1,console.warn(e.message)}let u={},c={};return Object(ep.Ei)(()=>{let n=new py(this.weightMap,u,c,this.functionExecutorMap,this.parseNodeNameCache),r=Object.assign({},this.weightMap);this.keepIntermediateTensors&&(this.clonedTensorsMap=this.cloneTensorMap(this.weightMap)),Object.keys(e).forEach(t=>{let[i,a]=Object(pr.g)(t,n),o=[];o[a]=e[t],r[i]=o,this.keepIntermediateTensors&&(this.clonedTensorsMap[i]=this.cloneTensorList(o))});let i=this.getFrozenTensorIds(r),{orderedNodes:o,nodeLiveUntilMap:s}=l;for(let e of o){if(r[e.name])continue;let t=pm(e,r,n,this._resourceManager);if(ep.Si.isPromise(t))throw Error(`The execution of the op '${e.op}' returned a promise. Please use model.executeAsync() instead.`);r[e.name]=t,this.keepIntermediateTensors&&(this.clonedTensorsMap[e.name]=this.cloneTensorList(t)),this.checkTensorForDisposalWithNodeLiveUntilInfo(e,r,n,i,a,s.get(e.name))}return null==this.parent&&n.dispose(i),t.map(e=>Object(pr.e)(e,r,n))})}getFrozenTensorIds(e){return new Set([].concat.apply([],Object.keys(e).map(t=>e[t]).map(e=>e.map(e=>e.id))))}checkTensorForDisposal(e,t,n,r,i,a,o){if(!pk(t)&&!a.has(e)){for(let r of n[e])null!=r&&(o[r.id]=(o[r.id]||0)+t.children.length);for(let e of t.inputs){if(pk(e))continue;let t=Object(pr.f)(e.name,n,r);if(null!=t)for(let e of t){if(!e||e.kept||i.has(e.id))continue;let t=o[e.id];1===t?(e.dispose(),delete o[e.id]):null!=t&&o[e.id]--}}}}checkTensorForDisposalWithNodeLiveUntilInfo(e,t,n,r,i,a){function o(e){return pk(e)||i.has(e.name)}if(!pk(e)&&null!=a){for(let e of a)if(!o(e))for(let i of Object(pr.f)(e.name,t,n))!i||i.kept||r.has(i.id)||i.dispose()}}async executeAsync(e,t){return this._executeAsync(e,t)}disposeIntermediateTensors(){this.clonedTensorsMap&&(Object.values(this.clonedTensorsMap).forEach(e=>{for(let t of e)t&&!t.isDisposed&&t.dispose()}),this.clonedTensorsMap=null)}getIntermediateTensors(){return this.clonedTensorsMap}async _executeAsync(e,t,n=!1,r={},i={}){this.disposeIntermediateTensors(),n||(e=this.mapInputs(e),this.checkInputs(e),this.checkInputShapeAndType(e),t=this.mapOutputs(t),this.checkOutputs(t));try{this.keepIntermediateTensors=Object(ep.of)().getBool("KEEP_INTERMEDIATE_TENSORS")}catch(e){this.keepIntermediateTensors=!1,console.warn(e.message)}let a=new py(this.weightMap,r,i,this.functionExecutorMap,this.parseNodeNameCache);this.keepIntermediateTensors&&(this.clonedTensorsMap=this.cloneTensorMap(this.weightMap));let o=await this.executeWithControlFlow(e,a,t,n),s=t.map(e=>Object(pr.e)(e,o,a)),l=new Set([...s.map(e=>e.id),...Object.keys(e).map(t=>e[t].id),...this.weightIds]);return Object.values(o).forEach(e=>{e.forEach(e=>{!e||e.isDisposed||l.has(e.id)||e.dispose()})}),null==this.parent&&a.dispose(l),s}async executeFunctionAsync(e,t,n){let r=e.reduce((e,t,n)=>(e[this.inputs[n].name]=t,e),{});return this._executeAsync(r,this.outputNodes,!0,t,n)}async executeWithControlFlow(e,t,n,r){let i=Object.keys(e),a=i.map(e=>this.graph.nodes[Object(pr.g)(e)[0]]),o=n.map(e=>Object(pr.g)(e)[0]),s=new Set(o),l=o.map(e=>this.graph.nodes[e]);0===l.length&&(l=this._outputs);let{usedNodes:u,missingInputs:c,dynamicNode:p,syncInputs:d}=pS(e,l,this.weightMap,this._initNodes),f=[...a,...this.graph.weights,...this._initNodes||[]].map(e=>({node:e,contexts:t.currentContext})),h=Object.assign({},this.weightMap);Object.keys(e).forEach(t=>{let[n,r]=Object(pr.g)(t),i=[];i[r]=e[t],h[n]=i});let g={},b=this.getFrozenTensorIds(h),m={};for(;f.length>0;){let e=this.processStack(a,f,t,h,m,b,s,g,u);await Promise.all(e)}null!=p||r||console.warn("This model execution did not contain any no
26des with control flow or dynamic output shapes. You can use model.execute() instead.");let y=l.filter(e=>!pk(e)&&!Object(pr.e)(e.name,h,t)).map(e=>e.name);if(y.length>0){let e="";throw null!=p&&(e=`Alternatively, to avoid the dynamic ops, use model.execute() and specify the inputs [${d}]`),Error(`Cannot compute the outputs [${y}] from the provided inputs [${i}]. Consider providing the following inputs: [${c}]. ${e}`)}return h}processStack(e,t,n,r,i,a,o,s,l){let u=[];for(;t.length>0;){let e=t.pop();n.currentContext=e.contexts;let c="";if("Enter"===e.node.op&&Object(pr.d)("isConstant",e.node,r,n)&&([c]=Object(pr.b)(e.node.name,n)),null==r[e.node.name]){let p=pm(e.node,r,n,this._resourceManager);c||([c]=Object(pr.b)(e.node.name,n));let d=n.currentContext;ep.Si.isPromise(p)?u.push(p.then(u=>(r[c]=u,this.keepIntermediateTensors&&(this.clonedTensorsMap[c]=this.cloneTensorList(u)),n.currentContext=d,this.checkTensorForDisposal(c,e.node,r,n,a,o,s),this.processChildNodes(e.node,t,n,r,i,l),u))):(r[c]=p,this.keepIntermediateTensors&&(this.clonedTensorsMap[c]=this.cloneTensorList(p)),this.checkTensorForDisposal(c,e.node,r,n,a,o,s),this.processChildNodes(e.node,t,n,r,i,l))}else this.processChildNodes(e.node,t,n,r,i,l)}return u}processChildNodes(e,t,n,r,i,a){e.children.forEach(e=>{let[o]=Object(pr.b)(e.name,n);!i[o]&&a.has(e.name)&&("Merge"===e.op?e.inputNames.some(e=>!!Object(pr.e)(e,r,n))&&(i[o]=!0,t.push({contexts:n.currentContext,node:e})):e.inputNames.every(e=>!!Object(pr.e)(e,r,n))&&(i[o]=!0,t.push({contexts:n.currentContext,node:e})))})}dispose(){Object.keys(this.weightMap).forEach(e=>this.weightMap[e].forEach(e=>e.dispose()))}checkInputShapeAndType(e){Object.keys(e).forEach(t=>{let n=e[t],[r]=Object(pr.g)(t),i=this.graph.nodes[r];if(i.attrParams.shape&&i.attrParams.shape.value){let e=i.attrParams.shape.value,t=e.length===n.shape.length&&n.shape.every((t,n)=>-1===e[n]||e[n]===t);ep.Si.assert(t,()=>`The shape of dict['${i.name}'] provided in model.execute(dict) must be [${e}], but was [${n.shape}]`)}i.attrParams.dtype&&i.attrParams.dtype.value&&ep.Si.assert(n.dtype===i.attrParams.dtype.value,()=>`The dtype of dict['${i.name}'] provided in model.execute(dict) must be ${i.attrParams.dtype.value}, but was ${n.dtype}`)})}mapInputs(e){var t,n;let r={};for(let i in e){let a=null==(n=null==(t=this._signature)?void 0:t.inputs)?void 0:n[i];null!=a?r[a.name]=e[i]:r[i]=e[i]}return r}checkInputs(e){let t=Object.keys(e).filter(e=>{let[t]=Object(pr.g)(e);return null==this.graph.nodes[t]});if(t.length>0)throw Error(`The dict provided in model.execute(dict) has keys: [${t}] that are not part of graph`)}mapOutputs(e){return e.map(e=>{var t,n;let r=null==(n=null==(t=this._signature)?void 0:t.outputs)?void 0:n[e];return null!=r?r.name:e},{})}checkOutputs(e){e.forEach(e=>{let[t]=Object(pr.g)(e);if(!this.graph.nodes[t])throw Error(`The output '${e}' is not found in the graph`)})}}class pF{constructor(e={},t={}){this.hashTableNameToHandle=e,this.hashTableMap=t}addHashTable(e,t){this.hashTableNameToHandle[e]=t.handle,this.hashTableMap[t.id]=t}getHashTableHandleByName(e){return this.hashTableNameToHandle[e]}getHashTableById(e){return this.hashTableMap[e]}dispose(){for(let e in this.hashTableMap)this.hashTableMap[e].clearAndClose(),delete this.hashTableMap[e];for(let e in this.hashTableNameToHandle)this.hashTableNameToHandle[e].dispose(),delete this.hashTableNameToHandle[e]}}var p_=n(40);class pE{get modelVersion(){return this.version}get inputNodes(){return this.executor.inputNodes}get outputNodes(){return this.executor.outputNodes}get inputs(){return this.executor.inputs}get outputs(){return this.executor.outputs}get weights(){return this.executor.weightMap}get metadata(){return this.artifacts.userDefinedMetadata}get modelSignature(){return this.signature}get modelStructuredOutputKeys(){return this.structuredOutputKeys}constructor(e,t={},n=ep.Sf){this.modelUrl=e,this.loadOptions=t,this.version="n/a",this.io=n,null==t&&(this.loadOptions={}),this.resourceManager=new pF}findIOHandler(){let e=this.modelUrl;if(null!=e.load)this.handler=e;else if(null!=this.loadOptions.requestInit)this.handler=this.io.browserHTTPRequest
26(e,this.loadOptions);else{let t=this.io.getLoadHandlers(e,this.loadOptions);if(0===t.length)t.push(this.io.browserHTTPRequest(e,this.loadOptions));else if(t.length>1)throw Error(`Found more than one (${t.length}) load handlers for URL '${[e]}'`);this.handler=t[0]}}load(){if(this.findIOHandler(),null==this.handler.load)throw Error("Cannot proceed with model loading because the IOHandler provided does not have the `load` method implemented.");let e=this.handler.load();return ep.Si.isPromise(e)?e.then(e=>null==e.getWeightStream?this.loadSync(e):this.loadStreaming(e)):this.loadSync(e)}loadSync(e){let t=this.io.decodeWeights(e.weightData,e.weightSpecs);return this.loadWithWeightMap(e,t)}async loadStreaming(e){if(null==e.getWeightStream)throw Error("Model artifacts missing streamWeights function");let t=await Object(p_.f)(e.getWeightStream(),e.weightSpecs);return this.loadWithWeightMap(e,t)}loadWithWeightMap(e,t){this.artifacts=e;let n=this.artifacts.modelTopology,r=this.artifacts.signature;if(null!=this.artifacts.userDefinedMetadata){let e=this.artifacts.userDefinedMetadata;null!=e.signature&&(r=e.signature),null!=e.structuredOutputKeys&&(this.structuredOutputKeys=e.structuredOutputKeys)}if(this.signature=r,this.version=`${n.versions.producer}.${n.versions.minConsumer}`,this.executor=new pj(pn.a.Instance.transformGraph(n,this.signature)),this.executor.weightMap=this.convertTensorMapToTensorsMap(t),this.executor.resourceManager=this.resourceManager,null!=e.modelInitializer&&null!=e.modelInitializer.node){let t=pn.a.Instance.transformGraph(e.modelInitializer);this.initializer=new pj(t),this.initializer.weightMap=this.executor.weightMap,this.initializer.resourceManager=this.resourceManager,this.initializerSignature=e.initializerSignature}return!0}async save(e,t){if("string"==typeof e){let t=this.io.getSaveHandlers(e);if(0===t.length)throw Error(`Cannot find any save handlers for URL '${e}'`);if(t.length>1)throw Error(`Found more than one (${t.length}) save handlers for URL '${e}'`);e=t[0]}if(null==e.save)throw Error("GraphModel.save() cannot proceed because the IOHandler provided does not have the `save` attribute defined.");return e.save(this.artifacts)}addStructuredOutputNames(e){if(this.structuredOutputKeys){let t=e instanceof ep.Dd?[e]:e,n={};return t.forEach((e,t)=>n[this.structuredOutputKeys[t]]=e),n}return e}predict(e,t){let n=this.execute(e,this.outputNodes);return this.addStructuredOutputNames(n)}async predictAsync(e,t){let n=await this.executeAsync(e,this.outputNodes);return this.addStructuredOutputNames(n)}normalizeInputs(e){var t;if(!(e instanceof ep.Dd)&&!Array.isArray(e)){let n=null==(t=this.signature)?void 0:t.inputs;if(null!=n)for(let t in n){let r=n[t];null!=r.resourceId&&(e[t]=this.resourceIdToCapturedInput[r.resourceId])}return e}e=Array.isArray(e)?e:[e];let n=Object.keys(this.resourceIdToCapturedInput).length;if(e.length+n!==this.inputNodes.length)throw Error(`Input tensor count mismatch, the graph model has ${this.inputNodes.length-n} non-resource placeholders, while there are ${e.length} input tensors provided.`);let r=0;return this.inputNodes.reduce((t,n)=>{var i,a,o;let s=null==(o=null==(a=null==(i=this.signature)?void 0:i.inputs)?void 0:a[n])?void 0:o.resourceId;return t[n]=null!=s?this.resourceIdToCapturedInput[s]:e[r++],t},{})}normalizeOutputs(e){return Array.isArray(e=e||this.outputNodes)?e:[e]}executeInitializerGraph(){return null==this.initializer?[]:null==this.initializerSignature?this.initializer.execute({},[]):this.initializer.execute({},Object.keys(this.initializerSignature.outputs))}async executeInitializerGraphAsync(){return null==this.initializer?[]:null==this.initializerSignature?this.initializer.executeAsync({},[]):this.initializer.executeAsync({},Object.keys(this.initializerSignature.outputs))}setResourceIdToCapturedInput(e){if(this.resourceIdToCapturedInput={},this.initializerSignature){let t=this.initializerSignature.outputs,n=Object.keys(t);for(let r=0;r<n.length;r++){let i=t[n[r]];this.resourceIdToCapturedInput[i.resourceId]=e[r]}}}execute(e,t){null==this.resourceIdToCapturedInput&&this.setResourceIdToCapturedInput(this.executeInitializerGraph()),e=this.normalizeInputs(e),t=this.normalizeOutputs(t);let n=this.executor.execute(e,t);return n.length>1?n:n[0]}async executeAsync(e,t){null==this.resourceIdToCapturedInput&&this.setResourceIdToCapturedInput(await this.executeInitializerGraphAsync()),e=this.normalizeInputs(e),t=this.normalizeOutputs(t);let n=await this.executor.executeAsync(e,t);return n.length>1?n:n[0]}getIntermediateTensors(){return this.executor.getIntermediateTensors()}disposeIntermediateTensors(){this.executor.disposeIntermediateTensors()}convertTensorMapToTensorsMap(e){return Object.keys(e).reduce((t,n)=>(t[n]=[e[n]],t),{})}dispose(){this.executor.dispose(),this.initializer&&(this.initializer.dispose(),this.resourceIdToCapturedInput&&Object(ep.bf)(this.resourceIdToCapturedInput)),this.resourceManager.dispose()}}async function pR(e,t={},n=ep.Sf){if(null==e)throw Error("modelUrl in loadGraphModel() cannot be null. Please provide a url or an IOHandler that loads the model");null==t&&(t={}),t.fromTFHub&&"string"==typeof e&&(e=function(e){return e.endsWith("/")||(e+="/"),e+"model.json?tfjs-format=file"}(e));let r=new pE(e,t,n);return await r.load(),r}function pD(e){let t;if(null==e)throw Error("modelUrl in loadGraphModelSync() cannot be null. Please provide model artifacts or an IOHandler that loads the model");if(e instanceof Array){let[n,r]=e;if(!n)throw Error("modelJSON must be the first element of the array");if(!r||!(r instanceof ArrayBuffer))throw Error("An ArrayBuffer of weights must be the second element of the array");if(!("modelTopology"in n))throw Error("Model JSON is missing 'modelTopology'");
26if(!("weightsManifest"in n))throw Error("Model JSON is missing 'weightsManifest'");let i=ep.Sf.getWeightSpecs(n.weightsManifest),a=ep.Sf.getModelArtifactsForJSONSync(n,i,r);t=ep.Sf.fromMemorySync(a)}else if("load"in e)t=e;else{if(!("modelTopology"in e&&"weightSpecs"in e&&"weightData"in e))throw Error("Unknown model format");t=ep.Sf.fromMemorySync(e)}let n=new pE(t);return n.load(),n}let pC="4.22.0";var pA=n(113),pM=n(64),p$=n(96);class pU{constructor(){this.size=null}batch(e,t=!0){let n=this;return ep.Si.assert(e>0,()=>"batchSize needs to be positive, but it is\n "+e),pP(async()=>(await n.iterator()).columnMajorBatch(e,t,pW),this.size===1/0||null==this.size?this.size:t?Math.ceil(this.size/e):Math.floor(this.size/e))}concatenate(e){let t=this;return pP(async()=>(await t.iterator()).concatenate(await e.iterator()),this.size===1/0||e.size===1/0?1/0:null!=this.size&&null!=e.size?this.size+e.size:null)}filter(e){let t=this;return pP(async()=>(await t.iterator()).filter(t=>ep.Ei(()=>e(t))),this.size===1/0?1/0:null)}async forEachAsync(e){return(await this.iterator()).forEachAsync(e)}map(e){let t=this;return pP(async()=>(await t.iterator()).map(t=>ep.Ei(()=>e(t))),this.size)}mapAsync(e){let t=this;return pP(async()=>(await t.iterator()).mapAsync(e),this.size)}prefetch(e){if(null==e)throw RangeError("`Dataset.prefetch()` requires bufferSize to be specified.");let t=this;return pP(async()=>(await t.iterator()).prefetch(e),this.size)}repeat(e){let t=this;return pP(async()=>{let n=Object(pM.e)(async()=>({value:await t.iterator(),done:!1}));return Object(pM.d)(n.take(e))},null!=this.size&&e>0?this.size*e:0===e?0:null!=this.size&&(void 0===e||e<0)?1/0:null)}skip(e){let t=this;return pP(async()=>(await t.iterator()).skip(e),null!=this.size&&e>=0&&this.size>=e?this.size-e:null!=this.size&&(this.size<e||void 0===e||e<0)?0:null)}shuffle(e,t,n=!0){if(null==e||e<0)throw null==this.size?RangeError("`Dataset.shuffle()` requires bufferSize to be specified."):RangeError(`\`Dataset.shuffle()\` requires bufferSize to be specified. If your data fits in main memory (for regular JS objects), and/or GPU memory (for \`tf.Tensor\`s), consider setting bufferSize to the dataset size (${this.size} elements)`);let r=this,i=pA.alea(t||ep.Si.now().toString());return pP(async()=>{let t=i.int32();return n&&(t+=i.int32()),(await r.iterator()).shuffle(e,t.toString())},this.size)}take(e){let t=this;return pP(async()=>(await t.iterator()).take(e),null!=this.size&&this.size>e?e:null!=this.size&&this.size<=e?this.size:null)}async toArray(){if(this.size===1/0)throw Error("Can not convert infinite data stream to array.");return(await this.iterator()).toArray()}async toArrayForTest(){if(this.size===1/0)throw Error("Can not convert infinite data stream to array.");return(await this.iterator()).toArrayForTest()}}function pP(e,t=null){return new class extends pU{constructor(){super(...arguments),this.size=t}async iterator(){return e()}}}function pB(e){return pP(async()=>Object(pM.f)(e),e.length)}function pL(e){let t;if(!Object(p$.e)(e))throw Error("The argument to zip() must be an object or array.");if(Array.isArray(e))for(let n=0;n<e.length;n++)t=null==t?e[n].size:Math.min(t,e[n].size);else if(e instanceof Object)for(let n in e)t=null==t?e[n].size:Math.min(t,e[n].size);return pP(async()=>{let t=await Object(p$.c)(e,e=>{if(e instanceof pU)return{value:e.iterator(),recurse:!1};if(Object(p$.e)(e))return{value:null,recurse:!0};throw Error("Leaves of the structure passed to zip() must be Datasets, not primitives.")});return Object(pM.g)(t,pM.c.SHORTEST)},t)}function pW(e){if(null===e)return null;let t=e[0];return Object(p$.a)(t)?{value:function(e){if(0===e.length)throw Error("Can't make a batch of zero elements.");return e[0]instanceof ep.Dd?ep.li(e):ep.ui(e)}(e),recurse:!1}:{value:null,recurse:!0}}pU.MAX_BUFFER_SIZE=1e4;class pz extends pU{constructor(e){super(),this.input=e}async iterator(){return(await this.input.iterator()).decodeUTF8().split("\n").map(e=>(e.endsWith("\r")&&(e=e.slice(0,-1)),e))}}let pG=Symbol("out"),pV=Symbol("field"),pH=Symbol("quote"),pq=Symbol("quoteafterquote"),pK=Symbol("quoteinquote");class pX extends pU{async columnNames(){return this.columnNamesValidated||await this.setColumnNames(),this.configuredColumnsOnly?Object.keys(this.columnConfigs):this.fullColumnNames}async setColumnNames(){let e=await this.maybeReadHeaderLine();if(!this.fullColumnNames&&!e)throw Error("Column names must be provided if there is no header line.");this.fullColumnNames&&e&&ep.Si.assert(e.length===this.fullColumnNames.length,()=>"The length of provided columnNames ("+this.fullColumnNames.length.toString()+") does not match the length of the header line read from file ("+e.length.toString()+")."),this.fullColumnNames||(this.fullColumnNames=e);let t=this.fullColumnNames.reduce((e,t)=>
26(e[t]=e[t]+1||1,e),{}),n=Object.keys(t).filter(e=>t[e]>1);if(ep.Si.assert(0===n.length,()=>"Duplicate column names found: "+n.toString()),this.columnConfigs){for(let e of Object.keys(this.columnConfigs))if(-1===this.fullColumnNames.indexOf(e))throw Error('The key "'+e+'" provided in columnConfigs does not match any of the column names ('+this.fullColumnNames.toString()+").")}this.columnNamesValidated=!0}async maybeReadHeaderLine(){if(this.hasHeader){let e=await this.base.iterator(),t=await e.next();if(t.done)throw Error("No data was found for CSV parsing.");let n=t.value;return this.parseRow(n,!1)}return null}constructor(e,t){super(),this.input=e,this.hasHeader=!0,this.fullColumnNames=null,this.columnNamesValidated=!1,this.columnConfigs=null,this.configuredColumnsOnly=!1,this.delimiter=",",this.delimWhitespace=!1,this.base=new pz(e),t||(t={}),this.hasHeader=!1!==t.hasHeader,this.fullColumnNames=t.columnNames,this.columnConfigs=t.columnConfigs,this.configuredColumnsOnly=t.configuredColumnsOnly,t.delimWhitespace?(ep.Si.assert(null==t.delimiter,()=>"Delimiter should not be provided when delimWhitespace is true."),this.delimWhitespace=!0,this.delimiter=" "):this.delimiter=t.delimiter?t.delimiter:","}async iterator(){this.columnNamesValidated||await this.setColumnNames();let e=await this.base.iterator();return this.hasHeader&&(e=e.skip(1)),e.map(e=>this.makeDataElement(e))}makeDataElement(e){let t=this.parseRow(e),n={},r={};for(let i=0;i<this.fullColumnNames.length;i++){let a=this.fullColumnNames[i],o=this.columnConfigs?this.columnConfigs[a]:null;if(!this.configuredColumnsOnly||o){let s=t[i],l=null;if(""===s)if(o&&void 0!==o.default)l=o.default;else{if(o&&(o.required||o.isLabel))throw Error(`Required column ${a} is empty in this line: ${e}`);l=void 0}else{let e=Number(s);if(isNaN(e))l=o&&"bool"===o.dtype?this.getBoolean(s):s;else if(o&&o.dtype)switch(o.dtype){case"float32":default:l=e;break;case"int32":l=Math.floor(e);break;case"bool":l=this.getBoolean(s)}else l=e}o&&o.isLabel?r[a]=l:n[a]=l}}return 0===Object.keys(r).length?n:{xs:n,ys:r}}getBoolean(e){return+("1"===e||"true"===e.toLowerCase())}parseRow(e,t=!0){let n=[],r=0,i=e.length,a=pG;for(let t=0;t<i;t++)switch(a){case pG:switch(e.charAt(t)){case'"':r=t+1,a=pH;break;case this.delimiter:if(r=t+1," "===this.delimiter&&this.delimWhitespace)break;n.push(""),a=pG;break;default:a=pV,r=t}break;case pV:e.charAt(t)===this.delimiter&&(n.push(e.substring(r,t)),a=pG,r=t+1);break;case pH:'"'===e.charAt(t)&&(a=pq);break;case pq:switch(e.charAt(t)){case this.delimiter:n.push(e.substring(r,t-1)),a=pG,r=t+1;break;case'"':a=pH;break;default:a=pK}break;case pK:'"'===e.charAt(t)&&(a=pH)}if(a===pq?n.push(e.substring(r,i-1)):n.push(e.substring(r)),t&&n.length!==this.fullColumnNames.length)throw Error(`Invalid row in csv file. Should have ${this.fullColumnNames.length} elements in a row, but got ${n}`);return n}}class pY extends pM.a{constructor(e){super(),this.microphoneConfig=e,this.isClosed=!1,this.fftSize=e.fftSize||1024;let t=Math.log2(this.fftSize);if(this.fftSize<0||t<4||t>14||!Number.isInteger(t))throw Error("Invalid fftSize: it must be a power of 2 between 2 to 4 and 2 to 14, but got "+this.fftSize);if(this.numFrames=e.numFramesPerSpectrogram||43,this.sampleRateHz=e.sampleRateHz,this.columnTruncateLength=e.columnTruncateLength||this.fftSize,this.audioTrackConstraints=e.audioTrackConstraints,this.smoothingTimeConstant=e.smoothingTimeConstant||0,this.includeSpectrogram=!1!==e.includeSpectrogram,this.includeWaveform=!0===e.includeWaveform,!this.includeSpectrogram&&!this.includeWaveform)throw Error("Both includeSpectrogram and includeWaveform are false. At least one type of data should be returned.")}summary(){return"microphone"}static async create(e={}){if(!Object(ep.of)().get("IS_BROWSER"))throw Error("microphone API is only supported in browser environment.");let t=new pY(e);return await t.start(),t}async start(){try{this.stream=await navigator.mediaDevices.getUserMedia({audio:null==this.audioTrackConstraints||this.audioTrackConstraints,video:!1})}catch(e){throw Error("Error thrown while initializing video stream
26: "+e.message)}if(!this.stream)throw Error("Could not obtain audio from microphone.");let e=window.AudioContext||window.webkitAudioContext;if(this.audioContext=new e,this.sampleRateHz){if(this.audioContext.sampleRate!==this.sampleRateHz)throw Error(`Mismatch in sampling rate: Expected: ${this.sampleRateHz}; Actual: `+this.audioContext.sampleRate)}else this.sampleRateHz=this.audioContext.sampleRate;let t=this.audioContext.createMediaStreamSource(this.stream);this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=2*this.fftSize,this.analyser.smoothingTimeConstant=this.smoothingTimeConstant,t.connect(this.analyser),this.freqData=new Float32Array(this.fftSize),this.timeData=new Float32Array(this.fftSize)}async next(){let e,t;if(this.isClosed)return{value:null,done:!0};let n=await this.getAudioData();if(this.includeSpectrogram){let t=this.flattenQueue(n.freqDataQueue);e=this.getTensorFromAudioDataArray(t,[this.numFrames,this.columnTruncateLength,1])}if(this.includeWaveform){let e=this.flattenQueue(n.timeDataQueue);t=this.getTensorFromAudioDataArray(e,[this.numFrames*this.fftSize,1])}return{value:{spectrogram:e,waveform:t},done:!1}}async capture(){return(await this.next()).value}async getAudioData(){let e=[],t=[],n=0;return new Promise(r=>{let i=setInterval(()=>{this.includeSpectrogram&&(this.analyser.getFloatFrequencyData(this.freqData),this.freqData[0]===-1/0&&r({freqDataQueue:e,timeDataQueue:t}),e.push(this.freqData.slice(0,this.columnTruncateLength))),this.includeWaveform&&(this.analyser.getFloatTimeDomainData(this.timeData),t.push(this.timeData.slice())),++n===this.numFrames&&(clearInterval(i),r({freqDataQueue:e,timeDataQueue:t}))},this.fftSize/this.sampleRateHz*1e3)})}stop(){this.isClosed||(this.isClosed=!0,this.analyser.disconnect(),this.audioContext.close(),null!=this.stream&&this.stream.getTracks().length>0&&this.stream.getTracks()[0].stop())}toArray(){throw Error("Can not convert infinite audio stream to array.")}getSampleRate(){return this.sampleRateHz}flattenQueue(e){let t=e[0].length,n=new Float32Array(e.length*t);return e.forEach((e,r)=>n.set(e,r*t)),n}getTensorFromAudioDataArray(e,t){let n=new Float32Array(ep.Si.sizeFromShape(t));return n.set(e,n.length-e.length),Object(ep.ui)(n,t)}}class pQ extends pM.a{constructor(e,t){if(super(),this.webcamVideoElement=e,this.webcamConfig=t,this.isClosed=!0,this.resize=!1,this.needToResize())if(this.resize=!0,this.cropSize=[this.webcamConfig.resizeHeight,this.webcamConfig.resizeWidth],this.cropBoxInd=Object(ep.vi)([0],"int32"),this.webcamConfig.centerCrop){let e=this.webcamConfig.resizeWidth/this.webcamVideoElement.width,t=this.webcamConfig.resizeHeight/this.webcamVideoElement.height,n=(1-e)/2,r=(1-t)/2,i=n+e,a=t+r;this.cropBox=Object(ep.wi)([r,n,a,i],[1,4])}else this.cropBox=Object(ep.wi)([0,0,1,1],[1,4])}summary(){return"webcam"}static async create(e,t={}){if(!Object(ep.of)().get("IS_BROWSER"))throw Error("tf.data.webcam is only supported in browser environment.");if(!e){if(e=document.createElement("video"),!t.resizeWidth||!t.resizeHeight)throw Error("Please provide webcam video element, or resizeWidth and resizeHeight to create a hidden video element.");e.width=t.resizeWidth,e.height=t.resizeHeight}let n=new pQ(e,t);return await n.start(),n}async start(){this.webcamConfig.facingMode&&ep.Si.assert("user"===this.webcamConfig.facingMode||"environment"===this.webcamConfig.facingMode,()=>`Invalid webcam facing mode: ${this.webcamConfig.facingMode}. Please provide 'user' or 'environment'`);try{this.stream=await navigator.mediaDevices.getUserMedia({video:{deviceId:this.webcamConfig.deviceId,facingMode:this.webcamConfig.facingMode?this.webcamConfig.facingMode:"user",width:this.webcamVideoElement.width,height:this.webcamVideoElement.height}})}catch(e){throw e.message="Error thrown while initializing video stream: "+e.message,e}if(!this.stream)throw Error("Could not obtain video from webcam.");try{this.webcamVideoElement.srcObject=this.stream}catch(e){console.log(e),this.webcamVideoElement.src=window.URL.createObjectURL(this.stream)}return this.webcamVideoElement.play(),this.isClosed=!1,new Promise(e=>{this.webcamVideoElement.onloadedmetadata=()=>{e()}})}async next(){let e;if(this.isClosed)return{value:null,done:!0};try{e=ep.ve.fromPixels(this.webcamVideoElement)}
26catch(e){throw Error("Error thrown converting video to pixels: "+JSON.stringify(e))}if(!this.resize)return{value:e,done:!1};try{return{value:this.cropAndResizeFrame(e),done:!1}}catch(e){throw Error("Error thrown cropping the video: "+e.message)}finally{e.dispose()}}needToResize(){return!(!this.webcamConfig.resizeWidth||!this.webcamConfig.resizeHeight||this.webcamVideoElement.width===this.webcamConfig.resizeWidth&&this.webcamVideoElement.height===this.webcamConfig.resizeHeight)}cropAndResizeFrame(e){return Object(ep.Ei)(()=>{let t,n=Object(ep.tf)(Object(ep.xe)(e,"float32"),0),r=(t=ep.Qf.cropAndResize(n,this.cropBox,this.cropBoxInd,this.cropSize,"bilinear")).shape;return Object(ep.wh)(t,r.slice(1))})}async capture(){return(await this.next()).value}stop(){this.stream.getTracks().forEach(e=>e.stop());try{this.webcamVideoElement.srcObject=null}catch(e){console.log(e),this.webcamVideoElement.src=null}this.isClosed=!0}toArray(){throw Error("Can not convert infinite video stream to array.")}}class pJ{}var pZ=n(383);class p0 extends pZ.a{constructor(e,t={}){super(),this.file=e,this.options=t,ep.Si.assert(e instanceof Uint8Array||!!Object(ep.of)().get("IS_BROWSER")&&(e instanceof File||e instanceof Blob),()=>"FileChunkIterator only supports File, Blob and Uint8Array right now."),this.offset=t.offset||0,this.chunkSize=t.chunkSize||1048576}summary(){return"FileChunks "+this.file}async next(){if(this.offset>=(this.file instanceof Uint8Array?this.file.byteLength:this.file.size))return{value:null,done:!0};let e=new Promise((e,t)=>{let n=this.offset+this.chunkSize;if(this.file instanceof Uint8Array)e(new Uint8Array(this.file.slice(this.offset,n)));else{let r=new FileReader;r.onload=n=>{let i=r.result;if(i instanceof ArrayBuffer&&(i=new Uint8Array(i)),!(i instanceof Uint8Array))return t(TypeError("FileReader returned unknown type."));e(i)},r.onabort=e=>t(Error("Aborted")),r.onerror=e=>t(Error(e.type));let i=this.file.slice(this.offset,n);r.readAsArrayBuffer(i)}this.offset=n});return{value:await e,done:!1}}}let p1=e=>({method:e.method,headers:e.headers,body:e.body,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity});function p2(e){return"string"==typeof e&&"file://"===e.slice(0,7)}class p3 extends pJ{constructor(e,t={}){super(),this.input=e,this.options=t}async iterator(){if(p2(this.input)&&Object(ep.of)().get("IS_NODE")){let e=n(660);this.input=e.readFileSync(this.input.slice(7))}return new p0(this.input,this.options)}}class p4 extends pJ{constructor(e,t={}){super(),this.url=e,this.fileOptions=t}async iterator(){return p2(this.url)?new p3(this.url,this.fileOptions).iterator():async function(e,t={},n){let r,i;"string"==typeof e?r=e:(r=e.url,i=p1(e));let a=await (0,ep.Si.fetch)(r,i);if(a.ok)return new p0(new Uint8Array(await a.arrayBuffer()),t);throw Error(a.statusText)}(this.url,this.fileOptions)}}function p6(e,t={}){return new pX(new p4(e),t)}function p5(e){let t=Object(pM.e)(e);return pP(async()=>t)}function p8(e){return pP(async()=>{let t=await e();return Object(pM.e)(()=>t.next())})}async function p7(e,t){return pQ.create(e,t)}async function p9(e){return pY.create(e)}let de="4.22.0";function dt(e,t){Array.isArray(e)||(e=[e]),e.forEach(e=>{null!=e&&ep.Si.assert("complex64"!==e.dtype,()=>t+" does not support complex64 tensors in the CPU backend.")})}let dn=ep.Yf.whereImpl;class dr extends ep.Hb{nextDataId(){return dr.nextDataId++}constructor(){super(),this.blockSize=48,this.firstUse=!0,this.data=new ep.T(this,Object(ep.mf)())}write(e,t,n){this.firstUse&&(this.firstUse=!1,Object(ep.of)().get("IS_NODE")&&ep.ie.warn("\n============================\nHi, looks like you are running TensorFlow.js in Node.js. To speed things up dramatically, install our node backend, visit https://github.com/tensorflow/tfjs-node for more details. \n============================"));let r={id:this.nextDataId()};return this.data.set(r,{values:e,dtype:n,refCount:1}),r}makeTensorInfo(e,t,n){let r;if("string"===t&&null!=n&&n.length>0&&ep.Si.isString(n[0])){let i=n.map(e=>ep.Si.encodeString(e));r=this.write(i,e,t)}else r=this.write(n,e,t);return{dataId:r,shape:e,dtype:t}}refCount(e){return this.data.has(e)?this.data.get(e).refCount:0}incRef(e){this.data.get(e).refCount++}decRef(e){this.data.has(e)&&this.data.get(e).refCount--}move(e,t,n,r,i){this.data.set(e,{values:t,dtype:r,refCount:i})}numDataIds(){return this.data.numDataIds()}async read(e){return this.readSync(e)}readSync(e){let{dtype:t,complexTensorInfos:n}=this.data.get(e);if("complex64"===t){let e=this.readSync(n.real.dataId),t=this.readSync(n.imag.dataId);return ep.ie.mergeRealAndImagArrays(e,t)}return ep.Si.convertBackendValuesAndArrayBuffer(this.data.get(e).values,t)}bufferSync(e){let t=this.readSync(e.dataId);if("string"===e.dtype)try{let n=t.map(e=>ep.Si.decodeString(e));return Object(ep.we)(e.shape,e.dtype,n)}catch(e){throw Error("Failed to decode encoded string bytes into utf-8")}return Object(ep.we)(e.shape,e.dtype,t)}makeOutput(e,t,n){return Object(ep.mf)().makeTensorFromTensorInfo(this.makeTensorInfo(t,n,e),this)}
26disposeData(e,t=!1){if(this.data.has(e)){if(this.data.get(e).refCount--,!t&&this.data.get(e).refCount>0)return!1;let{complexTensorInfos:n}=this.data.get(e);null!=n&&(this.disposeData(n.real.dataId,!0),this.disposeData(n.imag.dataId,!0)),this.data.delete(e)}return!0}disposeIntermediateTensorInfo(e){this.disposeData(e.dataId)}async time(e){let t=ep.Si.now();return e(),{kernelMs:ep.Si.now()-t}}memory(){return{unreliable:!0,reasons:["The reported memory is an upper bound. Due to automatic garbage collection, the true allocated memory may be less."]}}where(e){dt([e],"where");let t=this.readSync(e.dataId);return dn(e.shape,t)}dispose(){}floatPrecision(){return 32}epsilon(){return super.epsilon()}}function di(e){let t=new Float32Array(e.length);for(let n=0;n<e.length;++n)t[n]=Math.abs(e[n]);return t}dr.nextDataId=0;let da={kernelName:ep.a,backendName:"cpu",kernelFunc:e=>{let{x:t}=e.inputs,n=e.backend;dt(t,"abs");let r=new Float32Array(ep.Si.sizeFromShape(t.shape));return r=di(n.data.get(t.dataId).values),n.makeOutput(r,t.shape,t.dtype)}};function ds(e){return(t,n,r,i,a)=>{let o=ep.ie.assertAndGetBroadcastShape(t,n),s=o.length,l=ep.Si.computeStrides(o),u=ep.Si.sizeFromShape(o),c=ep.Si.getTypedArrayFromDType(a,u),p=t.length,d=n.length,f=ep.Si.computeStrides(t),h=ep.Si.computeStrides(n),g=ep.ie.getBroadcastDims(t,o),b=ep.ie.getBroadcastDims(n,o);if(g.length+b.length===0)for(let t=0;t<c.length;++t)c[t]=e(r[t%r.length],i[t%i.length]);else for(let t=0;t<c.length;++t){let n=ep.Si.indexToLoc(t,s,l),a=n.slice(-p);g.forEach(e=>a[e]=0);let o=ep.Si.locToIndex(a,p,f),u=n.slice(-d);b.forEach(e=>u[e]=0);let m=ep.Si.locToIndex(u,d,h);c[t]=e(r[o],i[m])}return[c,o]}}function dl(e){let{inputs:t,backend:n}=e,{real:r,imag:i}=t,a=n.data.get(r.dataId).values,o=n.data.get(i.dataId).values,s=n.makeTensorInfo(r.shape,"complex64");return n.data.get(s.dataId).complexTensorInfos={real:n.makeTensorInfo(r.shape,"float32",a),imag:n.makeTensorInfo(i.shape,"float32",o)},s}let du={kernelName:ep.F,backendName:"cpu",kernelFunc:dl};function dc(e,t,n="float32"){if("complex64"===n)return dl({inputs:{real:dc(e,t,"float32"),imag:dc(e,t,"float32")},backend:e});let r=ep.Si.makeZerosTypedArray(ep.Si.sizeFromShape(t),n);return e.makeTensorInfo(t,n,r)}function dp(e){let{inputs:t,backend:n}=e,{x:r}=t;return n.incRef(r.dataId),{dataId:r.dataId,shape:r.shape,dtype:r.dtype}}let dd={kernelName:ep.Cb,backendName:"cpu",kernelFunc:dp};function df(e){let{inputs:t,backend:n}=e,{input:r}=t,i=n.data.get(r.dataId).complexTensorInfos.real,a=n.data.get(i.dataId).values;return n.makeTensorInfo(i.shape,i.dtype,a)}let dh={kernelName:ep.Ic,backendName:"cpu",kernelFunc:df};function dg(e,t,n,r){if("int32"===r)return[t,"int32",Int32Array.from(e)];if("bool"===r){let r=ep.Si.toTypedArray([0],n),[i,a]=ds((e,t)=>+(e!==t))(t,[],e,r,"bool");return[a,"bool",i]}throw Error(`Error in Cast: failed to cast ${n} to ${r}`)}function db(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{dtype:a}=r;if("complex64"===a){if("complex64"===i.dtype)return dp({inputs:{x:i},backend:n});let e=dc(n,i.shape,i.dtype),t=db({inputs:{x:i},backend:n,attrs:{dtype:"float32"}}),r=dl({inputs:{real:t,imag:e},backend:n});return n.disposeIntermediateTensorInfo(e),n.disposeIntermediateTensorInfo(t),r}if("complex64"===i.dtype){let e=df({inputs:{input:i},backend:n}),t=db({inputs:{x:e},backend:n,attrs:{dtype:a}});return n.disposeIntermediateTensorInfo(e),t}if(!ep.Si.hasEncodingLoss(i.dtype,a)){let e=dp({inputs:{x:i},backend:n});return{dataId:e.dataId,shape:e.shape,dtype:a}}let[o,s,l]=dg(n.data.get(i.dataId).values,i.shape,i.dtype,a);return n.makeTensorInfo(o,s,l)}let dm={kernelName:ep.C,backendName:"cpu",kernelFunc:db};function dy(e,t,n,r){return null==n?({inputs:n,backend:i})=>{let{a:a,b:o}=n,s=i;dt([a,o],e);let l=s.data.get(a.dataId).values,u=s.data.get(o.dataId).values,c="string"===a.dtype?ep.ie.fromUint8ToStringArray(l):l,p="string"===a.dtype?ep.ie.fromUint8ToStringArray(u):u,d=r||a.dtype,[f,h]=t(a.shape,o.shape,c,p,d);return s.makeTensorInfo(h,d,f)}:({inputs:e,backend:i})=>{let{a:a,b:o}=e,s=i;if("complex64"===a.dtype||"complex64"===o.dtype){let e=db({inputs:{x:a},backend:s,attrs:{dtype:"complex64"}}),t=s.data.get(e.dataId),r=t.complexTensorInfos.real,i=t.complexTensorInfos.imag,l=s.data.get(r.dataId).values,u=s.data.get(i.dataId).values,c=db({inputs:{x:o},backend:s,attrs:{dtype:"complex64"}}),p=s.data.get(c.dataId),d=p.complexTensorInfos.real,f=p.complexTensorInfos.imag,h=s.data.get(d.dataId).values,g=s.data.get(f.dataId).values,[b,m,y]=n(a.shape,o.shape,l,u,h,g),S=s.makeTensorInfo(y,"float32",b),v=s.makeTensorInfo(y,"float32",m),O=dl({inputs:{real:S,imag:v},backend:s});return s.disposeIntermediateTensorInfo(e),s.disposeIntermediateTensorInfo(c),s.disposeIntermediateTensorInfo(S),s.disposeIntermediateTensorInfo(v),O}{let e=s.data.get(a.dataId).values,n=s.data.get(o.dataId).values,i=r||a.dtype,[l,u]=t(a.shape,o.shape,e,n,i);return s.makeTensorInfo(u,i,l)}}}function dS(e){return(t,n,r,i,a,o)=>{let s=ep.ie.assertAndGetBroadcastShape(t,n),l=ep.Si.sizeFromShape(s),u=s.length,c=ep.Si.computeStrides(s),p=ep.Si.getTypedArrayFromDType("float32",l),d=ep.Si.getTypedArrayFromDType("float32",l),f=ep.ie.getBroadcastDims(t,
26s),h=ep.ie.getBroadcastDims(n,s),g=ep.ie.mergeRealAndImagArrays(r,i),b=ep.ie.mergeRealAndImagArrays(a,o),m=t.length,y=ep.Si.computeStrides(t),S=n.length,v=ep.Si.computeStrides(n);if(f.length+h.length===0)for(let t=0;t<p.length;t++){let n=t%g.length,r=t%b.length,i=e(g[2*n],g[2*n+1],b[2*r],b[2*r+1]);p[t]=i.real,d[t]=i.imag}else for(let t=0;t<p.length;t++){let n=ep.Si.indexToLoc(t,u,c),r=n.slice(-m);f.forEach(e=>r[e]=0);let i=ep.Si.locToIndex(r,m,y),a=n.slice(-S);h.forEach(e=>a[e]=0);let o=ep.Si.locToIndex(a,S,v),s=e(g[2*i],g[2*i+1],b[2*o],b[2*o+1]);p[t]=s.real,d[t]=s.imag}return[p,d,s]}}let dv=ds((e,t)=>e+t),dO=dS((e,t,n,r)=>({real:e+n,imag:t+r})),dx=dy(ep.h,dv,dO),dI={kernelName:ep.h,backendName:"cpu",kernelFunc:dx};function dN(e,t,n,r,i){let a=ep.Si.sizeFromShape(r),o=ep.Si.makeZerosTypedArray(i,n);for(let n=0;n<e.length;n++){let r=e[n];if(r<0)throw Error("Input x must be non-negative!");r>=i||(o[r]+=a>0?t[n]:1)}return o}function dk(e,t,n,r=!1){let i=e.shape[0],a=e.shape[1],o=Object(ep.we)([i,n],t.dtype);for(let s=0;s<i;s++)for(let i=0;i<a;i++){let a=e.get(s,i);if(a<0)throw Error("Input x must be non-negative!");a>=n||(r?o.set(1,s,a):t.size>0?o.set(o.get(s,a)+t.get(s,i),s,a):o.set(o.get(s,a)+1,s,a))}return o}let dT=ds((e,t)=>e&t),dw=dy(ep.z,dT),dj={kernelName:ep.z,backendName:"cpu",kernelFunc:dw};function dF(e){return(t,n,r)=>{let i=ep.Si.getArrayFromDType(n,t.length);for(let n=0;n<t.length;++n)i[n]=e(t[n],r);return i}}function d_(e,t,n){return dE(e,dF(t),n)}function dE(e,t,n){return({inputs:r,attrs:i,backend:a})=>{let o,{x:s}=r;dt(s,e);let l=a,u=l.data.get(s.dataId).values;if("string"===s.dtype){if(!Array.isArray(u))throw Error("String tensor's value was not an instance of Array");o=ep.ie.fromUint8ToStringArray(u)}else o=u;let c=n||s.dtype,p=t(o,c,i);return l.makeTensorInfo(s.shape,c,p)}}let dR=dF(e=>Math.ceil(e)),dD=dE(ep.D,dR),dC={kernelName:ep.D,backendName:"cpu",kernelFunc:dD};function dA(e,t,n,r){let i=ep.Si.getArrayFromDType(n,ep.Si.sizeFromShape(t));if(r&&"string"!==n){let t=0;e.forEach(e=>{let n=ep.Si.sizeFromShape(e.shape);i.set(e.vals,t),t+=n})}else{let r=0;e.forEach(e=>{let a="string"===n?ep.ie.fromUint8ToStringArray(e.vals):e.vals,o=0;for(let n=0;n<e.shape[0];++n){let s=n*t[1]+r;for(let t=0;t<e.shape[1];++t)i[s+t]=a[o++]}r+=e.shape[1]})}return i}let dM=ds((e,t)=>+(e===t)),d$=dy(ep.jb,dM,null,"bool"),dU={kernelName:ep.jb,backendName:"cpu",kernelFunc:d$},dP=dF(e=>Math.exp(e)),dB=dE(ep.lb,dP,"float32"),dL={kernelName:ep.lb,backendName:"cpu",kernelFunc:dB},dW=dF(e=>Math.expm1(e)),dz=dE(ep.nb,dW),dG={kernelName:ep.nb,backendName:"cpu",kernelFunc:dz},dV=dF(e=>Math.floor(e)),dH=dE(ep.rb,dV),dq={kernelName:ep.rb,backendName:"cpu",kernelFunc:dH},dK=ds((e,t)=>Math.floor(e/t)),dX=dy(ep.sb,dK,null,"int32"),dY={kernelName:ep.sb,backendName:"cpu",kernelFunc:dX};function dQ(e,t,n,r,i,a,o,s,l){let u=Object(ep.we)([r,a],n);for(let n=0;n<r;n++){let r=[],c=0;for(let t=0;t<i;t++){let a=e[n*i+t];c+=a*o[t],r.push(a)}if(c<0||c>=l/a)throw Error(`Invalid indices: ${r} does not index into ${s}`);for(let e=0;e<a;e++)u.values[n*a+e]=t.get(...t.indexToLoc(c*a+e))}return u}function dJ(e,t,n){let r=Object(ep.we)(n,e.dtype);for(let n=0;n<r.size;++n){let i=r.indexToLoc(n).slice(),a=i[0],o=i[2],s=t.locToIndex([a,o]);i[2]=t.values[s];let l=e.locToIndex(i);0<=l&&l<e.values.length&&(r.values[n]=e.values[l])}return r}let dZ=ds((e,t)=>+(e>t)),d0=dy(ep.zb,dZ,null,"bool"),d1={kernelName:ep.zb,backendName:"cpu",kernelFunc:d0},d2=ds((e,t)=>+(e>=t)),d3=dy(ep.Ab,d2,null,"bool"),d4={kernelName:ep.Ab,backendName:"cpu",kernelFunc:d3},d6=ds((e,t)=>+(e<t)),d5=dy(ep.Lb,d6,null,"bool"),d8={kernelName:ep.Lb,backendName:"cpu",kernelFunc:d5},d7=ds((e,t)=>+(e<=t)),d9=dy(ep.Mb,d7,null,"bool"),fe={kernelName:ep.Mb,backendName:"cpu",kernelFunc:d9};function ft(e,t,n){let r=(t-e)/(n-1),i=ep.Si.makeZerosTypedArray(n,"float32");i[0]=e;for(let e=1;e<i.length;e++)i[e]=i[e-1]+r;return i}let fn=dF(e=>Math.log(e)),fr=dE(ep.Ob,fn),fi={kernelName:ep.Ob,backendName:"cpu",kernelFunc:fr};function fa(e,t,n,r){let i=ep.Si.getTypedArrayFromDType(r,ep.Si.sizeFromShape(n));for(let n=0;n<i.length;++n){let r=n*t,a=e[r];for(let n=0;n<t;++n){let t=e[r+n];(Number.isNaN(t)||t>a)&&(a=t)}i[n]=a}return i}let fo=ds((e,t)=>Math.max(e,t)),fs=dy(ep.dc,fo),fl={kernelName:ep.dc,backendName:"cpu",kernelFunc:fs},fu=ds((e,t)=>Math.min(e,t)),fc=dy(ep.gc,fu),fp={kernelName:ep.gc,backendName:"cpu",kernelFunc:fc},fd=ds((e,t)=>e*t),ff=dS((e,t,n,r)=>({real:e*n-t*r,imag:e*r+t*n})),fh=dy(ep.lc,fd,ff),fg={kernelName:ep.lc,backendName:"cpu",kernelFunc:fh};function fb(e,t,n){return fd([],t,ep.Si.createScalarValue(-1,n),e,n)}let fm={kernelName:ep.mc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{x:r}=t;dt(r,"neg");let[i,a]=fb(n.data.get(r.dataId).values,r.shape,r.dtype);return n.makeTensorInfo(a,r.dtype,i)}},fy=ds((e,t)=>+(e!==t)),fS=dy(ep.qc,fy,null,"bool"),fv={kernelName:ep.qc,backendName:"cpu",kernelFunc:fS};function fO(e,t,n,r,i){let a=t.length,o=ep.Si.sizeFromShape(t),s=ep.Si.computeStrides(t),l=ep.Si.computeStrides(i),u=ep.Si.getTypedArrayFromDType(n,ep.Si.sizeFromShape(i));for(let t=0;t<o;++t){let n=ep.Si.indexToLoc(t,a,s),i=Array(n.length);for(let e=0;e<i.length;e++)i[e]=n[r[e]];u[ep.Si.locToIndex(i,a,l)]=e[t]}return u}function fx(e){let{inputs:t,attrs:n,backend:r}=e,{x:i}=t,{perm:a}=n;dt(i,"transpose");let o=Array(i.shape.length);for(let e=0;e<o.length;e++)o[e]=i.shape[a[e]];let s=fO(r.data.get(i.dataId).values,i.shape,i.dtype,a,o);return{dataId:r.write(s,o,i.dtype),shape:o,dtype:i.dtype}}let fI={kernelName:ep.Jd,backendName:"cpu",kernelFunc:fx};function fN(e,t,n,r){let[i,a]=ep.ie.computeOutAndReduceShapes(e,r),o=Object(ep.Qi)(t,"int32"),s=ep.Si.makeZerosTypedArray(ep.Si.sizeFromShape(i),o),l=ep.Si.sizeFromShape(a);for(let e=0;e<s.length;++e){let t=e*l,r=1;for(let e=0;e<l;++e)r*=n[t+e];s[e]=r}
26return{outVals:s,outShape:i,outDtype:o}}let fk={kernelName:ep.Bc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,keepDims:o}=r;dt(i,"prod");let s=i.shape.length,l=ep.Si.parseAxisParam(a,i.shape),u=ep.ie.getAxesPermutation(l,s),c=l,p=i,d=[];null!=u&&(d.push(p=fx({inputs:{x:i},backend:n,attrs:{perm:u}})),c=ep.ie.getInnerMostAxes(c.length,s));let f=n.data.get(p.dataId).values,{outVals:h,outShape:g,outDtype:b}=fN(p.shape,p.dtype,f,c),m=g;return o&&(m=ep.ie.expandShapeToKeepDim(g,l)),d.forEach(e=>n.disposeIntermediateTensorInfo(e)),n.makeTensorInfo(m,b,h)}};function fT(e,t,n,r){let i=[],a=0,o=Array(t.length-1+n.length).fill(null).map(()=>[0]);!function(e,t){for(let n=0;n<e.length;++n){let r=e[n],i=n===e.length-1?t:e[n+1].length;if(0===r.length)throw Error("Ragged splits may not be empty");if(r[0]<0)throw Error("Ragged splits must be non-negative");if(r[r.length-1]>i)throw Error("Ragged splits must not point past values");for(let e=1;e<r.length;++e)if(r[e-1]>r[e])throw Error("Ragged splits must be sorted in ascending order")}}(n,r);let s=1;for(let e=0;e<t.length-1;++e){s*=t[e];let n=t[e+1];for(let t=1;t<s+1;++t)o[e].push(t*n)}for(let r=0;r<e.length;++r){let s=e[r],l=e[r]+1;for(let e=0;e<n.length;++e){let r=n[e],i=e+t.length-1;if(i>=0){let e=o[i],t=e[e.length-1]-r[s];for(let e=s;e<l;++e)o[i].push(r[e+1]+t)}s=r[s],l=r[l]}l!==s&&(i.push([s,l]),a+=l-s)}return{outSplits:o,valueSlices:i,numValues:a}}function fw(e,t){let n=e.slice(0,t);for(;n.length<t;)n.push(1);for(let r=t;r<e.length;r++)n[t-1]*=e[r];return n}function fj(e,t,n,r,i){let a=t.slice();a[0]=i;let o=ep.Si.getArrayFromDType(n,ep.Si.sizeFromShape(a)),s=e.length;return function(e,t,n,r,i,a){let o=fw(t,2)[1],s=fw(a,2)[1],l=0;for(let t of n)for(let n=t[0];n<t[1];++n){for(let t=0;t<r;++t)i[l*s+t]=e[n*o+t];++l}}(e,t,r,0===s?0:s/t[0],o,a),[o,a]}function fF(e,t,n,r,i,a,o,s){if(0===e.length)throw Error("paramsNestedSplits must be non empty");if(0===t[0].length)throw Error("Split tensors must not be scalars");if(function(e,t,n){e.forEach((e,r)=>{if(e<0||e>=n){let i=ep.Si.indexToLoc(r,t.length,ep.Si.computeStrides(t)).join(",");throw Error(`indices[${i}] = ${e} is not in [0, ${n})`)}})}(a,o,t[0][0]-1),0===r.length)throw Error("params.rank must be nonzero");let{outSplits:l,valueSlices:u,numValues:c}=fT(a,o,e,r[0]),p=function(e){let t=[];for(let n=0;n<e.length;++n){let r=e[n].length,i=ep.Si.getArrayFromDType("int32",r);t.push(i),e[n].forEach((e,t)=>i[t]=e)}return t}(l),d=fj(n,r,i,u,c);return[p,d[0],d[1]]}function f_(e,t,n,r,i,a,o){if(t.length>1)throw Error("starts must be a scalar or vector");if(i.length>1)throw Error("limits must be a scalar or vector");if(o.length>1)throw Error("deltas must be a scalar or vector");let s=0===t.length,l=0===i.length,u=0===o.length,c=[];s||c.push(t[0]),l||c.push(i[0]),u||c.push(o[0]);for(let e=1;e<c.length;++e)if(c[e]!==c[e-1])throw Error("starts, limits, and deltas must have the same shape");let p=0===c.length?1:c[0],d=ep.Si.getArrayFromDType("int32",p+1);d[0]=0;for(let t=0;t<p;++t){let n,i=s?e[0]:e[t],o=l?r[0]:r[t],c=u?a[0]:a[t];if(0===c)throw Error("Requires delta != 0");if(c>0&&o<i||c<0&&o>i)n=0;else if((n=Math.ceil(Math.abs((o-i)/c)))>0x7fffffff)throw Error("Requires ((limit - start) / delta) <= 2147483647");d[t+1]=d[t]+n}let f=d[p],h=ep.Si.getArrayFromDType(n,f),g=0;for(let t=0;t<p;++t){let n=d[t+1]-d[t],r=s?e[0]:e[t],i=u?a[0]:a[t];for(let e=0;e<n;++e)h[g++]=r,r+=i}return[d,h]}var fE=ep.ie.RowPartitionType;class fR{constructor(e,t,n,r,i,a,o,s,l,u){this.shape=e,this.shapeShape=t,this.values=n,this.valuesShape=r,this.valuesDType=i,this.defaultValue=a,this.defaultValueShape=o,this.rowPartitionValues=s,this.rowPartitionValuesShapes=l,this.rowPartitionTypes=ep.ie.getRowPartitionTypesHelper(u),this.raggedRank=ep.ie.getRaggedRank(this.rowPartitionTypes)}getRowPartitionTypeByDimension(e){return this.rowPartitionTypes[0]===fE.FIRST_DIM_SIZE?this.rowPartitionTypes[e+1]:this.rowPartitionTypes[e]}getRowPartitionTensor(e){return this.rowPartitionTypes[0]===fE.FIRST_DIM_SIZE?this.rowPartitionValues[e+1]:this.rowPartitionValues[e]}getMaxWidth(e){let t=this.getRowPartitionTensor(e-1);switch(this.getRowPartitionTypeByDimension(e-1)){case fE.VALUE_ROWIDS:return fR.getMaxWidthValueRowID(t);case fE.ROW_SPLITS:return fR.getMaxWidthRowSplit(t);default:throw Error("Cannot handle partition type "+fE[this.getRowPartitionTypeByDimension(e-1)])}}static getMaxWidthRowSplit(e){let t=e.length;if(0===t||1===t)return 0;let n=0;for(let r=0;r<t-1;++r){let t=e[r+1]-e[r];t>n&&(n=t)}return n}static getMaxWidthValueRowID(e){let t=e.length;if(0===t)return 0;let n=0,r=e[0],i=0;for(let a=1;a<t;
26++a){let t=e[a];t!==r&&(r=t,i=Math.max(a-n,i),n=a)}return Math.max(t-n,i)}tensorShapeFromTensor(e,t,n=!0){if(0===t.length){if(-1===e[0])return[];throw Error("The only valid scalar shape tensor is the fully unknown shape specified as -1.")}return fC(e,n)}calculateOutputSize(e){let t=this.valuesShape,n=this.defaultValueShape;ep.ie.validateDefaultValueShape(n,t);let r=this.tensorShapeFromTensor(this.shape,this.shapeShape),i=ep.ie.combineRaggedTensorToTensorShapes(this.raggedRank,r,t);i[0]<0&&(i[0]=e);for(let e=1;e<=this.raggedRank;++e)i[e]<0&&(i[e]=this.getMaxWidth(e));return i}calculateFirstParentOutputIndex(e,t,n){let r=Math.min(e,n),i=[],a=0;for(let e=0;e<r;++e,a+=t)i.push(a);for(let t=r;t<e;++t)i.push(-1);return ep.Si.assert(i.length===e,()=>"Final length of result must be equal to firstDimension."),i}calculateOutputIndexRowSplit(e,t,n,r){let i=e.length,a=[];for(let o=0;o<i-1;++o){let i=e[o+1]-e[o],s=Math.min(r,i),l=t[o];-1===l&&(s=0);for(let e=0;e<s;++e)a.push(l),l+=n;for(let e=0;e<i-s;++e)a.push(-1)}if(i>0&&a.length!==e[i-1])throw Error("Invalid row split size.");return a}calculateOutputIndexValueRowID(e,t,n,r){let i=e.length,a=[];if(0===i)return[];let o=0,s=e[0];if(s>=t.length)throw Error(`Got currentValueRowId=${s}, which is not less than ${t.length}`);let l=t[s];a.push(l);for(let u=1;u<i;++u){let i=e[u];if(i===s)l>=0&&(++o<r?l+=n:l=-1);else{if(o=0,s=i,i>=t.length)throw Error(`Got nextValueRowId=${i} which is not less than ${t.length}`);l=t[i]}a.push(l)}if(a.length!==e.length)throw Error("Invalid row ids.");return a}calculateOutputIndex(e,t,n,r){let i=this.getRowPartitionTensor(e),a=this.getRowPartitionTypeByDimension(e);switch(a){case fE.VALUE_ROWIDS:return this.calculateOutputIndexValueRowID(i,t,n,r);case fE.ROW_SPLITS:if(i.length-1>t.length)throw Error(`Row partition size is greater than output size: ${i.length-1} > ${t.length}`);return this.calculateOutputIndexRowSplit(i,t,n,r);default:throw Error("Unsupported partition type: "+fE[a])}}getFirstDimensionSize(){let e=this.rowPartitionValues[0];if(0===this.rowPartitionTypes.length)throw Error("No row_partition_types given.");let t=this.rowPartitionTypes[0];switch(t){case fE.FIRST_DIM_SIZE:return e[0];case fE.VALUE_ROWIDS:throw Error("Cannot handle VALUE_ROWIDS in first dimension.");case fE.ROW_SPLITS:return this.rowPartitionValuesShapes[0][0]-1;default:throw Error("Cannot handle type "+fE[t])}}compute(){if(this.rowPartitionValues[0].length<=0)throw Error("Invalid first partition input. Tensor requires at least one element.");let e=this.getFirstDimensionSize(),t=this.calculateOutputSize(e),n=Array(this.raggedRank+1);n[n.length-1]=1;for(let e=n.length-2;e>=0;--e)n[e]=n[e+1]*t[e+1];let r=fC(t,!1),i=ep.Si.getArrayFromDType(this.valuesDType,ep.Si.sizeFromShape(r));if(n[0]*t[0]>0){let a=this.calculateFirstParentOutputIndex(e,n[0],t[0]);for(let e=1;e<=this.raggedRank;++e)a=this.calculateOutputIndex(e-1,a,n[e],t[e]);this.setOutput(this.raggedRank,a,i,r)}return[r,i]}setOutput(e,t,n,r){if(0===n.length)return;let i=this.values,a=n,o=r.slice();o=o.slice(e+1);let s=ep.Si.sizeFromShape(o),l=t.length,u=this.defaultValue;if(u.length!==s&&1!==u.length){let e=this.defaultValueShape;Object(ep.Ei)(()=>{let t=Object(ep.wh)(u,e);u=Object(ep.te)(t,o).dataSync()})}let c=0,p=0,d=0;for(let e=0;e<=l;++e){let r=e<l?t[e]:-1;if(r!==d){if(p<d){let e=i.subarray(c*s);fD(a.subarray(p*s),e,(d-p)*s)}if(e>=l&&(r=Math.floor(n.length/s)),r>d)if(1===this.defaultValue.length)a.subarray(d*s,r*s).fill(this.defaultValue[0]),d=r;else for(;r>d;)fD(a.slice(d*s),u,s),++d;r<0?(c=e+1,p=d):(c=e,d=(p=d)+1)}else++d}}}function fD(e,t,n){for(let r=0;r<n;r++)e[r]=t[r]}function fC(e,t){let n=[];
26for(let r of e){if(r<0){if(!t)throw Error(`Dimension ${r} must be >= 0`);if(r<-1)throw Error(`Dimension ${r} must be >= -1`);r=-1}n.push(r)}return n}function fA(e,t,n,r,i,a,o,s,l,u){return new fR(e,t,n,r,i,a,o,s,l,u).compute()}function fM(e,t,n,r){if(e===t||e<t&&n<0||t<e&&n>1)return ep.Si.makeZerosTypedArray(0,r);let i=Math.abs(Math.ceil((t-e)/n)),a=ep.Si.makeZerosTypedArray(i,r);t<e&&1===n&&(n=-1),a[0]=e;for(let e=1;e<a.length;e++)a[e]=a[e-1]+n;return a}let f$=dF(e=>1/Math.sqrt(e)),fU=dE(ep.Wc,f$),fP={kernelName:ep.Wc,backendName:"cpu",kernelFunc:fU};function fB(e,t,n,r,i,a,o,s,l,u){let c=[r/i,i],p=e.values,d=t.values;if(0===r)return Object(ep.we)(n,t.dtype);let f=l instanceof ep.Ed?l:Object(ep.we)(c,t.dtype);"string"==typeof l||"number"==typeof l?f.values.fill(l):"boolean"==typeof l&&f.values.fill(+l);for(let e=0;e<a;e++){let a=[],l=0;for(let t=0;t<o;t++){let n=p[e*o+t];a.push(n),l+=n*s[t]}if(l<0||l>=r/i)throw Error(`Invalid indices: ${a} does not index into ${n}`);for(let n=0;n<i;n++)u?f.values[l*i+n]+=d[e*i+n]:f.values[l*i+n]=0===t.rank?d[0]:d[e*i+n]}return f}let fL=dF(e=>1/(1+Math.exp(-e))),fW=d_(ep.cd,e=>1/(1+Math.exp(-e))),fz={kernelName:ep.cd,backendName:"cpu",kernelFunc:fW};function fG(e,t,n,r,i){let a=ep.Zh.isSliceContinous(r,t,n),o=ep.Si.sizeFromShape(n),s=ep.Si.computeStrides(r);if(a){let n=ep.Zh.computeFlatOffset(t,s);return"string"===i?e.slice(n,n+o):e.subarray(n,n+o)}let l="string"===i?ep.ie.fromUint8ToStringArray(e):e,u=Object(ep.we)(r,i,l),c=Object(ep.we)(n,i);for(let e=0;e<c.size;++e){let n=c.indexToLoc(e),r=n.map((e,n)=>e+t[n]);c.set(u.get(...r),...n)}return"string"===i?ep.ie.fromStringArrayToUint8(c.values):c.values}function fV(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{begin:a,size:o}=r;dt(i,"slice");let[s,l]=ep.Zh.parseSliceParams(i,a,o);ep.Zh.assertParamsValid(i,s,l);let u=fG(n.data.get(i.dataId).values,s,l,i.shape,i.dtype);return n.makeTensorInfo(l,i.dtype,u)}let fH={kernelName:ep.gd,backendName:"cpu",kernelFunc:fV};function fq(e,t,n,r,i,a,o){let s=t[0],l=a[0],u=Array(l),c=Array(s),p=t[1];if(0===l){if(0!==s)throw Error(ep.ie.getSparseFillEmptyRowsIndicesDenseShapeMismatch(s));return[ep.Si.getArrayFromDType(n,0),[0,p],ep.Si.getArrayFromDType(i,0),u,c]}let d=!0,f=0,h=Array(l).fill(0);for(let t=0;t<s;++t){let n=e[t*p];if(n<0)throw Error(ep.ie.getSparseFillEmptyRowsNegativeIndexErrorMessage(t,n));if(n>=l)throw Error(ep.ie.getSparseFillEmptyRowsOutOfRangeIndexErrorMessage(t,n,l));++h[n],d=d&&n>=f,f=n}let g=!0;for(let e=0;e<l;++e){let t=0===h[e];u[e]=t,g=g&&!t,h[e]=Math.max(h[e],1),e>0&&(h[e]+=h[e-1])}if(g&&d){let t=e,n=r;for(let e=0;e<s;++e)c[e]=e;return[t,[s,p],n,u,c]}{let t=h[l-1],a=ep.Si.getArrayFromDType(n,t*p),d=ep.Si.getArrayFromDType(i,t),f=Array(l).fill(0);for(let t=0;t<s;++t){let n=e[t*p],i=f[n],o=(0===n?0:h[n-1])+i;f[n]++;for(let n=0;n<p;++n)a[o*p+n]=e[t*p+n];d[o]=r[t],c[t]=o}for(let e=0;e<l;++e)if(0===f[e]){let t=0===e?0:h[e-1];a[t*p+0]=e;for(let e=1;e<p;++e)a[t*p+e]=0;d[t]=o}return[a,[t,p],d,u,c]}}function fK(e,t,n,r,i){let a=ep.Si.sizeFromShape(r),o=t[0],s=i.length,l=[],u=1,c=-1;for(let e=0;e<s;++e){let t=i[e];if(-1===t){if(-1!==c)throw Error(ep.ie.getSparseReshapeMultipleNegativeOneOutputDimErrorMessage(c,e));c=e,l.push(1)}else{if(t<0)throw Error(ep.ie.getSparseReshapeNegativeOutputDimErrorMessage(e,t));u*=t,l.push(t)}}if(-1!==c){if(u<=0)throw Error(ep.ie.getSparseReshapeEmptyTensorZeroOutputDimErrorMessage());let e=Math.trunc(a/u);if(u*e!==a)throw Error(ep.ie.getSparseReshapeInputOutputMultipleErrorMessage(r,l));l[c]=e}if(ep.Si.sizeFromShape(l)!==a)throw Error(ep.ie.getSparseReshapeInputOutputMismatchErrorMessage(r,l));let p=r.length,d=[];if(p>0){d[p-1]=1;for(let e=p-2;e>=0;--e)d[e]=d[e+1]*r[e+1]}let f=[];if(s>0){f[s-1]=1;for(let e=s-2;e>=0;--e)f[e]=f[e+1]*l[e+1]}let h=ep.Si.getArrayFromDType(n,o*s);for(let t=0;t<o;++t){let n=0;for(let r=0;r<p;++r)n+=e[t*p+r]*d[r];for(let e=0;e<s;++e)h[t*s+e]=Math.trunc(n/f[e]),n%=f[e]}return[h,[o,s],l]}function fX(e,t,n,r,i,a=!1,o=0){let s=r.length,l=[t[0],e.length/t[0]],u=l[1],c=s>0?i[s-1]+1:0;if(c<0)throw Error(ep.ie.getSparseSegmentReductionNegativeSegmentIdsErrorMessage());let p=t.slice();p[0]=c;let d=p.reduce((e,t)=>
26e*t,1),f=ep.Si.getArrayFromDType(n,d);if(0===s)return c>0&&f.fill(o),[f,p];if(c<=0)throw Error(ep.ie.getSparseSegmentReductionNegativeSegmentIdsErrorMessage());let h=0,g=1,b=0,m=i[0];for(;;){let t=0;if(g<s){if(m===(t=i[g])){++g;continue}if(m>=t)throw Error(ep.ie.getSparseSegmentReductionNonIncreasingSegmentIdsErrorMessage())}if(m<0||m>=c)throw Error(ep.ie.getSparseSegmentReductionSegmentIdOutOfRangeErrorMessage(m,c));m>b&&f.fill(o,b*u,m*u);for(let t=h;t<g;++t){let n=r[t];if(n<0||n>=l[0])throw Error(ep.ie.getSparseSegmentReductionIndicesOutOfRangeErrorMessage(t,r[t],l[0]));for(let t=0;t<u;t++)f[m*u+t]+=e[n*u+t]}if(a)for(let e=0;e<u;e++)f[m*u+e]/=g-h;if(h=g,++g,b=m+1,m=t,g>s)break}return b<c&&f.fill(o,b*u,c*u),[f,p]}let fY=dF(e=>Math.sqrt(e)),fQ=d_(ep.qd,e=>Math.sqrt(e)),fJ={kernelName:ep.qd,backendName:"cpu",kernelFunc:fQ},fZ=ds((e,t)=>{let n=e-t;return n*n}),f0=dy(ep.sd,fZ),f1={kernelName:ep.sd,backendName:"cpu",kernelFunc:f0},f2=dF((e,t)=>{let{pattern:n,replaceGlobal:r,rewrite:i}=t;return e.replace(new RegExp(n,r?"g":""),i)}),f3=dE(ep.td,f2),f4={kernelName:ep.td,backendName:"cpu",kernelFunc:f3};function f6(e,t,n,r){let i=Object(ep.we)(e,t.dtype);for(let e=0;e<i.size;e++){let a=i.indexToLoc(e),o=Array(a.length);for(let e=0;e<o.length;e++)o[e]=a[e]*n[e]+r[e];i.set(t.get(...o),...a)}return i}class f5{constructor(e,t,n,r,i,a){this.separator=ep.Si.encodeString(e),this.nGramWidths=t,this.leftPad=ep.Si.encodeString(n),this.rightPad=ep.Si.encodeString(r),this.padWidth=i,this.preserveShort=
26a}getPadWidth(e){return Math.min(this.padWidth<0?e-1:this.padWidth,e-1)}getNumNGrams(e,t){return Math.max(0,e+2*this.getPadWidth(t)-t+1)}createNGrams(e,t,n,r,i,a){for(let o=0;o<i;++o){let s,l=this.getPadWidth(a),u=Math.max(0,l-o),c=Math.max(0,l-(i-(o+1))),p=a-(u+c),d=t+(u>0?0:o-l);s=0+u*this.leftPad.length;for(let t=0;t<p;++t)s+=e[d+t].length;s+=c*this.rightPad.length,s+=(u+c+p-1)*this.separator.length,n[r+o]=new Uint8Array(s);let f=n[r+o],h=0,g=e=>e.forEach(e=>f[h++]=e);for(let e=0;e<u;++e)g(this.leftPad),g(this.separator);for(let t=0;t<p-1;++t)g(e[d+t]),g(this.separator);if(p>0){g(e[d+p-1]);for(let e=0;e<c;++e)g(this.separator),g(this.rightPad)}else{for(let e=0;e<c-1;++e)g(this.rightPad),g(this.separator);g(this.rightPad)}}}compute(e,t){let n=e.length,r=t.length;if(r>0){let e=t[0];if(0!==e)throw Error("First split value must be 0, got "+e);for(let i=1;i<r;++i){let r=t[i]>=e;if(!(r=r&&t[i]<=n))throw Error(`Invalid split value ${t[i]}, must be in [${e}, ${n}]`);e=t[i]}if(e!==n)throw Error(`Last split value must be data size. Expected ${n}, got ${e}`)}let i=r-1,a=ep.Si.getArrayFromDType("int32",r);if(0===n||0===r){let e=Array(n);for(let e=0;e<=i;++e)a[e]=0;return[e,a]}a[0]=0;for(let e=1;e<=i;++e){let n=t[e]-t[e-1],r=0;this.nGramWidths.forEach(e=>{r+=this.getNumNGrams(n,e)}),this.preserveShort&&n>0&&0===r&&(r=1),a[e]=a[e-1]+r}let o=Array(a[i]);for(let n=0;n<i;++n){let r=t[n],i=a[n];if(this.nGramWidths.forEach(a=>{let s=t[n+1]-t[n],l=this.getNumNGrams(s,a);this.createNGrams(e,r,o,i,l,a),i+=l}),this.preserveShort&&i===a[n]){let a=t[n+1]-t[n];if(0===a)continue;let s=a+2*this.padWidth,l=1;this.createNGrams(e,r,o,i,l,s)}}return[o,a]}}function f8(e,t,n,r,i,a,o,s){return new f5(n,r,i,a,o,s).compute(e,t)}function f7(e,t,n,r){if(!e.length)return;if(0===t.length){for(let t=0;t<e.length;++t)r.push(e.subarray(t,t+1));return}if(1===t.length){let i=t[0],a=e.indexOf(i);for(;-1!==a;){let t=e.subarray(0,a);n&&0===t.length||r.push(t),a=(e=e.subarray(a+1)).indexOf(i)}return void(n&&0===e.length||r.push(e))}let i=0;for(let a=0;a<e.length+1;a++)if(a===e.length||-1!==t.indexOf(e[a])){let t=e.subarray(i,a);n&&0===t.length||r.push(t),i=a+1}}function f9(e,t,n){let r=e.length,i=[],a=0,o=0,s=Array(r);for(let l=0;l<r;++l){let r=i.length;f7(e[l],t,n,i);let u=i.length-r;s[l]=u,a+=u,o=Math.max(o,u)}let l=ep.Si.getArrayFromDType("int32",2*a),u=Array(a),c=[r,o],p=0;for(let e=0;e<r;++e)for(let t=0;t<s[e];++t)l[2*p]=e,l[2*p+1]=t,u[p]=i[p],++p;return[l,u,c]}function he(e,t){let n=ep.Si.getArrayFromDType("int32",e.length);for(let r=0;r<e.length;++r)n[r]=ep.Si.fingerPrint64(e[r]).modulo(t).getLowBitsUnsigned();return n}let ht=ds((e,t)=>e-t),hn=dS((e,t,n,r)=>({real:e-n,imag:t-r})),hr=dy(ep.zd,ht,hn),hi={kernelName:ep.zd,backendName:"cpu",kernelFunc:hr};function ha(e,t){let n=Array(e.rank);for(let r=0;r<n.length;r++)n[r]=e.shape[r]*t[r];let r=Object(ep.we)(n,e.dtype);for(let t=0;t<r.values.length;++t){let n=r.indexToLoc(t),i=Array(e.rank);for(let t=0;t<i.length;t++)i[t]=n[t]%e.shape[t];let a=e.locToIndex(i);r.values[t]=e.values[a]}return r}let ho=(e,t)=>{let n=t.value-e.value;return 0===n?e.index-t.index:n};function hs(e,t,n=0,r=e.length-1){for(;r>n;){if(r-n>600){let i=r-n+1,a=t-n+1,o=Math.log(i),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(i-s)/i)*Math.sign(a-i/2);hs(e,t,Math.max(n,Math.floor(t-a*s/i+l)),Math.min(r,Math.floor(t+(i-a)*s/i+l)))}let i=e[t],a=n,o=r;for(ep.Si.swap(e,n,t),ho(e[r],i)>0&&ep.Si.swap(e,n,r);a<o;){for(ep.Si.swap(e,a,o),a++,o--;0>ho(e[a],i);)a+=1;for(;ho(e[o],i)>0;)o-=1}0===ho(e[n],i)?ep.Si.swap(e,n,o):(o+=1,ep.Si.swap(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}}function hl(e,t,n,r,i){let a=t[t.length-1],[o,s]=[e.length/a,a],l=ep.Si.getTypedArrayFromDType(n,o*r),u=ep.Si.getTypedArrayFromDType("int32",o*r);for(let t=0;t<o;t++){let n=t*s,a=e.subarray(n,n+s),o=Array(a.length);a.forEach((e,t)=>o[t]={value:e,index:t}),r<o.length&&(hs(o,r),o=o.slice(0,r)),i&&o.sort(ho);let c=t*r,p=l.subarray(c,c+r),d=u.subarray(c,c+r);for(let e=0;e<r;e++)p[e]=o[e].value,d[e]=o[e].index}let c=t.slice();return c[c.length-1]=r,[Object(ep.we)(c,n,l),Object(ep.we)(c,"int32",u)]}
26function hu(e,t,n,r){let i=ep.Si.parseAxisParam(t,n)[0],a=[1,n[0],1];for(let e=0;e<i;e++)a[0]*=n[e];a[1]=n[i];for(let e=i+1;e<n.length;e++)a[2]*=n[e];let o=new Map,s=new Int32Array(n[i]),l=new ep.Ed(a,r,e),u=[],c=1===a[0]&&1===a[2];for(let t=0;t<n[i];t++){let n;if(c)n=e[t].toString();else{let e=[];for(let n=0;n<a[0];n++)for(let r=0;r<a[2];r++)e.push(l.get(n,t,r));n=e.join(",")}let r=o.get(n);if(null!=r)s[t]=r;else{let e=o.size;o.set(n,e),s[t]=e,u.push(t)}}let p=a.slice();p[1]=o.size;let d=new ep.Ed(p,r);u.forEach((e,t)=>{for(let n=0;n<a[0];n++)for(let r=0;r<a[2];r++)d.set(l.get(n,e,r),n,t,r)});let f=n.slice();return f[i]=p[1],{outputValues:d.values,outputShape:f,indices:s}}let hc="4.22.0";Object(ep.qh)("cpu",()=>new dr,1);let hp=d_(ep.gb,e=>e>=0?e:Math.exp(e)-1),hd={kernelName:ep.gb,backendName:"cpu",kernelFunc:hp};function hf(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{alpha:a}=r;dt([i],"leakyRelu");let o=ep.Si.sizeFromShape(i.shape),s=n.data.get(i.dataId).values,l=ep.Si.getTypedArrayFromDType("float32",o);for(let e=0;e<s.length;e++)l[e]=s[e]<0?a*s[e]:s[e];return n.makeTensorInfo(i.shape,"float32",l)}let hh={kernelName:ep.Kb,backendName:"cpu",kernelFunc:hf},hg=ds((e,t)=>e<0?t*e:e);function hb(e){let{inputs:t,backend:n}=e,{x:r,alpha:i}=t;dt([r,i],"prelu");let a=n.data.get(r.dataId).values,o=n.data.get(i.dataId).values,[s,l]=
26hg(r.shape,i.shape,a,o,"float32");return n.makeTensorInfo(l,"float32",s)}let hm={kernelName:ep.Ac,backendName:"cpu",kernelFunc:hb},hy=d_(ep.Mc,e=>Math.max(0,e)),hS={kernelName:ep.Mc,backendName:"cpu",kernelFunc:hy},hv=d_(ep.Nc,e=>Math.min(Math.max(0,e),6)),hO={kernelName:ep.Nc,backendName:"cpu",kernelFunc:hv};function hx(e,t,n,r,i){if("linear"===n)return dp({inputs:{x:t},backend:e});if("relu"===n)return hy({inputs:{x:t},backend:e});if("elu"===n)return hp({inputs:{x:t},backend:e});if("relu6"===n)return hv({inputs:{x:t},backend:e});if("prelu"===n)return hb({inputs:{x:t,alpha:r},backend:e});if("leakyrelu"===n)return hf({inputs:{x:t},backend:e,attrs:{alpha:i}});if("sigmoid"===n)return fW({inputs:{x:t},backend:e});throw Error(`Activation ${n} has not been implemented for the CPU backend.`)}function hI(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{shape:a}=r,o=ep.Si.sizeFromShape(i.shape),s=ep.Si.inferFromImplicitShape(a,o),l=ep.Si.sizeFromShape(s);ep.Si.assert(o===l,()=>`The new shape (${s}) has ${l} elements and the old shape (${i.shape}) has ${o} elements. The new shape and old shape must have the same number of elements.`),n.incRef(i.dataId);let u=n.data.get(i.dataId);if(null!=u.complexTensorInfos){let e=u.complexTensorInfos.real,t=u.complexTensorInfos.imag;e.shape=s,t.shape=s}return{dataId:i.dataId,shape:s,dtype:i.dtype}}let hN={kernelName:ep.Oc,backendName:"cpu",kernelFunc:hI};function hk(e){let{inputs:t,backend:n,attrs:r}=e,{a:i,b:a}=t,{transposeA:o,transposeB:s}=r;dt([i,a],"matMul");let l=i.shape.length,u=a.shape.length,c=o?i.shape[l-2]:i.shape[l-1],p=s?a.shape[u-1]:a.shape[u-2],d=o?i.shape[l-1]:i.shape[l-2],f=s?a.shape[u-2]:a.shape[u-1],h=i.shape.slice(0,-2),g=a.shape.slice(0,-2),b=ep.Si.sizeFromShape(h),m=ep.Si.sizeFromShape(g),y=ep.ue.assertAndGetBroadcastShape(i.shape.slice(0,-2),a.shape.slice(0,-2)).concat([d,f]);ep.Si.assert(c===p,()=>`Error in matMul: inner shapes (${c}) and (${p}) of Tensors with shapes ${i.shape} and ${a.shape} and transposeA=${o} and transposeB=${s} must match.`);let S=s?[m,f,p]:[m,p,f],v=hI({inputs:{x:i},backend:n,attrs:{shape:o?[b,c,d]:[b,d,c]}}),O=hI({inputs:{x:a},backend:n,attrs:{shape:S}}),x=o?v.shape[1]:v.shape[2],I=o?v.shape[2]:v.shape[1],N=s?O.shape[1]:O.shape[2],k=Math.max(b,m),T=n.data.get(v.dataId).values,w=n.data.get(O.dataId).values,j=ep.Si.computeStrides(v.shape),F=ep.Si.computeStrides(O.shape),[_,E,R]=o?[j[0],1,j[1]]:[j[0],j[1],1],[D,C,A]=s?[1,F[1],F[0]]:[F[1],1,F[0]],M=I*N,$=Object(ep.we)([k,I,N],v.dtype),U=$.values,P=n.blockSize;for(let e=0;e<k;e++){let t=e%b,n=e%m;for(let r=0;r<I;r+=P){let i=Math.min(r+P,I);for(let a=0;a<N;a+=P){let o=Math.min(a+P,N);for(let s=0;s<x;s+=P){let l=Math.min(s+P,x);for(let u=r;u<i;u++)for(let r=a;r<o;r++){let i=0;for(let e=s;e<l;e++)i+=T[t*_+u*E+e*R]*w[e*D+r*C+n*A];U[e*M+(u*N+r)]+=i}}}}}return n.disposeIntermediateTensorInfo(v),n.disposeIntermediateTensorInfo(O),n.makeTensorInfo(y,$.dtype,$.values)}let hT={kernelName:ep.w,backendName:"cpu",kernelFunc:hk},hw={kernelName:ep.Qd,backendName:"cpu",kernelFunc:function(e){let t,n,r,{inputs:i,backend:a,attrs:o}=e,{a:s,b:l,bias:u,preluActivationWeights:c}=i,{transposeA:p,transposeB:d,activation:f,leakyreluAlpha:h}=o,g=[];
26for(let e of(t=hk({inputs:{a:s,b:l},attrs:{transposeA:p,transposeB:d},backend:a}),u&&(n=dx({inputs:{a:t,b:u},backend:a}),g.push(t),t=n),f&&(r=hx(a,t,f,c,h),g.push(t),t=r),g))a.disposeIntermediateTensorInfo(e);return t}},hj=d_(ep.b,e=>Math.acos(e)),hF={kernelName:ep.b,backendName:"cpu",kernelFunc:hj},h_=d_(ep.c,e=>Math.acosh(e)),hE={kernelName:ep.c,backendName:"cpu",kernelFunc:h_},hR={kernelName:ep.i,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,r=t;dt(t,"addN");let i=r.map(e=>n.data.get(e.dataId).values),a=Object(ep.we)(r[0].shape,r[0].dtype),o=a.values;for(let e=0;e<r.length;e++){let t=i[e];for(let e=0;e<o.length;e++)o[e]+=t[e]}return n.makeTensorInfo(a.shape,a.dtype,a.values)}},hD={kernelName:ep.j,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,keepDims:o}=r;dt(i,"all");let s=ep.Si.parseAxisParam(a,i.shape),l=s,u=ep.ie.getAxesPermutation(l,i.shape.length),c=i;null!=u&&(c=fx({inputs:{x:i},backend:n,attrs:{perm:u}}),l=ep.ie.getInnerMostAxes(l.length,i.shape.length)),ep.ie.assertAxesAreInnerMostDims("all",l,c.shape.length);let[p,d]=ep.ie.computeOutAndReduceShapes(c.shape,l),f=ep.Si.sizeFromShape(d),h=ep.Si.makeZerosTypedArray(ep.Si.sizeFromShape(p),c.dtype),g=n.data.get(c.dataId).values;for(let e=0;e<h.length;++e){let t=e*f,n=g[t];for(let e=0;e<f;++e){let r=g[t+e];n=n&&r}h[e]=n}null!=u&&n.disposeIntermediateTensorInfo(c);let b=n.makeTensorInfo(p,c.dtype,h);if(o){let e=hI({inputs:{x:b},backend:n,attrs:{shape:ep.ie.expandShapeToKeepDim(p,s)}});return n.disposeIntermediateTensorInfo(b),e}return b}},hC={kernelName:ep.k,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,keepDims:o}=r;dt(i,"any");let s=ep.Si.parseAxisParam(a,i.shape),l=s,u=ep.ie.getAxesPermutation(l,i.shape.length),c=i;null!=u&&(c=fx({inputs:{x:i},backend:n,attrs:{perm:u}}),l=ep.ie.getInnerMostAxes(l.length,i.shape.length)),ep.ie.assertAxesAreInnerMostDims("any",l,c.shape.length);let[p,d]=ep.ie.computeOutAndReduceShapes(c.shape,l),f=ep.Si.sizeFromShape(d),h=ep.Si.makeZerosTypedArray(ep.Si.sizeFromShape(p),c.dtype),g=n.data.get(c.dataId).values;for(let e=0;e<h.length;++e){let t=e*f,n=g[t];for(let e=0;e<f;++e){let r=g[t+e];n=n||r}h[e]=n}null!=u&&n.disposeIntermediateTensorInfo(c);let b=n.makeTensorInfo(p,c.dtype,h);if(o){let e=hI({inputs:{x:b},backend:n,attrs:{shape:ep.ie.expandShapeToKeepDim(p,s)}});return n.disposeIntermediateTensorInfo(b),e}return b}},hA={kernelName:ep.l,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a}=r;dt(i,"argMax");let o=ep.Si.parseAxisParam(a,i.shape),s=ep.ie.getAxesPermutation(o,i.shape.length),l=i,u=[];null!=s&&(u.push(l=fx({inputs:{x:i},backend:n,attrs:{perm:s}})),o=ep.ie.getInnerMostAxes(o.length,l.shape.length)),o=[o[0]],ep.ie.assertAxesAreInnerMostDims("argMax",o,l.shape.length);let[c,p]=ep.ie.computeOutAndReduceShapes(l.shape,o),d=ep.Si.sizeFromShape(c),f=ep.Si.makeZerosTypedArray(d,"int32"),h=ep.Si.sizeFromShape(p),g=n.data.get(l.dataId).values;for(let e=0;e<f.length;++e){let t=e*h,n=g[t],r=0;for(let e=0;e<h;++e){let i=g[t+e];i>n&&(n=i,r=e)}f[e]=r}return u.forEach(e=>n.disposeIntermediateTensorInfo(e)),n.makeTensorInfo(c,"int32",f)}},hM={kernelName:ep.m,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a}=r;dt(i,"argMin");let o=ep.Si.parseAxisParam(a,i.shape),s=ep.ie.getAxesPermutation(o,i.shape.length),l=i,u=[];null!=s&&(u.push(l=fx({inputs:{x:i},backend:n,attrs:{perm:s}})),o=ep.ie.getInnerMostAxes(o.length,l.shape.length)),o=[o[0]],ep.ie.assertAxesAreInnerMostDims("argMin",o,l.shape.length);let[c,p]=ep.ie.computeOutAndReduceShapes(l.shape,o),d=ep.Si.sizeFromShape(c),f=ep.Si.makeZerosTypedArray(d,"int32"),h=ep.Si.sizeFromShape(p),g=n.data.get(l.dataId).values;for(let e=0;e<f.length;++e){let t=e*h,n=g[t],r=0;for(let e=0;e<h;++e){let i=g[t+e];i<n&&(n=i,r=e)}f[e]=r}return u.forEach(e=>n.disposeIntermediateTensorInfo(e)),n.makeTensorInfo(c,"int32",f)}},h$=d_(ep.n,e=>Math.asin(e)),hU={kernelName:ep.n,backendName:"cpu",kernelFunc:h$},hP=d_(ep.o,e=>Math.asinh(e)),hB={kernelName:ep.o,backendName:"cpu",kernelFunc:hP},hL=d_(ep.p,e=>Math.atan(e)),hW={kernelName:ep.p,backendName:"cpu",kernelFunc:hL},hz=ds((e,t)=>Math.atan2(e,t)),hG=dy(ep.q,hz),hV={kernelName:ep.q,backendName:"cpu",kernelFunc:hG},hH=d_(ep.r,e=>Math.atanh(e)),hq={kernelName:ep.r,backendName:"cpu",kernelFunc:hH};function hK(e,t,n,r,i,a){let o=i.strideHeight,s=i.strideWidth,l=i.dilationHeight,u=i.dilationWidth,c=i.effectiveFilterHeight,p=i.effectiveFilterWidth,d=i.padInfo.top,f=i.padInfo.left,h="max"===a?-1/0:1/0,g=Object(ep.we)(i.outShape,n),b=g.values,m=i.outShape[1]*i.outShape[2]*i.outShape[3],y=i.outShape[2]*i.outShape[3],S=i.outShape[3];for(let t=0;t<i.batchSize;++t){let n=t*m,g=t*r[0];for(let t=0;t<i.inChannels;++t)for(let m=0;m<i.outHeight;++m){let v=m*o-d,O=Math.max(0,v),x=Math.min(i.inHeight,c+v),I=n+m*y;for(let n=0;n<i.outWidth;++n){let o=n*s-f,c=Math.max(0,o),d=Math.min(i.inWidth,p+o),m=h,y=0,v=0;for(let n=O;n<x;n+=l){let i=g+n*r[1];for(let n=c;n<d;n+=u){let o=e[i+n*r[2]+t];"max"===a&&o>m?m=o:"avg"===a&&(y+=o,v++)}if(isNaN(m))break}b[I+n*S+t]="avg"===a?y/v:m}}}return g}function hX(e,t,n,r,i=!1,a=!1){let o=Object(ep.we)(r.outShape,"int32"),s=r.strideHeight,l=r.strideWidth,u=r.dilationHeight,c=r.dilationWidth,p=r.effectiveFilterHeight,d=r.effectiveFilterWidth,f=r.padInfo.top,h=r.padInfo.left,g=Object(ep.we)(t,n,e);for(let e=0;e<r.batchSize;++e)for(let t=0;t<r.inChannels;++t)for(let n=0;n<r.outHeight;++n){let b=n*s-f,m=b;for(;m<0;)m+=u;let y=Math.min(r.inHeight,p+b);for(let s=0;s<r.outWidth;++s){let p=s*l-h,f=p;for(;f<0;)f+=c;let S=Math.min(r.inWidth,d+p),v=-1/0,O=-1;for(let n=m;n<y;n+=u){let o=n-b;
26for(let s=f;s<S;s+=c){let l=s-p,u=g.get(e,n,s,t);u>v&&(v=u,O=i?a?((e*r.inHeight+n)*r.inWidth+s)*r.inChannels+t:(n*r.inWidth+s)*r.inChannels+t:o*d+l)}}o.set(O,e,n,s,t)}}return o}function hY(e,t,n,r,i,a){let o=i.strideDepth,s=i.strideHeight,l=i.strideWidth,u=i.dilationDepth,c=i.dilationHeight,p=i.dilationWidth,d=i.effectiveFilterDepth,f=i.effectiveFilterHeight,h=i.effectiveFilterWidth,g=i.padInfo.front,b=i.padInfo.top,m=i.padInfo.left,y="max"===a?-1/0:1/0,S=Object(ep.we)(i.outShape,n),v=S.values,O=i.outShape[1]*i.outShape[2]*i.outShape[3]*i.outShape[4],x=i.outShape[2]*i.outShape[3]*i.outShape[4],I=i.outShape[3]*i.outShape[4],N=i.outShape[4];for(let t=0;t<i.batchSize;++t){let n=t*O,S=t*r[0];for(let t=0;t<i.inChannels;++t)for(let O=0;O<i.outDepth;++O){let k=O*o-g,T=k;for(;T<0;)T+=u;let w=Math.min(i.inDepth,d+k),j=n+O*x;for(let n=0;n<i.outHeight;++n){let o=n*s-b,d=o;for(;d<0;)d+=c;let g=Math.min(i.inHeight,f+o),O=j+n*I;for(let n=0;n<i.outWidth;++n){let o=n*l-m,s=o;for(;s<0;)s+=p;let f=Math.min(i.inWidth,h+o),b=O+n*N,x=y,I=0,k=0;for(let n=T;n<w;n+=u){let i=S+n*r[1];for(let n=d;n<g;n+=c){let o=i+n*r[2];for(let n=s;n<f;n+=p){let i=e[o+n*r[3]+t];if("max"===a&&i>x?x=i:"avg"===a&&(I+=i,k++),isNaN(x))break}if(isNaN(x))break}if(isNaN(x))break}v[b+t]="avg"===a?I/Math.max(k,1):x}}}}return S}let hQ={kernelName:ep.s,backendName:"cpu",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n;dt(a,"avgPool");let{filterSize:o,strides:s,pad:l,dimRoundingMode:u}=i;ep.Si.assert(ep.ie.eitherStridesOrDilationsAreOne(s,1),()=>`Error in avgPool: Either strides or dilations must be 1. Got strides ${s} and dilations '1'`);let c=ep.ie.computePool2DInfo(a.shape,o,s,1,l,u);if(1===c.filterWidth&&1===c.filterHeight&&ep.Si.arraysEqual(c.inShape,c.outShape))t=dp({inputs:{x:a},backend:r});else{let e=r.data.get(a.dataId).values,n=ep.Si.computeStrides(a.shape),i=hK(e,a.shape,a.dtype,n,c,"avg");t=r.makeTensorInfo(c.outShape,a.dtype,i.values)}return t}},hJ={kernelName:ep.t,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{filterSize:a,strides:o,pad:s,dimRoundingMode:l,dataFormat:u}=r;dt(i,"avgPool3d");let c=ep.ie.computePool3DInfo(i.shape,a,o,1,s,l,u),p=hY(n.data.get(i.dataId).values,i.shape,i.dtype,ep.Si.computeStrides(i.shape),c,"avg");return n.makeTensorInfo(p.shape,"float32",p.values)}},hZ={kernelName:ep.u,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,input:a}=t,{filterSize:o,strides:s,pad:l,dimRoundingMode:u}=r;dt([i,a],"avgPool3DGrad");let c=ep.ie.computePool3DInfo(a.shape,o,s,1,l,u),p=c.strideDepth,d=c.strideHeight,f=c.strideWidth,h=c.filterDepth,g=c.filterHeight,b=c.filterWidth,m=c.dilationDepth,y=c.dilationHeight,S=c.dilationWidth,v=c.effectiveFilterDepth,O=c.effectiveFilterHeight,x=c.effectiveFilterWidth,I=v-1-c.padInfo.front,N=x-1-c.padInfo.left,k=O-1-c.padInfo.top,T=Object(ep.we)(a.shape,"float32"),w=1/(h*g*b),j=n.bufferSync(i);for(let e=0;e<c.batchSize;++e)for(let t=0;t<c.inChannels;++t)for(let n=0;n<c.inDepth;++n)for(let r=0;r<c.inHeight;++r)for(let i=0;i<c.inWidth;++i){let a=n-I,o=r-k,s=i-N,l=0;for(let n=0;n<v;n+=m){let r=(a+n)/p;if(!(r<0||r>=c.outDepth||Math.floor(r)!==r))for(let n=0;n<O;n+=y){let i=(o+n)/d;if(!(i<0||i>=c.outHeight||Math.floor(i)!==i))for(let n=0;n<x;n+=S){let a=(s+n)/f;a<0||a>=c.outWidth||Math.floor(a)!==a||(l+=j.get(e,r,i,a,t))}}}T.set(l*w,e,n,r,i,t)}return n.makeTensorInfo(T.shape,T.dtype,T.values)}},h0={kernelName:ep.v,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,input:a}=t,o=a;dt([i,a],"avgPoolGrad");let{filterSize:s,strides:l,pad:u}=r,c=ep.ie.computePool2DInfo(o.shape,s,l,1,u),p=c.strideHeight,d=c.strideWidth,f=c.filterHeight,h=c.filterWidth,g=c.dilationHeight,b=c.dilationWidth,m=c.effectiveFilterHeight,y=c.effectiveFilterWidth,S=y-1-c.padInfo.left,v=m-1-c.padInfo.top,O=Object(ep.we)(o.shape,"float32"),x=1/(f*h),I=n.data.get(i.dataId).values,N=Object(ep.we)(i.shape,"float32",I);for(let e=0;e<c.batchSize;++e)for(let t=0;t<c.inChannels;++t)for(let n=0;n<c.inHeight;++n)for(let r=0;r<c.inWidth;++r){let i=n-v,a=r-S,o=0;for(let n=0;n<m;n+=g){let r=(i+n)/p;if(!(r<0||r>=c.outHeight||Math.floor(r)!==r))for(let n=0;n<y;n+=b){let i=(a+n)/d;i<0||i>=c.outWidth||Math.floor(i)!==i||(o+=N.get(e,r,i,t))}}O.set(o*x,e,n,r,t)}return n.makeTensorInfo(O.shape,O.dtype,O.values)}},h1={kernelName:ep.ub,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,scale:a,offset:o,mean:s,variance:l}=t;ep.Si.assert(s.shape.length===l.shape.length,()=>"Batch normalization gradient requires mean and variance to have equal ranks."),ep.Si.assert(null==o||s.shape.length===o.shape.length,()=>"Batch normalization gradient requires mean and offset to have equal ranks."),ep.Si.assert(null==a||s.shape.length===a.shape.length,()=>"Batch normalization gradient requires mean and scale to have equal ranks."),dt([i,s,l,a,o],"batchNorm");let{varianceEpsilon:u}=r;null==u&&(u=.001);let c=n.data.get(i.dataId).values,p=n.data.get(s.dataId).values,d=n.data.get(l.dataId).values,f=a?n.data.get(a.dataId).values:new Float32Array([1]),h=o?n.data.get(o.dataId).values:new Float32Array([0]),g=new Float32Array(c.length),b=h.length,m=f.length,y=d.length,S=p.length,v=0,O=0,x=0,I=0;for(let e=0;e<c.length;++e)g[e]=h[v++]+(c[e]-p[O++])*f[x++]/Math.sqrt(d[I++]+u),v>=b&&(v=0),O>=S&&(O=0),x>=m&&(x=0),I>=y&&(I=0);return n.makeTensorInfo(i.shape,i.dtype,g)}},h2={kernelName:ep.x,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}
26=t,{blockShape:a,crops:o}=r;dt([i],"batchToSpaceND");let s=a.reduce((e,t)=>e*t),l=ep.ie.getReshaped(i.shape,a,s),u=ep.ie.getPermuted(l.length,a.length),c=ep.ie.getReshapedPermuted(i.shape,a,s),p=ep.ie.getSliceBeginCoords(o,a.length),d=ep.ie.getSliceSize(c,o,a.length),f=hI({inputs:{x:i},backend:n,attrs:{shape:l}}),h=fx({inputs:{x:f},backend:n,attrs:{perm:u}}),g=hI({inputs:{x:h},backend:n,attrs:{shape:c}}),b=fV({inputs:{x:g},backend:n,attrs:{begin:p,size:d}});return n.disposeIntermediateTensorInfo(f),n.disposeIntermediateTensorInfo(h),n.disposeIntermediateTensorInfo(g),b}},h3={kernelName:ep.y,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,weights:a}=t,{size:o}=r,s=dN(n.data.get(i.dataId).values,n.data.get(a.dataId).values,a.dtype,a.shape,o);return n.makeTensorInfo([o],a.dtype,s)}},h4={kernelName:ep.A,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{s0:r,s1:i}=t,a=n.data.get(r.dataId).values,o=n.data.get(i.dataId).values,s=ep.ie.assertAndGetBroadcastShape(Array.from(a),Array.from(o));return n.makeTensorInfo([s.length],"int32",Int32Array.from(s))}},h6=d_(ep.E,(e,t)=>{let n=t;return e>n.clipValueMax?n.clipValueMax:e<n.clipValueMin?n.clipValueMin:e}),h5={kernelName:ep.E,backendName:"cpu",kernelFunc:h6},h8={kernelName:ep.G,backendName:"cpu",kernelFunc:e=>{let{x:t}=e.inputs,n=e.backend,r=new Float32Array(ep.Si.sizeFromShape(t.shape)),i=n.data.get(t.dataId),a=i.complexTensorInfos.real,o=i.complexTensorInfos.imag,s=n.data.get(a.dataId).values,l=n.data.get(o.dataId).values;for(let e=0;e<s.length;e++){let t=s[e],n=l[e];r[e]=Math.hypot(t,n)}return n.makeOutput(r,t.shape,"float32")}};function h7(e){let{inputs:t,backend:n}=e,{input:r}=t,i=n.data.get(r.dataId).complexTensorInfos.imag,a=n.data.get(i.dataId).values;return n.makeTensorInfo(i.shape,i.dtype,a)}let h9={kernelName:ep.Db,backendName:"cpu",kernelFunc:h7};function ge(e){let{inputs:t,backend:n,attrs:r}=e,{axis:i}=r,a=ep.Si.parseAxisParam(i,t[0].shape)[0],o=t.map(e=>e.shape);ep.ie.assertParamsConsistent(o,a);let s=ep.ie.computeOutShape(t.map(e=>e.shape),a);if(0===ep.Si.sizeFromShape(s))return n.makeTensorInfo(s,t[0].dtype,[]);let l=t.filter(e=>ep.Si.sizeFromShape(e.shape)>0);if(1===l.length)return dp({inputs:{x:l[0]},backend:n});if("complex64"===l[0].dtype){let e=l.map(e=>df({inputs:{input:e},backend:n})),t=l.map(e=>h7({inputs:{input:e},backend:n})),r=ge({inputs:e,backend:n,attrs:{axis:a}}),i=ge({inputs:t,backend:n,attrs:{axis:a}}),o=dl({inputs:{real:r,imag:i},backend:n});return e.forEach(e=>n.disposeIntermediateTensorInfo(e)),t.forEach(e=>n.disposeIntermediateTensorInfo(e)),n.disposeIntermediateTensorInfo(r),n.disposeIntermediateTensorInfo(i),o}let u=l.map(e=>{let t=ep.Si.sizeFromShape(e.shape.slice(a));return hI({inputs:{x:e},backend:n,attrs:{shape:[-1,t]}})}),c=u.map(e=>({vals:n.data.get(e.dataId).values,shape:e.shape}));s=ep.ie.computeOutShape(u.map(e=>e.shape),1);let p=1===u[0].shape[0],d=dA(c,s,t[0].dtype,p),f=ep.ie.computeOutShape(l.map(e=>e.shape),a),h=n.makeTensorInfo(f,t[0].dtype,d);return u.forEach(e=>n.disposeIntermediateTensorInfo(e)),h}let gt={kernelName:ep.H,backendName:"cpu",kernelFunc:ge};function gn(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,filter:a}=t,{strides:o,pad:s,dataFormat:l,dilations:u,dimRoundingMode:c}=r;dt([i,a],"conv2d");let p=ep.ie.convertConv2DDataFormat(l),d=ep.ie.computeConv2DInfo(i.shape,a.shape,o,u,s,c,!1,p),f=d.filterHeight,h=d.filterWidth,g=d.dilationHeight,b=d.dilationWidth,m=d.padInfo.left,y=d.padInfo.top,S="channelsLast"===d.dataFormat,v=new ep.Ed(d.outShape,i.dtype),O=ep.Si.computeStrides(i.shape),x=ep.Si.computeStrides(a.shape),I=O[0],N=S?O[1]:O[2],k=S?O[2]:1,T=S?1:O[1],w=v.strides[0],j=S?v.strides[1]:v.strides[2],F=S?v.strides[2]:1,_=S?1:v.strides[1],E=n.data.get(i.dataId).values,R=n.data.get(a.dataId).values,D=v.values;for(let e=0;e<d.batchSize;++e){let t=e*I,n=e*w;for(let e=0;e<d.outHeight;++e){let r=n+e*j,i=e*d.strideHeight-y;for(let e=0;e<f;++e){let n=i+e*g;if(n<0||n>=d.inHeight)continue;let a=e*x[0],o=t+n*N;for(let e=0;e<d.outWidth;++e){let t=r+e*F,n=e*d.strideWidth-m;for(let e=0;e<h;++e){let r=n+e*b;if(r<0||r>=d.inWidth)continue;let i=o+r*k,s=a+e*x[1];for(let e=0;e<d.inChannels;++e){let n=E[i+e*T];for(let e=0;e<d.outChannels;++e)D[t+e*_]+=n*R[s+e];s+=d.outChannels}}}}}}return n.makeTensorInfo(v.shape,v.dtype,D)}let gr={kernelName:ep.I,backendName:"cpu",kernelFunc:gn},gi={kernelName:ep.J,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,dy:a}=t,{strides:o,pad:s,dataFormat:l,dimRoundingMode:u,filterShape:c}=r;dt([i,a],"conv2dBackpropFilter");
vendor: 4,488 bytes, line 26
26let p=ep.ie.convertConv2DDataFormat(l),d=ep.ie.computeConv2DInfo(i.shape,c,o,1,s,u,!1,p),{strideHeight:f,strideWidth:h,filterHeight:g,filterWidth:b}=d,m="channelsLast"===d.dataFormat,y=new ep.Ed(d.filterShape,"float32"),S=d.padInfo.left,v=d.padInfo.top,O=n.data.get(i.dataId).values,x=n.data.get(a.dataId).values,I=new ep.Ed(i.shape,i.dtype,O),N=new ep.Ed(a.shape,a.dtype,x);for(let e=0;e<g;++e){let t=Math.max(0,Math.ceil((v-e)/f)),n=Math.min(d.outHeight,(d.inHeight+v-e)/f);for(let r=0;r<b;++r){let i=Math.max(0,Math.ceil((S-r)/h)),a=Math.min(d.outWidth,(d.inWidth+S-r)/h);for(let o=0;o<d.inChannels;++o)for(let s=0;s<d.outChannels;++s){let l=0;for(let u=0;u<d.batchSize;++u)for(let c=t;c<n;++c){let t=e+c*f-v;for(let e=i;e<a;++e){let n=r+e*h-S;l+=m?I.get(u,t,n,o)*N.get(u,c,e,s):I.get(u,o,t,n)*N.get(u,s,c,e)}}y.set(l,e,r,o,s)}}}return n.makeTensorInfo(y.shape,y.dtype,y.values)}},ga={kernelName:ep.K,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,filter:a}=t,{inputShape:o,strides:s,pad:l,dataFormat:u,dimRoundingMode:c}=r;dt([i,a],"conv2dBackpropInput");let p=ep.Si.computeStrides(a.shape),d=ep.Si.computeStrides(i.shape),f=ep.ie.convertConv2DDataFormat(u),h=ep.ie.computeConv2DInfo(o,a.shape,s,1,l,c,!1,f),g=new ep.Ed(h.inShape,"float32"),b=g.values,m=n.data.get(i.dataId).values,y=n.data.get(a.dataId).values,[S,v,O]=p,{batchSize:x,filterHeight:I,filterWidth:N,inChannels:k,inHeight:T,inWidth:w,outChannels:j,outHeight:F,outWidth:_,strideHeight:E,strideWidth:R}=h;f=h.dataFormat;let D=I-1-h.padInfo.top,C=N-1-h.padInfo.left,A="channelsLast"===f,M=g.strides[0],$=A?g.strides[1]:g.strides[2],U=A?g.strides[2]:1,P=A?1:g.strides[1],B=d[0],L=A?d[1]:d[2],W=A?d[2]:1,z=A?1:d[1];for(let e=0;e<x;++e)for(let t=0;t<k;++t)for(let n=0;n<T;++n){let r=n-D,i=Math.max(0,Math.ceil(r/E)),a=Math.min(F,(I+r)/E);for(let o=0;o<w;++o){let s=o-C,l=Math.max(0,Math.ceil(s/R)),u=Math.min(_,(N+s)/R),c=0;for(let n=i;n<a;++n){let i=n*E-r;for(let r=l;r<u;++r){let a=B*e+L*n+W*r,o=S*(I-1-i)+v*(N-1-(r*R-s))+O*t;for(let e=0;e<j;++e)c+=m[a+z*e]*y[o+e]}}b[M*e+$*n+U*o+P*t]=c}}return n.makeTensorInfo(g.shape,g.dtype,g.values)}},go={kernelName:ep.L,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,filter:a}=t,{strides:o,pad:s,dilations:l}=r;dt([i,a],"conv3d");let u=ep.ie.computeConv3DInfo(i.shape,a.shape,o,l,s),{filterDepth:c,filterHeight:p,filterWidth:d,dilationDepth:f,dilationHeight:h,dilationWidth:g,padInfo:b}=u,m=b.front,y=b.left,S=b.top,v=new ep.Ed(u.outShape,i.dtype),O=n.data.get(i.dataId).values,x=n.data.get(a.dataId).values,I=v.values,N=ep.Si.computeStrides(i.shape),k=ep.Si.computeStrides(a.shape);for(let e=0;e<u.batchSize;++e){let t=e*N[0],n=e*v.strides[0];for(let e=0;e<u.outDepth;++e){let r=n+e*v.strides[1],i=e*u.strideDepth-m;for(let e=0;e<c;++e){let n=i+e*f;if(n<0||n>=u.inDepth)continue;let a=e*k[0],o=t+n*N[1];for(let e=0;e<u.outHeight;++e){let t=r+e*v.strides[2],n=e*u.strideHeight-S;for(let e=0;e<p;++e){let r=n+e*h;if(r<0||r>=u.inHeight)continue;let i=a+e*k[1],s=o+r*N[2];for(let e=0;e<u.outWidth;++e){let n=t+e*u.outChannels,r=e*u.strideWidth-y;for(let e=0;e<d;++e){let t=r+e*g;if(t<0||t>=u.inWidth)continue;let a=i+e*k[2],o=s+t*u.inChannels,l=a;for(let e=0;e<u.inChannels;++e){let t=O[o+e];for(let e=0;e<u.outChannels;++e)I[n+e]+=t*x[l+e];l+=u.outChannels}}}}}}}}return n.makeTensorInfo(v.shape,v.dtype,v.values)}},gs={kernelName:ep.M,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,dy:a}=t,{strides:o,pad:s,filterShape:l}=r;dt([i,a],"conv3dBackpropFilterV2");let u=ep.Si.computeStrides(i.shape),c=ep.Si.computeStrides(a.shape),p=ep.ie.computeConv3DInfo(i.shape,l,o,1,s),d=p.strideDepth,f=p.strideHeight,h=p.strideWidth,g=p.filterDepth,b=p.filterHeight,m=p.filterWidth,y=new ep.Ed(p.filterShape,"float32"),S=y.values,[v,O,x,I]=y.strides,N=n.data.get(a.dataId).values,[k,T,w,j]=c,F=n.data.get(i.dataId).values,[_,E,R,D]=u,C=p.padInfo.front,A=p.padInfo.left,M=p.padInfo.top;for(let e=0;e<g;++e){let t=Math.max(0,Math.ceil((C-e)/d)),n=Math.min(p.outDepth,(p.inDepth+C-e)/d),r=e*v;for(let i=0;i<b;++i){let a=Math.max(0,Math.ceil((M-i)/f)),o=Math.min(p.outHeight,(p.inHeight+M-i)/f),s=i*O+r;for(let r=0;r<m;++r){let l=Math.max(0,Math.ceil((A-r)/h)),u=Math.min(p.outWidth,(p.inWidth+A-r)/h),c=r*x+s;for(let s=0;s<p.inChannels;++s){let g=s*I+c;for(let c=0;c<p.outChannels;++c){let b=0;for(let g=0;g<p.batchSize;++g){let p=g*_,m=g*k;for(let g=t;g<n;++g){let t=(e+g*d-C)*E+p,n=g*T+m;for(let e=a;
26e<o;++e){let a=(i+e*f-M)*R+t,o=e*w+n;for(let e=l;e<u;++e){let t=e*j+o;b+=F[(r+e*h-A)*D+a+s]*N[t+c]}}}}S[g+c]=b}}}}}return n.makeTensorInfo(y.shape,y.dtype,y.values)}},gl={kernelName:ep.N,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,filter:a}=t,{pad:o,strides:s,inputShape:l}=r;dt([i],"conv3dBackpropInputV2");let u=ep.Si.computeStrides(i.shape),c=ep.Si.computeStrides(a.shape),p=ep.ie.computeConv3DInfo(l,a.shape,s,1,o),d=new ep.Ed(p.inShape,"float32"),f=d.values,[h,g,b,m]=d.strides,y=n.data.get(i.dataId).values,[S,v,O,x]=u,I=n.data.get(a.dataId).values,[N,k,T,w]=c,{batchSize:j,filterDepth:F,filterHeight:_,filterWidth:E,inChannels:R,inDepth:D,inHeight:C,inWidth:A,outChannels:M,outDepth:$,outHeight:U,outWidth:P,strideDepth:B,strideHeight:L,strideWidth:W}=p,z=F-1-p.padInfo.front,G=_-1-p.padInfo.top,V=E-1-p.padInfo.left;for(let e=0;e<j;++e)for(let t=0;t<R;++t)for(let n=0;n<D;++n){let r=n-z,i=Math.max(0,Math.ceil(r/B)),a=Math.min($,(F+r)/B);for(let o=0;o<C;++o){let s=o-G,l=Math.max(0,Math.ceil(s/L)),u=Math.min(U,(_+s)/L);for(let c=0;c<A;++c){let p=c-V,d=Math.max(0,Math.ceil(p/W)),j=Math.min(P,(E+p)/W),R=0;for(let n=i;n<a;++n){let i=n*B-r;for(let r=l;r<u;++r){let a=r*L-s;for(let o=d;o<j;++o){let s=S*e+v*n+O*r+x*o,l=N*(F-1-i)+k*(_-1-a)+T*(E-1-(o*W-p))+w*t;for(let e=0;e<M;++e)R+=y[s+e]*I[l+e]}}}f[h*e+g*n+b*o+m*c+t]=R}}}return n.makeTensorInfo(d.shape,d.dtype,d.values)}},gu=d_(ep.O,e=>Math.cos(e)),gc={kernelName:ep.O,backendName:"cpu",kernelFunc:gu},gp=d_(ep.P,e=>Math.cosh(e)),gd={kernelName:ep.P,backendName:"cpu",kernelFunc:gp},gf={kernelName:ep.Q,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{image:i,boxes:a,boxInd:o}=t,{cropSize:s,method:l,extrapolationValue:u}=r,[c,p,d,f]=i.shape,h=a.shape[0],[g,b]=s,m=Object(ep.we)([h,g,b,f],"float32"),y=n.data.get(a.dataId).values,S=n.data.get(o.dataId).values,v=n.data.get(i.dataId).values,O=ep.Si.computeStrides(i.shape),x=ep.Si.computeStrides(m.shape);for(let e=0;e<h;e++){let t=4*e,n=y[t],r=y[t+1],i=y[t+2],a=y[t+3],o=S[e];if(o>=c)continue;let s=g>1?(i-n)*(p-1)/(g-1):0,h=b>1?(a-r)*(d-1)/(b-1):0;for(let t=0;t<g;t++){let c=g>1?n*(p-1)+t*s:.5*(n+i)*(p-1);if(c<0||c>p-1)for(let n=0;n<b;n++)for(let r=0;r<f;r++){let i=r+n*x[2]+t*x[1]+e*x[0];m.values[i]=u}else if("bilinear"===l){let n=Math.floor(c),i=Math.ceil(c),s=c-n;for(let l=0;l<b;l++){let c=b>1?r*(d-1)+l*h:.5*(r+a)*(d-1);if(c<0||c>d-1){for(let n=0;n<f;n++){let r=n+l*x[2]+t*x[1]+e*x[0];m.values[r]=u}continue}let p=Math.floor(c),g=Math.ceil(c),y=c-p;for(let r=0;r<f;r++){let a=r+p*O[2]+n*O[1]+o*O[0],u=v[a],c=v[a=r+g*O[2]+n*O[1]+o*O[0]],d=v[a=r+p*O[2]+i*O[1]+o*O[0]];a=r+g*O[2]+i*O[1]+o*O[0];let f=u+(c-u)*y,h=d+(v[a]-d)*y;a=r+l*x[2]+t*x[1]+e*x[0],m.values[a]=f+(h-f)*s}}}else for(let n=0;n<b;++n){let i=b>1?r*(d-1)+n*h:.5*(r+a)*(d-1);if(i<0||i>d-1){for(let r=0;r<f;r++){let i=r+n*x[2]+t*x[1]+e*x[0];m.values[i]=u}continue}let s=Math.round(i),l=Math.round(c);for(let r=0;r<f;r++){let i=r+s*O[2]+l*O[1]+o*O[0],a=r+n*x[2]+t*x[1]+e*x[0];m.values[a]=v[i]}}}}return n.makeTensorInfo(m.shape,m.dtype,m.values)}},gh={kernelName:ep.R,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,exclusive:o,reverse:s}=r;dt(i,"cumprod");let l=ep.ie.getAxesPermutation([a],i.shape.length),u=i;null!=l&&(u=fx({inputs:{x:i},backend:n,attrs:{perm:l}}));let c=ep.ie.getInnerMostAxes(1,i.shape.length)[0];if(c!==u.shape.length-1)throw Error(`backend.cumprod in CPU expects an inner-most axis=${u.shape.length-1} but got axis=${c}`);let p=Object(ep.Qi)(u.dtype,"int32"),d=ep.Si.makeOnesTypedArray(ep.Si.sizeFromShape(u.shape),p),f=n.data.get(u.dataId).values,h=u.shape[u.shape.length-1],g=s?(e,t)=>e+h-t-1:(e,t)=>e+t;for(let e=0;e<f.length;e+=h)for(let t=0;t<h;t++){let n=g(e,t);if(0===t)d[n]=o?1:f[n];else{let r=g(e,t-1);d[n]=o?f[r]*d[r]:f[n]*d[r]}}let b=n.makeTensorInfo(u.shape,p,d);if(null!=l){let e=fx({inputs:{x:b},backend:n,attrs:{perm:ep.ie.getUndoAxesPermutation(l)}});return n.disposeIntermediateTensorInfo(b),n.disposeIntermediateTensorInfo(u),e}return b}},gg={kernelName:ep.S,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,exclusive:o,reverse:s}=r;dt(i,"cumsum");let l=ep.ie.getAxesPermutation([a],i.shape.length),u=i;
26null!=l&&(u=fx({inputs:{x:i},backend:n,attrs:{perm:l}}));let c=ep.ie.getInnerMostAxes(1,i.shape.length)[0];if(c!==u.shape.length-1)throw Error(`backend.cumsum in CPU expects an inner-most axis=${u.shape.length-1} but got axis=${c}`);let p=Object(ep.Qi)(u.dtype,"int32"),d=ep.Si.makeZerosTypedArray(ep.Si.sizeFromShape(u.shape),p),f=n.data.get(u.dataId).values,h=u.shape[u.shape.length-1],g=s?(e,t)=>e+h-t-1:(e,t)=>e+t;for(let e=0;e<f.length;e+=h)for(let t=0;t<h;t++){let n=g(e,t);if(0===t)d[n]=o?0:f[n];else{let r=g(e,t-1);d[n]=o?f[r]+d[r]:f[n]+d[r]}}let b=n.makeTensorInfo(u.shape,p,d);if(null!=l){let e=fx({inputs:{x:b},backend:n,attrs:{perm:ep.ie.getUndoAxesPermutation(l)}});return n.disposeIntermediateTensorInfo(b),n.disposeIntermediateTensorInfo(u),e}return b}},gb={kernelName:ep.U,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,weights:a}=t,{size:o,binaryOutput:s}=r;if(1===i.shape.length){let e=dN(n.data.get(i.dataId).values,n.data.get(a.dataId).values,a.dtype,a.shape,o);return n.makeTensorInfo([o],a.dtype,e)}if(2===i.shape.length){let e=dk(n.bufferSync(i),n.bufferSync(a),o,s);return n.makeTensorInfo(e.shape,a.dtype,e.values)}throw Error("Error in denseBincount: input must be at most rank 2, but got rank"+i.shape.length+".")}},gm={kernelName:ep.V,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{blockSize:a,dataFormat:o}=r;ep.Si.assert("NHWC"===o,()=>"Only NHWC dataFormat supported on CPU for depthToSpace. Got "+o);let s=i.shape[0],l=i.shape[1],u=i.shape[2],c=i.shape[3],p=l*a,d=u*a,f=c/(a*a),h=n.data.get(i.dataId).values,g=new Float32Array(s*p*d*f),b=0;for(let e=0;e<s;++e)for(let t=0;t<p;++t){let n=Math.floor(t/a),r=t%a;for(let t=0;t<d;++t){let i=Math.floor(t/a),o=(r*a+t%a)*f;for(let t=0;t<f;++t){let r=t+o+c*(i+u*(n+l*e));g[b++]=h[r]}}}return n.makeTensorInfo([s,p,d,f],i.dtype,g)}};function gy(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,filter:a}=t,{strides:o,pad:s,dilations:l,dimRoundingMode:u}=r;dt([i,a],"depthwiseConv2DNative");let c=ep.Si.computeStrides(i.shape),p=ep.Si.computeStrides(a.shape),d=l;null==d&&(d=[1,1]),ep.Si.assert(ep.ie.eitherStridesOrDilationsAreOne(o,d),()=>`Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides ${o} and dilations '${d}'`);let f=ep.ie.computeConv2DInfo(i.shape,a.shape,o,d,s,u,!0),{filterHeight:h,filterWidth:g,dilationHeight:b,dilationWidth:m,padInfo:y}=f,S=y.left,v=y.top,O=f.outChannels/f.inChannels,x=new ep.Ed(f.outShape,i.dtype),I=n.data.get(i.dataId).values,N=n.data.get(a.dataId).values,k=x.values;for(let e=0;e<f.batchSize;++e){let t=e*c[0],n=e*x.strides[0];for(let e=0;e<f.outHeight;++e){let r=n+e*x.strides[1],i=e*f.strideHeight-v;for(let e=0;e<h;++e){let n=i+e*b;if(n<0||n>=f.inHeight)continue;let a=e*p[0],o=t+n*c[1];for(let e=0;e<f.outWidth;++e){let t=r+e*x.strides[2],n=e*f.strideWidth-S;for(let e=0;e<g;++e){let r=n+e*m;if(r<0||r>=f.inWidth)continue;let i=a+e*p[1],s=o+r*f.inChannels,l=t,u=i;for(let e=0;e<f.inChannels;++e){let t=I[s+e];for(let e=0;e<O;++e)k[l+e]+=t*N[u+e];l+=O,u+=O}}}}}}return n.makeTensorInfo(x.shape,x.dtype,x.values)}let gS={kernelName:ep.W,backendName:"cpu",kernelFunc:gy},gv={kernelName:ep.X,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,dy:a}=t,{strides:o,dilations:s,pad:l,dimRoundingMode:u,filterShape:c}=r;dt([i,a],"depthwiseConv2dNativeBackpropFilter");let p=ep.ie.computeConv2DInfo(i.shape,c,o,s,l,u,!0),{strideHeight:d,strideWidth:f,filterHeight:h,filterWidth:g}=p,b=new ep.Ed(p.filterShape,"float32"),m=p.padInfo.left,y=p.padInfo.top,S=p.outChannels/p.inChannels,v=n.data.get(i.dataId).values,O=new ep.Ed(i.shape,i.dtype,v),x=n.data.get(a.dataId).values,I=new ep.Ed(a.shape,a.dtype,x);for(let e=0;e<h;++e){let t=Math.max(0,Math.ceil((y-e)/d)),n=Math.min(p.outHeight,(p.inHeight+y-e)/d);for(let r=0;r<g;++r){let i=Math.max(0,Math.ceil((m-r)/f)),a=Math.min(p.outWidth,(p.inWidth+m-r)/f);for(let o=0;o<p.outChannels;++o){let s=Math.trunc(o/S),l=o%S,u=0;for(let l=0;l<p.batchSize;++l)for(let c=t;c<n;++c){let t=e+c*d-y;for(let e=i;e<a;++e){let n=r+e*f-m;u+=O.get(l,t,n,s)*I.get(l,c,e,o)}}b.set(u,e,r,s,l)}}}return n.makeTensorInfo(b.shape,b.dtype,b.values)}},gO={kernelName:ep.Y,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,filter:a}=t,{strides:o,dilations:s,pad:l,dimRoundingMode:u,inputShape:c}=r;dt([i,a],"depthwiseConv2DNativeBackpropInput");let p=ep.Si.computeStrides(i.shape),d=ep.Si.computeStrides(a.shape),f=ep.ie.computeConv2DInfo(c,a.shape,o,s,l,u,!0),h=new ep.Ed(f.inShape,"float32"),g=h.values,[b,m,y]=h.strides,S=n.data.get(i.dataId).values,[v,O,x]=p,I=n.data.get(a.dataId).values,[N,k,T]=d,{batchSize:w,filterHeight:j,filterWidth:F,inChannels:_,inHeight:E,inWidth:R,outChannels:D,outHeight:C,outWidth:A,strideHeight:M,strideWidth:$}=f,U=j-1-f.padInfo.top,P=F-1-f.padInfo.left,B=D/_;for(let e=0;e<w;++e)for(let t=0;t<_;++t)for(let n=0;n<E;++n){let r=n-U,i=Math.max(0,Math.ceil(r/M)),a=Math.min(C,(j+r)/M);for(let o=0;o<R;++o){let s=o-P,l=Math.max(0,Math.ceil(s/$)),u=Math.min(A,(F+s)/$),c=0;for(let n=i;n<a;++n){let i=n*M-r;for(let r=l;r<u;++r){let a=v*e+O*n+x*r,o=N*(j-1-i)+k*(F-1-(r*$-s))+T*t;for(let e=0;e<B;++e)c+=S[a+(t*B+e)]*I[o+e]}}g[b*e+m*n+y*o+t]=c}}return n.makeTensorInfo(h.shape,h.dtype,h.values)}},gx={kernelName:ep.Z,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{x:r}=t,i=ep.Si.sizeFromShape(r.shape),a=n.data.get(r.dataId).values,o=Object(ep.we)([i,i],r.dtype),s=o.values;for(let e=0;e<a.length;e++)s[e*i+e]=a[e];let l=[...r.shape,...r.shape];return n.makeTensorInfo(l,o.dtype,o.values)}}
26,gI={kernelName:ep.ab,backendName:"cpu",kernelFunc:({inputs:e,backend:t,attrs:n})=>{let{x:r,filter:i}=e,{strides:a,pad:o,dilations:s}=n,l=t,u=l.data.get(r.dataId).values,c=r.shape.length,p=l.data.get(i.dataId).values,d=i.shape.length,{batchSize:f,inHeight:h,inWidth:g,inChannels:b,outHeight:m,outWidth:y,padInfo:S,strideHeight:v,strideWidth:O,filterHeight:x,filterWidth:I,dilationHeight:N,dilationWidth:k,outShape:T}=ep.ie.computeDilation2DInfo(r.shape,i.shape,a,o,"NHWC",s),w=ep.Si.sizeFromShape(T),j=T.length,F=ep.Si.getArrayFromDType(r.dtype,w);for(let e=0;e<f;++e)for(let t=0;t<m;++t){let n=t*v-S.top;for(let a=0;a<y;++a){let o=a*O-S.left;for(let s=0;s<b;++s){let l=Number.MIN_SAFE_INTEGER;for(let t=0;t<x;++t){let a=n+t*N;if(a>=0&&a<h)for(let n=0;n<I;++n){let f=o+n*k;if(f>=0&&f<g){let o=ep.Si.locToIndex([e,a,f,s],c,ep.Si.computeStrides(r.shape)),h=ep.Si.locToIndex([t,n,s],d,ep.Si.computeStrides(i.shape)),g=u[o]+p[h];g>l&&(l=g)}}}F[ep.Si.locToIndex([e,t,a,s],j,ep.Si.computeStrides(T))]=l}}}return{dataId:l.write(ep.Si.toTypedArray(F,r.dtype),T,r.dtype),shape:T,dtype:r.dtype}}},gN={kernelName:ep.bb,backendName:"cpu",kernelFunc:({inputs:e,backend:t,attrs:n})=>{let{x:r,filter:i,dy:a}=e,{strides:o,pad:s,dilations:l}=n,u=t,c=ep.Si.toNestedArray(r.shape,u.data.get(r.dataId).values),p=ep.Si.toNestedArray(i.shape,u.data.get(i.dataId).values),{batchSize:d,inHeight:f,inWidth:h,inChannels:g,outHeight:b,outWidth:m,padInfo:y,strideHeight:S,strideWidth:v,filterHeight:O,filterWidth:x,dilationHeight:I,dilationWidth:N,outShape:k}=ep.ie.computeDilation2DInfo(r.shape,i.shape,o,s,"NHWC",l);ep.Si.assert(a.rank===k.length,()=>`Error in ${ep.bb}, dy must have the same rank as output ${k.length}, but got `+a.rank);let T=ep.Si.toNestedArray(k,u.data.get(a.dataId).values),w=ep.Si.makeZerosNestedTypedArray(i.shape,i.dtype);for(let e=0;e<d;++e)for(let t=0;t<b;++t){let n=t*S-y.top;for(let r=0;r<m;++r){let i=r*v-y.left;for(let a=0;a<g;++a){let o=Number.MIN_SAFE_INTEGER,s=0,l=0;for(let t=0;t<O;++t){let r=n+t*I;if(r>=0&&r<f)for(let n=0;n<x;++n){let u=i+n*N;if(u>=0&&u<h){let i=c[e][r][u][a]+p[t][n][a];i>o&&(o=i,s=t,l=n)}}}w[s][l][a]+=T[e][t][r][a]}}}return{dataId:u.write(ep.Si.toTypedArray(w,r.dtype),i.shape,i.dtype),shape:i.shape,dtype:i.dtype}}},gk={kernelName:ep.cb,backendName:"cpu",kernelFunc:({inputs:e,backend:t,attrs:n})=>{let{x:r,filter:i,dy:a}=e,{strides:o,pad:s,dilations:l}=n,u=t,c=ep.Si.toNestedArray(r.shape,u.data.get(r.dataId).values),p=ep.Si.toNestedArray(i.shape,u.data.get(i.dataId).values),{batchSize:d,inHeight:f,inWidth:h,inChannels:g,outHeight:b,outWidth:m,padInfo:y,strideHeight:S,strideWidth:v,filterHeight:O,filterWidth:x,dilationHeight:I,dilationWidth:N,outShape:k}=ep.ie.computeDilation2DInfo(r.shape,i.shape,o,s,"NHWC",l);ep.Si.assert(a.rank===k.length,()=>`Error in ${ep.cb}, dy must have the same rank as output ${k.length}, but got `+a.rank);let T=ep.Si.toNestedArray(k,u.data.get(a.dataId).values),w=ep.Si.makeZerosNestedTypedArray(r.shape,r.dtype);for(let e=0;e<d;++e)for(let t=0;t<b;++t){let n=t*S-y.top;for(let r=0;r<m;++r){let i=r*v-y.left;for(let a=0;a<g;++a){let o=Number.MIN_SAFE_INTEGER,s=n<0?0:n,l=i<0?0:i;for(let t=0;t<O;++t){let r=n+t*I;if(r>=0&&r<f)for(let n=0;n<x;++n){let u=i+n*N;if(u>=0&&u<h){let i=c[e][r][u][a]+p[t][n][a];i>o&&(o=i,s=r,l=u)}}}w[e][s][l][a]+=T[e][t][r][a]}}}return{dataId:u.write(ep.Si.toTypedArray(w,r.dtype),r.shape,r.dtype),shape:r.shape,dtype:r.dtype}}},gT={kernelName:ep.db,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{image:i}=t,{canvas:a,options:o}=r,{contextOptions:s,imageOptions:l}=o||{},u=(null==l?void 0:l.alpha)||1,c=(null==s?void 0:s.contextType)||"2d";if("2d"!==c)throw Error(`Context type ${s.contextType} is not supported by the CPU backend.`);let p=a.getContext(c,(null==s?void 0:s.contextAttributes)||{});if(null==p)throw Error(`Could not get the context with ${c} type.`);let[d,f]=i.shape.slice(0,2),h=2===i.shape.length?1:i.shape[2],g=n.data.get(i.dataId).values,b="float32"===i.dtype?255:1,m=new Uint8ClampedArray(f*d*4);for(let e=0;e<d*f;++e){let t=[0,0,0,255*u];for(let n=0;n<h;n++){let r=g[e*h+n];if("float32"===i.dtype){if(r<0||r>1)throw Error(`Tensor values for a float32 Tensor must be in the range [0 - 1] but encountered ${r}.`)}else if("int32"===i.dtype&&(r<0||r>255))throw Error(`Tensor values for a int32 Tensor must be in the range [0 - 255] but encountered ${r}.`);1===h?(t[0]=r*b,t[1]=r*b,t[2]=r*b):t[n]=r*b}let n=4*e;m[n+0]=Math.round(t[0]),m[n+1]=Math.round(t[1]),m[n+2]=Math.round(t[2]),m[n+3]=Math.round(t[3])}a.width=f,a.height=d;let y=new ImageData(m,f,d);return p.putImageData(y,0,0),i}};function gw(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n,{axis:o,keepDims:s}=i;dt(a,"sum");let l=(t="bool"===a.dtype?db({inputs:{x:a},backend:r,attrs:{dtype:"int32"}}):dp({inputs:{x:a},backend:r})).shape.length,u=ep.Si.parseAxisParam(o,t.shape),c=ep.ie.getAxesPermutation(u,l),p=u,d=t;
26null!=c&&(d=fx({inputs:{x:t},backend:r,attrs:{perm:c}}),p=ep.ie.getInnerMostAxes(p.length,l)),ep.ie.assertAxesAreInnerMostDims("sum",p,d.shape.length);let[f,h]=ep.ie.computeOutAndReduceShapes(d.shape,p),g=dc(r,f,ep.ie.upcastType(d.dtype,"int32")),b=ep.Si.sizeFromShape(h),m=r.data.get(g.dataId).values,y=r.data.get(d.dataId).values;for(let e=0;e<m.length;++e){let t=e*b,n=0;for(let e=0;e<b;++e)n+=y[t+e];m[e]=n}if(s){let e=g;g=hI({inputs:{x:g},backend:r,attrs:{shape:ep.ie.expandShapeToKeepDim(g.shape,u)}}),r.disposeIntermediateTensorInfo(e)}return r.disposeIntermediateTensorInfo(t),null!=c&&r.disposeIntermediateTensorInfo(d),g}let gj={kernelName:ep.Ad,backendName:"cpu",kernelFunc:gw},gF={kernelName:ep.fb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{equation:i}=r,a=t,{allDims:o,summedDims:s,idDims:l}=ep.ie.decodeEinsumEquation(i,a.length);ep.ie.checkEinsumDimSizes(o.length,l,a);let{path:u,steps:c}=ep.ie.getEinsumComputePath(s,l),p=c.length,d=null,f=o.length,h=[];for(let e=0;e<p;++e){for(let t of c[e]){let e,{permutationIndices:r,expandDims:i}=ep.ie.getEinsumPermutation(f,l[t]);ep.ie.isIdentityPermutation(r)?e=a[t]:(e=fx({inputs:{x:a[t]},backend:n,attrs:{perm:r}}),h.push(e));let o=e.shape.slice();for(let e=0;e<i.length;++e)o.splice(i[e],0,1);ep.Si.arraysEqual(e.shape,o)||(e=hI({inputs:{x:e},backend:n,attrs:{shape:o}}),h.push(e)),null===d?d=e:(d=fh({inputs:{a:e,b:d},backend:n}),h.push(d))}e<p-1&&(u[e]>=0&&(d=gw({inputs:{x:d},backend:n,attrs:{axis:u[e]-(o.length-f),keepDims:!1}}),h.push(d)),f--)}for(let e of h)e!==d&&n.disposeIntermediateTensorInfo(e);return d}},g_={kernelName:ep.hb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{dy:r,y:i}=t;dt([r,i],"eluGrad");let a=new Float32Array(ep.Si.sizeFromShape(i.shape)),o=n.data.get(i.dataId).values,s=n.data.get(r.dataId).values;for(let e=0;e<o.length;++e){let t=o[e];a[e]=t>=0?s[e]:s[e]*(t+1)}return n.makeTensorInfo(i.shape,"float32",a)}},gE=ep.ie.ERF_P,gR=ep.ie.ERF_A1,gD=ep.ie.ERF_A2,gC=ep.ie.ERF_A3,gA=ep.ie.ERF_A4,gM=ep.ie.ERF_A5,g$=d_(ep.kb,e=>{let t=Math.sign(e),n=Math.abs(e),r=1/(1+gE*n);return t*(1-((((gM*r+gA)*r+gC)*r+gD)*r+gR)*r*Math.exp(-n*n))}),gU={kernelName:ep.kb,backendName:"cpu",kernelFunc:g$};function gP(e){let{inputs:t,backend:n,attrs:r}=e,{input:i}=t,{dim:a}=r,o=i.shape.length,s=i.shape.slice(),l=a;return a<0&&(ep.Si.assert(-(o+1)<=a,()=>`Axis must be in the interval [${-(o+1)}, ${o}]`),l=o+a+1),s.splice(l,0,1),hI({inputs:{x:i},backend:n,attrs:{shape:s}})}let gB={kernelName:ep.mb,backendName:"cpu",kernelFunc:gP},gL=ds((e,t)=>e/t),gW=dy(ep.Jc,gL),gz={kernelName:ep.Jc,backendName:"cpu",kernelFunc:gW};function gG(e,t,n){let r=e.shape,i=r[0],a=r[1],o=n.data.get(e.dataId),s=o.complexTensorInfos.real,l=o.complexTensorInfos.imag,u=[i,a],c=ep.Si.sizeFromShape(u),p=ep.Si.getTypedArrayFromDType("float32",c),d=ep.Si.getTypedArrayFromDType("float32",c);for(let e=0;e<i;e++){let r=fV({inputs:{x:s},backend:n,attrs:{begin:[e,0],size:[1,a]}}),i=fV({inputs:{x:l},backend:n,attrs:{begin:[e,0],size:[1,a]}}),o=dl({inputs:{real:r,imag:i},backend:n}),{real:u,imag:c}=gV(o,t,n),f=ep.ie.mergeRealAndImagArrays(u,c);for(let t=0;t<a;t++){let n=ep.ie.getComplexWithIndex(f,t);p[e*a+t]=n.real,d[e*a+t]=n.imag}n.disposeIntermediateTensorInfo(r),n.disposeIntermediateTensorInfo(i),n.disposeIntermediateTensorInfo(o)}let f=n.makeTensorInfo(u,"float32",p),h=n.makeTensorInfo(u,"float32",d),g=dl({inputs:{real:f,imag:h},backend:n});return n.disposeIntermediateTensorInfo(f),n.disposeIntermediateTensorInfo(h),g}function gV(e,t,n){var r;let i=ep.Si.sizeFromShape(e.shape),a=n.data.get(e.dataId),o=n.data.get(a.complexTensorInfos.real.dataId).values,s=n.data.get(a.complexTensorInfos.imag.dataId).values;if(0==((r=i)&r-1)){let r=function e(t,n,r,i,a){if(1===r)return{real:t,imag:n};let o=ep.ie.mergeRealAndImagArrays(t,n),s=r/2,l=ep.ie.complexWithEvenIndex(o),u=l.real,c=l.imag,p=[u.length],d=a.makeTensorInfo(p,"float32",u),f=a.makeTensorInfo(p,"float32",c),h=dl({inputs:{real:d,imag:f},backend:a}),g=ep.ie.complexWithOddIndex(o),b=g.real,m=g.imag,y=[b.length],S=a.makeTensorInfo(y,"float32",b),v=a.makeTensorInfo(y,"float32",m),O=dl({inputs:{real:S,imag:v},backend:a}),x=e(u,c,s,i,a),I=x.real,N=x.imag,k=[I.length],T=a.makeTensorInfo(k,"float32",I),w=a.makeTensorInfo(k,"float32",N),j=dl({inputs:{real:T,imag:w},backend:a}),F=e(b,m,s,i,a),_=F.real,E=F.imag,R=[_.length],D=a.makeTensorInfo(R,"float32",_),C=a.makeTensorInfo(R,"float32",E),A=dl({inputs:{real:D,imag:C},backend:a}),M=ep.ie.exponents(r,i),$=[M.real.length],U=a.makeTensorInfo($,"float32",M.real),P=a.makeTensorInfo($,"float32",M.imag),B=dl({inputs:{real:U,imag:P},backend:a}
26),L=fh({inputs:{a:B,b:A},backend:a}),W=dx({inputs:{a:j,b:L},backend:a}),z=hr({inputs:{a:j,b:L},backend:a}),G=df({inputs:{input:W},backend:a}),V=df({inputs:{input:z},backend:a}),H=h7({inputs:{input:W},backend:a}),q=h7({inputs:{input:z},backend:a}),K=ge({inputs:[G,V],backend:a,attrs:{axis:0}}),X=ge({inputs:[H,q],backend:a,attrs:{axis:0}}),Y=a.data.get(K.dataId).values,Q=a.data.get(X.dataId).values;return a.disposeIntermediateTensorInfo(d),a.disposeIntermediateTensorInfo(f),a.disposeIntermediateTensorInfo(h),a.disposeIntermediateTensorInfo(S),a.disposeIntermediateTensorInfo(v),a.disposeIntermediateTensorInfo(O),a.disposeIntermediateTensorInfo(T),a.disposeIntermediateTensorInfo(w),a.disposeIntermediateTensorInfo(j),a.disposeIntermediateTensorInfo(D),a.disposeIntermediateTensorInfo(C),a.disposeIntermediateTensorInfo(A),a.disposeIntermediateTensorInfo(U),a.disposeIntermediateTensorInfo(P),a.disposeIntermediateTensorInfo(B),a.disposeIntermediateTensorInfo(L),a.disposeIntermediateTensorInfo(W),a.disposeIntermediateTensorInfo(z),a.disposeIntermediateTensorInfo(G),a.disposeIntermediateTensorInfo(H),a.disposeIntermediateTensorInfo(V),a.disposeIntermediateTensorInfo(q),a.disposeIntermediateTensorInfo(K),a.disposeIntermediateTensorInfo(X),{real:Y,imag:Q}}(o,s,i,t,n),a=[e.shape[0],e.shape[1]];if(t){let e=n.makeTensorInfo(a,"float32",r.real),t=n.makeTensorInfo(a,"float32",r.imag),o=n.makeTensorInfo([],"float32",ep.Si.createScalarValue(i,"float32")),s=dp({inputs:{x:o},backend:n}),l=gz.kernelFunc({inputs:{a:e,b:o},backend:n}),u=gz.kernelFunc({inputs:{a:t,b:s},backend:n}),c=n.data.get(l.dataId).values,p=n.data.get(u.dataId).values;return n.disposeIntermediateTensorInfo(e),n.disposeIntermediateTensorInfo(t),n.disposeIntermediateTensorInfo(o),n.disposeIntermediateTensorInfo(s),n.disposeIntermediateTensorInfo(l),n.disposeIntermediateTensorInfo(u),{real:c,imag:p}}return r}{let e=function(e,t,n){let r=new Float32Array(2*t);for(let i=0;i<t;i++){let a=0,o=0;for(let r=0;r<t;r++){let s=ep.ie.exponent(i*r,t,n),l=ep.ie.getComplexWithIndex(e,r);a+=l.real*s.real-l.imag*s.imag,o+=l.real*s.imag+l.imag*s.real}n&&(a/=t,o/=t),ep.ie.assignToTypedArray(r,a,o,i)}return r}(ep.ie.mergeRealAndImagArrays(o,s),i,t);return ep.ie.splitRealAndImagArrays(e)}}let gH={kernelName:ep.ob,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{input:r}=t,i=ep.Si.sizeFromShape(r.shape),a=r.shape[r.shape.length-1],o=hI({inputs:{x:r},backend:n,attrs:{shape:[i/a,a]}}),s=gG(o,!1,n),l=hI({inputs:{x:s},backend:n,attrs:{shape:r.shape}});return n.disposeIntermediateTensorInfo(o),n.disposeIntermediateTensorInfo(s),l}};function gq(e){let{backend:t,attrs:n}=e,{shape:r,value:i,dtype:a}=n,o=a||ep.Si.inferDtype(i),s=ep.Si.getArrayFromDType(o,ep.Si.sizeFromShape(r));return function(e,t,n){e.fill(t)}(s,i),t.makeTensorInfo(r,o,s)}let gK={kernelName:ep.pb,backendName:"cpu",kernelFunc:gq},gX={kernelName:ep.qb,backendName:"cpu",kernelFunc:({inputs:e,attrs:t,backend:n})=>{let{image:r}=e,i=n,a=ep.Si.getTypedArrayFromDType(r.dtype,ep.Si.sizeFromShape(r.shape)),[o,s,l,u]=r.shape,c=i.data.get(r.dataId).values;for(let e=0;e<o;e++){let t=e*l*s*u;for(let e=0;e<s;e++){let n=l*u*e;for(let e=0;e<l;e++){let r=e*u;for(let i=0;i<u;i++){let o=Math.round(l-e-1),s=t+n+r+i,p=c[s];o>=0&&o<l&&(p=c[t+n+o*u+i]),a[s]=p}}}}return{dataId:i.write(a,r.shape,r.dtype),shape:r.shape,dtype:r.dtype}}},gY={kernelName:ep.vb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,filter:a,bias:o,preluActivationWeights:s}=t,{strides:l,pad:u,dataFormat:c,dilations:p,dimRoundingMode:d,activation:f,leakyreluAlpha:h}=r,g=gn({inputs:{x:i,filter:a},backend:n,attrs:{strides:l,pad:u,dataFormat:c,dilations:p,dimRoundingMode:d}});if(o){let e=g;if("NCHW"===c&&1===o.shape.length&&1!==o.shape[0]){let e=hI({inputs:{x:o},backend:n,attrs:{shape:[o.shape[0],1,1]}});g=dx({inputs:{a:g,b:e},backend:n}),n.disposeIntermediateTensorInfo(e)}else g=dx({inputs:{a:g,b:o},backend:n});n.disposeIntermediateTensorInfo(e)}if(f){let e=g;if("NCHW"===c&&"prelu"===f&&1===s.shape.length&&1!==s.shape[0]){let e=hI({inputs:{x:s},backend:n,attrs:{shape:[s.shape[0],1,1]}});g=hx(n,g,f,e,h),n.disposeIntermediateTensorInfo(e)}else g=hx(n,g,f,s,h);n.disposeIntermediateTensorInfo(e)}return g}},gQ={kernelName:ep.wb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,filter:a,bias:o,preluActivationWeights:s}=t,{strides:l,pad:u,dataFormat:c,dilations:p,dimRoundingMode:d,activation:f,leakyreluAlpha:h}=r,g=gy({inputs:{x:i,filter:a},backend:n,attrs:{strides:l,pad:u,dataFormat:c,dilations:p,dimRoundingMode:d}});if(o){let e=g;g=dx({inputs:{a:g,b:o},backend:n}),n.disposeIntermediateTensorInfo(e)}if(f){let e=g;g=hx(n,g,f,s,h),n.disposeIntermediateTensorInfo(e)}return g}},gJ={kernelName:ep.xb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{params:r,indices:i}=t,a=ep.Si.sizeFromShape(r.shape),o=i.shape,s=o[o.length-1],[l,u,c,p]=ep.ie.prepareAndValidate(r,i);if(0===u)return n.makeTensorInfo(l,r.dtype,[]);let d=dQ(n.data.get(i.dataId).values,n.bufferSync(r),r.dtype,u,s,c,p,r.shape,a);return n.makeTensorInfo(l,r.dtype,d.values)}},gZ={kernelName:ep.yb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,indices:a}=t,{axis:o,batchDims:s}=r;dt([i,a],"gatherV2");let l=ep.Si.parseAxisParam(o,i.shape)[0],u=n.data.get(a.dataId).values,c=i.shape[l];for(let e=0;e<u.length;++e){let t=u[e];ep.Si.assert(t<=c-1&&t>=0,()=>`GatherV2: the index value ${t} is not in [0, ${c-1}]`)}let p=s;null==s&&(p=0);let d=ep.Si.sizeFromShape(a.shape),f=ep.ie.segment_util.collectGatherOpShapeInfo(i,a,l,p),h=hI({inputs:{x:i},backend:n,attrs:{shape:[f.batchSize,f.outerSize,f.dimSize,f.sliceSize]}}),g=hI({inputs:{x:a},backend:n,attrs:{shape:[f.batchSize,d/f.batchSize]}}),b=[f.batchSize,f.outerSize,d/f.batchSize,f.sliceSize],m=n.bufferSync(g),y=dJ(n.bufferSync(h),m,b);return n.disposeIntermediateTensorInfo(h),n.disposeIntermediateTensorInfo(g),n.makeTensorInfo(f.outputShape,y.dtype,y.values)}},g0={kernelName:ep.Bb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}
26=e,{input:r}=t,i=ep.Si.sizeFromShape(r.shape),a=r.shape[r.shape.length-1],o=hI({inputs:{x:r},backend:n,attrs:{shape:[i/a,a]}}),s=gG(o,!0,n),l=hI({inputs:{x:s},backend:n,attrs:{shape:r.shape}});return n.disposeIntermediateTensorInfo(o),n.disposeIntermediateTensorInfo(s),l}},g1=d_(ep.Eb,e=>+!!Number.isFinite(e),"bool"),g2={kernelName:ep.Eb,backendName:"cpu",kernelFunc:g1},g3=d_(ep.Fb,e=>+(Math.abs(e)===1/0),"bool"),g4={kernelName:ep.Fb,backendName:"cpu",kernelFunc:g3},g6=d_(ep.Gb,e=>+!!Number.isNaN(e),"bool"),g5={kernelName:ep.Gb,backendName:"cpu",kernelFunc:g6},g8={kernelName:ep.Nb,backendName:"cpu",kernelFunc:function(e){let{backend:t,attrs:n}=e,{start:r,stop:i,num:a}=n,o=ft(r,i,a);return t.makeTensorInfo([o.length],"float32",o)}},g7=d_(ep.Pb,e=>Math.log1p(e)),g9={kernelName:ep.Pb,backendName:"cpu",kernelFunc:g7},be=ds((e,t)=>e&&t),bt=dy(ep.Rb,be,null,"bool"),bn={kernelName:ep.Rb,backendName:"cpu",kernelFunc:bt},br=d_(ep.Sb,e=>+!e,"bool"),bi={kernelName:ep.Sb,backendName:"cpu",kernelFunc:br},ba=ds((e,t)=>e||t),bo=dy(ep.Tb,ba,null,"bool"),bs={kernelName:ep.Tb,backendName:"cpu",kernelFunc:bo},bl={kernelName:ep.Ib,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{depthRadius:a,bias:o,alpha:s,beta:l}=r;dt(i,"LRN");let u=i.shape[3],c=u-1,p=n.data.get(i.dataId).values,d=ep.Si.sizeFromShape(i.shape),f=new Float32Array(d);function h(e){let t=e%u,n=e-t+Math.max(0,t-a),r=e-t+Math.min(t+a,c),i=0;for(;n<=r;n++){let e=p[n];i+=e*e}return i}for(let e=0;e<d;e++){let t=h(e),n=p[e]*Math.pow(o+s*t,-l);f[e]=n}return n.makeTensorInfo(i.shape,i.dtype,f)}},bu={kernelName:ep.Jb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,y:a,dy:o}=t,{depthRadius:s,bias:l,alpha:u,beta:c}=r;dt(o,"LRNGrad");let p=ep.Si.sizeFromShape(o.shape),d=o.shape[3],f=n.data.get(o.dataId).values,h=n.data.get(i.dataId).values,g=n.data.get(a.dataId).values,b=new Float32Array(p),m=p;for(let e=0;e<m;e++){let t=e%d,n=e-t+Math.max(0,t-s),r=e-t+Math.min(d,t+s+1),i=0;for(let e=n;e<r;e++)i+=Math.pow(h[e],2);i=u*i+l;for(let t=n;t<r;t++){let n=-2*u*c*h[t]*g[e]/i;e===t&&(n+=Math.pow(i,-c)),n*=f[e],b[t]+=n}}return n.makeTensorInfo(o.shape,i.dtype,b)}};function bc(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{reductionIndices:a,keepDims:o}=r,s=n,l=i.shape,u=l.length,c=ep.Si.parseAxisParam(a,l),p=c,d=ep.ie.getAxesPermutation(p,u),f=s.data.get(i.dataId).values;if(null!=d){let e=Array(u);for(let t=0;t<e.length;t++)e[t]=l[d[t]];f=fO(f,l,i.dtype,d,e),p=ep.ie.getInnerMostAxes(p.length,u),l=e}dt(i,"max"),ep.ie.assertAxesAreInnerMostDims("max",p,u);let[h,g]=ep.ie.computeOutAndReduceShapes(l,p),b=fa(f,ep.Si.sizeFromShape(g),h,i.dtype),m=s.write(b,h,i.dtype),y=h;return o&&(y=ep.ie.expandShapeToKeepDim(h,c)),{dataId:m,shape:y,dtype:i.dtype}}let bp={kernelName:ep.Xb,backendName:"cpu",kernelFunc:bc},bd={kernelName:ep.Yb,backendName:"cpu",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n;dt(a,"maxPool");let{filterSize:o,strides:s,pad:l,dimRoundingMode:u}=i;ep.Si.assert(ep.ie.eitherStridesOrDilationsAreOne(s,1),()=>`Error in maxPool: Either strides or dilations must be 1. Got strides ${s} and dilations '1'`);let c=ep.ie.computePool2DInfo(a.shape,o,s,1,l,u);if(1===c.filterWidth&&1===c.filterHeight&&ep.Si.arraysEqual(c.inShape,c.outShape))t=dp({inputs:{x:a},backend:r});else{let e=r.data.get(a.dataId).values,n=ep.Si.computeStrides(a.shape),i=hK(e,a.shape,a.dtype,n,c,"max");t=r.makeTensorInfo(c.outShape,a.dtype,i.values)}return t}},bf={kernelName:ep.Zb,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{filterSize:a,strides:o,pad:s,dimRoundingMode:l,dataFormat:u}=r;dt(i,"maxPool3d");let c=ep.ie.computePool3DInfo(i.shape,a,o,1,s,l,u),p=hY(n.data.get(i.dataId).values,i.shape,i.dtype,ep.Si.computeStrides(i.shape),c,"max");return n.makeTensorInfo(p.shape,"float32",p.values)}},bh={kernelName:ep.ac,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,input:a}=t,{filterSize:o,strides:s,pad:l,dimRoundingMode:u}=r;dt([i,a],"maxPool3DGrad");let c=ep.ie.computePool3DInfo(a.shape,o,s,1,l,u),p=function(e,t){let n=Object(ep.we)(t.outShape,"int32"),r=t.strideDepth,i=t.strideHeight,a=t.strideWidth,o=t.dilationDepth,s=t.dilationHeight,l=t.dilationWidth,u=t.effectiveFilterDepth,c=t.effectiveFilterHeight,p=t.effectiveFilterWidth,d=t.padInfo.front,f=t.padInfo.top,h=t.padInfo.left;for(let g=0;g<t.batchSize;++g)for(let b=0;b<t.inChannels;++b)for(let m=0;m<t.outDepth;++m){let y=m*r-d,S=y;for(;S<0;)S+=o;let v=Math.min(t.inDepth,u+y);for(let r=0;r<t.outHeight;++r){let u=r*i-f,d=u;for(;d<0;)d+=s;let O=Math.min(t.inHeight,c+u);for(let i=0;i<t.outWidth;++i){let f=i*a-h,x=f;
26for(;x<0;)x+=l;let I=Math.min(t.inWidth,p+f),N=-1/0,k=-1;for(let t=S;t<v;t+=o){let n=t-y;for(let r=d;r<O;r+=s){let i=r-u;for(let a=x;a<I;a+=l){let o=a-f,s=e.get(g,t,r,a,b);s>=N&&(N=s,k=n*c*p+i*c+o)}}}n.set(k,g,m,r,i,b)}}}return n}(n.bufferSync(a),c),d=c.strideDepth,f=c.strideHeight,h=c.strideWidth,g=c.dilationDepth,b=c.dilationHeight,m=c.dilationWidth,y=c.effectiveFilterDepth,S=c.effectiveFilterHeight,v=c.effectiveFilterWidth,O=y-1-c.padInfo.front,x=v-1-c.padInfo.left,I=S-1-c.padInfo.top,N=Object(ep.we)(a.shape,"float32"),k=n.bufferSync(i);for(let e=0;e<c.batchSize;++e)for(let t=0;t<c.inChannels;++t)for(let n=0;n<c.inDepth;++n)for(let r=0;r<c.inHeight;++r)for(let i=0;i<c.inWidth;++i){let a=n-O,o=r-I,s=i-x,l=0;for(let n=0;n<y;n+=g){let r=(a+n)/d;if(!(r<0||r>=c.outDepth||Math.floor(r)!==r))for(let i=0;i<S;i+=b){let a=(o+i)/f;if(!(a<0||a>=c.outHeight||Math.floor(a)!==a))for(let o=0;o<v;o+=m){let u=(s+o)/h;if(u<0||u>=c.outWidth||Math.floor(u)!==u)continue;let d=+(y*S*v-1-p.get(e,r,a,u,t)===n*S*v+i*v+o);0!==d&&(l+=k.get(e,r,a,u,t)*d)}}}N.set(l,e,n,r,i,t)}return n.makeTensorInfo(N.shape,N.dtype,N.values)}},bg={kernelName:ep.bc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,input:a,output:o}=t,s=a;dt([a,o],"maxPoolGrad");let{filterSize:l,strides:u,pad:c,dimRoundingMode:p}=r,d=ep.ie.computePool2DInfo(s.shape,l,u,1,c,p),f=n.data.get(s.dataId).values,h=Object(ep.we)(d.outShape,s.dtype,hX(f,s.shape,s.dtype,d).values),g=d.strideHeight,b=d.strideWidth,m=d.dilationHeight,y=d.dilationWidth,S=d.effectiveFilterHeight,v=d.effectiveFilterWidth,O=v-1-d.padInfo.left,x=S-1-d.padInfo.top,I=Object(ep.we)(s.shape,"float32"),N=n.data.get(i.dataId).values,k=Object(ep.we)(i.shape,"float32",N);for(let e=0;e<d.batchSize;++e)for(let t=0;t<d.inChannels;++t)for(let n=0;n<d.inHeight;++n)for(let r=0;r<d.inWidth;++r){let i=n-x,a=r-O,o=0;for(let n=0;n<S;n+=m){let r=(i+n)/g;if(!(r<0||r>=d.outHeight||Math.floor(r)!==r))for(let i=0;i<v;i+=y){let s=(a+i)/b;if(s<0||s>=d.outWidth||Math.floor(s)!==s)continue;let l=+(S*v-1-h.get(e,r,s,t)===n*v+i);0!==l&&(o+=k.get(e,r,s,t)*l)}}I.set(o,e,n,r,t)}return n.makeTensorInfo(I.shape,I.dtype,I.values)}},bb={kernelName:ep.cc,backendName:"cpu",kernelFunc:({inputs:e,attrs:t,backend:n})=>{let{x:r}=e,{filterSize:i,strides:a,pad:o,includeBatchInIndex:s}=t,l=n;dt(r,"MaxPoolWithArgmax");let u=l.data.get(r.dataId).values,c=ep.ie.computePool2DInfo(r.shape,i,a,[1,1],o),[p,d]=function(e,t,n,r,i){let a=hK(e,0,n,ep.Si.computeStrides(t),i,"max"),o=hX(e,t,n,i,!0,r);return[a.values,o.values]}(u,r.shape,r.dtype,s,c),f=l.write(p,c.outShape,r.dtype),h=l.write(d,c.outShape,r.dtype);return[{dataId:f,shape:c.outShape,dtype:r.dtype},{dataId:h,shape:c.outShape,dtype:"int32"}]}},bm={kernelName:ep.ec,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,keepDims:o}=r,s=ep.Si.parseAxisParam(a,i.shape),l=ep.ie.computeOutAndReduceShapes(i.shape,s)[1],u=ep.Si.sizeFromShape(l),c=[],p=n.makeTensorInfo([],"float32",new Float32Array([u]));c.push(p);let d=db({inputs:{x:i},backend:n,attrs:{dtype:"float32"}});c.push(d);let f=gW({inputs:{a:d,b:p},backend:n});c.push(f);let h=gw({inputs:{x:f},backend:n,attrs:{axis:a,keepDims:o}});return c.forEach(e=>n.disposeIntermediateTensorInfo(e)),h}},by={kernelName:ep.fc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,keepDims:o}=r;dt(i,"min");let s=ep.Si.parseAxisParam(a,i.shape),l=s,u=ep.ie.getAxesPermutation(l,i.shape.length),c=i;null!=u&&(c=fx({inputs:{x:i},backend:n,attrs:{perm:u}}),l=ep.ie.getInnerMostAxes(l.length,i.shape.length)),ep.ie.assertAxesAreInnerMostDims("min",l,c.shape.length);let[p,d]=ep.ie.computeOutAndReduceShapes(c.shape,l),f=ep.Si.sizeFromShape(d),h=ep.Si.makeZerosTypedArray(ep.Si.sizeFromShape(p),c.dtype),g=n.data.get(c.dataId).values;for(let e=0;e<h.length;++e){let t=e*f,n=g[t];for(let e=0;e<f;++e){let r=g[t+e];(Number.isNaN(r)||r<n)&&(n=r)}h[e]=n}null!=u&&n.disposeIntermediateTensorInfo(c);let b=n.makeTensorInfo(p,c.dtype,h);if(o){let e=hI({inputs:{x:b},backend:n,attrs:{shape:ep.ie.expandShapeToKeepDim(p,s)}});return n.disposeIntermediateTensorInfo(b),e}return b}},bS={kernelName:ep.hc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{paddings:a,mode:o}=r;dt(i,"mirrorPad");let s=a.map((e,t)=>e[0]+i.shape[t]+e[1]),l=a.map(e=>e[0]),u=a.map((e,t)=>e[0]+i.shape[t]),c=+("reflect"!==o),p=n.data.get(i.dataId).values,d=i.shape.length,f=ep.Si.computeStrides(i.shape),h=ep.Si.sizeFromShape(s),g=s.length,b=ep.Si.computeStrides(s),m=ep.Si.getTypedArrayFromDType(i.dtype,h);for(let e=0;e<h;e++){let t=ep.Si.indexToLoc(e,g,b);for(let e=0;e<g;e++)t[e]<l[e]?t[e]=2*l[e]-t[e]-c:t[e]>=u[e]&&(t[e]=2*(u[e]-1)-t[e]+c);t=t.map((e,t)=>e-l[t]);let n=ep.Si.locToIndex(t,d,f);m[e]=p[n]}return{dataId:n.write(m,s,i.dtype),shape:s,dtype:i.dtype}}},bv=ds((e,t)=>{let n=e%t;return e<0&&t<0||e>=0&&t>=0?n:(n+t)%t}),bO=dy(ep.ic,bv),bx={kernelName:ep.ic,backendName:"cpu",kernelFunc:bO};function bI(e){let{inputs:t,backend:n,attrs:r}=e,{logits:i}=t,{dim:a}=r,o=i.shape.length,s=a;if(-1===s&&(s=o-1),s!==o-1)throw Error(`Softmax along a non-last dimension is not yet supported. Logits was rank ${o} and dim was ${s}`);let l=ep.Si.parseAxisParam([s],i.shape),u=bc({inputs:{x:i},backend:n,attrs:{reductionIndices:l,keepDims:!1}}),c=ep.ie.expandShapeToKeepDim(u.shape,l),p=hI({inputs:{x:u},backend:n,attrs:{shape:c}}),d=hr({inputs:{a:i,b:p},backend:n}),f=dB({inputs:{x:d},backend:n}),h=gw({inputs:{x:f},backend:n,attrs:{axis:l,keepDims:!1}}),g=hI({inputs:{x:h},backend:n,attrs:{shape:c}}),b=gW({inputs:{a:f,b:g},backend:n});return n.disposeIntermediateTensorInfo(u),n.disposeIntermediateTensorInfo(p),n.disposeIntermediateTensorInfo(d),n.disposeIntermediateTensorInfo(f),n.disposeIntermediateTensorInfo(h),n.disposeIntermediateTensorInfo(g),b}
26let bN={kernelName:ep.hd,backendName:"cpu",kernelFunc:bI},bk={kernelName:ep.kc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{logits:i}=t,{numSamples:a,seed:o,normalized:s}=r;dt(i,"multinomial");let l=s?i:bI({inputs:{logits:i},backend:n,attrs:{dim:-1}}),u=l.shape[0],c=l.shape[1],p=n.data.get(l.dataId).values,d=[u,a],f=ep.Si.makeZerosTypedArray(ep.Si.sizeFromShape(d),"int32");for(let e=0;e<u;++e){let t=e*c,n=new Float32Array(c-1);n[0]=p[t];for(let e=1;e<n.length;++e)n[e]=n[e-1]+p[t+e];let r=pA.alea(o.toString()),i=e*a;for(let e=0;e<a;++e){let t=r();f[i+e]=n.length;for(let r=0;r<n.length;r++)if(t<n[r]){f[i+e]=r;break}}}return s||n.disposeIntermediateTensorInfo(l),n.makeTensorInfo(d,"int32",f)}},bT=ep.Yf.nonMaxSuppressionV3Impl,bw={kernelName:ep.nc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{boxes:i,scores:a}=t,{maxOutputSize:o,iouThreshold:s,scoreThreshold:l}=r;dt(i,"NonMaxSuppression");let{selectedIndices:u}=bT(n.data.get(i.dataId).values,n.data.get(a.dataId).values,o,s,l);return n.makeTensorInfo([u.length],"int32",new Int32Array(u))}},bj=ep.Yf.nonMaxSuppressionV4Impl,bF={kernelName:ep.oc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{boxes:i,scores:a}=t,{maxOutputSize:o,iouThreshold:s,scoreThreshold:l,padToMaxOutputSize:u}=r;dt(i,"NonMaxSuppressionPadded");let{selectedIndices:c,validOutputs:p}=bj(n.data.get(i.dataId).values,n.data.get(a.dataId).values,o,s,l,u);return[n.makeTensorInfo([c.length],"int32",new Int32Array(c)),n.makeTensorInfo([],"int32",new Int32Array([p]))]}},b_=ep.Yf.nonMaxSuppressionV5Impl,bE={kernelName:ep.pc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{boxes:i,scores:a}=t,{maxOutputSize:o,iouThreshold:s,scoreThreshold:l,softNmsSigma:u}=r;dt(i,"NonMaxSuppressionWithScore");let c=n.data.get(i.dataId).values,{selectedIndices:p,selectedScores:d}=b_(c,n.data.get(a.dataId).values,o,s,l,u);return[n.makeTensorInfo([p.length],"int32",new Int32Array(p)),n.makeTensorInfo([d.length],"float32",new Float32Array(d))]}},bR={kernelName:ep.sc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{indices:i}=t,{dtype:a,depth:o,onValue:s,offValue:l}=r;dt(i,"oneHot");let u=ep.Si.sizeFromShape(i.shape),c=new Float32Array(u*o);c.fill(l);let p=n.data.get(i.dataId).values;for(let e=0;e<u;++e)p[e]>=0&&p[e]<o&&(c[e*o+p[e]]=s);return n.makeTensorInfo([...i.shape,o],a,c)}};function bD(e){let{inputs:t,backend:n}=e,{x:r}=t;if("string"===r.dtype)throw Error("zerosLike is not supported for string tensors");if("complex64"===r.dtype){let e=df({inputs:{input:r},backend:n}),t=bD({inputs:{x:e},backend:n}),i=h7({inputs:{input:r},backend:n}),a=bD({inputs:{x:i},backend:n}),o=dl({inputs:{real:t,imag:a},backend:n});return n.disposeIntermediateTensorInfo(e),n.disposeIntermediateTensorInfo(t),n.disposeIntermediateTensorInfo(i),n.disposeIntermediateTensorInfo(a),o}return gq({backend:n,attrs:{shape:r.shape,value:0,dtype:r.dtype}})}let bC={kernelName:ep.Pd,backendName:"cpu",kernelFunc:bD},bA={kernelName:ep.tc,backendName:"cpu",kernelFunc:function e(t){let{inputs:n,backend:r}=t,{x:i}=n;if("string"===i.dtype)throw Error("onesLike is not supported for string tensors");if("complex64"===i.dtype){let t=df({inputs:{input:i},backend:r}),n=e({inputs:{x:t},backend:r}),a=h7({inputs:{input:i},backend:r}),o=bD({inputs:{x:a},backend:r}),s=dl({inputs:{real:n,imag:o},backend:r});return r.disposeIntermediateTensorInfo(t),r.disposeIntermediateTensorInfo(n),r.disposeIntermediateTensorInfo(a),r.disposeIntermediateTensorInfo(o),s}return gq({backend:r,attrs:{shape:i.shape,value:1,dtype:i.dtype}})}};function bM(e){let{inputs:t,backend:n,attrs:r}=e,{axis:i}=r;if(1===t.length)return gP({inputs:{input:t[0]},backend:n,attrs:{dim:i}});let a=t[0].shape,o=t[0].dtype;t.forEach(e=>{ep.Si.assertShapesMatch(a,e.shape,"All tensors passed to stack must have matching shapes"),ep.Si.assert(o===e.dtype,()=>"All tensors passed to stack must have matching dtypes")});let s=[],l=ge({inputs:t.map(e=>{let t=gP({inputs:{input:e},backend:n,attrs:{dim:i}});return s.push(t),t}),backend:n,attrs:{axis:i}});
26return s.forEach(e=>n.disposeIntermediateTensorInfo(e)),l}let b$={kernelName:ep.wc,backendName:"cpu",kernelFunc:bM},bU={kernelName:ep.xc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{paddings:a,constantValue:o}=r;dt(i,"pad");let s=a.map((e,t)=>e[0]+i.shape[t]+e[1]),l=a.map(e=>e[0]),u=n.data.get(i.dataId).values,c=ep.Si.sizeFromShape(i.shape),p=i.shape.length,d=ep.Si.computeStrides(i.shape),f=ep.Si.sizeFromShape(s),h=s.length,g=ep.Si.computeStrides(s),b=ep.Si.getTypedArrayFromDType(i.dtype,f);0!==o&&b.fill(o);for(let e=0;e<c;e++){let t=ep.Si.indexToLoc(e,p,d).map((e,t)=>e+l[t]);b[ep.Si.locToIndex(t,h,g)]=u[e]}return{dataId:n.write(b,s,i.dtype),shape:s,dtype:i.dtype}}},bP=ds((e,t)=>Math.pow(e,t)),bB=dy(ep.zc,bP),bL={kernelName:ep.zc,backendName:"cpu",kernelFunc:bB},bW={kernelName:ep.Dc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{paramsNestedSplits:i,paramsDenseValues:a,indices:o}=t,{outputRaggedRank:s}=r,l=i.map(e=>n.data.get(e.dataId).values),u=i.map(e=>e.shape),c=n.data.get(a.dataId).values,p=n.data.get(o.dataId).values,[d,f,h]=fF(l,u,c,a.shape,a.dtype,p,o.shape),g=d.map(e=>n.makeTensorInfo([e.length],"int32",e)),b=n.makeTensorInfo(h,a.dtype,f);return g.concat([b])}},bz={kernelName:ep.Ec,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{starts:r,limits:i,deltas:a}=t,o=n.data.get(r.dataId).values,s=n.data.get(i.dataId).values,l=n.data.get(a.dataId).values,[u,c]=f_(o,r.shape,r.dtype,s,i.shape,l,a.shape);return[n.makeTensorInfo([u.length],"int32",u),n.makeTensorInfo([c.length],r.dtype,c)]}},bG={kernelName:ep.Fc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{shape:i,values:a,defaultValue:o,rowPartitionTensors:s}=t,{rowPartitionTypes:l}=r,u=n.data.get(i.dataId).values,c=n.data.get(a.dataId).values,p=n.data.get(o.dataId).values,d=s.map(e=>n.data.get(e.dataId).values),f=s.map(e=>e.shape),[h,g]=fA(u,i.shape,c,a.shape,a.dtype,p,o.shape,d,f,l);return n.makeTensorInfo(h,a.dtype,g)}},bV={kernelName:ep.Gc,backendName:"cpu",kernelFunc:function(e){let{backend:t,attrs:n}=e,{start:r,stop:i,dtype:a,step:o}=n,s=fM(r,i,o,a);return t.makeTensorInfo([s.length],a,s)}},bH=d_(ep.Kc,e=>1/e),bq={kernelName:ep.Kc,backendName:"cpu",kernelFunc:bH},bK={kernelName:ep.Pc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{images:i}=t,{alignCorners:a,halfPixelCenters:o,size:s}=r;dt(i,"resizeBilinear");let l=ep.Si.computeStrides(i.shape),[u,c]=s,[p,d,f,h]=i.shape,g=n.data.get(i.dataId).values,b=new Float32Array(ep.Si.sizeFromShape([p,u,c,h])),m=[a&&u>1?d-1:d,a&&c>1?f-1:f],y=[a&&u>1?u-1:u,a&&c>1?c-1:c],S=0,v=m[0]/y[0],O=m[1]/y[1];for(let e=0;e<p;e++)for(let t=0;t<u;t++){let n,r=Math.max(0,Math.floor(n=o?v*(t+.5)-.5:v*t)),i=n-r,a=Math.min(d-1,Math.ceil(n)),s=e*l[0]+r*l[1],u=e*l[0]+a*l[1];for(let e=0;e<c;e++){let t,n=Math.max(0,Math.floor(t=o?O*(e+.5)-.5:O*e)),r=t-n,a=Math.min(f-1,Math.ceil(t)),c=s+n*l[2],p=u+n*l[2],d=s+a*l[2],m=u+a*l[2];for(let e=0;e<h;e++){let t=g[c+e],n=g[p+e],a=t+(g[d+e]-t)*r,o=a+(n+(g[m+e]-n)*r-a)*i;b[S++]=o}}}return n.makeTensorInfo([p,u,c,h],"float32",b)}},bX={kernelName:ep.Qc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{images:i,dy:a}=t,{alignCorners:o}=r;dt([a,i],"resizeBilinearGrad");let s=ep.Si.computeStrides(i.shape),[l,u,c,p]=i.shape,[,d,f]=a.shape,h=new Float32Array(l*u*c*p),g=[o&&d>1?u-1:u,o&&f>1?c-1:c],b=[o&&d>1?d-1:d,o&&f>1?f-1:f],m=g[0]/b[0],y=g[1]/b[1],S=n.data.get(a.dataId).values,v=0;for(let e=0;e<l;e++){let t=e*s[0];for(let e=0;e<d;e++){let n=e*m,r=Math.floor(n),i=Math.min(Math.ceil(n),u-1),a=t+r*s[1],o=t+i*s[1],l=n-r,d=1-l;for(let e=0;e<f;e++){let t=e*y,n=Math.floor(t),r=Math.min(Math.ceil(t),c-1),i=t-n,u=1-i,f=a+n*s[2],g=a+r*s[2],b=o+n*s[2],m=o+r*s[2],O=d*u,x=d*i,I=l*u,N=l*i;for(let e=0;e<p;e++){let t=S[v++];h[f+e]+=t*O,h[g+e]+=t*x,h[b+e]+=t*I,h[m+e]+=t*N}}}}return n.makeTensorInfo([l,c,u,p],"float32",h)}},bY={kernelName:ep.Rc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{images:i}=t,{alignCorners:a,halfPixelCenters:o,size:s}=r;dt(i,"resizeNearestNeighbor");let l=ep.Si.computeStrides(i.shape),[u,c]=s,[p,d,f,h]=i.shape,g=n.data.get(i.dataId).values,b=new Float32Array(p*u*c*h),m=[a&&u>1?d-1:d,a&&c>1?f-1:f],y=[a&&u>1?u-1:u,a&&c>1?c-1:c],S=m[0]/y[0],v=m[1]/y[1],O=0;for(let e=0;e<p;e++){let t=e*l[0];for(let e=0;e<u;e++){let n=o?S*(e+.5):S*e,r=Math.min(d-1,a?Math.round(n):Math.floor(n));o&&(r=Math.max(0,r));let i=t+r*l[1];for(let e=0;e<c;
26e++){let t=o?v*(e+.5):v*e,n=Math.min(f-1,a?Math.round(t):Math.floor(t));o&&(n=Math.max(0,n));let r=i+n*l[2];for(let e=0;e<h;e++){let t=g[r+e];b[O++]=t}}}}return n.makeTensorInfo([p,u,c,h],i.dtype,b)}},bQ={kernelName:ep.Sc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{images:i,dy:a}=t,{alignCorners:o}=r;dt([a,i],"resizeNearestNeighborGrad");let s=ep.Si.computeStrides(i.shape),l=ep.Si.computeStrides(a.shape),[u,c,p,d]=i.shape,[,f,h]=a.shape,g=new Float32Array(u*c*p*d),b=n.data.get(a.dataId).values,m=[o&&f>1?c-1:c,o&&h>1?p-1:p],y=[o&&f>1?f-1:f,o&&h>1?h-1:h],S=m[0]/y[0],v=m[1]/y[1],O=1/S,x=1/v,I=2*Math.ceil(O)+2,N=2*Math.ceil(x)+2;for(let e=0;e<u;e++){let t=e*s[0];for(let e=0;e<c;e++){let n=t+e*s[1],r=Math.floor(Math.floor(e*O)-I/2);for(let i=0;i<p;i++){let a=n+i*s[2],u=Math.floor(Math.floor(i*x)-N/2);for(let n=0;n<d;n++){let s=0;for(let a=0;a<I;a++){let d=a+r;if(d<0||d>=f)continue;let g=t+d*l[1],m=d*S;if(e===Math.min(c-1,o?Math.round(m):Math.floor(m)))for(let e=0;e<N;e++){let t=e+u;if(t<0||t>=h)continue;let r=g+t*l[2],a=t*v;i===Math.min(p-1,o?Math.round(a):Math.floor(a))&&(s+=b[r+n])}}g[a+n]=s}}}}return n.makeTensorInfo(i.shape,i.dtype,g)}},bJ={kernelName:ep.Tc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{dims:a}=r;dt(i,"reverse");let o=i.shape.length,s=ep.Si.parseAxisParam(a,i.shape);if(0===o)return dp({inputs:{x:i},backend:n});let l=new ep.Ed(i.shape,i.dtype),u=n.bufferSync(i);for(let e=0;e<l.size;e++){let t=l.indexToLoc(e),n=t.slice();s.forEach(e=>n[e]=i.shape[e]-1-n[e]),l.set(u.get(...n),...t)}return n.makeTensorInfo(l.shape,l.dtype,l.values)}},bZ={kernelName:ep.Uc,backendName:"cpu",kernelFunc:({inputs:e,attrs:t,backend:n})=>{let{image:r}=e,{radians:i,fillValue:a,center:o}=t,s=n,l=ep.Si.getTypedArrayFromDType(r.dtype,ep.Si.sizeFromShape(r.shape)),[u,c,p,d]=r.shape,[f,h]=ep.ie.getImageCenter(o,c,p),g=Math.sin(i),b=Math.cos(i),m=s.data.get(r.dataId).values;for(let e=0;e<u;e++){let t=e*p*c*d;for(let e=0;e<c;e++){let n=p*d*e;for(let r=0;r<p;r++){let i=r*d;for(let o=0;o<d;o++){let s=[u,e,r,o],y=s[2],S=s[1],v=(y-f)*b-(S-h)*g,O=(y-f)*g+(S-h)*b;v=Math.round(v+f),O=Math.round(O+h);let x=a;"number"!=typeof a&&(x=3===o?255:a[o]),v>=0&&v<p&&O>=0&&O<c&&(x=m[t+p*d*O+v*d+o]),l[t+n+i+o]=x}}}}return{dataId:s.write(l,r.shape,r.dtype),shape:r.shape,dtype:r.dtype}}},b0=d_(ep.Vc,e=>{let t=Math.floor(e);return e-t<.5?Math.floor(e):e-t>.5?Math.ceil(e):t%2==0?t:t+1}),b1={kernelName:ep.Vc,backendName:"cpu",kernelFunc:b0},b2={kernelName:ep.Yc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{indices:i,updates:a}=t,{shape:o}=r,{sliceRank:s,numUpdates:l,sliceSize:u,strides:c,outputSize:p}=ep.ie.calculateShapes(a,i,o),d=fB(n.bufferSync(i),n.bufferSync(a),o,p,u,l,s,c,0,!0);return n.makeTensorInfo(o,d.dtype,d.values)}};function b3(e,t){let n=0,r=e.length,i=0;for(;n<r;)e[i=Math.floor((n+r)/2)]<t?n=i+1:r=i;return r}function b4(e,t){let n=0,r=e.length,i=0;for(;n<r;)e[i=Math.floor((n+r)/2)]<=t?n=i+1:r=i;return r}let b6={kernelName:ep.Zc,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{sortedSequence:i,values:a}=t,{side:o}=r,s=function(e,t,n,r,i,a){let o=ep.Si.getArrayFromDType("int32",n*i);for(let s=0;s<n;++s){let n=e.slice(s*r,(s+1)*r),l=s*i;for(let e=0;e<i;++e)o[l+e]="left"===a?b3(n,t[e+l]):b4(n,t[e+l])}return o}(n.data.get(i.dataId).values,n.data.get(a.dataId).values,i.shape[0],i.shape[1],a.shape[1],o);return n.makeTensorInfo(a.shape,"int32",s)}},b5={kernelName:ep.ad,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{condition:r,t:i,e:a}=t;dt([r,i,a],"select");let o=r.shape.length,s=n.data.get(r.dataId).values,l=n.data.get(i.dataId).values,u=n.data.get(a.dataId).values,c=Object(ep.Qi)(i.dtype,a.dtype),p=ep.Si.makeZerosTypedArray(ep.Si.sizeFromShape(i.shape),c),d=0,f=0===o||o>1||1===i.shape.length?1:ep.Si.sizeFromShape(i.shape.slice(1));for(let e=0;e<s.length;e++)for(let t=0;t<f;t++)1===s[e]?p[d++]=l[e]:p[d++]=u[e];return n.makeTensorInfo(i.shape,c,p)}},b8=ep.ie.SELU_SCALEALPHA,b7=ep.ie.SELU_SCALE,b9=d_(ep.bd,e=>e>=0?b7*e:b8*(Math.exp(e)-1)),me={kernelName:ep.bd,backendName:"cpu",kernelFunc:b9},mt=d_(ep.dd,e=>e<0?-1:+(e>0)),mn={kernelName:ep.dd,backendName:"cpu",kernelFunc:mt},mr=d_(ep.ed,e=>Math.sin(e)),mi={kernelName:ep.ed,backendName:"cpu",kernelFunc:mr},ma=d_(ep.fd,e=>Math.sinh(e)),mo={kernelName:ep.fd,backendName:"cpu",kernelFunc:ma},ms=Math.log(11920928955078125e-23)+2,ml=d_(ep.id,e=>{let t=e>-ms,n=e<ms,r=Math.exp(e);return n?r:t?e:Math.log(1+r)}
26),mu={kernelName:ep.id,backendName:"cpu",kernelFunc:ml},mc={kernelName:ep.jd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{blockShape:a,paddings:o}=r;dt([i],"spaceToBatchND");let s=ep.Si.sizeFromShape(a),l=[[0,0]];l.push(...o);for(let e=1+a.length;e<i.shape.length;++e)l.push([0,0]);let u=bU.kernelFunc({inputs:{x:i},backend:n,attrs:{paddings:l,constantValue:0}}),c=ep.ie.getReshaped(u.shape,a,s,!1),p=ep.ie.getPermuted(c.length,a.length,!1),d=ep.ie.getReshapedPermuted(u.shape,a,s,!1),f=hI({inputs:{x:u},backend:n,attrs:{shape:c}}),h=fx({inputs:{x:f},backend:n,attrs:{perm:p}}),g=hI({inputs:{x:h},backend:n,attrs:{shape:d}});return n.disposeIntermediateTensorInfo(u),n.disposeIntermediateTensorInfo(f),n.disposeIntermediateTensorInfo(h),g}},mp={kernelName:ep.kd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{indices:r,values:i,denseShape:a,defaultValue:o}=t;if(1!==a.shape.length)throw Error("Dense shape must be a vector, saw:\n "+a.shape);if(2!==r.shape.length)throw Error("Indices must be a matrix, saw:\n "+r.shape);if(1!==i.shape.length)throw Error("Values must be a vector, saw:\n "+i.shape);if(0!==o.shape.length)throw Error("Default value must be a scalar, saw:\n "+o.shape);let s=n.data.get(r.dataId).values,l=n.data.get(i.dataId).values,u=n.data.get(a.dataId).values,c=n.data.get(o.dataId).values[0],[p,d,f,h,g]=fq(s,r.shape,r.dtype,l,i.dtype,u,c);return[n.makeTensorInfo(d,r.dtype,p),n.makeTensorInfo([d[0]],i.dtype,f),n.makeTensorInfo([h.length],"bool",new Uint8Array(h.map(e=>Number(e)))),n.makeTensorInfo([g.length],r.dtype,new Int32Array(g))]}},md={kernelName:ep.ld,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{inputIndices:r,inputShape:i,newShape:a}=t;if(2!==r.shape.length)throw Error("Input indices should be a matrix but received shape\n "+r.shape);if(1!==i.shape.length)throw Error("Input shape should be a vector but received shape\n "+i.shape);if(1!==a.shape.length)throw Error("Target shape should be a vector but received shape "+a.shape);let o=Array.from(n.data.get(i.dataId).values),s=n.data.get(r.dataId).values,l=Array.from(n.data.get(a.dataId).values),[u,c,p]=fK(s,r.shape,r.dtype,o,l);return[n.makeTensorInfo(c,r.dtype,u),n.makeTensorInfo([p.length],a.dtype,new Int32Array(p))]}},mf={kernelName:ep.md,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{data:r,indices:i,segmentIds:a}=t;if(r.shape.length<1)throw Error("Data should be at least 1 dimensional but received scalar");if(1!==i.shape.length)throw Error("Indices should be a vector but received shape\n "+i.shape);if(1!==a.shape.length)throw Error("Segment ids should be a vector but received shape\n "+a.shape);if(i.shape[0]!==a.shape[0])throw Error("segmentIds and indices should have same size.");let o=n.data.get(r.dataId).values,s=n.data.get(i.dataId).values,l=n.data.get(a.dataId).values,[u,c]=fX(o,r.shape,r.dtype,s,l,!0);return n.makeTensorInfo(c,r.dtype,u)}},mh={kernelName:ep.nd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{data:r,indices:i,segmentIds:a}=t;if(r.shape.length<1)throw Error("Data should be at least 1 dimensional but received scalar");if(1!==i.shape.length)throw Error("Indices should be a vector but received shape\n "+i.shape);if(1!==a.shape.length)throw Error("Segment ids should be a vector but received shape\n "+a.shape);if(i.shape[0]!==a.shape[0])throw Error("segmentIds and indices should have same size.");let o=n.data.get(r.dataId).values,s=n.data.get(i.dataId).values,l=n.data.get(a.dataId).values,[u,c]=fX(o,r.shape,r.dtype,s,l);return n.makeTensorInfo(c,r.dtype,u)}},mg={kernelName:ep.od,backendName:"cpu",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{sparseIndices:a,sparseValues:o,defaultValue:s}=n,{outputShape:l}=i,{sliceRank:u,numUpdates:c,sliceSize:p,strides:d,outputSize:f}=ep.ie.calculateShapes(o,a,l),h=r.bufferSync(a);switch(o.dtype){case"bool":t=fB(h,r.bufferSync(o),l,f,p,c,u,d,!!r.data.get(s.dataId).values[0],!1);break;case"float32":case"int32":t=fB(h,r.bufferSync(o),l,f,p,c,u,d,r.data.get(s.dataId).values[0],!1);break;case"string":t=fB(h,r.bufferSync(o),l,f,p,c,u,d,ep.Si.decodeString(r.data.get(s.dataId).values[0]),!1);break;default:throw Error("Unsupported type "+o.dtype)}return r.makeTensorInfo(l,t.dtype,t.values)}},mb={kernelName:ep.pd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{numOrSizeSplits:a,axis:o}=r,s=ep.Si.parseAxisParam(o,i.shape)[0],l=ep.ie.prepareSplitSize(i,a,s),u=Array(i.shape.length).fill(0),c=i.shape.slice();return l.map(e=>{let t=[...c];t[s]=e;let r=fV({inputs:{x:i},backend:n,attrs:{begin:u,size:t}});return u[s]+=e,r})}}
26,mm={kernelName:ep.rd,backendName:"cpu",kernelFunc:({inputs:e,backend:t})=>{let{x:n}=e,r=t;dt(n,"square");let i=r.data.get(n.dataId).values,a=new Float32Array(i.length);for(let e=0;e<i.length;++e){let t=i[e];a[e]=t*t}return{dataId:r.write(a,n.shape,n.dtype),shape:n.shape,dtype:n.dtype}}},my=d_(ep.ud,(e,t)=>{let n=t;return isNaN(e)?NaN:e>0?1:n.alpha}),mS={kernelName:ep.ud,backendName:"cpu",kernelFunc:my},mv={kernelName:ep.vd,backendName:"cpu",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n,{begin:o,end:s,strides:l,beginMask:u,endMask:c,ellipsisMask:p,newAxisMask:d,shrinkAxisMask:f}=i;dt(a,"stridedSlice");let{finalShapeSparse:h,finalShape:g,isIdentity:b,sliceDim0:m,isSimpleSlice:y,begin:S,end:v,strides:O}=ep.Zh.sliceInfo(a.shape,o,s,l,u,c,p,d,f);if(b)t=hI({inputs:{x:a},backend:r,attrs:{shape:g}});else if(m||y){ep.Si.assert(a.shape.length>=1,()=>"Input must have rank at least 1, got: "+a.shape.length);let e=ep.Zh.computeOutShape(S,v,O),n=fV({inputs:{x:a},backend:r,attrs:{begin:S,size:e}});t=hI({inputs:{x:n},backend:r,attrs:{shape:g}}),r.disposeIntermediateTensorInfo(n)}else{let e=f6(h,r.bufferSync(a),O,S);t=r.makeTensorInfo(g,e.dtype,e.values)}return t}},mO={kernelName:ep.wd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{separator:i,nGramWidths:a,leftPad:o,rightPad:s,padWidth:l,preserveShortSequences:u}=r,{data:c,dataSplits:p}=t,[d,f]=f8(n.data.get(c.dataId).values,n.data.get(p.dataId).values,i,a,o,s,l,u);return[n.makeTensorInfo([d.length],"string",d),n.makeTensorInfo(p.shape,"int32",f)]}},mx={kernelName:ep.xd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{skipEmpty:i}=r,{input:a,delimiter:o}=t;if("string"!==a.dtype)throw Error("Input must be of datatype string");if(1!==a.shape.length)throw Error("Input must be a vector, got shape: "+a.shape);if(0!==o.shape.length)throw Error("Delimiter must be a scalar, got shape: "+o.shape);let[s,l,u]=f9(n.data.get(a.dataId).values,n.data.get(o.dataId).values[0],i),c=l.length;return[n.makeTensorInfo([c,2],"int32",s),n.makeTensorInfo([c],"string",l),n.makeTensorInfo([2],"int32",new Int32Array(u))]}},mI={kernelName:ep.yd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{numBuckets:i}=r,{input:a}=t;if("string"!==a.dtype)throw Error("Input must be of datatype string");if(i<=0)throw Error("Number of buckets must be at least 1");let o=he(n.data.get(a.dataId).values,i);return n.makeTensorInfo(a.shape,"int32",o)}},mN=d_(ep.Bd,e=>Math.tan(e)),mk={kernelName:ep.Bd,backendName:"cpu",kernelFunc:mN},mT=d_(ep.Cd,e=>Math.tanh(e)),mw={kernelName:ep.Cd,backendName:"cpu",kernelFunc:mT},mj={kernelName:ep.Fd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n}=e,{tensor:r,indices:i,updates:a}=t,{sliceRank:o,numUpdates:s,sliceSize:l,strides:u,outputSize:c}=ep.ie.calculateShapes(a,i,r.shape),p=n.bufferSync(i),d=n.bufferSync(a),f=n.bufferSync(r),h=fB(p,d,r.shape,c,l,s,o,u,f,!1);return n.makeTensorInfo(r.shape,h.dtype,h.values)}},mF={kernelName:ep.Gd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{reps:a}=r;dt(i,"tile");let o=ha(n.bufferSync(i),a);return n.makeTensorInfo(o.shape,o.dtype,o.values)}},m_={kernelName:ep.Hd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{k:a,sorted:o}=r;dt(i,"topk");let[s,l]=hl(n.data.get(i.dataId).values,i.shape,i.dtype,a,o);return[n.makeTensorInfo(s.shape,s.dtype,s.values),n.makeTensorInfo(l.shape,l.dtype,l.values)]}},mE={kernelName:ep.Id,backendName:"cpu",kernelFunc:function(e){let{inputs:t,attrs:n,backend:r}=e,{image:i,transforms:a}=t,{interpolation:o,fillMode:s,fillValue:l,outputShape:u}=n,[c,p,d,f]=i.shape,[h,g]=null!=u?u:[p,d],b=[c,h,g,f],m=ep.Si.computeStrides(i.shape),y=m[0],S=m[1],v=m[2],O=ep.Si.computeStrides(b),x=O[0],I=O[1],N=O[2],k=ep.Si.getTypedArrayFromDType(i.dtype,ep.Si.sizeFromShape(b));k.fill(l);let T=r.data.get(i.dataId).values,w=r.data.get(a.dataId).values;for(let e=0;e<c;++e){let t=1===a.shape[0]?w:w.subarray(8*e,8*e+8);for(let n=0;n<h;++n)for(let r=0;r<g;++r)for(let i=0;i<f;++i){let a,u=t[6]*r+t[7]*n+1;if(0===u)continue;let c=(t[0]*r+t[1]*n+t[2])/u,f=(t[3]*r+t[4]*n+t[5])/u,h=mR(c,d,s),g=mR(f,p,s);switch(o){case"nearest":a=mC(T,p,d,y,S,v,e,g,h,i,l);break;case"bilinear":a=mA(T,p,d,y,S,v,e,g,h,i,l);break;default:throw Error("Error in Transform: Expect 'nearest' or 'bilinear', but got "+o)}k[e*x+n*I+r*N+i]=a}return r.makeTensorInfo(b,i.dtype,k)}return{dataId:r.write(k,b,i.dtype),shape:i.shape,dtype:i.dtype}}};function mR(e,t,n){switch(n){case"reflect":return function(e,t){let n=e;if(n<0)if(t<=1)n=0;else{let e=2*t;n<e&&(n=e*Math.trunc(-n/e)+n),n=n<-t?n+e:-n-1}else if(n>t-1)if(t<=1)n=0;else{let e=2*t;(n-=e*Math.trunc(n/e))>=t&&(n=e-n-1)}return ep.Si.clamp(0,n,t-1)}(e,t);case"wrap":return function(e,t){let n=e;if(n<0)if(t<=1)n=0;else{let e=t-1;n+=t*(Math.trunc(-n/e)+1)}else if(n>t-1)if(t<=1)n=0;else{let e=t-1;n-=t*Math.trunc(n/e)}return ep.Si.clamp(0,n,t-1)}(e,t);case"nearest":return function(e,t){return ep.Si.clamp(0,e,t-1)}(e,t);default:return e}}function mD(e,t,n,r,i,a,o,s,l,u,c){return 0<=s&&s<t&&0<=l&&l<n?e[o*r+s*i+l*a+u]:c}function mC(e,t,n,r,i,a,o,s,l,u,c){return mD(e,t,n,r,i,a,o,Math.round(s),Math.round(l),u,c)}function mA(e,t,n,r,i,a,o,s,l,u,c){let p=Math.floor(s),d=Math.floor(l),f=p+1,h=d+1;return(f-s)*((h-l)*mD(e,t,n,r,i,a,o,p,d,u,c)+(l-d)*mD(e,t,n,r,i,a,o,p,h,u,c))+(s-p)*((h-l)*mD(e,t,n,r,i,a,o,f,d,u,c)+(l-d)*mD(e,t,n,r,i,a,o,f,h,u,c))}let mM={kernelName:ep.Kd,backendName:"cpu",kernelFunc:function(e){let{inputs:t,attrs:n,backend:r}=e,{axis:i}=n,{x:a}=t;dt(a,"unique");let{outputValues:o,outputShape:s,indices:l}=hu(r.data.get(a.dataId).values,i,a.shape,a.dtype);return[r.makeTensorInfo(s,a.dtype,o),r.makeTensorInfo([l.length],"int32",l)]}};for(let e of[hw,da,hF,hE,dI,hR,hD,hC,hA,hM,hU,hB,hW,hV,hq,hQ,hJ,hZ,h0,hT,h1,h2,h3,dj,h4,dm,dC,h5,du,h8,gt,gr,gi,ga,go,gs,gl,gc,gd,gf,gh,gg,gb,gm,gS,gv,gO,gx,gI,gN,gk,gT,gF,hd,g_,dU,gU,dL,gB,dG,gH,gK,gX,dq,dY,gY,gQ,gJ,gZ,d1,d4,dd,g0,h9,g2,g4,g5,hh,d8,fe,g8,fi,g9,bn,bi,bs,bl,bu,bp,fl,bd,bf,bh,bg,bb,bm,by,fp,bS,bx,bk,fg,fm,bw,bF,bE,fv,bR,bA,b$,bU,bL,hm,fk,bW,bz,bG,bV,dh,gz,bq,hS,hO,hN,bK,bX,bY,bQ,bJ,bZ,b1,fP,b2,b6,b5,me,fz,mn,mi,mo,fH,bN,mu,mc,mp,md,mf,mh,mg,mb,fJ,mm,f1,f4,mS,mv,mO,mx,mI,hi,gj,mk,mw,mj,mF,m_,mE,fI,mM,{kernelName:ep.Ld,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{value:i}=t,{axis:a}=r;a<0&&(a+=i.shape.length);let o=i.shape.length,s=i.shape[a],l=Array(o-1),u=0;for(let e=0;e<o;e++)e!==a&&(l[u++]=i.shape[e]);let c=Array(o).fill(0),p=i.shape.slice();p[a]=1;let d=Array(s);for(let e=0;e<d.length;e++){c[a]=e;let t=fV({inputs:{x:i},backend:n,attrs:{begin:c,size:p}});d[e]=hI({inputs:{x:t},backend:n,attrs:{shape:l}}),n.disposeIntermediateTensorInfo(t)}return d}},{kernelName:ep.Md,backendName:"cpu",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,segmentIds:a}=t,{numSegments:o}=r;dt(i,"unsortedSegmentSum");let s=[],l=[],u=i.shape.length-a.shape.length,c=a;for(let e=0;e<u;++e){let t=gP({inputs:{input:c},backend:n,attrs:{dim:e+1}});c=t,l.push(t)}for(let e=0;e<o;++e){let t=ep.Si.createScalarValue(e,"int32"),r=n.makeTensorInfo([],"int32",t),a=d$({inputs:{a:r,b:c},backend:n}),o=db({inputs:{x:a},backend:n,attrs:{dtype:"float32"}}
26),u=fh({inputs:{a:o,b:i},backend:n}),p=gw({inputs:{x:u},backend:n,attrs:{axis:0,keepDims:!1}});s.push(p),l.push(r),l.push(a),l.push(o),l.push(u),l.push(p)}let p=bM({inputs:s,backend:n,attrs:{axis:0}});return l.forEach(e=>n.disposeIntermediateTensorInfo(e)),p}},bC])Object(ep.sh)(e);let m$={},mU={alpha:!1,antialias:!1,premultipliedAlpha:!1,preserveDrawingBuffer:!1,depth:!1,stencil:!1,failIfMajorPerformanceCaveat:!0};function mP(e,t){m$[e]=t}function mB(e,t){if(!(e in m$)||null!=t){let n=function(e,t){if(1!==e&&2!==e)throw Error("Cannot get WebGL rendering context, WebGL is disabled.");let n=null==t?function(e){if(Object(ep.of)().getBool("IS_SAFARI")||"undefined"==typeof OffscreenCanvas||2!==e){if("undefined"!=typeof document)return document.createElement("canvas");throw Error("Cannot create a canvas in this context")}return new OffscreenCanvas(300,150)}(e):t;return(n.addEventListener("webglcontextlost",t=>{t.preventDefault(),delete m$[e]},!1),Object(ep.of)().getBool("SOFTWARE_WEBGL_ENABLED")&&(mU.failIfMajorPerformanceCaveat=!1),1===e)?n.getContext("webgl",mU)||n.getContext("experimental-webgl",mU):n.getContext("webgl2",mU)}(e,t);if(null===n)return console.log("Could not get context for WebGL version",e),null;m$[e]=n}let n=m$[e];return null==n||n.isContextLost()?(delete m$[e],mB(e)):(n.disable(n.DEPTH_TEST),n.disable(n.STENCIL_TEST),n.disable(n.BLEND),n.disable(n.DITHER),n.disable(n.POLYGON_OFFSET_FILL),n.disable(n.SAMPLE_COVERAGE),n.enable(n.SCISSOR_TEST),n.enable(n.CULL_FACE),n.cullFace(n.BACK),m$[e])}function mL(e,t){return[t,e]}function mW(e){let t=Math.ceil(ep.Si.sizeFromShape(e)/4);return ep.Si.sizeToSquarishShape(t)}function mz(e,t){return[Math.max(1,Math.ceil(t/2)),Math.max(1,Math.ceil(e/2))]}function mG(e,t){let n,r,i,a,o,s,l,u,c,p,d=e;return 2===Object(ep.of)().getNumber("WEBGL_VERSION")?(n=d.R32F,r=d.R16F,i=d.RGBA16F,a=d.RGBA32F,o=d.RED,l=4,u=1,c=d.HALF_FLOAT,p=d.FLOAT,s=d.RGBA8):(n=e.RGBA,r=e.RGBA,i=e.RGBA,a=d.RGBA,o=e.RGBA,l=4,u=4,c=null!=t?t.HALF_FLOAT_OES:null,p=e.FLOAT,s=e.RGBA),{internalFormatFloat:n,internalFormatHalfFloat:r,internalFormatPackedHalfFloat:i,internalFormatPackedFloat:a,textureFormatFloat:o,downloadTextureFormat:s,downloadUnpackNumChannels:l,defaultNumChannels:u,textureTypeHalfFloat:c,textureTypeFloat:p}}function mV(e,t){let n=t();return Object(ep.of)().getBool("DEBUG")&&function(e){let t=e.getError();if(t!==e.NO_ERROR)throw Error("WebGL Error: "+mq(e,t))}(e),n}function mH(e){return!!(Object(ep.of)().getBool("WEBGL_RENDER_FLOAT32_ENABLED")||0===e||596e-10<Math.abs(e)&&65504>Math.abs(e))}function mq(e,t){switch(t){case e.NO_ERROR:return"NO_ERROR";case e.INVALID_ENUM:return"INVALID_ENUM";case e.INVALID_VALUE:return"INVALID_VALUE";case e.INVALID_OPERATION:return"INVALID_OPERATION";case e.INVALID_FRAMEBUFFER_OPERATION:return"INVALID_FRAMEBUFFER_OPERATION";case e.OUT_OF_MEMORY:return"OUT_OF_MEMORY";case e.CONTEXT_LOST_WEBGL:return"CONTEXT_LOST_WEBGL";default:return"Unknown error code "+t}}function mK(e,t){return yu(e,()=>e.getExtension(t),'Extension "'+t+'" not supported on this browser.')}function mX(e,t){let n=yu(e,()=>e.createShader(e.VERTEX_SHADER),"Unable to create vertex WebGLShader.");if(mV(e,()=>e.shaderSource(n,t)),mV(e,()=>e.compileShader(n)),!1===e.getShaderParameter(n,e.COMPILE_STATUS))throw console.log(e.getShaderInfoLog(n)),Error("Failed to compile vertex shader.");return n}function mY(e,t){let n=yu(e,()=>e.createShader(e.FRAGMENT_SHADER),"Unable to create fragment WebGLShader.");if(mV(e,()=>e.shaderSource(n,t)),mV(e,()=>e.compileShader(n)),Object(ep.of)().get("ENGINE_COMPILE_ONLY"))return n;if(!1===e.getShaderParameter(n,e.COMPILE_STATUS))throw mJ(t,e.getShaderInfoLog(n)),Error("Failed to compile fragment shader.");return n}!function(e){e[e.DENSE=0]="DENSE",e[e.SHARED_BATCH=1]="SHARED_BATCH"}(s||(s={})),function(e){e[e.RENDER=0]="RENDER",e[e.UPLOAD=1]="UPLOAD",e[e.PIXELS=2]="PIXELS",e[e.DOWNLOAD=3]="DOWNLOAD"}(l||(l={})),function(e){e[e.UNPACKED_FLOAT16=0]="UNPACKED_FLOAT16",e[e.UNPACKED_FLOAT32=1]="UNPACKED_FLOAT32",e[e.PACKED_4X1_UNSIGNED_BYTE=2]="PACKED_4X1_UNSIGNED_BYTE",e[e.PACKED_2X2_FLOAT32=3]="PACKED_2X2_FLOAT32",e[e.PACKED_2X2_FLOAT16=4]="PACKED_2X2_FLOAT16"}(u||(u={}));let mQ=/ERROR: [0-9]+:([0-9]+):/g;function mJ(e,t){let n=mQ.exec(t);if(null==n)return console.log("Couldn't parse line number in error: "+t),void console.log(e);let r=+n[1],i=e.split("\n"),a=i.length.toString().length+2,o=i.map((e,t)=>ep.Si.rightPad((t+1).toString(),a)+e),s=0;for(let e=0;e<o.length;e++)s=Math.max(o[e].length,s);let l=o.slice(0,r-1),u=o.slice(r-1,r),c=o.slice(r);console.log(l.join("\n")),console.log(t.split("\n")[0]),console.log("%c "+ep.Si.rightPad(u[0],s),"border:1px solid red; background-color:#e3d2d2; color:#a61717"),console.log(c.join("\n"))}function mZ(e){return yu(e,()=>e.createProgram(),"Unable to create WebGLProgram.")}function m0(e,t){if(mV(e,()=>e.linkProgram(t)),!Object(ep.of)().get("ENGINE_COMPILE_ONLY")&&!1===e.getProgramParameter(t,e.LINK_STATUS))throw console.log(e.getProgramInfoLog(t)),Error("Failed to link vertex and fragment shaders.")}function m1(e,t){if(mV(e,()=>e.validateProgram(t)),!1===e.getProgramParameter(t,e.VALIDATE_STATUS))throw console.log(e.getProgramInfoLog(t)),Error("Shader program validation failed.")}function m2(e,t){let n=yu(e,()=>e.createBuffer(),"Unable to create WebGLBuffer");
26return mV(e,()=>e.bindBuffer(e.ARRAY_BUFFER,n)),mV(e,()=>e.bufferData(e.ARRAY_BUFFER,t,e.STATIC_DRAW)),n}function m3(e,t){let n=yu(e,()=>e.createBuffer(),"Unable to create WebGLBuffer");return mV(e,()=>e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,n)),mV(e,()=>e.bufferData(e.ELEMENT_ARRAY_BUFFER,t,e.STATIC_DRAW)),n}function m4(){return 2===Object(ep.of)().getNumber("WEBGL_VERSION")?1:4}function m6(e){return yu(e,()=>e.createTexture(),"Unable to create WebGLTexture.")}function m5(e,t){let n=Object(ep.of)().getNumber("WEBGL_MAX_TEXTURE_SIZE");if(e<=0||t<=0)throw Error(`Requested texture size [${e}x${t}] is invalid.`);if(e>n||t>n)throw Error(`Requested texture size [${e}x${t}] greater than WebGL maximum on this browser / GPU [${n}x${n}].`)}function m8(e){return yu(e,()=>e.createFramebuffer(),"Unable to create WebGLFramebuffer.")}function m7(e,t,n,r,i,a,o){let s=e.getAttribLocation(t,n);return -1!==s&&(mV(e,()=>e.bindBuffer(e.ARRAY_BUFFER,r)),mV(e,()=>e.vertexAttribPointer(s,i,e.FLOAT,!1,a,o)),mV(e,()=>e.enableVertexAttribArray(s)),!0)}function m9(e,t,n){yc(e,n),mV(e,()=>e.activeTexture(e.TEXTURE0+n)),mV(e,()=>e.bindTexture(e.TEXTURE_2D,t))}function ye(e,t){yc(e,t),mV(e,()=>e.activeTexture(e.TEXTURE0+t)),mV(e,()=>e.bindTexture(e.TEXTURE_2D,null))}function yt(e,t,n){return yu(e,()=>e.getUniformLocation(t,n),'uniform "'+n+'" not present in program.')}function yn(e,t,n){return e.getUniformLocation(t,n)}function yr(e,t,n,r){mV(e,()=>m9(e,t,r)),mV(e,()=>e.uniform1i(n,r))}function yi(e){mV(e,()=>e.bindFramebuffer(e.FRAMEBUFFER,null)),mV(e,()=>e.viewport(0,0,e.canvas.width,e.canvas.height)),mV(e,()=>e.scissor(0,0,e.canvas.width,e.canvas.height))}function ya(e,t,n){mV(e,()=>e.bindFramebuffer(e.FRAMEBUFFER,n)),mV(e,()=>e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0))}function yo(e,t){mV(e,()=>e.bindFramebuffer(e.FRAMEBUFFER,t)),mV(e,()=>e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,null,0))}function ys(e){let t=e.checkFramebufferStatus(e.FRAMEBUFFER);if(t!==e.FRAMEBUFFER_COMPLETE)throw Error("Error binding framebuffer: "+yl(e,t))}function yl(e,t){switch(t){case e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:return"FRAMEBUFFER_INCOMPLETE_ATTACHMENT";case e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:return"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";case e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:return"FRAMEBUFFER_INCOMPLETE_DIMENSIONS";case e.FRAMEBUFFER_UNSUPPORTED:return"FRAMEBUFFER_UNSUPPORTED";default:return"unknown error "+t}}function yu(e,t,n){let r=mV(e,()=>t());if(null==r)throw Error(n);return r}function yc(e,t){let n=e.MAX_COMBINED_TEXTURE_IMAGE_UNITS-1,r=t+e.TEXTURE0;if(r<e.TEXTURE0||r>n)throw Error(`textureUnit must be in [gl.TEXTURE0, gl.TEXTURE${n}].`)}function yp(e,t=2){return ep.Si.sizeFromShape(e.slice(0,e.length-t))}function yd(e){if(0===e.length)throw Error("Cannot get rows and columns of an empty shape array.");return[e.length>1?e[e.length-2]:1,e[e.length-1]]}function yf(e){let t=[1,1,1];return 0===e.length||1===e.length&&1===e[0]||(t=[yp(e),...yd(e)]),t}function yh(e,t=!1){let n=Object(ep.of)().getNumber("WEBGL_MAX_TEXTURE_SIZE"),r=Object(ep.of)().getNumber("WEBGL_MAX_SIZE_FOR_NARROW_TEXTURE");r===1/0&&Object(ep.of)().getBool("WEBGL_AUTO_SQUARIFY_NARROW_TEXTURE_SHAPE")&&(r=n/2),t&&(n*=2,r*=2,1===(e=e.map((t,n)=>n>=e.length-2?ep.Si.nearestLargerEven(e[n]):e[n])).length&&(e=[2,e[0]])),2!==e.length&&(e=ep.Si.squeezeShape(e).newShape);let i=ep.Si.sizeFromShape(e),a=null;e.length<=1&&i<=n?a=[1,i]:2===e.length&&e[0]<=n&&e[1]<=n?a=e:3===e.length&&e[0]*e[1]<=n&&e[2]<=n?a=[e[0]*e[1],e[2]]:3===e.length&&e[0]<=n&&e[1]*e[2]<=n?a=[e[0],e[1]*e[2]]:4===e.length&&e[0]*e[1]*e[2]<=n&&e[3]<=n?a=[e[0]*e[1]*e[2],e[3]]:4===e.length&&e[0]<=n&&e[1]*e[2]*e[3]<=n&&(a=[e[0],e[1]*e[2]*e[3]]);let o=null!=a&&Math.max(...a)>r&&Math.min(...a)<=(t?2:1)&&Math.min(...a)>0;if(null==a||o)if(t){let t=yp(e),n=2,r=2;e.length&&([n,r]=yd(e)),i=n/2*t*(r/2),a=ep.Si.sizeToSquarishShape(i).map(e=>2*e)}else a=ep.Si.sizeToSquarishShape(i);return a}function yg(e){return e%2==0}function yb(e,t){if(e=e.slice(-2),t=t.slice(-2),ep.Si.arraysEqual(e,t)||!e.length||!t.length||0===e[0]||0===e[1]||0===t[0]||0===t[1])return!0;
26if(e.length!==t.length){let n=e[e.length-1],r=t[t.length-1];if(n===r||yg(n)&&yg(r)&&(1===e[0]||1===t[0]))return!0}return e[1]===t[1]&&yg(e[0])&&yg(t[0])}function ym(e){if(null==i){let t=mB(e);i=t.getParameter(t.MAX_TEXTURE_SIZE)}return i}function yy(){i=null}function yS(){a=null}function yv(e){if(null==a){let t=mB(e);a=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS)}return Math.min(16,a)}function yO(e){if(0===e)return 0;let t=mB(e);return yx(t,"EXT_disjoint_timer_query_webgl2")&&2===e?2:+!!yx(t,"EXT_disjoint_timer_query")}function yx(e,t){return null!=e.getExtension(t)}function yI(e){try{if(null!=mB(e))return!0}catch(e){return console.log("Error when getting WebGL context: ",e),!1}return!1}function yN(e){if(0===e)return!1;let t=mB(e);if(1===e){if(!yx(t,"OES_texture_float"))return!1}else if(!yx(t,"EXT_color_buffer_float"))return!1;return yT(t)}function yk(e){if(0===e)return!1;let t=mB(e);if(1!==e){if(yx(t,"EXT_color_buffer_float"))return yT(t);let e="EXT_color_buffer_half_float";if(yx(t,e)){let n=t.getExtension(e);return function(e,t){let n=mG(e,t),r=e.createTexture();e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,n.internalFormatHalfFloat,1,1,0,n.textureFormatFloat,n.textureTypeHalfFloat,null);let i=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,i),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0);let a=e.checkFramebufferStatus(e.FRAMEBUFFER)===e.FRAMEBUFFER_COMPLETE;return e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null),e.deleteTexture(r),e.deleteFramebuffer(i),a}(t,n)}return!1}return!!yx(t,"OES_texture_float")&&!!yx(t,"WEBGL_color_buffer_float")&&yT(t)}function yT(e){let t=mG(e),n=e.createTexture();e.bindTexture(e.TEXTURE_2D,n),e.texImage2D(e.TEXTURE_2D,0,t.internalFormatFloat,1,1,0,t.textureFormatFloat,t.textureTypeFloat,null);let r=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,r),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0);let i=e.checkFramebufferStatus(e.FRAMEBUFFER)===e.FRAMEBUFFER_COMPLETE;return e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null),e.deleteTexture(n),e.deleteFramebuffer(r),i}function yw(e){return 2===e&&null!=mB(e).fenceSync}function yj(e,t){Array.isArray(e)||(e=[e]),e.forEach(e=>{null!=e&&ep.Si.assert("complex64"!==e.dtype,()=>t+" does not support complex64 tensors in the WebGL backend.")})}let yF=Object(ep.of)();function y_(){let e,t,n,r,i,a,o,s,l,u;return 2===Object(ep.of)().getNumber("WEBGL_VERSION")?(e="#version 300 es",t="in",n="out",r="in",i="texture",a="outputColor",o="out vec4 outputColor;",s=Object(ep.of)().getBool("WEBGL2_ISNAN_CUSTOM")?"\n bool isnan_custom(float val) {\n uint floatToUint = floatBitsToUint(val);\n return (floatToUint & 0x7fffffffu) > 0x7f800000u;\n }\n\n bvec4 isnan_custom(vec4 val) {\n return bvec4(isnan_custom(val.x),\n isnan_custom(val.y), isnan_custom(val.z), isnan_custom(val.w));\n }\n\n #define isnan(value) isnan_custom(value)\n ":"",l="",u="\n #define round(value) newRound(value)\n int newRound(float value) {\n return int(floor(value + 0.5));\n }\n\n ivec4 newRound(vec4 value) {\n return ivec4(floor(value + vec4(0.5)));\n }\n "):(e="",t="attribute",n="varying",r="varying",i="texture2D",a="gl_FragColor",o="",s="\n #define isnan(value) isnan_custom(value)\n bool isnan_custom(float val) {\n return (val > 0. || val < 1. || val == 0.) ? false : true;\n }\n bvec4 isnan_custom(vec4 val) {\n return bvec4(isnan(val.x), isnan(val.y), isnan(val.z), isnan(val.w));\n }\n ",l="\n uniform float INFINITY;\n\n bool isinf(float val) {\n return abs(val) == INFINITY;\n }\n bvec4 isinf(vec4 val) {\n return equal(abs(val), vec4(INFINITY));\n }\n ",u="\n int round(float value) {\n return int(floor(value + 0.5));\n }\n\n ivec4 round(vec4 value) {\n return ivec4(floor(value + vec4(0.5)));\n }\n "),{version:e,attribute:t,varyingVs:n,varyingFs:r,texture2D:i,output:a,defineOutput:o,defineSpecialNaN:s,defineSpecialInf:l,defineRound:u}}function yE(e,t,n="index"){let r=ep.Si.computeStrides(t);return r.map((t,i)=>`int ${e[i]} = ${n} / ${t}; ${i===r.length-1?`int ${e[i+1]} = ${n} - ${e[i]} * ${t}`:`index -= ${e[i]} * ${t}`};`).join("")}function yR(e,t,n="index"){let r=ep.Si.computeStrides(t);return r.map((t,i)=>`int ${e[i]} = ${n} / outShapeStrides[${i}]; ${i===r.length-1?`int ${e[i+1]} = ${n} - ${e[i]} * outShapeStrides[${i}]`:`index -= ${e[i]} * outShapeStrides[${i}]`};`).join("")}function yD(e,t,n="index"){let r=function(e,t){let n=e.length,r=e.map(e=>`${t}[${e}]`),i=Array(n-1);i[n-2]=r[n-1];for(let e=n-3;e>=0;--e)i[e]=`(${i[e+1]} * ${r[e+1]})`;return i}(e.map((e,t)=>t),t);return r.map((t,i)=>`int ${e[i]} = ${n} / ${r[i]}; ${i===r.length-1?`int ${e[i+1]} = ${n} - ${e[i]} * ${r[i]}`:`index -= ${e[i]} * ${r[i]}`};`).join("")}function yC(e){let t=ep.Si.computeStrides(e).map(e=>e.toString());return` 27 int getFlatIndex(ivec3 coords) { 28 return coords.x * ${t[0]} + coords.y * ${t[1]} + coords.z; 29 } 30`}
30yF.registerFlag("HAS_WEBGL",()=>yF.getNumber("WEBGL_VERSION")>0),yF.registerFlag("WEBGL_VERSION",()=>yI(2)?2:+!!yI(1)),yF.registerFlag("WEBGL_CHECK_NUMERICAL_PROBLEMS",()=>!1),yF.registerFlag("WEBGL_BUFFER_SUPPORTED",()=>2===yF.get("WEBGL_VERSION")),yF.registerFlag("WEBGL_CPU_FORWARD",()=>!0),yF.registerFlag("WEBGL_FORCE_F16_TEXTURES",()=>!1),yF.registerFlag("WEBGL_PACK",()=>yF.getBool("HAS_WEBGL")),yF.registerFlag("WEBGL_PACK_NORMALIZATION",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_PACK_CLIP",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_PACK_DEPTHWISECONV",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_PACK_BINARY_OPERATIONS",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_PACK_UNARY_OPERATIONS",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_PACK_ARRAY_OPERATIONS",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_PACK_IMAGE_OPERATIONS",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_PACK_REDUCE",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_LAZILY_UNPACK",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_CONV_IM2COL",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_PACK_CONV2DTRANSPOSE",()=>yF.getBool("WEBGL_PACK")),yF.registerFlag("WEBGL_MAX_TEXTURE_SIZE",()=>ym(yF.getNumber("WEBGL_VERSION"))),yF.registerFlag("WEBGL_MAX_TEXTURES_IN_SHADER",()=>yv(yF.getNumber("WEBGL_VERSION"))),yF.registerFlag("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION",()=>{let e=yF.getNumber("WEBGL_VERSION");return 0===e?0:yO(e)}),yF.registerFlag("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE",()=>yF.getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")>0&&!ep.Xe.isMobile()),yF.registerFlag("WEBGL_RENDER_FLOAT32_CAPABLE",()=>yN(yF.getNumber("WEBGL_VERSION"))),yF.registerFlag("WEBGL_RENDER_FLOAT32_ENABLED",()=>!yF.getBool("WEBGL_FORCE_F16_TEXTURES")&&yF.getBool("WEBGL_RENDER_FLOAT32_CAPABLE")),yF.registerFlag("WEBGL_DOWNLOAD_FLOAT_ENABLED",()=>yk(yF.getNumber("WEBGL_VERSION"))),yF.registerFlag("WEBGL_FENCE_API_ENABLED",()=>yw(yF.getNumber("WEBGL_VERSION"))),yF.registerFlag("WEBGL_SIZE_UPLOAD_UNIFORM",()=>4*!!yF.getBool("WEBGL_RENDER_FLOAT32_ENABLED")),yF.registerFlag("WEBGL_DELETE_TEXTURE_THRESHOLD",()=>-1,e=>{if("number"!=typeof e)throw Error(`WEBGL_DELETE_TEXTURE_THRESHOLD must be a number but got ${e}.`);if(e<0&&-1!==e)throw Error(`WEBGL_DELETE_TEXTURE_THRESHOLD must be -1 (indicating never delete) or at least 0, but got ${e}.`)}),yF.registerFlag("WEBGL_FLUSH_THRESHOLD",()=>ep.Xe.isMobile()?1:-1,e=>{if("number"!=typeof e)throw Error("WEBGL_FLUSH_THRESHOLD must be a number but got "+e+".");if(e<0&&-1!==e)throw Error(`WEBGL_FLUSH_THRESHOLD must be -1 (indicating never manual flush) or at least 0, but got ${e}.`)}),yF.registerFlag("CPU_HANDOFF_SIZE_THRESHOLD",()=>128),yF.registerFlag("WEBGL_USE_SHAPES_UNIFORMS",()=>!1),yF.registerFlag("TOPK_LAST_DIM_CPU_HANDOFF_SIZE_THRESHOLD",()=>1e5),yF.registerFlag("TOPK_K_CPU_HANDOFF_THRESHOLD",()=>128),yF.registerFlag("WEBGL_EXP_CONV",()=>!1),yF.registerFlag("SOFTWARE_WEBGL_ENABLED",()=>yF.getBool("IS_TEST")),yF.registerFlag("WEBGL_MAX_SIZE_FOR_NARROW_TEXTURE",()=>1/0),yF.registerFlag("WEBGL_AUTO_SQUARIFY_NARROW_TEXTURE_SHAPE",()=>!1),yF.registerFlag("WEBGL2_ISNAN_CUSTOM",()=>!1),yF.registerFlag("ENGINE_COMPILE_ONLY",()=>!1);let yA="\n const float FLOAT_MAX = 1.70141184e38;\n const float FLOAT_MIN = 1.17549435e-38;\n\n lowp vec4 encode_float(highp float v) {\n if (isnan(v)) {\n return vec4(255, 255, 255, 255);\n }\n\n highp float av = abs(v);\n\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 127.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 255.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n highp float e = floor(log2(av));\n highp float m = exp2(fract(log2(av))) - 1.0;\n\n c[2] = floor(128.0 * m);\n m -= c[2] / 128.0;\n c[1] = floor(32768.0 * m);\n m -= c[1] / 32768.0;\n c[0] = floor(8388608.0 * m);\n\n highp float ebias = e + 127.0;\n c[3] = floor(ebias / 2.0);\n ebias -= c[3] * 2.0;\n c[2] += floor(ebias) * 128.0;\n\n c[3] += 128.0 * step(0.0, -v);\n\n return c / 255.0;\n }\n",{getBroadcastDims:yM}=ep.ie;function y$(e,t,n){let r=[];
30if(e.forEach(e=>{let t=ep.Si.sizeFromShape(e.shapeInfo.logicalShape);if(e.shapeInfo.isUniform?r.push(`uniform float ${e.name}${t>1?`[${t}]`:""};`):(r.push(`uniform sampler2D ${e.name};`),r.push(`uniform int offset${e.name};`)),n.enableShapeUniforms){let{uniformShape:t}=yK(n.packedInputs,e.shapeInfo.logicalShape,e.shapeInfo.texShape);switch(t.length){case 1:r.push(`uniform int ${e.name}Shape;`);break;case 2:r.push(`uniform ivec2 ${e.name}Shape;`);break;case 3:r.push(`uniform ivec3 ${e.name}Shape;`);break;case 4:r.push(`uniform ivec4 ${e.name}Shape;`)}r.push(`uniform ivec2 ${e.name}TexShape;`)}}),n.enableShapeUniforms){switch(t.logicalShape.length){case 1:r.push("uniform int outShape;");break;case 2:r.push("uniform ivec2 outShape;"),r.push("uniform int outShapeStrides;");break;case 3:r.push("uniform ivec3 outShape;"),r.push("uniform ivec2 outShapeStrides;");break;case 4:r.push("uniform ivec4 outShape;"),r.push("uniform ivec3 outShapeStrides;")}r.push("uniform ivec2 outTexShape;")}n.customUniforms&&n.customUniforms.forEach(e=>{r.push(`uniform ${e.type} ${e.name}${e.arrayIndex?`[${e.arrayIndex}]`:""};`)});let i=r.join("\n"),a=e.map(e=>(function(e,t,n=!1,r){let i="";i+=n?yP(e,r):yU(e,r);let a=e.shapeInfo.logicalShape,o=t.logicalShape;return a.length<=o.length&&(i+=n?function(e,t){let n,r=e.name,i=r.charAt(0).toUpperCase()+r.slice(1),a="get"+i+"AtOutCoords",o=e.shapeInfo.logicalShape.length,s=t.logicalShape.length,l=yM(e.shapeInfo.logicalShape,t.logicalShape),u=yq(s),c=s-o,p=["x","y","z","w","u","v"];n=0===o?"":s<2&&l.length>=1?"coords = 0;":l.map(e=>`coords.${p[e+c]} = 0;`).join("\n");let d="";d=s<2&&o>0?"coords":e.shapeInfo.logicalShape.map((e,t)=>"coords."+p[t+c]).join(", ");let f="return outputValue;",h=1===ep.Si.sizeFromShape(e.shapeInfo.logicalShape),g=1===ep.Si.sizeFromShape(t.logicalShape);if(1!==o||h||g){if(h&&!g)f=1===s?"\n return vec4(outputValue.x, outputValue.x, 0., 0.);\n ":"\n return vec4(outputValue.x);\n ";else if(l.length){let e=o-2,t=o-1;l.indexOf(e)>-1&&l.indexOf(t)>-1?f="return vec4(outputValue.x);":l.indexOf(e)>-1?f="return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);":l.indexOf(t)>-1&&(f="return vec4(outputValue.xx, outputValue.zz);")}}else f="\n return vec4(outputValue.xy, outputValue.xy);\n ";return` 31 vec4 ${a}() { 32 ${u} coords = getOutputCoords(); 33 ${n} 34 vec4 outputValue = get${i}(${d}); 35 ${f} 36 } 37 `}(e,t):function(e,t){let n,r=e.name,i=r.charAt(0).toUpperCase()+r.slice(1),a="get"+i+"AtOutCoords",o=t.texShape,s=e.shapeInfo.texShape,l=e.shapeInfo.logicalShape.length,u=t.logicalShape.length;if(!e.shapeInfo.isUniform&&l===u&&null==e.shapeInfo.flatOffset&&ep.Si.arraysEqual(s,o))return` 38 float ${a}() { 39 return sampleTexture(${r}, resultUV); 40 } 41 `;let c=yq(u),p=yM(e.shapeInfo.logicalShape,t.logicalShape),d=u-l,f=["x","y","z","w","u","v"];n=0===l?"":u<2&&p.length>=1?"coords = 0;":p.map(e=>`coords.${f[e+d]} = 0;`).join("\n");let h="";return h=u<2&&l>0?"coords":e.shapeInfo.logicalShape.map((e,t)=>"coords."+f[t+d]).join(", "),` 42 float ${a}() { 43 ${c} coords = getOutputCoords(); 44 ${n} 45 return get${i}(${h}); 46 } 47 `}(e,t)),i})(e,t,n.packedInputs,n.enableShapeUniforms)).join("\n"),o=t.texShape,s=y_(),l=function(e){return` 48 float sampleTexture(sampler2D textureSampler, vec2 uv) { 49 return ${e.texture2D}(textureSampler, uv).r; 50 } 51 `}(s),u,c,p=function(e){return`${e.version} 52 precision highp float; 53 precision highp int; 54 precision highp sampler2D; 55 ${e.varyingFs} vec2 resultUV; 56 ${e.defineOutput} 57 const vec2 halfCR = vec2(0.5, 0.5); 58 59 struct ivec5 60 { 61 int x; 62 int y; 63 int z; 64 int w; 65 int u; 66 }; 67 68 struct ivec6 69 { 70 int x; 71 int y; 72 int z; 73 int w; 74 int u; 75 int v; 76 }; 77 78 uniform float NAN; 79 ${e.defineSpecialNaN} 80 ${e.defineSpecialInf} 81 ${e.defineRound} 82 83 int imod(int x, int y) { 84 return x - y * (x / y); 85 } 86 87 int idiv(int a, int b, float sign) { 88 int res = a / b; 89 int mod = imod(a, b); 90 if (sign < 0. && mod != 0) { 91 res -= 1; 92 } 93 return res; 94 } 95 96 //Based on the work of Dave Hoskins 97 //https://www.shadertoy.com/view/4djSRW 98 #define HASHSCALE1 443.8975 99 float random(float seed){ 100 vec2 p = resultUV * seed; 101 vec3 p3 = fract(vec3(p.xyx) * HASHSCALE1); 102 p3 += dot(p3, p3.yzx + 19.19); 103 return fract((p3.x + p3.y) * p3.z); 104 } 105 106 ${yB} 107 ${yL} 108 ${yW} 109 `}(s);return t.isPacked?(u=function(e,t,n){switch(e.length){case 0:return yG();case 1:return function(e,t,n){let r=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)];return 1===r[0]?n?"\n int getOutputCoords() {\n return 2 * int(resultUV.x * ceil(float(outTexShape[1]) / 2.0));\n }\n ":` 110 int getOutputCoords() { 111 return 2 * int(resultUV.x * ${r[1]}.0); 112 } 113 `:1===r[1]?n?"\n int getOutputCoords() {\n return 2 * int(resultUV.y * ceil(float(outTexShape[0]) / 2.0));\n }\n ":` 114 int getOutputCoords() { 115 return 2 * int(resultUV.y * ${r[0]}.0); 116 } 117 `:n?"\n int getOutputCoords() {\n ivec2 packedTexShape = ivec2(ceil(float(outTexShape[0]) / 2.0), ceil(float(outTexShape[1]) / 2.0));
117\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(packedTexShape[0], packedTexShape[1]));\n return 2 * (resTexRC.x * packedTexShape[1] + resTexRC.y);\n }\n ":` 118 int getOutputCoords() { 119 ivec2 resTexRC = ivec2(resultUV.yx * 120 vec2(${r[0]}, ${r[1]})); 121 return 2 * (resTexRC.x * ${r[1]} + resTexRC.y); 122 } 123 `}(0,t,n);case 2:return function(e,t,n){let r=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)];if(ep.Si.arraysEqual(e,t))return n?"\n ivec2 getOutputCoords() {\n ivec2 packedTexShape = ivec2(ceil(float(outTexShape[0]) / 2.0), ceil(float(outTexShape[1]) / 2.0));\n return 2 * ivec2(resultUV.yx * vec2(packedTexShape[0], packedTexShape[1]));\n }\n ":` 124 ivec2 getOutputCoords() { 125 return 2 * ivec2(resultUV.yx * vec2(${r[0]}, ${r[1]})); 126 } 127 `;let i=Math.ceil(e[1]/2);return n?"\n ivec2 getOutputCoords() {\n ivec2 packedTexShape = ivec2(ceil(float(outTexShape[0]) / 2.0), ceil(float(outTexShape[1]) / 2.0));\n int texelsInLogicalRow = int(ceil(float(outShape[1]) / 2.0));\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(packedTexShape[0], packedTexShape[1]));\n\n int index = resTexRC.x * packedTexShape[1] + resTexRC.y;\n int r = 2 * (index / texelsInLogicalRow);\n int c = imod(index, texelsInLogicalRow) * 2;\n\n return ivec2(r, c);\n }\n ":` 128 ivec2 getOutputCoords() { 129 ivec2 resTexRC = ivec2(resultUV.yx * 130 vec2(${r[0]}, ${r[1]})); 131 132 int index = resTexRC.x * ${r[1]} + resTexRC.y; 133 int r = 2 * (index / ${i}); 134 int c = imod(index, ${i}) * 2; 135 136 return ivec2(r, c); 137 } 138 `}(e,t,n);case 3:return function(e,t,n){if(n)return"\n ivec3 getOutputCoords() {\n ivec2 packedTexShape = ivec2(ceil(float(outTexShape[0]) / 2.0), ceil(float(outTexShape[1]) / 2.0));\n int texelsInLogicalRow = int(ceil(float(outShape[2]) / 2.0));\n int texelsInBatch = texelsInLogicalRow * int(ceil(float(outShape[1]) / 2.0));\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(packedTexShape[0], packedTexShape[1]));\n int index = resTexRC.x * packedTexShape[1] + resTexRC.y;\n\n int b = index / texelsInBatch;\n index -= b * texelsInBatch;\n\n int r = 2 * (index / texelsInLogicalRow);\n int c = imod(index, texelsInLogicalRow) * 2;\n\n return ivec3(b, r, c);\n }\n ";let r=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)],i=Math.ceil(e[2]/2),a=i*Math.ceil(e[1]/2);return` 139 ivec3 getOutputCoords() { 140 ivec2 resTexRC = ivec2(resultUV.yx * 141 vec2(${r[0]}, ${r[1]})); 142 int index = resTexRC.x * ${r[1]} + resTexRC.y; 143 144 int b = index / ${a}; 145 index -= b * ${a}; 146 147 int r = 2 * (index / ${i}); 148 int c = imod(index, ${i}) * 2; 149 150 return ivec3(b, r, c); 151 } 152 `}(e,t,n);default:return function(e,t,n){if(n)return"\n ivec4 getOutputCoords() {\n ivec2 packedTexShape = ivec2(ceil(float(outTexShape[0]) / 2.0), ceil(float(outTexShape[1]) / 2.0));\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(packedTexShape[0], packedTexShape[1]));\n int index = resTexRC.x * packedTexShape[1] + resTexRC.y;\n\n int texelsInLogicalRow = int(ceil(float(outShape[3]) / 2.0));\n int texelsInBatch = texelsInLogicalRow * int(ceil(float(outShape[2]) / 2.0));\n int texelsInBatchN = texelsInBatch * outShape[1];\n\n int b2 = index / texelsInBatchN;\n index -= b2 * texelsInBatchN;\n\n int b = index / texelsInBatch;\n index -= b * texelsInBatch;\n\n int r = 2 * (index / texelsInLogicalRow);\n int c = imod(index, texelsInLogicalRow) * 2;\n\n return ivec4(b2, b, r, c);\n }\n ";let r=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)],i=Math.ceil(e[e.length-1]/2),a=i*Math.ceil(e[e.length-2]/2),o=a,s="",l="b, r, c";for(let t=2;t<e.length-1;t++)o*=e[e.length-t-1],s=` 153 int b${t} = index / ${o}; 154 index -= b${t} * ${o}; 155 `+s,l=`b${t}, `+l;return` 156 ivec${e.length} getOutputCoords() {
157 ivec2 resTexRC = ivec2(resultUV.yx * 158 vec2(${r[0]}, ${r[1]})); 159 int index = resTexRC.x * ${r[1]} + resTexRC.y; 160 161 ${s} 162 163 int b = index / ${a}; 164 index -= b * ${a}; 165 166 int r = 2 * (index / ${i}); 167 int c = imod(index, ${i}) * 2; 168 169 return ivec${e.length}(${l}); 170 } 171 `}(e,t,n)}}(t.logicalShape,o,n.enableShapeUniforms),c=function(e){return` 172 void setOutput(vec4 val) { 173 ${e.output} = val; 174 } 175 `}(s)):(u=function(e,t,n){switch(e.length){case 0:return yG();case 1:return function(e,t,n){return 1===t[0]?n?"\n int getOutputCoords() {\n return int(resultUV.x * float(outTexShape[1]));\n }\n ":` 176 int getOutputCoords() { 177 return int(resultUV.x * ${t[1]}.0); 178 } 179 `:1===t[1]?n?"\n int getOutputCoords() {\n return int(resultUV.y * float(outTexShape[0]));\n }\n ":` 180 int getOutputCoords() { 181 return int(resultUV.y * ${t[0]}.0); 182 } 183 `:n?"\n int getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(outTexShape[0], outTexShape[1]));\n return resTexRC.x * outTexShape[1] + resTexRC.y;\n }\n ":` 184 int getOutputCoords() { 185 ivec2 resTexRC = ivec2(resultUV.yx * 186 vec2(${t[0]}, ${t[1]})); 187 return resTexRC.x * ${t[1]} + resTexRC.y; 188 } 189 `}(0,t,n);case 2:return function(e,t,n){return ep.Si.arraysEqual(e,t)?n?"\n ivec2 getOutputCoords() {\n return ivec2(resultUV.yx * vec2(outTexShape[0], outTexShape[1]));\n }\n ":` 190 ivec2 getOutputCoords() { 191 return ivec2(resultUV.yx * vec2(${t[0]}, ${t[1]})); 192 } 193 `:1===e[1]?n?"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(outTexShape[0], outTexShape[1]));\n int index = resTexRC.x * outTexShape[1] + resTexRC.y;\n return ivec2(index, 0);\n }\n ":` 194 ivec2 getOutputCoords() { 195 ivec2 resTexRC = ivec2(resultUV.yx * 196 vec2(${t[0]}, ${t[1]})); 197 int index = resTexRC.x * ${t[1]} + resTexRC.y; 198 return ivec2(index, 0); 199 } 200 `:1===e[0]?n?"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(outTexShape[0], outTexShape[1]));\n int index = resTexRC.x * outTexShape[1] + resTexRC.y;\n return ivec2(0, index);\n }\n ":` 201 ivec2 getOutputCoords() { 202 ivec2 resTexRC = ivec2(resultUV.yx * 203 vec2(${t[0]}, ${t[1]})); 204 int index = resTexRC.x * ${t[1]} + resTexRC.y; 205 return ivec2(0, index); 206 } 207 `:n?"\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(outTexShape[0], outTexShape[1]));\n int index = resTexRC.x * outTexShape[1] + resTexRC.y;\n int r = index / outShape[1];\n int c = index - r * outShape[1];\n return ivec2(r, c);\n }\n ":` 208 ivec2 getOutputCoords() { 209 ivec2 resTexRC = ivec2(resultUV.yx * 210 vec2(${t[0]}, ${t[1]})); 211 int index = resTexRC.x * ${t[1]} + resTexRC.y; 212 int r = index / ${e[1]}; 213 int c = index - r * ${e[1]}; 214 return ivec2(r, c); 215 } 216 `}(e,t,n);case 3:return function(e,t,n){if(n)return` 217 ivec3 getOutputCoords() { 218 ivec2 resTexRC = ivec2(resultUV.yx * 219 vec2(outTexShape[0], outTexShape[1])); 220 int index = resTexRC.x * outTexShape[1] + resTexRC.y; 221 ${yR(["r","c","d"],e)} 222 return ivec3(r, c, d); 223 } 224`;let r=yE(["r","c","d"],e);return` 225 ivec3 getOutputCoords() { 226 ivec2 resTexRC = ivec2(resultUV.yx * 227 vec2(${t[0]}, ${t[1]})); 228 int index = resTexRC.x * ${t[1]} + resTexRC.y; 229 ${r} 230 return ivec3(r, c, d); 231 } 232 `}(e,t,n);case 4:return function(e,t,n){if(n)return` 233 ivec4 getOutputCoords() { 234 ivec2 resTexRC = ivec2(resultUV.yx * 235 vec2(outTexShape[0], outTexShape[1])); 236 int index = resTexRC.x * outTexShape[1] + resTexRC.y; 237 ${yR(["r","c","d","d2"],e)} 238 return ivec4(r, c, d, d2); 239 } 240 `;let r=yE(["r","c","d","d2"],e);return` 241 ivec4 getOutputCoords() {
242 ivec2 resTexRC = ivec2(resultUV.yx * 243 vec2(${t[0]}, ${t[1]})); 244 int index = resTexRC.x * ${t[1]} + resTexRC.y; 245 ${r} 246 return ivec4(r, c, d, d2); 247 } 248 `}(e,t,n);case 5:return function(e,t){let n=yE(["r","c","d","d2","d3"],e);return` 249 ivec5 getOutputCoords() { 250 ivec2 resTexRC = ivec2(resultUV.yx * vec2(${t[0]}, 251 ${t[1]})); 252 253 int index = resTexRC.x * ${t[1]} + resTexRC.y; 254 255 ${n} 256 257 ivec5 outShape = ivec5(r, c, d, d2, d3); 258 return outShape; 259 } 260 `}(e,t);case 6:return function(e,t){let n=yE(["r","c","d","d2","d3","d4"],e);return` 261 ivec6 getOutputCoords() { 262 ivec2 resTexRC = ivec2(resultUV.yx * 263 vec2(${t[0]}, ${t[1]})); 264 int index = resTexRC.x * ${t[1]} + resTexRC.y; 265 266 ${n} 267 268 ivec6 result = ivec6(r, c, d, d2, d3, d4); 269 return result; 270 } 271 `}(e,t);default:throw Error(e.length+"-D output sampling is not yet supported")}}(t.logicalShape,o,n.enableShapeUniforms),c=function(e){return` 272 void setOutput(float val) { 273 ${e.output} = vec4(val, 0, 0, 0); 274 } 275 `}(s)),n.packedInputs&&(p+=yz),[p,l,c,i,u,a,n.userCode].join("\n")}function yU(e,t=!1){let n=e.shapeInfo.logicalShape;switch(n.length){case 0:return function(e,t){let n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1);if(e.shapeInfo.isUniform)return`float ${r}() {return ${n};}`;let[i,a]=e.shapeInfo.texShape;if(1===i&&1===a)return` 276 float ${r}() { 277 return sampleTexture(${n}, halfCR); 278 } 279 `;let o=yV(n);if(t)return` 280 float ${r}() { 281 vec2 uv = uvFromFlat(${n}TexShape[0], ${n}TexShape[1], ${o}); 282 return sampleTexture(${n}, uv); 283 } 284 `;let[s,l]=e.shapeInfo.texShape;return` 285 float ${r}() { 286 vec2 uv = uvFromFlat(${s}, ${l}, ${o}); 287 return sampleTexture(${n}, uv); 288 } 289 `}(e,t);case 1:return function(e,t){let n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1);if(e.shapeInfo.isUniform)return` 290 float ${r}(int index) { 291 ${yH(e)} 292 } 293 `;let i=e.shapeInfo.texShape,a=i[0],o=i[1];if(1===o&&1===a)return` 294 float ${r}(int index) { 295 return sampleTexture(${n}, halfCR); 296 } 297 `;let s=yV(n);return 1===o?t?` 298 float ${r}(int index) { 299 vec2 uv = vec2(0.5, (float(index + ${s}) + 0.5) / float(${n}TexShape[0])); 300 return sampleTexture(${n}, uv); 301 } 302 `:` 303 float ${r}(int index) { 304 vec2 uv = vec2(0.5, (float(index + ${s}) + 0.5) / ${a}.0); 305 return sampleTexture(${n}, uv); 306 } 307 `:1===a?t?` 308 float ${r}(int index) { 309 vec2 uv = vec2((float(index + ${s}) + 0.5) / float(${n}TexShape[1]), 0.5); 310 return sampleTexture(${n}, uv); 311 } 312 `:` 313 float ${r}(int index) { 314 vec2 uv = vec2((float(index + ${s}) + 0.5) / ${o}.0, 0.5); 315 return sampleTexture(${n}, uv); 316 } 317 `:t?` 318 float ${r}(int index) { 319 vec2 uv = uvFromFlat(${n}TexShape[0], ${n}TexShape[1], index + ${s}); 320 return sampleTexture(${n}, uv); 321 } 322 `:` 323 float ${r}(int index) { 324 vec2 uv = uvFromFlat(${a}, ${o}, index + ${s}); 325 return sampleTexture(${n}, uv); 326 } 327 `}(e,t);case 2:return function(e,t){let n=e.shapeInfo.logicalShape,r=e.name,i="get"+r.charAt(0).toUpperCase()+r.slice(1),a=e.shapeInfo.texShape;if(null!=a&&ep.Si.arraysEqual(n,a)){if(t)return` 328 float ${i}(int row, int col) { 329 vec2 uv = (vec2(col, row) + halfCR) / vec2(${r}TexShape[1], ${r}TexShape[0]); 330 return sampleTexture(${r}, uv); 331 } 332 `;let e=a[0],n=a[1];return` 333 float ${i}(int row, int col) { 334 vec2 uv = (vec2(col, row) + halfCR) / vec2(${n}.0, ${e}.0); 335 return sampleTexture(${r}, uv); 336 } 337 `}let{newShape:o,keptDims:s}=ep.Si.squeezeShape(n),l=o;if(l.length<n.length){let n=yX(e,l),r=["row","col"];return` 338 ${yU(n,t)} 339 float ${i}(int row, int col) { 340 return ${i}(${yY(r,s)}); 341 } 342 `}if(e.shapeInfo.isUniform)return` 343 float ${i}(int row, int col) { 344 int index = round(dot(vec2(row, col), vec2(${n[1]}, 1))); 345 ${yH(e)} 346 } 347 `;let u=a[0],c=a[1],p=yV(r);return 1===c?t?` 348 float ${i}(int row, int col) { 349 float index = dot(vec3(row, col, ${p}), vec3(${r}Shape[1], 1, 1)); 350 vec2 uv = vec2(0.5, (index + 0.5) / float(${r}TexShape[0])); 351 return sampleTexture(${r}, uv); 352 } 353 `:` 354 float ${i}(int row, int col) { 355 float index = dot(vec3(row, col, ${p}), vec3(${n[1]}, 1, 1)); 356 vec2 uv = vec2(0.5, (index + 0.5) / ${u}.0); 357 return sampleTexture(${r}, uv); 358 } 359 `:1===u?t?` 360 float ${i}(int row, int col) { 361 float index = dot(vec3(row, col, ${p}), vec3(${r}Shape[1], 1, 1)); 362 vec2 uv = vec2((index + 0.5) / float(${r}TexShape[1]), 0.5); 363 return sampleTexture(${r}, uv); 364 } 365 `:` 366 float ${i}(int row, int col) { 367 float index = dot(vec3(row, col, ${p}), vec3(${n[1]}, 1, 1)); 368 vec2 uv = vec2((index + 0.5) / ${c}.0, 0.5); 369 return sampleTexture(${r}, uv); 370 } 371 `:t?` 372 float ${i}(int row, int col) {
373 // Explicitly use integer operations as dot() only works on floats. 374 int index = row * ${r}Shape[1] + col + ${p}; 375 vec2 uv = uvFromFlat(${r}TexShape[0], ${r}TexShape[1], index); 376 return sampleTexture(${r}, uv); 377 } 378 `:` 379 float ${i}(int row, int col) { 380 // Explicitly use integer operations as dot() only works on floats. 381 int index = row * ${n[1]} + col + ${p}; 382 vec2 uv = uvFromFlat(${u}, ${c}, index); 383 return sampleTexture(${r}, uv); 384 } 385`}(e,t);case 3:return function(e,t){let n=e.shapeInfo.logicalShape,r=e.name,i="get"+r.charAt(0).toUpperCase()+r.slice(1),a=n[1]*n[2],o=n[2],{newShape:s,keptDims:l}=ep.Si.squeezeShape(n),u=s;if(u.length<n.length){let n=yX(e,u),r=["row","col","depth"];return` 386 ${yU(n,t)} 387 float ${i}(int row, int col, int depth) { 388 return ${i}(${yY(r,l)}); 389 } 390 `}if(e.shapeInfo.isUniform)return` 391 float ${i}(int row, int col, int depth) { 392 int index = round(dot(vec3(row, col, depth), 393 vec3(${a}, ${o}, 1))); 394 ${yH(e)} 395 } 396 `;let c=e.shapeInfo.texShape,p=c[0],d=c[1],f=e.shapeInfo.flatOffset;if(d===a&&null==f)return t?` 397 float ${i}(int row, int col, int depth) { 398 int stride1 = ${r}Shape[2]; 399 float texR = float(row); 400 float texC = dot(vec2(col, depth), vec2(stride1, 1)); 401 vec2 uv = (vec2(texC, texR) + halfCR) / 402 vec2(${r}TexShape[1], ${r}TexShape[0]); 403 return sampleTexture(${r}, uv); 404 } 405 `:` 406 float ${i}(int row, int col, int depth) { 407 float texR = float(row); 408 float texC = dot(vec2(col, depth), vec2(${o}, 1)); 409 vec2 uv = (vec2(texC, texR) + halfCR) / 410 vec2(${d}.0, ${p}.0); 411 return sampleTexture(${r}, uv); 412 } 413 `;if(d===o&&null==f)return t?` 414 float ${i}(int row, int col, int depth) { 415 float texR = dot(vec2(row, col), vec2(${r}Shape[1], 1)); 416 float texC = float(depth); 417 vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${r}TexShape[1], ${r}TexShape[0]); 418 return sampleTexture(${r}, uv); 419 } 420 `:` 421 float ${i}(int row, int col, int depth) { 422 float texR = dot(vec2(row, col), vec2(${n[1]}, 1)); 423 float texC = float(depth); 424 vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${d}.0, ${p}.0); 425 return sampleTexture(${r}, uv); 426 } 427 `;let h=yV(r);return t?` 428 float ${i}(int row, int col, int depth) { 429 // Explicitly use integer operations as dot() only works on floats. 430 int stride0 = ${r}Shape[1] * ${r}Shape[2]; 431 int stride1 = ${r}Shape[2]; 432 int index = row * stride0 + col * stride1 + depth + ${h}; 433 vec2 uv = uvFromFlat(${r}TexShape[0], ${r}TexShape[1], index); 434 return sampleTexture(${r}, uv); 435 } 436 `:` 437 float ${i}(int row, int col, int depth) { 438 // Explicitly use integer operations as dot() only works on floats. 439 int index = row * ${a} + col * ${o} + depth + ${h}; 440 vec2 uv = uvFromFlat(${p}, ${d}, index); 441 return sampleTexture(${r}, uv); 442 } 443 `}(e,t);case 4:return function(e,t){let n=e.shapeInfo.logicalShape,r=e.name,i="get"+r.charAt(0).toUpperCase()+r.slice(1),a=n[3],o=n[2]*a,s=n[1]*o,{newShape:l,keptDims:u}=ep.Si.squeezeShape(n);if(l.length<n.length){let n=yX(e,l),r=["row","col","depth","depth2"];return` 444 ${yU(n,t)} 445 float ${i}(int row, int col, int depth, int depth2) { 446 return ${i}(${yY(r,u)}); 447 } 448 `}if(e.shapeInfo.isUniform)return` 449 float ${i}(int row, int col, int depth, int depth2) { 450 int index = round(dot(vec4(row, col, depth, depth2), 451 vec4(${s}, ${o}, ${a}, 1))); 452 ${yH(e)} 453 } 454 `;let c=e.shapeInfo.flatOffset,p=e.shapeInfo.texShape,d=p[0],f=p[1],h=`int stride2 = ${r}Shape[3];`,g=`int stride1 = ${r}Shape[2] * stride2;`,b=`int stride0 = ${r}Shape[1] * stride1;`;if(f===s&&null==c)return t?` 455 float ${i}(int row, int col, int depth, int depth2) { 456 ${h} 457 ${g} 458 float texR = float(row); 459 float texC = 460 dot(vec3(col, depth, depth2),
461 vec3(stride1, stride2, 1)); 462 vec2 uv = (vec2(texC, texR) + halfCR) / 463 vec2(${r}TexShape[1], ${r}TexShape[0]); 464 return sampleTexture(${r}, uv); 465 } 466 `:` 467 float ${i}(int row, int col, int depth, int depth2) { 468 float texR = float(row); 469 float texC = 470 dot(vec3(col, depth, depth2), 471 vec3(${o}, ${a}, 1)); 472 vec2 uv = (vec2(texC, texR) + halfCR) / 473 vec2(${f}.0, ${d}.0); 474 return sampleTexture(${r}, uv); 475 } 476 `;if(f===a&&null==c)return t?` 477 float ${i}(int row, int col, int depth, int depth2) { 478 float texR = dot(vec3(row, col, depth), 479 vec3(${r}Shape[1] * ${r}Shape[2], ${r}Shape[2], 1)); 480 float texC = float(depth2); 481 vec2 uv = (vec2(texC, texR) + halfCR) / 482 vec2(${r}TexShape[1], ${r}TexShape[0]); 483 return sampleTexture(${r}, uv); 484 } 485 `:` 486 float ${i}(int row, int col, int depth, int depth2) { 487 float texR = dot(vec3(row, col, depth), 488 vec3(${n[1]*n[2]}, ${n[2]}, 1)); 489 float texC = float(depth2); 490 vec2 uv = (vec2(texC, texR) + halfCR) / 491 vec2(${f}.0, ${d}.0); 492 return sampleTexture(${r}, uv); 493 } 494 `;let m=yV(r);return t?` 495 float ${i}(int row, int col, int depth, int depth2) { 496 // Explicitly use integer operations as dot() only works on floats. 497 ${h} 498 ${g} 499 ${b} 500 int index = row * stride0 + col * stride1 + 501 depth * stride2 + depth2; 502 vec2 uv = uvFromFlat(${r}TexShape[0], ${r}TexShape[1], index + ${m}); 503 return sampleTexture(${r}, uv); 504 } 505 `:` 506 float ${i}(int row, int col, int depth, int depth2) { 507 // Explicitly use integer operations as dot() only works on floats. 508 int index = row * ${s} + col * ${o} + 509 depth * ${a} + depth2; 510 vec2 uv = uvFromFlat(${d}, ${f}, index + ${m}); 511 return sampleTexture(${r}, uv); 512 } 513 `}(e,t);case 5:return function(e){let t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=t[4],a=t[3]*i,o=t[2]*a,s=t[1]*o,{newShape:l,keptDims:u}=ep.Si.squeezeShape(t);if(l.length<t.length){let t=yX(e,l),n=["row","col","depth","depth2","depth3"];return` 514 ${yU(t)} 515 float ${r}(int row, int col, int depth, int depth2, int depth3) { 516 return ${r}(${yY(n,u)}); 517 } 518 `}if(e.shapeInfo.isUniform)return` 519 float ${r}(int row, int col, int depth, int depth2, int depth3) { 520 float index = dot( 521 vec4(row, col, depth, depth2), 522 vec4(${s}, ${o}, ${a}, ${i})) + 523 depth3; 524 ${yH(e)} 525 } 526 `;let c=e.shapeInfo.flatOffset,p=e.shapeInfo.texShape,d=p[0],f=p[1];if(f===s&&null==c)return` 527 float ${r}(int row, int col, int depth, int depth2, int depth3) { 528 int texR = row; 529 float texC = dot(vec4(col, depth, depth2, depth3), 530 vec4(${o}, ${a}, ${i}, 1)); 531 vec2 uv = (vec2(texC, texR) + halfCR) / 532 vec2(${f}.0, ${d}.0); 533 return sampleTexture(${n}, uv); 534 } 535 `;if(f===i&&null==c)return` 536 float ${r}(int row, int col, int depth, int depth2, int depth3) { 537 float texR = dot( 538 vec4(row, col, depth, depth2), 539 vec4(${t[1]*t[2]*t[3]}, 540 ${t[2]*t[3]}, ${t[3]}, 1)); 541 int texC = depth3; 542 vec2 uv = (vec2(texC, texR) + halfCR) / 543 vec2(${f}.0, ${d}.0); 544 return sampleTexture(${n}, uv); 545 } 546 `;let h=yV(n);return` 547 float ${r}(int row, int col, int depth, int depth2, int depth3) { 548 // Explicitly use integer operations as dot() only works on floats. 549 int index = row * ${s} + col * ${o} + depth * ${a} + 550 depth2 * ${i} + depth3 + ${h}; 551 vec2 uv = uvFromFlat(${d}, ${f}, index); 552 return sampleTexture(${n}, uv); 553 } 554 `}(e);case 6:return function(e){let t=e.shapeInfo.logicalShape,n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),{newShape:i,keptDims:a}=ep.Si.squeezeShape(t);if(i.length<t.length){let t=yX(e,i),n=["row","col","depth","depth2","depth3","depth4"];return` 555 ${yU(t)} 556 float ${r}(int row, int col, int depth, 557 int depth2, int depth3, int depth4) { 558 return ${r}(${yY(n,a)}); 559 } 560 `}let o=t[5],s=t[4]*o,l=t[3]*s,u=t[2]*l,c=t[1]*u;if(e.shapeInfo.isUniform)return` 561 float ${r}(int row, int col, int depth, 562 int depth2, int depth3, int depth4) { 563 int index = round(dot( 564 vec4(row, col, depth, depth2), 565 vec4(${c}, ${u}, ${l}, ${s})) + 566 dot( 567 vec2(depth3, depth4), 568 vec2(${o}, 1))); 569 ${yH(e)} 570 } 571 `;let p=e.shapeInfo.flatOffset,d=e.shapeInfo.texShape,f=d[0],h=d[1];if(h===c&&null==p)return` 572 float ${r}(int row, int col, int depth, 573 int depth2, int depth3, int depth4) { 574 int texR = row; 575 float texC = dot(vec4(col, depth, depth2, depth3), 576 vec4(${u}, ${l}, ${s}, ${o})) + 577 float(depth4); 578 vec2 uv = (vec2(texC, texR) + halfCR) / 579 vec2(${h}.0, ${f}.0); 580 return sampleTexture(${n}, uv); 581 } 582 `;if(h===o&&null==p)return` 583 float ${r}(int row, int col, int depth, 584 int depth2, int depth3, int depth4) {
585 float texR = dot(vec4(row, col, depth, depth2), 586 vec4(${t[1]*t[2]*t[3]*t[4]}, 587 ${t[2]*t[3]*t[4]}, 588 ${t[3]*t[4]}, 589 ${t[4]})) + float(depth3); 590 int texC = depth4; 591 vec2 uv = (vec2(texC, texR) + halfCR) / 592 vec2(${h}.0, ${f}.0); 593 return sampleTexture(${n}, uv); 594 } 595 `;let g=yV(n);return` 596 float ${r}(int row, int col, int depth, 597 int depth2, int depth3, int depth4) { 598 // Explicitly use integer operations as dot() only works on floats. 599 int index = row * ${c} + col * ${u} + depth * ${l} + 600 depth2 * ${s} + depth3 * ${o} + depth4 + ${g}; 601 vec2 uv = uvFromFlat(${f}, ${h}, index); 602 return sampleTexture(${n}, uv); 603 } 604 `}(e);default:throw Error(n.length+"-D input sampling is not yet supported")}}function yP(e,t){switch(e.shapeInfo.logicalShape.length){case 0:return function(e){let t=e.name,n="get"+t.charAt(0).toUpperCase()+t.slice(1),r=y_();return` 605 vec4 ${n}() { 606 return ${r.texture2D}(${t}, halfCR); 607 } 608 `}(e);case 1:return function(e,t){let n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=e.shapeInfo.texShape,a=y_();if(t)return` 609 vec4 ${r}(int index) { 610 ivec2 packedTexShape = ivec2(ceil(float(${n}TexShape[0]) / 2.0), ceil(float(${n}TexShape[1]) / 2.0)); 611 vec2 uv = packedUVfrom1D( 612 packedTexShape[0], packedTexShape[1], index); 613 return ${a.texture2D}(${n}, uv); 614 } 615 `;let o=[Math.ceil(i[0]/2),Math.ceil(i[1]/2)];return` 616 vec4 ${r}(int index) { 617 vec2 uv = packedUVfrom1D( 618 ${o[0]}, ${o[1]}, index); 619 return ${a.texture2D}(${n}, uv); 620 } 621 `}(e,t);case 2:return function(e,t){let n=e.shapeInfo.logicalShape,r=e.name,i="get"+r.charAt(0).toUpperCase()+r.slice(1),a=e.shapeInfo.texShape,o=a[0],s=a[1],l=y_();if(null!=a&&ep.Si.arraysEqual(n,a))return t?` 622 vec4 ${i}(int row, int col) { 623 vec2 uv = (vec2(col, row) + halfCR) / vec2(${r}TexShape[1], ${r}TexShape[0]); 624 625 return ${l.texture2D}(${r}, uv); 626 } 627 `:` 628 vec4 ${i}(int row, int col) { 629 vec2 uv = (vec2(col, row) + halfCR) / vec2(${s}.0, ${o}.0); 630 631 return ${l.texture2D}(${r}, uv); 632 } 633 `;if(t)return` 634 vec4 ${i}(int row, int col) { 635 ivec2 packedTexShape = ivec2(ceil(float(${r}TexShape[0]) / 2.0), ceil(float(${r}TexShape[1]) / 2.0)); 636 int valuesPerRow = int(ceil(float(${r}Shape[1]) / 2.0)); 637 vec2 uv = packedUVfrom2D(valuesPerRow, packedTexShape[0], packedTexShape[1], row, col); 638 return ${l.texture2D}(${r}, uv); 639 } 640 `;let u=[Math.ceil(a[0]/2),Math.ceil(a[1]/2)],c=Math.ceil(n[1]/2);return` 641 vec4 ${i}(int row, int col) { 642 vec2 uv = packedUVfrom2D(${c}, ${u[0]}, ${u[1]}, row, col); 643 return ${l.texture2D}(${r}, uv); 644 } 645 `}(e,t);case 3:return function(e,t){let n=e.shapeInfo.logicalShape,r=e.name,i="get"+r.charAt(0).toUpperCase()+r.slice(1),a=e.shapeInfo.texShape,o=[Math.ceil(a[0]/2),Math.ceil(a[1]/2)];if(1===n[0]){let r=n.slice(1),a=[1,2],o=yX(e,r),s=["b","row","col"];return` 646 ${yP(o,t)} 647 vec4 ${i}(int b, int row, int col) { 648 return ${i}(${yY(s,a)}); 649 } 650 `}let s=y_();if(t)return` 651 vec4 ${i}(int b, int row, int col) { 652 ivec2 packedTexShape = ivec2(ceil(float(${r}TexShape[0]) / 2.0), ceil(float(${r}TexShape[1]) / 2.0)); 653 int valuesPerRow = int(ceil(float(${r}Shape[2]) / 2.0)); 654 int texelsInBatch = valuesPerRow * int(ceil(float(${r}Shape[1]) / 2.0)); 655 vec2 uv = packedUVfrom3D( 656 packedTexShape[0], packedTexShape[1], texelsInBatch, valuesPerRow, b, row, col); 657 return ${s.texture2D}(${r}, uv); 658 } 659 `;let l=o[0],u=o[1],c=Math.ceil(n[2]/2),p=c*Math.ceil(n[1]/2);return` 660 vec4 ${i}(int b, int row, int col) { 661 vec2 uv = packedUVfrom3D( 662 ${l}, ${u}, ${p}, ${c}, b, row, col); 663 return ${s.texture2D}(${r}, uv); 664 } 665 `}(e,t);default:return function(e,t){let n=e.name,r="get"+n.charAt(0).toUpperCase()+n.slice(1),i=y_();if(t)return` 666 vec4 ${r}(int b2, int b, int row, int col) { 667 int valuesPerRow = int(ceil(float(${n}Shape[3]) / 2.0)); 668 int texelsInBatch = valuesPerRow * int(ceil(float(${n}Shape[2]) / 2.0)); 669 int index = b * texelsInBatch + (row / 2) * valuesPerRow + (col / 2); 670 texelsInBatch *= ${n}Shape[1]; 671 index = b2 * texelsInBatch + index; 672 ivec2 packedTexShape = ivec2(ceil(float(${n}TexShape[0]) / 2.0), ceil(float(${n}TexShape[1]) / 2.0)); 673 int texR = index / packedTexShape[1]; 674 int texC = index - texR * packedTexShape[1]; 675 vec2 uv = (vec2(texC, texR) + halfCR) / vec2(packedTexShape[1], packedTexShape[0]); return ${i.texture2D}(${n}, uv); 676 } 677 `;let a=e.shapeInfo.logicalShape,o=a.length,s=e.shapeInfo.texShape,l=[Math.ceil(s[0]/2),Math.ceil(s[1]/2)],u=l[0],c=l[1],p=Math.ceil(a[o-1]/2),d=p*Math.ceil(a[o-2]/2),f="int b, int row, int col",h=`b * ${d} + (row / 2) * ${p} + (col / 2)`;for(let e=2;e<o-1;e++)f=`int b${e}, `+f,d*=a[o-e-1],h=`b${e} * ${d} + `+h;return` 678 vec4 ${r}(${f}) { 679 int index = ${h}; 680 int texR = index / ${c}; 681 int texC = index - texR * ${c}; 682 vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${c}, ${u}); 683 return ${i.texture2D}(${n}, uv); 684 } 685 `}(e,t)}}let yB="\nvec2 uvFromFlat(int texNumR, int texNumC, int index) {\n int texR = index / texNumC;\n int texC = index - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\nvec2 packedUVfrom1D(int texNumR, int texNumC, int index) {\n int texelIndex = index / 2;\n int texR = texelIndex / texNumC;\n int texC = texelIndex - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",yL="\nvec2 packedUVfrom2D(int texelsInLogicalRow, int texNumR,\n int texNumC, int row, int col) {\n int texelIndex = (row / 2) * texelsInLogicalRow + (col / 2);\n int texR = texelIndex / texNumC;\n int texC = texelIndex - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",yW="\nvec2 packedUVfrom3D(int texNumR, int texNumC,\n int texelsInBatch, int texelsInLogicalRow, int b,\n int row, int col) {\n int index = b * texelsInBatch + (row / 2) * texelsInLogicalRow + (col / 2);\n int texR = index / texNumC;\n int texC = index - texR * texNumC;\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\n}\n",yz="\n float getChannel(vec4 frag, vec2 innerDims) {\n vec2 modCoord = mod(innerDims, 2.);\n return modCoord.x == 0. ?\n (modCoord.y == 0. ? frag.r : frag.g) :\n (modCoord.y == 0. ? frag.b : frag.a);\n }\n float getChannel(vec4 frag, int dim) {\n float modCoord = mod(float(dim), 2.);\n return modCoord == 0. ? frag.r : frag.g;\n }\n";function yG(){return"\n int getOutputCoords() {\n return 0;\n }\n "}function yV(e){return"offset"+e}function yH(e){let t=e.name,n=ep.Si.sizeFromShape(e.shapeInfo.logicalShape);return n<2?`return ${t};`:` 686 for (int i = 0; i < ${n}; i++) { 687 if (i == index) { 688 return ${t}[i]; 689 } 690 } 691 `}function yq(e){if(e<=1)return"int";if(2===e)return"ivec2";if(3===e)return"ivec3";if(4===e)return"ivec4";if(5===e)return"ivec5";if(6===e)return"ivec6";throw Error(`GPU for rank ${e} is not yet supported`)}function yK(e,t,n){let{newShape:r,keptDims:i}=ep.Si.squeezeShape(t),a=t.length,o=e&&3===a&&1===t[0],s=o?t.slice(1):r,l=!e&&a>1&&!ep.Si.arraysEqual(t,n)&&r.length<a||o;return{useSqueezeShape:l,uniformShape:l?s:t,keptDims:i}}function yX(e,t){let n=JSON.parse(JSON.stringify(e));return n.shapeInfo.logicalShape=t,n}function yY(e,t){return t.map(t=>e[t]).join(", ")}
691function yQ(e,t,n){let r=[],i=[],a,o,s,l=null,u=null;for(let i of(u=e.getUniformLocation(n,"NAN",!1),1===Object(ep.of)().getNumber("WEBGL_VERSION")&&(l=e.getUniformLocation(n,"INFINITY",!1)),t.variableNames)){let a={name:i,uniform:e.getUniformLocation(n,i,!1),offset:e.getUniformLocation(n,"offset"+i,!1)};t.enableShapeUniforms&&(a.shape=e.getUniformLocation(n,i+"Shape",!1),a.texShape=e.getUniformLocation(n,i+"TexShape",!1)),r.push(a)}if(t.enableShapeUniforms&&(a=e.getUniformLocation(n,"outShape",!1),s=e.getUniformLocation(n,"outShapeStrides",!1),o=e.getUniformLocation(n,"outTexShape",!1)),t.customUniforms)for(let r of t.customUniforms)i.push(e.getUniformLocation(n,r.name,!1));return{variablesLocations:r,customUniformLocations:i,infLoc:l,nanLoc:u,outShapeLocation:a,outShapeStridesLocation:s,outTexShapeLocation:o}}function yJ(e,t){if(e.length!==t.length)throw Error(`Binary was compiled with ${e.length} inputs, but was executed with ${t.length} inputs`);e.forEach((e,n)=>{let r=e.logicalShape,i=t[n],a=i.shape;if(!ep.Si.arraysEqual(r,a))throw Error(`Binary was compiled with different shapes than the current args. Shapes ${r} and ${a} must match`);if(e.isUniform&&i.isUniform)return;let o=e.texShape,s=i.isUniform?null:i.texData.texShape;if(!ep.Si.arraysEqual(o,s))throw Error(`Binary was compiled with different texture shapes than the current args. Shape ${o} and ${s} must match`)})}function yZ(e){return Object(ep.of)().getBool("WEBGL_USE_SHAPES_UNIFORMS")&&e<=4}class y0{constructor(e){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0,this.outPackingScheme=s.DENSE,this.customUniforms=[{name:"texShape",type:"ivec2"}];let t=y_();this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length),this.userCode=` 692 ivec3 outCoordsFromFlatIndex(int index) { 693 ${this.enableShapeUniforms?yR(["r","c","d"],e):yE(["r","c","d"],e)} 694 return ivec3(r, c, d); 695 } 696 697 void main() { 698 ivec2 resTexRC = ivec2(resultUV.yx * vec2(texShape[0], texShape[1])); 699 int index = 4 * (resTexRC.x * texShape[1] + resTexRC.y); 700 701 vec4 result = vec4(0.); 702 703 for (int i=0; i<4; i++) { 704 int flatIndex = index + i; 705 ivec3 rc = outCoordsFromFlatIndex(flatIndex); 706 result[i] = getA(rc.x, rc.y, rc.z); 707 } 708 709 ${t.output} = result; 710 } 711 `}}class y1{constructor(e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outPackingScheme=s.DENSE,this.customUniforms=[{name:"texShape",type:"ivec2"}];let t=y_();this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length),this.userCode=` 712 ivec3 outCoordsFromFlatIndex(int index) { 713 ${this.enableShapeUniforms?yR(["r","c","d"],e):yE(["r","c","d"],e)} 714 return ivec3(r, c, d); 715 } 716 717 void main() { 718 ivec2 resTexRC = ivec2(resultUV.yx * vec2(texShape[0], texShape[1])); 719 int index = 4 * (resTexRC.x * texShape[1] + resTexRC.y); 720 721 vec4 result = vec4(0.); 722 723 for (int i=0; i<4; i++) { 724 int flatIndex = index + i; 725 ivec3 rc = outCoordsFromFlatIndex(flatIndex); 726 result[i] = getChannel(getA(rc.x, rc.y, rc.z), vec2(rc.y, rc.z)); 727 } 728 729 ${t.output} = result; 730 } 731 `}}class y2{constructor(e){this.variableNames=["A"],this.outTexUsage=l.DOWNLOAD;let t=y_();this.outputShape=e,this.userCode=` 732 ${yA} 733 734 void main() { 735 float x = getAAtOutCoords(); 736 ${t.output} = encode_float(x); 737 } 738 `}}class y3{constructor(e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!1,this.outTexUsage=l.DOWNLOAD;let t=y_();this.outputShape=e,this.userCode=` 739 ${yA} 740 741 void main() { 742 ivec3 coords = getOutputCoords(); 743 float x = getChannel(getAAtOutCoords(), vec2(coords.y, coords.z)); 744 ${t.output} = encode_float(x); 745 } 746 `}}let y4={R:0,G:1,B:2,A:3};class y6{constructor(e,t=!1,n="RGBA"){this.variableNames=["A"],this.customUniforms=[{name:"texShape",type:"ivec2"}];let r=y_();this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length);let i="result";t&&(i="floor(result * 255. + 0.5)");let a="";for(let e=0;e<n.length;e++){let t=n[e];a+=` 747 if(offset == ${e}) { 748 result = values[${y4[t]}]; 749 }`}this.userCode=` 750 ${this.enableShapeUniforms?"\n int getFlatIndex(ivec3 coords) {\n return coords.x * outShapeStrides[0] + coords.y * outShapeStrides[1] + coords.z;\n }\n":yC(e)} 751 752 void main() { 753 ivec3 coords = getOutputCoords(); 754 int flatIndex = getFlatIndex(coords); 755 float result = 0.; 756 int offset = imod(flatIndex, ${n.length}); 757 758 flatIndex = idiv(flatIndex, ${n.length}, 1.); 759 760 int r = flatIndex / texShape[1];
761 if (r < texShape[0]) { 762 int c = imod(flatIndex, texShape[1]); 763 vec2 uv = (vec2(c, r) + halfCR) / vec2(texShape[1], texShape[0]); 764 vec4 values = ${r.texture2D}(A, uv); 765 ${a} 766 } 767 ${r.output} = vec4(${i}, 0., 0., 0.); 768 } 769 `}}class y5{constructor(e,t=!1){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0,this.customUniforms=[{name:"texShape",type:"ivec2"}];let n=y_();this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length);let r="",i="result";t&&(i="floor(result * 255. + 0.5)");for(let t=0;t<=1;t++)for(let i=0;i<=1;i++){let a=2*t+i;r+=` 770 localCoords = coords; 771 if(localCoords[2] + ${i} < ${this.enableShapeUniforms?"outShape[2]":""+e[2]}) { 772 localCoords[2] += ${i}; 773 if (localCoords[1] + ${t} < ${this.enableShapeUniforms?"outShape[1]":""+e[1]}) { 774 localCoords[1] += ${t}; 775 776 flatIndex = getFlatIndex(localCoords); 777 offset = imod(flatIndex, 4); 778 779 flatIndex = idiv(flatIndex, 4, 1.); 780 781 int r = flatIndex / texShape[1]; 782 int c = imod(flatIndex, texShape[1]); 783 vec2 uv = (vec2(c, r) + halfCR) / vec2(texShape[1], texShape[0]); 784 values = ${n.texture2D}(A, uv); 785 786 if (offset == 0) { 787 result[${a}] = values[0]; 788 } else if (offset == 1) { 789 result[${a}] = values[1]; 790 } else if (offset == 2) { 791 result[${a}] = values[2]; 792 } else { 793 result[${a}] = values[3]; 794 } 795 } 796 } 797 `}this.userCode=` 798 ${this.enableShapeUniforms?"\n int getFlatIndex(ivec3 coords) {\n return coords.x * outShapeStrides[0] + coords.y * outShapeStrides[1] + coords.z;\n }\n":yC(e)} 799 800 void main() { 801 ivec3 coords = getOutputCoords(); 802 803 vec4 result = vec4(0.); 804 int flatIndex, r, c, offset; 805 ivec3 localCoords; 806 vec2 uv; 807 vec4 values; 808 809 ${r} 810 811 ${n.output} = ${i}; 812 } 813 `}}function y8(e){let t=y_();return mX(e,`${t.version} 814 precision highp float; 815 ${t.attribute} vec3 clipSpacePos; 816 ${t.attribute} vec2 uv; 817 ${t.varyingVs} vec2 resultUV; 818 819 void main() { 820 gl_Position = vec4(clipSpacePos, 1); 821 resultUV = uv; 822 }`)}function y7(e){return m2(e,new Float32Array([-1,1,0,0,1,-1,-1,0,0,0,1,1,0,1,1,1,-1,0,1,0]))}function y9(e){return m3(e,new Uint16Array([0,1,2,2,1,3]))}function Se(e,t,n,r,i,a){m5(t,n);let o=m6(e),s=e.TEXTURE_2D;return mV(e,()=>e.bindTexture(s,o)),mV(e,()=>e.texParameteri(s,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE)),mV(e,()=>e.texParameteri(s,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)),mV(e,()=>e.texParameteri(s,e.TEXTURE_MIN_FILTER,e.NEAREST)),mV(e,()=>e.texParameteri(s,e.TEXTURE_MAG_FILTER,e.NEAREST)),1===Object(ep.of)().getNumber("WEBGL_VERSION")?mV(e,()=>e.texImage2D(s,0,r,t,n,0,i,a,null)):mV(e,()=>e.texStorage2D(s,1,r,t,n)),mV(e,()=>e.bindTexture(e.TEXTURE_2D,null)),{texture:o,texShape:[n,t]}}function St(e){return e.internalFormatFloat}function Sn(e,t,n,r){let[i,a]=mL(t,n);return Se(e,i,a,St(r),r.textureFormatFloat,e.FLOAT)}function Sr(e){return e.internalFormatHalfFloat}function Si(e,t,n,r){let[i,a]=mL(t,n);return Se(e,i,a,Sr(r),r.textureFormatFloat,r.textureTypeHalfFloat)}function Sa(e){return e.downloadTextureFormat}function So(e,t,n,r){let[i,a]=mL(t,n);return Se(e,i,a,Sa(r),e.RGBA,e.UNSIGNED_BYTE)}function Ss(e){return e.internalFormatPackedFloat}function Sl(e,t,n,r){let[i,a]=mz(t,n);return Se(e,i,a,Ss(r),e.RGBA,e.FLOAT)}function Su(e){return e.internalFormatPackedHalfFloat}function Sc(e,t,n,r){let[i,a]=mz(t,n);return Se(e,i,a,Su(r),e.RGBA,r.textureTypeHalfFloat)}function Sp(e,t,n){return mV(e,()=>e.bindBuffer(e.ARRAY_BUFFER,n)),m7(e,t,"clipSpacePos",n,3,20,0)&&m7(e,t,"uv",n,2,20,12)}function Sd(e,t,n,r,i,a){let o,s,l;mV(e,()=>e.bindTexture(e.TEXTURE_2D,t)),i instanceof Uint8Array?(o=new Uint8Array(n*r*4),s=e.UNSIGNED_BYTE,l=e.RGBA):(o=new Float32Array(n*r*4),s=e.FLOAT,l=a.internalFormatPackedFloat),o.set(i),2===Object(ep.of)().getNumber("WEBGL_VERSION")?mV(e,()=>e.texSubImage2D(e.TEXTURE_2D,0,0,0,n,r,e.RGBA,s,o)):mV(e,()=>e.texImage2D(e.TEXTURE_2D,0,l,n,r,0,e.RGBA,s,o)),mV(e,()=>e.bindTexture(e.TEXTURE_2D,null))}function Sf(e,t,n){mV(e,()=>e.bindTexture(e.TEXTURE_2D,t)),n.data instanceof Uint8Array?2===Object(ep.of)().getNumber("WEBGL_VERSION")?mV(e,()=>e.texSubImage2D(e.TEXTURE_2D,0,0,0,n.width,n.height,e.RGBA,e.UNSIGNED_BYTE,n.data)):mV(e,()=>e.texImage2D(e.TEXTURE_2D,0,e.RGBA,n.width,n.height,0,e.RGBA,e.UNSIGNED_BYTE,n.data)):2===Object(ep.of)().getNumber("WEBGL_VERSION")?mV(e,()=>e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,n)):mV(e,()=>e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n)),mV(e,()=>e.bindTexture(e.TEXTURE_2D,null))}function Sh(e,t,n,r){let i=e.createBuffer();mV(e,()=>e.bindBuffer(e.PIXEL_PACK_BUFFER,i));let a=16*t*n;
822return mV(e,()=>e.bufferData(e.PIXEL_PACK_BUFFER,a,e.STREAM_READ)),mV(e,()=>e.readPixels(0,0,n,t,e.RGBA,e.FLOAT,0)),mV(e,()=>e.bindBuffer(e.PIXEL_PACK_BUFFER,null)),i}function Sg(e,t,n){let r=e,i=new Float32Array(n);return r.bindBuffer(r.PIXEL_PACK_BUFFER,t),r.getBufferSubData(r.PIXEL_PACK_BUFFER,0,i),r.bindBuffer(r.PIXEL_PACK_BUFFER,null),i}function Sb(e,t,n,r){let[i,a]=mL(t,n),o=new Uint8Array(t*n*4);return mV(e,()=>e.readPixels(0,0,i,a,r.downloadTextureFormat,e.UNSIGNED_BYTE,o)),new Float32Array(o.buffer)}function Sm(e,t,n,r,i,a,o,s){let l=e,u=new Float32Array(function(e,t){let[n,r]=mz(e,t);return n*r*4}(a,o));return l.bindBuffer(l.PIXEL_PACK_BUFFER,t),l.getBufferSubData(l.PIXEL_PACK_BUFFER,0,u),l.bindBuffer(l.PIXEL_PACK_BUFFER,null),u}function Sy(e,t,n){let r=new Float32Array(t*n*4);return mV(e,()=>e.readPixels(0,0,n,t,e.RGBA,e.FLOAT,r)),r}class SS{constructor(e){this.outputTexture=null,this.program=null,this.disposed=!1,this.itemsToPoll=[];let t=Object(ep.of)().getNumber("WEBGL_VERSION");if(null!=e?(this.gl=e,mP(t,e)):this.gl=mB(t),e=this.gl,2===Object(ep.of)().getNumber("WEBGL_VERSION")){let t=e;this.createVertexArray=()=>mV(t,()=>t.createVertexArray()),this.bindVertexArray=e=>mV(t,()=>t.bindVertexArray(e)),this.deleteVertexArray=e=>mV(t,()=>t.deleteVertexArray(e)),this.getVertexArray=()=>mV(t,()=>t.getParameter(t.VERTEX_ARRAY_BINDING))}else if(null!=e){let t=e.getExtension("OES_vertex_array_object");if(null==t)throw Error("All WebGL1 implementations are expected to offer OES_vertex_array_object.");this.createVertexArray=()=>mV(e,()=>t.createVertexArrayOES()),this.bindVertexArray=n=>mV(e,()=>t.bindVertexArrayOES(n)),this.deleteVertexArray=n=>mV(e,()=>t.deleteVertexArrayOES(n)),this.getVertexArray=()=>mV(e,()=>e.getParameter(t.VERTEX_ARRAY_BINDING_OES))}let n="WEBGL_color_buffer_float";if(this.parallelCompilationExtension=this.gl.getExtension("KHR_parallel_shader_compile"),1===Object(ep.of)().getNumber("WEBGL_VERSION")){let e="OES_texture_float",t="OES_texture_half_float";if(this.textureFloatExtension=mK(this.gl,e),yx(this.gl,t))this.textureHalfFloatExtension=mK(this.gl,t);else if(Object(ep.of)().get("WEBGL_FORCE_F16_TEXTURES"))throw Error("GL context does not support half float textures, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.");if(this.colorBufferFloatExtension=this.gl.getExtension(n),yx(this.gl,"EXT_color_buffer_half_float"))this.colorBufferHalfFloatExtension=mK(this.gl,"EXT_color_buffer_half_float");else if(Object(ep.of)().get("WEBGL_FORCE_F16_TEXTURES"))throw Error("GL context does not support color renderable half floats, yet the environment flag WEBGL_FORCE_F16_TEXTURES is set to true.")}else if(n="EXT_color_buffer_float",yx(this.gl,n))this.colorBufferFloatExtension=this.gl.getExtension(n);else{if(!yx(this.gl,"EXT_color_buffer_half_float"))throw Error("GL context does not support color renderable floats");this.colorBufferHalfFloatExtension=this.gl.getExtension("EXT_color_buffer_half_float")}this.vertexBuffer=y7(this.gl),this.indexBuffer=y9(this.gl),this.framebuffer=m8(this.gl),this.textureConfig=mG(this.gl,this.textureHalfFloatExtension)}get debug(){return Object(ep.of)().getBool("DEBUG")}dispose(){if(this.disposed)return;null!=this.program&&console.warn("Disposing a GPGPUContext that still has a bound WebGLProgram. This is probably a resource leak, delete the program with GPGPUContext.deleteProgram before disposing."),null!=this.outputTexture&&console.warn("Disposing a GPGPUContext that still has a bound output matrix texture. This is probably a resource leak, delete the output matrix texture with GPGPUContext.deleteMatrixTexture before disposing.");let e=this.gl;mV(e,()=>e.finish()),mV(e,()=>e.bindFramebuffer(e.FRAMEBUFFER,null)),mV(e,()=>e.deleteFramebuffer(this.framebuffer)),mV(e,()=>e.bindBuffer(e.ARRAY_BUFFER,null)),mV(e,()=>e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null)),mV(e,()=>e.deleteBuffer(this.indexBuffer)),this.disposed=!0}createFloat32MatrixTexture(e,t){return this.throwIfDisposed(),Sn(this.gl,e,t,this.textureConfig)}createFloat16MatrixTexture(e,t){return this.throwIfDisposed(),Si(this.gl,e,t,this.textureConfig)}createUnsignedBytesMatrixTexture(e,t){return this.throwIfDisposed(),So(this.gl,e,t,this.textureConfig)}uploadPixelDataToTexture(e,t){this.throwIfDisposed(),Sf(this.gl,e,t)}uploadDenseMatrixToTexture(e,t,n,r){this.throwIfDisposed(),Sd(this.gl,e,t,n,r,this.textureConfig)}createFloat16PackedMatrixTexture(e,t){return this.throwIfDisposed(),Sc(this.gl,e,t,this.textureConfig)}createPackedMatrixTexture(e,t){return this.throwIfDisposed(),Sl(this.gl,e,t,this.textureConfig)}deleteMatrixTexture(e){this.throwIfDisposed(),this.outputTexture===e&&(yo(this.gl,this.framebuffer),this.outputTexture=null),mV(this.gl,()=>this.gl.deleteTexture(e))}downloadByteEncodedFloatMatrixFromOutputTexture(e,t,n){return this.downloadMatrixDriver(e,()=>Sb(this.gl,t,n,this.textureConfig))}downloadPackedMatrixFromBuffer(e,t,n,r,i,a){return Sm(this.gl,e,0,0,0,i,a,this.textureConfig)}downloadFloat32MatrixFromBuffer(e,t){return Sg(this.gl,e,t)}createBufferFromTexture(e,t,n){this.bindTextureToFrameBuffer(e);let r=Sh(this.gl,t,n,this.textureConfig);return this.unbindTextureToFrameBuffer(),r}createAndWaitForFence(){let e=this.createFence(this.gl);
822return this.pollFence(e)}createFence(e){let t,n;if(Object(ep.of)().getBool("WEBGL_FENCE_API_ENABLED")){let r=e,i=r.fenceSync(r.SYNC_GPU_COMMANDS_COMPLETE,0);e.flush(),n=()=>{let e=r.clientWaitSync(i,0,0);return e===r.ALREADY_SIGNALED||e===r.CONDITION_SATISFIED},t=i}else Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")>0?(t=this.beginQuery(),this.endQuery(),n=()=>this.isQueryAvailable(t,Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))):n=()=>!0;return{query:t,isFencePassed:n}}downloadMatrixFromPackedTexture(e,t,n){return this.downloadMatrixDriver(e,()=>Sy(this.gl,t,n))}createProgram(e){this.throwIfDisposed();let t=this.gl;null==this.vertexShader&&(this.vertexShader=y8(t));let n=mZ(t);mV(t,()=>t.attachShader(n,this.vertexShader)),mV(t,()=>t.attachShader(n,e)),m0(t,n);let r=Object.assign(n,{vao:this.createVertexArray()});return this.debug&&m1(t,r),r}buildVao(e){this.setProgram(e),this.bindVertexArray(e.vao);let t=this.gl;mV(t,()=>t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer)),Sp(t,e,this.vertexBuffer)}deleteProgram(e){this.throwIfDisposed(),e===this.program&&(this.program=null),null!=e&&(mV(this.gl,()=>this.gl.deleteProgram(e)),this.deleteVertexArray(e.vao))}setProgram(e){this.throwIfDisposed(),this.program=e,null!=this.program&&this.debug&&m1(this.gl,this.program),mV(this.gl,()=>this.gl.useProgram(e))}getUniformLocation(e,t,n=!0){return this.throwIfDisposed(),n?yt(this.gl,e,t):yn(this.gl,e,t)}getAttributeLocation(e,t){return this.throwIfDisposed(),mV(this.gl,()=>this.gl.getAttribLocation(e,t))}getUniformLocationNoThrow(e,t){return this.throwIfDisposed(),this.gl.getUniformLocation(e,t)}setInputMatrixTexture(e,t,n){this.throwIfDisposed(),this.throwIfNoProgram(),yr(this.gl,e,t,n)}setOutputMatrixTexture(e,t,n){this.setOutputMatrixTextureDriver(e,n,t)}setOutputPackedMatrixTexture(e,t,n){this.throwIfDisposed();let[r,i]=mz(t,n);this.setOutputMatrixTextureDriver(e,r,i)}setOutputMatrixWriteRegion(e,t,n,r){this.setOutputMatrixWriteRegionDriver(n,e,r,t)}setOutputPackedMatrixWriteRegion(e,t,n,r){throw Error("setOutputPackedMatrixWriteRegion not implemented.")}debugValidate(){null!=this.program&&m1(this.gl,this.program),ys(this.gl)}executeProgram(){this.throwIfDisposed(),this.throwIfNoProgram();let e=this.gl;this.debug&&(console.assert(this.getVertexArray()===this.program.vao,"VAO changed between setProgram and executeProgram!"),this.debugValidate()),mV(e,()=>e.drawElements(e.TRIANGLES,6,e.UNSIGNED_SHORT,0))}blockUntilAllProgramsCompleted(){this.throwIfDisposed(),mV(this.gl,()=>this.gl.finish())}getQueryTimerExtension(){return null==this.disjointQueryTimerExtension&&(this.disjointQueryTimerExtension=mK(this.gl,2===Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")?"EXT_disjoint_timer_query_webgl2":"EXT_disjoint_timer_query")),this.disjointQueryTimerExtension}getQueryTimerExtensionWebGL2(){return this.getQueryTimerExtension()}getQueryTimerExtensionWebGL1(){return this.getQueryTimerExtension()}beginQuery(){if(2===Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")){let e=this.gl,t=this.getQueryTimerExtensionWebGL2(),n=e.createQuery();return e.beginQuery(t.TIME_ELAPSED_EXT,n),n}let e=this.getQueryTimerExtensionWebGL1(),t=e.createQueryEXT();return e.beginQueryEXT(e.TIME_ELAPSED_EXT,t),t}endQuery(){if(2===Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")){let e=this.gl,t=this.getQueryTimerExtensionWebGL2();return void e.endQuery(t.TIME_ELAPSED_EXT)}let e=this.getQueryTimerExtensionWebGL1();e.endQueryEXT(e.TIME_ELAPSED_EXT)}async waitForQueryAndGetTime(e){return await ep.Si.repeatedTry(()=>this.disposed||this.isQueryAvailable(e,Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))),this.getQueryTime(e,Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))}getQueryTime(e,t){if(0===t)return null;if(2===t){let t=this.gl;return t.getQueryParameter(e,t.QUERY_RESULT)/1e6}{let t=this.getQueryTimerExtensionWebGL1();return t.getQueryObjectEXT(e,t.QUERY_RESULT_EXT)/1e6}}isQueryAvailable(e,t){if(0===t)return!0;
822if(2===t){let t=this.gl,n=this.getQueryTimerExtensionWebGL2(),r=t.getQueryParameter(e,t.QUERY_RESULT_AVAILABLE);return null==this.disjoint&&(this.disjoint=this.gl.getParameter(n.GPU_DISJOINT_EXT)),r&&!this.disjoint}{let t=this.getQueryTimerExtensionWebGL1(),n=t.getQueryObjectEXT(e,t.QUERY_RESULT_AVAILABLE_EXT);return null==this.disjoint&&(this.disjoint=this.gl.getParameter(t.GPU_DISJOINT_EXT)),n&&!this.disjoint}}pollFence(e){return new Promise(t=>{this.addItemToPoll(()=>e.isFencePassed(),()=>t())})}pollItems(){let e=function(e){let t=0;for(;t<e.length&&e[t]();++t);return t-1}(this.itemsToPoll.map(e=>e.isDoneFn));for(let t=0;t<=e;++t){let{resolveFn:e}=this.itemsToPoll[t];e()}this.itemsToPoll=this.itemsToPoll.slice(e+1)}addItemToPoll(e,t){let n;this.itemsToPoll.push({isDoneFn:e,resolveFn:t}),this.itemsToPoll.length>1||("setTimeoutCustom"in Object(ep.of)().platform&&(n=Object(ep.of)().platform.setTimeoutCustom.bind(Object(ep.of)().platform)),ep.Si.repeatedTry(()=>(this.pollItems(),0===this.itemsToPoll.length),()=>0,null,n))}bindTextureToFrameBuffer(e){this.throwIfDisposed(),ya(this.gl,e,this.framebuffer),this.debug&&ys(this.gl)}unbindTextureToFrameBuffer(){null!=this.outputTexture?(ya(this.gl,this.outputTexture,this.framebuffer),this.debug&&ys(this.gl)):yo(this.gl,this.framebuffer)}downloadMatrixDriver(e,t){this.bindTextureToFrameBuffer(e);let n=t();return this.unbindTextureToFrameBuffer(),n}setOutputMatrixTextureDriver(e,t,n){this.throwIfDisposed();let r=this.gl;ya(r,e,this.framebuffer),this.debug&&ys(r),this.outputTexture=e,mV(r,()=>r.viewport(0,0,t,n)),mV(r,()=>r.scissor(0,0,t,n))}setOutputMatrixWriteRegionDriver(e,t,n,r){this.throwIfDisposed(),mV(this.gl,()=>this.gl.scissor(e,t,n,r))}throwIfDisposed(){if(this.disposed)throw Error("Attempted to use disposed GPGPUContext.")}throwIfNoProgram(){if(null==this.program)throw Error("No GPU program is currently set.")}}let{addImpl:Sv,bincountImpl:SO,bincountReduceImpl:Sx,bitwiseAndImpl:SI,castImpl:SN,ceilImpl:Sk,concatImpl:ST,equalImpl:Sw,expImpl:Sj,expm1Impl:SF,floorImpl:S_,gatherNdImpl:SE,gatherV2Impl:SR,greaterImpl:SD,greaterEqualImpl:SC,lessImpl:SA,lessEqualImpl:SM,linSpaceImpl:S$,logImpl:SU,maxImpl:SP,maximumImpl:SB,minimumImpl:SL,multiplyImpl:SW,negImpl:Sz,
822notEqualImpl:SG,prodImpl:SV,raggedGatherImpl:SH,raggedRangeImpl:Sq,raggedTensorToTensorImpl:SK,rangeImpl:SX,rsqrtImpl:SY,scatterImpl:SQ,sigmoidImpl:SJ,simpleAbsImpl:SZ,sliceImpl:S0,sparseFillEmptyRowsImpl:S1,sparseReshapeImpl:S2,sparseSegmentReductionImpl:S3,sqrtImpl:S4,staticRegexReplaceImpl:S6,stridedSliceImpl:S5,stringNGramsImpl:S8,stringSplitImpl:S7,stringToHashBucketFastImpl:S9,subImpl:ve,tileImpl:vt,topKImpl:vn,transposeImpl:vr,uniqueImpl:vi}=O;function va(e,t){return["x","y","z","w","u","v"].slice(0,t).map(t=>`${e}.${t}`)}function vo(e,t){return 1===t?[e]:va(e,t)}class vs{constructor(e){if(this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0,this.outputShape=e,this.rank=e.length,this.enableShapeUniforms=yZ(this.outputShape.length),0===this.rank)this.userCode="\n void main() {\n setOutput(vec4(getA(), 0., 0., 0.));\n }\n ";else{let e=vo("rc",this.rank),t=yq(this.rank),n=this.getOutOfBoundsCondition(e),r=this.getSetup(e),i=this.getOutput(e);this.userCode=` 823 void main() { 824 ${t} rc = getOutputCoords(); 825 826 if(${n}) { 827 setOutput(vec4(0)); 828 } else { 829 ${r} 830 831 setOutput(vec4(${i})); 832 } 833 } 834 `}}getSourceCoordsArr(e){let t=[];for(let n=0;n<=1;n++)for(let r=0;r<=1;r++){let i=`${0===n?"r":"rp1"}, ${0===r?"c":"cp1"}`;for(let t=2;t<this.rank;t++)i=e[e.length-1-t]+","+i;t.push(i)}return t}getOutOfBoundsCondition(e){if(1===this.rank)return"rc > "+(this.enableShapeUniforms?"outShape":this.outputShape[0]);let t="";for(let n=this.rank-2;n<this.rank;n++)t+=`${e[n]} >= ${this.enableShapeUniforms?`outShape[${n}]`:this.outputShape[n]}`,n<this.rank-1&&(t+="||");return t}getSetup(e){if(1===this.rank)return"";let t=e.slice(-2),n=this.enableShapeUniforms?`outShape[${this.rank} - 1]`:this.outputShape[this.rank-1],r=this.enableShapeUniforms?`outShape[${this.rank} - 2]`:this.outputShape[this.rank-2];return` 835 int r = ${t[0]}; 836 int c = ${t[1]}; 837 int rp1 = r + 1; 838 int cp1 = c + 1; 839 840 bool cEdge = cp1 >= ${n}; 841 bool rEdge = rp1 >= ${r}; 842 `}getOutput(e){let t=this.getSourceCoordsArr(e);return 1===this.rank?`getA(rc), (rc + 1 >= ${this.enableShapeUniforms?"outShape":this.outputShape[0]} ? 0. : getA(rc + 1)), 0, 0`:`getA(${t[0]}), 843 cEdge ? 0. : getA(${t[1]}), 844 rEdge ? 0. : getA(${t[2]}), 845 rEdge || cEdge ? 0. : getA(${t[3]})`}}class vl{constructor(e,t){var n,r;this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.customUniforms=[{name:"inputShape",type:"ivec3"}],this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length);let i="";for(let e=0;e<4;e++){let t="thisRC = rc;";e%2==1&&(t+="thisRC.z += 1;"),e>1&&(t+="thisRC.y += 1;"),i+=` 846 ${t} 847 ${e>0?"if(thisRC.y < rows && thisRC.z < cols){":""} 848 int flatIndex = getFlatIndex(thisRC); 849 850 ivec3 inputRC = inputCoordsFromReshapedOutCoords(flatIndex); 851 vec2 inputRCInnerDims = vec2(float(inputRC.y),float(inputRC.z)); 852 853 result[${e}] = 854 getChannel(getA(inputRC.x, inputRC.y, inputRC.z), inputRCInnerDims); 855 ${e>0?"}":""} 856 `}this.userCode=` 857 ${n=t,r=this.enableShapeUniforms,` 858 ivec3 inputCoordsFromReshapedOutCoords(int index) { 859 ${r?yD(["r","c","d"],"inputShape"):yE(["r","c","d"],n)} 860 return ivec3(r, c, d); 861 } 862 `} 863 ${this.enableShapeUniforms?"\n int getFlatIndex(ivec3 coords) {\n return coords.x * outShapeStrides[0] + coords.y * outShapeStrides[1] + coords.z;\n }\n":yC(e)} 864 865 void main() { 866 ivec3 rc = getOutputCoords(); 867 868 vec4 result = vec4(0.); 869 870 ivec3 thisRC; 871 int rows = ${this.enableShapeUniforms?"outShape[1]":e[1]}; 872 int cols = ${this.enableShapeUniforms?"outShape[2]":e[2]}; 873 874 ${i} 875 876 setOutput(result); 877 } 878 `}}class vu{constructor(e){this.gpgpu=e,this.numUsedTextures=0,this.numFreeTextures=0,this._numBytesAllocated=0,this._numBytesFree=0,this.freeTextures={},this.usedTextures={},this.logEnabled=!1}acquireTexture(e,t,n){let r,i=vp(t,n),a=vd(e,i,n);a in this.freeTextures||(this.freeTextures[a]=[]),a in this.usedTextures||(this.usedTextures[a]=[]);let o=vc(e,i,this.gpgpu.gl,this.gpgpu.textureConfig,n);if(this.freeTextures[a].length>0){this.numFreeTextures--,this.numUsedTextures++,this._numBytesFree-=o,this.log(
878);let e=this.freeTextures[a].pop();return this.usedTextures[a].push(e),e}return i===u.PACKED_2X2_FLOAT32?r=this.gpgpu.createPackedMatrixTexture(e[0],e[1]):i===u.PACKED_2X2_FLOAT16?r=this.gpgpu.createFloat16PackedMatrixTexture(e[0],e[1]):i===u.UNPACKED_FLOAT32?r=this.gpgpu.createFloat32MatrixTexture(e[0],e[1]):i===u.UNPACKED_FLOAT16?r=this.gpgpu.createFloat16MatrixTexture(e[0],e[1]):i===u.PACKED_4X1_UNSIGNED_BYTE&&(r=this.gpgpu.createUnsignedBytesMatrixTexture(e[0],e[1])),this.usedTextures[a].push(r),this.numUsedTextures++,this._numBytesAllocated+=o,this.log(),r}releaseTexture(e,t,n,r){if(null==this.freeTextures)return;let i=vp(n,r),a=vd(t,i,r);a in this.freeTextures||(this.freeTextures[a]=[]);let o=vc(t,i,this.gpgpu.gl,this.gpgpu.textureConfig,r),s=Object(ep.of)().getNumber("WEBGL_DELETE_TEXTURE_THRESHOLD");-1!==s&&this._numBytesAllocated>s?(this.gpgpu.deleteMatrixTexture(e.texture),this._numBytesAllocated-=o):(this.freeTextures[a].push(e),this.numFreeTextures++,this._numBytesFree+=o),this.numUsedTextures--;let l=this.usedTextures[a],u=l&&l.indexOf(e);if(null==u||u<0)throw Error("Cannot release a texture that was never provided by this texture manager");l[u]=l[l.length-1],l.pop(),this.log()}log(){if(!this.logEnabled)return;let e=this.numFreeTextures+this.numUsedTextures;console.log("Free/Used",`${this.numFreeTextures} / ${this.numUsedTextures}`,`(${e})`);let t=this._numBytesFree/this._numBytesAllocated;console.log("Bytes allocated: "+this._numBytesAllocated),console.log(`Bytes unused: ${this._numBytesFree} (${Math.round(100*t)}%)`)}get numBytesAllocated(){return this._numBytesAllocated}get numBytesFree(){return this._numBytesFree}getNumUsedTextures(){return this.numUsedTextures}getNumFreeTextures(){return this.numFreeTextures}dispose(){if(null!=this.freeTextures){for(let e in this.freeTextures)this.freeTextures[e].forEach(e=>{this.gpgpu.deleteMatrixTexture(e.texture)});for(let e in this.usedTextures)this.usedTextures[e].forEach(e=>{this.gpgpu.deleteMatrixTexture(e.texture)});this.freeTextures=null,this.usedTextures=null,this.numUsedTextures=0,this.numFreeTextures=0,this._numBytesAllocated=0,this._numBytesFree=0}}}function vc(e,t,n,r,i){let a,o=function(e,t){switch(e){case u.PACKED_2X2_FLOAT32:return Ss(t);case u.PACKED_2X2_FLOAT16:return Su(t);case u.UNPACKED_FLOAT32:return St(t);case u.UNPACKED_FLOAT16:return Sr(t);case u.PACKED_4X1_UNSIGNED_BYTE:return Sa(t);default:throw Error("Unknown physical texture type "+e)}}(t,r);if(i){let[t,n]=mz(e[0],e[1]);a=t*n}else{let[t,n]=mL(e[0],e[1]);a=t*n}return a*function(e,t){let n=e;if(t===n.R32F)return 4;if(t===n.R16F)return 2;if(t===n.RGBA32F||t===e.RGBA)return 16;if(t===n.RGBA16F)return 8;if(t===n.RGBA8)return 4;throw Error("Unknown internal format "+t)}(n,o)}function vp(e,t){if(e===l.UPLOAD)return u.PACKED_2X2_FLOAT32;if(e===l.RENDER||null==e)return function(e){return Object(ep.of)().getBool("WEBGL_RENDER_FLOAT32_ENABLED")?e?u.PACKED_2X2_FLOAT32:u.UNPACKED_FLOAT32:e?u.PACKED_2X2_FLOAT16:u.UNPACKED_FLOAT16}(t);if(e===l.DOWNLOAD||e===l.PIXELS)return u.PACKED_4X1_UNSIGNED_BYTE;throw Error("Unknown logical texture type "+e)}function vd(e,t,n){return`${e[0]}_${e[1]}_${t}_${n}`}class vf{constructor(e,t){this.variableNames=["A"],this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length),this.userCode=` 879 float unaryOperation(float x) { 880 ${t} 881 } 882 883 void main() { 884 float x = getAAtOutCoords(); 885 float y = unaryOperation(x); 886 887 setOutput(y); 888 } 889 `}}let vh="return abs(x);",vg="return x;";class vb{constructor(e,t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length),this.userCode=` 890 vec4 unaryOperation(vec4 x) { 891 ${t} 892 } 893 894 void main() { 895 vec4 x = getAAtOutCoords(); 896 vec4 y = unaryOperation(x); 897 898 setOutput(y); 899 } 900 `}}class vm{constructor(e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!1,this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length);let t=e.length,n=vo("rc",t),r=yq(t),i=function(e,t){if(1===e)return"rc";let n="";for(let r=0;r<e;r++)n+=t[r],r<e-1&&(n+=",");return n}(t,n),a=n.slice(-2),o=t<=1?"rc":`vec2(${a.join(",")})`;this.userCode=` 901 void main() { 902 ${r} rc = getOutputCoords(); 903 vec4 packedInput = getA(${i}); 904 905 setOutput(getChannel(packedInput, ${o})); 906 } 907 `}}let vy=ep.Yf.whereImpl,vS={},vv=Object(ep.of)().getNumber("CPU_HANDOFF_SIZE_THRESHOLD");class vO extends ep.Hb{nextDataId(){return vO.nextDataId++}constructor(e){var t;let n;if(super(),this.pendingRead=new WeakMap,this.pendingDisposal=new WeakSet,this.dataRefCount=new WeakMap,this.numBytesInGPU=0,this.uploadWaitMs=0,this.downloadWaitMs=0,this.lastGlFlushTime=0,this.warnedAboutMemory=!1,this.pendingDeletes=0,this.disposed=!1,!Object(ep.of)().getBool("HAS_WEBGL"))throw Error("WebGL is not supported on this device");null!=e?(n=e instanceof SS?e:new SS(mB(Object(ep.of)().getNumber("WEBGL_VERSION"),e)),this.binaryCache={},this.gpgpuCreatedLocally=!1):(n=new SS(mB(Object(ep.of)().getNumber("WEBGL_VERSION"))),this.binaryCache=((t=Object(ep.of)().getNumber("WEBGL_VERSION"))in vS||(vS[t]={}),vS[t]),this.gpgpuCreatedLocally=!0),this.gpgpu=n,this.canvas=this.gpgpu.gl.canvas,this.textureManager=new vu(this.gpgpu),this.numMBBeforeWarning=null==Object(ep.of)().global.screen?1024:Object(ep.of)().global.screen.height*Object(ep.of)().global.screen.width*window.devicePixelRatio*600/1024/1024,this.texData=new ep.T(this,Object(ep.mf)())}numDataIds(){return this.texData.numDataIds()-this.pendingDeletes}writeTexture(e,t,n,r,i,a){let o=this.makeTensorInfo(t,n),s=this.texData.get(o.dataId);s.isPacked=!1,s.texture={texture:e,texShape:[r,i]},s.texShape=[r,i];let l=new y6(yf(t),!1,a),u=this.runWebGLProgram(l,[o],n,[[r,i]]);return u.shape=t,s.texture=null,this.disposeIntermediateTensorInfo(o),u.dataId}write(e,t,n){if((Object(ep.of)().getBool("WEBGL_CHECK_NUMERICAL_PROBLEMS")||Object(ep.of)().getBool("DEBUG"))&&this.checkNumericalProblems(e),"complex64"===n&&null!=e)throw Error("Cannot write to a complex64 dtype. Please use tf.complex(real, imag).");let r={id:this.nextDataId()};return this.texData.set(r,{shape:t,dtype:n,values:e,usage:l.UPLOAD,refCount:1}),r}refCount(e){return this.texData.has(e)?this.texData.get(e).refCount:0}incRef(e){this.texData.get(e).refCount++}decRef(e){this.texData.has(e)&&this.texData.get(e).refCount--}move(e,t,n,r,i){if(Object(ep.of)().getBool("DEBUG")&&this.checkNumericalProblems(t),"complex64"===r)throw Error("Cannot write to a complex64 dtype. Please use tf.complex(real, imag).");this.texData.set(e,{shape:n,dtype:r,values:t,usage:l.UPLOAD,refCount:i})}disposeIntermediateTensorInfo(e){this.disposeData(e.dataId)}readSync(e){let t,n,{values:r,dtype:i,complexTensorInfos:a,slice:o,shape:s,isPacked:l}=this.texData.get(e);if(null!=o){let t;t=l?new vb(s,vg):new vf(s,vg);let n=this.runWebGLProgram(t,[{dataId:e,shape:s,dtype:i}],i),r=this.readSync(n.dataId);return this.disposeIntermediateTensorInfo(n),r}if(null!=r)return this.convertAndCacheOnCPU(e);if("string"===i)return r;let u=null!=this.activeTimers;if(u&&(t=ep.Si.now()),"complex64"===i){let e=this.readSync(a.real.dataId),t=this.readSync(a.imag.dataId);n=ep.ie.mergeRealAndImagArrays(e,t)}else n=this.getValuesFromTexture(e);return u&&(this.downloadWaitMs+=ep.Si.now()-t),this.convertAndCacheOnCPU(e,n)}async read(e){if(this.pendingRead.has(e)){let t=this.pendingRead.get(e);return new Promise(e=>t.push(e))}let{values:t,shape:n,slice:r,dtype:i,complexTensorInfos:a,isPacked:o}=this.texData.get(e);if(null!=r){let t;t=o?new vb(n,vg):new vf(n,vg);let r=this.runWebGLProgram(t,[{dataId:e,shape:n,dtype:i}],i),a=this.read(r.dataId);return this.disposeIntermediateTensorInfo(r),a}if(null!=t)return this.convertAndCacheOnCPU(e);if(Object(ep.of)().getBool("DEBUG")&&!Object(ep.of)().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")&&2===Object(ep.of)().getNumber("WEBGL_VERSION"))throw Error("tensor.data() with WEBGL_DOWNLOAD_FLOAT_ENABLED=false and WEBGL_VERSION=2 not yet supported.");let s,l,u=null;if("complex64"!==i&&Object(ep.of)().get("WEBGL_BUFFER_SUPPORTED")){s=this.decode(e);let t=this.texData.get(s.dataId);u=this.gpgpu.createBufferFromTexture(t.texture.texture,...mW(n))}if(this.pendingRead.set(e,[]),"complex64"!==i&&await this.gpgpu.createAndWaitForFence(),"complex64"===i){let e=await Promise.all([this.read(a.real.dataId),this.read(a.imag.dataId)]),t=e[0],n=e[1];l=ep.ie.mergeRealAndImagArrays(t,n)}else if(null==u)l=this.getValuesFromTexture(e);else{let e=ep.Si.sizeFromShape(n);l=this.gpgpu.downloadFloat32MatrixFromBuffer(u,e)}if(null!=s&&this.disposeIntermediateTensorInfo(s),null!=u){let e=this.gpgpu.gl;mV(e,()=>e.deleteBuffer(u))}let c=this.convertAndCacheOnCPU(e,l),p=this.pendingRead.get(e);
907return this.pendingRead.delete(e),p.forEach(e=>e(c)),this.pendingDisposal.has(e)&&(this.pendingDisposal.delete(e),this.disposeData(e)&&Object(ep.mf)().removeDataId(e,this),this.pendingDeletes--),c}readToGPU(e,t={}){let{values:n,shape:r,slice:i,dtype:a,isPacked:o,texture:s}=this.texData.get(e);if("complex64"===a)throw Error("Does not support reading texture for complex64 dtype.");if(null!=i){let n;n=o?new vb(r,vg):new vf(r,vg);let i=this.runWebGLProgram(n,[{dataId:e,shape:r,dtype:a}],a),s=this.readToGPU(i,t);return this.disposeIntermediateTensorInfo(i),s}if(null==s)throw null!=n?Error("Data is not on GPU but on CPU."):Error("There is no data on GPU or CPU.");let l=this.decode(e,t.customTexShape);return Object.assign({tensorRef:Object(ep.mf)().makeTensorFromTensorInfo(l)},this.texData.get(l.dataId).texture)}bufferSync(e){let t=this.readSync(e.dataId);if("string"===e.dtype)try{let n=t.map(e=>ep.Si.decodeString(e));return Object(ep.we)(e.shape,e.dtype,n)}catch(e){throw Error("Failed to decode encoded string bytes into utf-8")}return Object(ep.we)(e.shape,e.dtype,t)}checkNumericalProblems(e){if(null!=e)for(let t=0;t<e.length;t++){let n=e[t];if(!mH(n)){if(Object(ep.of)().getBool("WEBGL_RENDER_FLOAT32_CAPABLE"))throw Error(`The value ${n} cannot be represented with your current settings. Consider enabling float32 rendering: 'tf.env().set('WEBGL_RENDER_FLOAT32_ENABLED', true);'`);throw Error(`The value ${n} cannot be represented on this device.`)}}}getValuesFromTexture(e){let{shape:t,dtype:n,isPacked:r}=this.texData.get(e),i=ep.Si.sizeFromShape(t);if(Object(ep.of)().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")){let n=this.decode(e),r=this.texData.get(n.dataId),a=this.gpgpu.downloadMatrixFromPackedTexture(r.texture.texture,...mW(t)).subarray(0,i);return this.disposeIntermediateTensorInfo(n),a}let a=Object(ep.of)().getBool("WEBGL_PACK")&&!0===r,o=a?yf(t):t,s=a?new y3(o):new y2(o),l=this.runWebGLProgram(s,[{shape:o,dtype:n,dataId:e}],"float32"),u=this.texData.get(l.dataId),c=this.gpgpu.downloadByteEncodedFloatMatrixFromOutputTexture(u.texture.texture,u.texShape[0],u.texShape[1]).subarray(0,i);return this.disposeIntermediateTensorInfo(l),c}timerAvailable(){return Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0}time(e){let t=this.activeTimers,n=[],r=!1;null==this.programTimersStack?(this.programTimersStack=n,r=!0):this.activeTimers.push(n),this.activeTimers=n,e();let i=ep.Si.flatten(this.activeTimers.map(e=>e.query)).filter(e=>null!=e),a=ep.Si.flatten(this.activeTimers.map(e=>e.name)).filter(e=>null!=e);this.activeTimers=t,r&&(this.programTimersStack=null);let o={uploadWaitMs:this.uploadWaitMs,downloadWaitMs:this.downloadWaitMs,kernelMs:null,wallMs:null};return(async()=>{if(Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0){let e=await Promise.all(i);o.kernelMs=ep.Si.sum(e),o.getExtraProfileInfo=()=>e.map((e,t)=>({name:a[t],ms:e})).map(e=>`${e.name}: ${e.ms}`).join(", ")}else o.kernelMs={error:"WebGL query timers are not supported in this environment."};return this.uploadWaitMs=0,this.downloadWaitMs=0,o})()}memory(){return{unreliable:!1,numBytesInGPU:this.numBytesInGPU,numBytesInGPUAllocated:this.textureManager.numBytesAllocated,numBytesInGPUFree:this.textureManager.numBytesFree}}startTimer(){return Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?this.gpgpu.beginQuery():{startMs:ep.Si.now(),endMs:null}}endTimer(e){return Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?this.gpgpu.endQuery():e.endMs=ep.Si.now(),e}async getQueryTime(e){if(Object(ep.of)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0)return this.gpgpu.waitForQueryAndGetTime(e);let t=e;return t.endMs-t.startMs}disposeData(e,t=!1){if(this.pendingDisposal.has(e))return!1;if(!this.texData.has(e))return!0;if(t?this.texData.get(e).refCount=0:this.texData.get(e).refCount--,!t&&this.texData.get(e).refCount>0)return!1;if(this.pendingRead.has(e))return this.pendingDisposal.add(e),this.pendingDeletes++,!1;this.releaseGPUData(e);let{complexTensorInfos:n}=this.texData.get(e);return null!=n&&(this.disposeData(n.real.dataId,t),this.disposeData(n.imag.dataId,t)),this.texData.delete(e),!0}releaseGPUData(e){let{texture:t,dtype:n,texShape:r,usage:i,isPacked:a,slice:o}=this.texData.get(e),s=o&&o.origDataId||e,l=this.dataRefCount.get(s);l>1?this.dataRefCount.set(s,l-1):(this.dataRefCount.delete(s),null!=t&&(this.numBytesInGPU-=this.computeBytes(r,n),this.textureManager.releaseTexture(t,r,i,a)));let u=this.texData.get(e);u.texture=null,u.texShape=null,u.isPacked=!1,u.slice=null}getTexture(e){return this.uploadToGPU(e),this.texData.get(e).texture.texture}getDataInfo(e){return this.texData.get(e)}shouldExecuteOnCPU(e,t=vv){return Object(ep.of)().getBool("WEBGL_CPU_FORWARD")&&e.every(e=>null==this.texData.get(e.dataId).texture&&ep.Si.sizeFromShape(e.shape)<t)}getGPGPUContext(){return this.gpgpu}where(e){ep.ie.warn("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");let t=e.dataSync();return vy(e.shape,t)}packedUnaryOp(e,t,n){let r=new vb(e.shape,t),i=this.compileAndRun(r,[e],n);return Object(ep.mf)().makeTensorFromTensorInfo(i)}abs(e){if(this.shouldExecuteOnCPU([e])&&"complex64"!==e.dtype){let t=SZ(this.texData.get(e.dataId).values);return this.makeOutput(e.shape,e.dtype,t)}if(Object(ep.of)().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(e,vh,e.dtype);let t=new vf(e.shape,vh),n=this.compileAndRun(t,[e]);return Object(ep.mf)().makeTensorFromTensorInfo(n)}makeTensorInfo(e,t,n){let r;if("string"===t&&null!=n&&n.length>0&&ep.Si.isString(n[0])){let i=n.map(e=>ep.Si.encodeString(e));r=this.write(i,e,t)}else r=this.write(n,e,t);return this.texData.get(r).usage=null,{dataId:r,shape:e,dtype:t}}makeOutput(e,t,n){return Object(ep.mf)().makeTensorFromTensorInfo(this.makeTensorInfo(e,t,n),this)}unpackTensor(e){let t=new vm(e.shape);return this.runWebGLProgram(t,[e],e.dtype)}packTensor(e){let t=new vs(e.shape);return this.runWebGLProgram(t,[e],e.dtype,null,!0)}packedReshape(e,t){let n=[yp(e.shape),...yd(e.shape)],r={dtype:e.dtype,shape:n,dataId:e.dataId},i=new vl([yp(t),...yd(t)],n),a=[n],o=this.runWebGLProgram(i,[r],e.dtype,a,!0);return{dataId:o.dataId,shape:t,dtype:o.dtype}}decode(e,t){let n,{isPacked:r,shape:i,dtype:a}=this.texData.get(e);if(null!=t){let e=ep.Si.sizeFromShape(i),n=t[0]*t[1]*4;ep.Si.assert(e<=n,()=>"customTexShape is too small. Row * Column * 4 should be equal or larger than the size of the tensor data.")}let o=yf(i);n=r?new y1(o):new y0(o);let s=[null!=t?t:mW(o)];return{dtype:a,shape:i,dataId:this.runWebGLProgram(n,[{shape:o,dtype:a,dataId:e}],a,s,!0,t).dataId}}runWebGLProgram(e,t,n,r,i=!1,a){let o,l=this.makeTensorInfo(e.outputShape,n),u=this.texData.get(l.dataId);if(e.packedOutput&&(u.isPacked=!0),e.outPackingScheme===s.DENSE&&(u.texS
907hape=(null!=a?a:mW(e.outputShape)).map(e=>2*e)),null!=e.outTexUsage&&(u.usage=e.outTexUsage),0===ep.Si.sizeFromShape(l.shape))return u.values=ep.Si.getTypedArrayFromDType(l.dtype,0),l;let c=[],p=t.map(t=>{if("complex64"===t.dtype)throw Error("GPGPUProgram does not support complex64 input. For complex64 dtypes, please separate the program into real and imaginary parts.");let n=this.texData.get(t.dataId);if(null==n.texture){if(!e.packedInputs&&ep.Si.sizeFromShape(t.shape)<=Object(ep.of)().getNumber("WEBGL_SIZE_UPLOAD_UNIFORM"))return{shape:t.shape,texData:null,isUniform:!0,uniformValues:n.values};e.packedInputs&&(n.isPacked=!0,n.shape=t.shape)}if(this.uploadToGPU(t.dataId),!!n.isPacked!=!!e.packedInputs)t=n.isPacked?this.unpackTensor(t):this.packTensor(t),c.push(t),n=this.texData.get(t.dataId);else if(n.isPacked&&!yb(n.shape,t.shape)){let e=t,r=t.shape;t.shape=n.shape,t=this.packedReshape(t,r),c.push(t),n=this.texData.get(t.dataId),e.shape=r}return{shape:t.shape,texData:n,isUniform:!1}});this.uploadToGPU(l.dataId);let d={shape:l.shape,texData:u,isUniform:!1},f=function(e,t,n){let r="";t.concat(n).forEach(t=>{let i=null!=t.texData&&null!=t.texData.slice&&t.texData.slice.flatOffset>0;if(e.enableShapeUniforms&&!t.isUniform){let a=t.texData.texShape,{useSqueezeShape:o,uniformShape:s,keptDims:l}=yK(e.packedInputs,t.shape,a),u="",c="",p="";if(1===s.length&&e.packedInputs){let e=[Math.ceil(a[0]/2),Math.ceil(a[1]/2)];u=`${e[0]>1}_${e[1]>1}`}else if(2!==s.length||e.packedInputs){if(s.length>2&&!e.packedInputs){let e=ep.Si.computeStrides(s);p=`${e[0]===a[1]}_${e[e.length-1]===a[1]}`}}else c=`${s[0]>1}_${s[1]>1}`;let d=t.shape.length,f=2===s.length&&ep.Si.arraysEqual(t.shape,a),h=1===ep.Si.sizeFromShape(t.shape),g=ep.ie.getBroadcastDims(t.shape,n.shape),b=!e.packedInputs&&d===n.shape.length&&ep.Si.arraysEqual(a,n.texData.texShape),m=e.packedInputs||s.length>2?"":`${a[0]>1}_${a[1]>1}`;r+=`${d}_${b}_${o?l:""}_${s.length}_${h}_${g}_${f}_${u}_${c}_${p}_${m}_${i}`}else{let e=t.isUniform?"uniform":t.texData.texShape;r+=`${t.shape}_${e}_${i}`}});let i=e.userCode;return e.constructor.name+("_"+r+"_"+i)+Object(ep.of)().getNumber("WEBGL_VERSION")}(e,p,d),h=this.getAndSaveBinary(f,()=>(function(e,t,n,r){let i=n.map((e,n)=>{let r={logicalShape:e.shape,texShape:e.isUniform?null:e.texData.texShape,isUniform:e.isUniform,isPacked:!e.isUniform&&e.texData.isPacked,flatOffset:null};return null!=e.texData&&null!=e.texData.slice&&e.texData.slice.flatOffset>0&&(r.flatOffset=e.texData.slice.flatOffset),{name:t.variableNames[n],shapeInfo:r}}),a=i.map(e=>e.shapeInfo),o={logicalShape:r.shape,texShape:r.texData.texShape,isUniform:!1,isPacked:r.texData.isPacked,flatOffset:null},s=y$(i,o,t),l=mY(e.gl,s),u=e.createProgram(l);return Object(ep.of)().get("ENGINE_COMPILE_ONLY")?{program:t,fragmentShader:l,source:s,webGLProgram:u,inShapeInfos:a,outShapeInfo:o,variablesLocations:null,customUniformLocations:null,infLoc:null,nanLoc:null,outShapeLocation:null,outShapeStridesLocation:null,outTexShapeLocation:null}:(e.buildVao(u),Object.assign({program:t,fragmentShader:l,source:s,webGLProgram:u,inShapeInfos:a,outShapeInfo:o},yQ(e,t,u)))})(this.gpgpu,e,p,d)),g=null!=this.activeTimers;g&&(o=this.startTimer()),Object(ep.of)().get("ENGINE_COMPILE_ONLY")||function(e,t,n,r,i){t.program.enableShapeUniforms||(yJ(t.inShapeInfos,n),yJ([t.outShapeInfo],[r]));let a=r.texData.texture,o=r.texData.texShape;r.texData.isPacked?e.setOutputPackedMatrixTexture(a.texture,o[0],o[1]):e.setOutputMatrixTexture(a.texture,o[0],o[1]),e.setProgram(t.webGLProgram),e.bindVertexArray(t.webGLProgram.vao),1===Object(ep.of)().getNumber("WEBGL_VERSION")&&null!==t.infLoc&&e.gl.uniform1f(t.infLoc,1/0),null!==t.nanLoc&&e.gl.uniform1f(t.nanLoc,NaN);for(let r=0;r<n.length;++r){let i=n[r],{uniform:a,offset:o,shape:s,texShape:l}=t.variablesLocations[r];if(s){let{uniformShape:n}=yK(t.program.packedInputs,i.shape,i.texData.texShape);switch(n.length){case 1:e.gl.uniform1iv(s,new Int32Array(n));break;case 2:e.gl.uniform2iv(s,new Int32Array(n));break;case 3:e.gl.uniform3iv(s,new Int32Array(n));break;case 4:e.gl.uniform4iv(s,new Int32Array(n))}}if(l&&e.gl.uniform2i(l,i.texData.texShape[0],i.texData.texShape[1]),null!=a)if(i.isUniform)if(2>ep.Si.sizeFromShape(i.shape))e.gl.uniform1f(a,i.uniformValues[0]);else{let t=i.uniformValues;t instanceof Float32Array||(t=new Float32Array(t)),e.gl.uniform1fv(a,t)}else null!=i.texData.slice&&null!=o&&e.gl.uniform1i(o,i.texData.slice.flatOffset),e.setInputMatrixTexture(i.texData.texture.texture,a,r)}let s=t.outShapeLocation;if(s)switch(r.shape.length){case 1:e.gl.uniform1iv(s,new Int32Array(r.shape));break;case 2:e.gl.uniform2iv(s,new Int32Array(r.shape));break;case 3:e.gl.uniform3iv(s,new Int32Array(r.shape));break;case 4:e.gl.uniform4iv(s,new Int32Array(r.shape))}if(t.outShapeStridesLocation){let n=ep.Si.computeStrides(r.shape);switch(r.shape.length){case 2:e.gl.uniform1iv(t.outShapeStridesLocation,new Int32Array(n));break;case 3:e.gl.uniform2iv(t.outShapeStridesLocation,new Int32Array(n));break;case 4:e.gl.uniform3iv(t.outShapeStridesLocation,new Int32Array(n))}}if(t.outTexShapeLocation&&e.gl.uniform2i(t.outTexShapeLocation,r.texData.texShape[0],r.texData.texShape[1]),t.program.customUniforms&&i)for(let n=0;n<t.program.customUniforms.length;++n){let r=t.program.customUniforms[n],a=t.customUniformLocations[n],o=i[n];if("float"===r.type)e.gl.uniform1fv(a,o);else if("vec2"===r.type)e.gl.uniform2fv(a,o);else if("vec3"===r.type)e.gl.uniform3fv(a,o);else if("vec4"===r.type)e.gl.uniform4fv(a,o);else if("int"===r.type)e.gl.uniform1iv(a,o);else if("ivec2"===r.type)e.gl.uniform2iv(a,o);else if("ivec3"===r.type)e.gl.uniform3iv(a,o);else{if("ivec4"!==r.type)throw Error(`uniform type ${r.type} is not supported yet.`);e.gl.uniform4iv(a,o)}}e.executeProgram()}
907(this.gpgpu,h,p,d,r),c.forEach(e=>this.disposeIntermediateTensorInfo(e)),g&&(o=this.endTimer(o),this.activeTimers.push({name:e.constructor.name,query:this.getQueryTime(o)}));let b=Object(ep.of)().getNumber("WEBGL_FLUSH_THRESHOLD");if(b>0){let e=ep.Si.now();e-this.lastGlFlushTime>b&&(this.gpgpu.gl.flush(),this.lastGlFlushTime=e)}if(!Object(ep.of)().getBool("WEBGL_LAZILY_UNPACK")&&u.isPacked&&!1===i){let e=this.unpackTensor(l);return this.disposeIntermediateTensorInfo(l),e}return l}compileAndRun(e,t,n,r,i=!1){return n=n||t[0].dtype,this.runWebGLProgram(e,t,n,r,i)}getAndSaveBinary(e,t){return e in this.binaryCache||(this.binaryCache[e]=t()),this.binaryCache[e]}getTextureManager(){return this.textureManager}dispose(){this.disposed||(Object(ep.of)().getBool("IS_TEST")||Object.keys(this.binaryCache).forEach(e=>{this.gpgpu.deleteProgram(this.binaryCache[e].webGLProgram),delete this.binaryCache[e]}),this.textureManager.dispose(),null!=this.canvas&&"undefined"!=typeof HTMLCanvasElement&&this.canvas instanceof HTMLCanvasElement?this.canvas.remove():this.canvas=null,this.gpgpuCreatedLocally&&(this.gpgpu.program=null,this.gpgpu.dispose()),this.disposed=!0)}floatPrecision(){return null==this.floatPrecisionValue&&(this.floatPrecisionValue=Object(ep.Ei)(()=>{if(!Object(ep.of)().get("WEBGL_RENDER_FLOAT32_ENABLED")){let e=Object(ep.of)().getBool("DEBUG");Object(ep.of)().set("DEBUG",!1);let t=this.abs(Object(ep.Fh)(1e-8)).dataSync()[0];if(Object(ep.of)().set("DEBUG",e),t>0)return 32}return 16})),this.floatPrecisionValue}epsilon(){return 32===this.floatPrecision()?1e-7:1e-4}uploadToGPU(e){let t,n=this.texData.get(e),{shape:r,dtype:i,values:a,texture:o,usage:s,isPacked:u}=n;if(null!=o)return;let c=null!=this.activeTimers;c&&(t=ep.Si.now());let p=n.texShape;if(null==p&&(n.texShape=p=yh(r,u)),null!=a){let e=yf(r),o,s=p[1],d=p[0],f=a instanceof Uint8Array||a instanceof Uint8ClampedArray;!u&&f||([s,d]=mz(p[0],p[1])),o=u?new y5(e,f):new y6(e,f);let h=f?[d,s]:p,g=this.makeTensorInfo(h,i),b=this.texData.get(g.dataId);b.usage=f?l.PIXELS:l.UPLOAD,b.texShape=h,this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(g.dataId),s,d,a);let m=[[d,s]],y=!0,S=this.runWebGLProgram(o,[g],i,m,y),v=this.texData.get(S.dataId);n.texShape=v.texShape,n.isPacked=v.isPacked,n.usage=v.usage,Object(ep.of)().get("ENGINE_COMPILE_ONLY")?this.disposeData(S.dataId):(n.texture=v.texture,n.values=null,this.texData.delete(S.dataId)),this.disposeIntermediateTensorInfo(g),c&&(this.uploadWaitMs+=ep.Si.now()-t)}else n.texture=this.acquireTexture(p,s,i,u)}convertAndCacheOnCPU(e,t){let n=this.texData.get(e),{dtype:r}=n;return null!=t&&(n.values=function(e,t){if("float32"===t||"complex64"===t)return e;if("int32"===t||"bool"===t){let n="int32"===t?new Int32Array(e.length):new Uint8Array(e.length);for(let t=0;t<n.length;++t)n[t]=Math.round(e[t]);return n}throw Error("Unknown dtype "+t)}(t,r)),n.values}acquireTexture(e,t,n,r){if(this.numBytesInGPU+=this.computeBytes(e,n),!this.warnedAboutMemory&&this.numBytesInGPU>1024*this.numMBBeforeWarning*1024){let e=(this.numBytesInGPU/1024/1024).toFixed(2);this.warnedAboutMemory=!0,console.warn(`High memory usage in GPU: ${e} MB, most likely due to a memory leak`)}return this.textureManager.acquireTexture(e,t,r)}computeBytes(e,t){return e[0]*e[1]*ep.Si.bytesPerElement(t)}checkCompileCompletion(){for(let[,e]of Object.entries(this.binaryCache))this.checkCompletion_(e)}async checkCompileCompletionAsync(){let e=[];
907if(this.gpgpu.parallelCompilationExtension){for(let[,t]of Object.entries(this.binaryCache))e.push(this.checkCompletionAsync_(t));return Promise.all(e)}for(let[,t]of Object.entries(this.binaryCache)){let n=new Promise(e=>{try{this.checkCompletion_(t),e(!0)}catch(e){throw e}});e.push(n)}return Promise.all(e)}async checkCompletionAsync_(e){return this.gpgpu.gl.getProgramParameter(e.webGLProgram,this.gpgpu.parallelCompilationExtension.COMPLETION_STATUS_KHR)?this.checkCompletion_(e):(await Object(ep.Kg)(),this.checkCompletionAsync_(e))}checkCompletion_(e){if(!1===this.gpgpu.gl.getProgramParameter(e.webGLProgram,this.gpgpu.gl.LINK_STATUS)){if(console.log(this.gpgpu.gl.getProgramInfoLog(e.webGLProgram)),!1===this.gpgpu.gl.getShaderParameter(e.fragmentShader,this.gpgpu.gl.COMPILE_STATUS))throw mJ(e.source,this.gpgpu.gl.getShaderInfoLog(e.fragmentShader)),Error("Failed to compile fragment shader.");throw Error("Failed to link vertex and fragment shaders.")}return!0}getUniformLocations(){for(let e of Object.values(this.binaryCache)){this.gpgpu.buildVao(e.webGLProgram);let{variablesLocations:t,customUniformLocations:n,infLoc:r,nanLoc:i,outShapeLocation:a,outShapeStridesLocation:o,outTexShapeLocation:s}=yQ(this.gpgpu,e.program,e.webGLProgram);e.variablesLocations=t,e.customUniformLocations=n,e.infLoc=r,e.nanLoc=i,e.outShapeLocation=a,e.outShapeStridesLocation=o,e.outTexShapeLocation=s}}createTensorFromGPUData(e,t,n){e.channels=e.channels||"RGBA";let{texture:r,height:i,width:a,channels:o}=e,s=Object(ep.mf)().backend;if(!s.gpgpu.gl.isTexture(r))throw Error("The texture is invalid. Also, please make sure the texture and the TFJS WebGL backend are using the same canvas. If you want to use your own custom canvas, you have to create and use the custom TFJS WebGL backend created from the canvas through 'new tf.MathBackendWebGL(customCanvas)'.");let l=s.writeTexture(r,t,n,i,a,o);return Object(ep.mf)().makeTensorFromDataId(l,t,n,s)}}vO.nextDataId=0;let vx="4.22.0";function vI(){Object(ep.of)().set("WEBGL_FORCE_F16_TEXTURES",!0)}ep.Xe.isBrowser()&&Object(ep.qh)("webgl",()=>new vO,2);let vN={forceHalfFloat:vI};class vk{constructor(e,t,n){this.variableNames=["A","B"],this.outputShape=ep.ie.assertAndGetBroadcastShape(t,n),this.enableShapeUniforms=yZ(this.outputShape.length),this.userCode=` 908 float binaryOperation(float a, float b) { 909 ${e} 910 } 911 912 void main() { 913 float a = getAAtOutCoords(); 914 float b = getBAtOutCoords(); 915 setOutput(binaryOperation(a, b)); 916 } 917 `}}let vT="\n result.r = isNaN.r ? NAN : result.r;\n result.g = isNaN.g ? NAN : result.g;\n result.b = isNaN.b ? NAN : result.b;\n result.a = isNaN.a ? NAN : result.a;\n";class vw{constructor(e,t,n,r=!1){this.variableNames=["A","B"],this.supportsBroadcasting=!0,this.packedInputs=!0,this.packedOutput=!0,this.outputShape=ep.ie.assertAndGetBroadcastShape(t,n);let i=this.outputShape.length;this.enableShapeUniforms=yZ(i);let a="";if(r)if(0===i||1===ep.Si.sizeFromShape(this.outputShape))a="\n result.y = 0.;\n result.z = 0.;\n result.w = 0.;\n ";else if(a=` 918 ${yq(i)} coords = getOutputCoords(); 919 `,1===i)this.enableShapeUniforms?a+="\n result.y = (coords + 1) >= outShape ? 0. : result.y;\n result.z = 0.;\n result.w = 0.;\n ":a+=` 920 result.y = (coords + 1) >= ${this.outputShape[0]} ? 0. : result.y; 921 result.z = 0.; 922 result.w = 0.; 923 `;else{let e=vo("coords",i);this.enableShapeUniforms?a+=` 924 bool nextRowOutOfBounds = 925 (${e[i-2]} + 1) >= outShape[${i} - 2]; 926 bool nextColOutOfBounds = 927 (${e[i-1]} + 1) >= outShape[${i} - 1]; 928 result.y = nextColOutOfBounds ? 0. : result.y; 929 result.z = nextRowOutOfBounds ? 0. : result.z; 930 result.w = nextColOutOfBounds || nextRowOutOfBounds ? 0. : result.w; 931 `:a+=` 932 bool nextRowOutOfBounds = 933 (${e[i-2]} + 1) >= ${this.outputShape[i-2]}; 934 bool nextColOutOfBounds = 935 (${e[i-1]} + 1) >= ${this.outputShape[i-1]}; 936 result.y = nextColOutOfBounds ? 0. : result.y; 937 result.z = nextRowOutOfBounds ? 0. : result.z; 938 result.w = nextColOutOfBounds || nextRowOutOfBounds ? 0. : result.w; 939 `}this.userCode=` 940 vec4 binaryOperation(vec4 a, vec4 b) { 941 ${e} 942 } 943 944 void main() { 945 vec4 a = getAAtOutCoords(); 946 vec4 b = getBAtOutCoords(); 947 948 vec4 result = binaryOperation(a, b); 949 ${a} 950 951 setOutput(result); 952 } 953 `}}function vj(e){let{inputs:t,backend:n}=e,{x:r}=t;return n.incRef(r.dataId),{dataId:r.dataId,shape:r.shape,dtype:r.dtype}}
953let vF={kernelName:ep.Cb,backendName:"webgl",kernelFunc:vj};function v_(e){let{inputs:t,backend:n}=e,{real:r,imag:i}=t,a=n.makeTensorInfo(r.shape,"complex64"),o=n.texData.get(a.dataId);return o.complexTensorInfos={real:vj({inputs:{x:r},backend:n}),imag:vj({inputs:{x:i},backend:n})},a}let vE={kernelName:ep.F,backendName:"webgl",kernelFunc:v_},vR="return (a < 0.) ? b * a : a;",vD="\n vec4 aLessThanZero = vec4(lessThan(a, vec4(0.)));\n return (aLessThanZero * (b * a)) + ((vec4(1.0) - aLessThanZero) * a);\n",vC={kernelName:ep.Kb,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{alpha:a}=r,o=n.makeTensorInfo([],"float32",ep.Si.createScalarValue(a,"float32")),s=Object(ep.of)().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new vw(vD,i.shape,o.shape):new vk(vR,i.shape,o.shape),l=n.runWebGLProgram(s,[i,o],"float32");return n.disposeIntermediateTensorInfo(o),l}},vA="return (a < 0.) ? b * a : a;",vM="\n vec4 aLessThanZero = vec4(lessThan(a, vec4(0.)));\n return (aLessThanZero * (b * a)) + ((vec4(1.
9530) - aLessThanZero) * a);\n",v$={kernelName:ep.Ac,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{x:r,alpha:i}=t,a=Object(ep.of)().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new vw(vM,r.shape,i.shape):new vk(vA,r.shape,i.shape);return n.runWebGLProgram(a,[r,i],"float32")}};function vU({opSnippet:e,packedOpSnippet:t,cpuKernelImpl:n,dtype:r}){return({inputs:i,backend:a})=>{let o,{x:s}=i,l=a,u=r||s.dtype;if(l.shouldExecuteOnCPU([s])&&null!=n){let e=n(l.texData.get(s.dataId).values,u);return l.makeTensorInfo(s.shape,u,e)}return o=Object(ep.of)().getBool("WEBGL_PACK_UNARY_OPERATIONS")&&null!=t?new vb(s.shape,t):new vf(s.shape,e),l.runWebGLProgram(o,[s],u)}}function vP({opSnippet:e,packedOpSnippet:t,checkOutOfBounds:n=!1,supportsComplex:r=!1,cpuKernelImpl:i,dtype:a}){return({inputs:o,backend:s})=>{let l,{a:u,b:c}=o,p=s;if(r&&"complex64"===u.dtype){let t=p.texData.get(u.dataId),n=p.texData.get(c.dataId),[r,i]=[[t.complexTensorInfos.real,n.complexTensorInfos.real],[t.complexTensorInfos.imag,n.complexTensorInfos.imag]].map(t=>{let[n,r]=t,i={dataId:n.dataId,dtype:n.dtype,shape:u.shape},a={dataId:r.dataId,dtype:r.dtype,shape:c.shape},o=new vk(e,u.shape,c.shape);return p.runWebGLProgram(o,[i,a],Object(ep.Qi)(n.dtype,r.dtype))}),a=v_({inputs:{real:r,imag:i},backend:p});return p.disposeIntermediateTensorInfo(r),p.disposeIntermediateTensorInfo(i),a}let d=a||Object(ep.Qi)(u.dtype,c.dtype);if(("string"===u.dtype||"string"===c.dtype||p.shouldExecuteOnCPU([u,c]))&&null!=i){let e=p.texData.get(u.dataId).values,t=p.texData.get(c.dataId).values,n="string"===u.dtype?ep.ie.fromUint8ToStringArray(e):e,r="string"===u.dtype?ep.ie.fromUint8ToStringArray(t):t,[a,o]=i(u.shape,c.shape,n,r,d),s=p.makeTensorInfo(o,d);return p.texData.get(s.dataId).values=a,s}return l=Object(ep.of)().getBool("WEBGL_PACK_BINARY_OPERATIONS")&&null!=t?new vw(t,u.shape,c.shape,n):new vk(e,u.shape,c.shape),p.runWebGLProgram(l,[u,c],d)}}function vB(e,t=!1){if("linear"===e)return"return x;";if("relu"===e)return t?"\n vec4 result = x * vec4(greaterThanEqual(x, vec4(0.0)));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n":"if (isnan(x)) return x;\n return (x < 0.0) ? 0.0 : x;\n";if("elu"===e)return t?"\n vec4 result;\n\n result.r = (x.r >= 0.0) ? x.r : (exp(x.r) - 1.0);\n result.g = (x.g >= 0.0) ? x.g : (exp(x.g) - 1.0);\n result.b = (x.b >= 0.0) ? x.b : (exp(x.b) - 1.0);\n result.a = (x.a >= 0.0) ? x.a : (exp(x.a) - 1.0);\n\n return result;\n":"return (x >= 0.0) ? x : (exp(x) - 1.0);";if("relu6"===e)return t?"\n vec4 result = min(x, vec4(6.)) * vec4(greaterThanEqual(x, vec4(0.0)));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n":"if (isnan(x)) return x;\n return (x < 0.0) ? 0.0 : min(6.0, x);\n";if("prelu"===e)return t?vM:vA;if("leakyrelu"===e)return t?vD:vR;if("sigmoid"===e)return"return 1.0 / (1.0 + exp(-1.0 * x));";throw Error(`Activation ${e} has not been implemented for the WebGL backend.`)}class vL{constructor(e,t,n,r=!1,i=!1,a=!1,o=null,s=!1,l=!1){this.variableNames=["matrixA","matrixB"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=n,this.enableShapeUniforms=yZ(this.outputShape.length);let u=Math.ceil((r?e[1]:e[2])/2),c=r?"i * 2, rc.y":"rc.y, i * 2",p=i?"rc.z, i * 2":"i * 2, rc.z",d=r?["a.xxyy","a.zzww"]:["a.xxzz","a.yyww"],f=i?["b.xzxz","b.ywyw"]:["b.xyxy","b.zwzw"],h="",g="";o&&(h=s?`vec4 activation(vec4 a) { 954 vec4 b = getPreluActivationWeightsAtOutCoords(); 955 ${o} 956 }`:l?`vec4 activation(vec4 a) { 957 vec4 b = getLeakyreluAlphaAtOutCoords(); 958 ${o} 959 }`:`vec4 activation(vec4 x) { 960 ${o} 961 }`,g="result = activation(result);");let b=a?"result += getBiasAtOutCoords();":"";a&&this.variableNames.push("bias"),s&&this.variableNames.push("preluActivationWeights"),l&&this.variableNames.push("leakyreluAlpha");let m="rc.x",y="rc.x";e[0]<t[0]?m=`imod(rc.x, ${e[0]})`:t[0]<e[0]&&(y=`imod(rc.x, ${t[0]})`),this.userCode=` 962 ${h} 963 // Don't use uniform for sharedDimensionPacked for performance. 964 const float sharedDimension = ${u}.0; 965 966 vec4 dot2x2ARowBCol(ivec3 rc) { 967 vec4 result = vec4(0); 968 int batchA = ${m}; 969 int batchB = ${y}; 970 for (int i = 0; i < ${u}; i++) { 971 vec4 a = getMatrixA(batchA, ${c}); 972 vec4 b = getMatrixB(batchB, ${p}); 973 974 // These swizzled products need to be separately added.
975 // See: https://github.com/tensorflow/tfjs/issues/1735 976 result += (${d[0]} * ${f[0]}); 977 result += (${d[1]} * ${f[1]}); 978 } 979 return result; 980 } 981 982 void main() { 983 ivec3 rc = getOutputCoords(); 984 vec4 result = dot2x2ARowBCol(rc); 985 986 ${b} 987 988 ${g} 989 990 setOutput(result); 991 } 992 `}}let vW="return areal * breal - aimag * bimag;",vz="return areal * bimag + aimag * breal;";class vG{constructor(e,t,n){this.variableNames=["AReal","AImag","BReal","BImag"],this.outputShape=ep.ie.assertAndGetBroadcastShape(t,n),this.userCode=` 993 float binaryOpComplex( 994 float areal, float aimag, float breal, float bimag) { 995 ${e} 996 } 997 998 void main() { 999 float areal = getARealAtOutCoords(); 1000 float aimag = getAImagAtOutCoords(); 1001 float breal = getBRealAtOutCoords(); 1002 float bimag = getBImagAtOutCoords(); 1003 setOutput(binaryOpComplex(areal, aimag, breal, bimag)); 1004 } 1005 `}}let vV="return a * b;";function vH(e){let t,{inputs:n,backend:r}=e,{a:i,b:a}=n,o=ep.ie.upcastType(i.dtype,a.dtype);if("complex64"===i.dtype){let e=r.texData.get(i.dataId),t=r.texData.get(a.dataId),n=new vG(vW,i.shape,a.shape),o=new vG(vz,i.shape,a.shape),s=[{dataId:e.complexTensorInfos.real.dataId,dtype:e.complexTensorInfos.real.dtype,shape:i.shape},{dataId:e.complexTensorInfos.imag.dataId,dtype:e.complexTensorInfos.imag.dtype,shape:i.shape},{dataId:t.complexTensorInfos.real.dataId,dtype:t.complexTensorInfos.real.dtype,shape:a.shape},{dataId:t.complexTensorInfos.imag.dataId,dtype:t.complexTensorInfos.imag.dtype,shape:a.shape}],l=r.runWebGLProgram(n,s,"float32"),u=r.runWebGLProgram(o,s,"float32"),c=v_({inputs:{real:l,imag:u},backend:r});return r.disposeIntermediateTensorInfo(l),r.disposeIntermediateTensorInfo(u),c}if(r.shouldExecuteOnCPU([i,a])){let e=r.texData.get(i.dataId),t=r.texData.get(a.dataId),[n,s]=SW(i.shape,a.shape,e.values,t.values,o),l=r.makeTensorInfo(s,o);return r.texData.get(l.dataId).values=n,l}return t=Object(ep.of)().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new vw(vV,i.shape,a.shape):new vk(vV,i.shape,a.shape),r.runWebGLProgram(t,[i,a],o)}let vq={kernelName:ep.lc,backendName:"webgl",kernelFunc:vH};function vK(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{shape:a}=r,o=n,s=ep.Si.sizeFromShape(i.shape),l=ep.Si.inferFromImplicitShape(a,s),u=ep.Si.sizeFromShape(l);ep.Si.assert(s===u,()=>`The new shape (${l}) has ${u} elements and the old shape (${i.shape}) has ${s} elements. The new shape and old shape must have the same number of elements.`);let c=o.texData.get(i.dataId);return!c.isPacked||yb(i.shape,l)||null!==c.texture&&yb(c.shape,l)?(o.incRef(i.dataId),{dataId:i.dataId,shape:l,dtype:i.dtype}):function(e,t,n){let r=[yp(e.shape),...yd(e.shape)],i={dtype:e.dtype,shape:r,dataId:e.dataId},a=new vl([yp(t),...yd(t)],r),o=[r],s=n.runWebGLProgram(a,[i],e.dtype,o,!0);return{dataId:s.dataId,shape:t,dtype:s.dtype}}(i,l,o)}let vX={kernelName:ep.Oc,backendName:"webgl",kernelFunc:vK};class vY{constructor(e,t){this.variableNames=["x"];let{windowSize:n,batchSize:r,inSize:i,outSize:a}=e;this.outputShape=[r,a];let o=4*Math.floor(n/4),s=n%4,l="sumValue += dot(values, ones);";if(null!=t){let e=1/t;l=`sumValue += dot(values * ${ep.Si.isInt(e)?e.toPrecision(2):e}, ones);`}let u="";i%n>0&&(u=` 1006 if (inIdx < 0 || inIdx >= ${i}) { 1007 return 0.0; 1008 } 1009 `),this.userCode=` 1010 const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0); 1011 1012 float getValue(int batch, int inIdx) { 1013 ${u} 1014 return getX(batch, inIdx); 1015 } 1016 1017 void main() { 1018 ivec2 coords = getOutputCoords(); 1019 int batch = coords[0]; 1020 int outIdx = coords[1]; 1021 int inOffset = outIdx * ${n}; 1022 1023 float sumValue = 0.0; 1024 1025 for (int i = 0; i < ${o}; i += 4) { 1026 int inIdx = inOffset + i; 1027 vec4 values = vec4( 1028 getValue(batch, inIdx), 1029 getValue(batch, inIdx + 1), 1030 getValue(batch, inIdx + 2), 1031 getValue(batch, inIdx + 3) 1032 ); 1033 1034 ${l} 1035 } 1036 1037 int inIdx = inOffset + ${o}; 1038 if (${1===s}) { 1039 vec4 values = vec4(getValue(batch, inIdx), 0.0, 0.0, 0.0); 1040 1041 ${l} 1042 } else if (${2===s}) { 1043 vec4 values = vec4( 1044 getValue(batch, inIdx), 1045 getValue(batch, inIdx + 1), 0.0, 0.0); 1046 1047 ${l} 1048 } else if (${3===s}) { 1049 vec4 values = vec4( 1050 getValue(batch, inIdx), 1051 getValue(batch, inIdx + 1), 1052 getValue(batch, inIdx + 2), 0.0); 1053 1054 ${l} 1055 } 1056 setOutput(sumValue); 1057 } 1058 `}}class vQ{constructor(e,t){this.variableNames=["x"];let{windowSize:n,batchSize:r,inSize:i,outSize:a}=e;this.outputShape=[r,a];let o="0.0",s="";"prod"===t?o="1.0":"min"===t?(o="1.0 / 1e-20",s="min"):"max"===t&&(o="-1.0 / 1e-20",s="max");let l=`${t}(${t}(${t}(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])`;"sum"===t?l="sumValue":"prod"===t?l="prodValue":"all"===t?l="allValue":"any"===t&&(l="anyValue");let u=4*Math.floor(n/4),c=n%4,p=` 1059 if (${"sum"===t}) { 1060 sumValue += dot(values, ones); 1061 } else if (${"prod"===t}) { 1062 vec2 tmp = vec2(values[0], values[1]) * vec2(values[2], values[3]); 1063 prodValue *= tmp[0] * tmp[1]; 1064 } else { 1065 minMaxValue = ${s}(values, minMaxValue); 1066 if (${"min"===t} || ${"max"===t}) { 1067 minMaxValue = ${s}(values, minMaxValue); 1068 bvec4 isNaN = isnan(values); 1069 if (isNaN.r || isNaN.g || isNaN.b || isNaN.a) { 1070 minMaxValue = vec4(NAN); 1071 } 1072 } 1073 } 1074 `,d="vec4";"all"===t?(o="1.0",p="\n bool reducedAllValue = all(values);\n float floatedReducedAllValue = float(reducedAllValue);\n allValue = float(allValue >= 1.0 && floatedReducedAllValue >= 1.0);\n ",d="bvec4"):"any"===t&&(o="0.0",p="\n bool reducedAnyValue = any(values);\n float floatedReducedAnyValue = float(reducedAnyValue);\n anyValue = float(anyValue >= 1.0 || floatedReducedAnyValue >= 1.0);\n ",d="bvec4");let f="";i%n>0&&(f=` 1075 if (inIdx < 0 || inIdx >= ${i}) { 1076 return initializationValue; 1077 } 1078 `),this.userCode=` 1079 const float initializationValue = ${o}; 1080 const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0); 1081 1082 float getValue(int batch, int inIdx) { 1083 ${f} 1084 return getX(batch, inIdx); 1085 } 1086 1087 void main() { 1088 ivec2 coords = getOutputCoords(); 1089 int batch = coords[0]; 1090 int outIdx = coords[1]; 1091 int inOffset = outIdx * ${n}; 1092 1093 vec4 minMaxValue = vec4(${o}); 1094 float prodValue = 1.0; 1095 float sumValue = 0.0; 1096 float allValue = 1.0; 1097 float anyValue = 0.0; 1098 1099 for (int i = 0; i < ${u}; i += 4) { 1100 int inIdx = inOffset + i; 1101 ${d} values = ${d}( 1102 getValue(batch, inIdx), 1103 getValue(batch, inIdx + 1), 1104 getValue(batch, inIdx + 2), 1105 getValue(batch, inIdx + 3) 1106 ); 1107 1108 ${p} 1109 } 1110 1111 int inIdx = inOffset + ${u}; 1112 if (${1===c}) { 1113 ${d} values = ${d}( 1114 getValue(batch, inIdx), 1115 initializationValue, 1116 initializationValue, 1117 initializationValue 1118 ); 1119 1120 ${p} 1121 } else if (${2===c}) { 1122 ${d} values = ${d}( 1123 getValue(batch, inIdx), 1124 getValue(batch, inIdx + 1), 1125 initializationValue, 1126 initializationValue 1127 ); 1128 1129 ${p} 1130 } else if (${3===c}) { 1131 ${d} values = ${d}( 1132 getValue(batch, inIdx), 1133 getValue(batch, inIdx + 1), 1134 getValue(batch, inIdx + 2), 1135 initializationValue 1136 ); 1137 1138 ${p} 1139 } 1140 setOutput(${l}); 1141 } 1142 `}}function vJ(e,t,n,r){let i=function(e){let t=[];for(;0===t.length||1!==t[t.length-1].outSize;){let n=t.length?t[t.length-1].outSize:e[1],r=ep.ie.computeOptimalWindowSize(n);t.push({inSize:n,windowSize:r,outSize:Math.ceil(n/r)})}return t}(e.shape),a=e;for(let o=0;o<i.length;o++){let s,l,{inSize:u,windowSize:c,outSize:p}=i[o];s="mean"===n?0===o?new vY({windowSize:c,inSize:u,batchSize:e.shape[0],outSize:p},u):new vY({windowSize:c,inSize:u,batchSize:e.shape[0],outSize:p}):new vQ({windowSize:c,inSize:u,batchSize:e.shape[0],outSize:p},n),l=a,a=r.runWebGLProgram(s,[a],t),l.dataId!==e.dataId&&r.disposeIntermediateTensorInfo(l)}return a}class vZ{constructor(e,t){this.variableNames=["A"];let n=Array(e.length);for(let r=0;r<n.length;r++)n[r]=e[t[r]];this.outputShape=n,this.rank=n.length;let r=yq(this.rank),i=function(e){let t=e.length;if(t>6)throw Error(`Transpose for rank ${t} is not yet supported`);let n=["resRC.x","resRC.y","resRC.z","resRC.w","resRC.u","resRC.v"],r=Array(t);for(let t=0;t<e.length;t++)r[e[t]]=n[t];return r.join()}(t);this.userCode=` 1143 void main() { 1144 ${r} resRC = getOutputCoords(); 1145 setOutput(getA(${i})); 1146 } 1147 `}}class v0{constructor(e,t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0;let n=Array(e.length);for(let r=0;r<n.length;r++)n[r]=e[t[r]];if(this.outputShape=n,this.rank=n.length,this.rank>6)throw Error(`Packed transpose for rank ${this.rank} is not yet supported.`);let r=yq(this.rank),i=va("rc",this.rank),a=Array(this.rank);for(let e=0;e<t.length;e++)a[t[e]]=i[e];let o=`vec2(${a.slice(-2).join()})`,s=`++${i[this.rank-1]} < ${n[this.rank-1]}`,l=`getChannel(getA(${a.join()}), ${o})`;this.userCode=` 1148 void main() { 1149 ${r} rc = getOutputCoords(); 1150 vec4 result = vec4(0.); 1151 result[0] = ${l}; 1152 if(${s}) { 1153 result[1] = ${l}; 1154 } 1155 --${i[this.rank-1]}; 1156 if(++${i[this.rank-2]} < ${n[this.rank-2]}) { 1157 result[2] = ${l}; 1158 if(${s}) { 1159 result[3] = ${l}; 1160 } 1161 } 1162 setOutput(result); 1163 } 1164 `}}function v1(e,t,n){let r=Object(ep.of)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new v0(e.shape,t):new vZ(e.shape,t);return n.runWebGLProgram(r,[e],e.dtype)}function v2(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,keepDims:o}=r;return function(e,t,n,r){let i=t,a=e.shape.length,o=ep.Si.parseAxisParam(i,e.shape),s=o,l=ep.ie.getAxesPermutation(s,a),u=null!=l,c=e;u&&(c=v1(e,l,r),s=ep.ie.getInnerMostAxes(s.length,a)),ep.ie.assertAxesAreInnerMostDims("sum",s,a);let[p,d]=ep.ie.computeOutAndReduceShapes(c.shape,s),f=p;n&&(f=ep.ie.expandShapeToKeepDim(p,o));let h=ep.Si.sizeFromShape(d),g=vK({inputs:{x:c},attrs:{shape:[ep.Si.sizeFromShape(e.shape)/h,h]},backend:r}
1164),b=vJ(g,Object(ep.ri)(e.dtype),"sum",r),m=vK({inputs:{x:b},attrs:{shape:f},backend:r});return r.disposeIntermediateTensorInfo(g),r.disposeIntermediateTensorInfo(b),u&&r.disposeIntermediateTensorInfo(c),m}(i,a,o,n)}let v3={kernelName:ep.Ad,backendName:"webgl",kernelFunc:v2};function v4(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n,{perm:o}=i,s=r,l=Array(a.shape.length);for(let e=0;e<l.length;e++)l[e]=a.shape[o[e]];if(s.shouldExecuteOnCPU([a])){let e=vr(s.texData.get(a.dataId).values,a.shape,a.dtype,o,l);t=s.makeTensorInfo(l,a.dtype),s.texData.get(t.dataId).values=e}else t=v1(a,o,s);return t}let v6={kernelName:ep.Jd,backendName:"webgl",kernelFunc:v4};function v5({a:e,b:t,transposeA:n,transposeB:r,backend:i,bias:a=null,preluActivationWeights:o=null,leakyreluAlpha:s=0,activation:l=null}){let u,c=e.shape.length,p=t.shape.length,d=n?e.shape[c-2]:e.shape[c-1],f=r?t.shape[p-1]:t.shape[p-2],h=n?e.shape[c-1]:e.shape[c-2],g=r?t.shape[p-2]:t.shape[p-1],b=e.shape.slice(0,-2),m=t.shape.slice(0,-2),y=ep.Si.sizeFromShape(b),S=ep.Si.sizeFromShape(m),v=ep.ue.assertAndGetBroadcastShape(e.shape.slice(0,-2),t.shape.slice(0,-2)).concat([h,g]);ep.Si.assert(d===f,()=>`Error in matMul: inner shapes (${d}) and (${f}) of Tensors with shapes ${e.shape} and ${t.shape} and transposeA=${n} and transposeB=${r} must match.`);let O=n?[y,d,h]:[y,h,d],x=r?[S,g,f]:[S,f,g],I=vK({inputs:{x:e},backend:i,attrs:{shape:O}}),N=vK({inputs:{x:t},backend:i,attrs:{shape:x}}),k=[I,N],T=Math.max(y,S),w=n?I.shape[1]:I.shape[2],j=null!=a,F=null!=o,_="leakyrelu"===l,E=null!=l?vB(l,!0):null;if((1===h||1===g)&&w>1e3&&!1===(j||F||_||null!=E)){let e=I,t=N;n&&(e=v4({inputs:{x:I},backend:i,attrs:{perm:[0,2,1]}}),k.push(e)),r&&(t=v4({inputs:{x:N},backend:i,attrs:{perm:[0,2,1]}}),k.push(t));let a=1===g,o=e;1!==g&&(o=vK({inputs:{x:e},backend:i,attrs:{shape:[T,w,1]}}),k.push(o));let s=1===g?2:1,l=t;a&&(l=vK({inputs:{x:t},backend:i,attrs:{shape:[T,1,w]}}),k.push(l));let c=vH({inputs:{a:o,b:l},backend:i});u=v2({inputs:{x:c},backend:i,attrs:{axis:s,keepDims:!0}}),k.push(c)}else{let l=Object(ep.Qi)(e.dtype,t.dtype),c=new vL(O,x,[T,h,g],n,r,j,E,F,_),p=[I,N];if(null!=a&&p.push(a),F&&p.push(o),_){let e=i.makeTensorInfo([],"float32",ep.Si.createScalarValue(s,"float32"));p.push(e),k.push(e)}u=i.runWebGLProgram(c,p,l)}let R=vK({inputs:{x:u},backend:i,attrs:{shape:v}});for(let e of(k.push(u),k))i.disposeIntermediateTensorInfo(e);return R}let v8={kernelName:ep.Qd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{a:i,b:a,bias:o,preluActivationWeights:s}=t,{transposeA:l,transposeB:u,activation:c,leakyreluAlpha:p}=r;return v5({a:i,b:a,transposeA:l,transposeB:u,backend:n,bias:o,preluActivationWeights:s,leakyreluAlpha:p,activation:c})}},v7={kernelName:ep.a,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r}=e,{x:i}=n;if(r.shouldExecuteOnCPU([i])&&"complex64"!==i.dtype){let e=SZ(r.texData.get(i.dataId).values);return r.makeTensorInfo(i.shape,i.dtype,e)}return t=Object(ep.of)().getBool("WEBGL_PACK_UNARY_OPERATIONS")?new vb(i.shape,"return abs(x);"):new vf(i.shape,"return abs(x);"),r.runWebGLProgram(t,[i],i.dtype)}},v9=vU({opSnippet:"if (isnan(x)) return x;\n if (abs(x) > 1.) {\n return NAN;\n }\n return acos(x);\n"}),Oe={kernelName:ep.b,backendName:"webgl",kernelFunc:v9},Ot=vU({opSnippet:"if (isnan(x)) return x;\n if (x < 1.0) return NAN;\nreturn log(x + sqrt(x * x - 1.0));"}),On={kernelName:ep.c,backendName:"webgl",kernelFunc:Ot},Or="return a + b;",Oi=vP({opSnippet:Or,packedOpSnippet:Or,supportsComplex:!0,cpuKernelImpl:Sv}),Oa={kernelName:ep.h,backendName:"webgl",kernelFunc:Oi};class Oo{constructor(e,t){this.outputShape=[],this.outputShape=e,this.variableNames=t.map((e,t)=>"T"+t);let n=[];this.variableNames.forEach(e=>{n.push(`float v${e} = get${e}AtOutCoords();`)});let r=this.variableNames.map(e=>"v"+e).join(" + ");this.userCode=` 1165 void main() { 1166 ${n.join("\n ")} 1167 1168 float result = ${r}; 1169 setOutput(result); 1170 } 1171 `}}class Os{constructor(e,t){this.outputShape=[],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e,this.variableNames=t.map((e,t)=>"T"+t);let n=[];
1171this.variableNames.forEach(e=>{n.push(`vec4 v${e} = get${e}AtOutCoords();`)});let r=this.variableNames.map(e=>"v"+e).join(" + ");this.userCode=` 1172 void main() { 1173 ${n.join("\n ")} 1174 1175 vec4 result = ${r}; 1176 setOutput(result); 1177 } 1178 `}}let Ol={kernelName:ep.i,backendName:"webgl",kernelFunc:function e(t){let{inputs:n,backend:r}=t,i=n;if(1===i.length)return vj({inputs:{x:i[0]},backend:r});if(i.length>Object(ep.of)().getNumber("WEBGL_MAX_TEXTURES_IN_SHADER")){let t=Math.floor(i.length/2),n=e({inputs:i.slice(0,t),backend:r}),a=e({inputs:i.slice(t),backend:r});return e({inputs:[n,a],backend:r})}let a=i.map(e=>e.dtype).reduce((e,t)=>Object(ep.Qi)(e,t)),o=i.map(e=>e.shape),s=Object(ep.of)().getBool("WEBGL_PACK")?new Os(i[0].shape,o):new Oo(i[0].shape,o);return r.runWebGLProgram(s,i,a)}},Ou={kernelName:ep.j,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n,{axis:o,keepDims:s}=i,l=a.shape.length,u=ep.Si.parseAxisParam(o,a.shape),c=u,p=ep.ie.getAxesPermutation(c,l),d=a;null!=p&&(d=v4({inputs:{x:a},backend:r,attrs:{perm:p}}),c=ep.ie.getInnerMostAxes(c.length,l)),ep.ie.assertAxesAreInnerMostDims("all",c,l);let[f,h]=ep.ie.computeOutAndReduceShapes(d.shape,c),g=vK({inputs:{x:d},backend:r,attrs:{shape:[-1,ep.Si.sizeFromShape(h)]}}),b=vJ(g,g.dtype,"all",r);return t=s?vK({inputs:{x:b},backend:r,attrs:{shape:ep.ie.expandShapeToKeepDim(f,u)}}):vK({inputs:{x:b},backend:r,attrs:{shape:f}}),r.disposeIntermediateTensorInfo(g),r.disposeIntermediateTensorInfo(b),null!=p&&r.disposeIntermediateTensorInfo(d),t}},Oc={kernelName:ep.k,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n,{axis:o,keepDims:s}=i,l=a.shape.length,u=ep.Si.parseAxisParam(o,a.shape),c=u,p=ep.ie.getAxesPermutation(c,l),d=a;null!=p&&(d=v4({inputs:{x:a},backend:r,attrs:{perm:p}}),c=ep.ie.getInnerMostAxes(c.length,l)),ep.ie.assertAxesAreInnerMostDims("any",c,l);let[f,h]=ep.ie.computeOutAndReduceShapes(d.shape,c),g=vK({inputs:{x:d},backend:r,attrs:{shape:[-1,ep.Si.sizeFromShape(h)]}}),b=vJ(g,g.dtype,"any",r);return t=s?vK({inputs:{x:b},backend:r,attrs:{shape:ep.ie.expandShapeToKeepDim(f,u)}}):vK({inputs:{x:b},backend:r,attrs:{shape:f}}),r.disposeIntermediateTensorInfo(g),r.disposeIntermediateTensorInfo(b),null!=p&&r.disposeIntermediateTensorInfo(d),t}};class Op{constructor(e,t,n){this.variableNames=["A"];let{windowSize:r,batchSize:i,outSize:a}=e;n||this.variableNames.push("bestIndicesA"),this.outputShape=[i,a];let o="max"===t?">":"<",s=n?"inOffset + i;":"round(getBestIndicesA(batch, inOffset + i));";this.userCode=` 1179 void main() { 1180 ivec2 coords = getOutputCoords(); 1181 int batch = coords[0]; 1182 int outIdx = coords[1]; 1183 int inOffset = outIdx * ${r}; 1184 1185 int bestIndex = inOffset; 1186 float bestValue = getA(batch, bestIndex); 1187 1188 for (int i = 0; i < ${r}; i++) { 1189 int inIdx = ${s}; 1190 float candidate = getA(batch, inIdx); 1191 if (candidate ${o} bestValue) { 1192 bestValue = candidate; 1193 bestIndex = inIdx; 1194 } 1195 } 1196 setOutput(float(bestIndex)); 1197 } 1198 `}}class Od{constructor(e,t,n,r){let i,a;this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,ep.Si.assert(e.length>2,()=>`Packed arg${n.charAt(0).toUpperCase()+n.slice(1)} supports only inputs with rank above 2.`);let o=Math.ceil(e[e.length-1]/t);this.outputShape=e.slice(0,-1),o>1&&this.outputShape.push(o),r||this.variableNames.push("bestIndicesA");let s=this.outputShape,l=s.length,u=yq(l),c=vo("coords",l);if(1===o){let e=yq(a=l+1);i=` 1199 ${e} sourceLocR = ${e}(${c.join()}, 0); 1200 ++${c[l-1]}; 1201 ${e} sourceLocG = ${e}(${c.join()}, 0); 1202 ++${c[l-2]}; 1203 ${e} sourceLocA = ${e}(${c.join()}, 0); 1204 --${c[l-1]}; 1205 ${e} sourceLocB = ${e}(${c.join()}, 0); 1206 --${c[l-2]};`}else a=l,i=` 1207 ${u} sourceLocR = coords; 1208 ++${c[l-1]}; 1209 ${u} sourceLocG = coords; 1210 ++${c[l-2]}; 1211 ${u} sourceLocA = coords; 1212 --${c[l-1]}; 1213 ${u} sourceLocB = coords; 1214 --${c[l-2]};`;let p=["x","y","z","w","u","v"].slice(0,a),d="."+p[a-1],f=p.map(e=>"int "+e),h=vo("sourceLocR",a-1).concat("inIdx.r"),g=vo("sourceLocG",a-1).concat("inIdx.g"),b=vo("sourceLocB",a-1).concat("inIdx.b"),m=vo("sourceLocA",a-1).concat("inIdx.a"),y="max"===n?"greaterThan":"lessThan",S=r?"":` 1215 inIdx = round(vec4(getBestIndicesAChannel(${h.join()}), 1216 getBestIndicesAChannel(${g.join()}), 1217 getBestIndicesAChannel(${b.join()}), 1218 getBestIndicesAChannel(${m.join()})));`,v=`vec4( 1219 getAChannel(${h.join()}), 1220 hasNextCol ? getAChannel(${g.join()}) : 0., 1221 hasNextRow ? getAChannel(${b.join()}) : 0., 1222 hasNextRow && hasNextCol ? getAChannel(${m.join()}) : 0.)`,O=r?"":` 1223 float getBestIndicesAChannel(${f.join()}) { 1224 return getChannel(getBestIndicesA(${p.join()}), 1225 vec2(${p.slice(-2).join()})); 1226 }`;this.userCode=` 1227 float getAChannel(${f.join()}) { 1228 return getChannel(getA(${p.join()}), 1229 vec2(${p.slice(-2).join()})); 1230 } 1231 ${O} 1232 void main() { 1233 ${u} coords = getOutputCoords(); 1234 bool hasNextCol = ${c[l-1]} < ${s[l-1]-1}
1234; 1235 bool hasNextRow = ${c[l-2]} < ${s[l-2]-1}; 1236 ${i} 1237 ivec4 srcIdx = ivec4(sourceLocR${d}, sourceLocG${d}, 1238 sourceLocB${d}, sourceLocA${d}) * ${t}; 1239 ivec4 inIdx = srcIdx; 1240 vec4 bestIndex = vec4(inIdx); 1241 vec4 bestValue = ${v}; 1242 1243 for (int i = 0; i < ${t}; i++) { 1244 inIdx = srcIdx; 1245 ${S} 1246 vec4 candidate = ${v}; 1247 bvec4 nan = isnan(candidate); 1248 bvec4 replace = bvec4( 1249 vec4(${y}(candidate, bestValue)) * (vec4(1.0) - vec4(nan))); 1250 1251 bestValue = vec4(replace.x ? candidate.x : bestValue.x, 1252 replace.y ? candidate.y : bestValue.y, 1253 replace.z ? candidate.z : bestValue.z, 1254 replace.w ? candidate.w : bestValue.w); 1255 bestIndex = mix(bestIndex, vec4(inIdx), vec4(replace)); 1256 srcIdx++; 1257 } 1258 setOutput(bestIndex); 1259 } 1260 `}}function Of(e,t,n,r){let i=[n];if(ep.ie.assertAxesAreInnerMostDims("arg"+r.charAt(0).toUpperCase()+r.slice(1),i,t.shape.length),!Object(ep.of)().getBool("WEBGL_PACK_REDUCE")||t.shape.length<=2){let n=[],a=e.texData.get(t.dataId),o=t;null!==a&&a.isPacked&&n.push(o=e.unpackTensor(t));let[s,l]=ep.ie.computeOutAndReduceShapes(o.shape,i),u=vK({inputs:{x:o},backend:e,attrs:{shape:[-1,ep.Si.sizeFromShape(l)]}});n.push(u);let c=function e(t,n,r,i=null){let a=n.shape[0],o=n.shape[1];null!=i&&(a=i.shape[0],o=i.shape[1]);let s=ep.ie.computeOptimalWindowSize(o),l=new Op({windowSize:s,inSize:o,batchSize:a,outSize:Math.ceil(o/s)},r,null==i),u=[n];null!=i&&u.push(i);let c=t.runWebGLProgram(l,u,"int32");if(1===c.shape[1])return c;let p=e(t,n,r,c);return t.disposeIntermediateTensorInfo(c),p}(e,u,r);n.push(c);let p=vK({inputs:{x:c},backend:e,attrs:{shape:s}});return n.forEach(t=>e.disposeIntermediateTensorInfo(t)),p}return function e(t,n,r,i=null){let a=null!=i?i.shape:n.shape,o=a[a.length-1],s=new Od(a,ep.ie.computeOptimalWindowSize(o),r,null==i),l=null==i?[n]:[n,i],u=t.runWebGLProgram(s,l,"int32");if(u.shape.length===n.shape.length){let i=e(t,n,r,u);return t.disposeIntermediateTensorInfo(u),i}return u}(e,t,r)}let Oh={kernelName:ep.l,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a}=r,o=ep.Si.parseAxisParam(a,i.shape),s=ep.ie.getAxesPermutation(o,i.shape.length),l=i,u=[];null!=s&&(u.push(l=v4({inputs:{x:i},backend:n,attrs:{perm:s}})),o=ep.ie.getInnerMostAxes(o.length,l.shape.length)),ep.ie.assertAxesAreInnerMostDims("argMax",[o[0]],l.shape.length);let c=Of(n,l,o[0],"max");return u.forEach(e=>n.disposeIntermediateTensorInfo(e)),c}},Og={kernelName:ep.m,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a}=r,o=ep.Si.parseAxisParam(a,i.shape),s=ep.ie.getAxesPermutation(o,i.shape.length),l=i,u=[];null!=s&&(u.push(l=v4({inputs:{x:i},backend:n,attrs:{perm:s}})),o=ep.ie.getInnerMostAxes(o.length,l.shape.length)),ep.ie.assertAxesAreInnerMostDims("argMin",[o[0]],l.shape.length);let c=Of(n,l,o[0],"min");return u.forEach(e=>n.disposeIntermediateTensorInfo(e)),c}},Ob=vU({opSnippet:"if (isnan(x)) return x;\n if (abs(x) > 1.) {\n return NAN;\n }\n return asin(x);\n"}),Om={kernelName:ep.n,backendName:"webgl",kernelFunc:Ob},Oy=vU({opSnippet:"if (isnan(x)) return x;return log(x + sqrt(x * x + 1.0));"}),OS={kernelName:ep.o,backendName:"webgl",kernelFunc:Oy},Ov=vU({opSnippet:"if (isnan(x)) return x;\n return atan(x);\n"}),OO={kernelName:ep.p,backendName:"webgl",kernelFunc:Ov},Ox=vP({opSnippet:"\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return atan(a, b);\n",packedOpSnippet:"\n vec4 result = atan(a, b);\n bvec4 isNaNA = isnan(a);\n bvec4 isNaNB = isnan(b);\n bvec4 isNaN = bvec4(isNaNA.x || isNaNB.x, isNaNA.y || isNaNB.y, isNaNA.z || isNaNB.z, isNaNA.w || isNaNB.w);\n \n result.r = isNaN.r ? NAN : result.r;\n result.g = isNaN.g ? NAN : result.g;\n result.b = isNaN.b ? NAN : result.b;\n result.a = isNaN.a ? NAN : result.a;\n\n return result;\n"}),OI={kernelName:ep.q,backendName:"webgl",kernelFunc:Ox},ON=vU({opSnippet:"if (isnan(x)) return x;\n if ((x < -1.0) || (x > 1.0)) return NAN;
1260\nreturn (log(1.0 + x) - log(1.0 - x)) / 2.0;"}),Ok={kernelName:ep.r,backendName:"webgl",kernelFunc:ON};class OT{constructor(e,t,n,r=!1,i=!1){if(this.variableNames=["x"],"avg"===t&&n)throw Error("Cannot compute positions for average pool.");let a=e.filterWidth,o=e.strideHeight,s=e.strideWidth,l=e.dilationHeight,u=e.dilationWidth,c=e.effectiveFilterHeight,p=e.effectiveFilterWidth,d=e.padInfo.top,f=e.padInfo.left;this.outputShape=e.outShape;let h="avg"===t,g=`((batch * ${e.inHeight} + xR) * ${e.inWidth} + xC) * ${e.inChannels} + d`,b=`(xR * ${e.inWidth} + xC) * ${e.inChannels} + d`,m="0.0";if(h||(m="-1.0 / 1e-20"),n){let t=">=";return void(this.userCode=` 1261 const ivec2 strides = ivec2(${o}, ${s}); 1262 const ivec2 pads = ivec2(${d}, ${f}); 1263 1264 void main() { 1265 ivec4 coords = getOutputCoords(); 1266 int batch = coords[0]; 1267 int d = coords[3]; 1268 1269 ivec2 xRCCorner = coords.yz * strides - pads; 1270 int xRCorner = xRCCorner.x; 1271 int xCCorner = xRCCorner.y; 1272 1273 // max/min x(?, ?, d) to get y(yR, yC, d). 1274 // ? = to be determined 1275 float minMaxValue = 0.0; 1276 float minMaxValueFound = 0.0; 1277 int minMaxPosition = 0; 1278 float avgValue = 0.0; 1279 1280 for (int wR = 0; wR < ${c}; 1281 wR += ${l}) { 1282 int xR = xRCorner + wR; 1283 1284 if (xR < 0 || xR >= ${e.inHeight}) { 1285 continue; 1286 } 1287 1288 for (int wC = 0; wC < ${p}; 1289 wC += ${u}) { 1290 int xC = xCCorner + wC; 1291 1292 if (xC < 0 || xC >= ${e.inWidth}) { 1293 continue; 1294 } 1295 1296 float value = getX(batch, xR, xC, d); 1297 1298 // If a min / max value has already been found, use it. If not, 1299 // use the current value. 1300 float currMinMaxValue = mix( 1301 value, minMaxValue, minMaxValueFound); 1302 if (value ${t} currMinMaxValue) { 1303 minMaxValue = value; 1304 minMaxValueFound = 1.0; 1305 minMaxPosition = ${r?i?g:b:`wR * ${p} + wC`}; 1306 } 1307 } 1308 } 1309 setOutput(float(minMaxPosition)); 1310 } 1311 `)}let y=`${t}(${t}(${t}(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])`;"avg"===t&&(y="avgValue / max(count, 1.0)");let S=4*Math.floor(a/4),v=a%4,O=` 1312 if (${h}) { 1313 avgValue += dot(values, ones); 1314 } else { 1315 minMaxValue = max(values, minMaxValue); 1316 } 1317 `;this.userCode=` 1318 const ivec2 strides = ivec2(${o}, ${s}); 1319 const ivec2 pads = ivec2(${d}, ${f}); 1320 const float initializationValue = ${m}; 1321 const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0); 1322 1323 float count = 0.0; 1324 1325 float getValue(int batch, int xR, int xC, int d) { 1326 if (xC < 0 || xC >= ${e.inWidth}) { 1327 return initializationValue; 1328 } 1329 count += 1.0; 1330 return getX(batch, xR, xC, d); 1331 } 1332 1333 void main() { 1334 ivec4 coords = getOutputCoords(); 1335 int batch = coords[0]; 1336 int d = coords[3]; 1337 1338 ivec2 xRCCorner = coords.yz * strides - pads; 1339 int xRCorner = xRCCorner.x; 1340 int xCCorner = xRCCorner.y; 1341 1342 // max/min x(?, ?, d) to get y(yR, yC, d). 1343 // ? = to be determined 1344 vec4 minMaxValue = vec4(${m}); 1345 float avgValue = 0.0; 1346 count = 0.0; 1347 1348 for (int wR = 0; wR < ${c}; 1349 wR += ${l}) { 1350 int xR = xRCorner + wR; 1351 1352 if (xR < 0 || xR >= ${e.inHeight}) { 1353 continue; 1354 } 1355 1356 for (int wC = 0; wC < ${S}; wC += 4) { 1357 int xC = xCCorner + wC * ${u}; 1358 1359 vec4 values = vec4( 1360 getValue(batch, xR, xC, d), 1361 getValue(batch, xR, xC + ${u}, d), 1362 getValue(batch, xR, xC + 2 * ${u}, d), 1363 getValue(batch, xR, xC + 3 * ${u}, d) 1364 ); 1365 1366 ${O} 1367 } 1368 1369 int xC = xCCorner + ${S}; 1370 if (${1===v}) { 1371 vec4 values = vec4( 1372 getValue(batch, xR, xC, d), 1373 initializationValue, 1374 initializationValue, 1375 initializationValue 1376 ); 1377 1378 ${O} 1379 } else if (${2===v}) { 1380 vec4 values = vec4( 1381 getValue(batch, xR, xC, d), 1382 getValue(batch, xR, xC + ${u}, d), 1383 initializationValue, 1384 initializationValue 1385 ); 1386 1387 ${O} 1388 } else if (${3===v}) { 1389 vec4 values = vec4( 1390 getValue(batch, xR, xC, d), 1391 getValue(batch, xR, xC + ${u}, d), 1392 getValue(batch, xR, xC + 2 * ${u}, d), 1393 initializationValue 1394 ); 1395 1396 ${O} 1397 } 1398 } 1399 setOutput(${y}); 1400 } 1401 `}}class Ow{constructor(e,t,n,r=!1,i=!1){if(this.variableNames=["x"],"avg"===t&&n)throw Error("Cannot compute positions for average pool.");let a=e.filterWidth,o=e.strideDepth,s=e.strideHeight,l=e.strideWidth,u=e.dilationDepth,c=e.dilationHeight,p=e.dilationWidth,d=e.effectiveFilterDepth,f=e.effectiveFilterHeight,h=e.effectiveFilterWidth,g=e.padInfo.front,b=e.padInfo.top,m=e.padInfo.left;this.outputShape=e.outShape;let y="avg"===t,S="0.0";if(y||(S="-1.0 / 1e-20"),n){let t=">=";return void(this.userCode=` 1402 const ivec3 strides = 1403 ivec3(${o}, ${s}, ${l}); 1404 const ivec3 pads = ivec3(${g}, ${b}, ${m}); 1405 1406 void main() { 1407 ivec5 coords = getOutputCoords(); 1408 int batch = coords.x; 1409 int ch = coords.u; 1410 1411 ivec3 xCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads; 1412 int xDCorner = xCorner.x; 1413 int xRCorner = xCorner.y; 1414 int xCCorner = xCorner.z; 1415 1416 // max/min x(?, ?, ?, ch) to get y(yD, yR, yC, ch). 1417 // ? = to be determined 1418 float minMaxValue = 0.0; 1419 float minMaxValueFound = 0.0; 1420 int minMaxPosition = 0; 1421 1422 for (int wD = 0; wD < ${d}; 1423 wD += ${u}) { 1424 int xD = xDCorner + wD; 1425 1426 if (xD < 0 || xD >= ${e.inDepth}) { 1427 continue; 1428 } 1429 1430 for (int wR = 0; wR < ${f}; 1431 wR += ${c}) { 1432 int xR = xRCorner + wR; 1433 1434 if (xR < 0 || xR >= ${e.inHeight}) { 1435 continue; 1436 } 1437 1438 for (int wC = 0; wC < ${h}; 1439 wC += ${p}) { 1440 int xC = xCCorner + wC; 1441 1442 if (xC < 0 || xC >= ${e.inWidth}) { 1443 continue; 1444 } 1445 1446 float value = getX(batch, xD, xR, xC, ch); 1447 1448 // If a min / max value has already been found, use it. If not, 1449 // use the current value. 1450 float currMinMaxValue = mix( 1451 value, minMaxValue, minMaxValueFound); 1452 if (value ${t} currMinMaxValue) { 1453 minMaxValue = value; 1454 minMaxValueFound = 1.0; 1455 minMaxPosition = ${r?i?`(((batch * ${e.inDepth} + xD) * ${e.inHeight} + xR) * ${e.inWidth} + xC) * ${e.inChannels} + ch`:`((xD * ${e.inHeight} + xR) * ${e.inWidth} + xC) * ${e.inChannels} + ch`:`wD * ${f} * ${h} + 1456 wR * ${h} + wC`}; 1457 } 1458 } 1459 } 1460 } 1461 setOutput(float(minMaxPosition)); 1462 } 1463 `)}let v=`${t}(${t}(${t}(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])`;"avg"===t&&(v="avgValue / max(count, 1.0)");let O=4*Math.floor(a/4),x=a%4,I=` 1464 if (${y}) { 1465 avgValue += dot(values, ones); 1466 } else { 1467 minMaxValue = max(values, minMaxValue); 1468 } 1469 `;this.userCode=` 1470 const ivec3 strides = 1471 ivec3(${o}, ${s}, ${l}); 1472 const ivec3 pads = ivec3(${g}, ${b}, ${m}); 1473 const float initializationValue = ${S}; 1474 const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0); 1475 1476 float count = 0.0; 1477 1478 float getValue(int batch, int xD, int xR, int xC, int ch) { 1479 if (xC < 0 || xC >= ${e.inWidth}) { 1480 return initializationValue; 1481 } 1482 count += 1.0; 1483 return getX(batch, xD, xR, xC, ch); 1484 } 1485 1486 void main() { 1487 ivec5 coords = getOutputCoords(); 1488 int batch = coords.x; 1489 int ch = coords.u; 1490 1491 ivec3 xCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads; 1492 int xDCorner = xCorner.x; 1493 int xRCorner = xCorner.y; 1494 int xCCorner = xCorner.z; 1495 1496 // max/min x(?, ?, ?, d) to get y(yD, yR, yC, ch). 1497 // ? = to be determined 1498 vec4 minMaxValue = vec4(${S}); 1499 float avgValue = 0.0; 1500 count = 0.0; 1501 1502 for (int wD = 0; wD < ${d}; 1503 wD += ${u}) { 1504 int xD = xDCorner + wD; 1505 1506 if (xD < 0 || xD >= ${e.inDepth}) { 1507 continue; 1508 } 1509 1510 for (int wR = 0; wR < ${f}; 1511 wR += ${c}) { 1512 int xR = xRCorner + wR; 1513 1514 if (xR < 0 || xR >= ${e.inHeight}) { 1515 continue; 1516 } 1517 1518 for (int wC = 0; wC < ${O}; wC += 4) { 1519 int xC = xCCorner + wC * ${p}; 1520 1521 vec4 values = vec4( 1522 getValue(batch, xD, xR, xC, ch), 1523 getValue(batch, xD, xR, xC + ${p}, ch), 1524 getValue(batch, xD, xR, xC + 2 * ${p}, ch), 1525 getValue(batch, xD, xR, xC + 3 * ${p}, ch) 1526 ); 1527 1528 ${I} 1529 } 1530 1531 int xC = xCCorner + ${O}; 1532 if (${1===x}) { 1533 vec4 values = vec4( 1534 getValue(batch, xD, xR, xC, ch), 1535 initializationValue, 1536 initializationValue, 1537 initializationValue 1538 ); 1539 1540 ${I} 1541 } else if (${2===x}) { 1542 vec4 values = vec4( 1543 getValue(batch, xD, xR, xC, ch), 1544 getValue(batch, xD, xR, xC + ${p}, ch), 1545 initializationValue, 1546 initializationValue 1547 ); 1548 1549 ${I} 1550 } else if (${3===x}) { 1551 vec4 values = vec4( 1552 getValue(batch, xD, xR, xC, ch), 1553 getValue(batch, xD, xR, xC + ${p}, ch), 1554 getValue(batch, xD, xR, xC + 2 * ${p}, ch), 1555 initializationValue 1556 ); 1557 1558 ${I} 1559 } 1560 } 1561 } 1562 setOutput(${v}); 1563 } 1564 `}}let Oj={kernelName:ep.s,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t;yj(i,"avgPool");let{filterSize:a,strides:o,pad:s,dimRoundingMode:l}=r;ep.Si.assert(ep.ie.eitherStridesOrDilationsAreOne(o,1),()=>`Error in avgPool: Either strides or dilations must be 1. Got strides ${o} and dilations '1'`);let u=ep.ie.computePool2DInfo(i.shape,a,o,1,s,l);
1564if(1===u.filterWidth&&1===u.filterHeight&&ep.Si.arraysEqual(u.inShape,u.outShape))return vj({inputs:{x:i},backend:n});let c=new OT(u,"avg",!1);return n.runWebGLProgram(c,[i],"float32")}},OF={kernelName:ep.t,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{filterSize:a,strides:o,pad:s,dimRoundingMode:l,dataFormat:u}=r,c=new Ow(ep.ie.computePool3DInfo(i.shape,a,o,[1,1,1],s,l,u),"avg",!1);return n.runWebGLProgram(c,[i],"float32")}};class O_{constructor(e){this.variableNames=["dy"],this.outputShape=e.inShape;let t=e.filterHeight,n=e.filterWidth,r=e.strideHeight,i=e.strideWidth,a=e.dilationHeight,o=e.dilationWidth,s=e.effectiveFilterHeight,l=e.effectiveFilterWidth,u=s-1-e.padInfo.top,c=l-1-e.padInfo.left,p=1/(t*n);this.userCode=` 1565 const ivec2 pads = ivec2(${u}, ${c}); 1566 const float avgMultiplier = float(${p}); 1567 1568 void main() { 1569 ivec4 coords = getOutputCoords(); 1570 int b = coords[0]; 1571 int d = coords[3]; 1572 1573 ivec2 dyRCCorner = coords.yz - pads; 1574 int dyRCorner = dyRCCorner.x; 1575 int dyCCorner = dyRCCorner.y; 1576 1577 // Convolve dy(?, ?, d) with pos mask(:, :, d) to get dx(xR, xC, d). 1578 // ? = to be determined. : = across all values in that axis. 1579 float dotProd = 0.0; 1580 for (int wR = 0; wR < ${s}; 1581 wR += ${a}) { 1582 float dyR = float(dyRCorner + wR) / ${r}.0; 1583 1584 if (dyR < 0.0 || dyR >= ${e.outHeight}.0 || fract(dyR) > 0.0) { 1585 continue; 1586 } 1587 int idyR = int(dyR); 1588 1589 for (int wC = 0; wC < ${l}; 1590 wC+= ${o}) { 1591 float dyC = float(dyCCorner + wC) / ${i}.0; 1592 1593 if (dyC < 0.0 || dyC >= ${e.outWidth}.0 || 1594 fract(dyC) > 0.0) { 1595 continue; 1596 } 1597 int idyC = int(dyC); 1598 1599 float dyValue = getDy(b, idyR, idyC, d); 1600 1601 dotProd += dyValue * avgMultiplier; 1602 } 1603 } 1604 setOutput(dotProd); 1605 } 1606 `}}class OE{constructor(e){this.variableNames=["dy"],this.outputShape=e.inShape;let t=e.filterDepth,n=e.filterHeight,r=e.filterWidth,i=e.strideDepth,a=e.strideHeight,o=e.strideWidth,s=e.dilationDepth,l=e.dilationHeight,u=e.dilationWidth,c=e.effectiveFilterDepth,p=e.effectiveFilterHeight,d=e.effectiveFilterWidth,f=c-1-e.padInfo.front,h=p-1-e.padInfo.top,g=d-1-e.padInfo.left,b=1/(t*n*r);this.userCode=` 1607 const ivec3 pads = ivec3(${f}, ${h}, ${g}); 1608 const float avgMultiplier = float(${b}); 1609 1610 void main() { 1611 ivec5 coords = getOutputCoords(); 1612 int batch = coords.x; 1613 int ch = coords.u; 1614 1615 ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads; 1616 int dyDCorner = dyCorner.x; 1617 int dyRCorner = dyCorner.y; 1618 int dyCCorner = dyCorner.z; 1619 1620 // Convolve dy(?, ?, ?, d) with pos mask(:, :, :, ch) to get 1621 // dx(xD, xR, xC, ch). 1622 // ? = to be determined. : = across all values in that axis. 1623 float dotProd = 0.0; 1624 1625 for (int wD = 0; wD < ${c}; 1626 wD += ${s}) { 1627 float dyD = float(dyDCorner + wD) / ${i}.0; 1628 1629 if (dyD < 0.0 || dyD >= ${e.outDepth}.0 || fract(dyD) > 0.0) { 1630 continue; 1631 } 1632 int idyD = int(dyD); 1633 1634 for (int wR = 0; wR < ${p}; 1635 wR += ${l}) { 1636 float dyR = float(dyRCorner + wR) / ${a}.0; 1637 1638 if (dyR < 0.0 || dyR >= ${e.outHeight}.0 || 1639 fract(dyR) > 0.0) { 1640 continue; 1641 } 1642 int idyR = int(dyR); 1643 1644 for (int wC = 0; wC < ${d}; 1645 wC += ${u}) { 1646 float dyC = float(dyCCorner + wC) / ${o}.0; 1647 1648 if (dyC < 0.0 || dyC >= ${e.outWidth}.0 || 1649 fract(dyC) > 0.0) { 1650 continue; 1651 } 1652 int idyC = int(dyC); 1653 1654 float dyValue = getDy(batch, idyD, idyR, idyC, ch); 1655 1656 dotProd += dyValue * avgMultiplier; 1657 } 1658 } 1659 } 1660 setOutput(dotProd); 1661 } 1662 `}}let OR={kernelName:ep.u,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,input:a}=t,o=a,{filterSize:s,strides:l,pad:u,dimRoundingMode:c}=r,p=new OE(ep.ie.computePool3DInfo(o.shape,s,l,[1,1,1],u,c));return n.runWebGLProgram(p,[i],o.dtype)}},OD={kernelName:ep.v,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,input:a}=t,o=a;yj([i,a],"avgPoolGrad");let{filterSize:s,strides:l,pad:u}=r,c=new O_(ep.ie.computePool2DInfo(o.shape,s,l,1,u));return n.runWebGLProgram(c,[i],o.dtype)}},OC={kernelName:ep.w,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{a:i,b:a}=t,{transposeA:o,transposeB:s}=r;return v5({a:i,b:a,transposeA:o,transposeB:s,backend:n})}};class OA{constructor(e,t,n,r,i,a){this.outputShape=[],this.variableNames=["x","mean","variance"],ep.ie.assertAndGetBroadcastShape(e,t),ep.ie.assertAndGetBroadcastShape(e,n);let o="0.0";null!=r&&(ep.ie.assertAndGetBroadcastShape(e,r),this.variableNames.push("offset"),o="getOffsetAtOutCoords()");let s="1.0";null!=i&&(ep.ie.assertAndGetBroadcastShape(e,i),this.variableNames.push("scale"),s="getScaleAtOutCoords()"),this.outputShape=e,this.userCode=` 1663 void main() { 1664 float x = getXAtOutCoords(); 1665 float mean = getMeanAtOutCoords(); 1666 float variance = getVarianceAtOutCoords(); 1667 float offset = ${o}; 1668 float scale = ${s}; 1669 float inv = scale * inversesqrt(variance + float(${a})); 1670 setOutput(dot(vec3(x, -mean, offset), vec3(inv, inv, 1))); 1671 } 1672 `}}class OM{constructor(e,t,n,r,i,a){this.packedInputs=!0,this.packedOutput=!0,this.variableNames=["x","mean","variance"],ep.ie.assertAndGetBroadcastShape(e,t),ep.ie.assertAndGetBroadcastShape(e,n);let o="vec4(0.0)";null!=r&&(ep.ie.assertAndGetBroadcastShape(e,r),this.variableNames.push("offset"),o="getOffsetAtOutCoords()");let s="vec4(1.0)";null!=i&&(ep.ie.assertAndGetBroadcastShape(e,i),this.variableNames.push("scale"),s="getScaleAtOutCoords()"),this.outputShape=e,this.userCode=` 1673 void main() { 1674 vec4 offset = ${o}; 1675 vec4 scale = ${s}; 1676 1677 vec4 x = getXAtOutCoords(); 1678 vec4 mean = getMeanAtOutCoords(); 1679 vec4 variance = getVarianceAtOutCoords(); 1680 1681 vec4 inv = scale * inversesqrt(variance + vec4(${a})); 1682 1683 setOutput((x - mean) * inv + offset); 1684 } 1685 `}}
1685let O$={kernelName:ep.ub,backendName:"webgl",kernelFunc:({inputs:e,backend:t,attrs:n})=>{let{x:r,mean:i,variance:a,offset:o,scale:s}=e;ep.Si.assert(i.shape.length===a.shape.length,()=>"Batch normalization gradient requires mean and variance to have equal ranks."),ep.Si.assert(null==o||i.shape.length===o.shape.length,()=>"Batch normalization gradient requires mean and offset to have equal ranks."),ep.Si.assert(null==s||i.shape.length===s.shape.length,()=>"Batch normalization gradient requires mean and scale to have equal ranks.");let{varianceEpsilon:l}=n;null==l&&(l=.001);let u=[r,i,a],c=null;null!=o&&(c=o.shape,u.push(o));let p=null;null!=s&&(p=s.shape,u.push(s));let d=Object(ep.of)().getBool("WEBGL_PACK_NORMALIZATION")?new OM(r.shape,i.shape,a.shape,c,p,l):new OA(r.shape,i.shape,a.shape,c,p,l);return t.runWebGLProgram(d,u,u[0].dtype)}};class OU{constructor(e){let t;this.variableNames=["source"],this.outputShape=e,this.rank=e.length;let n=yq(this.rank);this.customUniforms=[{name:"start",arrayIndex:this.rank,type:"int"}];let r=function(e){if(1===e)return"sourceLoc";if(e<=6)return OP.slice(0,e).map(e=>"sourceLoc."+e).join(",");throw Error(`Slicing for rank ${e} is not yet supported`)}(this.rank);t=` 1686 ${n} sourceLoc; 1687 ${n} coords = getOutputCoords(); 1688 ${e.map((e,t)=>`sourceLoc.${OP[t]} = start[${t}] + coords.${OP[t]};`).join("\n")} 1689 `,this.userCode=` 1690 void main() { 1691 ${t} 1692 setOutput(getSource(${r})); 1693 } 1694 `}}let OP=["x","y","z","w","u","v"];class OB{constructor(e){this.variableNames=["source"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=e,this.rank=e.length,this.customUniforms=[{name:"start",arrayIndex:this.rank,type:"int"}];let t=yq(this.rank),n=vo("coords",this.rank),r=vo("sourceLoc",this.rank),i=1===this.rank?"sourceLoc":`vec2(${r.slice(-2).join()})`,a=`getChannel(getSource(${r.join()}), ${i})`,o=` 1695 result.x = ${a}; 1696 if (++${n[this.rank-1]} < ${e[this.rank-1]}) { 1697 ++${r[this.rank-1]}; 1698 result.y = ${a}; 1699 --${r[this.rank-1]}; 1700 } 1701 `,s=1===this.rank?"":` 1702 --${n[this.rank-1]}; 1703 if (++${n[this.rank-2]} < ${e[this.rank-2]}) { 1704 ++${r[this.rank-2]}; 1705 result.z = ${a}; 1706 if (++${n[this.rank-1]} < ${e[this.rank-1]}) { 1707 ++${r[this.rank-1]}; 1708 result.w = ${a}; 1709 } 1710 } 1711 `,l=this.rank<=4?`sourceLoc = coords + 1712 ${t}(${e.map((e,t)=>`start[${t}]`).join()});`:e.map((e,t)=>`${r[t]} = ${n[t]} + start[${t}];`).join("\n");this.userCode=` 1713 void main() { 1714 ${t} coords = getOutputCoords(); 1715 ${t} sourceLoc; 1716 ${l} 1717 vec4 result = vec4(0.); 1718 ${o} 1719 ${s} 1720 setOutput(result); 1721 } 1722 `}}function OL(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{begin:a,size:o}=r,[s,l]=ep.Zh.parseSliceParams(i,a,o);if(ep.Zh.assertParamsValid(i,s,l),0===ep.Si.sizeFromShape(l))return n.makeTensorInfo(l,i.dtype,[]);if(n.shouldExecuteOnCPU([i])||"string"===i.dtype){let e=S0(n.texData.get(i.dataId).values,s,l,i.shape,i.dtype);return n.makeTensorInfo(l,i.dtype,e)}let{isPacked:u}=n.texData.get(i.dataId),c=ep.Zh.isSliceContinous(i.shape,s,l);if(u||!c){let e=Object(ep.of)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new OB(l):new OU(l),t=[s];return n.runWebGLProgram(e,[i],i.dtype,t)}return n.uploadToGPU(i.dataId),function(e,t,n,r){let i=r.texData.get(e.dataId),a=r.makeTensorInfo(n,e.dtype),o=r.texData.get(a.dataId);Object.assign(o,i),o.refCount=1,o.shape=n,o.dtype=e.dtype;let s=ep.Zh.computeFlatOffset(t,ep.Si.computeStrides(e.shape));i.slice&&(s+=i.slice.flatOffset),o.slice={flatOffset:s,origDataId:i.slice&&i.slice.origDataId||e.dataId};let l=r.dataRefCount.get(o.slice.origDataId)||1;return r.dataRefCount.set(o.slice.origDataId,l+1),a}(i,s,l,n)}let OW={kernelName:ep.gd,backendName:"webgl",kernelFunc:OL},Oz={kernelName:ep.x,backendName:"webgl",kernelFunc:e=>{let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{blockShape:a,crops:o}=r;ep.Si.assert(i.shape.length<=4,()=>"batchToSpaceND for rank > 4 with a WebGL backend not implemented yet");let s=a.reduce((e,t)=>e*t),l=ep.ie.getReshaped(i.shape,a,s),u=ep.ie.getPermuted(l.length,a.length),c=ep.ie.getReshapedPermuted(i.shape,a,s),p=ep.ie.getSliceBeginCoords(o,a.length),d=ep.ie.getSliceSize(c,o,a.length),f=[],h=vK({inputs:{x:i},backend:n,attrs:{shape:l}}),g=v4({inputs:{x:h},backend:n,attrs:{perm:u}}),b=vK({inputs:{x:g},backend:n,attrs:{shape:c}}),m=OL({inputs:{x:b},backend:n,attrs:{begin:p,size:d}});
1722return f.push(h),f.push(g),f.push(b),f.forEach(e=>n.disposeIntermediateTensorInfo(e)),m}},OG={kernelName:ep.y,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,weights:a}=t,{size:o}=r,s=SO(n.readSync(i.dataId),n.readSync(a.dataId),a.dtype,a.shape,o);return n.makeTensorInfo([o],a.dtype,s)}},OV={kernelName:ep.z,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r}=e,{a:i,b:a}=n,o=Object(ep.of)().getBool("WEBGL_PACK_BINARY_OPERATIONS"),s=Object(ep.of)().getNumber("WEBGL_VERSION");if(r.shouldExecuteOnCPU([i,a])||1===s){let e=r.texData.get(i.dataId).values,t=r.texData.get(a.dataId).values,[n,o]=SI(i.shape,a.shape,e,t,i.dtype),s=r.makeTensorInfo(o,i.dtype);return r.texData.get(s.dataId).values=n,s}return t=o?new vw("\n int r = int(a.r) & int(b.r);\n int g = int(a.g) & int(b.g);\n int rb = int(a.b) & int(b.b);\n int ra = int(a.a) & int(b.a);\n return vec4(r, g, rb, ra);\n",i.shape,a.shape,!1):new vk("\n return float(int(a.r) & int(b.r));\n",i.shape,a.shape),r.runWebGLProgram(t,[i,a],i.dtype)}},OH={kernelName:ep.A,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{s0:r,s1:i}=t,a=n.readSync(r.dataId),o=n.readSync(i.dataId),s=ep.ie.assertAndGetBroadcastShape(Array.from(a),Array.from(o));return n.makeTensorInfo([s.length],"int32",Int32Array.from(s))}},Oq=vP({opSnippet:"return float(a != b);",cpuKernelImpl:SG,dtype:"bool"}),OK={kernelName:ep.qc,backendName:"webgl",kernelFunc:Oq};function OX(e){let{inputs:t,backend:n}=e,{input:r}=t;return vj({inputs:{x:n.texData.get(r.dataId).complexTensorInfos.real},backend:n})}let OY={kernelName:ep.Ic,backendName:"webgl",kernelFunc:OX},OQ={kernelName:ep.C,backendName:"webgl",kernelFunc:function e(t){let{inputs:n,backend:r,attrs:i}=t,{x:a}=n,{dtype:o}=i;if("complex64"===o){if("complex64"===a.dtype)return vj({inputs:{x:a},backend:r});let t=ep.aj(a.shape),n=e({inputs:{x:a},backend:r,attrs:{dtype:"float32"}}),i=v_({inputs:{real:n,imag:t},backend:r});return t.dispose(),r.disposeIntermediateTensorInfo(n),i}if("complex64"===a.dtype){let t=OX({inputs:{input:a},backend:r}),n=e({inputs:{x:t},backend:r,attrs:{dtype:o}});return r.disposeIntermediateTensorInfo(t),n}if(!ep.Si.hasEncodingLoss(a.dtype,o)){let e=vj({inputs:{x:a},backend:r});return{dataId:e.dataId,shape:e.shape,dtype:o}}if(r.shouldExecuteOnCPU([a])){let[e,t,n]=SN(r.texData.get(a.dataId).values,a.shape,a.dtype,o);return r.makeTensorInfo(e,t,n)}if("int32"===o)return function(e,t){let n=new vf(e.shape,"return float(int(x));"),r=t.runWebGLProgram(n,[e],"int32");return{dataId:r.dataId,shape:r.shape,dtype:r.dtype}}(a,r);if("bool"===o){let e=r.makeTensorInfo([],"bool",ep.Si.getTypedArrayFromDType("bool",1)),t=Oq({inputs:{a:a,b:e},backend:r});return r.disposeIntermediateTensorInfo(e),t}throw Error(`Error in Cast: failed to cast ${a.dtype} to ${o}`)}},OJ="return ceil(x);",OZ=vU({opSnippet:OJ,packedOpSnippet:OJ,cpuKernelImpl:Sk}),O0={kernelName:ep.D,backendName:"webgl",kernelFunc:OZ};class O1{constructor(e){this.variableNames=["A"],this.customUniforms=[{name:"minVal",type:"float"},{name:"maxVal",type:"float"}],this.outputShape=e,this.userCode="\n\n void main() {\n float value = getAAtOutCoords();\n if (isnan(value)) {\n setOutput(value);\n return;\n }\n\n setOutput(clamp(value, minVal, maxVal));\n }\n "}}class O2{constructor(e){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.customUniforms=[{name:"minVal",type:"float"},{name:"maxVal",type:"float"}],this.outputShape=e,this.userCode="\n void main() {\n vec4 value = getAAtOutCoords();\n\n if (any(isnan(value))) {\n setOutput(value);\n return;\n }\n\n setOutput(clamp(value, vec4(minVal), vec4(maxVal)));\n }\n "}}let O3={kernelName:ep.E,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n,{clipValueMin:o,clipValueMax:s}=i;t=Object(ep.of)().getBool("WEBGL_PACK_CLIP")?new O2(a.shape):new O1(a.shape);let l=[[o],[s]];return r.runWebGLProgram(t,[a],a.dtype,l)}};class O4{constructor(e){this.variableNames=["real","imag"],this.outputShape=e,this.userCode="\n void main() {\n float re = abs(getRealAtOutCoords());\n float im = abs(getImagAtOutCoords());\n float mx = max(re, im);\n\n // sadly the length function in glsl is not underflow-safe\n // (at least not on Intel GPUs). So the safe solution is\n // to ensure underflow-safety in all cases.\n setOutput(\n mx == 0.0 ? 0.0 : mx * length(vec2(1, min(re, im)/mx))\n );\n }\n "}}function O6(e,t){return{dataId:t.dataId,dtype:t.dtype,shape:e.shape}}let O5={kernelName:ep.G,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{x:r}=t,i=n.texData.get(r.dataId),a=new O4(r.shape),o=[O6(r,i.complexTensorInfos.real),O6(r,i.complexTensorInfos.imag)];return n.runWebGLProgram(a,o,o[0].dtype)}};class O8{constructor(e){this.outputShape=[],this.outputShape=ep.ie.computeOutShape(e,1),this.variableNames=e.map((e,t)=>"T"+t);let t=Array(e.length-1);t[0]=e[0][1];for(let n=1;n<t.length;n++)t[n]=t[n-1]+e[n][1];let n=[`if (yC < ${t[0]}) setOutput(getT0(yR, yC));`];for(let e=1;e<t.length;e++){let r=t[e-1];n.push(`else if (yC < ${t[e]}
1722) setOutput(getT${e}(yR, yC-${r}));`)}let r=t.length,i=t[t.length-1];n.push(`else setOutput(getT${r}(yR, yC-${i}));`),this.userCode=` 1723 void main() { 1724 ivec2 coords = getOutputCoords(); 1725 int yR = coords.x; 1726 int yC = coords.y; 1727 1728 ${n.join("\n ")} 1729 } 1730 `}}class O7{constructor(e,t){this.packedInputs=!0,this.packedOutput=!0,this.outputShape=[],this.outputShape=ep.ie.computeOutShape(e,t);let n=this.outputShape,r=n.length,i=yq(r),a=vo("coords",r),o=["x","y","z","w","u","v"].slice(0,r);this.variableNames=e.map((e,t)=>"T"+t);let s=Array(e.length-1);s[0]=e[0][t];for(let n=1;n<s.length;n++)s[n]=s[n-1]+e[n][t];let l=o[t],u=o.slice(-2),c=o.join(),p=`if (${l} < ${s[0]}) { 1731 return getChannel( 1732 getT0(${c}), vec2(${u.join()})); 1733 }`;for(let e=1;e<s.length;e++){let t=s[e-1];p+=` 1734 if (${l} < ${s[e]} && ${l} >= ${s[e-1]}) { 1735 return getChannel( 1736 getT${e}(${O9(o,l,t)}), 1737 vec2(${O9(u,l,t)})); 1738 }`}let d=s.length,f=s[s.length-1];p+=` 1739 return getChannel( 1740 getT${d}(${O9(o,l,f)}), 1741 vec2(${O9(u,l,f)}));`,this.userCode=` 1742 float getValue(${o.map(e=>"int "+e)}) { 1743 ${p} 1744 } 1745 1746 void main() { 1747 ${i} coords = getOutputCoords(); 1748 vec4 result = vec4(getValue(${a}), 0., 0., 0.); 1749 1750 ${a[r-1]} = ${a[r-1]} + 1; 1751 if (${a[r-1]} < ${n[r-1]}) { 1752 result.g = getValue(${a}); 1753 } 1754 1755 ${a[r-2]} = ${a[r-2]} + 1; 1756 if (${a[r-2]} < ${n[r-2]}) { 1757 result.a = getValue(${a}); 1758 } 1759 1760 ${a[r-1]} = ${a[r-1]} - 1; 1761 if (${a[r-2]} < ${n[r-2]} && 1762 ${a[r-1]} < ${n[r-1]}) { 1763 result.b = getValue(${a}); 1764 } 1765 setOutput(result); 1766 } 1767 `}}function O9(e,t,n){let r=e.indexOf(t);return e.map((e,t)=>t===r?`${e} - ${n}`:e).join()}function xe(e){let{inputs:t,backend:n}=e,{input:r}=t;return vj({inputs:{x:n.texData.get(r.dataId).complexTensorInfos.imag},backend:n})}let xt={kernelName:ep.Db,backendName:"webgl",kernelFunc:xe};function xn(e,t,n){let r=e[0].dtype;if("complex64"===r){let r=e.map(e=>OX({inputs:{input:e},backend:n})),i=e.map(e=>xe({inputs:{input:e},backend:n})),a=xn(r,t,n),o=xn(i,t,n),s=v_({inputs:{real:a,imag:o},backend:n});return r.forEach(e=>n.disposeIntermediateTensorInfo(e)),i.forEach(e=>n.disposeIntermediateTensorInfo(e)),n.disposeIntermediateTensorInfo(a),n.disposeIntermediateTensorInfo(o),s}let i=n.shouldExecuteOnCPU(e);if("string"===r&&(i=!0),i){let i=e.map(e=>{let r=ep.Si.sizeFromShape(e.shape.slice(t));return vK({inputs:{x:e},backend:n,attrs:{shape:[-1,r]}})}),a=i.map(e=>({vals:n.readSync(e.dataId),shape:e.shape})),o=ST(a,ep.ie.computeOutShape(i.map(e=>e.shape),1),r,1===i[0].shape[0]),s=ep.ie.computeOutShape(e.map(e=>e.shape),t),l=n.makeTensorInfo(s,r,o);return i.forEach(e=>n.disposeIntermediateTensorInfo(e)),l}let a=e.filter(e=>ep.Si.sizeFromShape(e.shape)>0),o=Object(ep.of)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")&&a[0].shape.length>1;if(1===a.length){let t=o?new vf(e[0].shape,vg):new vb(e[0].shape,vg);return n.runWebGLProgram(t,e,r)}let s=Object(ep.of)().getNumber("WEBGL_MAX_TEXTURES_IN_SHADER");if(a.length>s){let e=[];for(let r=0;r<a.length;r+=s){let i=a.slice(r,r+s);e.push(xn(i,t,n))}let r=xn(e,t,n);for(let t of e)n.disposeIntermediateTensorInfo(t);return r}if(o){let e=new O7(a.map(e=>e.shape),t);return n.runWebGLProgram(e,a,r)}let{tensors2D:l,outShape:u}=function(e,t,n){let r=ep.ie.computeOutShape(e.map(e=>e.shape),t);return{tensors2D:e.map(e=>vK({inputs:{x:e},attrs:{shape:[-1,ep.Si.sizeFromShape(e.shape.slice(t))]},backend:n})),outShape:r}}(a,t,n),c=new O8(l.map(e=>e.shape)),p=n.runWebGLProgram(c,l,r);l.forEach(e=>n.disposeIntermediateTensorInfo(e));let d=vK({inputs:{x:p},attrs:{shape:u},backend:n});return n.disposeIntermediateTensorInfo(p),d}function xr(e){let{inputs:t,backend:n,attrs:r}=e,{axis:i}=r,a=ep.Si.parseAxisParam(i,t[0].shape)[0],o=t.map(e=>e.shape);ep.ie.assertParamsConsistent(o,a);let s=ep.ie.computeOutShape(t.map(e=>e.shape),a);if(0===ep.Si.sizeFromShape(s))return n.makeTensorInfo(s,t[0].dtype,[]);let l=t.filter(e=>ep.Si.sizeFromShape(e.shape)>0);return 1===l.length?vj({inputs:{x:l[0]},backend:n}):xn(l,a,n)}let xi={kernelName:ep.H,backendName:"webgl",kernelFunc:xr};class xa{constructor(e,t=!1,n=null,r=!1,i=!1){this.variableNames=["x","W"],this.outputShape=e.outShape;let a=e.padInfo.top,o=e.padInfo.left,s=e.strideHeight,l=e.strideWidth,u=e.dilationHeight,c=e.dilationWidth,p=e.filterHeight,d=e.filterWidth,f=4*Math.floor(e.inChannels/4),h=e.inChannels%4,g="channelsLast"===e.dataFormat,b
1767=g?1:2,m=g?2:3,y=g?3:1,S="",v="";n&&(S=r?`float activation(float a) { 1768 float b = getPreluActivationWeightsAtOutCoords(); 1769 ${n} 1770 }`:i?`float activation(float a) { 1771 float b = getLeakyreluAlphaAtOutCoords(); 1772 ${n} 1773 }`:` 1774 float activation(float x) { 1775 ${n} 1776 } 1777 `,v="result = activation(result);");let O=t?"result += getBiasAtOutCoords();":"";t&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),i&&this.variableNames.push("leakyreluAlpha"),this.userCode=` 1778 ${S} 1779 1780 const ivec2 strides = ivec2(${s}, ${l}); 1781 const ivec2 pads = ivec2(${a}, ${o}); 1782 1783 void main() { 1784 ivec4 coords = getOutputCoords(); 1785 int batch = coords[0]; 1786 int d2 = coords[${y}]; 1787 1788 ivec2 xRCCorner = 1789 ivec2(coords[${b}], coords[${m}]) * strides - pads; 1790 int xRCorner = xRCCorner.x; 1791 int xCCorner = xRCCorner.y; 1792 1793 // Convolve x(?, ?, d1) with w(:, :, d1, d2) to get y(yR, yC, d2). 1794 // ? = to be determined. : = across all values in that axis. 1795 float dotProd = 0.0; 1796 for (int wR = 0; wR < ${p}; wR++) { 1797 int xR = xRCorner + wR * ${u}; 1798 1799 if (xR < 0 || xR >= ${e.inHeight}) { 1800 continue; 1801 } 1802 1803 for (int wC = 0; wC < ${d}; wC++) { 1804 int xC = xCCorner + wC * ${c}; 1805 1806 if (xC < 0 || xC >= ${e.inWidth}) { 1807 continue; 1808 } 1809 1810 for (int d1 = 0; d1 < ${f}; d1 += 4) { 1811 vec4 wValues = vec4( 1812 getW(wR, wC, d1, d2), 1813 getW(wR, wC, d1 + 1, d2), 1814 getW(wR, wC, d1 + 2, d2), 1815 getW(wR, wC, d1 + 3, d2) 1816 ); 1817 1818 if (${g}) { 1819 vec4 xValues = vec4( 1820 getX(batch, xR, xC, d1), 1821 getX(batch, xR, xC, d1 + 1), 1822 getX(batch, xR, xC, d1 + 2), 1823 getX(batch, xR, xC, d1 + 3) 1824 ); 1825 dotProd += dot(xValues, wValues); 1826 } else { 1827 vec4 xValues = vec4( 1828 getX(batch, d1, xR, xC), 1829 getX(batch, d1 + 1, xR, xC), 1830 getX(batch, d1 + 2, xR, xC), 1831 getX(batch, d1 + 3, xR, xC) 1832 ); 1833 dotProd += dot(xValues, wValues); 1834 } 1835 } 1836 1837 if (${1===h}) { 1838 1839 if (${g}) { 1840 dotProd += 1841 getX(batch, xR, xC, ${f}) * 1842 getW(wR, wC, ${f}, d2); 1843 } else { 1844 dotProd += 1845 getX(batch, ${f}, xR, xC) * 1846 getW(wR, wC, ${f}, d2); 1847 } 1848 1849 } else if (${2===h}) { 1850 vec2 wValues = vec2( 1851 getW(wR, wC, ${f}, d2), 1852 getW(wR, wC, ${f} + 1, d2) 1853 ); 1854 1855 if (${g}) { 1856 vec2 xValues = vec2( 1857 getX(batch, xR, xC, ${f}), 1858 getX(batch, xR, xC, ${f} + 1) 1859 ); 1860 dotProd += dot(xValues, wValues); 1861 } else { 1862 vec2 xValues = vec2( 1863 getX(batch, ${f}, xR, xC), 1864 getX(batch, ${f} + 1, xR, xC) 1865 ); 1866 dotProd += dot(xValues, wValues); 1867 } 1868 1869 } else if (${3===h}) { 1870 vec3 wValues = vec3( 1871 getW(wR, wC, ${f}, d2), 1872 getW(wR, wC, ${f} + 1, d2), 1873 getW(wR, wC, ${f} + 2, d2) 1874 ); 1875 1876 if (${g}) { 1877 vec3 xValues = vec3( 1878 getX(batch, xR, xC, ${f}), 1879 getX(batch, xR, xC, ${f} + 1), 1880 getX(batch, xR, xC, ${f} + 2) 1881 ); 1882 dotProd += dot(xValues, wValues); 1883 } else { 1884 vec3 xValues = vec3( 1885 getX(batch, ${f}, xR, xC), 1886 getX(batch, ${f} + 1, xR, xC), 1887 getX(batch, ${f} + 2, xR, xC) 1888 ); 1889 dotProd += dot(xValues, wValues); 1890 } 1891 1892 } 1893 } 1894 } 1895 1896 float result = dotProd; 1897 ${O} 1898 ${v} 1899 setOutput(result); 1900 } 1901 `}}class xo{constructor(e){this.variableNames=["x","W"],this.outputShape=e.outShape;let t=e.padInfo.front,n=e.padInfo.top,r=e.padInfo.left,i=e.strideDepth,a=e.strideHeight,o=e.strideWidth,s=e.dilationDepth,l=e.dilationHeight,u=e.dilationWidth,c=e.filterDepth,p=e.filterHeight,d=e.filterWidth,f=4*Math.floor(e.inChannels/4),h=e.inChannels%4;this.userCode=` 1902 const ivec3 strides = ivec3(${i}, ${a}, ${o}); 1903 const ivec3 pads = ivec3(${t}, ${n}, ${r}); 1904 1905 void main() { 1906 ivec5 coords = getOutputCoords(); 1907 int batch = coords.x; 1908 int d2 = coords.u; 1909 1910 ivec3 xFRCCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads; 1911 int xFCorner = xFRCCorner.x; 1912 int xRCorner = xFRCCorner.y; 1913 int xCCorner = xFRCCorner.z; 1914 1915 // Convolve x(?, ?, ?, d1) with w(:, :, :, d1, d2) to get 1916 // y(yF, yR, yC, d2). ? = to be determined. : = across all 1917 // values in that axis. 1918 float dotProd = 0.0; 1919 for (int wF = 0; wF < ${c}; wF++) { 1920 int xF = xFCorner + wF * ${s}; 1921 1922 if (xF < 0 || xF >= ${e.inDepth}) { 1923 continue; 1924 } 1925 1926 for (int wR = 0; wR < ${p}; wR++) { 1927 int xR = xRCorner + wR * ${l}; 1928 1929 if (xR < 0 || xR >= ${e.inHeight}) { 1930 continue; 1931 } 1932 1933 for (int wC = 0; wC < ${d}; wC++) { 1934 int xC = xCCorner + wC * ${u}; 1935 1936 if (xC < 0 || xC >= ${e.inWidth}) { 1937 continue; 1938 } 1939 1940 for (int d1 = 0; d1 < ${f}; d1 += 4) { 1941 vec4 xValues = vec4( 1942 getX(batch, xF, xR, xC, d1), 1943 getX(batch, xF, xR, xC, d1 + 1), 1944 getX(batch, xF, xR, xC, d1 + 2), 1945 getX(batch, xF, xR, xC, d1 + 3) 1946 ); 1947 vec4 wValues = vec4( 1948 getW(wF, wR, wC, d1, d2), 1949 getW(wF, wR, wC, d1 + 1, d2), 1950 getW(wF, wR, wC, d1 + 2, d2), 1951 getW(wF, wR, wC, d1 + 3, d2) 1952 ); 1953 1954 dotProd += dot(xValues, wValues); 1955 } 1956 1957 if (${1===h}) { 1958 dotProd += 1959 getX(batch, xF, xR, xC, ${f}) * 1960 getW(wF, wR, wC, ${f}, d2); 1961 } else if (${2===h}) { 1962 vec2 xValues = vec2( 1963 getX(batch, xF, xR, xC, ${f}), 1964 getX(batch, xF, xR, xC, ${f} + 1) 1965 ); 1966 vec2 wValues = vec2( 1967 getW(wF, wR, wC, ${f}, d2), 1968 getW(wF, wR, wC, ${f} + 1, d2) 1969 ); 1970 dotProd += dot(xValues, wValues); 1971 } else if (${3===h}) { 1972 vec3 xValues = vec3( 1973 getX(batch, xF, xR, xC, ${f}), 1974 getX(batch, xF, xR, xC, ${f} + 1), 1975 getX(batch, xF, xR, xC, ${f} + 2) 1976 ); 1977 vec3 wValues = vec3( 1978 getW(wF, wR, wC, ${f}, d2), 1979 getW(wF, wR, wC, ${f} + 1, d2), 1980 getW(wF, wR, wC, ${f} + 2, d2) 1981 ); 1982 dotProd += dot(xValues, wValues); 1983 } 1984 } 1985 } 1986 } 1987 setOutput(dotProd); 1988 } 1989 `}}class xs{constructor(e,t=!1,n=null,r=!1,i=!1){this.variableNames=["x","W"],this.packedInputs=!0,this.packedOutput=!0,this.customUniforms=[{name:"pads",type:"ivec2"},{name:"strides",type:"ivec2"},{name:"dilations",type:"ivec2"},{name:"inDims",type:"ivec2"}],this.outputShape=e.outShape,this.enableShapeUniforms=yZ(this.outputShape.length);let a=e.padInfo.left,o=e.strideWidth,s=e.dilationWidth,l=e.filterHeight,u=e.filterWidth,c=u,p="\n int xR; int xC; int xCOffset;\n vec4 wTexel; vec4 previous; vec4 final;";for(let e=0;e<u;e++)p+=` 1990 vec4 xTexelC${2*e}; 1991 int xTexelC${2*e}Ready; 1992 vec4 xTexelC${2*e+1}; 1993 int xTexelC${2*e+1}Ready; 1994 vec4 xC${e};`;p+=` 1995 for (int r = 0; r < ${l}; r++) { 1996 for (int d1 = 0; d1 < ${e.inChannels}; d1 += 2) { 1997 `;
1997for(let e=0;e<u;e++)p+=` 1998 xTexelC${2*e} = vec4(0.0); 1999 xTexelC${2*e}Ready = 0; 2000 xTexelC${2*e+1} = vec4(0.0); 2001 xTexelC${2*e+1}Ready = 0; 2002 xC${e} = vec4(0.0);`;p+="\n xR = xRCorner + r * dilations[0];\n if (xR >=0 && xR < inDims[0]) {\n ";for(let t=0;t<(c+1)/2;t++){let n=2*t;if(p+=` 2003 xC = xCCorner + ${n*s}; 2004 `,1===o){if(n<u&&(a%2==1?p+=` 2005 xCOffset = xC + 1; 2006 if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n}Ready == 0) { 2007 xTexelC${n} = getX(batch, xR, xCOffset, d1); 2008 2009 // Need to manually clear unused channels in case 2010 // we're reading from recycled texture. 2011 if (xCOffset + 1 >= inDims[1]) { 2012 xTexelC${n}.zw = vec2(0.0); 2013 } 2014 xTexelC${n}Ready = 1; 2015 } 2016 `+(1===s&&n>0?` 2017 xC${n} = vec4(xTexelC${n-2}.zw, xTexelC${n}.xy); 2018 `:` 2019 xCOffset = xC + 1 - 2; 2020 2021 if (xCOffset >= 0 && xCOffset < inDims[1]) { 2022 previous = getX(batch, xR, xCOffset, d1); 2023 2024 // Need to manually clear unused channels in case 2025 // we're reading from recycled texture. 2026 if (xCOffset + 1 >= inDims[1]) { 2027 previous.zw = vec2(0.0); 2028 } 2029 2030 xC${n} = vec4(previous.zw, xTexelC${n}.xy); 2031 } else { 2032 xC${n} = vec4(0.0, 0.0, xTexelC${n}.xy); 2033 } 2034 `):p+=` 2035 if (xC >= 0 && xC < inDims[1] && xTexelC${n}Ready == 0) { 2036 xTexelC${n} = getX(batch, xR, xC, d1); 2037 if (xC + 1 >= inDims[1]) { 2038 xTexelC${n}.zw = vec2(0.0); 2039 } 2040 xTexelC${n}Ready = 1; 2041 } 2042 2043 xC${n} = xTexelC${n}; 2044 `,n+1<u)){let e=a%2==0?ep.Si.nearestLargerEven(s):s;s%2==0&&a%2==1||s%2!=0&&a%2!=1?p+=` 2045 xCOffset = xC + imod(pads[1], 2) + ${e}; 2046 2047 if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n+1}Ready == 0) { 2048 xTexelC${n+1} = getX(batch, xR, xCOffset, d1); 2049 2050 // Need to manually clear unused channels in case 2051 // we're reading from recycled texture. 2052 if (xCOffset + 1 >= inDims[1]) { 2053 xTexelC${n+1}.zw = vec2(0.0); 2054 } 2055 xTexelC${n+1}Ready = 1; 2056 } 2057 `+(s>1?` 2058 xCOffset -= 2; 2059 if (xCOffset >= 0 && xCOffset < inDims[1]) { 2060 previous = getX(batch, xR, xCOffset, d1); 2061 xC${n+1} = vec4(previous.zw, xTexelC${n+1}.xy); 2062 } else { 2063 xC${n+1} = vec4(0.0, 0.0, xTexelC${n+1}.xy); 2064 } 2065 `:` 2066 xC${n+1} = vec4(xTexelC${n}.zw, xTexelC${n+1}.xy); 2067 `):p+=1===e?` 2068 xC${n+1} = xTexelC${n}; 2069 `:` 2070 xCOffset = xC + ${e}; 2071 2072 if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n+1}Ready == 0) { 2073 xTexelC${n+1} = getX(batch, xR, xCOffset, d1); 2074 if (xCOffset + 1 >= inDims[1]) { 2075 xTexelC${n+1}.zw = vec2(0.0); 2076 } 2077 xTexelC${n+1}Ready = 1; 2078 } 2079 2080 xC${n+1} = xTexelC${n+1}; 2081 `}}else n<u&&(a%2==1?(p+=` 2082 xCOffset = xC + 1 - strides[1]; 2083 if(xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n}Ready == 0) { 2084 xTexelC${n} = getX(batch, xR, xCOffset, d1); 2085 // Need to manually clear unused channels in case 2086 // we're reading from recycled texture. 2087 if (xCOffset + 1 >= inDims[1]) { 2088 xTexelC${n}.zw = vec2(0.0); 2089 } 2090 xTexelC${n}Ready = 1; 2091 } 2092 2093 if(xC + 1 >= 0 && xC + 1 < inDims[1] && xTexelC${n+1}Ready == 0) { 2094 xTexelC${n+1} = getX(batch, xR, xC + 1, d1); 2095 // Need to manually clear unused channels in case 2096 // we're reading from recycled texture. 2097 if (xC + 2 >= inDims[1]) { 2098 xTexelC${n+1}.zw = vec2(0.0); 2099 } 2100 xTexelC${n+1}Ready = 1; 2101 } 2102 2103 xC${n} = vec4(xTexelC${n}.zw, xTexelC${n+1}.zw); 2104 `,n+1<u&&(p+=` 2105 final = vec4(0.0); 2106 xCOffset = xC + 1 + strides[1]; 2107 if(xCOffset >= 0 && xCOffset < inDims[1]) { 2108 final = getX(batch, xR, xCOffset, d1); 2109 } 2110 xC${n+1} = vec4(xTexelC${n+1}.xy, final.xy); 2111 `)):(p+=` 2112 if(xC >= 0 && xC < inDims[1] && xTexelC${n}Ready == 0) { 2113 xTexelC${n} = getX(batch, xR, xC, d1); 2114 if (xC + 1 >= inDims[1]) { 2115 xTexelC${n}.zw = vec2(0.0); 2116 } 2117 xTexelC${n}Ready = 1; 2118 } 2119 2120 xCOffset = xC + strides[1]; 2121 if(xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n+1}Ready == 0) { 2122 xTexelC${n+1} = getX(batch, xR, xCOffset, d1); 2123 if (xCOffset + 1 >= inDims[1]) { 2124 xTexelC${n+1}.zw = vec2(0.); 2125 } 2126 xTexelC${n+1}Ready = 1; 2127 } 2128 2129 xC${n} = vec4( 2130 xTexelC${n}.xy, xTexelC${n+1}.xy); 2131 `,n+1<u&&(p+=` 2132 xC${n+1} = vec4(xTexelC${n}.zw, xTexelC${n+1}.zw); 2133 `)));n<u&&(p+=` 2134 wTexel = getW(r, ${n}, d1, d2); 2135 dotProd += xC${n}.xxzz * vec4(wTexel.xy, wTexel.xy); 2136 if(d1 + 1 < ${e.inChannels}) { 2137 dotProd += xC${n}.yyww * vec4(wTexel.zw, wTexel.zw); 2138 } 2139 `,n+1<u&&(p+=` 2140 wTexel = getW(r, ${n+1}, d1, d2); 2141 dotProd += xC${n+1}.xxzz * vec4(wTexel.xy, wTexel.xy); 2142 if(d1 + 1 < ${e.inChannels}) { 2143 dotProd += xC${n+1}.yyww * vec4(wTexel.zw, wTexel.zw); 2144 } 2145 `))}p+="\n }\n \n }\n \n }\n ";let d="",f="";n&&(d=r?`vec4 activation(vec4 a) { 2146 vec4 b = getPreluActivationWeightsAtOutCoords(); 2147 ${n} 2148 }`:i?`vec4 activation(vec4 a) { 2149 vec4 b = getLeakyreluAlphaAtOutCoords(); 2150 ${n} 2151 }`:`vec4 activation(vec4 x) { 2152 ${n} 2153 }`,f="result = activation(result);");let h=t?"result += getBiasAtOutCoords();":"";t&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),i&&this.variableNames.push("leakyreluAlpha"),this.userCode=` 2154 ${d} 2155 2156 void main() { 2157 ivec4 coords = getOutputCoords(); 2158 int batch = coords.x; 2159 ivec2 xRCCorner = coords.yz * strides - pads; 2160 int d2 = coords.w; 2161 int xRCorner = xRCCorner.x; 2162 int xCCorner = xRCCorner.y; 2163 2164 //intialize dotProd with a small epsilon seems to reduce GPU accuracy loss. 2165 vec4 dotProd = vec4(0.000000000000001); 2166 2167 ${p} 2168 2169 vec4 result = dotProd - vec4(0.000000000000001); 2170 ${h} 2171 ${f} 2172 setOutput(result); 2173 } 2174 `}}class xl{constructor(e,t){this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.customUniforms=[{name:"inputShape",type:"ivec4"},{name:"pad",type:"ivec2"},{name:"stride",type:"ivec2"},{name:"dilation",type:"ivec2"},{name:"inChannels",type:"int"},{name:"itemsPerBlockRow",type:"int"},{name:"outWidth",type:"int"}],this.outputShape=e,this.enableShapeUniforms=yZ(this.outputShape.length);let{dataFormat:n}=t,r=y_(),i="channelsLast"===n,a=i?1:2,o=i?2:3,s=this.enableShapeUniforms?"if(blockIndex < outShape[2] && pos < outShape[1]) {":`if(blockIndex < ${e[2]} && pos < ${e[1]}) {`,l="";for(let e=0;e<=1;e++)for(let t=0;t<=1;t++)l+=` 2175 blockIndex = rc.z + ${t}; 2176 pos = rc.y + ${e}; 2177 2178 ${s} 2179 offsetY = int(blockIndex / outWidth) * stride[0] - pad[0]; 2180 d0 = offsetY + dilation[0] * (pos / itemsPerBlockRow); 2181 2182 if(d0 < inputShape[${a}] && d0 >= 0) { 2183 // Use custom imod instead mod. On Intel GPU, mod may generate 2184 // unexpected value. 2185 // https://github.com/tensorflow/tfjs/issues/5447 2186 offsetX = imod(blockIndex, outWidth) * stride[1] - pad[
21861]; 2187 d1 = offsetX + dilation[1] * (imod(pos, itemsPerBlockRow) / 2188 inChannels); 2189 2190 if(d1 < inputShape[${o}] && d1 >= 0) { 2191 2192 ch = imod(pos, inChannels); 2193 2194 if (${i}) { 2195 innerDims = vec2(d1, ch); 2196 result[${2*e+t}] = getChannel( 2197 getA(rc.x, d0, int(innerDims.x), 2198 int(innerDims.y)), innerDims); 2199 } else { 2200 innerDims = vec2(d0, d1); 2201 result[${2*e+t}] = getChannel( 2202 getA(rc.x, ch, int(innerDims.x), 2203 int(innerDims.y)), innerDims); 2204 } 2205 } 2206 } 2207 } 2208 `;this.userCode=` 2209 void main() { 2210 ivec3 rc = getOutputCoords(); 2211 2212 vec4 result = vec4(0); 2213 2214 int blockIndex, pos, offsetY, d0, offsetX, d1, ch; 2215 vec2 innerDims; 2216 2217 ${l} 2218 2219 ${r.output} = result; 2220 } 2221 `}}function xu(e,t){let n=e.length;return n>=3?t?[...e.slice(0,-3),e[n-3]*e[n-2],e[n-1]]:[...e.slice(0,-3),e[n-3],e[n-2]*e[n-1]]:!t&&1===n&&e[0]>1?[e[0],1]:null}function xc({x:e,filter:t,convInfo:n,backend:r,bias:i=null,preluActivationWeights:a=null,leakyreluAlpha:o=0,activation:s=null}){let l,u=e.shape,c=r.texData.get(e.dataId),p=n.inChannels,d=u[0]*u[1]*u[2],f=n.outChannels,h="channelsLast"===n.dataFormat,g=[];if(null!=a){let e=xu(a.shape,h);null!=e&&(a=vK({inputs:{x:a},backend:r,attrs:{shape:e}}),g.push(a))}if(null!=i){let e=xu(i.shape,h);null!=e&&(i=vK({inputs:{x:i},backend:r,attrs:{shape:e}}),g.push(i))}if(!((1===d||1===f)&&p>1e3)&&c.isPacked&&h&&null!=c.texture&&u[2]%2!=0&&ep.Si.arraysEqual(c.shape.slice(-3),u.slice(-3))){let p=u[0]*u[1]*(u[2]+1),d={dataId:e.dataId,shape:[1,p,n.inChannels],dtype:e.dtype},f=c.shape;c.shape=c.shape.slice(),c.shape[c.shape.length-2]++,ep.Si.assert(yb(c.shape,d.shape),()=>`packed reshape ${c.shape} to ${d.shape} isn't free`);let h=vK({inputs:{x:t},backend:r,attrs:{shape:[1,n.inChannels,n.outChannels]}});g.push(h);let b=v5({a:d,b:h,backend:r,transposeA:!1,transposeB:!1,bias:i,activation:s,preluActivationWeights:a,leakyreluAlpha:o}),m=r.texData.get(b.dataId);ep.Si.assert(m.isPacked,()=>"batchMatMul result is expected to be packed"),c.shape=f,m.shape=n.outShape,(l=vj({inputs:{x:b},backend:r})).shape=n.outShape,g.push(b)}else{let u=n.outHeight*n.outWidth,c=vK({inputs:{x:e},backend:r,attrs:{shape:h?[n.batchSize,u,n.inChannels]:[n.batchSize,n.inChannels,u]}}),p=vK({inputs:{x:t},backend:r,attrs:{shape:[1,n.inChannels,n.outChannels]}}),d=v5({a:h?c:p,b:h?p:c,transposeA:!h,transposeB:!1,backend:r,bias:i,activation:s,preluActivationWeights:a,leakyreluAlpha:o});l=vK({inputs:{x:d},backend:r,attrs:{shape:n.outShape}}),g.push(c),g.push(p),g.push(d)}for(let e of g)r.disposeIntermediateTensorInfo(e);return l}function xp({x:e,filter:t,convInfo:n,backend:r,bias:i=null,preluActivationWeights:a=null,leakyreluAlpha:o=0,activation:s=null}){let{filterWidth:l,filterHeight:u,inChannels:c,outWidth:p,outHeight:d,dataFormat:f}=n,h="channelsLast"===f,g=l*u*c,b=d*p,m=[n.batchSize,g,b],y=[];if(null!=a){let e=xu(a.shape,h);null!=e&&(a=vK({inputs:{x:a},backend:r,attrs:{shape:e}}),y.push(a))}if(null!=i){let e=xu(i.shape,h);null!=e&&(i=vK({inputs:{x:i},backend:r,attrs:{shape:e}}),y.push(i))}let S=vK({inputs:{x:t},backend:r,attrs:{shape:[1,g,ep.Si.sizeFromShape(t.shape)/g]}});y.push(S);let v=new xl(m,n),O=[e.shape,[n.padInfo.top,n.padInfo.left],[n.strideHeight,n.strideWidth],[n.dilationHeight,n.dilationWidth],[n.inChannels],[n.filterWidth*n.inChannels],[n.outWidth]],x=r.runWebGLProgram(v,[e],"float32",O),I=vK({inputs:{x:x},backend:r,attrs:{shape:m}});y.push(x),y.push(I);let N=null!=i,k=null!=a,T="leakyrelu"===s,w=s?vB(s,!0):null,j=new vL(h?I.shape:S.shape,h?S.shape:I.shape,h?[n.batchSize,b,n.outChannels]:[n.batchSize,n.outChannels,b],!0,!1,N,w,k,T),F=h?[I,S]:[S,I];if(i&&F.push(i),k&&F.push(a),T){let e=r.makeTensorInfo([],"float32",ep.Si.createScalarValue(o,"float32"));F.push(e),y.push(e)}let _=r.runWebGLProgram(j,F,"float32"),E=vK({inputs:{x:_},backend:r,attrs:{shape:n.outShape}});for(let e of(y.push(_),y))r.disposeIntermediateTensorInfo(e);return E}let xd={kernelName:ep.I,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a,filter:o}=n,{strides:s,pad:l,dataFormat:u,dilations:c,dimRoundingMode:p}
2221=i,d=ep.ie.convertConv2DDataFormat(u),f=ep.ie.computeConv2DInfo(a.shape,o.shape,s,c,l,p,!1,d);if(1!==f.filterHeight||1!==f.filterWidth||1!==f.dilationHeight||1!==f.dilationWidth||1!==f.strideHeight||1!==f.strideWidth||"SAME"!==f.padInfo.type&&"VALID"!==f.padInfo.type)if(f.strideWidth<=2&&"channelsLast"===d&&Object(ep.of)().getBool("WEBGL_EXP_CONV")){let e=new xs(f),n=[[f.padInfo.top,f.padInfo.left],[f.strideHeight,f.strideWidth],[f.dilationHeight,f.dilationWidth],[f.inHeight,f.inWidth]];t=r.runWebGLProgram(e,[a,o],"float32",n)}else if(Object(ep.of)().getBool("WEBGL_CONV_IM2COL"))t=xp({x:a,filter:o,convInfo:f,backend:r});else{let e=new xa(f);t=r.runWebGLProgram(e,[a,o],"float32")}else t=xc({x:a,filter:o,convInfo:f,backend:r});let h=vK({inputs:{x:t},backend:r,attrs:{shape:f.outShape}});return r.disposeIntermediateTensorInfo(t),h}};class xf{constructor(e){this.variableNames=["x","dy"],this.outputShape=e.filterShape;let t=e.strideHeight,n=e.strideWidth,r=e.padInfo.top,i=e.padInfo.left,a="channelsLast"===e.dataFormat;this.userCode=` 2222 void main() { 2223 ivec4 coords = getOutputCoords(); 2224 int wR = coords.x; 2225 int wC = coords.y; 2226 int d1 = coords.z; 2227 int d2 = coords.w; 2228 2229 // Convolve x(?, ?, d1) with dy(:, :, d2) to get dw(wR, wC, d1, d2). 2230 // ? = to be determined. : = across all values in that axis. 2231 float dotProd = 0.0; 2232 2233 for (int b = 0; b < ${e.batchSize}; b++) { 2234 for (int yR = 0; yR < ${e.outHeight}; yR++) { 2235 int xR = wR + yR * ${t} - ${r}; 2236 2237 if (xR < 0 || xR >= ${e.inHeight}) { 2238 continue; 2239 } 2240 2241 for (int yC = 0; yC < ${e.outWidth}; yC++) { 2242 int xC = wC + yC * ${n} - ${i}; 2243 2244 if (xC < 0 || xC >= ${e.inWidth}) { 2245 continue; 2246 } 2247 2248 ${a?"float dyValue = getDy(b, yR, yC, d2);\n float xValue = getX(b, xR, xC, d1);\n dotProd += (xValue * dyValue);":"float dyValue = getDy(b, d2, yR, yC);\n float xValue = getX(b, d1, xR, xC);\n dotProd += (xValue * dyValue);"} 2249 } 2250 } 2251 } 2252 setOutput(dotProd); 2253 } 2254 `}}class xh{constructor(e){this.variableNames=["dy","W"],this.outputShape=e.inShape;let t=e.filterHeight,n=e.filterWidth,r=e.strideHeight,i=e.strideWidth,a="channelsLast"===e.dataFormat,o=t-1-e.padInfo.top,s=n-1-e.padInfo.left,l=a?1:2,u=a?2:3,c=a?3:1;this.userCode=` 2255 const ivec2 pads = ivec2(${o}, ${s}); 2256 2257 void main() { 2258 ivec4 coords = getOutputCoords(); 2259 int batch = coords[0]; 2260 int d1 = coords[${c}]; 2261 2262 ivec2 dyCorner = ivec2(coords[${l}], coords[${u}]) - pads; 2263 int dyRCorner = dyCorner.x; 2264 int dyCCorner = dyCorner.y; 2265 2266 // Convolve dy(?, ?, d2) with w(:, :, d1, d2) to compute dx(xR, xC, d1). 2267 // ? = to be determined. : = across all values in that axis. 2268 float dotProd = 0.0; 2269 for (int wR = 0; wR < ${t}; wR++) { 2270 float dyR = float(dyRCorner + wR) / ${r}.0; 2271 2272 if (dyR < 0.0 || dyR >= ${e.outHeight}.0 || fract(dyR) > 0.0) { 2273 continue; 2274 } 2275 int idyR = int(dyR); 2276 2277 int wRPerm = ${t} - 1 - wR; 2278 2279 for (int wC = 0; wC < ${n}; wC++) { 2280 float dyC = float(dyCCorner + wC) / ${i}.0; 2281 2282 if (dyC < 0.0 || dyC >= ${e.outWidth}.0 || 2283 fract(dyC) > 0.0) { 2284 continue; 2285 } 2286 int idyC = int(dyC); 2287 2288 int wCPerm = ${n} - 1 - wC; 2289 2290 for (int d2 = 0; d2 < ${e.outChannels}; d2++) { 2291 2292 if (${a}) { 2293 float xValue = getDy(batch, idyR, idyC, d2); 2294 float wValue = getW(wRPerm, wCPerm, d1, d2); 2295 dotProd += xValue * wValue; 2296 } else { 2297 float xValue = getDy(batch, d2, idyR, idyC); 2298 float wValue = getW(wRPerm, wCPerm, d1, d2); 2299 dotProd += xValue * wValue; 2300 } 2301 2302 } 2303 } 2304 } 2305 setOutput(dotProd); 2306 } 2307 `}}class xg{constructor(e){this.variableNames=["x","dy"],this.outputShape=e.filterShape;let t=e.strideDepth,n=e.strideHeight,r=e.strideWidth,i=e.padInfo.front,a=e.padInfo.top,o=e.padInfo.left;this.userCode=` 2308 void main() { 2309 ivec5 coords = getOutputCoords(); 2310 int wF = coords.x; 2311 int wR = coords.y; 2312 int wC = coords.z; 2313 int d1 = coords.w; 2314 int d2 = coords.u; 2315 2316 float dotProd = 0.0; 2317 2318 for (int b = 0; b < ${e.batchSize}; b++) { 2319 for (int yF = 0; yF < ${e.outDepth}; yF++) { 2320 int xF = wF + yF * ${t} - ${i}; 2321 2322 if (xF < 0 || xF >= ${e.inDepth}) { 2323 continue; 2324 } 2325 2326 for (int yR = 0; yR < ${e.outHeight}; yR++) { 2327 int xR = wR + yR * ${n} - ${a}; 2328 2329 if (xR < 0 || xR >= ${e.inHeight}) { 2330 continue; 2331 } 2332 2333 for (int yC = 0; yC < ${e.outWidth}; yC++) { 2334 int xC = wC + yC * ${r} - ${o}; 2335 2336 if (xC < 0 || xC >= ${e.inWidth}) { 2337 continue; 2338 } 2339 2340 float dyValue = getDy(b, yF, yR, yC, d2); 2341 float xValue = getX(b, xF, xR, xC, d1); 2342 dotProd += (xValue * dyValue); 2343 } 2344 } 2345 } 2346 } 2347 setOutput(dotProd); 2348 } 2349 `}}class xb{constructor(e){this.variableNames=["dy","W"],this.outputShape=e.inShape;let t=e.filterDepth,n=e.filterHeight,r=e.filterWidth,i=e.strideDepth,a=e.strideHeight,o=e.strideWidth,s=t-1-e.padInfo.front,l=n-1-e.padInfo.top,u=r-1-e.padInfo.left;this.userCode=` 2350 const ivec3 pads = ivec3(${s}, ${l}, ${u}); 2351 2352 void main() { 2353 ivec5 coords = getOutputCoords(); 2354 int batch = coords.x; 2355 int d1 = coords.u; 2356 2357 2358 ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads; 2359 int dyFCorner = dyCorner.x; 2360 int dyRCorner = dyCorner.y; 2361 int dyCCorner = dyCorner.z; 2362 2363 float dotProd = 0.0; 2364 for (int wF = 0; wF < ${t}; wF++) { 2365 float dyF = float(dyFCorner + wF) / ${i}.0; 2366 2367 if (dyF < 0.0 || dyF >= ${e.outDepth}.0 || fract(dyF) > 0.0) { 2368 continue; 2369 } 2370 int idyF = int(dyF); 2371 2372 int wFPerm = ${t} - 1 - wF; 2373 2374 for (int wR = 0; wR < ${n}; wR++) { 2375 float dyR = float(dyRCorner + wR) / ${a}.0; 2376 2377 if (dyR < 0.0 || dyR >= ${e.outHeight}.0 || 2378 fract(dyR) > 0.0) { 2379 continue; 2380 } 2381 int idyR = int(dyR); 2382 2383 int wRPerm = ${n} - 1 - wR; 2384 2385 for (int wC = 0; wC < ${r}; wC++) { 2386 float dyC = float(dyCCorner + wC) / ${o}.0; 2387 2388 if (dyC < 0.0 || dyC >= ${e.outWidth}.0 || 2389 fract(dyC) > 0.0) { 2390 continue; 2391 } 2392 int idyC = int(dyC); 2393 2394 int wCPerm = ${r} - 1 - wC; 2395 2396 for (int d2 = 0; d2 < ${e.outChannels}; d2++) { 2397 float xValue = getDy(batch, idyF, idyR, idyC, d2); 2398 float wValue = getW(wFPerm, wRPerm, wCPerm, d1, d2); 2399 dotProd += xValue * wValue; 2400 } 2401 } 2402 } 2403 } 2404 setOutput(dotProd); 2405 } 2406 `}}let xm={kernelName:ep.J,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,dy:a}=t,{strides:o,pad:s,dataFormat:l,dimRoundingMode:u,filterShape:c}
2406=r,p=ep.ie.convertConv2DDataFormat(l),d=new xf(ep.ie.computeConv2DInfo(i.shape,c,o,1,s,u,!1,p));return n.runWebGLProgram(d,[i,a],"float32")}};class xy{constructor(e){this.variableNames=["dy","W"],this.packedInputs=!0,this.packedOutput=!0,this.customUniforms=[{name:"strides",type:"vec2"}],this.outputShape=e.inShape,this.enableShapeUniforms=yZ(this.outputShape.length);let t=e.filterHeight,n=e.filterWidth,r=t-1-e.padInfo.top,i=n-1-e.padInfo.left;this.userCode=` 2407 const ivec2 pads = ivec2(${r}, ${i}); 2408 2409 void main() { 2410 ivec4 coords = getOutputCoords(); 2411 int batch = coords[0]; 2412 int d1 = coords[3]; 2413 2414 ivec2 dyCorner = ivec2(coords[1], coords[2]) - pads; 2415 int dyRCorner = dyCorner.x; 2416 int dyCCorner = dyCorner.y; 2417 2418 vec4 result = vec4(0.); 2419 for (int wR = 0; wR < ${t}; wR++) { 2420 float dyR = float(dyRCorner + wR) / strides[0]; 2421 if (dyR < 0.0 || dyR >= ${e.outHeight}.0 || fract(dyR) > 0.0) { 2422 continue; 2423 } 2424 int idyR = int(dyR); 2425 int wRPerm = ${t} - 1 - wR; 2426 2427 for (int wC = 0; wC < ${n}; wC++) { 2428 int wCPerm = ${n} - 1 - wC; 2429 2430 float dyC = float(dyCCorner + wC) / strides[1]; 2431 bool idyCVal = (dyC >= 0.0) && (dyC < ${e.outWidth}.0) 2432 && (fract(dyC) == 0.0); 2433 int idyC = int(dyC); 2434 2435 float dyC2 = float(dyCCorner + wC + 1) / strides[1]; 2436 bool idyCVal2 = (dyC2 >= 0.0) && (dyC2 < ${e.outWidth}.0) 2437 && (fract(dyC2) == 0.0); 2438 int idyC2 = int(dyC2); 2439 2440 if (idyCVal && idyCVal2) { 2441 for (int d2 = 0; d2 < ${e.outChannels}; d2 += 2) { 2442 vec4 wValue = getW(wRPerm, wCPerm, d1, d2); 2443 vec4 dySample = getDy(batch, idyR, idyC, d2); 2444 vec4 dySample2 = (idyC / 2 == idyC2 / 2) ? 2445 dySample : getDy(batch, idyR, idyC2, d2); 2446 2447 vec2 dyValue = mod(float(idyC), 2.) == 0. ? 2448 dySample.xy : dySample.zw; 2449 result.xy += vec2(dot(dyValue, wValue.xy), 2450 dot(dyValue, wValue.zw)); 2451 2452 dyValue = mod(float(idyC2), 2.) == 0. ? 2453 dySample2.xy : dySample2.zw; 2454 result.zw += vec2(dot(dyValue, wValue.xy), 2455 dot(dyValue, wValue.zw)); 2456 } 2457 } else if (idyCVal) { 2458 for (int d2 = 0; d2 < ${e.outChannels}; d2 += 2) { 2459 vec4 wValue = getW(wRPerm, wCPerm, d1, d2); 2460 vec4 dySample = getDy(batch, idyR, idyC, d2); 2461 vec2 dyValue = mod(float(idyC), 2.) == 0. ? 2462 dySample.xy : dySample.zw; 2463 result.xy += vec2(dot(dyValue, wValue.xy), 2464 dot(dyValue, wValue.zw)); 2465 } 2466 } else if (idyCVal2) { 2467 for (int d2 = 0; d2 < ${e.outChannels}; d2 += 2) { 2468 vec4 wValue = getW(wRPerm, wCPerm, d1, d2); 2469 vec4 dySample = getDy(batch, idyR, idyC2, d2); 2470 vec2 dyValue = mod(float(idyC2), 2.) == 0. ? 2471 dySample.xy : dySample.zw; 2472 result.zw += vec2(dot(dyValue, wValue.xy), 2473 dot(dyValue, wValue.zw)); 2474 } 2475 } 2476 } 2477 } 2478 setOutput(result); 2479 } 2480 `}}let xS={kernelName:ep.K,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,filter:a}=t,{inputShape:o,strides:s,pad:l,dataFormat:u,dimRoundingMode:c}=r,p=ep.ie.convertConv2DDataFormat(u),d=ep.ie.computeConv2DInfo(o,a.shape,s,1,l,c,!1,p);if(Object(ep.of)().getBool("WEBGL_PACK_CONV2DTRANSPOSE")&&"channelsLast"===p){let e=[[d.strideHeight,d.strideWidth]],t=new xy(d);return n.runWebGLProgram(t,[i,a],"float32",e)}{let e=new xh(d);return n.runWebGLProgram(e,[i,a],"float32")}}},xv={kernelName:ep.L,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,filter:a}=t,{strides:o,pad:s,dilations:l}=r,u=new xo(ep.ie.computeConv3DInfo(i.shape,a.shape,o,l,s));return n.runWebGLProgram(u,[i,a],"float32")}},xO={kernelName:ep.M,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,dy:a}=t,{strides:o,pad:s,filterShape:l}=r,u=new xg(ep.ie.computeConv3DInfo(i.shape,l,o,1,s));return n.runWebGLProgram(u,[i,a],"float32")}},xx={kernelName:ep.N,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,filter:a}
2480=t,{pad:o,strides:s,inputShape:l}=r,u=new xb(ep.ie.computeConv3DInfo(l,a.shape,s,1,o));return n.runWebGLProgram(u,[i,a],"float32")}},xI=vU({opSnippet:"if (isnan(x)) return x;\n return cos(x);\n",packedOpSnippet:` 2481 vec4 result = cos(x); 2482 bvec4 isNaN = isnan(x); 2483 ${vT} 2484 return result; 2485`}),xN={kernelName:ep.O,backendName:"webgl",kernelFunc:xI},xk=vU({opSnippet:"\n float e2x = exp(-x);\n return (e2x + 1.0 / e2x) / 2.0;\n"}),xT={kernelName:ep.P,backendName:"webgl",kernelFunc:xk};class xw{constructor(e,t,n,r,i){this.variableNames=["Image","Boxes","BoxInd"],this.outputShape=[];let[a,o,s,l]=e,[u]=t,[c,p]=n;this.outputShape=[u,c,p,l];let d=+("bilinear"===r),[f,h]=[o-1+".0",s-1+".0"],[g,b,m]=c>1?[""+(o-1)/(c-1),"(y2-y1) * height_ratio",`y1*${f} + float(y)*(height_scale)`]:["0.0","0.0","0.5 * (y1+y2) * "+f],[y,S,v]=p>1?[""+(s-1)/(p-1),"(x2-x1) * width_ratio",`x1*${h} + float(x)*(width_scale)`]:["0.0","0.0","0.5 * (x1+x2) * "+h];this.userCode=` 2486 const float height_ratio = float(${g}); 2487 const float width_ratio = float(${y}); 2488 void main() { 2489 ivec4 coords = getOutputCoords(); 2490 int b = coords[0]; 2491 int y = coords[1]; 2492 int x = coords[2]; 2493 int d = coords[3]; 2494 2495 // get box vals 2496 float y1 = getBoxes(b,0); 2497 float x1 = getBoxes(b,1); 2498 float y2 = getBoxes(b,2); 2499 float x2 = getBoxes(b,3); 2500 2501 // get image in batch index 2502 int bInd = round(getBoxInd(b)); 2503 if(bInd < 0 || bInd >= ${a}) { 2504 return; 2505 } 2506 2507 float height_scale = ${b}; 2508 float width_scale = ${S}; 2509 2510 float in_y = ${m}; 2511 if( in_y < 0.0 || in_y > ${f} ) { 2512 setOutput(float(${i})); 2513 return; 2514 } 2515 float in_x = ${v}; 2516 if( in_x < 0.0 || in_x > ${h} ) { 2517 setOutput(float(${i})); 2518 return; 2519 } 2520 2521 vec2 sourceFracIndexCR = vec2(in_x,in_y); 2522 if(${d} == 1) { 2523 // Compute the four integer indices. 2524 ivec2 sourceFloorCR = ivec2(sourceFracIndexCR); 2525 ivec2 sourceCeilCR = ivec2(ceil(sourceFracIndexCR)); 2526 2527 float topLeft = getImage(b, sourceFloorCR.y, sourceFloorCR.x, d); 2528 float bottomLeft = getImage(b, sourceCeilCR.y, sourceFloorCR.x, d); 2529 float topRight = getImage(b, sourceFloorCR.y, sourceCeilCR.x, d); 2530 float bottomRight = getImage(b, sourceCeilCR.y, sourceCeilCR.x, d); 2531 2532 vec2 fracCR = sourceFracIndexCR - vec2(sourceFloorCR); 2533 2534 float top = topLeft + (topRight - topLeft) * fracCR.x; 2535 float bottom = bottomLeft + (bottomRight - bottomLeft) * fracCR.x; 2536 float newValue = top + (bottom - top) * fracCR.y; 2537 setOutput(newValue); 2538 } else { 2539 // Compute the coordinators of nearest neighbor point. 2540 ivec2 sourceNearestCR = ivec2(floor( 2541 sourceFracIndexCR + vec2(0.5,0.5))); 2542 float newValue = getImage(b, sourceNearestCR.y, sourceNearestCR.x, d); 2543 setOutput(newValue); 2544 } 2545 } 2546 `}}let xj={kernelName:ep.Q,backendName:"webgl",kernelFunc:e=>{let{inputs:t,backend:n,attrs:r}=e,{image:i,boxes:a,boxInd:o}=t,{cropSize:s,method:l,extrapolationValue:u}=r,c=new xw(i.shape,a.shape,s,l,u);return n.runWebGLProgram(c,[i,a,o],"float32")}};!function(e){e.Prod="*",e.Sum="+"}(c||(c={}));class xF{constructor(e,t,n,r){this.op=e,this.outputShape=t,this.variableNames=["x"],this.customUniforms=[{name:"index",type:"float"}];let i=this.outputShape.length,a=this.op===c.Prod?"1.0":"0.0",o=n?a:`getX(${x_(i,"coords",this.op)})`,s=this.outputShape[this.outputShape.length-1],l="",u="";n?(l=r?"end != "+(s-1):"end != 0",u=r?"end + 1":"end - 1"):(l=r?"end + pow2 < "+s:"end >= pow2",u=r?"end + pow2":"end - pow2"),this.userCode=` 2547 void main() { 2548 ${yq(i)} coords = getOutputCoords(); 2549 int end = ${xE(i,"coords",this.op)}; 2550 float val = ${o}; 2551 int pow2 = int(pow(2.0, index)); 2552 if (${l}) { 2553 int idx = ${u}; 2554 ${xE(i,"coords",this.op)} = idx; 2555 val ${this.op}= getX(${x_(i,"coords",this.op)}); 2556 } 2557 setOutput(val); 2558 } 2559 `}}function x_(e,t,n){if(1===e)return""+t;if(2===e)return`${t}.x, ${t}.y`;if(3===e)return`${t}.x, ${t}.y, ${t}.z`;if(4===e)return`${t}.x, ${t}.y, ${t}.z, ${t}.w`;throw Error(`Cumulative ${n} for rank ${e} is not yet supported`)}function xE(e,t,n){if(1===e)return""+t;if(2===e)return t+".y";if(3===e)return t+".z";if(4===e)return t+".w";throw Error(`Cumulative ${n} for rank ${e} is not yet supported`)}function xR(e,t,n,r,i,a){let o=t.shape.length,s=ep.ie.getAxesPermutation([r],o),l=t;null!=s&&(l=v4({inputs:{x:t},backend:n,attrs:{perm:s}}));let u=ep.ie.getInnerMostAxes(1,o)[0];if(u!==o-1)throw Error(`WebGL cumprod shader expects an inner-most axis=${t.shape.length-1} but got axis=`+r);let c=l.shape[u],p=vj({inputs:{x:l},backend:n});for(let t=0;t<=Math.ceil(Math.log2(c))-1;t++){let r=new xF(e,l.shape,!1,a),i=[[t]],o=p;
2559p=n.runWebGLProgram(r,[p],p.dtype,i),n.disposeIntermediateTensorInfo(o)}if(i){let t=new xF(e,l.shape,i,a),r=p;p=n.runWebGLProgram(t,[p],p.dtype),n.disposeIntermediateTensorInfo(r)}if(null!=s){let e=v4({inputs:{x:p},backend:n,attrs:{perm:ep.ie.getUndoAxesPermutation(s)}});return n.disposeIntermediateTensorInfo(p),n.disposeIntermediateTensorInfo(l),e}return p}let xD={kernelName:ep.R,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,exclusive:o,reverse:s}=r;return xR(c.Prod,i,n,a,o,s)}},xC={kernelName:ep.S,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,exclusive:o,reverse:s}=r;return xR(c.Sum,i,n,a,o,s)}},xA={kernelName:ep.U,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,weights:a}=t,{size:o,binaryOutput:s}=r;if(1===i.shape.length){let e=SO(n.readSync(i.dataId),n.readSync(a.dataId),a.dtype,a.shape,o);return n.makeTensorInfo([o],a.dtype,e)}if(2===i.shape.length){let e=Sx(n.bufferSync(i),n.bufferSync(a),o,s);return n.makeTensorInfo(e.shape,a.dtype,e.values)}throw Error("Error in denseBincount: input must be at most rank 2, but got rank"+i.shape.length+".")}};class xM{constructor(e,t,n){this.variableNames=["x"],this.outputShape=[],this.outputShape=e,this.blockSize=t,this.dataFormat=n,this.userCode=` 2560 void main() { 2561 ivec4 coords = getOutputCoords(); 2562 int b = coords[0]; 2563 int h = ${this.getHeightCoordString()}; 2564 int w = ${this.getWidthCoordString()}; 2565 int d = ${this.getDepthCoordString()}; 2566 2567 int in_h = h / ${t}; 2568 int offset_h = imod(h, ${t}); 2569 int in_w = w / ${t}; 2570 int offset_w = imod(w, ${t}); 2571 int offset_d = (offset_h * ${t} + offset_w) * 2572 ${this.getOutputDepthSize()}; 2573 int in_d = d + offset_d; 2574 2575 float result = ${this.getInputSamplingString()}; 2576 setOutput(result); 2577 } 2578 `}
2578getHeightCoordString(){return"NHWC"===this.dataFormat?"coords[1]":"coords[2]"}getWidthCoordString(){return"NHWC"===this.dataFormat?"coords[2]":"coords[3]"}getDepthCoordString(){return"NHWC"===this.dataFormat?"coords[3]":"coords[1]"}getOutputDepthSize(){return"NHWC"===this.dataFormat?this.outputShape[3]:this.outputShape[1]}getInputSamplingString(){return"NHWC"===this.dataFormat?"getX(b, in_h, in_w, in_d)":"getX(b, in_d, in_h, in_w)"}}let x$={kernelName:ep.V,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{blockSize:a,dataFormat:o}=r,s=i.shape[0],l=("NHWC"===o?i.shape[1]:i.shape[2])*a,u=("NHWC"===o?i.shape[2]:i.shape[3])*a,c=("NHWC"===o?i.shape[3]:i.shape[1])/(a*a),p=new xM("NHWC"===o?[s,l,u,c]:[s,c,l,u],a,o);return n.runWebGLProgram(p,[i],i.dtype)}};class xU{constructor(e,t=!1,n=null,r=!1,i=!1){this.variableNames=["x","W"],this.customUniforms=[{name:"pads",type:"ivec2"},{name:"strides",type:"ivec2"},{name:"dilations",type:"ivec2"},{name:"inDims",type:"ivec2"}],this.outputShape=e.outShape,this.enableShapeUniforms=yZ(this.outputShape.length);let a=e.filterHeight,o=e.filterWidth,s=e.outChannels/e.inChannels,l="",u="";n&&(l=r?`float activation(float a) { 2579 float b = getPreluActivationWeightsAtOutCoords(); 2580 ${n} 2581 }`:i?`float activation(float a) { 2582 float b = getLeakyreluAlphaAtOutCoords(); 2583 ${n} 2584 }`:` 2585 float activation(float x) { 2586 ${n} 2587 } 2588 `,u="result = activation(result);");let c=t?"result += getBiasAtOutCoords();":"";t&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),i&&this.variableNames.push("leakyreluAlpha"),this.userCode=` 2589 ${l} 2590 2591 void main() { 2592 ivec4 coords = getOutputCoords(); 2593 int batch = coords.x; 2594 ivec2 xRCCorner = coords.yz * strides - pads; 2595 int d2 = coords.w; 2596 int d1 = d2 / ${s}; 2597 int q = d2 - d1 * ${s}; 2598 2599 int xRCorner = xRCCorner.x; 2600 int xCCorner = xRCCorner.y; 2601 2602 // Convolve x(?, ?, d1) with w(:, :, d1, q) to get y(yR, yC, d2). 2603 // ? = to be determined. : = across all values in that axis. 2604 float dotProd = 0.0; 2605 // TO DO(dsmilkov): Flatten the two for loops and vec4 the operations. 2606 for (int wR = 0; wR < ${a}; wR++) { 2607 int xR = xRCorner + wR * dilations[0]; 2608 2609 if (xR < 0 || xR >= inDims[0]) { 2610 continue; 2611 } 2612 2613 for (int wC = 0; wC < ${o}; wC++) { 2614 int xC = xCCorner + wC * dilations[1]; 2615 2616 if (xC < 0 || xC >= inDims[1]) { 2617 continue; 2618 } 2619 2620 float xVal = getX(batch, xR, xC, d1); 2621 float wVal = getW(wR, wC, d1, q); 2622 dotProd += xVal * wVal; 2623 } 2624 } 2625 2626 float result = dotProd; 2627 ${c} 2628 ${u} 2629 setOutput(result); 2630 } 2631 `}}class xP{constructor(e,t=!1,n=null,r=!1,i=!1){this.variableNames=["x","W"],this.packedInputs=!0,this.packedOutput=!0,this.customUniforms=[{name:"pads",type:"ivec2"},{name:"strides",type:"ivec2"},{name:"dilations",type:"ivec2"},{name:"inDims",type:"ivec2"}],this.outputShape=e.outShape,this.enableShapeUniforms=yZ(this.outputShape.length);let a=e.outChannels/e.inChannels,o=e.padInfo.left,s=e.strideWidth,l=e.dilationWidth,u=e.filterHeight,c=e.filterWidth,p=c,d="\n int xR; int xC; int xCOffset;\n vec4 wTexel; vec4 previous; vec4 final;";for(let e=0;e<c;e++)d+=` 2632 vec4 xTexelC${2*e}; 2633 int xTexelC${2*e}Ready; 2634 vec4 xTexelC${2*e+1}; 2635 int xTexelC${2*e+1}Ready; 2636 vec4 xC${e};`;d+=` 2637 for (int r = 0; r < ${u}; r++) { 2638 `;for(let e=0;e<c;e++)d+=` 2639 xTexelC${2*e} = vec4(0.0); 2640 xTexelC${2*e}Ready = 0; 2641 xTexelC${2*e+1} = vec4(0.0); 2642 xTexelC${2*e+1}Ready = 0; 2643 xC${e} = vec4(0.0);`;d+="\n xR = xRCorner + r * dilations[0];\n if (xR >=0 && xR < inDims[0]) {\n ";for(let e=0;e<(p+1)/2;e++){let t=2*e;if(d+=` 2644 xC = xCCorner + ${t*l}; 2645 `,1===s){if(t<c&&(o%2==1?d+=` 2646 xCOffset = xC + 1; 2647 if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${t}Ready == 0) { 2648 xTexelC${t} = getX(batch, xR, xCOffset, d1); 2649 2650 // Need to manually clear unused channels in case 2651 // we're reading from recycled texture. 2652 if (xCOffset + 1 >= inDims[1]) { 2653 xTexelC${t}.zw = vec2(0.0); 2654 } 2655 xTexelC${t}Ready = 1; 2656 } 2657 `+(1===l&&t>0?` 2658 xC${t} = vec4(xTexelC${t-2}.zw, xTexelC${t}.xy); 2659 `:` 2660 xCOffset = xC + 1 - 2; 2661 2662 if (xCOffset >= 0 && xCOffset < inDims[1]) { 2663 previous = getX(batch, xR, xCOffset, d1); 2664 2665 // Need to manually clear unused channels in case 2666 // we're reading from recycled texture. 2667 if (xCOffset + 1 >= inDims[1]) { 2668 previous.zw = vec2(0.0); 2669 } 2670 2671 xC${t} = vec4(previous.zw, xTexelC${t}.xy); 2672 } else { 2673 xC${t} = vec4(0.0, 0.0, xTexelC${t}.xy); 2674 } 2675 `):d+=` 2676 if (xC >= 0 && xC < inDims[1] && xTexelC${t}Ready == 0) { 2677 xTexelC${t} = getX(batch, xR, xC, d1); 2678 if (xC + 1 >= inDims[1]) { 2679 xTexelC${t}.zw = vec2(0.0); 2680 } 2681 xTexelC${t}Ready = 1; 2682 } 2683 2684 xC${t} = xTexelC${t}; 2685 `,t+1<c)){let e=o%2==0?ep.Si.nearestLargerEven(l):l;l%2==0&&o%2==1||l%2!=0&&o%2!=1?d+=` 2686 xCOffset = xC + imod(pads[1], 2) + ${e}; 2687 2688 if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${t+1}Ready == 0) { 2689 xTexelC${t+1} = getX(batch, xR, xCOffset, d1); 2690 2691 // Need to manually clear unused channels in case 2692 // we're reading from recycled texture. 2693 if (xCOffset + 1 >= inDims[1]) { 2694 xTexelC${t+1}.zw = vec2(0.0); 2695 } 2696 xTexelC${t+1}Ready = 1; 2697 } 2698 `+(l>1?` 2699 xCOffset -= 2; 2700 if (xCOffset >= 0 && xCOffset < inDims[1]) { 2701 previous = getX(batch, xR, xCOffset, d1); 2702 xC${t+1} = vec4(previous.zw, xTexelC${t+1}.xy); 2703 } else { 2704 xC${t+1} = vec4(0.0, 0.0, xTexelC${t+1}.xy); 2705 } 2706 `:` 2707 xC${t+1} = vec4(xTexelC${t}.zw, xTexelC${t+1}.xy); 2708 `):d+=1===e?` 2709 xC${t+1} = xTexelC${t}; 2710 `:` 2711 xCOffset = xC + ${e}; 2712 2713 if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${t+1}Ready == 0) { 2714 xTexelC${t+1} = getX(batch, xR, xCOffset, d1); 2715 if (xCOffset + 1 >= inDims[1]) { 2716 xTexelC${t+1}.zw = vec2(0.0); 2717 } 2718 xTexelC${t+1}Ready = 1; 2719 } 2720 2721 xC${t+1} = xTexelC${t+1}; 2722 `}}else t<c&&(o%2==1?(d+=` 2723 xCOffset = xC + 1 - strides[1]; 2724 if(xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${t}Ready == 0) { 2725 xTexelC${t} = getX(batch, xR, xCOffset, d1); 2726 // Need to manually clear unused channels in case 2727 // we're reading from recycled texture. 2728 if (xCOffset + 1 >= inDims[1]) { 2729 xTexelC${t}.zw = vec2(0.0); 2730 } 2731 xTexelC${t}Ready = 1; 2732 } 2733 2734 if(xC + 1 >= 0 && xC + 1 < inDims[1] && xTexelC${t+1}Ready == 0) { 2735 xTexelC${t+1} = getX(batch, xR, xC + 1, d1); 2736 // Need to manually clear unused channels in case 2737 // we're reading from recycled texture. 2738 if (xC + 2 >= inDims[1]) { 2739 xTexelC${t+1}.zw = vec2(0.0); 2740 } 2741 xTexelC${t+1}Ready = 1; 2742 } 2743 2744 xC${t} = vec4(xTexelC${t}.zw, xTexelC${t+1}.zw); 2745 `,t+1<c&&(d+=` 2746 final = vec4(0.0); 2747 xCOffset = xC + 1 + strides[1]; 2748 if(xCOffset >= 0 && xCOffset < inDims[1]) { 2749 final = getX(batch, xR, xCOffset, d1); 2750 } 2751 xC${t+1} = vec4(xTexelC${t+1}.xy, final.xy); 2752 `)):(d+=` 2753 if(xC >= 0 && xC < inDims[1] && xTexelC${t}Ready == 0) { 2754 xTexelC${t} = getX(batch, xR, xC, d1); 2755 if (xC + 1 >= inDims[1]) { 2756 xTexelC${t}.zw = vec2(0.0); 2757 } 2758 xTexelC${t}Ready = 1; 2759 } 2760 2761 xCOffset = xC + strides[1]; 2762 if(xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${t+1}Ready == 0) { 2763 xTexelC${t+1} = getX(batch, xR, xCOffset, d1); 2764 if (xCOffset + 1 >= inDims[1]) { 2765 xTexelC${t+1}.zw = vec2(0.); 2766 } 2767 xTexelC${t+1}Ready = 1; 2768 } 2769 2770 xC${t} = vec4( 2771 xTexelC${t}.xy, xTexelC${t+1}.xy); 2772 `,t+1<c&&(d+=` 2773 xC${t+1} = vec4(xTexelC${t}.zw, xTexelC${t+1}.zw); 2774 `)));t<c&&(d+=` 2775 wTexel = getW(r, ${t}, d1, q); 2776 dotProd += xC${t} * vec4(wTexel.xz, wTexel.xz); 2777 `,t+1<c&&(d+=` 2778 wTexel = getW(r, ${t+1}, d1, q); 2779 dotProd += xC${t+1} * vec4(wTexel.xz, wTexel.xz); 2780 `))}d+="\n }\n \n }\n ";let f="",h="";n&&(f=r?`vec4 activation(vec4 a) { 2781 vec4 b = getPreluActivationWeightsAtOutCoords(); 2782 ${n} 2783 }`:i?`vec4 activation(vec4 a) { 2784 vec4 b = getLeakyreluAlphaAtOutCoords(); 2785 ${n} 2786 }`:`vec4 activation(vec4 x) { 2787 ${n} 2788 }`,h="result = activation(result);");let g=t?"result += getBiasAtOutCoords();":"";t&&this.variableNames.push("bias"),r&&this.variableNames.push("preluActivationWeights"),i&&this.variableNames.push("leakyreluAlpha"),this.userCode=` 2789 ${f} 2790 2791 void main() { 2792 ivec4 coords = getOutputCoords(); 2793 int batch = coords.x; 2794 ivec2 xRCCorner = coords.yz * strides - pads; 2795 int d2 = coords.w; 2796 int d1 = d2 / ${a}; 2797 int q = d2 - d1 * ${a}; 2798 int xRCorner = xRCCorner.x; 2799 int xCCorner = xRCCorner.y; 2800 2801 //intialize dotProd with a small epsilon seems to reduce GPU accuracy loss. 2802 vec4 dotProd = vec4(0.000000000000001); 2803 2804 ${d} 2805 2806 vec4 result = dotProd - vec4(0.000000000000001); 2807 ${g} 2808 ${h} 2809 setOutput(result); 2810 } 2811 `}}let xB={kernelName:ep.W,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a,filter:o}=n,{strides:s,pad:l,dilations:u,dimRoundingMode:c}=i,p=u;null==p&&(p=[1,1]),ep.Si.assert(ep.ie.eitherStridesOrDilationsAreOne(s,p),()=>`Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides ${s} and dilations '${p}'`);let d=ep.ie.computeConv2DInfo(a.shape,o.shape,s,p,l,c,!0);
2811t=Object(ep.of)().getBool("WEBGL_PACK_DEPTHWISECONV")&&d.strideWidth<=2&&d.outChannels/d.inChannels==1?new xP(d):new xU(d);let f=[[d.padInfo.top,d.padInfo.left],[d.strideHeight,d.strideWidth],[d.dilationHeight,d.dilationWidth],[d.inHeight,d.inWidth]];return r.runWebGLProgram(t,[a,o],"float32",f)}};class xL{constructor(e){this.variableNames=["x","dy"],this.outputShape=e.filterShape;let t=e.strideHeight,n=e.strideWidth,r=e.padInfo.top,i=e.padInfo.left,a=e.outChannels/e.inChannels;this.userCode=` 2812 void main() { 2813 ivec4 coords = getOutputCoords(); 2814 int wR = coords.x; 2815 int wC = coords.y; 2816 int d1 = coords.z; 2817 int dm = coords.w; 2818 int d2 = d1 * ${a} + dm; 2819 2820 float dotProd = 0.0; 2821 2822 // TO DO: Vec4 over the batch size 2823 for (int b = 0; b < ${e.batchSize}; b++) { 2824 for (int yR = 0; yR < ${e.outHeight}; yR++) { 2825 int xR = wR + yR * ${t} - ${r}; 2826 2827 if (xR < 0 || xR >= ${e.inHeight}) { 2828 continue; 2829 } 2830 2831 for (int yC = 0; yC < ${e.outWidth}; yC++) { 2832 int xC = wC + yC * ${n} - ${i}; 2833 2834 if (xC < 0 || xC >= ${e.inWidth}) { 2835 continue; 2836 } 2837 2838 float dyValue = getDy(b, yR, yC, d2); 2839 float xValue = getX(b, xR, xC, d1); 2840 dotProd += (xValue * dyValue); 2841 } 2842 } 2843 } 2844 setOutput(dotProd); 2845 } 2846 `}}class xW{constructor(e){this.variableNames=["dy","W"],this.outputShape=e.inShape;let t=e.filterHeight,n=e.filterWidth,r=e.strideHeight,i=e.strideWidth,a=t-1-e.padInfo.top,o=n-1-e.padInfo.left,s=e.outChannels/e.inChannels;this.userCode=` 2847 const ivec2 pads = ivec2(${a}, ${o}); 2848 2849 void main() { 2850 ivec4 coords = getOutputCoords(); 2851 int batch = coords[0]; 2852 int d1 = coords[3]; 2853 ivec2 dyCorner = coords.yz - pads; 2854 int dyRCorner = dyCorner.x; 2855 int dyCCorner = dyCorner.y; 2856 2857 float dotProd = 0.0; 2858 2859 for (int wR = 0; wR < ${t}; wR++) { 2860 float dyR = float(dyRCorner + wR) / ${r}.0; 2861 2862 if (dyR < 0.0 || dyR >= ${e.outHeight}.0 || fract(dyR) > 0.0) { 2863 continue; 2864 } 2865 int idyR = int(dyR); 2866 2867 int wRPerm = ${t} - 1 - wR; 2868 2869 for (int wC = 0; wC < ${n}; wC++) { 2870 float dyC = float(dyCCorner + wC) / ${i}.0; 2871 2872 if (dyC < 0.0 || dyC >= ${e.outWidth}.0 || 2873 fract(dyC) > 0.0) { 2874 continue; 2875 } 2876 int idyC = int(dyC); 2877 2878 int wCPerm = ${n} - 1 - wC; 2879 2880 // TO DO: Vec4 over the channelMul 2881 for (int dm = 0; dm < ${s}; dm++) { 2882 int d2 = d1 * ${s} + dm; 2883 float xValue = getDy(batch, idyR, idyC, d2); 2884 float wValue = getW(wRPerm, wCPerm, d1, dm); 2885 dotProd += xValue * wValue; 2886 } 2887 } 2888 } 2889 setOutput(dotProd); 2890 } 2891 `}}let xz={kernelName:ep.X,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,dy:a}=t,{strides:o,dilations:s,pad:l,dimRoundingMode:u,filterShape:c}=r,p=new xL(ep.ie.computeConv2DInfo(i.shape,c,o,s,l,u,!0));return n.runWebGLProgram(p,[i,a],"float32")}},xG={kernelName:ep.Y,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,filter:a}=t,{strides:o,dilations:s,pad:l,dimRoundingMode:u,inputShape:c}=r,p=new xW(ep.ie.computeConv2DInfo(c,a.shape,o,s,l,u,!0));return n.runWebGLProgram(p,[i,a],"float32")}};class xV{constructor(e){this.variableNames=["X"],this.outputShape=[e,e],this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n float val = coords[0] == coords[1] ? getX(coords[0]) : 0.0;\n setOutput(val);\n }\n "}}let xH={kernelName:ep.Z,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{x:r}=t,i=[...r.shape,...r.shape],a=ep.Si.sizeFromShape(r.shape),o=vK({inputs:{x:r},backend:n,attrs:{shape:[a]}}),s=new xV(a),l=n.runWebGLProgram(s,[o],o.dtype),u=vK({inputs:{x:l},backend:n,attrs:{shape:i}});return n.disposeIntermediateTensorInfo(o),n.disposeIntermediateTensorInfo(l),u}};class xq{constructor(e){this.variableNames=["x","W"],this.outputShape=e.outShape;let{inHeight:t,inWidth:n,padInfo:r,strideHeight:i,strideWidth:a,filterHeight:o,filterWidth:s,dilationHeight:l,dilationWidth:u}=e,{top:c,left:p}=r;this.userCode=` 2892 const ivec2 strides = ivec2(${i}, ${a}); 2893 const ivec2 pads = ivec2(${c}, ${p}); 2894 const float neg_infinity = -3.4e38; 2895 2896 void main() { 2897 ivec4 coords = getOutputCoords(); 2898 int batch = coords.x; 2899 int d1 = coords.w; 2900 ivec2 outTopLeftCorner = 2901 coords.yz * strides - pads; 2902 int hBeg = outTopLeftCorner.x; 2903 int wBeg = outTopLeftCorner.y; 2904 2905 float curVal = neg_infinity; 2906 for (int h = 0; h < ${o}; h++) { 2907 int hIn = hBeg + h * ${l}; 2908 2909 if (hIn >= 0 && hIn < ${t}) { 2910 for (int w = 0; w < ${s}; w++) { 2911 int wIn = wBeg + w * ${u}; 2912 2913 if (wIn >= 0 && wIn < ${n}) { 2914 float xVal = getX(batch, hIn, wIn, d1); 2915 float wVal = getW(h, w, d1); 2916 2917 float val = xVal + wVal; 2918 if (val > curVal) { 2919 curVal = val; 2920 } 2921 } 2922 } 2923 } 2924 } 2925 2926 float result = curVal; 2927 setOutput(result); 2928 } 2929 `}}let xK={kernelName:ep.ab,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a,filter:o}=n,{strides:s,pad:l,dilations:u}=i,c=ep.ie.computeDilation2DInfo(a.shape,o.shape,s,l,"NHWC",u),p=new xq(c),d=vK({inputs:{x:t=r.runWebGLProgram(p,[a,o],"float32")},backend:r,attrs:{shape:c.outShape}});return r.disposeIntermediateTensorInfo(t),d}},xX={kernelName:ep.fb,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{equation:i}=r,a=t,{allDims:o,summedDims:s,idDims:l}=ep.ie.decodeEinsumEquation(i,a.length);ep.ie.checkEinsumDimSizes(o.length,l,a);let{path:u,steps:c}=ep.ie.getEinsumComputePath(s,l),p=c.length,d=null,f=o.length,h=[];for(let e=0;e<p;++e){for(let t of c[e]){let e,{permutationIndices:r,expandDims:i}=ep.ie.getEinsumPermutation(f,l[t]);ep.ie.isIdentityPermutation(r)?e=a[t]:(e=v4({inputs:{x:a[t]},backend:n,attrs:{perm:r}}),h.push(e));let o=e.shape.slice();for(let e=0;e<i.length;++e)o.splice(i[e],0,1);ep.Si.arraysEqual(e.shape,o)||(e=vK({inputs:{x:e},backend:n,attrs:{shape:o}}
2929),h.push(e)),null===d?d=e:(d=vH({inputs:{a:e,b:d},backend:n}),h.push(d))}e<p-1&&(u[e]>=0&&(d=v2({inputs:{x:d},backend:n,attrs:{axis:u[e]-(o.length-f),keepDims:!1}}),h.push(d)),f--)}for(let e of h)e!==d&&n.disposeIntermediateTensorInfo(e);return d}},xY=vU({opSnippet:"return (x >= 0.0) ? x : (exp(x) - 1.0);",packedOpSnippet:"\n vec4 result;\n\n result.r = (x.r >= 0.0) ? x.r : (exp(x.r) - 1.0);\n result.g = (x.g >= 0.0) ? x.g : (exp(x.g) - 1.0);\n result.b = (x.b >= 0.0) ? x.b : (exp(x.b) - 1.0);\n result.a = (x.a >= 0.0) ? x.a : (exp(x.a) - 1.0);\n\n return result;\n"}),xQ={kernelName:ep.gb,backendName:"webgl",kernelFunc:xY},xJ={kernelName:ep.hb,backendName:"webgl",kernelFunc:e=>{let{inputs:t,backend:n}=e,{dy:r,y:i}=t,a=Object(ep.of)().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new vw("\n vec4 bGTEZero = vec4(greaterThanEqual(b, vec4(0.)));\n return (bGTEZero * a) + ((vec4(1.0) - bGTEZero) * (a * (b + vec4(1.0))));\n",r.shape,i.shape):new vk("return (b >= 0.0) ? a : a * (b + 1.0);",r.shape,i.shape);return n.runWebGLProgram(a,[r,i],r.dtype)}},xZ=vP({opSnippet:"return float(a == b);",packedOpSnippet:"\n return vec4(equal(a, b));\n",dtype:"bool",cpuKernelImpl:Sw}),x0={kernelName:ep.jb,backendName:"webgl",kernelFunc:xZ},x1=vU({opSnippet:` 2930 // Error function is calculated approximately with elementary function. 2931 // See "Handbook of Mathematical Functions with Formulas, 2932 // Graphs, and Mathematical Tables", Abramowitz and Stegun. 2933 float p = ${ep.ie.ERF_P}; 2934 float a1 = ${ep.ie.ERF_A1}; 2935 float a2 = ${ep.ie.ERF_A2}; 2936 float a3 = ${ep.ie.ERF_A3}; 2937 float a4 = ${ep.ie.ERF_A4}; 2938 float a5 = ${ep.ie.ERF_A5}; 2939 2940 float sign = sign(x); 2941 x = abs(x); 2942 float t = 1.0 / (1.0 + p * x); 2943 return sign * (1.0 - (((((a5*t + a4)*t) + a3)*t + a2)*t + a1)*t*exp(-x*x)); 2944`}),x2={kernelName:ep.kb,backendName:"webgl",kernelFunc:x1},x3=vU({opSnippet:"if (isnan(x)) return x;\n return exp(x);\n",packedOpSnippet:"\n vec4 result = exp(x);\n bvec4 isNaN = isnan(x);\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n",cpuKernelImpl:Sj,dtype:"float32"}),x4={kernelName:ep.lb,backendName:"webgl",kernelFunc:x3};function x6(e){let{inputs:t,attrs:n,backend:r}=e,{dim:i}=n,{input:a}=t,o=a.shape.length,s=a.shape.slice(),l=i;return i<0&&(ep.Si.assert(-(o+1)<=i,()=>`Axis must be in the interval [${-(o+1)}, ${o}]`),l=o+i+1),s.splice(l,0,1),vK({inputs:{x:a},backend:r,attrs:{shape:s}})}let x5={kernelName:ep.mb,backendName:"webgl",kernelFunc:x6},x8="return exp(x) - 1.0;",x7=vU({opSnippet:x8,packedOpSnippet:x8,cpuKernelImpl:SF}),x9={kernelName:ep.nb,backendName:"webgl",kernelFunc:x7};class Ie{constructor(e,t,n){let r;this.variableNames=["real","imag"];let i=t[1];this.outputShape=t;let a=n?"2.0 * "+Math.PI:"-2.0 * "+Math.PI,o=n?i+".0":"1.0";if("real"===e)r="return real * expR - imag * expI;";else{if("imag"!==e)throw Error(`FFT component must be either "real" or "imag", got ${e}.`);r="return real * expI + imag * expR;"}this.userCode=` 2945 const float exponentMultiplier = ${a}; 2946 2947 float unaryOpComplex(float real, float expR, float imag, float expI) { 2948 ${r} 2949 } 2950 2951 float mulMatDFT(int batch, int index) { 2952 float indexRatio = float(index) / float(${i}); 2953 float exponentMultiplierTimesIndexRatio = 2954 exponentMultiplier * indexRatio; 2955 2956 float result = 0.0; 2957 2958 for (int i = 0; i < ${i}; i++) { 2959 // x = (-2|2 * PI / N) * index * i; 2960 float x = exponentMultiplierTimesIndexRatio * float(i); 2961 float expR = cos(x); 2962 float expI = sin(x); 2963 float real = getReal(batch, i); 2964 float imag = getImag(batch, i); 2965 2966 result += 2967 unaryOpComplex(real, expR, imag, expI) / ${o}; 2968 } 2969 2970 return result; 2971 } 2972 2973 void main() { 2974 ivec2 coords = getOutputCoords(); 2975 setOutput(mulMatDFT(coords[0], coords[1])); 2976 } 2977 `}}function It(e,t,n){let r=n.texData.get(e.dataId),i=ep.Si.sizeFromShape(e.shape),a=e.shape[e.shape.length-1],o=vK({inputs:{x:e},backend:n,attrs:{shape:[i/a,a]}}),s=o.shape,l=new Ie("real",s,t),u=new Ie("imag",s,t),c=[{dataId:r.complexTensorInfos.real.dataId,dtype:r.complexTensorInfos.real.dtype,shape:s},{dataId:r.complexTensorInfos.imag.dataId,dtype:r.complexTensorInfos.imag.dtype,shape:s}],p=n.runWebGLProgram(l,c,"float32"),d=n.runWebGLProgram(u,c,"float32"),f=v_({inputs:{real:p,imag:d},backend:n});n.disposeIntermediateTensorInfo(p),n.disposeIntermediateTensorInfo(d);let h=vK({inputs:{x:f},backend:n,attrs:{shape:e.shape}});return n.disposeIntermediateTensorInfo(o),n.disposeIntermediateTensorInfo(f),h}let In={kernelName:ep.ob,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}
2977=e,{input:r}=t;return It(r,!1,n)}};class Ir{constructor(e,t){this.outputShape=[],this.customUniforms=[{name:"value",type:"float"}],this.variableNames=["x"],this.outputShape=e,this.userCode="\n void main() {\n // Input can be obtained from uniform value.\n setOutput(value);\n }\n "}}function Ii(e){let{backend:t,attrs:n}=e,{shape:r,value:i}=n,{dtype:a}=n;if("string"===(a=a||ep.Si.inferDtype(i))){let e=ep.Si.getArrayFromDType(a,ep.Si.sizeFromShape(r));return e.fill(i),t.makeTensorInfo(r,a,e)}{let e=new Ir(r,i),n=[[i]];return t.runWebGLProgram(e,[],a,n)}}let Ia={kernelName:ep.pb,backendName:"webgl",kernelFunc:Ii};class Io{constructor(e){this.variableNames=["Image"],this.outputShape=[];let t=e[2];this.outputShape=e,this.userCode=` 2978 void main() { 2979 ivec4 coords = getOutputCoords(); 2980 int x = coords[2]; 2981 2982 int coordX = ${t} - x - 1; 2983 float outputValue; 2984 if(coordX >= 0 && coordX < ${t}) { 2985 outputValue = getImage(coords[0], coords[1], coordX, coords[3]); 2986 } else { 2987 outputValue = getImage(coords[0], coords[1], coords[2], coords[3]); 2988 } 2989 setOutput(outputValue); 2990 } 2991 `}}let Is={kernelName:ep.qb,backendName:"webgl",kernelFunc:({inputs:e,backend:t})=>{let{image:n}=e,r=t,i=new Io(n.shape);return r.runWebGLProgram(i,[n],n.dtype)}},Il="return floor(x);",Iu=vU({opSnippet:Il,packedOpSnippet:Il,cpuKernelImpl:S_}),Ic={kernelName:ep.rb,backendName:"webgl",kernelFunc:Iu},Ip=vP({opSnippet:"\n float s = sign(a) * sign(b);\n int ia = round(a);\n int ib = round(b);\n if (ib != 0) {\n // Windows (D3D) wants guaranteed non-zero int division at compile-time.\n return float(idiv(ia, ib, s));\n } else {\n return NAN;\n }\n",packedOpSnippet:"\n ivec4 ia = round(a);\n ivec4 ib = round(b);\n bvec4 cond = notEqual(ib, ivec4(0));\n ivec4 result = ivec4(0);\n vec4 s = sign(a) * sign(b);\n\n // Windows (D3D) wants guaranteed non-zero int division at compile-time.\n if (cond[0]) {\n result[0] = idiv(ia[0], ib[0], s[0]);\n }\n if (cond[1]) {\n result[1] = idiv(ia[1], ib[1], s[1]);\n }\n if (cond[2]) {\n result[2] = idiv(ia[2], ib[2], s[2]);\n }\n if (cond[3]) {\n result[3] = idiv(ia[3], ib[3], s[3]);\n }\n return vec4(result);\n",dtype:"int32"}),Id={kernelName:ep.sb,backendName:"webgl",kernelFunc:Ip};class If{constructor(e){this.variableNames=["A"];let t=y_(),[n,r]=e;this.outputShape=e,this.userCode=` 2992 void main() { 2993 ivec3 coords = getOutputCoords(); 2994 int texR = coords[0]; 2995 int texC = coords[1]; 2996 int depth = coords[2]; 2997 vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${r}.0, ${n}.0); 2998 2999 vec4 values = ${t.texture2D}(A, uv); 3000 float value; 3001 if (depth == 0) { 3002 value = values.r; 3003 } else if (depth == 1) { 3004 value = values.g; 3005 } else if (depth == 2) { 3006 value = values.b; 3007 } else if (depth == 3) { 3008 value = values.a; 3009 } 3010 3011 setOutput(floor(value * 255.0 + 0.5)); 3012 } 3013 `}}class Ih{constructor(e){this.variableNames=["A"],this.packedInputs=!1,this.packedOutput=!0;let t=y_(),[n,r]=e;this.outputShape=e,this.userCode=` 3014 void main() { 3015 ivec3 coords = getOutputCoords(); 3016 int texR = coords[0]; 3017 int texC = coords[1]; 3018 int depth = coords[2]; 3019 3020 vec4 result = vec4(0.); 3021 3022 for(int row=0; row<=1; row++) { 3023 for(int col=0; col<=1; col++) { 3024 texC = coords[1] + row; 3025 depth = coords[2] + col; 3026 3027 vec2 uv = (vec2(texC, texR) + halfCR) / 3028 vec2(${r}.0, ${n}.0); 3029 vec4 values = ${t.texture2D}(A, uv); 3030 float value; 3031 if (depth == 0) { 3032 value = values.r; 3033 } else if (depth == 1) { 3034 value = values.g; 3035 } else if (depth == 2) { 3036 value = values.b; 3037 } else if (depth == 3) { 3038 value = values.a; 3039 } 3040 3041 result[row * 2 + col] = floor(value * 255.0 + 0.5); 3042 } 3043 } 3044 3045 ${t.output} = result; 3046 } 3047 `}}let Ig={kernelName:ep.tb,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{pixels:i}=t,{numChannels:a}=r,o="undefined"!=typeof HTMLVideoElement&&i instanceof HTMLVideoElement,s="undefined"!=typeof HTMLImageElement&&i instanceof HTMLImageElement,[u,c]=o?[i.videoWidth,i.videoHeight]:[i.width,i.height],p=[c,u],d=[c,u,a];if(s||o){let e=Object(ep.of)().getBool("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU");null!=Ib&&e===Im||(Im=e,Ib=document.createElement("canvas").getContext("2d",{willReadFrequently:Im})),Ib.canvas.width=u,Ib.canvas.height=c,Ib.drawImage(i,0,0,u,c),i=Ib.canvas}let f=n.makeTensorInfo(p,"int32");n.texData.get(f.dataId).usage=l.PIXELS,n.gpgpu.uploadPixelDataToTexture(n.getTexture(f.dataId),i);let h=Object(ep.of)().getBool("WEBGL_PACK")?new Ih(d):new If(d),g=n.runWebGLProgram(h,[f],"int32");return n.disposeData(f.dataId),g}},Ib,Im=Object(ep.of)().getBool("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU"),Iy={kernelName:ep.vb,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}
3047=e,{x:a,filter:o,bias:s,preluActivationWeights:l}=n,{strides:u,pad:c,dataFormat:p,dilations:d,dimRoundingMode:f,activation:h,leakyreluAlpha:g}=i,b=ep.ie.convertConv2DDataFormat(p),m=ep.ie.computeConv2DInfo(a.shape,o.shape,u,d,c,f,!1,b),y=[],S=null!=s,v=null!=l,O="leakyrelu"===h,x=()=>{let e=[a,o],t=(e,t)=>{if("NCHW"===t&&1===e.shape.length&&1!==e.shape[0]){let t=vK({inputs:{x:e},backend:r,attrs:{shape:[e.shape[0],1,1]}});return y.push(t),t}return e};if(S&&e.push(t(s,p)),v&&e.push(t(l,p)),O){let t=r.makeTensorInfo([],"float32",ep.Si.createScalarValue(g,"float32"));e.push(t),y.push(t)}return e};if(1!==m.filterHeight||1!==m.filterWidth||1!==m.dilationHeight||1!==m.dilationWidth||1!==m.strideHeight||1!==m.strideWidth||"SAME"!==m.padInfo.type&&"VALID"!==m.padInfo.type)if(m.strideWidth<=2&&"channelsLast"===b&&Object(ep.of)().getBool("WEBGL_EXP_CONV")){let e=new xs(m,S,h?vB(h,!0):null,v,O),n=[[m.padInfo.top,m.padInfo.left],[m.strideHeight,m.strideWidth],[m.dilationHeight,m.dilationWidth],[m.inHeight,m.inWidth]],i=x();t=r.runWebGLProgram(e,i,"float32",n)}else if(Object(ep.of)().getBool("WEBGL_CONV_IM2COL"))t=xp({x:a,filter:o,convInfo:m,backend:r,bias:s,activation:h,preluActivationWeights:l,leakyreluAlpha:g});else{let e=new xa(m,S,h?vB(h,!1):null,v,O),n=x();t=r.runWebGLProgram(e,n,"float32")}else t=xc({x:a,filter:o,convInfo:m,backend:r,bias:s,activation:h,preluActivationWeights:l,leakyreluAlpha:g});let I=vK({inputs:{x:t},backend:r,attrs:{shape:m.outShape}});
3047return y.push(t),y.forEach(e=>r.disposeIntermediateTensorInfo(e)),I}},IS={kernelName:ep.wb,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a,filter:o,bias:s,preluActivationWeights:l}=n,{strides:u,pad:c,dilations:p,dimRoundingMode:d,activation:f,leakyreluAlpha:h}=i,g=[],b=p;null==b&&(b=[1,1]),ep.Si.assert(ep.ie.eitherStridesOrDilationsAreOne(u,b),()=>`Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides ${u} and dilations '${b}'`);let m=ep.ie.computeConv2DInfo(a.shape,o.shape,u,b,c,d,!0),y=Object(ep.of)().getBool("WEBGL_PACK_DEPTHWISECONV")&&m.strideWidth<=2&&m.outChannels/m.inChannels==1,S=f?vB(f,y):null,v=[a,o],O=null!=s,x=null!=l,I="leakyrelu"===f;if(O&&v.push(s),x&&v.push(l),I){let e=r.makeTensorInfo([],"float32",ep.Si.createScalarValue(h,"float32"));v.push(e),g.push(e)}t=y?new xP(m,O,S,x,I):new xU(m,O,S,x,I);let N=[[m.padInfo.top,m.padInfo.left],[m.strideHeight,m.strideWidth],[m.dilationHeight,m.dilationWidth],[m.inHeight,m.inWidth]],k=r.runWebGLProgram(t,v,"float32",N);return g.forEach(e=>r.disposeIntermediateTensorInfo(e)),k}};class Iv{constructor(e,t,n,r){this.sliceDim=e,this.strides=t,this.paramsShape=r,this.variableNames=["x","indices"],this.outputShape=n;let i=yq(n.length),a="\n int index;";for(let e=0;e<this.sliceDim;e++)a+=` 3048 index = round(getIndices(coords[0], ${e})); 3049 out_of_bounds = out_of_bounds || index < 0; 3050 out_of_bounds = out_of_bounds || index >= ${this.paramsShape[e]}; 3051 flattenIndex += index * ${this.strides[e]};`;this.userCode=` 3052 void main() { 3053 ${i} coords = getOutputCoords(); 3054 int flattenIndex = 0; 3055 bool out_of_bounds = false; 3056 3057 ${a} 3058 3059 setOutput(out_of_bounds ? 0.0 : getX(flattenIndex, coords[1])); 3060 } 3061 `}}let IO={kernelName:ep.xb,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{params:r,indices:i}=t,a=i.shape,o=a[a.length-1],s=ep.Si.sizeFromShape(r.shape),[l,u,c,p]=ep.ie.prepareAndValidate(r,i),d=vK({inputs:{x:i},backend:n,attrs:{shape:[u,o]}}),f=vK({inputs:{x:r},backend:n,attrs:{shape:[ep.Si.sizeFromShape(r.shape)/c,c]}});if(n.shouldExecuteOnCPU([r,i])||"string"===r.dtype){let e=SE(n.readSync(i.dataId),n.bufferSync(r),r.dtype,u,o,c,p,r.shape,s);return n.makeTensorInfo(l,r.dtype,e.values)}let h=new Iv(o,p,[u,c],r.shape),g=n.runWebGLProgram(h,[f,d],f.dtype),b=vK({inputs:{x:g},backend:n,attrs:{shape:l}});return n.disposeIntermediateTensorInfo(d),n.disposeIntermediateTensorInfo(f),n.disposeIntermediateTensorInfo(g),b}};class Ix{constructor(e,t){this.variableNames=["A","indices"],this.outputShape=t,this.rank=t.length;let n=yq(this.rank),r=function(e,t){let n=["resRC.x","resRC.y","resRC.z","resRC.w"],r=[];for(let t=0;t<e.length;t++)2===t?r.push("index"):r.push(""+n[t]);return r.join()}(e);this.userCode=` 3062 void main() { 3063 ${n} resRC = getOutputCoords(); 3064 int index = int(getIndices(resRC.x, resRC.z)); 3065 float inBounds = (index >= 0) && (index < ${e[2]}) ? 1.0 : 0.0; 3066 setOutput(inBounds * getA(${r})); 3067 } 3068 `}}function II(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,indices:a}=t,{axis:o,batchDims:s}=r,l=ep.Si.parseAxisParam(o,i.shape)[0];if(Object(ep.of)().get("DEBUG")){let e=n.readSync(a.dataId),t=i.shape[l];for(let n=0;n<e.length;++n){let r=e[n];ep.Si.assert(r<=t-1&&r>=0,()=>`GatherV2: the index value ${r} is not in [0, ${t-1}]`)}}let u=ep.ie.segment_util.collectGatherOpShapeInfo(i,a,l,s),c=ep.Si.sizeFromShape(a.shape),p=[],d=vK({inputs:{x:i},backend:n,attrs:{shape:[u.batchSize,u.outerSize,u.dimSize,u.sliceSize]}}),f=vK({inputs:{x:a},backend:n,attrs:{shape:[u.batchSize,c/u.batchSize]}});p.push(d),p.push(f);let h=[u.batchSize,u.outerSize,c/u.batchSize,u.sliceSize];if(n.shouldExecuteOnCPU([i,a])||"string"===i.dtype){let e=n.bufferSync(f),t=SR(n.bufferSync(d),e,h);return p.forEach(e=>n.disposeIntermediateTensorInfo(e)),n.makeTensorInfo(u.outputShape,t.dtype,t.values)}let g=new Ix(d.shape,h),b=n.runWebGLProgram(g,[d,f],d.dtype);p.push(b);let m=vK({inputs:{x:b},backend:n,attrs:{shape:u.outputShape}});
3068return p.forEach(e=>n.disposeIntermediateTensorInfo(e)),m}let IN={kernelName:ep.yb,backendName:"webgl",kernelFunc:II},Ik=vP({opSnippet:"return float(a > b);",packedOpSnippet:"\n return vec4(greaterThan(a, b));\n",cpuKernelImpl:SD,dtype:"bool"}),IT={kernelName:ep.zb,backendName:"webgl",kernelFunc:Ik},Iw=vP({opSnippet:"return float(a >= b);",packedOpSnippet:"\n return vec4(greaterThanEqual(a, b));\n",dtype:"bool",cpuKernelImpl:SC}),Ij={kernelName:ep.Ab,backendName:"webgl",kernelFunc:Iw},IF={kernelName:ep.Bb,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{input:r}=t;return It(r,!0,n)}},I_=vU({opSnippet:"return float(!isnan(x) && !isinf(x));",dtype:"bool"}),IE={kernelName:ep.Eb,backendName:"webgl",kernelFunc:I_},IR=vU({opSnippet:"return float(isinf(x));",dtype:"bool"}),ID={kernelName:ep.Fb,backendName:"webgl",kernelFunc:IR},IC=vU({opSnippet:"return float(isnan(x));",dtype:"bool"}),IA={kernelName:ep.Gb,backendName:"webgl",kernelFunc:IC},IM=vP({opSnippet:"return float(a < b);",packedOpSnippet:"\n return vec4(lessThan(a, b));\n",cpuKernelImpl:SA,dtype:"bool"}),I$={kernelName:ep.Lb,backendName:"webgl",kernelFunc:IM},IU=vP({opSnippet:"return float(a <= b);",packedOpSnippet:"\n return vec4(lessThanEqual(a, b));\n",cpuKernelImpl:SM,dtype:"bool"}),IP={kernelName:ep.Mb,backendName:"webgl",kernelFunc:IU},IB={kernelName:ep.Nb,backendName:"webgl",kernelFunc:function(e){let{backend:t,attrs:n}=e,{start:r,stop:i,num:a}=n,o=S$(r,i,a);return t.makeTensorInfo([o.length],"float32",o)}},IL=vU({opSnippet:"if (isnan(x)) return x;\n return x < 0.0 ? 0./0. : log(x);\n",packedOpSnippet:"\n vec4 result = log(x);\n bvec4 isNaN = isnan(x);\n result.r = isNaN.r ? x.r : (x.r < 0.0 ? 0./0. : result.r);\n result.g = isNaN.g ? x.g : (x.g < 0.0 ? 0./0. : result.g);\n result.b = isNaN.b ? x.b : (x.b < 0.0 ? 0./0. : result.b);\n result.a = isNaN.a ? x.a : (x.a < 0.0 ? 0./0. : result.a);\n return result;\n",cpuKernelImpl:SU}),IW={kernelName:ep.Ob,backendName:"webgl",kernelFunc:IL},Iz=vU({opSnippet:"if (isnan(x)) return x;\n return log(1.0 + x);\n"}),IG={kernelName:ep.Pb,backendName:"webgl",kernelFunc:Iz},IV=vP({opSnippet:"return float(a >= 1.0 && b >= 1.0);",packedOpSnippet:"\n return vec4(\n vec4(greaterThanEqual(a, vec4(1.0))) *\n vec4(greaterThanEqual(b, vec4(1.0))));\n",dtype:"bool"}),IH={kernelName:ep.Rb,backendName:"webgl",kernelFunc:IV}
3068,Iq=vU({opSnippet:"return float(!(x >= 1.0));"}),IK={kernelName:ep.Sb,backendName:"webgl",kernelFunc:Iq},IX=vP({opSnippet:"return float(a >= 1.0 || b >= 1.0);",packedOpSnippet:"\n return min(\n vec4(greaterThanEqual(a, vec4(1.0))) +\n vec4(greaterThanEqual(b, vec4(1.0))),\n vec4(1.0));\n",dtype:"bool"}),IY={kernelName:ep.Tb,backendName:"webgl",kernelFunc:IX};class IQ{constructor(e,t,n,r,i){let a;this.variableNames=["x"],this.outputShape=[];let o=t,s=e[3]-1;this.outputShape=e;let l=`float(${n}) + float(${r}) * sum`;a=.5===i?`inversesqrt(${l})`:1===i?`1.0/(${l})`:`exp(log(${l}) * float(-${i}));`,this.userCode=` 3069 void main() { 3070 ivec4 coords = getOutputCoords(); 3071 int b = coords[0]; 3072 int r = coords[1]; 3073 int c = coords[2]; 3074 int d = coords[3]; 3075 float x = getX(b, r, c, d); 3076 float sum = 0.0; 3077 for (int j = -${o}; j <= ${o}; j++) { 3078 int idx = d + j; 3079 if (idx >= 0 && idx <= ${s}) { 3080 float z = getX(b, r, c, idx); 3081 sum += z * z; 3082 } 3083 } 3084 float val = x * ${a}; 3085 setOutput(val); 3086 } 3087 `}}class IJ{constructor(e,t,n,r,i){let a;this.variableNames=["x"],this.outputShape=[],this.packedInputs=!0,this.packedOutput=!0;let o=t,s=e[3]-1;this.outputShape=e;let l=`float(${n}) + float(${r}) * sum`;a=.5===i?`inversesqrt(${l})`:1===i?`1.0/(${l})`:`exp(log(${l}) * float(-${i}));`,this.userCode=` 3088 void main() { 3089 ivec4 coords = getOutputCoords(); 3090 int b = coords.x; 3091 int r = coords.y; 3092 int c = coords.z; 3093 int d = coords.w; 3094 3095 bool hasNextCol = d < ${this.outputShape[3]}; 3096 bool hasNextRow = c < ${this.outputShape[2]}; 3097 3098 vec4 sum = vec4(0.); 3099 vec4 xFragAtOutputCoords = getX(b, r, c, d); 3100 3101 vec4 xAtOutputCoords = vec4( 3102 getChannel(xFragAtOutputCoords, vec2(c, d)), 3103 hasNextCol ? 3104 getChannel(xFragAtOutputCoords, vec2(c, d + 1)) : 0.0, 3105 hasNextRow ? 3106 getChannel(xFragAtOutputCoords , vec2(c + 1, d)) : 0.0, 3107 (hasNextRow && hasNextCol) ? 3108 getChannel(xFragAtOutputCoords, vec2(c + 1, d + 1)) : 0.0 3109 ); 3110 3111 int firstChannel = d - ${o}; 3112 vec2 cache = vec2(0.); 3113 if(firstChannel >= 0){ 3114 vec4 firstChannelFrag = getX(b, r, c, firstChannel); 3115 cache.x = getChannel(firstChannelFrag, vec2(c, firstChannel)); 3116 if(hasNextRow){ 3117 cache.y = getChannel(firstChannelFrag, vec2(c + 1, firstChannel)); 3118 } 3119 } 3120 3121 ivec2 depth = ivec2(d, d + 1); 3122 for (int j = - ${o}; j <= ${o}; j++) { 3123 ivec2 idx = depth + j; 3124 bvec2 aboveLowerBound = greaterThanEqual(idx, ivec2(0)); 3125 bvec2 belowUpperBound = lessThanEqual(idx, ivec2(${s})); 3126 3127 bool depthInRange = aboveLowerBound.x && belowUpperBound.x; 3128 bool depthPlusOneInRange = aboveLowerBound.y && belowUpperBound.y; 3129 3130 if(depthInRange || depthPlusOneInRange){ 3131 vec4 z = vec4(0.); 3132 vec4 xFragAtCurrentDepth; 3133 z.xz = cache.xy; 3134 if(depthPlusOneInRange && hasNextCol){ 3135 xFragAtCurrentDepth = idx.y != d ? 3136 getX(b, r, c, idx.y) : xFragAtOutputCoords; 3137 z.y = getChannel(xFragAtCurrentDepth, vec2(c, idx.y)); 3138 if(hasNextRow){ 3139 z.w = getChannel(xFragAtCurrentDepth, vec2(c + 1, idx.y)); 3140 } 3141 } 3142 cache.xy = z.yw; 3143 sum += z * z; 3144 } 3145 } 3146 vec4 result = xAtOutputCoords * ${a}; 3147 setOutput(result); 3148 } 3149 `}}let IZ={kernelName:ep.Ib,backendName:"webgl",kernelFunc:e=>{let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{depthRadius:a,bias:o,alpha:s,beta:l}=r,u=Object(ep.of)().getBool("WEBGL_PACK_NORMALIZATION")?new IJ(i.shape,a,o,s,l):new IQ(i.shape,a,o,s,l);return n.runWebGLProgram(u,[i],i.dtype)}};class I0{constructor(e,t,n,r,i){this.variableNames=["inputImage","outputImage","dy"],this.outputShape=[],this.outputShape=e,this.depth=e[3],this.depthRadius=t,this.bias=n,this.alpha=r,this.beta=i,this.userCode=` 3150 void main() { 3151 ivec4 coords = getOutputCoords(); 3152 int b = coords[0]; 3153 int r = coords[1]; 3154 int c = coords[2]; 3155 3156 float result = 0.0; 3157 for (int d = 0; d < ${this.depth}; ++d) { 3158 int depthBegin = int(max(0.0, float(d - ${t}))); 3159 int depthEnd = int(min(float(${this.depth}), 3160 float(d + ${t} + 1))); 3161 3162 const int MIN_DEPTH_BEGIN = 0; 3163 const int MAX_DEPTH_END = ${this.depth}; 3164 3165 float norm = 0.0;
3166 for (int k = MIN_DEPTH_BEGIN; k < MAX_DEPTH_END; ++k) { 3167 if (k < depthBegin){ 3168 continue; 3169 } 3170 else if (k >= depthBegin && k < depthEnd) { 3171 norm += getInputImage(b, r, c, k) * getInputImage(b, r, c, k); 3172 } 3173 else { 3174 break; 3175 } 3176 } 3177 3178 norm = float(${r}) * norm + float(${n}); 3179 3180 for(int k = MIN_DEPTH_BEGIN; k < MAX_DEPTH_END; ++k){ 3181 if (k < depthBegin){ 3182 continue; 3183 } 3184 else if (k >= depthBegin && k < depthEnd){ 3185 float dyi = -2.0 * float(${r}) 3186 * float(${i}) 3187 * getInputImage(b, r, c, k) * getOutputImage(b, r, c, d) 3188 / norm; 3189 if (k == d) { 3190 dyi += pow(norm, -1.0 * ${i}); 3191 } 3192 if (k == coords[3]) { 3193 dyi *= getDy(b, r, c, d); 3194 result += dyi; 3195 } 3196 } 3197 else { 3198 break; 3199 } 3200 } 3201 } 3202 setOutput(result); 3203 } 3204 `}}let I1={kernelName:ep.Jb,backendName:"webgl",kernelFunc:e=>{let{inputs:t,backend:n,attrs:r}=e,{x:i,y:a,dy:o}=t,{depthRadius:s,bias:l,alpha:u,beta:c}=r,p=new I0(i.shape,s,l,u,c);return n.runWebGLProgram(p,[i,a,o],i.dtype)}};function I2(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{reductionIndices:a,keepDims:o}=r,s=i.shape.length,l=ep.Si.parseAxisParam(a,i.shape),u=l,c=ep.ie.getAxesPermutation(u,s),p=null!=c,d=n.shouldExecuteOnCPU([i]),f=i;if(p){if(d){let e=n.texData.get(f.dataId).values,t=Array(s);for(let e=0;e<t.length;e++)t[e]=i.shape[c[e]];let r=vr(e,i.shape,i.dtype,c,t);f=n.makeTensorInfo(t,i.dtype),n.texData.get(f.dataId).values=r}else f=v1(i,c,n);u=ep.ie.getInnerMostAxes(u.length,s)}ep.ie.assertAxesAreInnerMostDims("max",u,s);let[h,g]=ep.ie.computeOutAndReduceShapes(f.shape,u),b,m=h;if(o&&(m=ep.ie.expandShapeToKeepDim(h,l)),d){let e=SP(n.texData.get(f.dataId).values,ep.Si.sizeFromShape(g),m,i.dtype);b=n.makeTensorInfo(m,i.dtype),n.texData.get(b.dataId).values=e}else b=function(e,t,n,r){let i=ep.Si.sizeFromShape(t),a=vK({inputs:{x:e},attrs:{shape:[ep.Si.sizeFromShape(e.shape)/i,i]},backend:r}),o=vJ(a,e.dtype,"max",r),s=vK({inputs:{x:o},attrs:{shape:n},backend:r});return r.disposeIntermediateTensorInfo(a),r.disposeIntermediateTensorInfo(o),s}(f,g,m,n);return p&&n.disposeIntermediateTensorInfo(f),b}let I3={kernelName:ep.Xb,backendName:"webgl",kernelFunc:I2},I4=vP({opSnippet:"\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return max(a, b);\n",packedOpSnippet:"\n vec4 result = vec4(max(a, b));\n bvec4 isNaNA = isnan(a);\n bvec4 isNaNB = isnan(b);\n bvec4 isNaN = bvec4(isNaNA.x || isNaNB.x, isNaNA.y || isNaNB.y, isNaNA.z || isNaNB.z, isNaNA.w || isNaNB.w);\n \n result.r = isNaN.r ? NAN : result.r;\n result.g = isNaN.g ? NAN : result.g;\n result.b = isNaN.b ? NAN : result.b;\n result.a = isNaN.a ? NAN : result.a;\n\n return result;\n",cpuKernelImpl:SB}),I6={kernelName:ep.dc,backendName:"webgl",kernelFunc:I4},I5={kernelName:ep.Yb,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t;yj(i,"maxPool");let{filterSize:a,strides:o,pad:s,dimRoundingMode:l}=r;ep.Si.assert(ep.ie.eitherStridesOrDilationsAreOne(o,1),()=>`Error in maxPool: Either strides or dilations must be 1. Got strides ${o} and dilations '1'`);let u=ep.ie.computePool2DInfo(i.shape,a,o,1,s,l);if(1===u.filterWidth&&1===u.filterHeight&&ep.Si.arraysEqual(u.inShape,u.outShape))return vj({inputs:{x:i},backend:n});let c=new OT(u,"max",!1);return n.runWebGLProgram(c,[i],i.dtype)}},I8={kernelName:ep.Zb,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{filterSize:a,strides:o,pad:s,dataFormat:l,dimRoundingMode:u}=r,c=new Ow(ep.ie.computePool3DInfo(i.shape,a,o,[1,1,1],s,u,l),"max",!1);return n.runWebGLProgram(c,[i],i.dtype)}};class I7{constructor(e){this.variableNames=["dy","maxPos"],this.outputShape=e.inShape;let t=e.strideHeight,n=e.strideWidth,r=e.dilationHeight,i=e.effectiveFilterHeight,a=e.effectiveFilterWidth,o=i-1-e.padInfo.top,s=a-1-e.padInfo.left,l=i*a-1;this.userCode=` 3205 const ivec2 pads = ivec2(${o}, ${s}); 3206 3207 void main() { 3208 ivec4 coords = getOutputCoords(); 3209 int b = coords[0]; 3210 int d = coords[3]; 3211 3212 ivec2 dyRCCorner = coords.yz - pads; 3213 int dyRCorner = dyRCCorner.x; 3214 int dyCCorner = dyRCCorner.y; 3215 3216 // Convolve dy(?, ?, d) with pos mask(:, :, d) to get dx(xR, xC, d). 3217 // ? = to be determined. : = across all values in that axis. 3218 float dotProd = 0.0; 3219 for (int wR = 0; wR < ${i}; 3220 wR += ${r}) { 3221 float dyR = float(dyRCorner + wR) / ${t}.0; 3222 3223 if (dyR < 0.0 || dyR >= ${e.outHeight}.0 || fract(dyR) > 0.0) { 3224 continue; 3225 } 3226 int idyR = int(dyR); 3227 3228 for (int wC = 0; wC < ${a}; wC++) { 3229 float dyC = float(dyCCorner + wC) / ${n}.0; 3230 3231 if (dyC < 0.0 || dyC >= ${e.outWidth}.0 || 3232 fract(dyC) > 0.0) { 3233 continue; 3234 } 3235 int idyC = int(dyC); 3236 3237 float dyValue = getDy(b, idyR, idyC, d); 3238 int maxPosValue = ${l} - int(getMaxPos(b, idyR, idyC, d)); 3239 3240 // Get the current value, check it against the value from the 3241 // position matrix. 3242 int curPosValue = wR * ${a} + wC; 3243 float mask = float(maxPosValue == curPosValue ? 1.0 : 0.0); 3244 3245 dotProd += dyValue * mask; 3246 } 3247 } 3248 setOutput(dotProd); 3249 } 3250 `}}class I9{constructor(e){this.variableNames=["dy","maxPos"],this.outputShape=e.inShape;let t=e.strideDepth,n=e.strideHeight,r=e.strideWidth,i=e.dilationDepth,a=e.dilationHeight,o=e.dilationWidth,s=e.effectiveFilterDepth,l=e.effectiveFilterHeight,u=e.effectiveFilterWidth,c=s-1-e.padInfo.front,p=l-1-e.padInfo.top,d=u-1-e.padInfo.left,f=s*l*u-1;this.userCode=` 3251 const ivec3 pads = ivec3(${c}, ${p}, ${d}); 3252 3253 void main() { 3254 ivec5 coords = getOutputCoords(); 3255 int batch = coords.x; 3256 int ch = coords.u; 3257 3258 ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads; 3259 int dyDCorner = dyCorner.x; 3260 int dyRCorner = dyCorner.y; 3261 int dyCCorner = dyCorner.z; 3262 3263 // Convolve dy(?, ?, ?, ch) with pos mask(:, :, :, d) to get
3264 // dx(xD, xR, xC, ch). 3265 // ? = to be determined. : = across all values in that axis. 3266 float dotProd = 0.0; 3267 3268 for (int wD = 0; wD < ${s}; 3269 wD += ${i}) { 3270 float dyD = float(dyDCorner + wD) / ${t}.0; 3271 3272 if (dyD < 0.0 || dyD >= ${e.outDepth}.0 || fract(dyD) > 0.0) { 3273 continue; 3274 } 3275 int idyD = int(dyD); 3276 3277 for (int wR = 0; wR < ${l}; 3278 wR += ${a}) { 3279 float dyR = float(dyRCorner + wR) / ${n}.0; 3280 3281 if (dyR < 0.0 || dyR >= ${e.outHeight}.0 || 3282 fract(dyR) > 0.0) { 3283 continue; 3284 } 3285 int idyR = int(dyR); 3286 3287 for (int wC = 0; wC < ${u}; 3288 wC += ${o}) { 3289 float dyC = float(dyCCorner + wC) / ${r}.0; 3290 3291 if (dyC < 0.0 || dyC >= ${e.outWidth}.0 || 3292 fract(dyC) > 0.0) { 3293 continue; 3294 } 3295 int idyC = int(dyC); 3296 3297 float dyValue = getDy(batch, idyD, idyR, idyC, ch); 3298 int maxPosValue = ${f} - 3299 int(getMaxPos(batch, idyD, idyR, idyC, ch)); 3300 3301 // Get the current value, check it against the value from the 3302 // position matrix. 3303 int curPosValue = 3304 wD * ${l} * ${u} + 3305 wR * ${u} + wC; 3306 float mask = float(maxPosValue == curPosValue ? 1.0 : 0.0); 3307 3308 dotProd += dyValue * mask; 3309 } 3310 } 3311 } 3312 setOutput(dotProd); 3313 } 3314 `}}let Ne={kernelName:ep.ac,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,input:a}=t,o=a,{filterSize:s,strides:l,pad:u,dimRoundingMode:c}=r,p=ep.ie.computePool3DInfo(o.shape,s,l,[1,1,1],u,c),d=new Ow(p,"max",!0),f=n.runWebGLProgram(d,[o],o.dtype),h=new I9(p),g=n.runWebGLProgram(h,[i,f],o.dtype);return n.disposeIntermediateTensorInfo(f),g}},Nt={kernelName:ep.bc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{dy:i,input:a,output:o}=t,s=a;yj([a,o],"maxPoolGrad");let{filterSize:l,strides:u,pad:c,dimRoundingMode:p}=r,d=ep.ie.computePool2DInfo(s.shape,l,u,1,c,p),f=new OT(d,"max",!0),h=n.runWebGLProgram(f,[s],s.dtype),g=new I7(d),b=n.runWebGLProgram(g,[i,h],s.dtype);return n.disposeIntermediateTensorInfo(h),b}},Nn={kernelName:ep.cc,backendName:"webgl",kernelFunc:({inputs:e,attrs:t,backend:n})=>{let{x:r}=e,{filterSize:i,strides:a,pad:o,includeBatchInIndex:s}=t,l=n;ep.Si.assert(4===r.shape.length,()=>`Error in maxPool: input must be rank 4 but got rank ${r.shape.length}.`);let u=[1,1];ep.Si.assert(ep.ie.eitherStridesOrDilationsAreOne(a,u),()=>`Error in maxPool: Either strides or dilations must be 1. Got strides ${a} and dilations '${u}'`);let c=ep.ie.computePool2DInfo(r.shape,i,a,u,o),[p,d]=function(e,t,n,r){let i=new OT(n,"max",!1),a=r.runWebGLProgram(i,[e],"float32");return i=new OT(n,"max",!0,!0,t),[a,r.runWebGLProgram(i,[e],"float32")]}(r,s,c,l);return[p,d]}},Nr={kernelName:ep.ec,backendName:"webgl",kernelFunc:({inputs:e,attrs:t,backend:n})=>{let{x:r}=e,{keepDims:i,axis:a}=t,o=n,s=r.shape.length,l=ep.Si.parseAxisParam(a,r.shape),u=l,c=ep.ie.getAxesPermutation(u,s),p=null!=c,d=o.shouldExecuteOnCPU([r]),f=[],h=r;if(p){if(d){let e=o.texData.get(h.dataId).values,t=Array(s);for(let e=0;e<t.length;e++)t[e]=r.shape[c[e]];let n=vr(e,r.shape,r.dtype,c,t);h=o.makeTensorInfo(t,r.dtype),o.texData.get(h.dataId).values=n}else h=v1(r,c,o);f.push(h),u=ep.ie.getInnerMostAxes(u.length,s)}ep.ie.assertAxesAreInnerMostDims("sum",u,s);let[g,b]=ep.ie.computeOutAndReduceShapes(h.shape,u),m=g;i&&(m=ep.ie.expandShapeToKeepDim(g,l));let y=function(e,t,n,r){let i=ep.Si.sizeFromShape(t),a=vK({inputs:{x:e},attrs:{shape:[ep.Si.sizeFromShape(e.shape)/i,i]},backend:r}),o=vJ(a,"float32","mean",r),s=vK({inputs:{x:o},attrs:{shape:n},backend:r});return r.disposeIntermediateTensorInfo(a),r.disposeIntermediateTensorInfo(o),s}(h,b,m,o);for(let e of f)o.disposeIntermediateTensorInfo(e);return y}},Ni={kernelName:ep.fc,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n,{axis:o,keepDims:s}=i,l=a.shape.length,u=ep.Si.parseAxisParam(o,a.shape),c=u,p=ep.ie.getAxesPermutation(c,l),d=a;null!=p&&(d=v4({inputs:{x:a},backend:r,attrs:{perm:p}}),c=ep.ie.getInnerMostAxes(c.length,a.shape.length)),ep.ie.assertAxesAreInnerMostDims("min",c,l);let[f,h]=ep.ie.computeOutAndReduceShapes(d.shape,c),g=vK({inputs:{x:d},backend:r,attrs:{shape:[-1,ep.Si.sizeFromShape(h)]}}),b=vJ(g,g.dtype,"min",r);return t=s?vK({inputs:{x:b},backend:r,attrs:{shape:ep.ie.expandShapeToKeepDim(f,u)}}):vK({inputs:{x:b},backend:r,attrs:{shape:f}}),r.disposeIntermediateTensorInfo(g),r.disposeIntermediateTensorInfo(b),null!=p&&r.disposeIntermediateTensorInfo(d),t}},Na=vP({opSnippet:"\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n\n return min(a, b);\n",packedOpSnippet:"\n vec4 result = vec4(min(a, b));\n bvec4 isNaNA = isnan(a);\n bvec4 isNaNB = isnan(b);\n bvec4 isNaN = bvec4(isNaNA.x || isNaNB.x, isNaNA.y || isNaNB.y, isNaNA.z || isNaNB.z, isNaNA.w || isNaNB.w);
3314\n \n result.r = isNaN.r ? NAN : result.r;\n result.g = isNaN.g ? NAN : result.g;\n result.b = isNaN.b ? NAN : result.b;\n result.a = isNaN.a ? NAN : result.a;\n\n return result;\n",cpuKernelImpl:SL}),No={kernelName:ep.gc,backendName:"webgl",kernelFunc:Na};class Ns{constructor(e,t,n){this.variableNames=["x"],this.outputShape=t.map((t,n)=>t[0]+e[n]+t[1]);let r=e.length,i=yq(r),a=t.map(e=>e[0]).join(","),o=t.map((t,n)=>t[0]+e[n]).join(","),s=["coords[0]","coords[1]","coords[2]","coords[3]"].slice(0,r),l=+("reflect"!==n);this.userCode=1!==r?` 3315 ${i} start = ${i}(${a}); 3316 ${i} end = ${i}(${o}); 3317 3318 void main() { 3319 ${i} outC = getOutputCoords(); 3320 for (int i = 0; i < ${r}; i++) { 3321 if (outC[i] < start[i]) { 3322 outC[i] = start[i] * 2 - outC[i] - ${l}; 3323 } else if(outC[i] >= end[i]) { 3324 outC[i] = (end[i] - 1) * 2 - outC[i] + ${l}; 3325 } 3326 } 3327 ${i} coords = outC - start; 3328 setOutput(getX(${s})); 3329 } 3330 `:` 3331 int start = ${a}; 3332 int end = ${o}; 3333 3334 void main() { 3335 int outC = getOutputCoords(); 3336 if (outC < start) { 3337 outC = start * 2 - outC - ${l}; 3338 } else if(outC >= end) { 3339 outC = (end - 1) * 2 - outC + ${l}; 3340 } 3341 setOutput(getX(outC - start)); 3342 } 3343 `}}class Nl{constructor(e,t,n){this.variableNames=["x"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=t.map((t,n)=>t[0]+e[n]+t[1]);let r=e.length,i=yq(r),a=t.map(e=>e[0]).join(","),o=t.map((t,n)=>t[0]+e[n]).join(","),s=vo("rc",r),l=vo("source",r),u=`${s[r-1]} < ${this.outputShape[r-1]}`,c=1===r?"source":`vec2(${l.slice(-2).join()})`,p=+("reflect"!==n),d="";if(1===r){let e=` 3344 ${i} source = rc; 3345 if (source < start) { 3346 source = start * 2 - source - ${p}; 3347 } else if (source >= end) { 3348 source = (end - 1) * 2 - source + ${p}; 3349 } 3350 source -= start; 3351 `;d=` 3352 ${i} rc = outputLoc; 3353 ${e} 3354 result[0] = getChannel(getX(${l.join()}), ${c}); 3355 ${s[r-1]} += 1; 3356 if(${u}) { 3357 ${e} 3358 result[1] = getChannel(getX(${l.join()}), ${c}); 3359 } 3360 `}else{let e=` 3361 ${i} source = rc; 3362 ${i} lt = ${i}(lessThan(source, start)); 3363 ${i} gte = ${i}(greaterThanEqual(source, end)); 3364 ${i} orig = 1 - (lt + gte); 3365 source = orig * source + 3366 lt * (start * 2 - source - ${p}) + 3367 gte * ((end - 1) * 2 - source + ${p}); 3368 source -= start; 3369 `;d=` 3370 ${i} rc = outputLoc; 3371 ${e} 3372 result[0] = getChannel(getX(${l.join()}), ${c}); 3373 ${s[r-1]} += 1; 3374 if(${u}) { 3375 ${e} 3376 result[1] = getChannel(getX(${l.join()}), ${c}); 3377 } 3378 rc = outputLoc; 3379 ${s[r-2]} += 1; 3380 if(${s[r-2]} < ${this.outputShape[r-2]}) { 3381 ${e} 3382 result[2] = getChannel(getX(${l.join()}), ${c}); 3383 ${s[r-1]} += 1; 3384 if(${u}) { 3385 ${e} 3386 result[3] = getChannel(getX(${l.join()}), ${c}); 3387 } 3388 } 3389 `}this.userCode=` 3390 const ${i} start = ${i}(${a}); 3391 const ${i} end = ${i}(${o}); 3392 3393 void main() { 3394 ${i} outputLoc = getOutputCoords(); 3395 vec4 result = vec4(0.); 3396 ${d} 3397 setOutput(result); 3398 } 3399 `}}let Nu={kernelName:ep.hc,backendName:"webgl",kernelFunc:({inputs:e,backend:t,attrs:n})=>{let{x:r}=e,{paddings:i,mode:a}=n,o=Object(ep.of)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new Nl(r.shape,i,a):new Ns(r.shape,i,a);return t.runWebGLProgram(o,[r],r.dtype)}},Nc=vP({opSnippet:"if (b == 0.0) return NAN;\n return mod(a, b);",packedOpSnippet:"\n vec4 result = mod(a, b);\n bvec4 isNaN = equal(b, vec4(0.0));\n \n result.r = isNaN.r ? NAN : result.r;\n result.g = isNaN.g ? NAN : result.g;\n result.b = isNaN.b ? NAN : result.b;\n result.a = isNaN.a ? NAN : result.a;\n\n return result;\n"}),Np={kernelName:ep.ic,backendName:"webgl",kernelFunc:Nc};class Nd{constructor(e,t,n){this.variableNames=["probs"],this.customUniforms=[{name:"seed",type:"float"}],this.outputShape=[e,n],this.userCode=` 3400 void main() { 3401 ivec2 coords = getOutputCoords(); 3402 int batch = coords[0]; 3403 3404 float r = random(seed); 3405 float cdf = 0.0; 3406 3407 for (int i = 0; i < ${t-1}; i++) { 3408 cdf += getProbs(batch, i); 3409 3410 if (r < cdf) { 3411 setOutput(float(i)); 3412 return; 3413 } 3414 } 3415 3416 // If no other event happened, last event happened.
3417 setOutput(float(${t-1})); 3418 } 3419 `}}let Nf=vP({opSnippet:"\nif (a == b) {\n return 1.0;\n};\nreturn a / b;",packedOpSnippet:"\n // vec4 one = vec4(equal(a, b));\n // return one + (vec4(1.0) - one) * a / b;\n vec4 result = a / b;\n if(a.x == b.x) {\n result.x = 1.;\n }\n if(a.y == b.y) {\n result.y = 1.;\n }\n if(a.z == b.z) {\n result.z = 1.;\n }\n if(a.w == b.w) {\n result.w = 1.;\n }\n\n return result;\n",checkOutOfBounds:!0}),Nh={kernelName:ep.Jc,backendName:"webgl",kernelFunc:Nf},Ng="return a - b;",Nb=vP({opSnippet:Ng,packedOpSnippet:Ng,supportsComplex:!0,cpuKernelImpl:ve}),Nm={kernelName:ep.zd,backendName:"webgl",kernelFunc:Nb};function Ny(e){let{inputs:t,backend:n,attrs:r}=e,{logits:i}=t,{dim:a}=r,o=ep.Si.parseAxisParam([a],i.shape),s=I2({inputs:{x:i},backend:n,attrs:{reductionIndices:o,keepDims:!1}}),l=ep.ie.expandShapeToKeepDim(s.shape,o),u=vK({inputs:{x:s},backend:n,attrs:{shape:l}}),c=Nb({inputs:{a:i,b:u},backend:n}),p=x3({inputs:{x:c},backend:n}),d=v2({inputs:{x:p},backend:n,attrs:{axis:o,keepDims:!1}}),f=vK({inputs:{x:d},backend:n,attrs:{shape:l}}),h=Nf({inputs:{a:p,b:f},backend:n});return n.disposeIntermediateTensorInfo(s),n.disposeIntermediateTensorInfo(u),n.disposeIntermediateTensorInfo(c),n.disposeIntermediateTensorInfo(p),n.disposeIntermediateTensorInfo(d),n.disposeIntermediateTensorInfo(f),h}let NS={kernelName:ep.hd,backendName:"webgl",kernelFunc:Ny},Nv={kernelName:ep.kc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{logits:i}=t,{numSamples:a,seed:o,normalized:s}=r,l=s?i:Ny({inputs:{logits:i},backend:n,attrs:{dim:i.shape.length-1}}),u=new Nd(l.shape[0],l.shape[1],a),c=[[o]],p=n.runWebGLProgram(u,[l],"int32",c);return s||n.disposeIntermediateTensorInfo(l),p}},NO={kernelName:ep.mc,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r}=e,{x:i}=n;if(r.shouldExecuteOnCPU([i])){let[e,t]=Sz(r.texData.get(i.dataId).values,i.shape,i.dtype);return r.makeTensorInfo(t,i.dtype,e)}return t=Object(ep.of)().getBool("WEBGL_PACK_UNARY_OPERATIONS")?new vb(i.shape,"\n vec4 result = -x;\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n"):new vf(i.shape,"if (isnan(x)) return x;\n return -x;\n"),r.runWebGLProgram(t,[i],i.dtype)}},Nx=ep.Yf.nonMaxSuppressionV3Impl,NI={kernelName:ep.nc,backendName:"webgl",kernelFunc:function(e){ep.ie.warn("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");let{inputs:t,backend:n,attrs:r}=e,{boxes:i,scores:a}=t,{maxOutputSize:o,iouThreshold:s,scoreThreshold:l}=r,{selectedIndices:u}=Nx(n.readSync(i.dataId),n.readSync(a.dataId),o,s,l);return n.makeTensorInfo([u.length],"int32",new Int32Array(u))}},NN=ep.Yf.nonMaxSuppressionV4Impl,Nk={kernelName:ep.oc,backendName:"webgl",kernelFunc:function(e){ep.ie.warn("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");let{inputs:t,backend:n,attrs:r}=e,{boxes:i,scores:a}=t,{maxOutputSize:o,iouThreshold:s,scoreThreshold:l,padToMaxOutputSize:u}=r,{selectedIndices:c,validOutputs:p}=NN(n.readSync(i.dataId),n.readSync(a.dataId),o,s,l,u);return[n.makeTensorInfo([c.length],"int32",new Int32Array(c)),n.makeTensorInfo([],"int32",new Int32Array([p]))]}},NT=ep.Yf.nonMaxSuppressionV5Impl,Nw={kernelName:ep.pc,backendName:"webgl",kernelFunc:function(e){ep.ie.warn("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");let{inputs:t,backend:n,attrs:r}=e,{boxes:i,scores:a}=t,{maxOutputSize:o,iouThreshold:s,scoreThreshold:l,softNmsSigma:u}=r,c=n.readSync(i.dataId),{selectedIndices:p,selectedScores:d}=NT(c,n.readSync(a.dataId),o,s,l,u);return[n.makeTensorInfo([p.length],"int32",new Int32Array(p)),n.makeTensorInfo([d.length],"float32",new Float32Array(d))]}};class Nj{constructor(e,t,n,r){this.variableNames=["indices"],this.outputShape=[e,t],this.userCode=` 3420 void main() { 3421 ivec2 coords = getOutputCoords(); 3422 int index = round(getIndices(coords.x)); 3423 setOutput(mix(float(${r}), float(${n}), 3424 float(index == coords.y))); 3425 } 3426 `}}let NF={kernelName:ep.sc,backendName:"webgl",kernelFunc:e=>{let{inputs:t,backend:n,attrs:r}=e,{indices:i}=t,{dtype:a,depth:o,onValue:s,offValue:l}=r,u=ep.Si.sizeFromShape(i.shape),c=new Nj(u,o,s,l),p=vK({inputs:{x:i},backend:n,attrs:{shape:[u]}}),d=n.runWebGLProgram(c,[p],a);n.disposeIntermediateTensorInfo(p);let f=vK({inputs:{x:d},backend:n,attrs:{shape:[...i.shape,o]}});return n.disposeIntermediateTensorInfo(d),f}};function N_(e){let{inputs:t,backend:n}=e,{x:r}=t;if("complex64"===r.dtype){let e=OX({inputs:{input:r},backend:n}),t=N_({inputs:{x:e},backend:n}),i=xe({inputs:{input:r},backend:n}),a=N_({inputs:{x:i},backend:n}),o=v_({inputs:{real:t,imag:a},backend:n});return n.disposeIntermediateTensorInfo(e),n.disposeIntermediateTensorInfo(t),n.disposeIntermediateTensorInfo(i),n.disposeIntermediateTensorInfo(a),o}return Ii({attrs:{shape:r.shape,dtype:r.dtype,value:"string"===r.dtype?"":0},backend:n})}let NE={kernelName:ep.Pd,backendName:"webgl",kernelFunc:N_},NR={kernelName:ep.tc,backendName:"webgl",kernelFunc:function e(t){let{inputs:n,backend:r}=t,{x:i}=n;if("string"===i.dtype)throw Error("onesLike is not supported under string dtype");if("complex64"===i.dtype){let t=OX({inputs:{input:i},backend:r}),n=e({inputs:{x:t},backend:r}),a=xe({inputs:{input:i},backend:r}),o=N_({inputs:{x:a},backend:r}),s=v_({inputs:{real:n,imag:o},backend:r});return r.disposeIntermediateTensorInfo(t),r.disposeIntermediateTensorInfo(n),r.disposeIntermediateTensorInfo(a),r.disposeIntermediateTensorInfo(o),s}return Ii({attrs:{shape:i.shape,dtype:i.dtype,value:1},backend:r})}},ND={kernelName:ep.wc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{axis:i}=r;
3426if(1===t.length)return x6({inputs:{input:t[0]},backend:n,attrs:{dim:i}});let a=t[0].shape,o=t[0].dtype;t.forEach(e=>{ep.Si.assertShapesMatch(a,e.shape,"All tensors passed to stack must have matching shapes"),ep.Si.assert(o===e.dtype,()=>"All tensors passed to stack must have matching dtypes")});let s=[],l=xr({inputs:t.map(e=>{let t=x6({inputs:{input:e},backend:n,attrs:{dim:i}});return s.push(t),t}),backend:n,attrs:{axis:i}});return s.forEach(e=>n.disposeIntermediateTensorInfo(e)),l}};class NC{constructor(e,t,n){this.variableNames=["x"],this.customUniforms=[{name:"value",type:"float"}],this.outputShape=t.map((t,n)=>t[0]+e[n]+t[1]);let r=e.length,i=yq(r),a=t.map(e=>e[0]).join(","),o=t.map((t,n)=>t[0]+e[n]).join(","),s=["coords[0]","coords[1]","coords[2]","coords[3]"].slice(0,r);this.userCode=1!==r?` 3427 ${i} start = ${i}(${a}); 3428 ${i} end = ${i}(${o}); 3429 3430 void main() { 3431 ${i} outC = getOutputCoords(); 3432 if (any(lessThan(outC, start)) || any(greaterThanEqual(outC, end))) { 3433 setOutput(value); 3434 } else { 3435 ${i} coords = outC - start; 3436 setOutput(getX(${s})); 3437 } 3438 } 3439 `:` 3440 int start = ${a}; 3441 int end = ${o}; 3442 3443 void main() { 3444 int outC = getOutputCoords(); 3445 if (outC < start || outC >= end) { 3446 setOutput(value); 3447 } else { 3448 setOutput(getX(outC - start)); 3449 } 3450 } 3451 `}}class NA{constructor(e,t,n){this.variableNames=["x"],this.packedInputs=!0,this.packedOutput=!0,this.customUniforms=[{name:"value",type:"float"}],this.outputShape=t.map((t,n)=>t[0]+e[n]+t[1]);let r=e.length,i=yq(r),a=t.map(e=>e[0]).join(","),o=t.map((t,n)=>t[0]+e[n]).join(","),s=vo("rc",r),l=vo("source",r),u=`${s[r-1]} < ${this.outputShape[r-1]}`,c=1===r?"source":`vec2(${l.slice(-2).join()})`,p=[i+" rc = outputLoc;",`${s[r-1]} += 1; 3452 if(${u}) { 3453 `,1===r?"":`} 3454 rc = outputLoc; 3455 ${s[r-2]} += 1; 3456 if(${s[r-2]} < ${this.outputShape[r-2]}) {`,1===r?"":` ${s[r-1]} += 1; 3457 if(${u}) {`],d=1===r?"rc < start || rc >= end":"any(lessThan(rc, start)) || any(greaterThanEqual(rc, end))",f="";for(let e=0,t=1===r?2:4;e<t;e++)f+=` 3458 ${p[e]} 3459 if (${d}) { 3460 result[${e}] = float(value); 3461 } else { 3462 ${i} source = rc - start; 3463 result[${e}] = getChannel(getX(${l.join()}), ${c}); 3464 } 3465 `;f+=1===r?"} ":"}}",this.userCode=` 3466 const ${i} start = ${i}(${a}); 3467 const ${i} end = ${i}(${o}); 3468 3469 void main() { 3470 ${i} outputLoc = getOutputCoords(); 3471 vec4 result = vec4(0.); 3472 ${f} 3473 setOutput(result); 3474 } 3475 `}}let NM=e=>{let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{paddings:a,constantValue:o}=r;if(0===ep.Si.sizeFromShape(i.shape))return Ii({backend:n,attrs:{shape:a.map((e,t)=>e[0]+i.shape[t]+e[1]),value:o,dtype:i.dtype}});let s=Object(ep.of)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new NA(i.shape,a,o):new NC(i.shape,a,o),l=[[o]];return n.runWebGLProgram(s,[i],i.dtype,l)},N$={kernelName:ep.xc,backendName:"webgl",kernelFunc:NM},NU=vP({opSnippet:"\n if(a < 0.0 && floor(b) < b){\n return NAN;\n }\n if (b == 0.0) {\n return 1.0;\n }\n return (round(mod(b, 2.0)) != 1) ?\n pow(abs(a), b) : sign(a) * pow(abs(a), b);\n",packedOpSnippet:"\n // isModRound1 has 1 for components with round(mod(b, 2.0)) == 1, 0 otherwise.\n vec4 isModRound1 = vec4(equal(round(mod(b, 2.0)), ivec4(1)));\n vec4 multiplier = sign(a) * isModRound1 + (vec4(1.0) - isModRound1);\n vec4 result = multiplier * pow(abs(a), b);\n\n // Ensure that a^0 = 1, including 0^0 = 1 as this correspond to TF and JS\n bvec4 isExpZero = equal(b, vec4(0.0));\n result.r = isExpZero.r ? 1.0 : result.r;\n result.g = isExpZero.g ? 1.0 : result.g;\n result.b = isExpZero.b ? 1.0 : result.b;\n result.a = isExpZero.a ? 1.0 : result.a;\n\n bvec4 isNaN1 = lessThan(a, vec4(0.0));\n bvec4 isNaN2 = lessThan(floor(b), b);\n bvec4 isNaN = bvec4(isNaN1.x && isNaN2.x, isNaN1.y && isNaN2.y, isNaN1.z && isNaN2.z, isNaN1.w && isNaN2.w);\n \n result.r = isNaN.r ? NAN : result.r;\n result.g = isNaN.g ? NAN : result.g;\n result.b = isNaN.b ? NAN : result.b;\n result.a = isNaN.a ? NAN : result.a;\n\n return result;\n"}),NP={kernelName:ep.zc,backendName:"webgl",kernelFunc:NU},NB={kernelName:ep.Bc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{axis:a,keepDims:o}=r,s=i.shape.length,l=[],u=ep.Si.parseAxisParam(a,i.shape),c=u,p=ep.ie.getAxesPermutation(c,s),d,f=i;if(null!=p&&(f=v4({inputs:{x:i},backend:n,attrs:{perm:p}}),c=ep.ie.getInnerMostAxes(c.length,s),l.push(f)),ep.ie.assertAxesAreInnerMostDims("prod",c,s),n.shouldExecuteOnCPU([f])){let e=n.texData.get(f.dataId).values,{outVals:t,outShape:r,outDtype:i}=SV(f.shape,f.dtype,e,c);d=n.makeTensorInfo(r,i,t)}else{let[e,t]=ep.ie.computeOutAndReduceShapes(f.shape,c),r=vK({inputs:{x:f},backend:n,attrs:{shape:[-1,ep.Si.sizeFromShape(t)]}}),a=vJ(r,Object(ep.ri)(i.dtype),"prod",n);d=vK({inputs:{x:a},backend:n,attrs:{shape:e}}),l.push(r),l.push(a)}if(o){l.push(d);let e=ep.ie.expandShapeToKeepDim(d.shape,u);d=vK({inputs:{x:d},backend:n,attrs:{shape:e}})}
3475return l.forEach(e=>n.disposeIntermediateTensorInfo(e)),d}},NL={kernelName:ep.Dc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{paramsNestedSplits:i,paramsDenseValues:a,indices:o}=t,{outputRaggedRank:s}=r,l=i.map(e=>n.readSync(e.dataId)),u=i.map(e=>e.shape),c=n.readSync(a.dataId),p=n.readSync(o.dataId),[d,f,h]=SH(l,u,c,a.shape,a.dtype,p,o.shape,s),g=d.map(e=>n.makeTensorInfo([e.length],"int32",e)),b=n.makeTensorInfo(h,a.dtype,f);return g.concat([b])}},NW={kernelName:ep.Ec,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{starts:r,limits:i,deltas:a}=t,o=n.readSync(r.dataId),s=n.readSync(i.dataId),l=n.readSync(a.dataId),[u,c]=Sq(o,r.shape,r.dtype,s,i.shape,l,a.shape);return[n.makeTensorInfo([u.length],"int32",u),n.makeTensorInfo([c.length],r.dtype,c)]}},Nz={kernelName:ep.Fc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{shape:i,values:a,defaultValue:o,rowPartitionTensors:s}=t,{rowPartitionTypes:l}=r,u=n.readSync(i.dataId),c=n.readSync(a.dataId),p=n.readSync(o.dataId),d=s.map(e=>n.readSync(e.dataId)),f=s.map(e=>e.shape),[h,g]=SK(u,i.shape,c,a.shape,a.dtype,p,o.shape,d,f,l);return n.makeTensorInfo(h,a.dtype,g)}},NG=e=>{let{backend:t,attrs:n}=e,{start:r,stop:i,step:a,dtype:o}=n,s=SX(r,i,a,o);return t.makeTensorInfo([s.length],o,s)},NV={kernelName:ep.Gc,backendName:"webgl",kernelFunc:NG},NH=vU({opSnippet:"return 1.0 / x;"}),Nq={kernelName:ep.Kc,backendName:"webgl",kernelFunc:NH},NK=vU({opSnippet:"if (isnan(x)) return x;\n return (x < 0.0) ? 0.0 : x;\n",packedOpSnippet:"\n vec4 result = x * vec4(greaterThanEqual(x, vec4(0.0)));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n"}),NX={kernelName:ep.Mc,backendName:"webgl",kernelFunc:NK},NY=vU({opSnippet:"if (isnan(x)) return x;\n return (x < 0.0) ? 0.0 : min(6.0, x);\n",packedOpSnippet:"\n vec4 result = min(x, vec4(6.)) * vec4(greaterThanEqual(x, vec4(0.0)));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n"}),NQ={kernelName:ep.Nc,backendName:"webgl",kernelFunc:NY};class NJ{constructor(e,t,n,r,i){let a;this.variableNames=["A"],this.outputShape=[];let[o,s,l,u]=e;this.outputShape=[o,t,n,u];let c=[r&&t>1?s-1:s,r&&n>1?l-1:l],p=[r&&t>1?t-1:t,r&&n>1?n-1:n];a=i?"(vec2(yRC) + vec2(0.5)) * effectiveInputOverOutputRatioRC - vec2(0.5)":"vec2(yRC) * effectiveInputOverOutputRatioRC",this.userCode=` 3476 const vec2 effectiveInputOverOutputRatioRC = vec2( 3477 ${c[0]/p[0]}, 3478 ${c[1]/p[1]}); 3479 const vec2 inputShapeRC = vec2(${s}.0, ${l}.0); 3480 3481 void main() { 3482 ivec4 coords = getOutputCoords(); 3483 int b = coords[0]; 3484 int d = coords[3]; 3485 ivec2 yRC = coords.yz; 3486 3487 // Fractional source index. 3488 vec2 sourceFracIndexRC = ${a}; 3489 3490 // Compute the four integer indices. 3491 ivec2 sourceFloorRC = ivec2(max(sourceFracIndexRC, vec2(0.0))); 3492 ivec2 sourceCeilRC = ivec2( 3493 min(inputShapeRC - 1.0, ceil(sourceFracIndexRC))); 3494 3495 float topLeft = getA(b, sourceFloorRC.x, sourceFloorRC.y, d); 3496 float bottomLeft = getA(b, sourceCeilRC.x, sourceFloorRC.y, d); 3497 float topRight = getA(b, sourceFloorRC.x, sourceCeilRC.y, d); 3498 float bottomRight = getA(b, sourceCeilRC.x, sourceCeilRC.y, d); 3499 3500 vec2 fracRC = sourceFracIndexRC - vec2(sourceFloorRC); 3501 3502 float top = topLeft + (topRight - topLeft) * fracRC.y; 3503 float bottom = bottomLeft + (bottomRight - bottomLeft) * fracRC.y; 3504 float newValue = top + (bottom - top) * fracRC.x; 3505 3506 setOutput(newValue); 3507 } 3508 `}}class NZ{constructor(e,t,n,r,i){let a;this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=[];let[o,s,l,u]=e;this.outputShape=[o,t,n,u];let c=[r&&t>1?s-1:s,r&&n>1?l-1:l],p=[r&&t>1?t-1:t,r&&n>1?n-1:n];a=i?"(vec3(yRC) + vec3(0.5)) * effectiveInputOverOutputRatioRC - vec3(0.5)":"vec3(yRC) * effectiveInputOverOutputRatioRC",this.userCode=` 3509 const vec3 effectiveInputOverOutputRatioRC = vec3( 3510 ${c[0]/p[0]}, 3511 ${c[1]/p[1]}, 3512 ${c[1]/p[1]}); 3513 const vec3 inputShapeRC = vec3(${s}.0, ${l}.0, 3514 ${l}.0); 3515 3516 float getAValue(int b, int r, int c, int d) { 3517 return getChannel(getA(b, r, c, d), vec2(c, d)); 3518 } 3519 3520 void main() { 3521 ivec4 coords = getOutputCoords(); 3522 int b = coords[0]; 3523 int d = coords[3]; 3524 // Calculate values for next column in yRC.z. 3525 ivec3 yRC = coords.yzz + ivec3(0, 0, 1); 3526 3527 // Fractional source index. 3528 vec3 sourceFracIndexRC = ${a}; 3529 3530 // Compute the four integer indices. 3531 ivec3 sourceFloorRC = ivec3(max(sourceFracIndexRC, vec3(0.0))); 3532 ivec3 sourceCeilRC = ivec3( 3533 min(inputShapeRC - 1.0, ceil(sourceFracIndexRC))); 3534 3535 // Should we calculate next column and row elements in 2x2 packed cell. 3536 bool hasNextCol = d < ${u-1}; 3537 bool hasNextRow = coords.z < ${n-1}
vendor: 2,018 bytes, lines 3537-3585
3537; 3538 3539 // In parallel, construct four corners for all four components in 3540 // packed 2x2 cell. 3541 vec4 topLeft = vec4( 3542 getAValue(b, sourceFloorRC.x, sourceFloorRC.y, d), 3543 hasNextCol ? getAValue(b, sourceFloorRC.x, sourceFloorRC.y, d + 1) 3544 : 0.0, 3545 hasNextRow ? getAValue(b, sourceFloorRC.x, sourceFloorRC.z, d) 3546 : 0.0, 3547 (hasNextRow && hasNextCol) ? 3548 getAValue(b, sourceFloorRC.x, sourceFloorRC.z, d + 1) : 0.0); 3549 3550 vec4 bottomLeft = vec4( 3551 getAValue(b, sourceCeilRC.x, sourceFloorRC.y, d), 3552 hasNextCol ? getAValue(b, sourceCeilRC.x, sourceFloorRC.y, d + 1) 3553 : 0.0, 3554 hasNextRow ? getAValue(b, sourceCeilRC.x, sourceFloorRC.z, d) 3555 : 0.0, 3556 (hasNextRow && hasNextCol) ? 3557 getAValue(b, sourceCeilRC.x, sourceFloorRC.z, d + 1) : 0.0); 3558 3559 vec4 topRight = vec4( 3560 getAValue(b, sourceFloorRC.x, sourceCeilRC.y, d), 3561 hasNextCol ? getAValue(b, sourceFloorRC.x, sourceCeilRC.y, d + 1) 3562 : 0.0, 3563 hasNextRow ? getAValue(b, sourceFloorRC.x, sourceCeilRC.z, d) 3564 : 0.0, 3565 (hasNextRow && hasNextCol) ? 3566 getAValue(b, sourceFloorRC.x, sourceCeilRC.z, d + 1) : 0.0); 3567 3568 vec4 bottomRight = vec4( 3569 getAValue(b, sourceCeilRC.x, sourceCeilRC.y, d), 3570 hasNextCol ? getAValue(b, sourceCeilRC.x, sourceCeilRC.y, d + 1) 3571 : 0.0, 3572 hasNextRow ? getAValue(b, sourceCeilRC.x, sourceCeilRC.z, d) 3573 : 0.0, 3574 (hasNextRow && hasNextCol) ? 3575 getAValue(b, sourceCeilRC.x, sourceCeilRC.z, d + 1) : 0.0); 3576 3577 vec3 fracRC = sourceFracIndexRC - vec3(sourceFloorRC); 3578 3579 vec4 top = mix(topLeft, topRight, fracRC.yyzz); 3580 vec4 bottom = mix(bottomLeft, bottomRight, fracRC.yyzz); 3581 vec4 newValue = mix(top, bottom, fracRC.x); 3582 3583 setOutput(newValue); 3584 } 3585 `}
3585}let N0={kernelName:ep.Pc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{images:i}=t,{alignCorners:a,halfPixelCenters:o,size:s}=r,[l,u]=s,c=Object(ep.of)().getBool("WEBGL_PACK_IMAGE_OPERATIONS")?new NZ(i.shape,l,u,a,o):new NJ(i.shape,l,u,a,o);return n.runWebGLProgram(c,[i],"float32")}};class N1{constructor(e,t,n){this.variableNames=["dy"],this.outputShape=[],this.outputShape=t;let[,r,i]=t,[,a,o]=e,s=[n&&a>1?r-1:r,n&&o>1?i-1:i],l=[n&&a>1?a-1:a,n&&o>1?o-1:o],u=s[0]/l[0],c=s[1]/l[1],p=1/u,d=1/c,f=2*Math.ceil(p)+2,h=2*Math.ceil(d)+2;this.userCode=` 3586 void main() { 3587 ivec4 coords = getOutputCoords(); 3588 int b = coords[0]; 3589 int d = coords[3]; 3590 int r = coords[1]; 3591 int c = coords[2]; 3592 3593 float accumulator = 0.0; 3594 3595 const float heightScale = float(${u}); 3596 const float widthScale = float(${c}); 3597 3598 const float invHeightScale = float(${p}); 3599 const float invWidthScale = float(${d}); 3600 3601 const int winHeight = int(${f}); 3602 const int winWidth = int(${h}); 3603 3604 // Compute bounds for where in dy we will look 3605 float startRLerp = floor(float(r) * invHeightScale); 3606 int startDyR = int(startRLerp - float(winHeight / 2)); 3607 3608 float startCLerp = floor(float(c) * invWidthScale); 3609 int startDyC = int(startCLerp - float(winWidth / 2)); 3610 3611 // Loop over dy 3612 for (int dyROffset = 0; dyROffset < winHeight; dyROffset++) { 3613 int dyR = dyROffset + startDyR; 3614 3615 // Guard against the window exceeding the bounds of dy 3616 if (dyR < 0 || dyR >= ${a}) { 3617 continue; 3618 } 3619 3620 for (int dyCOffset = 0; dyCOffset < winWidth; dyCOffset++) { 3621 int dyC = dyCOffset + startDyC; 3622 3623 // Guard against the window exceeding the bounds of dy 3624 if (dyC < 0 || dyC >= ${o}) { 3625 continue; 3626 } 3627 3628 float dxR = float(dyR) * heightScale; 3629 int topDxRIndex = int(floor(dxR)); 3630 int bottomDxRIndex = int(min(ceil(dxR), ${r-1}.0)); 3631 float dxRLerp = dxR - float(topDxRIndex); 3632 float inverseDxRLerp = 1.0 - dxRLerp; 3633 3634 float dxC = float(dyC) * widthScale; 3635 int leftDxCIndex = int(floor(dxC)); 3636 int rightDxCIndex = int(min(ceil(dxC), ${i-1}.0)); 3637 float dxCLerp = dxC - float(leftDxCIndex); 3638 float inverseDxCLerp = 1.0 - dxCLerp; 3639 3640 if (r == topDxRIndex && c == leftDxCIndex) { 3641 // topLeft 3642 accumulator += 3643 getDy(b, dyR, dyC, d) * inverseDxRLerp * inverseDxCLerp; 3644 } 3645 3646 if (r == topDxRIndex && c == rightDxCIndex) { 3647 // topRight 3648 accumulator += getDy(b, dyR, dyC, d) * inverseDxRLerp * dxCLerp; 3649 } 3650 3651 if (r == bottomDxRIndex && c == leftDxCIndex) { 3652 // bottomLeft 3653 accumulator += getDy(b, dyR, dyC, d) * dxRLerp * inverseDxCLerp; 3654 } 3655 3656 if (r == bottomDxRIndex && c == rightDxCIndex) { 3657 // bottomRight 3658 accumulator += getDy(b, dyR, dyC, d) * dxRLerp * dxCLerp; 3659 } 3660 } 3661 } 3662 // End loop over dy 3663 3664 setOutput(accumulator); 3665 } 3666 `}}let N2={kernelName:ep.Qc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{images:i,dy:a}=t,{alignCorners:o}=r,s=new N1(a.shape,i.shape,o);return n.runWebGLProgram(s,[a],a.dtype)}};class N3{constructor(e,t,n,r,i){let a;this.variableNames=["A"],this.outputShape=[];let[o,s,l,u]=e;this.outputShape=[o,t,n,u];let c=[r&&t>1?s-1:s,r&&n>1?l-1:l],p=[r&&t>1?t-1:t,r&&n>1?n-1:n],d=r?"0.5":"0.0";a=i?"max((vec2(yRC) + vec2(0.5)) * effectiveInputOverOutputRatioRC, vec2(0.0))":"vec2(yRC) * effectiveInputOverOutputRatioRC",this.userCode=` 3667 const vec2 effectiveInputOverOutputRatioRC = vec2( 3668 ${c[0]/p[0]}, 3669 ${c[1]/p[1]}); 3670 const vec2 inputShapeRC = vec2(${s}.0, ${l}.0); 3671 3672 void main() { 3673 ivec4 coords = getOutputCoords(); 3674 int b = coords[0]; 3675 int d = coords[3]; 3676 ivec2 yRC = coords.yz; 3677 3678 // Fractional source index. 3679 vec2 sourceFracIndexRC = ${a}; 3680 3681 // Compute the coordinators of nearest neighbor point. 3682 ivec2 sourceNearestRC = ivec2( 3683 min(inputShapeRC - 1.0, floor(sourceFracIndexRC + ${d}))); 3684 float newValue = getA(b, sourceNearestRC.x, sourceNearestRC.y, d); 3685 3686 setOutput(newValue); 3687 } 3688 `}}class N4{constructor(e,t,n,r,i){let a;this.variableNames=["A"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=[];let[o,s,l,u]=e;this.outputShape=[o,t,n,u];let c=[r&&t>1?s-1:s,r&&n>1?l-1:l],p=[r&&t>1?t-1:t,r&&n>1?n-1:n],d=r?"0.5":"0.0";a=i?"max((vec3(yRC) + vec3(0.5)) * effectiveInputOverOutputRatioRC, vec3(0.0))":"vec3(yRC) * effectiveInputOverOutputRatioRC",this.userCode=` 3689 const vec3 effectiveInputOverOutputRatioRC = vec3( 3690 ${c[0]/p[0]}, 3691 ${c[1]/p[1]}, 3692 ${c[1]/p[1]}); 3693 const vec3 inputShapeRC = vec3(${s}.0, ${l}.0, 3694 ${l}.0); 3695 3696 float getAValue(int b, int r, int c, int d) { 3697 return getChannel(getA(b, r, c, d), vec2(c, d)); 3698 } 3699 3700 void main() { 3701 ivec4 coords = getOutputCoords(); 3702 int b = coords[0]; 3703 int d = coords[3]; 3704 // Calculate values for next column in yRC.z. 3705 ivec3 yRC = coords.yzz + ivec3(0, 0, 1); 3706 3707 // Fractional source index. 3708 vec3 sourceFracIndexRC = ${a}; 3709 3710 // Compute the coordinators of nearest neighbor point. 3711 ivec3 sourceNearestRC = ivec3( 3712 min(inputShapeRC - 1.0, floor(sourceFracIndexRC + ${d}))); 3713 3714 // Should we calculate next column and row elements in 2x2 packed cell. 3715 bool hasNextCol = d < ${u-1}; 3716 bool hasNextRow = coords.z < ${n-1}; 3717 3718 vec4 newValue = vec4(
3719 getAValue(b, sourceNearestRC.x, sourceNearestRC.y, d), 3720 hasNextCol ? getAValue(b, sourceNearestRC.x, sourceNearestRC.y, d + 1) 3721 : 0.0, 3722 hasNextRow ? getAValue(b, sourceNearestRC.x, sourceNearestRC.z, d) 3723 : 0.0, 3724 (hasNextRow && hasNextCol) ? 3725 getAValue(b, sourceNearestRC.x, sourceNearestRC.z, d + 1) : 0.0); 3726 3727 setOutput(newValue); 3728 } 3729 `}}let N6={kernelName:ep.Rc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{images:i}=t,{alignCorners:a,halfPixelCenters:o,size:s}=r,[l,u]=s,c=Object(ep.of)().getBool("WEBGL_PACK_IMAGE_OPERATIONS")?new N4(i.shape,l,u,a,o):new N3(i.shape,l,u,a,o);return n.runWebGLProgram(c,[i],i.dtype)}};class N5{constructor(e,t,n){this.variableNames=["dy"],this.outputShape=[],this.outputShape=t;let[,r,i]=t,[,a,o]=e,s=[n&&a>1?r-1:r,n&&o>1?i-1:i],l=[n&&a>1?a-1:a,n&&o>1?o-1:o],u=s[0]/l[0],c=s[1]/l[1],p=1/u,d=1/c,f=2*Math.ceil(p)+2,h=2*Math.ceil(d)+2;this.userCode=` 3730 void main() { 3731 ivec4 coords = getOutputCoords(); 3732 int b = coords[0]; 3733 int d = coords[3]; 3734 int r = coords[1]; 3735 int c = coords[2]; 3736 3737 float accumulator = 0.0; 3738 3739 const float heightScale = float(${u}); 3740 const float widthScale = float(${c}); 3741 3742 const float invHeightScale = float(${p}); 3743 const float invWidthScale = float(${d}); 3744 3745 const int winHeight = int(${f}); 3746 const int winWidth = int(${h}); 3747 3748 // Compute bounds for where in dy we will look 3749 float startRLerp = floor(float(r) * invHeightScale); 3750 int startDyR = int(floor(startRLerp - float(winHeight / 2))); 3751 3752 float startCLerp = floor(float(c) * invWidthScale); 3753 int startDyC = int(floor(startCLerp - float(winWidth / 2))); 3754 3755 // Loop over dy 3756 for (int dyROffset = 0; dyROffset < winHeight; dyROffset++) { 3757 int dyR = dyROffset + startDyR; 3758 3759 // Guard against the window exceeding the bounds of dy 3760 if (dyR < 0 || dyR >= ${a}) { 3761 continue; 3762 } 3763 3764 for (int dyCOffset = 0; dyCOffset < winWidth; dyCOffset++) { 3765 int dyC = dyCOffset + startDyC; 3766 3767 // Guard against the window exceeding the bounds of dy 3768 if (dyC < 0 || dyC >= ${o}) { 3769 continue; 3770 } 3771 3772 float sourceFracRow = 3773 float(${s[0]}) * 3774 (float(dyR) / float(${l[0]})); 3775 3776 float sourceFracCol = 3777 float(${s[1]}) * 3778 (float(dyC) / float(${l[1]})); 3779 3780 int sourceNearestRow = int(min( 3781 float(int(${r}) - 1), 3782 ${n} ? float(round(sourceFracRow)) : 3783 float(floor(sourceFracRow)))); 3784 3785 int sourceNearestCol = int(min( 3786 float(int(${i}) - 1), 3787 ${n} ? float(round(sourceFracCol)) : 3788 float(floor(sourceFracCol)))); 3789 3790 if (r == sourceNearestRow && c == sourceNearestCol) { 3791 accumulator += getDy(b, dyR, dyC, d); 3792 } 3793 } 3794 } 3795 // End loop over dy 3796 3797 setOutput(accumulator); 3798 } 3799 `}}let N8={kernelName:ep.Sc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{images:i,dy:a}=t,{alignCorners:o}=r,s=new N5(a.shape,i.shape,o);return n.runWebGLProgram(s,[a],a.dtype)}};class N7{constructor(e,t){this.variableNames=["x"];let n=e.length;if(n>4)throw Error(`WebGL backend: Reverse of rank-${n} tensor is not yet supported`);if(this.outputShape=e,1===n)return void(this.userCode=` 3800 void main() { 3801 int coord = getOutputCoords(); 3802 setOutput(getX(${e[0]} - coord - 1)); 3803 } 3804 `);let r=e.map((n,r)=>(n=>-1!==t.indexOf(n)&&1!==e[n]?`${e[n]} - coords[${n}] - 1`:`coords[${n}]`)(r)).join(","),i=yq(n);this.userCode=` 3805 void main() { 3806 ${i} coords = getOutputCoords(); 3807 setOutput(getX(${r})); 3808 } 3809 `}}class N9{constructor(e,t){this.variableNames=["x"],this.packedInputs=!0,this.packedOutput=!0;let n=e.length;if(n>4)throw Error(`WebGL backend: Reverse of rank-${n} tensor is not yet supported`);this.outputShape=e;let r=vo("rc",n),i=`${r[n-1]} + 1 < ${this.outputShape[n-1]}`,a=`${r[n-2]} + 1 < ${this.outputShape[n-2]}`,o=yq(n);function s(n){let r=e.map((r,i)=>(function(n,r){return -1!==t.indexOf(n)&&1!==e[n]?`${e[n]} - ${r[n]} - 1`:""+r[n]})(i,n));return`getChannel(getX(${r.join(",")}), vec2(${r.slice(-2).join(",")}))`}this.userCode=1===n?` 3810 void main(){ 3811 int rc = getOutputCoords(); 3812 vec4 result = vec4(0.); 3813 result.r = getChannel(getX(${e[0]} - rc - 1), 3814 ${e[0]} - rc - 1); 3815 if(${i}){ 3816 result.g = getChannel(getX(${e[0]} - (rc + 1) - 1), 3817 ${e[0]} - (rc + 1) - 1); 3818 } 3819 setOutput(result); 3820 } 3821 `:` 3822 void main() { 3823 ${o} rc = getOutputCoords(); 3824 vec4 result = vec4(0.); 3825 result.r = ${function(e){return s(e)}(r.slice())}; 3826 if(${i}){ 3827 result.g = ${function(e){return e[n-1]="("+e[n-1]+" + 1)",s(e)}(r.slice())}; 3828 } 3829 if(${a}) { 3830 result.b = ${function(e){return e[n-2]="("+e[n-2]+" + 1)",s(e)}(r.slice())}; 3831 if(${i}) { 3832 result.a = ${function(e){return e[n-1]="("+e[n-1]+" + 1)",e[n-2]="("+e[n-2]+" + 1)",s(e)}(r.slice())}; 3833 } 3834 } 3835 setOutput(result); 3836 } 3837 `}}let ke={kernelName:ep.Tc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{dims:a}=r,o=i.shape.length,s=ep.Si.parseAxisParam(a,i.shape);if(0===o)return vj({inputs:{x:i},backend:n});let l=Object(ep.of)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new N9(i.shape,s):new N7(i.shape,s);return n.runWebGLProgram(l,[i],i.dtype)}};class kt{constructor(e,t){this.variableNames=["Image"],this.outputShape=[],this.customUniforms=[{name:"params",type:"vec4"}];let n=e[1],r=e[2];this.outputShape=e;let i="";i="number"==typeof t?`float outputValue = ${t.toFixed(2)};`:` 3838 vec3 fill = vec3(${t.join(",")}); 3839 float outputValue = fill[coords[3]];`,this.userCode=` 3840 void main() { 3841 ivec4 coords = getOutputCoords(); 3842 int x = coords[2]; 3843 int y = coords[1]; 3844 float coordXFloat = (float(x) - params[0]) * params[3] - 3845 (float(y) - params[1]) * params[2]; 3846 float coordYFloat = (float(x) - params[0]) * params[2] + 3847 (float(y) - params[1]) * params[3];
3848 int coordX = int(round(coordXFloat + params[0])); 3849 int coordY = int(round(coordYFloat + params[1])); 3850 ${i} 3851 if(coordX >= 0 && coordX < ${r} && coordY >= 0 && coordY < ${n}) { 3852 outputValue = getImage(coords[0], coordY, coordX, coords[3]); 3853 } 3854 setOutput(outputValue); 3855 } 3856 `}}let kn={kernelName:ep.Uc,backendName:"webgl",kernelFunc:({inputs:e,attrs:t,backend:n})=>{let{image:r}=e,{radians:i,fillValue:a,center:o}=t,s=n,l=new kt(r.shape,a),[u,c]=ep.ie.getImageCenter(o,r.shape[1],r.shape[2]),p=[[u,c,Math.sin(i),Math.cos(i)]];return s.runWebGLProgram(l,[r],r.dtype,p)}},kr=vU({opSnippet:"\n // OpenGL ES does not support round function.\n // The algorithm is based on banker's rounding.\n float base = floor(x);\n if ((x - base) < 0.5) {\n return floor(x);\n } else if ((x - base) > 0.5) {\n return ceil(x);\n } else {\n if (mod(base, 2.0) == 0.0) {\n return base;\n } else {\n return base + 1.0;\n }\n }\n"}),ki={kernelName:ep.Vc,backendName:"webgl",kernelFunc:kr},ka=vU({opSnippet:"return inversesqrt(x);",cpuKernelImpl:SY}),ko={kernelName:ep.Wc,backendName:"webgl",kernelFunc:ka};class ks{constructor(e,t,n,r,i,a,o=!0,s=!1){this.variableNames=["updates","indices","defaultValue"],this.outputShape=a;let l=yq(i.length),u=yq(a.length),c="";1===n?c="i":2===n&&(c="i, j");let p=`getIndices(${c})`,d="";1===r?d="i":2===r&&(d="i, coords[1]");let f=`getUpdates(${d})`,h="";s&&(h="coords[0], coords[1]");let g=`getDefaultValue(${h})`,b=t>1?"strides[j]":"strides";this.userCode=` 3857 ${l} strides = ${l}(${i}); 3858 3859 void main() { 3860 ${u} coords = getOutputCoords(); 3861 float sum = 0.0; 3862 bool found = false; 3863 for (int i = 0; i < ${e}; i++) { 3864 int flattenedIndex = 0; 3865 for (int j = 0; j < ${t}; j++) { 3866 int index = round(${p}); 3867 flattenedIndex += index * ${b}; 3868 } 3869 if (flattenedIndex == coords[0]) { 3870 sum += ${f}; 3871 found = true; 3872 } 3873 } 3874 setOutput(mix(${g}, sum, float(found))); 3875 } 3876 `}}class kl{constructor(e,t,n,r,i,a,o=!0,s=!1){this.variableNames=["updates","indices","defaultValue"],this.packedInputs=!0,this.packedOutput=!0,this.outputShape=a;let l=yq(i.length),u=yq(a.length),c="";1===n?c="i":2===n&&(c="i, j");let p=`getIndices(${c})`,d="";1===r?d="i":2===r&&(d="i, coords[1]");let f=`getUpdates(${d})`,h="";s&&(h="coords[0], coords[1]");let g=`getDefaultValue(${h})`,b=t>1?"strides[j]":"strides",m=t>1?"strides[j + 1]":"strides";this.userCode=` 3877 ${l} strides = ${l}(${i}); 3878 3879 void main() { 3880 ${u} coords = getOutputCoords(); 3881 vec4 sum = vec4(0.); 3882 vec4 found = vec4(0.); 3883 for (int i = 0; i < ${e}; i+=2) { 3884 ivec2 flattenedIndex = ivec2(0); 3885 for (int j = 0; j < ${t}; j+=2) { 3886 ivec4 index = round(${p}); 3887 flattenedIndex += index.xz * ${b}; 3888 if (j + 1 < ${t}) { 3889 flattenedIndex += index.yw * ${m}; 3890 } 3891 } 3892 if (flattenedIndex[0] == coords[0] || flattenedIndex[1] == coords[0] || 3893 flattenedIndex[0] == coords[0] + 1 || flattenedIndex[1] == coords[0] + 1) { 3894 vec4 updVals = ${f}; 3895 if (flattenedIndex[0] == coords[0]) { 3896 sum.xy += updVals.xy; 3897 found.xy = vec2(1.); 3898 } else if (flattenedIndex[0] == coords[0] + 1) { 3899 sum.zw += updVals.xy; 3900 found.zw = vec2(1.); 3901 } 3902 if (flattenedIndex[1] == coords[0]) { 3903 sum.xy += updVals.zw; 3904 found.xy = vec2(1.); 3905 } else if (flattenedIndex[1] == coords[0] + 1) { 3906 sum.zw += updVals.zw; 3907 found.zw = vec2(1.); 3908 } 3909 } 3910 } 3911 setOutput(mix(${g}, sum, found)); 3912 } 3913 `}}let ku={kernelName:ep.Yc,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{indices:a,updates:o}=n,{shape:s}=i,{sliceRank:l,numUpdates:u,sliceSize:c,strides:p,outputSize:d}=ep.ie.calculateShapes(o,a,s),f=[d/c,c];if(0===d)return r.makeTensorInfo(s,a.dtype);let h=vK({inputs:{x:a},backend:r,attrs:{shape:[u,l]}}),g=vK({inputs:{x:o},backend:r,attrs:{shape:[u,c]}}),b=r.makeTensorInfo([],"float32",new Float32Array([0]));t=Object(ep.of)().getBool("WEBGL_PACK")?new kl(u,l,h.shape.length,g.shape.length,p,f):new ks(u,l,h.shape.length,g.shape.length,p,f);let m=r.runWebGLProgram(t,[g,h,b],g.dtype),y=vK({inputs:{x:m},backend:r,attrs:{shape:s}});return r.disposeIntermediateTensorInfo(h),r.disposeIntermediateTensorInfo(g),r.disposeIntermediateTensorInfo(m),r.disposeIntermediateTensorInfo(b),y}};class kc{constructor(e,t,n,r){this.variableNames=["sortedSequence","values"],this.customUniforms=[{name:"numInputs",type:"int"}],this.outputShape=[e,n];let i=`for (int i = 0; i < ${Math.ceil(Math.log2(t+1))}; ++i) { if (left >= right) break;`,a=2===Object(ep.of)().getNumber("WEBGL_VERSION")?"while (left < right) {":i,o="left"===r?"<":"<=";this.userCode=` 3914 int findBound(int batch, float value) { 3915 int left = 0; 3916 int right = numInputs; 3917 int mid; 3918 ${a} 3919 mid = (left + right) / 2; 3920 if (getSortedSequence(batch, mid) ${o} value) { 3921 left = mid + 1; 3922 } else { 3923 right = mid; 3924 } 3925 } 3926 return right; 3927 } 3928 3929 void main() { 3930 ivec2 coords = getOutputCoords(); 3931 int batch = coords[0]; 3932 int valueIndex = coords[1]; 3933 3934 float value = getValues(batch, valueIndex); 3935 3936 setOutput(float(findBound(batch, value))); 3937 } 3938 `}}let kp={kernelName:ep.Zc,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{sortedSequence:i,values:a}=t,{side:o}=r,s=new kc(i.shape[0],i.shape[1],a.shape[1],o),l=[[i.shape[1]]];return n.runWebGLProgram(s,[i,a],"int32",l)}};class kd{constructor(e,t,n){let r,i;if(this.variableNames=["c","a","b"],this.outputShape=t,n>4)throw Error(`Where for rank ${n} is not yet supported`);if(1===n)i="resRC",r="resRC";else{let n=["resRC.x","resRC.y","resRC.z","resRC.w"],a=[],o=[];for(let r=0;r<t.length;r++)o.push(""+n[r]),r<e&&a.push(""+n[r]);r=a.join(),i=o.join()}let a=yq(n);this.userCode=` 3939 void main() { 3940 ${a} resRC = getOutputCoords(); 3941 float cVal = getC(${r}); 3942 if (cVal >= 1.0) { 3943 setOutput(getA(${i})); 3944 } else { 3945 setOutput(getB(${i})); 3946 } 3947 } 3948 `}}let kf={kernelName:ep.ad,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{condition:r,t:i,e:a}=t,o=new kd(r.shape.length,i.shape,i.shape.length);return n.runWebGLProgram(o,[r,i,a],Object(ep.Qi)(i.dtype,a.dtype))}}
3948,kh=vU({opSnippet:` 3949 // Stable and Attracting Fixed Point (0, 1) for Normalized Weights. 3950 // see: https://arxiv.org/abs/1706.02515 3951 float scaleAlpha = ${ep.ie.SELU_SCALEALPHA}; 3952 float scale = ${ep.ie.SELU_SCALE}; 3953 return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0); 3954`}),kg={kernelName:ep.bd,backendName:"webgl",kernelFunc:kh},kb=vU({opSnippet:"if (isnan(x)) return x;\n return 1.0 / (1.0 + exp(-1.0 * x));\n",packedOpSnippet:"\n vec4 result = 1.0 / (1.0 + exp(-1.0 * x));\n bvec4 isNaN = isnan(x);\n\n result.r = isNaN.r ? x.r : result.r;\n result.g = isNaN.g ? x.g : result.g;\n result.b = isNaN.b ? x.b : result.b;\n result.a = isNaN.a ? x.a : result.a;\n\n return result;\n",cpuKernelImpl:SJ}),km={kernelName:ep.cd,backendName:"webgl",kernelFunc:kb},ky=vU({opSnippet:"\n if (isnan(x)) { return 0.0; }\n return sign(x);\n"}),kS={kernelName:ep.dd,backendName:"webgl",kernelFunc:ky},kv=vU({opSnippet:"if (isnan(x)) return x;\n return sin(x);\n",packedOpSnippet:` 3955 vec4 result = sin(x); 3956 bvec4 isNaN = isnan(x); 3957 ${vT} 3958 return result; 3959`}),kO={kernelName:ep.ed,backendName:"webgl",kernelFunc:kv},kx=vU({opSnippet:"\n float e2x = exp(x);\n return (e2x - 1.0 / e2x) / 2.0;\n"}),kI={kernelName:ep.fd,backendName:"webgl",kernelFunc:kx},kN=vU({opSnippet:"\n float epsilon = 1.1920928955078125e-7;\n float threshold = log(epsilon) + 2.0;\n\n bool too_large = x > -threshold;\n bool too_small = x < threshold;\n\n float result;\n float exp_x = exp(x);\n\n if (too_large){\n result = x;\n }\n else if (too_small){\n result = exp_x;\n }\n else{\n result = log(exp_x + 1.0);\n }\n return result;\n"}),kk={kernelName:ep.id,backendName:"webgl",kernelFunc:kN},kT={kernelName:ep.jd,backendName:"webgl",kernelFunc:e=>{let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{blockShape:a,paddings:o}=r;ep.Si.assert(i.shape.length<=4,()=>"spaceToBatchND for rank > 4 with a WebGL backend not implemented yet");let s=a.reduce((e,t)=>e*t),l=[[0,0]];l.push(...o);for(let e=1+a.length;e<i.shape.length;++e)l.push([0,0]);let u=[],c=NM({inputs:{x:i},backend:n,attrs:{paddings:l,constantValue:0}}),p=ep.ie.getReshaped(c.shape,a,s,!1),d=ep.ie.getPermuted(p.length,a.length,!1),f=ep.ie.getReshapedPermuted(c.shape,a,s,!1),h=vK({inputs:{x:c},backend:n,attrs:{shape:p}}),g=v4({inputs:{x:h},backend:n,attrs:{perm:d}}),b=vK({inputs:{x:g},backend:n,attrs:{shape:f}});return u.push(c),u.push(h),u.push(g),u.forEach(e=>n.disposeIntermediateTensorInfo(e)),b}},kw={kernelName:ep.kd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{indices:r,values:i,denseShape:a,defaultValue:o}=t;if(1!==a.shape.length)throw Error("Dense shape must be a vector, saw:\n "+a.shape);if(2!==r.shape.length)throw Error("Indices must be a matrix, saw:\n "+r.shape);if(1!==i.shape.length)throw Error("Values must be a vector, saw:\n "+i.shape);if(0!==o.shape.length)throw Error("Default value must be a scalar, saw:\n "+o.shape);let s=n.readSync(r.dataId),l=n.readSync(i.dataId),u=n.readSync(a.dataId),c=n.readSync(o.dataId)[0],[p,d,f,h,g]=S1(s,r.shape,r.dtype,l,i.dtype,u,c);return[n.makeTensorInfo(d,r.dtype,p),n.makeTensorInfo([d[0]],i.dtype,f),n.makeTensorInfo([h.length],"bool",new Uint8Array(h.map(e=>Number(e)))),n.makeTensorInfo([g.length],r.dtype,new Int32Array(g))]}},kj={kernelName:ep.ld,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{inputIndices:r,inputShape:i,newShape:a}=t;if(2!==r.shape.length)throw Error("Input indices should be a matrix but received shape "+r.shape);if(1!==i.shape.length)throw Error("Input shape should be a vector but received shape "+i.shape);if(1!==a.shape.length)throw Error("Target shape should be a vector but received shape "+a.shape);let o=Array.from(n.readSync(i.dataId)),s=n.readSync(r.dataId),l=Array.from(n.readSync(a.dataId)),[u,c,p]=S2(s,r.shape,r.dtype,o,l);return[n.makeTensorInfo(c,r.dtype,u),n.makeTensorInfo([p.length],a.dtype,new Int32Array(p))]}},kF={kernelName:ep.md,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{data:r,indices:i,segmentIds:a}=t;if(r.shape.length<1)throw Error("Data should be at least 1 dimensional but received scalar");
3959if(1!==i.shape.length)throw Error("Indices should be a vector but received shape\n "+i.shape);if(1!==a.shape.length)throw Error("Segment ids should be a vector but received shape\n "+a.shape);let o=n.readSync(r.dataId),s=n.readSync(i.dataId),l=n.readSync(a.dataId),[u,c]=S3(o,r.shape,r.dtype,s,l,!0);return n.makeTensorInfo(c,r.dtype,u)}},k_={kernelName:ep.nd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n}=e,{data:r,indices:i,segmentIds:a}=t;if(r.shape.length<1)throw Error("Data should be at least 1 dimensional but received scalar");if(1!==i.shape.length)throw Error("Indices should be a vector but received shape\n "+i.shape);if(1!==a.shape.length)throw Error("Segment ids should be a vector but received shape\n "+a.shape);let o=n.readSync(r.dataId),s=n.readSync(i.dataId),l=n.readSync(a.dataId),[u,c]=S3(o,r.shape,r.dtype,s,l);return n.makeTensorInfo(c,r.dtype,u)}},kE={kernelName:ep.od,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{sparseIndices:i,sparseValues:a,defaultValue:o}=t,{outputShape:s}=r,{sliceRank:l,numUpdates:u,sliceSize:c,strides:p,outputSize:d}=ep.ie.calculateShapes(a,i,s);if("string"===a.dtype){let e=n.bufferSync(i),t=SQ(e,n.bufferSync(a),s,d,c,u,l,p,ep.Si.decodeString(n.readSync(o.dataId)[0]),!1);return n.makeTensorInfo(s,t.dtype,t.values)}let f=new ks(u,l,i.shape.length,a.shape.length,p,[d,1],!1),h=n.runWebGLProgram(f,[a,i,o],a.dtype),g=vK({inputs:{x:h},backend:n,attrs:{shape:s}});return n.disposeIntermediateTensorInfo(h),g}},kR={kernelName:ep.pd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{numOrSizeSplits:a,axis:o}=r,s=ep.Si.parseAxisParam(o,i.shape)[0],l=ep.ie.prepareSplitSize(i,a,s),u=Array(i.shape.length).fill(0),c=i.shape.slice();return l.map(e=>{let t=[...c];t[s]=e;let r=OL({inputs:{x:i},backend:n,attrs:{begin:u,size:t}});return u[s]+=e,r})}},kD="return sqrt(x);",kC=vU({opSnippet:kD,packedOpSnippet:kD,cpuKernelImpl:S4}),kA={kernelName:ep.qd,backendName:"webgl",kernelFunc:kC},kM=vU({opSnippet:"return x * x;"}),k$={kernelName:ep.rd,backendName:"webgl",kernelFunc:kM},kU=vP({opSnippet:"return (a - b) * (a - b);",packedOpSnippet:"return (a - b) * (a - b);"}),kP={kernelName:ep.sd,backendName:"webgl",kernelFunc:kU},kB={kernelName:ep.td,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t;if("string"!==i.dtype)throw Error("Input must be of datatype string");let a=n.readSync(i.dataId),o=S6(ep.ie.fromUint8ToStringArray(a),"string",r);return n.makeTensorInfo(i.shape,"string",o)}},kL={kernelName:ep.ud,backendName:"webgl",kernelFunc:function({inputs:e,attrs:t,backend:n}){let{x:r}=e,i=`if (isnan(x)) return x; 3960 return x > 0.0 ? 1.0 : float(${t.alpha}); 3961 `,a=new vf(r.shape,i);return n.runWebGLProgram(a,[r],r.dtype)}};class kW{constructor(e,t,n){this.variableNames=["x"],this.outputShape=n;let r=n.length,i=yq(n.length),a=yq(n.length),o="";if(1===r)o="coords * strides + begin";else{let e=0;o=n.map((t,r)=>(e++,1===n.length?`coords * strides[${r}] + begin[${r}]`:`coords[${e-1}] * strides[${r}] + begin[${r}]`)).join(",")}this.userCode=` 3962 ${i} begin = ${i}(${e}); 3963 ${i} strides = ${i}(${t}); 3964 3965 void main() { 3966 ${a} coords = getOutputCoords(); 3967 setOutput(getX(${o})); 3968 } 3969 `}}let kz={kernelName:ep.vd,backendName:"webgl",kernelFunc:function(e){let t,{inputs:n,backend:r,attrs:i}=e,{x:a}=n,{begin:o,end:s,strides:l,beginMask:u,endMask:c,ellipsisMask:p,newAxisMask:d,shrinkAxisMask:f}=i,{finalShapeSparse:h,finalShape:g,isIdentity:b,sliceDim0:m,isSimpleSlice:y,begin:S,end:v,strides:O}=ep.Zh.sliceInfo(a.shape,o,s,l,u,c,p,d,f);if(b)t=vK({inputs:{x:a},backend:r,attrs:{shape:g}});else if(m||y){ep.Si.assert(a.shape.length>=1,()=>"Input must have rank at least 1, got: "+a.shape.length);let e=ep.Zh.computeOutShape(S,v,O),n=OL({inputs:{x:a},backend:r,attrs:{begin:S,size:e}});t=vK({inputs:{x:n},backend:r,attrs:{shape:g}}),r.disposeIntermediateTensorInfo(n)}else if(r.shouldExecuteOnCPU([a])){let e=r.readSync(a.dataId),n=S5(h,Object(ep.we)(a.shape,a.dtype,e),O,S);t=r.makeTensorInfo(g,a.dtype,n.values)}else{let e=new kW(S,O,h);t=r.runWebGLProgram(e,[a],a.dtype)}let x=vK({inputs:{x:t},backend:r,attrs:{shape:g}});return r.disposeIntermediateTensorInfo(t),x}},kG={kernelName:ep.wd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{separator:i,nGramWidths:a,leftPad:o,rightPad:s,padWidth:l,preserveShortSequences:u}=r,{data:c,dataSplits:p}=t,[d,f]=S8(n.readSync(c.dataId),n.readSync(p.dataId),i,a,o,s,l,u);return[n.makeTensorInfo([d.length],"string",d),n.makeTensorInfo(p.shape,"int32",f)]}},kV={kernelName:ep.xd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{skipEmpty:i}=r,{input:a,delimiter:o}=t;if("string"!==a.dtype)throw Error("Input must be of datatype string");if(1!==a.shape.length)throw Error("Input must be a vector, got shape: "+a.shape);if(0!==o.shape.length)throw Error("Delimiter must be a scalar, got shape: "+o.shape);let[s,l,u]=S7(n.readSync(a.dataId),n.readSync(o.dataId)[0],i),c=l.length;return[n.makeTensorInfo([c,2],"int32",s),n.makeTensorInfo([c],"string",l),n.makeTensorInfo([2],"int32",new Int32Array(u))]}},kH={kernelName:ep.yd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{numBuckets:i}=r,{input:a}=t;if("string"!==a.dtype)throw Error("Input must be of datatype string");if(i<=0)throw Error("Number of buckets must be at least 1");let o=S9(n.readSync(a.dataId),i);return n.makeTensorInfo(a.shape,"int32",o)}}
3969,kq=vU({opSnippet:"return tan(x);"}),kK={kernelName:ep.Bd,backendName:"webgl",kernelFunc:kq},kX=vU({opSnippet:"\n float e2x = exp(-2.0 * abs(x));\n return sign(x) * (1.0 - e2x) / (1.0 + e2x);\n"}),kY={kernelName:ep.Cd,backendName:"webgl",kernelFunc:kX},kQ={kernelName:ep.Fd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{tensor:i,indices:a,updates:o}=t,{}=r,{sliceRank:s,numUpdates:l,sliceSize:u,strides:c,outputSize:p}=ep.ie.calculateShapes(o,a,i.shape),d=[p/u,u];if(0===p)return n.makeTensorInfo(i.shape,a.dtype);let f=vK({inputs:{x:a},backend:n,attrs:{shape:[l,s]}}),h=vK({inputs:{x:o},backend:n,attrs:{shape:[l,u]}}),g=vK({inputs:{x:i},backend:n,attrs:{shape:d}}),b=new ks(l,s,f.shape.length,h.shape.length,c,d,!1,!0),m=n.runWebGLProgram(b,[h,f,g],g.dtype),y=vK({inputs:{x:m},backend:n,attrs:{shape:i.shape}});return n.disposeIntermediateTensorInfo(f),n.disposeIntermediateTensorInfo(h),n.disposeIntermediateTensorInfo(g),n.disposeIntermediateTensorInfo(m),y}};class kJ{constructor(e,t){this.variableNames=["A"];let n=Array(e.length);for(let r=0;r<n.length;r++)n[r]=e[r]*t[r];this.outputShape=n,this.rank=n.length;let r=yq(this.rank),i=function(e){let t=e.length;if(t>5)throw Error(`Tile for rank ${t} is not yet supported`);if(1===t)return`imod(resRC, ${e[0]})`;let n=["resRC.x","resRC.y","resRC.z","resRC.w","resRC.u"],r=[];for(let t=0;t<e.length;t++)r.push(`imod(${n[t]}, ${e[t]})`);return r.join()}(e);this.userCode=` 3970 void main() { 3971 ${r} resRC = getOutputCoords(); 3972 setOutput(getA(${i})); 3973 } 3974 `}}function kZ(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{reps:a}=r;if("string"===i.dtype||i.shape.length>5){let e=n.readSync(i.dataId),t="string"===i.dtype?e.map(e=>ep.Si.decodeString(e)):e,r=vt(Object(ep.we)(i.shape,i.dtype,t),a);return n.makeTensorInfo(r.shape,r.dtype,r.values)}let o=new kJ(i.shape,a);return n.runWebGLProgram(o,[i],i.dtype)}let k0={kernelName:ep.Gd,backendName:"webgl",kernelFunc:kZ};class k1{constructor(e){this.variableNames=["x","indices"],this.customUniforms=[{name:"n",type:"int"},{name:"firstPass",type:"int"},{name:"negativeInf",type:"float"},{name:"dir",type:"int"},{name:"inc",type:"int"}],this.outputShape=e,this.userCode="\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int elemIdx = coords[1];\n\n // We compare elements pair-wise within a group of size 2 * inc.\n // The comparing rule for each group alternates between ascending\n // and descending. Within each group, we compare each pair at\n // positions i and i+inc. To decide whether an element at position i\n // is x0 or x1, we mod it by 2 * inc, if the result is smaller than\n // inc, it is in the first half of the group, we denote it as x0,\n // otherwise we denote it as x1.\n // For example, as shown in the Bitonic top K paper referenced above,\n // Figure5(a) shows that element[1] is in the\n // second half of the group when group size is 2, but it is in the\n // first half of the group when group size is 4.\n\n bool isFirstInPair = imod(elemIdx, 2 * inc) < inc;\n int i = isFirstInPair ? elemIdx : elemIdx - inc;\n\n int i0 = firstPass == 1 ? i : int(getIndices(batch, i));\n int i1 = firstPass == 1 ? i + inc : int(getIndices(batch, i + inc));\n float x0 = i0 < n ? getX(batch, i0) : negativeInf;\n float x1 = i1 < n ? getX(batch, i1) : negativeInf;\n\n // Denotes which direction indices are in (ascending or descending).\n bool reverse = imod(elemIdx, 2 * dir) >= dir;\n bool isGreater = x0 > x1 || (x0 == x1 && i1 > i0);\n if (reverse == isGreater) { // Elements in opposite order of direction\n int iTemp = i0;\n i0 = i1;\n i1 = iTemp;\n }\n if (isFirstInPair) {\n setOutput(float(i0));\n } else {\n setOutput(float(i1));\n }\n }\n "}}class k2{constructor(e){this.variableNames=["x","indices"],this.customUniforms=[{name:"n",type:"int"},{name:"firstPass",type:"int"},{name:"k",type:"int"}],this.outputShape=e,this.userCode="\n void main() {\n // Takes max of indices (0, k), (1, k + 1), (2, k + 2) ...\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int elemIdx = coords[1];\n\n // The output size is half of the previous size.\n // If the previous sequence is | | | | _ _ _ _ | | | | _ _ _ _ (k=4),\n // we only need to output the indices at positions |, the indices at\
3974n // positions _ can be thrown away, see Figure5(b) After Phase 2\n // (Merge phase) in the Bitonic Top K paper referenced above.\n // For example, the paper shows we only need to output the orange bars.\n // The output sequence should look like this | | | | | | | |.\n // Because the sequence is halved, to map the output index back\n // to the previous sequence to find the corresponding value,\n // we need to double the index. When we double the index,\n // we basically interpolate a position, so 2i looks like\n // | _ | _ | _ | _ | _ | _ | _. We move the | to the first k position\n // of each 2k positions by - elemIdx % k. E.g. for output at\n // index 4,5,6,7, we want to get the corresponding element at\n // original index 8,9,10,11, for output at index 8,9,10,11,\n // we want to get the corresponding element at original index\n // 16,17,18,19, so on and so forth.\n\n int i = elemIdx < k ? elemIdx : (elemIdx * 2 - imod(elemIdx, k));\n int i0 = firstPass == 1 ? i : int(getIndices(batch, i));\n int i1 = firstPass == 1 ? i + k : int(getIndices(batch, i + k));\n\n float x0 = getX(batch, i0);\n float x1 = i1 < n ? getX(batch, i1) : x0;\n\n setOutput(x0 >= x1 ? float(i0) : float(i1));\n }\n "}}function k3(e,t){null!==t&&e.disposeIntermediateTensorInfo(t)}function k4(e){let t=1;for(;t<e;)t*=2;return t}let k6={kernelName:ep.Hd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i}=t,{k:a,sorted:o}=r,s=Object(ep.of)().getNumber("TOPK_LAST_DIM_CPU_HANDOFF_SIZE_THRESHOLD"),l=Object(ep.of)().getNumber("TOPK_K_CPU_HANDOFF_THRESHOLD"),u=i.shape,c=u[u.length-1];if(n.shouldExecuteOnCPU([i])||c<s||a>l){let[e,t]=vn(n.readSync(i.dataId),u,i.dtype,a,o);return[n.makeTensorInfo(e.shape,e.dtype,e.values),n.makeTensorInfo(t.shape,t.dtype,t.values)]}if(0===a)return u[u.length-1]=0,[n.makeTensorInfo(u,i.dtype,[]),n.makeTensorInfo(u,"int32",[])];if(1===c)return[i,Ii({attrs:{shape:u,dtype:"int32",value:0},backend:n})];let p=n.texData.get(i.dataId),d=null!==p&&p.isPacked,f=d?n.unpackTensor(i):i,h=ep.Si.sizeFromShape(u)/c,g=vK({inputs:{x:f},attrs:{shape:[h,c]},backend:n});d&&k3(n,f);let b=k4(a),m=k4(c),y=null,S=()=>null===y?[g,g]:[g,y],v=(e,t,r)=>{let i=S(),a=new k1(r),o=[[c],[+(null===y)],[-1/0],[e],[t]],s=y;y=n.runWebGLProgram(a,i,"int32",o),k3(n,s)};for(let e=1;e<b;e*=2){let t=2*e;for(let n=e;n>=1;n/=2)v(t,n,[h,m])}for(let e=m;e>b;e/=2){let t=S(),r=new k2([h,e/2]),i=[[c],[+(null===y)],[b]],a=y;y=n.runWebGLProgram(r,t,"int32",i),k3(n,a);let o=b/2,s=2*o;for(let e=o;e>=1;e/=2)v(s,e,y.shape)}let O=y;y=OL({inputs:{x:y},backend:n,attrs:{begin:0,size:[h,a]}}),k3(n,O);let x=II({inputs:{x:g,indices:y},backend:n,attrs:{axis:1,batchDims:1}});k3(n,g);let I=u.slice(0,-1);I.push(a),O=y,y=vK({inputs:{x:y},attrs:{shape:I},backend:n}),k3(n,O);let N=x;return x=vK({inputs:{x:x},attrs:{shape:I},backend:n}),k3(n,N),[x,y]}};class k5{constructor(e,t,n,r,i,a){let o;this.variableNames=["Image","Transforms"],this.outputShape=a;let s="nearest"===n?1:2;switch(r){case"constant":default:o=1;break;case"reflect":o=2;break;case"wrap":o=3;break;case"nearest":o=4}this.userCode=` 3975 float mapCoord(float outCoord, float len) { 3976 float inCoord = outCoord; 3977 if(${o} == 2) { 3978 if (inCoord < 0.0) { 3979 if (len <= 1.0) { 3980 inCoord = 0.0; 3981 } else { 3982 float sz2 = 2.0 * len; 3983 if (inCoord < sz2) { 3984 inCoord = sz2 * float(int(float(-inCoord / sz2))) + 3985 inCoord; 3986 } 3987 inCoord = inCoord < -len ? inCoord + sz2 : -inCoord - 1.0; 3988 } 3989 } else if (inCoord > len - 1.0) { 3990 if (len <= 1.0) { 3991 inCoord = 0.0; 3992 } else { 3993 float sz2 = 2.0 * len; 3994 inCoord -= sz2 * float(int(float(inCoord / sz2))); 3995 if (inCoord >= len) { 3996 inCoord = sz2 - inCoord - 1.0; 3997 } 3998 } 3999 } 4000 return clamp(inCoord, 0.0, len - 1.0); 4001 } else if (${o} == 3) { 4002 if (inCoord < 0.0) { 4003 if (len <= 1.0) { 4004 inCoord = 0.0; 4005 } else { 4006 float sz = len - 1.0; 4007 inCoord += len * (float(int(float(-inCoord / sz))) + 1.0); 4008 } 4009 } else if (inCoord > len - 1.0) { 4010 if (len <= 1.0) { 4011 inCoord = 0.0; 4012 } else { 4013 float sz = len - 1.0; 4014 inCoord -= len * float(int(float(inCoord / sz))); 4015 } 4016 } 4017 return clamp(inCoord, 0.0, len - 1.0); 4018 } else if (${o} == 4) { 4019 return clamp(outCoord, 0.0, len - 1.0); 4020 } else { 4021 return outCoord; 4022 } 4023 } 4024 4025 float readWithFillValue(int batch, int coordY, int coordX, 4026 int channel) { 4027 float outputValue; 4028 if (0 <= coordY && coordY < ${e} && 0 <= coordX && coordX < ${t}) { 4029 outputValue = getImage(batch, coordY, coordX, channel); 4030 } else { 4031 outputValue = float(${i}); 4032 } 4033 return outputValue; 4034 } 4035 4036 void main() { 4037 ivec4 coords = getOutputCoords(); 4038 float outputValue; 4039 int batch = coords[0]; 4040 int x = coords[2]; 4041 int y = coords[1]; 4042 int channel = coords[3]; 4043 float xf = float(x); 4044 float yf = float(y); 4045 float a1 = getTransforms(batch, 0); 4046 float a2 = getTransforms(batch, 1); 4047 float a3 = getTransforms(batch, 2); 4048 float b1 = getTransforms(batch, 3); 4049 float b2 = getTransforms(batch, 4); 4050 float b3 = getTransforms(batch, 5); 4051 float c1 = getTransforms(batch, 6); 4052 float c2 = getTransforms(batch, 7); 4053 float projection = c1 * xf + c2 * yf + 1.0; 4054 if (projection == 0.0) { 4055 outputValue = float(${i}); 4056 } else { 4057 float inX = (a1 * xf + a2 * yf + a3) / projection; 4058 float inY = (b1 * xf + b2 * yf + b3) / projection; 4059 float mapX = mapCoord(inX, float(${t})); 4060 float mapY = mapCoord(inY, float(${e})); 4061 4062 if (${s} == 1) {
4063 int coordY = int(round(mapY)); 4064 int coordX = int(round(mapX)); 4065 outputValue = readWithFillValue(batch, coordY, coordX, 4066 channel); 4067 } else { 4068 float yFloor = floor(mapY); 4069 float xFloor = floor(mapX); 4070 float yCeil = yFloor + 1.0; 4071 float xCeil = xFloor + 1.0; 4072 float valueYFloor = (xCeil - mapX) * 4073 readWithFillValue(batch, int(yFloor), int(xFloor), channel) + 4074 (mapX - xFloor) * 4075 readWithFillValue(batch, int(yFloor), int(xCeil), channel); 4076 float valueYCeil = (xCeil - mapX) * 4077 readWithFillValue(batch, int(yCeil), int(xFloor), channel) + 4078 (mapX - xFloor) * 4079 readWithFillValue(batch, int(yCeil), int(xCeil), channel); 4080 outputValue = (yCeil - mapY) * valueYFloor + 4081 (mapY - yFloor) * valueYCeil; 4082 } 4083 } 4084 setOutput(outputValue); 4085 } 4086 `}}let k8={kernelName:ep.Id,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{image:i,transforms:a}=t,{interpolation:o,fillMode:s,fillValue:l,outputShape:u}=r,[c,p,d,f]=i.shape,[h,g]=null!=u?u:[p,d],b=new k5(p,d,o,s,l,[c,h,g,f]);return n.runWebGLProgram(b,[i,a],"float32")}},k7={kernelName:ep.Kd,backendName:"webgl",kernelFunc:function(e){let{inputs:t,attrs:n,backend:r}=e,{axis:i}=n,{x:a}=t;yj(a,"unique"),console.warn("WARNING: ","UI might be locked temporarily as data is being downloaded");let{outputValues:o,outputShape:s,indices:l}=vi(r.readSync(a.dataId),i,a.shape,a.dtype);return[r.makeTensorInfo(s,a.dtype,o),r.makeTensorInfo([l.length],"int32",l)]}},k9={kernelName:ep.Ld,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{value:i}=t,{axis:a}=r;a<0&&(a+=i.shape.length);let o=i,s=o.shape.length,l=i.shape[a],u=Array(s-1),c=0;for(let e=0;e<s;e++)e!==a&&(u[c++]=o.shape[e]);let p=[],d=Array(s).fill(0),f=o.shape.slice();f[a]=1;let h=Array(l);for(let e=0;e<h.length;e++){d[a]=e;let t=OL({inputs:{x:o},backend:n,attrs:{begin:d,size:f}}),r=vK({inputs:{x:t},backend:n,attrs:{shape:u}});h[e]=r,p.push(t)}return p.forEach(e=>n.disposeIntermediateTensorInfo(e)),h}};class Te{constructor(e,t){this.variableNames=["x","segmentIds"];let n=e.windowSize,r=e.batchSize,i=e.inSize,a=e.numSegments,o=a*Math.ceil(i/n);this.outputShape=[r,o];let s=4*Math.floor(n/4),l=n%4,u="\n sumValue += dot(values, segFilter);\n ",c="";i%n>0&&(c=` 4087 if (inIdx < 0 || inIdx >= ${i}) { 4088 return initializationValue; 4089 } 4090 `);let p="";i%n>0&&(p=` 4091 if (inIdx < 0 || inIdx >= ${i}) { 4092 return -1.0; 4093 } 4094 `),this.userCode=` 4095 const float initializationValue = 0.0; 4096 4097 float getValue(int batch, int inIdx) { 4098 ${c} 4099 return getX(batch, inIdx); 4100 } 4101 4102 float getSegmentIdAtIndex(int inIdx) { 4103 ${p} 4104 return getSegmentIds(inIdx); 4105 } 4106 4107 void main() { 4108 ivec2 coords = getOutputCoords(); 4109 int batch = coords[0]; 4110 int outIdx = coords[1]; 4111 int inOffset = int(floor(float(outIdx) / float( 4112 ${a})) * float(${n})); 4113 int currentSeg = int(mod(float(outIdx), float(${a}))); 4114 4115 float sumValue = 0.0; 4116 4117 for (int i = 0; i < ${s}; i += 4) { 4118 int inIdx = inOffset + i; 4119 vec4 values = vec4( 4120 getValue(batch, inIdx), 4121 getValue(batch, inIdx + 1), 4122 getValue(batch, inIdx + 2), 4123 getValue(batch, inIdx + 3) 4124 ); 4125 4126 vec4 segFilter = vec4( 4127 int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0, 4128 int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0, 4129 int(getSegmentIdAtIndex(inIdx + 2)) == currentSeg ? 1 : 0, 4130 int(getSegmentIdAtIndex(inIdx + 3)) == currentSeg ? 1 : 0 4131 ); 4132 4133 ${u} 4134 } 4135 4136 int inIdx = inOffset + ${s}; 4137 if (${1===l}) { 4138 vec4 values = vec4( 4139 getValue(batch, inIdx), 4140 initializationValue, 4141 initializationValue, 4142 initializationValue 4143 ); 4144 4145 int inIdxSeg = int(getSegmentIdAtIndex(inIdx)); 4146 4147 vec4 segFilter = vec4( 4148 int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0, 4149 0, 4150 0, 4151 0 4152 ); 4153 4154 ${u} 4155 } else if (${2===l}) { 4156 vec4 values = vec4( 4157 getValue(batch, inIdx), 4158 getValue(batch, inIdx + 1), 4159 initializationValue, 4160 initializationValue 4161 ); 4162 4163 vec4 segFilter = vec4( 4164 int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0, 4165 int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0, 4166 0, 4167 0 4168 ); 4169 4170 ${u} 4171 } else if (${3===l}) { 4172 vec4 values = vec4( 4173 getValue(batch, inIdx), 4174 getValue(batch, inIdx + 1), 4175 getValue(batch, inIdx + 2), 4176 initializationValue 4177 ); 4178 4179 vec4 segFilter = vec4( 4180 int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0, 4181 int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0, 4182 int(getSegmentIdAtIndex(inIdx + 2)) == currentSeg ? 1 : 0, 4183 0 4184 ); 4185 4186 ${u} 4187 } 4188 setOutput(sumValue); 4189 } 4190 `}}for(let e of[v8,v7,Oe,On,Oa,Ol,Ou,Oc,Oh,Og,Om,OS,OO,OI,Ok,Oj,OF,OR,OD,OC,O$,Oz,OG,OV,OH,OQ,O0,O3,vE,O5,xi,xd,xm,xS,xv,xO,xx,xN,xT,xj,xD,xC,xA,x$,xB,xz,xG,xH,xK,xX,xQ,xJ,x0,x2,x4,x5,x9,In,Ia,Is,Ic,Id,Ig,Iy,IS,IO,IN,IT,Ij,vF,IF,xt,IE,ID,IA,vC,I$,IP,IB,IW,IG,IH,IK,IY,IZ,I1,I3,I6,I
41905,I8,Ne,Nt,Nn,Nr,Ni,No,Nu,Np,Nv,vq,NO,NI,Nk,Nw,OK,NF,NR,ND,N$,NP,v$,NB,NL,NW,Nz,NV,OY,Nh,Nq,NX,NQ,vX,N0,N2,N6,N8,ke,kn,ki,ko,ku,kp,kf,kg,km,kS,kO,kI,OW,NS,kk,kT,kw,kj,kF,k_,kE,kR,kA,k$,kP,kB,kL,kz,kG,kV,kH,Nm,v3,kK,kY,kQ,k0,k6,k8,v6,k7,k9,{kernelName:ep.Md,backendName:"webgl",kernelFunc:function(e){let{inputs:t,backend:n,attrs:r}=e,{x:i,segmentIds:a}=t,{numSegments:o}=r,s=i.shape.length,l=[],u=0,c=ep.ie.getAxesPermutation([u],s),p=i;null!=c&&(p=v4({inputs:{x:i},backend:n,attrs:{perm:c}}),l.push(p),u=ep.ie.getInnerMostAxes(1,s)[0]);let d=ep.ie.segment_util.computeOutShape(p.shape,u,o),f=ep.Si.sizeFromShape([p.shape[u]]),h=vK({inputs:{x:p},backend:n,attrs:{shape:[-1,f]}});l.push(h);let g=Object(ep.ri)(i.dtype),b=(e,t,r,i,a)=>{let o=e.shape[0],s=e.shape[1],u=ep.ie.segment_util.segOpComputeOptimalWindowSize(s,a),c=new Te({windowSize:u,inSize:s,batchSize:o,numSegments:a},t),p=n.compileAndRun(c,[e,r],i);if(l.push(p),p.shape[1]===a)return p;let d=NG({backend:n,attrs:{start:0,stop:a,step:1,dtype:"float32"}}),f=kZ({inputs:{x:d},backend:n,attrs:{reps:[s/u]}});return l.push(d),l.push(f),b(p,t,f,i,a)},m=vK({inputs:{x:b(h,"unsortedSegmentSum",a,g,o)},backend:n,attrs:{shape:d}}),y=m;return null!=c&&(l.push(m),y=v4({inputs:{x:y},backend:n,attrs:{perm:ep.ie.getUndoAxesPermutation(c)}})),l.forEach(e=>n.disposeIntermediateTensorInfo(e)),y}},NE])Object(ep.sh)(e);let Tt={"tfjs-core":ep.Xi,"tfjs-backend-cpu":hc,"tfjs-backend-webgl":vx,"tfjs-data":de,"tfjs-layers":sn,"tfjs-converter":pC,tfjs:"4.22.0"};var Tn=n(13),Tr=(n(205),n(28)),Ti=n(47);class Ta{constructor(){this.saveRouters=[],this.loadRouters=[]}static getInstance(){return null==Ta.instance&&(Ta.instance=new Ta),Ta.instance}static registerSaveRouter(e){Ta.getInstance().saveRouters.push(e)}static registerLoadRouter(e){Ta.getInstance().loadRouters.push(e)}static getSaveHandlers(e){return Ta.getHandlers(e,"save")}static getLoadHandlers(e,t){return Ta.getHandlers(e,"load",t)}static getHandlers(e,t,n){let r=[];return("load"===t?Ta.getInstance().loadRouters:Ta.getInstance().saveRouters).forEach(t=>{let i=t(e,n);null!==i&&r.push(i)}),r}}function To(){if(!Object(Tr.b)().getBool("IS_BROWSER"))throw Error("Failed to obtain IndexedDB factory because the current environmentis not a web browser.");let e="undefined"==typeof window?self:window,t=e.indexedDB||e.mozIndexedDB||e.webkitIndexedDB||e.msIndexedDB||e.shimIndexedDB;if(null==t)throw Error("The current browser does not appear to support IndexedDB.");return t}function Ts(e){let t=e.result;t.createObjectStore("models_store",{keyPath:"modelPath"}),t.createObjectStore("model_info_store",{keyPath:"modelPath"})}class Tl{constructor(e){if(this.indexedDB=To(),null==e||!e)throw Error("For IndexedDB, modelPath must not be null, undefined or empty.");this.modelPath=e}async save(e){if(e.modelTopology instanceof ArrayBuffer)throw Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");return this.databaseAction(this.modelPath,e)}async load(){return this.databaseAction(this.modelPath)}databaseAction(e,t){return new Promise((e,n)=>{let r=this.indexedDB.open("tensorflowjs",1);r.onupgradeneeded=()=>Ts(r),r.onsuccess=()=>{let i=r.result;if(null==t){let t=i.transaction("models_store","readonly"),r=t.objectStore("models_store").get(this.modelPath);r.onsuccess=()=>{if(null==r.result)return i.close(),n(Error(`Cannot find model with path '${this.modelPath}' in IndexedDB.`));e(r.result.modelArtifacts)},r.onerror=e=>(i.close(),n(r.error)),t.oncomplete=()=>i.close()}else{let r,a=Object(Ti.g)(t),o=i.transaction("model_info_store","readwrite"),s=o.objectStore("model_info_store"),l=s.put({modelPath:this.modelPath,modelArtifactsInfo:a});l.onsuccess=()=>{let l=(r=i.transaction("models_store","readwrite")).objectStore("models_store").put({modelPath:this.modelPath,modelArtifacts:t,modelArtifactsInfo:a});l.onsuccess=()=>e({modelArtifactsInfo:a}),l.onerror=e=>{let t=(s=o.objectStore("model_info_store")).delete(this.modelPath);t.onsuccess=()=>(i.close(),n(l.error)),t.onerror=e=>(i.close(),n(l.error))}},l.onerror=e=>(i.close(),n(l.error)),o.oncomplete=()=>{null==r?i.close():r.oncomplete=()=>i.close()}}},r.onerror=e=>n(r.error)})}}Tl.URL_SCHEME="indexeddb://";let Tu=e=>{var t;
4190return Object(Tr.b)().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(Tl.URL_SCHEME)?(t=e.slice(Tl.URL_SCHEME.length),new Tl(t)):null};Ta.registerSaveRouter(Tu),Ta.registerLoadRouter(Tu);class Tc{constructor(){this.indexedDB=To()}async listModels(){return new Promise((e,t)=>{let n=this.indexedDB.open("tensorflowjs",1);n.onupgradeneeded=()=>Ts(n),n.onsuccess=()=>{let r=n.result,i=r.transaction("model_info_store","readonly"),a=i.objectStore("model_info_store").getAll();a.onsuccess=()=>{let t={};for(let e of a.result)t[e.modelPath]=e.modelArtifactsInfo;e(t)},a.onerror=e=>(r.close(),t(a.error)),i.oncomplete=()=>r.close()},n.onerror=e=>t(n.error)})}async removeModel(e){var t;return e=(t=e).startsWith(Tl.URL_SCHEME)?t.slice(Tl.URL_SCHEME.length):t,new Promise((t,n)=>{let r=this.indexedDB.open("tensorflowjs",1);r.onupgradeneeded=()=>Ts(r),r.onsuccess=()=>{let i,a=r.result,o=a.transaction("model_info_store","readwrite"),s=o.objectStore("model_info_store"),l=s.get(e);l.onsuccess=()=>{if(null==l.result)return a.close(),n(Error(`Cannot find model with path '${e}' in IndexedDB.`));{let r=s.delete(e),o=()=>{let r=(i=a.transaction("models_store","readwrite")).objectStore("models_store").delete(e);r.onsuccess=()=>t(l.result.modelArtifactsInfo),r.onerror=e=>n(l.error)};r.onsuccess=o,r.onerror=e=>(o(),a.close(),n(l.error))}},l.onerror=e=>(a.close(),n(l.error)),o.oncomplete=()=>{null==i?a.close():i.oncomplete=()=>a.close()}},r.onerror=e=>n(r.error)})}}var Tp=n(39);let Td="tensorflowjs_models",Tf="info",Th="model_topology",Tg="weight_specs",Tb="weight_data",Tm="model_metadata";function Ty(e){return{info:[Td,e,Tf].join("/"),topology:[Td,e,Th].join("/"),weightSpecs:[Td,e,Tg].join("/"),weightData:[Td,e,Tb].join("/"),modelMetadata:[Td,e,Tm].join("/")}}function TS(e){for(let t of Object.values(e))window.localStorage.removeItem(t)}function Tv(e){let t=e.split("/");if(t.length<3)throw Error("Invalid key format: "+e);return t.slice(1,t.length-1).join("/")}class TO{constructor(e){if(!Object(Tr.b)().getBool("IS_BROWSER")||"undefined"==typeof window||void 0===window.localStorage)throw Error("The current environment does not support local storage.");if(this.LS=window.localStorage,null==e||!e)throw Error("For local storage, modelPath must not be null, undefined or empty.");this.modelPath=e,this.keys=Ty(this.modelPath)}async save(e){if(e.modelTopology instanceof ArrayBuffer)throw Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");{let t=JSON.stringify(e.modelTopology),n=JSON.stringify(e.weightSpecs),r=Object(Ti.g)(e);try{this.LS.setItem(this.keys.info,JSON.stringify(r)),this.LS.setItem(this.keys.topology,t),this.LS.setItem(this.keys.weightSpecs,n),this.LS.setItem(this.keys.weightData,Object(Ti.a)(e.weightData));let i={format:e.format,generatedBy:e.generatedBy,convertedBy:e.convertedBy,signature:null!=e.signature?e.signature:void 0,userDefinedMetadata:null!=e.userDefinedMetadata?e.userDefinedMetadata:void 0,modelInitializer:null!=e.modelInitializer?e.modelInitializer:void 0,trainingConfig:null!=e.trainingConfig?e.trainingConfig:void 0};return this.LS.setItem(this.keys.modelMetadata,JSON.stringify(i)),{modelArtifactsInfo:r}}catch(e){throw TS(this.keys),Error(`Failed to save model '${this.modelPath}' to local storage: size quota being exceeded is a possible cause of this failure: modelTopologyBytes=${r.modelTopologyBytes}, weightSpecsBytes=${r.weightSpecsBytes}, weightDataBytes=${r.weightDataBytes}.`)}}}async load(){let e=JSON.parse(this.LS.getItem(this.keys.info));if(null==e)throw Error(`In local storage, there is no model with name '${this.modelPath}'`);if("JSON"!==e.modelTopologyType)throw Error("BrowserLocalStorage does not support loading non-JSON model topology yet.");let t={},n=JSON.parse(this.LS.getItem(this.keys.topology));if(null==n)throw Error(`In local storage, the topology of model '${this.modelPath}' is missing.`);t.modelTopology=n;let r=JSON.parse(this.LS.getItem(this.keys.weightSpecs));if(null==r)throw Error(`In local storage, the weight specs of model '${this.modelPath}' are missing.`);t.weightSpecs=r;let i=this.LS.getItem(this.keys.modelMetadata);if(null!=i){let e=JSON.parse(i);t.format=e.format,t.generatedBy=e.generatedBy,t.convertedBy=e.convertedBy,null!=e.signature&&(t.signature=e.signature),null!=e.userDefinedMetadata&&(t.userDefinedMetadata=e.userDefinedMetadata),null!=e.modelInitializer&&(t.modelInitializer=e.modelInitializer),null!=e.trainingConfig&&(t.trainingConfig=e.trainingConfig)}let a=this.LS.getItem(this.keys.weightData);if(null==a)throw Error(`In local storage, the binary weight values of model '${this.modelPath}' are missing.`);return t.weightData=Object(Ti.b)(a),t}}TO.URL_SCHEME="localstorage://";let Tx=e=>{var t;
4190return Object(Tr.b)().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(TO.URL_SCHEME)?(t=e.slice(TO.URL_SCHEME.length),new TO(t)):null};Ta.registerSaveRouter(Tx),Ta.registerLoadRouter(Tx);class TI{constructor(){Object(Tp.b)(Object(Tr.b)().getBool("IS_BROWSER"),()=>"Current environment is not a web browser"),Object(Tp.b)("undefined"==typeof window||void 0!==window.localStorage,()=>"Current browser does not appear to support localStorage"),this.LS=window.localStorage}async listModels(){let e={},t=Td+"/",n="/"+Tf;for(let r=0;r<this.LS.length;++r){let i=this.LS.key(r);i.startsWith(t)&&i.endsWith(n)&&(e[Tv(i)]=JSON.parse(this.LS.getItem(i)))}return e}async removeModel(e){var t;let n=Ty(e=(t=e).startsWith(TO.URL_SCHEME)?t.slice(TO.URL_SCHEME.length):t);if(null==this.LS.getItem(n.info))throw Error(`Cannot find model at path '${e}'`);let r=JSON.parse(this.LS.getItem(n.info));return TS(n),r}}class TN{constructor(){this.managers={}}static getInstance(){return null==TN.instance&&(TN.instance=new TN),TN.instance}static registerManager(e,t){Object(Tp.b)(null!=e,()=>"scheme must not be undefined or null."),e.endsWith("://")&&(e=e.slice(0,e.indexOf("://"))),Object(Tp.b)(e.length>0,()=>"scheme must not be an empty string.");let n=TN.getInstance();Object(Tp.b)(null==n.managers[e],()=>`A model store manager is already registered for scheme '${e}'.`),n.managers[e]=t}static getManager(e){let t=TN.getInstance().managers[e];if(null==t)throw Error(`Cannot find model manager for scheme '${e}'`);return t}static getSchemes(){return Object.keys(TN.getInstance().managers)}}class Tk{fetch(e,t){return fetch(e,t)}now(){return performance.now()}encode(e,t){if("utf-8"!==t&&"utf8"!==t)throw Error("Browser's encoder only supports utf-8, but got "+t);return null==this.textEncoder&&(this.textEncoder=new TextEncoder),this.textEncoder.encode(e)}decode(e,t){return new TextDecoder(t).decode(e)}}if(Object(Tr.b)().get("IS_BROWSER")){Object(Tr.b)().setPlatform("browser",new Tk);try{TN.registerManager(TO.URL_SCHEME,new TI)}catch(e){}try{TN.registerManager(Tl.URL_SCHEME,new Tc)}catch(e){}}n(661);var TT=n(42);function Tw(e,t="float32",n){return t=t||"float32",Tp.c(e),new TT.b(e,t,n)}var Tj=n(15),TF=n(9),T_=n(14);let TE=Object(T_.a)({cast_:function(e,t){let n=Object(TF.a)(e,"x","cast");if(!Tp.q(t))throw Error("Failed to cast to unknown dtype "+t);if("string"===t&&"string"!==n.dtype||"string"!==t&&"string"===n.dtype)throw Error("Only strings can be casted to strings");let r={x:n},i={dtype:t};return Tn.a.runKernel(Tj.e,r,i)}}),TR=Object(T_.a)({clone_:function(e){let t={x:Object(TF.a)(e,"x","clone","string_or_numeric")};return Tn.a.runKernel(Tj.s,t)}});Object(Tn.b)();let TD={buffer:Tw,cast:TE,clone:TR,print:function(e,t=!1){console.log(e.toString(t))}};function TC(e){return new Promise(e=>setTimeout(e)).then(e)}Object(TT.e)(TD);class TA{constructor(e){if(!Object(Tr.b)().getBool("IS_BROWSER"))throw Error("browserDownloads() cannot proceed because the current environment is not a browser.");e.startsWith(TA.URL_SCHEME)&&(e=e.slice(TA.URL_SCHEME.length)),null!=e&&0!==e.length||(e="model"),this.modelJsonFileName=e+".json",this.weightDataFileName=e+".weights.bin"}async save(e){if("undefined"==typeof document)throw Error("Browser downloads are not supported in this environment since `document` is not present");let t=window.URL.createObjectURL(new Blob([e.weightData],{type:"application/octet-stream"}));if(e.modelTopology instanceof ArrayBuffer)throw Error("BrowserDownloads.save() does not support saving model topology in binary formats yet.");{let n=[{paths:["./"+this.weightDataFileName],weights:e.weightSpecs}],r=Object(Ti.h)(e,n),i=window.URL.createObjectURL(new Blob([JSON.stringify(r)],{type:"application/json"})),a=null==this.modelJsonAnchor?document.createElement("a"):this.modelJsonAnchor;if(a.download=this.modelJsonFileName,a.href=i,await TC(()=>a.dispatchEvent(new MouseEvent("click"))),null!=e.weightData){let e=null==this.weightDataAnchor?document.createElement("a"):this.weightDataAnchor;e.download=this.weightDataFileName,e.href=t,await TC(()=>e.dispatchEvent(new MouseEvent("click")))}return{modelArtifactsInfo:Object(Ti.g)(e)}}}}function TM(e,t,n,r){!function(e){Object(Tp.b)(null!=e&&Array.isArray(e)&&e.length>0,()=>"promises must be a none empty array")}(e),function(e,t){Object(Tp.b)(e>=0&&e<=1,()=>"Progress fraction must be in range [0, 1], but got startFraction "+e),Object(Tp.b)(t>=0&&t<=1,()=>"Progress fraction must be in range [0, 1], but got endFraction "+t),Object(Tp.b)(t>=e,()=>`startFraction must be no more than endFraction, but got startFraction ${e} and endFraction `+t)}(n=null==n?0:n,r=null==r?1:r);let i=0;return Promise.all(e.map(a=>(a.then(a=>(t(n+ ++i/e.length*(r-n)),a)),a)))}async function T$(e,t){null==t&&(t={});let n=null==t.fetchFunc?Object(Tr.b)().platform.fetch:t.fetchFunc,r=e.map(e=>n(e,t.requestInit,{isBinary:!0})),i=(null==t.onProgress?await Promise.all(r):await TM(r,t.onProgress,0,.5)).map(e=>e.arrayBuffer());return null==t.onProgress?await Promise.all(i):await TM(i,t.onProgress,.5,1)}TA.URL_SCHEME="downloads://",Ta.registerSaveRouter(e=>
4190Object(Tr.b)().getBool("IS_BROWSER")&&!Array.isArray(e)&&e.startsWith(TA.URL_SCHEME)?function(e="model"){return new TA(e)}(e.slice(TA.URL_SCHEME.length)):null),n(211);class TU{constructor(e,t){if(this.DEFAULT_METHOD="POST",null==t&&(t={}),this.weightPathPrefix=t.weightPathPrefix,this.onProgress=t.onProgress,this.weightUrlConverter=t.weightUrlConverter,null!=t.fetchFunc?(Object(Tp.b)("function"==typeof t.fetchFunc,()=>"Must pass a function that matches the signature of `fetch` (see https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)"),this.fetch=t.fetchFunc):this.fetch=Object(Tr.b)().platform.fetch,Object(Tp.b)(null!=e&&e.length>0,()=>"URL path for http must not be null, undefined or empty."),Array.isArray(e)&&Object(Tp.b)(2===e.length,()=>`URL paths for http must have a length of 2, (actual length is ${e.length}).`),this.path=e,null!=t.requestInit&&null!=t.requestInit.body)throw Error("requestInit is expected to have no pre-existing body, but has one.");this.requestInit=t.requestInit||{}}async save(e){if(e.modelTopology instanceof ArrayBuffer)throw Error("BrowserHTTPRequest.save() does not support saving model topology in binary formats yet.");let t=Object.assign({method:this.DEFAULT_METHOD},this.requestInit);t.body=new FormData;let n=[{paths:["./model.weights.bin"],weights:e.weightSpecs}],r=Object(Ti.h)(e,n);t.body.append("model.json",new Blob([JSON.stringify(r)],{type:"application/json"}),"model.json"),null!=e.weightData&&t.body.append("model.weights.bin",new Blob([e.weightData],{type:"application/octet-stream"}),"model.weights.bin");let i=await this.fetch(this.path,t);if(i.ok)return{modelArtifactsInfo:Object(Ti.g)(e),responses:[i]};throw Error("BrowserHTTPRequest.save() failed due to HTTP response status "+i.status+".")}async load(){let e,t=await this.fetch(this.path,this.requestInit);if(!t.ok)throw Error(`Request to ${this.path} failed with status code `+t.status+". Please verify this URL points to the model JSON of the model to load.");try{e=await t.json()}catch(t){let e=`Failed to parse model JSON of response from ${this.path}.`;throw this.path.endsWith(".pb")?e+=" Your path contains a .pb file extension. Support for .pb models have been removed in TensorFlow.js 1.0 in favor of .json models. You can re-convert your Python TensorFlow model using the TensorFlow.js 1.0 conversion scripts or you can convert your.pb models with the 'pb2json'NPM script in the tensorflow/tfjs-converter repository.":e+=" Please make sure the server is serving valid JSON for this request.",Error(e)}let n=e.modelTopology,r=e.weightsManifest;if(null==n&&null==r)throw Error(`The JSON from HTTP path ${this.path} contains neither model topology or manifest for weights.`);return Object(Ti.f)(e,e=>this.loadWeights(e))}async loadWeights(e){let[t,n]=function(e){let t=e.lastIndexOf("/"),n=e.lastIndexOf("?");return[e.substring(0,t)+"/",n>t?e.substring(n):""]}(Array.isArray(this.path)?this.path[1]:this.path),r=this.weightPathPrefix||t,i=[];for(let t of e)i.push(...t.weights);let a=[],o=[];for(let t of e)for(let e of t.paths)null!=this.weightUrlConverter?o.push(this.weightUrlConverter(e)):a.push(r+e+n);this.weightUrlConverter&&a.push(...await Promise.all(o));let s=await T$(a,{requestInit:this.requestInit,fetchFunc:this.fetch,onProgress:this.onProgress});return[i,Object(Ti.d)(s)]}}function TP(e){return null!=e.match(TU.URL_SCHEME_REGEX)}TU.URL_SCHEME_REGEX=/^https?:\/\//;let TB=(e,t)=>{if("undefined"==typeof fetch&&(null==t||null==t.fetchFunc))return null;{let n=!0;if(n=Array.isArray(e)?e.every(e=>TP(e)):TP(e))return TL(e,t)}return null};function TL(e,t){return new TU(e,t)}Ta.registerSaveRouter(TB),Ta.registerLoadRouter(TB);var TW=n(140),Tz=n(75);let TG=Object(T_.a)({concat_:function(e,t=0){Object(Tp.b)(e.length>=1,()=>"Pass at least one tensor to concat");let n=Object(TF.b)(e,"tensors","concat","string_or_numeric");
4190if("complex64"===n[0].dtype&&n.forEach(e=>{if("complex64"!==e.dtype)throw Error(`Cannot concatenate complex64 tensors with a tensor 4191 with dtype ${e.dtype}. `)}),1===n.length)return TR(n[0]);let r=n,i={axis:t};return Tn.a.runKernel(Tj.h,r,i)}}),TV=Object(T_.a)({imag_:function(e){let t={input:Object(TF.a)(e,"input","imag")};return Tn.a.runKernel(Tj.t,t)}}),TH=Object(T_.a)({real_:function(e){let t={input:Object(TF.a)(e,"input","real")};return Tn.a.runKernel(Tj.L,t)}}),Tq=Object(T_.a)({reshape_:function(e,t){let n={x:Object(TF.a)(e,"x","reshape","string_or_numeric")},r={shape:t};return Tn.a.runKernel(Tj.O,n,r)}}),TK=Object(T_.a)({slice_:function(e,t,n){let r=Object(TF.a)(e,"x","slice","string_or_numeric");if(0===r.rank)throw Error("Slicing scalar is not possible");let i={x:r},a={begin:t,size:n};return Tn.a.runKernel(Tj.V,i,a)}}),TX=Object(T_.a)({split_:function(e,t,n=0){let r={x:Object(TF.a)(e,"x","split")},i={numOrSizeSplits:t,axis:n};return Tn.a.runKernel(Tj.ab,r,i)}});function TY(e,t="float32"){if("complex64"===t){let t=TY(e,"float32"),n=TY(e,"float32");return Object(Tz.a)(t,n)}let n=Object(Tp.s)(Object(Tp.v)(e),t);return Tn.a.makeTensor(n,e,t)}let TQ=Object(T_.a)({zerosLike_:function(e){let t={x:Object(TF.a)(e,"x","zerosLike")};return Tn.a.runKernel(Tj.mb,t)}}),TJ=Object(T_.a)({fft_:function(e){Object(Tp.b)("complex64"===e.dtype,()=>`The dtype for tf.spectral.fft() must be complex64 but got ${e.dtype}.`);let t={input:e};return Tn.a.runKernel(Tj.l,t)}}),TZ=Object(T_.a)({rfft_:function(e,t){let n;Object(Tp.b)("float32"===e.dtype,()=>"The dtype for rfft() must be real value but got "+e.dtype);let r=e.shape[e.shape.length-1],i=e.size/r;if(null!=t&&t<r){let i=e.shape.map(e=>0),a=e.shape.map(e=>e);a[e.shape.length-1]=t,n=TK(e,i,a),r=t}else if(null!=t&&t>r){let i=e.shape.map(e=>e);i[e.shape.length-1]=t-r,n=TG([e,TY(i)],e.shape.length-1),r=t}else n=e;let a=TQ(n),o=TJ(Tq(Object(Tz.a)(n,a),[i,r])),s=Math.floor(r/2)+1,l=TH(o),u=TV(o),c=TX(l,[s,r-s],l.shape.length-1),p=TX(u,[s,r-s],u.shape.length-1),d=n.shape.slice();return d[n.shape.length-1]=s,Tq(Object(Tz.a)(c[0],p[0]),d)}}),T0=Object(T_.a)({ifft_:function(e){Object(Tp.b)("complex64"===e.dtype,()=>`The dtype for tf.spectral.ifft() must be complex64 but got ${e.dtype}.`);let t={input:e};return Tn.a.runKernel(Tj.r,t)}});var T1=n(38);let T2=Object(T_.a)({mul_:function(e,t){let n=Object(TF.a)(e,"a","mul"),r=Object(TF.a)(t,"b","mul");[n,r]=Object(T1.b)(n,r);let i={a:n,b:r};return Tn.a.runKernel(Tj.C,i)}}),T3=Object(T_.a)({reverse_:function(e,t){let n={x:Object(TF.a)(e,"x","reverse")},r={dims:t};return Tn.a.runKernel(Tj.R,n,r)}});var T4=n(141);function T6(e,t){if((Object(Tp.p)(e)&&"string"!==t||Array.isArray(e))&&"complex64"!==t)throw Error("Error creating a new Scalar: value must be a primitive (number|boolean|string)");if("string"===t&&Object(Tp.p)(e)&&!(e instanceof Uint8Array))throw Error("When making a scalar from encoded string, the value must be `Uint8Array`.");return Object(T4.a)(e,[],[],t)}function T5(e,t){Object(Tp.d)(e);let n=Object(TF.c)(e,t);if(1!==n.length)throw Error("tensor1d() requires values to be a flat/TypedArray");return Object(T4.a)(e,null,n,t)}function T8(e,t,n){let r=1-e%2,i=new Float32Array(e);for(let a=0;a<e;++a){let o=2*Math.PI*a/(e+r-1);i[a]=t-n*Math.cos(o)}return T5(i,"float32")}Object(T_.a)({irfft_:function(e){let t,n=e.shape[e.shape.length-1],r=e.size/n;if(n<=2)t=T0(Tq(e,[r,n]));else{let i=[r,2*(n-1)],a=Tq(TH(e),[r,n]),o=Tq(TV(e),[r,n]),s=T3(TK(a,[0,1],[r,n-2]),1),l=T2(T3(TK(o,[0,1],[r,n-2]),1),T6(-1)),u=TG([a,s],1),c=TG([o,l],1);t=T0(Tq(Object(Tz.a)(u,c),[i[0],i[1]]))}if(t=TH(t),3===e.rank&&0!==e.shape[0]){let n=t,r=e.shape[0];t=Tq(t,[r,t.shape[0]/r,t.shape[1]]),n.dispose()}return t}}),Object(T_.a)({hammingWindow_:function(e){return T8(e,.54,.46)}});let T7=Object(T_.a)({hannWindow_:function(e){return T8(e,.5,.5)}});function T9(e,t,n){let r={shape:e,value:t,dtype:n};return Tn.a.runKernel(Tj.m,{},r)}function we(e,t,n){if(Object(Tp.d)(e),null!=t&&2!==t.length)throw Error("tensor2d() requires shape to have two numbers");let r=Object(TF.c)(e,n);if(2!==r.length&&1!==r.length)throw Error("tensor2d() requires values to be number[][] or flat/TypedArray");if(1===r.length&&null==t)throw Error("tensor2d() requires shape to be provided when `values` are a flat/TypedArray");return Object(T4.a)(e,t,r,n)}let wt=Object(T_.a)({frame_:function(e,t,n,r=!1,i=0){let a=0,o=[];for(;a+t<=e.size;)o.push(TK(e,a,t)),a+=n;if(r)for(;a<e.size;
4191){let r=a+t-e.size,s=TG([TK(e,a,t-r),T9([r],i)]);o.push(s),a+=n}return 0===o.length?we([],[0,t]):Tq(TG(o),[o.length,t])}});Object(T_.a)({stft_:function(e,t,n,r,i=T7){return null==r&&(r=Math.floor(Math.pow(2,Math.ceil(Math.log(t)/Math.log(2))))),TZ(T2(wt(e,t,n),i(t)),r)}}),Object(T_.a)({cropAndResize_:function(e,t,n,r,i="bilinear",a=0){let o=Object(TF.a)(e,"image","cropAndResize"),s=Object(TF.a)(t,"boxes","cropAndResize","float32"),l=Object(TF.a)(n,"boxInd","cropAndResize","int32"),u=s.shape[0];Tp.b(4===o.rank,()=>`Error in cropAndResize: image must be rank 4,but got rank ${o.rank}.`),Tp.b(2===s.rank&&4===s.shape[1],()=>`Error in cropAndResize: boxes must be have size [${u},4] but had shape ${s.shape}.`),Tp.b(1===l.rank&&l.shape[0]===u,()=>`Error in cropAndResize: boxInd must be have size [${u}] but had shape ${s.shape}.`),Tp.b(2===r.length,()=>`Error in cropAndResize: cropSize must be of length 2, but got length ${r.length}.`),Tp.b(r[0]>=1&&r[1]>=1,()=>"cropSize must be atleast [1,1], but was "+r),Tp.b("bilinear"===i||"nearest"===i,()=>"method must be bilinear or nearest, but was "+i);let c={image:o,boxes:s,boxInd:l},p={method:i,extrapolationValue:a,cropSize:r};return Tn.a.runKernel(Tj.i,c,p)}}),Object(T_.a)({flipLeftRight_:function(e){let t=Object(TF.a)(e,"image","flipLeftRight","float32");Tp.b(4===t.rank,()=>`Error in flipLeftRight: image must be rank 4,but got rank ${t.rank}.`);let n={image:t};return Tn.a.runKernel(Tj.n,n,{})}});let wn=Object(T_.a)({tile_:function(e,t){let n=Object(TF.a)(e,"x","tile","string_or_numeric");Tp.b(n.rank===t.length,()=>`Error in transpose: rank of input ${n.rank} must match length of reps ${t}.`);let r={x:n},i={reps:t};return Tn.a.runKernel(Tj.ib,r,i)}});function wr(e,t,n,r,i,a){null==r&&(r=.5),null==i&&(i=-1/0),null==a&&(a=0);let o=e.shape[0];return n=Math.min(n,o),Tp.b(0<=r&&r<=1,()=>`iouThreshold must be in [0, 1], but was '${r}'`),Tp.b(2===e.rank,()=>`boxes must be a 2D tensor, but was of rank '${e.rank}'`),Tp.b(4===e.shape[1],()=>"boxes must have 4 columns, but 2nd dimension was "+e.shape[1]),Tp.b(1===t.rank,()=>"scores must be a 1D tensor"),Tp.b(t.shape[0]===o,()=>`scores has incompatible shape with boxes. Expected ${o}, but was `+t.shape[0]),Tp.b(0<=a&&a<=1,()=>`softNmsSigma must be in [0, 1], but was '${a}'`),{maxOutputSize:n,iouThreshold:r,scoreThreshold:i,softNmsSigma:a}}Object(T_.a)({grayscaleToRGB_:function(e){let t=Object(TF.a)(e,"image","grayscaleToRGB"),n=t.rank-1,r=t.shape[n];Tp.b(t.rank>=2,()=>`Error in grayscaleToRGB: images must be at least rank 2, but got rank ${t.rank}.`),Tp.b(1===r,()=>`Error in grayscaleToRGB: last dimension of a grayscale image should be size 1, but got size ${r}.`);let i=Array(t.rank);return i.fill(1,0,n),i[n]=3,wn(t,i)}}),Object(T_.a)({rotateWithOffset_:function(e,t,n=0,r=.5){let i=Object(TF.a)(e,"image","rotateWithOffset","float32");Tp.b(4===i.rank,()=>`Error in rotateWithOffset: image must be rank 4,but got rank ${i.rank}.`);let a={image:i},o={radians:t,fillValue:n,center:r};return Tn.a.runKernel(Tj.S,a,o)}}),Object(T_.a)({nonMaxSuppression_:function(e,t,n,r=.5,i=-1/0){let a=Object(TF.a)(e,"boxes","nonMaxSuppression","float32"),o=Object(TF.a)(t,"scores","nonMaxSuppression","float32"),s=wr(a,o,n,r,i),l={maxOutputSize:n=s.maxOutputSize,iouThreshold:r=s.iouThreshold,scoreThreshold:i=s.scoreThreshold};return Tn.a.runKernel(Tj.E,{boxes:a,scores:o},l)}}),Object(T_.a)({nonMaxSuppressionWithScore_:function(e,t,n,r=.5,i=-1/0,a=0){let o=Object(TF.a)(e,"boxes","nonMaxSuppression"),s=Object(TF.a)(t,"scores","nonMaxSuppression"),l=wr(o,s,n,r,i,a),u={boxes:o,scores:s},c={maxOutputSize:n=l.maxOutputSize,iouThreshold:r=l.iouThreshold,scoreThreshold:i=l.scoreThreshold,softNmsSigma:a=l.softNmsSigma},p=Tn.a.runKernel(Tj.G,u,c);return{selectedIndices:p[0],selectedScores:p[1]}}}),Object(T_.a)({nonMaxSuppressionPadded_:function(e,t,n,r=.5,i=-1/0,a=!1){let o=Object(TF.a)(e,"boxes","nonMaxSuppression"),s=Object(TF.a)(t,"scores","nonMaxSuppression"),l=wr(o,s,n,r,i,null),u={boxes:o,scores:s},c={maxOutputSize:l.maxOutputSize,iouThreshold:l.iouThreshold,scoreThreshold:l.scoreThreshold,padToMaxOutputSize:a},p=Tn.a.runKernel(Tj.F,u,c);return{selectedIndices:p[0],validOutputs:p[1]}}}),Object(T_.a)({resizeBilinear_:function(e,t,n=!1,r=!1){let i=Object(TF.a)(e,"images","resizeBilinear");Tp.b(3===i.rank||4===i.rank,()=>`Error in resizeBilinear: x must be rank 3 or 4, but got rank ${i.rank}
4191.`),Tp.b(2===t.length,()=>"Error in resizeBilinear: new shape must 2D, but got shape "+t+"."),Tp.b(!1===r||!1===n,()=>"Error in resizeBilinear: If halfPixelCenters is true, alignCorners must be false.");let a=i,o=!1;3===i.rank&&(o=!0,a=Tq(i,[1,i.shape[0],i.shape[1],i.shape[2]]));let[]=t,s={images:a},l={alignCorners:n,halfPixelCenters:r,size:t},u=Tn.a.runKernel(Tj.P,s,l);return o?Tq(u,[u.shape[1],u.shape[2],u.shape[3]]):u}}),Object(T_.a)({resizeNearestNeighbor_:function(e,t,n=!1,r=!1){let i=Object(TF.a)(e,"images","resizeNearestNeighbor");Tp.b(3===i.rank||4===i.rank,()=>`Error in resizeNearestNeighbor: x must be rank 3 or 4, but got rank ${i.rank}.`),Tp.b(2===t.length,()=>"Error in resizeNearestNeighbor: new shape must 2D, but got shape "+t+"."),Tp.b("float32"===i.dtype||"int32"===i.dtype,()=>"`images` must have `int32` or `float32` as dtype"),Tp.b(!1===r||!1===n,()=>"Error in resizeNearestNeighbor: If halfPixelCenters is true, alignCorners must be false.");let a=i,o=!1;3===i.rank&&(o=!0,a=Tq(i,[1,i.shape[0],i.shape[1],i.shape[2]]));let[]=t,s={images:a},l={alignCorners:n,halfPixelCenters:r,size:t},u=Tn.a.runKernel(Tj.Q,s,l);return o?Tq(u,[u.shape[1],u.shape[2],u.shape[3]]):u}});let wi=Object(T_.a)({bincount_:function(e,t,n){let r=Object(TF.a)(e,"x","bincount"),i=Object(TF.a)(t,"weights","bincount");Tp.b("int32"===r.dtype,()=>"Error in bincount: input dtype must be int32, but got "+r.dtype),Tp.b(n>=0,()=>`size must be non-negative, but got ${n}.`),Tp.b(i.size===r.size||0===i.size,()=>`Error in bincount: weights must have the same size as input or0-length, but got input shape: ${r.shape}, weights shape: `+i.shape+".");let a={x:r,weights:i},o={size:n};return Tn.a.runKernel(Tj.d,a,o)}});function wa(e,t){let n=[],r=Math.max(e.length,t.length);for(let i=0;i<r;i++){let r=e[e.length-i-1];null==r&&(r=1);let a=t[t.length-i-1];if(null==a&&(a=1),1===r)n.unshift(a);else if(1===a)n.unshift(r);else{if(r!==a)throw Error(`Operands could not be broadcast together with shapes ${e} and ${t}.`);n.unshift(r)}}return n}let wo=Object(T_.a)({lessEqual_:function(e,t){let n=Object(TF.a)(e,"a","lessEqual","string_or_numeric"),r=Object(TF.a)(t,"b","lessEqual","string_or_numeric");[n,r]=Object(T1.b)(n,r),wa(n.shape,r.shape);let i={a:n,b:r};return Tn.a.runKernel(Tj.u,i)}}),ws=Object(T_.a)({greater_:function(e,t){let n=Object(TF.a)(e,"a","greater","string_or_numeric"),r=Object(TF.a)(t,"b","greater","string_or_numeric");[n,r]=Object(T1.b)(n,r),wa(n.shape,r.shape);let i={a:n,b:r};return Tn.a.runKernel(Tj.p,i)}}),wl=Object(T_.a)({sum_:function(e,t=null,n=!1){let r=Object(TF.a)(e,"x","sum");"bool"===r.dtype&&(r=TE(r,"int32"));let i={x:r},a={axis:t,keepDims:n};return Tn.a.runKernel(Tj.hb,i,a)}}),wu=Object(T_.a)({add_:function(e,t){let n=Object(TF.a)(e,"a","add"),r=Object(TF.a)(t,"b","add");[n,r]=Object(T1.b)(n,r);let i={a:n,b:r};return Tn.a.runKernel(Tj.b,i)}}),wc=Object(T_.a)({floorDiv_:function(e,t){let n=Object(TF.a)(e,"a","floorDiv"),r=Object(TF.a)(t,"b","floorDiv");[n,r]=Object(T1.b)(n,r);let i={a:n,b:r};return Tn.a.runKernel(Tj.o,i)}}),wp=Object(T_.a)({div_:function(e,t){let n=Object(TF.a)(e,"a","div"),r=Object(TF.a)(t,"b","div");if([n,r]=Object(T1.b)(n,r),"int32"===n.dtype&&"int32"===r.dtype)return wc(n,r);let i={a:n,b:r};return Tn.a.runKernel(Tj.M,i,{})}}),wd=Object(T_.a)({sub_:function(e,t){let n=Object(TF.a)(e,"a","sub"),r=Object(TF.a)(t,"b","sub");[n,r]=Object(T1.b)(n,r);let i={a:n,b:r};return Tn.a.runKernel(Tj.gb,i)}}),wf=Object(T_.a)({round_:function(e){let t={x:Object(TF.a)(e,"x","round")};return Tn.a.runKernel(Tj.T,t)}}),wh=Object(T_.a)({broadcastTo_:function(e,t){let n=Object(TF.a)(e,"broadcastTo","x"),r=n.shape;if(t.some(e=>!(e>0)||e%1!=0))throw Error(`broadcastTo(): Invalid broadcast shape [${t}].`);if(t.length<n.rank)throw Error(`broadcastTo(): shape.length=${t.length} < input.rank=${n.rank}.`);if(t.length>n.rank){let e=n.shape.slice();for(;e.length<t.length;)e.unshift(1);n=Tq(n,e)}let i=n.shape,a=Array.from(t);for(let e=t.length-1;e>=0;e--)if(i[e]===t[e])a[e]=1;else if(1!==n.shape[e])throw Error(`broadcastTo(): [${r}] cannot be broadcast to [${t}].`);if(0===a.map((e,t)=>e>1?t:-1).filter(e=>e>=0).length)return TR(n);let o={x:n},s={reps:a};return Tn.a.runKernel(Tj.ib,o,s)}}),wg=Object(T_.a)({where_:function(e,t,n){let r=Object(TF.a)(t,"a","where"),i=Object(TF.a)(n,"b","where"),a=Object(TF.a)(e,"condition","where","bool"),o=wa(wa(a.shape,r.shape),i.shape),s={condition:wh(a,o),t:wh(r,o),e:wh(i,o)};return Tn.a.runKernel(Tj.U,s)}});function wb(e,t,n=1,r="float32"){if(0===n)throw Error("Cannot have a step of zero");let i={start:e,stop:t,step:n,dtype:r};return Tn.a.runKernel(Tj.K,{},i)}Object(T_.a)({threshold_:function(e,t="binary",n=!1,r=.5){let i=Object(TF.a)(e,"image","threshold"),a=i.shape[0]*i.shape[1],o,s,l,u,c=T2(T5([r]),255);if(Tp.b(3===i.rank,()=>`Error in threshold: image must be rank 3,but got rank ${i.rank}
4191.`),Tp.b(3===i.shape[2]||1===i.shape[2],()=>`Error in threshold: image color channel must be equal to 3 or 1but got ${i.shape[2]}.`),Tp.b("int32"===i.dtype||"float32"===i.dtype,()=>`Error in dtype: image dtype must be int32 or float32,but got dtype ${i.dtype}.`),Tp.b("otsu"===t||"binary"===t,()=>"Method must be binary or otsu, but was "+t),3===i.shape[2]){[o,s,l]=TX(i,[1,1,1],-1);let e=T2(o,.2989),t=T2(s,.587),n=T2(l,.114);u=wu(wu(e,t),n)}else u=e;return"otsu"===t&&(c=function(e,t){let n,r,i,a,o,s,l=T5([-1]),u=T5([0]),c=T5([0]);for(let p=0;p<e.size-1;p++){n=TK(e,0,p+1),r=TK(e,p+1),o=wp(wl(n),t),s=wp(wl(r),t),i=wp(wl(T2(n,wb(0,n.size))),wl(n));let d=T9(r.shape,n.size),f=wu(wb(0,r.size),d),h=wd(i,a=wp(wl(T2(r,f)),wl(r))),g=wd(i,a),b=T2(o,s),m=ws(c=T2(T2(b,h),g),u);u=wg(m,c,u),l=wg(m,T5([p]),l)}return l}(wi(TE(wf(u),"int32"),Object(TW.a)([]),256),a)),TE(T2(n?wo(u,c):ws(u,c),255),"int32")}}),Object(T_.a)({transform_:function(e,t,n="nearest",r="constant",i=0,a){let o=Object(TF.a)(e,"image","transform","float32"),s=Object(TF.a)(t,"transforms","transform","float32");Tp.b(4===o.rank,()=>`Error in transform: image must be rank 4,but got rank ${o.rank}.`),Tp.b(2===s.rank&&(s.shape[0]===o.shape[0]||1===s.shape[0])&&8===s.shape[1],()=>"Error in transform: Input transform should be batch x 8 or 1 x 8"),Tp.b(null==a||2===a.length,()=>`Error in transform: outputShape must be [height, width] or null, but got ${a}.`);let l={image:o,transforms:s},u={interpolation:n,fillMode:r,fillValue:i,outputShape:a};return Tn.a.runKernel(Tj.jb,l,u)}});let wm=Object(T_.a)({greaterEqual_:function(e,t){let n=Object(TF.a)(e,"a","greaterEqual","string_or_numeric"),r=Object(TF.a)(t,"b","greaterEqual","string_or_numeric");[n,r]=Object(T1.b)(n,r),wa(n.shape,r.shape);let i={a:n,b:r};return Tn.a.runKernel(Tj.q,i)}}),wy=Object(T_.a)({logicalAnd_:function(e,t){let n=Object(TF.a)(e,"a","logicalAnd","bool"),r=Object(TF.a)(t,"b","logicalAnd","bool");wa(n.shape,r.shape);let i={a:n,b:r};return Tn.a.runKernel(Tj.x,i)}}),wS=Object(T_.a)({stack_:function(e,t=0){let n=Object(TF.b)(e,"tensors","stack","string_or_numeric");Tp.b(n.length>=1,()=>"Pass at least one tensor to tf.stack"),n.length>0&&Tp.b(t<=n[0].rank,()=>"Axis must be <= rank of the tensor");let r=n,i={axis:t};return Tn.a.runKernel(Tj.I,r,i)}}),wv=Object(T_.a)({unstack_:function(e,t=0){let n=Object(TF.a)(e,"x","unstack","string_or_numeric");Tp.b(t>=-n.shape.length&&t<n.shape.length,()=>`Axis = ${t} is not in [-${n.shape.length}, ${n.shape.length})`);let r={value:n},i={axis:t};return Tn.a.runKernel(Tj.lb,r,i)}});Object(T_.a)({bandPart_:function(e,t,n){Object(Tp.b)(t%1==0,()=>`bandPart(): numLower must be an integer, got ${t}.`),Object(Tp.b)(n%1==0,()=>`bandPart(): numUpper must be an integer, got ${n}.`);let r=Object(TF.a)(e,"a","bandPart");Object(Tp.b)(r.rank>=2,()=>`bandPart(): Rank must be at least 2, got ${r.rank}.`);let i=r.shape,[a,o]=r.shape.slice(-2);if(!(t<=a))throw Error(`bandPart(): numLower (${t}) must not be greater than the number of rows (${a}).`);if(!(n<=o))throw Error(`bandPart(): numUpper (${n}) must not be greater than the number of columns (${o}).`);t<0&&(t=a),n<0&&(n=o);let s=wd(Tq(wb(0,a,1,"int32"),[-1,1]),wb(0,o,1,"int32")),l=wy(wo(s,T6(+t,"int32")),wm(s,T6(-n,"int32"))),u=TY([a,o],r.dtype);return Tq(wS(wv(Tq(r,[-1,a,o])).map(e=>wg(l,e,u))),i)}});let wO=Object(T_.a)({abs_:function(e){let t=Object(TF.a)(e,"x","abs");if("complex64"===t.dtype){let e={x:t};return Tn.a.runKernel(Tj.g,e)}{let e={x:t};return Tn.a.runKernel(Tj.a,e)}}});function wx(e,t){return function(e,t,n){let r=e.length+t.length,i=[],a=0,o=0;for(let s=0;s<r;s++)-1===n.indexOf(s)?i.push(e[a++]):i.push(t[o++]);return i}(e,t.map(e=>1),t)}let wI=Object(T_.a)({max_:function(e,t=null,n=!1){let r={x:Object(TF.a)(e,"x","max")},i={reductionIndices:t,keepDims:n};return Tn.a.runKernel(Tj.y,r,i)}}),wN=Object(T_.a)({min_:function(e,t=null,n=!1){let r={x:Object(TF.a)(e,"x","min")},i={axis:t,keepDims:n};return Tn.a.runKernel(Tj.A,r,i)}}),wk=Object(T_.a)({pow_:function(e,t){let n=Object(TF.a)(e,"base","pow"),r=Object(TF.a)(t,"exp","pow");[n,r]=Object(T1.b)(n,r);let i={a:n,b:r};return Tn.a.runKernel(Tj.J,i)}}),wT=Object(T_.a)({sqrt_:function(e){let t={x:Object(TF.a)(e,"x","sqrt","float32")};return Tn.a.runKernel(Tj.bb,t)}}),ww=Object(T_.a)({square_:function(e){let t=Object(TF.a)(e,"x","square");return Tn.a.runKernel("Square",{x:t},{})}}),wj=Object(T_.a)({norm_:function(e,t="euclidean",n=null,r=!1){let i=function e(t,n,r=null){if(0===t.rank)return wO(t);if(1!==t.rank&&null===r)return e(Tq(t,[-1]),n,r);
4191if(1===t.rank||"number"==typeof r||Array.isArray(r)&&1===r.length){if(1===n)return wl(wO(t),r);if(n===1/0)return wI(wO(t),r);if(n===-1/0)return wN(wO(t),r);if("euclidean"===n||2===n)return wT(wl(wk(wO(t),T6(2,"int32")),r));throw Error("Error in norm: invalid ord value: "+n)}if(Array.isArray(r)&&2===r.length){if(1===n)return wI(wl(wO(t),r[0]),r[1]-1);if(n===1/0)return wI(wl(wO(t),r[1]),r[0]);if(n===-1/0)return wN(wl(wO(t),r[1]),r[0]);if("fro"===n||"euclidean"===n)return wT(wl(ww(t),r));throw Error("Error in norm: invalid ord value: "+n)}throw Error("Error in norm: invalid axis: "+r)}(e=Object(TF.a)(e,"x","norm"),t,n),a=i.shape;if(r){let t=Object(Tp.t)(n,e.shape);a=wx(i.shape,t)}return Tq(i,a)}}),wF=Object(T_.a)({squeeze_:function(e,t){let n=Object(TF.a)(e,"x","squeeze","string_or_numeric");return Tq(n,Object(Tp.w)(n.shape,t).newShape)}});Object(T_.a)({gramSchmidt_:function(e){let t;if(Array.isArray(e)){t=!1,Object(Tp.b)(null!=e&&e.length>0,()=>"Gram-Schmidt process: input must not be null, undefined, or empty");let n=e[0].shape[0];for(let t=1;t<e.length;++t)Object(Tp.b)(e[t].shape[0]===n,()=>`Gram-Schmidt: Non-unique lengths found in the input vectors: (${e[t].shape[0]} vs. ${n})`)}else t=!0,e=TX(e,e.shape[0],0).map(e=>wF(e,[0]));Object(Tp.b)(e.length<=e[0].shape[0],()=>`Gram-Schmidt: Number of vectors (${e.length}) exceeds number of dimensions (${e[0].shape[0]}).`);let n=[],r=e;for(let t=0;t<e.length;++t)n.push(Tn.a.tidy(()=>{let e=r[t];if(t>0)for(let r=0;r<t;++r){let t=T2(wl(T2(n[r],e)),n[r]);e=wd(e,t)}return wp(e,wj(e,"euclidean"))}));return t?wS(n,0):n}}),Object(TT.d)(function(e){Object(Tr.b)().getBool("DEPRECATION_WARNINGS_ENABLED")&&console.warn(e+" You can disable deprecation warnings with tf.disableDeprecationWarnings().")});let w_=Object(T_.a)({expandDims_:function(e,t=0){let n=Object(TF.a)(e,"x","expandDims","string_or_numeric");Tp.b(t<=n.rank,()=>"Axis must be <= rank of the tensor");let r={input:n},i={dim:t};return Tn.a.runKernel(Tj.k,r,i)}}),wE=Object(T_.a)({eye_:function(e,t,n,r="float32"){null==t&&(t=e);let i=Tw([e,t],r),a=e<=t?e:t;for(let e=0;e<a;++e)i.set(1,e,e);let o=Tq(i.toTensor(),[e,t]);if(null==n)return o;if(1===n.length)return wn(w_(o,0),[n[0],1,1]);if(2===n.length)return wn(w_(w_(o,0),0),[n[0],n[1],1,1]);if(3===n.length)return wn(w_(w_(w_(o,0),0),0),[n[0],n[1],n[2],1,1]);throw Error(`eye() currently supports only 1D and 2D batchShapes, but received ${n.length}D.`)}}),wR=Object(T_.a)({matMul_:function(e,t,n=!1,r=!1){let i=Object(TF.a)(e,"a","matMul"),a=Object(TF.a)(t,"b","matMul");[i,a]=Object(T1.b)(i,a);let o={a:i,b:a},s={transposeA:n,transposeB:r};return Tn.a.runKernel(Tj.c,o,s)}}),wD=Object(T_.a)({neg_:function(e){let t={x:Object(TF.a)(e,"x","neg")};return Tn.a.runKernel(Tj.D,t)}}),wC=Object(T_.a)({transpose_:function(e,t,n){var r,i;let a=Object(TF.a)(e,"x","transpose");if(null==t&&(t=a.shape.map((e,t)=>t).reverse()),Tp.b(a.rank===t.length,()=>`Error in transpose: rank of input ${a.rank} must match length of perm ${t}.`),t.forEach(e=>{Tp.b(e>=0&&e<a.rank,()=>"All entries in 'perm' must be between 0 and "+(a.rank-1)+" but got "+t)}),a.rank<=1)return a.clone();let o={x:a},s={perm:t};return"complex64"===a.dtype?(r=()=>{let e=TH(a),t=TV(a);return e=Tn.a.runKernel(Tj.kb,{x:e},s),t=Tn.a.runKernel(Tj.kb,{x:t},s),n&&(t=wD(t)),Object(Tz.a)(e,t)},Tn.a.tidy(r,i)):Tn.a.runKernel(Tj.kb,o,s)}});function wA(e,t=!1){return Tn.a.tidy(()=>{var n;Object(Tp.b)(2===e.shape.length,()=>`qr2d() requires a 2D Tensor, but got a ${e.shape.length}D Tensor.`);let r=e.shape[0],i=e.shape[1],a=wE(r),o=TR(e),s=we([[1]],[1,1]),l=TR(s),u=r>=i?i:r;for(let e=0;e<u;++e){let t=o,u=l,c=a;[l,o,a]=Tn.a.tidy(()=>{let t=TK(o,[e,e],[r-e,1]),n=wj(t),u=TK(o,[e,e],[1,1]),c=wg(ws(u,0),we([[-1]]),we([[1]])),p=wd(u,T2(c,n)),d=wp(t,p);l=1===d.shape[0]?TR(s):TG([s,TK(d,[1,0],[d.shape[0]-1,d.shape[1]])],0);let f=wD(wp(wR(c,p),n)),h=TK(o,[e,0],[r-e,i]),g=T2(f,l),b=wC(l);if(0===e)o=wd(h,wR(g,wR(b,h)));else{let t=wd(h,wR(g,wR(b,h)));o=TG([TK(o,[0,0],[e,i]),t],0)}let m=wC(g),y=TK(a,[0,e],[r,a.shape[1]-e]);if(0===e)a=wd(y,wR(wR(y,l),m));else{let t=wd(y,wR(wR(y,l),m));a=TG([TK(a,[0,0],[r,e]),t],1)}return[l,o,a]}
4191),n=[t,u,c],Object(T1.a)(n).forEach(e=>e.dispose())}return!t&&r>i&&(a=TK(a,[0,0],[r,i]),o=TK(o,[0,0],[i,i])),[a,o]})}Object(T_.a)({qr_:function(e,t=!1){if(Object(Tp.b)(e.rank>=2,()=>"qr() requires input tensor to have a rank >= 2, but got rank "+e.rank),2===e.rank)return wA(e,t);{let n=e.shape.slice(0,e.shape.length-2).reduce((e,t)=>e*t),r=wv(Tq(e,[n,e.shape[e.shape.length-2],e.shape[e.shape.length-1]]),0),i=[],a=[];return r.forEach(e=>{let[n,r]=wA(e,t);i.push(n),a.push(r)}),[Tq(wS(i,0),e.shape),Tq(wS(a,0),e.shape)]}}}),function(e){e[e.NONE=0]="NONE",e[e.MEAN=1]="MEAN",e[e.SUM=2]="SUM",e[e.SUM_BY_NONZERO_WEIGHTS=3]="SUM_BY_NONZERO_WEIGHTS"}(p||(p={}));let wM=Object(T_.a)({mean_:function(e,t=null,n=!1){let r={x:Object(TF.a)(e,"x","mean")},i={axis:t,keepDims:n};return Tn.a.runKernel(Tj.z,r,i)}}),w$=Object(T_.a)({notEqual_:function(e,t){let n=Object(TF.a)(e,"a","notEqual","string_or_numeric"),r=Object(TF.a)(t,"b","notEqual","string_or_numeric");[n,r]=Object(T1.b)(n,r),wa(n.shape,r.shape);let i={a:n,b:r};return Tn.a.runKernel(Tj.H,i)}}),wU=Object(T_.a)({computeWeightedLoss_:function(e,t,n=p.SUM_BY_NONZERO_WEIGHTS){let r=Object(TF.a)(e,"losses","computeWeightedLoss"),i=null;null!=t&&(i=Object(TF.a)(t,"weights","computeWeightedLoss"));let a=null==i?r:T2(r,i);if(n===p.NONE)return a;if(n===p.SUM)return wl(a);if(n===p.MEAN){if(null==i)return wM(a);{let e=r.size/i.size,t=wp(wl(a),wl(i));return e>1?wp(t,T6(e)):t}}if(n===p.SUM_BY_NONZERO_WEIGHTS){if(null==i)return wp(wl(a),T6(r.size));{let e=TE(wl(w$(T2(i,function e(t,n="float32"){if("complex64"===n){let n=e(t,"float32"),r=TY(t,"float32");return Object(Tz.a)(n,r)}let r=Object(Tp.r)(Object(Tp.v)(t),n);return Tn.a.makeTensor(r,t,n)}(r.shape)),T6(0))),"float32");return wp(wl(a),e)}}throw Error("Unknown reduction: "+n)}});Object(T_.a)({absoluteDifference_:function(e,t,n,r=p.SUM_BY_NONZERO_WEIGHTS){let i=Object(TF.a)(e,"labels","absoluteDifference"),a=Object(TF.a)(t,"predictions","absoluteDifference"),o=null;return null!=n&&(o=Object(TF.a)(n,"weights","absoluteDifference")),Object(Tp.e)(i.shape,a.shape,"Error in absoluteDifference: "),wU(wO(wd(i,a)),o,r)}}),Object(T_.a)({cosineDistance_:function(e,t,n,r,i=p.SUM_BY_NONZERO_WEIGHTS){let a=Object(TF.a)(e,"labels","cosineDistance"),o=Object(TF.a)(t,"predictions","cosineDistance"),s=null;return null!=r&&(s=Object(TF.a)(r,"weights","cosineDistance")),Object(Tp.e)(a.shape,o.shape,"Error in cosineDistance: "),wU(wd(T6(1),wl(T2(a,o),n,!0)),s,i)}});let wP=Object(T_.a)({relu_:function(e){let t={x:Object(TF.a)(e,"x","relu")};return Tn.a.runKernel(Tj.N,t)}});Object(T_.a)({hingeLoss_:function(e,t,n,r=p.SUM_BY_NONZERO_WEIGHTS){let i=Object(TF.a)(e,"labels","hingeLoss"),a=Object(TF.a)(t,"predictions","hingeLoss"),o=null;null!=n&&(o=Object(TF.a)(n,"weights","hingeLoss")),Object(Tp.e)(i.shape,a.shape,"Error in hingeLoss: ");let s=T6(1);return i=wd(T2(T6(2),i),s),wU(wP(wd(s,T2(i,a))),o,r)}});let wB=Object(T_.a)({minimum_:function(e,t){let n=Object(TF.a)(e,"a","minimum"),r=Object(TF.a)(t,"b","minimum");[n,r]=Object(T1.b)(n,r),"bool"===n.dtype&&(n=TE(n,"int32"),r=TE(r,"int32")),wa(n.shape,r.shape);let i={a:n,b:r};return Tn.a.runKernel(Tj.B,i)}});Object(T_.a)({huberLoss_:function(e,t,n,r=1,i=p.SUM_BY_NONZERO_WEIGHTS){let a=Object(TF.a)(e,"labels","huberLoss"),o=Object(TF.a)(t,"predictions","huberLoss"),s=null;null!=n&&(s=Object(TF.a)(n,"weights","huberLoss")),Object(Tp.e)(a.shape,o.shape,"Error in huberLoss: ");let l=T6(r),u=wO(wd(o,a)),c=wB(u,l),d=wd(u,c);return wU(wu(T2(T6(.5),ww(c)),T2(l,d)),s,i)}});let wL=Object(T_.a)({log_:function(e){let t={x:Object(TF.a)(e,"x","log","float32")};return Tn.a.runKernel(Tj.v,t)}});Object(T_.a)({logLoss_:function(e,t,n,r=1e-7,i=p.SUM_BY_NONZERO_WEIGHTS){let a=Object(TF.a)(e,"labels","logLoss"),o=Object(TF.a)(t,"predictions","logLoss"),s=null;null!=n&&(s=Object(TF.a)(n,"weights","logLoss")),Object(Tp.e)(a.shape,o.shape,"Error in logLoss: ");let l=T6(1),u=T6(r),c=wD(T2(a,wL(wu(o,u)))),d=T2(wd(l,a),wL(wu(wd(l,o),u)));return wU(wd(c,d),s,i)}});let wW=Object(T_.a)({squaredDifference_:function(e,t){let n=Object(TF.a)(e,"a","squaredDifference"),r=Object(TF.a)(t,"b","squaredDifference");[n,r]=Object(T1.b)(n,r),wa(n.shape,r.shape);let i={a:n,b:r};return Tn.a.runKernel(Tj.cb,i,{})}});Object(T_.a)({meanSquaredError_:function(e,t,n,r=p.SUM_BY_NONZERO_WEIGHTS){let i=Object(TF.a)(e,"labels","meanSquaredError"),a=Object(TF.a)(t,"predictions","meanSquaredError"),o=null;return null!=n&&(o=Object(TF.a)(n,"weights","meanSquaredError")),Object(Tp.e)(i.shape,a.shape,"Error in meanSquaredError: "),wU(wW(i,a),o,r)}});let wz=Object(T_.a)({exp_:function(e){let t={x:Object(TF.a)(e,"x","exp")};return Tn.a.runKernel(Tj.j,t)}}),wG=Object(T_.a)({log1p_:function(e){let t={x:Object(TF.a)(e,"x","log1p")};return Tn.a.runKernel(Tj.w,t)}});Object(T_.a)({sigmoidCrossEntropy_:function(e,t,n,r=0,i=p.SUM_BY_NONZERO_WEIGHTS){let a=Object(TF.a)(e,"multiClassLabels","sigmoidCrossEntropy"),o=Object(TF.a)(t,"logits","sigmoidCrossEntropy"),s=null;if(null!=n&&(s=Object(TF.a)(n,"weights","sigmoidCrossEntropy")),Object(Tp.e)(a.shape,o.shape,"Error in sigmoidCrossEntropy: "),r>0){let e=T6(r),t=T6(1),n=T6(.5);a=wu(T2(a,wd(t,e)),T2(n,e))}return wU(function(e,t){let n=Object(TF.a)(e,"labels","sigmoidCrossEntropyWithLogits"),r=Object(TF.a)(t,"logits","sigmoidCrossEntropyWithLogits");Object(Tp.e)(n.shape,r.shape,"Error in sigmoidCrossEntropyWithLogits: ");let i=wP(r),a=T2(r,n),o=wG(wz(wD(wO(r))));return wu(wd(i,a),o)}(a,o),s,i)}});let wV=Object(T_.a)({logSumExp_:function(e,t=null,n=!1){let r=Object(TF.a)(e,"x","logSumExp"),i=Object(Tp.t)(t,r.shape),a=wI(r,i,!0),o=wL(wl(wz(wd(r,a)),i)),s=wu(Tq(a,o.shape),o);if(n){let e=wx(s.shape,i);return Tq(s,e)}return s}});function wH(e,t,n=-1){var r;if(-1===n&&(n=t.rank-1),n!==t.rank-1)throw Error(`Softmax cross entropy along a non-last dimension is not yet supported. Labels / logits was rank ${t.rank} and dim was `+n);return(r=(e,t,r)=>{let i=wV(t,[n],!0),a=wd(TE(t,"float32"),i);return r([e,a]),{value:wl(wD(T2(a,e)),[n]),gradFunc:(e,t)=>{let[r,i]=t,a=wx(e.shape,[n]);return[T2(Tq(e,a),wd(TE(r,"float32"),wz(i))),T2(Tq(e,a),wd(wz(i),TE(r,"float32")))]}}},Tn.a.customGrad(r))(e,t)}Object(T_.a)({softmaxCrossEntropy_:function(e,t,n,r=0,i=p.SUM_BY_NONZERO_WEIGHTS){let a=Object(TF.a)(e,"onehotLabels","softmaxCrossEntropy"),o=Object(TF.a)(t,"logits","softmaxCrossEntropy"),s=null;if(null!=n&&(s=Object(TF.a)(n,"weights","softmaxCrossEntropy")),Object(Tp.e)(a.shape,o.shape,"Error in softmaxCrossEntropy: "),r>0){let e=T6(r),t=T6(1),n=T6(a.shape[1]);a=wu(T2(a,wd(t,e)),wp(e,n))}return wU(wH(a,o),s,i)}}),Object(T_.a)({sparseFillEmptyRows_:function(e,t,n,r){let i=Object(TF.a)(e,"indices","sparseFillEmptyRows","int32"),a=Object(TF.a)(t,"values","sparseFillEmptyRows"),o=Object(TF.a)(n,"denseShape","sparseFillEmptyRows","int32"),s=Object(TF.a)(r,"defaultValue","sparseFillEmptyRows",a.dtype);if(2!==i.rank)throw Error("Indices should be Tensor2D but received shape\n "+i.shape);if(1!==a.rank)throw Error("Values should be Tensor1D but received shape "+a.shape);if(1!==o.rank)throw Error("Dense shape should be Tensor1D but received shape "+o.shape);if(0!==s.rank)throw Error("Default value should be a scalar but received shape "+s.shape);let l={indices:i,values:a,denseShape:o,defaultValue:s},u=Tn.a.runKernel(Tj.W,l);return{outputIndices:u[0],outputValues:u[1],emptyRowIndicator:u[2],reverseIndexMap:u[3]}}}),Object(T_.a)({sparseReshape_:function(e,t,n){let r=Object(TF.a)(e,"inputIndices","sparseReshape","int32"),i=Object(TF.a)(t,"inputShape","sparseReshape","int32"),a=Object(TF.a)(n,"newShape","sparseReshape","int32");if(2!==r.rank)throw Error("Input indices should be Tensor2D but received shape\n "+r.shape);if(1!==i.rank)throw Error("Input shape should be Tensor1D but received shape "+i.shape);if(1!==a.rank)throw Error("New shape should be Tensor1D but received shape "+a.shape);let o={inputIndices:r,inputShape:i,newShape:a},s=Tn.a.runKernel(Tj.X,o);return{outputIndices:s[0],outputShape:s[1]}}}),Object(T_.a)({sparseSegmentMean_:function(e,t,n){let r=Object(TF.a)(e,"data","sparseSegmentMean"),i=Object(TF.a)(t,"indices","sparseSegmentMean","int32"),a=Object(TF.a)(n,"segmentIds","sparseSegmentMean","int32");if(r.rank<1)throw Error("Data should be at least 1 dimensional but received scalar");
4191if(1!==i.rank)throw Error("Indices should be Tensor1D but received shape\n "+i.shape);if(1!==a.rank)throw Error("Segment ids should be Tensor1D but received shape\n "+a.shape);let o={data:r,indices:i,segmentIds:a};return Tn.a.runKernel(Tj.Y,o)}}),Object(T_.a)({sparseSegmentSum_:function(e,t,n){let r=Object(TF.a)(e,"data","sparseSegmentSum"),i=Object(TF.a)(t,"indices","sparseSegmentSum","int32"),a=Object(TF.a)(n,"segmentIds","sparseSegmentSum","int32");if(r.rank<1)throw Error("Data should be at least 1 dimensional but received scalar");if(1!==i.rank)throw Error("Indices should be Tensor1D but received shape\n "+i.shape);if(1!==a.rank)throw Error("Segment ids should be Tensor1D but received shape\n "+a.shape);let o={data:r,indices:i,segmentIds:a};return Tn.a.runKernel(Tj.Z,o)}}),Object(T_.a)({stringNGrams_:function(e,t,n,r,i,a,o,s){let l=Object(TF.a)(e,"data","stringNGrams","string");if("string"!==l.dtype)throw Error("Data must be of datatype string");if(1!==l.shape.length)throw Error("Data must be a vector, saw: "+l.shape);let u=Object(TF.a)(t,"dataSplits","stringNGrams");if("int32"!==u.dtype)throw Error("Data splits must be of datatype int32");let c={separator:n,nGramWidths:r,leftPad:i,rightPad:a,padWidth:o,preserveShortSequences:s},p={data:l,dataSplits:u},d=Tn.a.runKernel(Tj.db,p,c);return{nGrams:d[0],nGramsSplits:d[1]}}}),Object(T_.a)({stringSplit_:function(e,t,n=!0){let r=Object(TF.a)(e,"input","stringSplit","string"),i=Object(TF.a)(t,"delimiter","stringSplit","string");if(1!==r.rank)throw Error("Input should be Tensor1D but received shape "+r.shape);if(0!==i.rank)throw Error("Delimiter should be a scalar but received shape "+i.shape);let a={skipEmpty:n},o={input:r,delimiter:i},s=Tn.a.runKernel(Tj.eb,o,a);return{indices:s[0],values:s[1],shape:s[2]}}}),Object(T_.a)({stringToHashBucketFast_:function(e,t){let n=Object(TF.a)(e,"input","stringToHashBucketFast","string"),r={numBuckets:t};if(t<=0)throw Error("Number of buckets must be at least 1");let i={input:n};return Tn.a.runKernel(Tj.fb,i,r)}});var wq=n(53);class wK{constructor(e){this.modelRunner=e}get inputs(){let e=this.modelRunner.getInputs();return this.convertTFLiteTensorInfos(e)}get outputs(){let e=this.modelRunner.getOutputs();return this.convertTFLiteTensorInfos(e)}predict(e,t){let n=this.modelRunner.getInputs(),r=this.modelRunner.getOutputs();if(e instanceof TT.a||Array.isArray(e)){let t;if(t=e instanceof TT.a?[e]:e,n.length!==t.length)throw Error(`The size of TFLite model inputs (${n.length}) does not match the size of the input tensors (${t.length})`);for(let e=0;e<n.length;e++)this.setModelInputFromTensor(n[e],t[e])}else{let t=Object.keys(e),r={};n.forEach(e=>{r[e.name]=e});let i=Object.keys(r);for(let n of(this.checkMapInputs(t,i),t))this.setModelInputFromTensor(r[n],e[n])}if(!this.modelRunner.infer())throw Error("Failed running inference");let i={};for(let e=0;e<r.length;e++){let t=r[e],n=t.data();switch(t.dataType){case"int8":case"int16":case"uint32":n=Int32Array.from(n);break;
4191case"float64":console.warn("WARNING: converting output tensor from 'float64' to 'float32'"),n=Float32Array.from(n)}let a=Object(TW.a)(n,this.getShapeFromTFLiteTensorInfo(t));i[t.name]=a}let a=Object.keys(i);return 1===a.length?i[a[0]]:i}execute(e,t){throw Error("execute() of TFLiteModel is not supported yet.")}getProfilingResults(){return this.modelRunner.getProfilingResults()}getProfilingSummary(){return this.modelRunner.getProfilingSummary()}setModelInputFromTensor(e,t){if("string"===t.dtype||"complex64"===t.dtype)throw Error(`Data type '${t.dtype}' not supported.`);let n=e.shape.split(",").map(e=>Number(e));if(!t.shape.every((e,t)=>-1===n[t]||n[t]===e))throw Error(`Input tensor shape mismatch: expect '${e.shape}', got '${t.shape.join(",")}'.`);switch(e.dataType){case"bool":case"int8":case"uint8":case"int16":case"uint32":case"int32":if("float32"===t.dtype)throw this.getDataTypeMismatchError(e.dataType,t.dtype);e.dataType!==t.dtype&&console.warn(`WARNING: converting '${t.dtype}' to '${e.dataType}'`);break;case"float32":case"float64":e.dataType!==t.dtype&&console.warn(`WARNING: convert
4191ing '${t.dtype}' to '${e.dataType}'`)}let r=e.data();switch(e.dataType){case"int8":r.set(Int8Array.from(t.dataSync()));break;case"uint8":case"bool":r.set(Uint8Array.from(t.dataSync()));break;case"int16":r.set(Int16Array.from(t.dataSync()));break;case"int32":r.set(Int32Array.from(t.dataSync()));break;case"uint32":r.set(Uint32Array.from(t.dataSync()));break;case"float32":r.set(Float32Array.from(t.dataSync()));break;case"float64":r.set(Float64Array.from(t.dataSync()))}}convertTFLiteTensorInfos(e){return e.map(e=>{let t=wY(e.dataType);return{name:e.name,shape:this.getShapeFromTFLiteTensorInfo(e),dtype:t}})}checkMapInputs(e,t){let n=e.filter(e=>!t.includes(e)),r=t.filter(t=>!e.includes(t));if(0===n.length&&0===r.length)return;let i=["The model input names don't match the model input names."];throw n.length>0&&i.push(`Names in input but missing in model: [${n}].`),r.length>0&&i.push(`Names in model but missing in inputs: [${r}].`),Error(i.join(" "))}getShapeFromTFLiteTensorInfo(e){return e.shape.split(",").map(e=>Number(e))}getDataTypeMismatchError(e,t){return Error(`Data type mismatch: input tensor expects '${e}', got '${t}'`)}}async function wX(e,t){return"string"==typeof e&&e.includes("tfhub.dev")&&e.includes("lite-model")&&!e.endsWith("?lite-format=tflite")&&(e+="?lite-format=tflite"),new wK(await wq.tfweb.TFLiteWebModelRunner.create(e,t))}function wY(e){let t;switch(e){case"float32":case"float64":t="float32";break;case"int8":case"uint8":case"int16":case"int32":case"uint32":t="int32";break;case"bool":t="bool"}return t}function wQ(e){let t=[];return e.forEach(e=>{t.push({className:e.getDisplayName()||e.getClassName(),probability:e.getScore()})}),t}let wJ=wq.tfweb.tflite_web_api.setWasmPath,wZ=wq.tfweb.tflite_web_api.getWasmFeatures;class w0{constructor(e){this.instance=e}cleanUp(){this.instance.cleanUp()}}async function w1(){return(await wq.tfweb.tflite_web_api.getWasmFeatures()).multiThreading?navigator.hardwareConcurrency/2:-1}class w2 extends w0{constructor(e){super(e),this.instance=e}static async create(e,t){let n=new wq.tfweb.ImageClassifierOptions;return t&&(void 0!==t.maxResults&&n.setMaxResults(t.maxResults),void 0!==t.scoreThreshold&&n.setScoreThreshold(t.scoreThreshold),void 0!==t.numThreads&&n.setNumThreads(t.numThreads)),t&&void 0!==t.numThreads||n.setNumThreads(await w1()),new w2(await wq.tfweb.ImageClassifier.create(e,n))}classify(e){let t=this.instance.classify(e);if(!t)return[];let n=[];return t.getClassificationsList().length>0&&(n=wQ(t.getClassificationsList()[0].getClassesList())),n}}!function(e){e[e.CATEGORY_MASK=1]="CATEGORY_MASK",e[e.CONFIDENCE_MASK=2]="CONFIDENCE_MASK",e[e.UNSPECIFIED=0]="UNSPECIFIED"}(d||(d={}));class w3 extends w0{constructor(e){super(e),this.instance=e}static async create(e,t){let n=new wq.tfweb.ImageSegmenterOptions;return t&&(t.outputType&&n.setOutputType(t.outputType),void 0!==t.numThreads&&n.setNumThreads(t.numThreads)),t&&void 0!==t.numThreads||n.setNumThreads(await w1()),new w3(await wq.tfweb.ImageSegmenter.create(e,n))}segment(e){let t=this.instance.segment(e);if(!t)return[];let n=[];return t.getSegmentationList().length>0&&t.getSegmentationList().forEach(e=>{let t=e.getColoredLabelsList().map(e=>({r:e.getR(),g:e.getG(),b:e.getB(),className:e.getClassName(),displayName:e.getDisplayName()}));n.push({width:e.getWidth(),height:e.getHeight(),categoryMask:e.getCategoryMask_asU8(),coloredLabels:t})}),n}}class w4 extends w0{constructor(e){super(e),this.instance=e}static async create(e,t){let n=new wq.tfweb.ObjectDetectorOptions;return t&&(void 0!==t.maxResults&&n.setMaxResults(t.maxResults),void 0!==t.scoreThreshold&&n.setScoreThreshold(t.scoreThreshold),void 0!==t.numThreads&&n.setNumThreads(t.numThreads)),t&&void 0!==t.numThreads||n.setNumThreads(await w1()),new w4(await wq.tfweb.ObjectDetector.create(e,n))}detect(e){let t=this.instance.detect(e);if(!t)return[];let n=[];return t.getDetectionsList().length>0&&t.getDetectionsList().forEach(e=>{let t=e.getBoundingBox(),r={originX:t.getOriginX(),originY:t.getOriginY(),width:t.getWidth(),height:t.getHeight()},i=wQ(e.getClassesList());n.push({boundingBox:r,classes:i}
4191)}),n}}let w6={inputTensorIndex:0,outputScoreTensorIndex:0,outputLabelTensorIndex:-1,inputTensorName:"INPUT",outputScoreTensorName:"OUTPUT_SCORE",outputLabelTensorName:"OUTPUT_LABEL"};class w5 extends w0{constructor(e){super(e),this.instance=e}static async create(e,t=w6){return new w5(await wq.tfweb.NLClassifier.create(e,t))}classify(e){return this.instance.classify(e).map(e=>({probability:e.score,className:e.className}))}}class w8 extends w0{constructor(e){super(e),this.instance=e}static async create(e,t){let n=new wq.tfweb.BertNLClassifierOptions;return t&&t.maxSeqLen&&n.setMaxSeqLen(t.maxSeqLen),new w8(await wq.tfweb.BertNLClassifier.create(e,n))}classify(e){return this.instance.classify(e).map(e=>({probability:e.score,className:e.className}))}}class w7 extends w0{constructor(e){super(e),this.instance=e}static async create(e){return new w7(await wq.tfweb.BertQuestionAnswerer.create(e))}answer(e,t){let n=this.instance.answer(e,t);return n?n.map(e=>({text:e.text,pos:e.pos})):[]}}n(664);var w9=function(e){return Object(G.h)("svg",{className:e.className,width:"12px",height:"19px",viewBox:"0 0 12 19",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(G.h)("title",null,"ic_pose"),Object(G.h)("desc",null,"Created with Sketch."),Object(G.h)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Object(G.h)("g",{transform:"translate(-34.000000, -29.000000)",stroke:"#FFFFFF"},Object(G.h)("g",{transform:"translate(30.000000, 29.000000)"},Object(G.h)("path",{d:"M12.0598779,6.17661436 L12.0598779,7.31561436 L12.0063159,7.32229601 C11.8642249,7.35419665 11.7618358,7.47665397 11.7618358,7.62792477 L11.6622909,11.628197 L11.6622909,11.6870246 L12.5980133,17.9031339 C12.6577402,18.2560991 12.3989234,18.6090643 12.0405616,18.6482827 C11.6821999,18.7071102 11.3238381,18.4521909 11.2840201,18.0992257 L10.3482977,11.9223347 C10.3283887,11.7458521 10.1691168,11.628197 9.98993592,11.628197 C9.83066402,11.628197 9.65148313,11.7654613 9.63157414,11.9223347 L8.69585173,18.0992257 C8.67594275,18.2757083 8.57639781,18.4325817 8.4370349,18.5306276 C8.29767198,18.6286735 8.1184911,18.687501 7.93931021,18.6482827 C7.58094843,18.5894551 7.3221316,18.2560991 7.38185856,17.9031339 L8.31758097,11.6674154 L8.31758097,11.6085878 L8.19812705,7.62792477 C8.19812705,7.49682341 8.11023496,7.38736418 7.99974205,7.3397396 L7.99926967,6.17661436 L12.0598779,6.17661436 Z",strokeWidth:"0.666666667",fill:"#FFFFFF",fillRule:"nonzero"}),Object(G.h)("path",{d:"M9.97002693,5.0395133 C11.1844752,5.0395133 12.1799245,4.05905442 12.1799245,2.86289457 C12.1799245,1.66673473 11.1844752,0.666666667 9.97002693,0.666666667 C8.7555787,0.666666667 7.76012932,1.64712555 7.76012932,2.8432854 C7.76012932,4.03944524 8.7555787,5.0395133 9.97002693,5.0395133 Z M9.97002693,1.31376953 C10.8261134,1.31376953 11.522928,2.00009075 11.522928,2.8432854 C11.522928,3.68648004 10.8261134,4.37280126 9.97002693,4.37280126 C9.11394047,4.37280126 8.41712591,3.68648004 8.41712591,2.8432854 C8.41712591,2.00009075 9.11394047,1.31376953 9.97002693,1.31376953 Z",strokeWidth:"0.666666667",fill:"#FFFFFF",fillRule:"nonzero"}),Object(G.h)("line",{x1:"12.5159402",y1:"6.66501779",x2:"14.3373627",y2:"11.6128468",strokeWidth:"1.66666667",strokeLinecap:"round"}),Object(G.h)("line",{x1:"5.57873854",y1:"6.66666667",x2:"7.46666667",y2:"11.6128468",strokeWidth:"1.66666667",strokeLinecap:"round",transform:"translate(6.522703, 9.139757) scale(-1, 1) translate(-6.522703, -9.139757) "})))))};function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach(function(t){L()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
4191if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return jr(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jr(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ji(e,t,n){return t=$()(t),A()(e,!function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return function(){return!!e}()}()?t.apply(e,n):Reflect.construct(t,n||[],$()(e).constructor))}var ja={front:{3:"201",4:"201",5:"212",6:"220",7:"207",9:"202",10:"218",11:"219",12:"219",13:"221",14:"221",15:"221",16:"214",17:"218",18:"219",19:"219",20:"219",21:"218",22:"214",25:"218",26:"214",27:"217",28:"213",29:"213",30:"213",31:"213",32:"213",33:"215",34:"216",37:"206",38:"218",39:"218",40:"214",41:"215",42:"216"},side:{3:"201",4:"201",5:"212",6:"225",8:"223",9:"209",11:"227",12:"227",18:"211",19:"211",20:"211",23:"224",28:"222",29:"222",30:"222",31:"222",32:"222",35:"209",36:"209",37:"206",38:"228",39:"228",40:"226",43:"226"}},jo={3:"There is no person in the photo or there is some body part",4:"Some part(s) of the human body is(are) absent in the photo",5:"The person in the photo stands far away from the camera",6:"The person stands too close to the camera",7:"The person stays sideways in the photo taken as a front one",8:"The person stays facing to the camera in the photo taken as a side one",9:"The person is in an uncertain position (e.g. mid turned) in any photo (front or side)",10:"The person stands backwards in the front photo",11:"The person bends the left hand or the elbow",12:"The person bends the right hand or the elbow",13:"The person lifts the left hand too high",14:"The person lifts the right hand too high. ",15:"The person lifts both hands too high or/and bends them on the elbow",16:"The distance between the person's legs is too small or too big",17:"The person tilts the head to any side in the front photo",18:"The person bends any of the hands or the elbow",19:"The person raises the hand(s) in a plane parallel to the plane of the photo",20:"The person stands in T-pose, pose close to T-pose or with clasped hands",21:"The person stands with the head tilted forward or backward",22:"The person bends the knee(s)",23:"The person looks into the camera when standing sideways on the side photo",24:"Multiple persons detected",25:"The person is not looking straight to the camera",26:"The person crosses its legs",27:"The person bends the body",28:"The body is not within the guides",29:"The body is not within the top guide",30:"The body is not within the bottom guide",31:"The body is not within the left guide",32:"The body is not within the right guide",33:"The arms are not open (too close to the body)",34:"The distance between the legs is too small",35:"[Side] Turn towards the camera (slightly)",36:"[Side] Turn against (away from) the camera (slightly)",37:"The legs are partly occluded (table/desk)",38:"[Side] Looking to the right-side",39:"[Side] Looking to the left-side",40:"The distance between the person's legs is too big",41:"[Softer] The arms are not open (too close to the body)",42:"[Softer] The distance between the legs is too small",43:"[Side] The legs are not aligned"},js=[3,4,37,5,6,10,7,38,39,27,9,28,29,30,31,32,16,40,34,42,26,22,33,41,11,12,13,14,15,18,19,20,21,25,17],jl=[38,3,4,37,5,6,20,8,9,35,28,29,30,31,32,36,43,16,11,12,18,19,23],ju=function(e){function t(e,r){var i;return E()(this,t),i=ji(this,t,[e,r]),L()(i,"$audio",Object(G.createRef)()),L()(i,"$widgetCamera",Object(G.createRef)()),L()(i,"$testAudio",Object(G.createRef)()),L()(i,"$videoGuide",Object(G.createRef)()),L()(i,"$outputCanvas",Object(G.createRef)()),L()(i,"filterRules",function(e){return Object.fromEntries(Object.entries(jo).filter(function(t){var n=F()(t,1)[0];return e.includes(Number(n))}))}),L()(i,"loadModels",w()(z.a.mark(function e(){var t;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=i.props.isTableFlow,i.userPose=new ec.Pose({locateFile:function(e){return"https://cdn.jsdelivr.net/npm/@mediapipe/pose@".concat(ec.VERSION,"/").concat(e)}}),i.userPose.setOptions({selfieMode:t,modelComplexity:1,smoothLandmarks:!0,enableSegmentation:!1,smoothSegmentation:!1,minDetectionConfidence:.45,minTrackingConfidence:.45}),i.checkInterval=setInterval(i.checkForTflite,100);case 4:case"end":return e.stop()}},e)}))),L()(i,"checkForTflite",w()(z.a.mark(function e(){return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i.tfliteLoaded||!k||!N){e.next=14;break}return i.tfliteLoaded=!0,e.next=4,ep.Mh("cpu");case 4:return e.next=6,ep.nh();case 6:return wJ("https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/"),e.next=10,wX("https://front-end-assets.3dlook.me/tflite-model/rules_lite_v34_2.tflite");case 10:i.rules=e.sent,clearInterval(i.checkInterval),i.userPose.onResults(i.onResults),setTimeout(function(){i.processFrame()},3e3);case 14:case"end":return e.stop()}},e)}
4191))),L()(i,"processFrame",w()(z.a.mark(function e(){var t;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.$outputCanvas.current,!i.video&&t&&t.getContext("2d").clearRect(0,0,t.width,t.height),!(ep.nh()&&i.video&&i.video.srcObject&&i.video.srcObject.active&&t)){e.next=16;break}return e.prev=4,t.width=i.video.clientWidth,t.height=i.video.clientHeight,e.next=9,i.userPose.send({image:i.video});case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),setTimeout(function(){return i.processFrame()},500);case 14:e.next=17;break;case 16:setTimeout(function(){return i.processFrame()},500);case 17:case"end":return e.stop()}},e,null,[[4,11]])}))),L()(i,"isGyroActive",function(){window.addEventListener("deviceorientation",function(e){null===e.beta||null===e.gamma?i.props.isTableFlow&&i.gyroDisabledMsg():window.ondeviceorientation=i.orientation},{once:!0})}),L()(i,"isGyroActiveIphone",function(){i.props.isTableFlow&&i.gyroDisabledMsg()}),L()(i,"gyroDisabledMsg",function(){(0,i.props.disableTableFlow)(),alert(i.is("Android")?"Oops!...\nTo continue using HANDS-FREE mode, youâll need to allow camera and motion sensors accesses in your browser site Settings!\nNOTE: Donât forget to RESTART browser ;)":"Oops!..\nTo continue using HANDS-FREE mode, you'll need to allow camera access in browser Settings!\nNOTE: Don't forget to RESTART browser ;)"),window.location.href="#/camera-mode-selection"}),L()(i,"iphoneGyroStart",function(){"function"==typeof DeviceOrientationEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(function(e){"granted"===e&&window.addEventListener("deviceorientation",i.orientation)}).catch(console.error):window.addEventListener("deviceorientation",i.orientation)}),L()(i,"startStream",w()(z.a.mark(function e(){return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i.startCamera(i.VIDEO_CONFIG,i.getUserDevices),i.props.isTableFlow||"side"!==i.props.type||i.setState({isGyroTimerAccess:!0});case 2:case"end":return e.stop()}},e)}))),L()(i,"startCamera",function(){var e=w()(z.a.mark(function e(t,n){var r;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.mediaDevices.getUserMedia(t);case 3:i.stream=e.sent,i.video.srcObject=i.stream,n&&n().catch(function(e){return console.err(e)}),e.next=22;break;case 8:if(e.prev=8,e.t0=e.catch(0),!i.is("Android")){e.next=19;break}return e.next=13,i.additionalCamerasCheck();case 13:return r=e.sent,e.next=16,i.camerasFilter(r);case 16:if(!e.sent){e.next=19;break}return e.abrupt("return");case 19:i.setState({isCameraAccess:!1}),i.$widgetCamera.current.classList.add("widget-camera--z-i-20"),i.$audio&&i.$audio.current.pause();case 22:return e.prev=22,i.setState({isButtonInit:!0}),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[0,8,22,25]])}));return function(t,n){return e.apply(this,arguments)}}()),L()(i,"computeRules",function(e){var t=i.props.type,n=void 0,r=void 0;if(void 0===e)(n=Array.from({length:41},function(e,t){return 0}))[0]=1;else{var a=e.map(function(e){return[e.x,e.y]}),o=ep.Ei(function(){var e=ep.tf(ep.ui(a),0),t=i.rules.predict(e);return[t["PartitionedCall:1"].dataSync(),t["PartitionedCall:0"].dataSync()]}),s=F()(o,2);if(n=s[0],r=s[1],"front"===t)for(var l=0,u=[25,26,27,28];l<u.length;l++)e[u[l]].visibility<.4&&(n[34]=1,[9,10,11,12].forEach(function(e){return r[e]=1}));else(e[25].visibility<.4&&e[26].visibility<.4||e[27].visibility<.4&&e[28].visibility<.4)&&(n[34]=1,[9,10,11,12].forEach(function(e){return r[e]=1}))}return[n,r]}),L()(i,"onResults",function(e){i.setState({isPoseResults:!0});var t=i.props.type,n="front"===t?i.frontRulesText:i.sideRulesText;if(i.userPose&&i.rules&&"undefined"!==e.poseLandmarks){var r,a,o=i.$outputCanvas.current,s=o.getContext("2d"),l=i.computeRules(e.poseLandmarks),u=F()(l,2);if(r=u[0],a=u[1],"undefined"!==r||"undefined"!==a){s.save(),s.clearRect(0,0,o.width,o.height),s.font="bold 14px Arial";var c=[],p="front"===t?js:i.sideRules;if(void 0===r);else{for(var d=0;d<r.length;d++)if(1===r[d]&&p.includes(d+3)){var f=d+3;c.push(L()({},f,n[f]))}c.sort(function(e,t){var n=Number(Object.keys(e)[0]),r=Number(Object.keys(t)[0]);return p.indexOf(n)-p.indexOf(r)}),i.setState({activeRtvRule:c.length?c[0]:null})}if(e.poseLandmarks){var h=[0,11,12,13,14,15,16,23,24,25,26,27,28],g="rgb(255,0,0)",b="rgb(0,255,0)",m=Object.fromEntries(h.map(function(e,t){return[e,a[t]]})),y=ec.POSE_CONNECTIONS.filter(function(e){var t=F()(e,2),n=t[0],r=t[1];return h.includes(n)&&h.includes(r)}),S=!!c[0]&&7==Object.keys(c[0])&&"front"===t,v=!!c[0]&&8==Object.keys(c[0])&&"side"===t,O=!!c[0]&&(38==Object.keys(c[0])||39==Object.keys(c[0]))&&"side"===t,x=!!c[0]&&5==Object.keys(c[0])||v||S||O;
4191y.forEach(function(t){var n,r=F()(t,2),i=r[0],a=r[1],o=x?g:(n=a,m[i]+m[n]>=1?g:b);Object(eu.drawConnectors)(s,e.poseLandmarks,[[i,a]],{visibilityMin:.15,color:o,lineWidth:10})});var I,N=jn(Array(h.length).keys());try{for(N.s();!(I=N.n()).done;){var k=I.value,T=h[k],w=a[k],j=x||1==w?g:b;Object(eu.drawLandmarks)(s,[e.poseLandmarks[T]],{visibilityMin:.15,color:j,fillColor:j,radius:7})}}catch(e){N.e(e)}finally{N.f()}}if(e.poseLandmarks){for(var _=[0,1,2,3,4,5,6,7,8,9,10],E=1,R=1,D=0,C=0,A=0;A<_.length;A++){var M=e.poseLandmarks[_[A]].x,$=e.poseLandmarks[_[A]].y;E=Math.min(E,M),R=Math.min(R,$),D=Math.max(D,M),C=Math.max(C,$)}D+=.05*(D-(E-=.05*(D-E))),C+=.25*(C-(R-=.95*(C-R))),E*=o.width,D*=o.width,R*=o.height;var U=(D+E)/2,P=((C*=o.height)+R)/2,B=.65*(D-E),W=.65*(C-R);s.filter="none",s.filter="blur(3px)",s.fillStyle="rgba(250,240,240,1)",s.beginPath(),s.ellipse(U,P,B,W,0,0,2*Math.PI),s.fill()}s.restore(),window.requestAnimationFrame(function(){return i.processFrame()})}}else console.log("Wait! poseLandmaker not loaded yet.")}),L()(i,"getUserDevices",function(){return navigator.mediaDevices.enumerateDevices().then(function(){var e=w()(z.a.mark(function e(t){var n,r;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=[],r=i.props.isTableFlow?"front":"back",t.forEach(function(e){"videoinput"===e.kind&&e.label.includes(r)&&n.push(e.deviceId)}),!i.is("Android")){e.next=7;break}return i.androidCameraStart(n),e.abrupt("return",Promise.resolve());case 7:n.length>1&&i.setState({camerasArr:n});case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())}),L()(i,"additionalCamerasCheck",function(){return navigator.mediaDevices.enumerateDevices().then(function(){var e=w()(z.a.mark(function e(t){var n;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],t.forEach(function(e,t){"videoinput"===e.kind&&e.label.includes("back")&&n.push(e.deviceId)}),e.abrupt("return",n);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())}),L()(i,"androidCameraStart",function(){var e=w()(z.a.mark(function e(t){var n;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i.setState({camerasArr:t,activeCamera:0,isButtonInit:!1}),n={video:{deviceId:t[0],width:{min:1920,ideal:2560,max:2560}},audio:!1},e.next=4,i.stream.getTracks().forEach(function(e){return e.stop()});case 4:i.startCamera(n);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),L()(i,"changeCamera",function(){var e=w()(z.a.mark(function e(t){var n,r;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={video:{deviceId:i.state.camerasArr[n=t.target.dataset.id],width:{min:1920,ideal:2560,max:2560}},audio:!1},e.next=5,i.stream.getTracks().forEach(function(e){return e.stop()});case 5:i.setState({activeCamera:n}),i.startCamera(r);case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),L()(i,"camerasFilter",function(){var e=w()(z.a.mark(function e(t){var n,r,a,o,s;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=!1,a=0;case 3:if(!(a<t.length)){e.next=19;break}return o={video:{deviceId:t[a],width:{min:1920,ideal:2560,max:2560}},audio:!1},e.prev=5,e.next=8,navigator.mediaDevices.getUserMedia(o);case 8:i.stream=e.sent,n.push(t[a]),r=!0,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),console.error(e.t0);case 16:a++,e.next=3;break;case 19:if(!r){e.next=25;break}return i.setState({camerasArr:n,activeCamera:0}),i.stream.getTracks().forEach(function(e){return e.stop()}),s={video:{deviceId:n[0],width:{min:1920,ideal:2560,max:2560}},audio:!1},i.startCamera(s),e.abrupt("return",!0);case 25:return e.abrupt("return",!1);case 26:case"end":return e.stop()}},e,null,[[5,13]])}));return function(t){return e.apply(this,arguments)}}()),L()(i,"orientation",function(e){var t=e.beta,n=e.gamma;setTimeout(function(){i.gyroscopePointerPosition(t),i.normalizeData(n,t)},50)}),L()(i,"takePhoto",w()(z.a.mark(function e(){var t,n;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.state.processing){e.next=2;break}return e.abrupt("return");case 2:try{t=i.stream.getVideoTracks()[0].getSettings(),n=document.createElement("canvas"),/SamsungBrowser\/(?!([1-9][1-9]|[2-9][0-9]))/i.test(navigator.userAgent)?(n.width=t.height,n.height=t.width):(n.width=t.width,n.height=t.height),n.getContext("2d").drawImage(i.video,0,0,n.width,n.height),window.addEventListener("deviceorientation",i.getDeviceCoordinates,{once:!0}),i.setState({processing:!0},function(){return n.toBlob(i.setPhoto)})}catch(e){console.error("Error: ".concat(e)),alert("Problems with photo. Please try again."),window.location.reload()}case 4:case"end":return e.stop()}},e)}))),L()(i,"setPhoto",function(){var e=w()(z.a.mark(function e(t){var r,a,o,s,l,u,c,p,d;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(r=i.props).type,o=r.isTableFlow,s=r.isSidePhotoPoseValidated,l=r.
4191isFrontPhotoPoseValidated,u=i.state.isPoseResults,e.prev=2,!(i.is("Android")&&es()>=81)){e.next=9;break}return e.next=6,eo(t);case 6:c=e.sent,e.next=17;break;case 9:return e.t0=ea,e.t1=t,e.next=13,ei(t);case 13:return e.t2=e.sent,e.next=16,(0,e.t0)(e.t1,e.t2);case 16:c=e.sent;case 17:i.setState({processing:!1}),i.setState({showValidationLandmarks:!1}),p=("front"===a?"takeFront":"takeSide")+(o?"_byMyself":"_friendMode"),d=n(665).version,i.sendEvent("".concat(p),{is_Validated:u,sdk_version:d}),"side"===a&&i.sendEvent("".concat(o?"byMyself":"friendMode","_flow_completed"),{is_Validated:u,sdk_version:d}),i.removeAudioEventListeners(),o?i.video.play():i.stream.getVideoTracks()[0].stop(),"front"===a?(l(u),i.setFrontPhoto(c)):(i.setState({isLastPhoto:!0}),s(u),i.setSidePhoto(c)),e.next=35;break;case 30:e.prev=30,e.t3=e.catch(2),console.error("Error: ".concat(e.t3)),alert("Problems with photo. Please try again."),window.location.reload();case 35:case"end":return e.stop()}},e,null,[[2,30]])}));return function(t){return e.apply(this,arguments)}}()),L()(i,"setFrontPhoto",function(){var e=w()(z.a.mark(function e(t){var n,r;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.$audio.current,i.removeAudioEventListeners(),r=i.specifyAudioTrack("005"),i.setState({activeAudioTrack:r,activeAudioTrackIndex:6}),i.props.saveFront(t),n.src!==r&&(n.src=r),e.next=8,new Promise(function(e){return setTimeout(e,50)});case 8:return e.next=10,el(n,r,function(){return i.playAudioInstructions()},{playbackRate:i.playSpeed});case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),L()(i,"setSidePhoto",function(){var e=w()(z.a.mark(function e(t){var n,r;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return window.removeEventListener("deviceorientation",i.orientation),i.removeAudioEventListeners(),n=i.specifyAudioTrack("018"),i.setState({activeAudioTrack:n,isGyroTimerAccess:!1}),r=i.$audio.current,e.next=7,el(r,n,function(){return i.props.turnOffCamera()},{playbackRate:i.playSpeed});case 7:i.props.saveSide(t);case 8:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),L()(i,"sendEvent",function(e,t){i.state.isMixPanelInit||window.mixpanel||(!function(e,t){var n,r,i,a;t.__SV||(window.mixpanel=t,t._i=[],t.init=function(e,n,r){function o(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var s=t;for(void 0!==r?s=t[r]=[]:r="mixpanel",s.people=s.people||[],s.toString=function(e){var t="mixpanel";return"mixpanel"!==r&&(t+="."+r),e||(t+=" (stub)"),t},s.people.toString=function(){return s.toString(1)+".people (stub)"},i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),a=0;a<i.length;a++)o(s,i[a]);var l="set set_once union unset remove delete".split(" ");s.get_group=function(){function e(e){t[e]=function(){call2_args=arguments,call2=[e].concat(Array.prototype.slice.call(call2_args,0)),s.push([n,call2])}}for(var t={},n=["get_group"].concat(Array.prototype.slice.call(arguments,0)),r=0;r<l.length;r++)e(l[r]);return t},t._i.push([e,n,r])},t.__SV=1.2,(n=e.createElement("script")).type="text/javascript",n.async=!0,n.src="undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",(r=e.getElementsByTagName("script")[0]).parentNode.insertBefore(n,r))}(document,window.mixpanel||[]),mixpanel.init("e69c796a69970dd54394e5554165286f"),i.setState({isMixPanelInit:!0})),mixpanel.track(e,t)}),L()(i,"retryPhoto",function(){i.state.imgURI&&i.setState({imgURI:null,processing:!1},i.startStream)}),L()(i,"processing",function(e){var t=i.state.processing,n=i.props.isTableFlow;if(t&&!n)return e}),L()(i,"normalizeData",function(e,t){var n=i.props.isTableFlow,r=i.state,a=r.isGyroTimerAccess,o=r.is
4191FirstAudio,s=r.isLastPhoto;i.state.processing||(i.b=Math.round(t),i.g=Math.round(e),i.setState({coordinates:{g:i.g,b:i.b}}),i.rotY+=(i.g-i.rotY)/5,i.rotX+=(i.b-i.rotX)/5,i.b<75||i.b>105?(i.gyroTimer&&i.clearGyroTimer(),o||s||!i.$audio.current||i.$audio.current.pause(),i.removeAudioEventListeners(),n?(i.video&&i.video.play(),i.setState({info:!0,activeAudioTrackIndex:0,showValidationLandmarks:!1})):i.setState({info:!0})):(a&&!i.gyroTimer&&i.startGyroTimer(),i.setState({info:!1})))}),L()(i,"gyroscopePointerPosition",function(e){var t=360*e/180,n=t;return t<0?n=0:t>360&&(n=360),void i.setState({gyroscopePosition:n})}),L()(i,"specifyAudioTrack",function(e){var t=i.props.audio;return"".concat(i.audioUrl,"/").concat(t.lang,"/").concat(t.gender,"/").concat(e,".mp3")}),L()(i,"playFirstAudio",w()(z.a.mark(function e(){var t,n;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=i.$audio.current,(n=i.props.onClickDone)&&n(),i.setState({activeAudioTrack:i.specifyAudioTrack("001")}),i.setState({tapScreen:!1}),t.load(),t.play(),i.$audio.current.playbackRate=i.playSpeed,t.addEventListener("ended",i.playSecondAudio,{once:!0});case 9:case"end":return e.stop()}},e)}))),L()(i,"playSecondAudio",function(){var e=i.$audio.current;i.setState({activeAudioTrack:i.specifyAudioTrack("002")}),e.load(),e.play(),i.$audio.current.playbackRate=i.playSpeed,e.addEventListener("ended",function(){i.setState({isFirstAudio:!1,isGyroTimerAccess:!0,activeAudioTrackIndex:2})},{once:!0})}),L()(i,"switchSpeakerInstructions",function(){i.setState(function(e){return jt(jt({},e),{},{showSwitchSpeakerGuide:!e.showSwitchSpeakerGuide})})}),L()(i,"playTestAudio",function(){i.$testAudio.current.play()}),L()(i,"startGyroTimer",function(){var e=i.props.type,t=i.state.activeAudioTrackIndex;i.setState({activeAudioTrackIndex:"front"===e?2:t}),i.removeAudioEventListeners(),i.gyroTimer=setTimeout(i.playSuccessGyroAudio,100)}),L()(i,"clearGyroTimer",function(){clearTimeout(i.gyroTimer),i.gyroTimer=null,i.removeAudioEventListeners()}),L()(i,"playSuccessGyroAudio",w()(z.a.mark(function e(){var t,n,r;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.$audio.current,n=i.props.type,i.state.activeAudioTrackIndex,i.removeAudioEventListeners(),r=i.specifyAudioTrack("004"),i.setState({activeAudioTrack:i.specifyAudioTrack("004"),activeAudioTrackIndex:"front"===n?2:6}),t.load(),t.play(),t.playbackRate=i.playSpeed,e.next=11,el(t,r,function(){return i.playAudioInstructions()},{playbackRate:i.playSpeed});case 11:case"end":return e.stop()}},e)}))),L()(i,"getNextTrack",function(e,t,n,r){if(!i.state.processing&&null===r&&("front"===t&&6===e||"side"===t&&9===e))return{track:i.specifyAudioTrack("shutter-sound"),index:e,mode:"photo"};if(null!==r&&("front"===t&&e>=5||"side"===t&&e>=8)){var a=Object.keys(r)[0];return{track:i.specifyAudioTrack(ja[t][a]),index:"front"===t?5:8,mode:"rule"}}return{track:i.specifyAudioTrack({2:"002",3:"003",4:"017",5:"012",6:"015",7:"014",8:"016",9:"015"}[e+1]),index:e+1,mode:"general"}}),L()(i,"playAudioInstructions",w()(z.a.mark(function e(){var t,n,r,a,o,s,l,u,c,p,d;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(t=i.state).activeAudioTrackIndex,r=t.activeRtvRule,o=(a=i.props).type,s=a.audio,l=i.$audio.current){e.next=5;break}return e.abrupt("return");case 5:if(c=(u=i.getNextTrack(n,o,s,r)).track,p=u.index,d=u.mode,i.setState({activeAudioTrack:c,activeAudioTrackIndex:p}),"photo"!==d){e.next=15;break}if(!i.state.processing&&!i.shutterPending){e.next=10;break}return e.abrupt("return");case 10:return i.video.pause(),i.shutterPending=!0,e.next=14,el(l,c,function(){i.takePhoto(),i.shutterPending=!1},{playbackRate:i.playSpeed});case 14:return e.abrupt("return");case 15:return i.removeAudioEventListeners(),"general"===d&&setTimeout(function(){i.setState({showValidationLandmarks:!0})},6e3),"front"===o&&3===n&&setTimeout(function(){return i.setState({showValidationLandmarks:!0})},3e3),e.next=20,el(l,c,function(){i.playAudioInstructions()},{playbackRate:i.playSpeed});case 20:case"end":return e.stop()}},e)}
4191))),L()(i,"setInstructionsListener",function(){var e=i.$audio.current;if(!e._hasPlayAudioListener){var t=function(){i.playAudioInstructions(),e._hasPlayAudioListener=!1,e.removeEventListener("ended",t)};e.addEventListener("ended",t),e._hasPlayAudioListener=!0}}),L()(i,"removeAudioEventListeners",function(){var e=i.$audio.current;e&&(e.removeEventListener("ended",i.playAudioInstructions,{once:!0}),e.removeEventListener("ended",i.takePhoto,{once:!0}))}),L()(i,"getDeviceCoordinates",function(e){i.props.setDeviceCoordinates;var t=e.beta,n=e.gamma,r=e.alpha;jt(jt(jt({},t&&{betaX:t}),n&&{gammaY:n}),r&&{alphaZ:r})}),i.state={imgURI:null,processing:!1,info:!1,isCameraAccess:!0,camerasArr:[],activeCamera:-1,gyroscopePosition:180,isButtonInit:!1,tapScreen:!0,isPoseResults:!1,isMixPanelInit:!1,activeAudioTrack:null,activeAudioTrackIndex:0,activeAudioRtvRule:null,activeRtvRule:null,showValidationLandmarks:!1,isGyroTimerAccess:!1,isFirstAudio:!0,isLastPhoto:!1,showSwitchSpeakerGuide:!1,coordinates:null},i.gyroTimer=null,i.playSpeed=1,i.rotX=0,i.rotY=0,i.shutterPending=null,i.cameraType=e.isTableFlow?"user":"environment",i.flowType=e.isTableFlow?"selfMode":"friendMode",i.audioUrl=e.isTableFlow?e.audioUrl:e.audioUrl+"/friend",i.assetUrl=function(e){return"https://front-end-assets.3dlook.me/pose-validation/images/".concat(e)},i.sideRules=i.props.isTableFlow?jl:jl.map(function(e){return 38===e?39:e}),i.VIDEO_CONFIG={audio:!1,video:{facingMode:i.cameraType,width:{min:1920,ideal:2560,max:2560}}},i.rules=null,i.tfliteLoaded=!1,i.checkInterval=null,i.frontRulesText=void 0,i.sideRulesText=void 0,i}return P()(t,e),D()(t,[{key:"componentDidMount",value:function(){var e=w()(z.a.mark(function e(){var t,n,r=this;return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.frontRulesText=this.filterRules(js),this.sideRulesText=this.filterRules(this.sideRules),e.next=4,this.loadModels();case 4:this.setState({width:document.body.clientWidth,height:document.body.clientHeight},this.startStream),"function"==typeof DeviceOrientationEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(function(e){"granted"===e?window.addEventListener("deviceorientation",r.orientation):r.isGyroActiveIphone()}).catch(function(e){return console.error(e)}):this.isGyroActive(),void 0!==document.hidden?(t="hidden",n="visibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",n="webkitvisibilitychange"),this.handleVisibilityChange=w()(z.a.mark(function e(){return z.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!document[t]){e.next=3;break}return e.next=3,window.location.reload();case 3:case"end":return e.stop()}},e)})),document.addEventListener(n,this.handleVisibilityChange);case 9:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){this.stream&&this.stream.getTracks().forEach(function(e){return e.stop()})}},{key:"before",value:function(e){var t=this.state,n=t.imgURI,r=t.processing;if(!n&&!r)return e}},{key:"is",value:function(e){var t=navigator.userAgent;return"iOS"===e?t.includes("iPhone")||t.includes("Mac OS"):"Android"===e&&(t.includes("Android")||t.includes("Linux"))}},{key:"render",value:function(){var e=this,t=this.state,n=t.info,r=t.camerasArr,i=t.activeCamera,a=t.gyroscopePosition,o=t.activeAudioTrack,s=t.activeAudioTrackIndex,l=t.tapScreen,u=t.isLastPhoto,c=t.
4191isCameraAccess,p=t.showSwitchSpeakerGuide,d=t.isPoseResults,f=t.showValidationLandmarks,h=(t.coordinates,this.props),g=h.type,b=void 0===g?"front":g,m=h.isTableFlow,y=void 0!==m&&m;return Object(G.h)("div",{ref:this.$widgetCamera,className:H()("widget-camera",{"widget-camera--table-flow":y,"widget-camera--z-i-25":p})},c?null:Object(G.h)(er,{isAndroid:this.is("Android")}),Object(G.h)(G.Fragment,null,Object(G.h)(w9,{className:"widget-camera__top-icon"}),Object(G.h)("audio",{ref:this.$audio,preload:"auto"},Object(G.h)("source",{src:o,type:"audio/mp3"}))),l&&"front"===b?Object(G.h)("div",{className:"widget-camera__tap-screen"},Object(G.h)("p",{className:"widget-camera__tap-screen-text"},"To use voice instructions ",Object(G.h)("br",null)," please check that the sound ",Object(G.h)("br",null)," ",Object(G.h)("b",null,"is turned on.")),Object(G.h)("button",{className:H()("widget-camera__tap-screen-voice-check",{"widget-camera__tap-screen-voice-check--ios":!this.is("Android")}),onClick:this.playTestAudio},Object(G.h)("img",{className:"widget-camera__tap-screen-img",src:this.assetUrl("sound.png"),alt:"sound-img"})),Object(G.h)("audio",{ref:this.$testAudio,preload:"auto"},Object(G.h)("source",{src:"https://front-end-assets.3dlook.me/pose-validation/audio/sound-check.mp3",type:"audio/mp3"})),this.is("Android")?null:Object(G.h)("div",{className:"widget-camera__tap-screen--low-sound-text"},"Also check the speaker ",Object(G.h)("br",null)," on your phone.",Object(G.h)("button",{className:"widget-camera__tap-screen--tutorial",type:"button",onClick:this.switchSpeakerInstructions},Object(G.h)("span",{class:"icon"},"i"),Object(G.h)("span",{class:"label"},"Tutorial")),p?Object(G.h)("div",{className:"widget-camera__tap-screen-speaker-guide"},Object(G.h)("div",{className:"widget-camera__tap-screen-speaker-guide--header"},Object(G.h)("button",{onClick:this.switchSpeakerInstructions},Object(G.h)("img",{src:this.assetUrl("close-icon.svg"),alt:"close-button"}))),Object(G.h)("video",{ref:this.$videoGuide,muted:!0,preload:"auto",playsInline:!0,autoPlay:!0,src:this.assetUrl("speaker_guide.mp4"),alt:"switchSpeakerInstructions"})):null),Object(G.h)("button",{className:"widget-camera__button widget-camera__tap-screen-button",type:"button",onClick:this.playFirstAudio},"Let's Start")):null,Object(G.h)("div",{className:"widget-camera__title"},"".concat(b," photo")),Object(G.h)("div",{className:"widget-camera__video-wrapper"},Object(G.h)("canvas",{ref:this.$outputCanvas,className:H()("widget-camera__output_canvas",{"widget-camera__output_canvas--warning":n||!f}),id:"output_canvas"}),(!d||!ep.nh())&&s>4&&f?Object(G.h)("div",{className:"widget-camera__validation-warning"},"Real-time pose detection isn't available due to device or connection issues. Please check your connection and try again or use a newer device.",Object(G.h)("img",{className:"widget-camera__validation-warning-icon",src:this.assetUrl("warning.svg"),alt:"warningIcon"})):null,Object(G.h)("video",{crossOrigin:"anonymous",controls:!1,controlsList:!1,muted:!0,ref:function(t){return e.video=t},playsinline:!0,autoPlay:!0,className:H()("widget-camera-video")})),",",this.processing(Object(G.h)("p",{className:H()("widget-camera-processing")},"Processing...")),r.length>1?Object(G.h)("ul",{className:"widget-camera__cameras"},r.map(function(t,n){return Object(G.h)("li",{className:H()("widget-camera__cameras-btn-wrap",{"widget-camera__cameras-btn-wrap--active":+n==+i})},Object(G.h)("button",{type:"button","data-id":n,onClick:e.changeCamera,className:"widget-camera__cameras-btn"},n+1))})):null,y?Object(G.h)(Z,{gyroscopePosition:a,isLastPhoto:u,info:n,type:b}):Object(G.h)(G.Fragment,null,Object(G.h)(Y,{gyroscopePosition:a,isLastPhoto:u,info:n,type:b})))}}])}(G.Component);ju.defaultProps={isTableFlow:!0,audioUrl:"https://front-end-assets.3dlook.me/pose-validation/audio",audio:{lang:"us",gender:"male"}},t.default=ju}])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.