/home/tuzdhajd/ablacktime.com/wp-content/plugins/nicepage/editor/assets/app/ai.js
!function(t){function e(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:false,exports:{}};return t[a].call(s.exports,s,s.exports,e),s.l=true,s.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,getter){e.o(t,n)||Object.defineProperty(t,n,{configurable:false,enumerable:true,get:getter})},e.n=function(t){var getter=t&&t.__esModule?function e(){return t.default}:function e(){return t};return e.d(getter,"a",getter),getter},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/Content/BundledScripts/",e(e.s=401)}([function(t,e,n){"use strict";var a=n(404),s=n(417),i=n(286);n.d(e,"a",(function(){return i.a})),n.d(e,"b",(function(){return i.b})),n.d(e,"c",(function(){return i.c})),n.d(e,"d",(function(){return i.d})),n.d(e,"e",(function(){return i.e})),n.d(e,"f",(function(){return i.f})),n.d(e,"g",(function(){return i.g})),n.d(e,"h",(function(){return i.h})),n.d(e,"i",(function(){return i.i})),n.d(e,"j",(function(){return i.j})),n.d(e,"k",(function(){return i.k})),n.d(e,"l",(function(){return i.l})),n.d(e,"m",(function(){return i.m})),n.d(e,"n",(function(){return i.n})),n.d(e,"o",(function(){return i.o})),n.d(e,"p",(function(){return i.p})),n.d(e,"q",(function(){return i.q})),n.d(e,"r",(function(){return i.r})),n.d(e,"s",(function(){return i.s})),n.d(e,"t",(function(){return i.t})),n.d(e,"u",(function(){return i.u})),n.d(e,"v",(function(){return i.v})),n.d(e,"w",(function(){return i.w})),n.d(e,"x",(function(){return i.x})),n.d(e,"y",(function(){return i.y})),n.d(e,"z",(function(){return i.z})),n.d(e,"A",(function(){return i.A})),n.d(e,"B",(function(){return i.B})),n.d(e,"C",(function(){return i.C})),n.d(e,"D",(function(){return i.D})),n.d(e,"E",(function(){return i.E})),n.d(e,"F",(function(){return i.F})),n.d(e,"G",(function(){return i.G})),n.d(e,"H",(function(){return i.H})),n.d(e,"I",(function(){return i.I})),n.d(e,"J",(function(){return i.J})),n.d(e,"K",(function(){return i.K})),n.d(e,"L",(function(){return i.L})),n.d(e,"M",(function(){return i.M})),n.d(e,"N",(function(){return i.N})),n.d(e,"O",(function(){return i.O})),n.d(e,"P",(function(){return i.P})),n.d(e,"Q",(function(){return i.Q})),n.d(e,"R",(function(){return i.R})),n.d(e,"S",(function(){return i.S})),n.d(e,"T",(function(){return i.T})),n.d(e,"U",(function(){return i.U})),n.d(e,"V",(function(){return i.V})),n.d(e,"W",(function(){return i.W})),n.d(e,"X",(function(){return i.X})),n.d(e,"Y",(function(){return i.Y})),n.d(e,"Z",(function(){return i.Z})),n.d(e,"_0",(function(){return i._0})),n.d(e,"_1",(function(){return i._1})),n.d(e,"_2",(function(){return i._2})),n.d(e,"_3",(function(){return i._3})),n.d(e,"_4",(function(){return i._4})),n.d(e,"_5",(function(){return i._5})),n.d(e,"_6",(function(){return i._6})),n.d(e,"_7",(function(){return i._7})),n.d(e,"_8",(function(){return i._8})),n.d(e,"_9",(function(){return i._9})),n.d(e,"_10",(function(){return i._10})),n.d(e,"_11",(function(){return i._11})),n.d(e,"_12",(function(){return i._12})),n.d(e,"_13",(function(){return i._13})),n.d(e,"_14",(function(){return i._14})),n.d(e,"_15",(function(){return i._15})),n.d(e,"_16",(function(){return i._16})),n.d(e,"_17",(function(){return i._17})),n.d(e,"_18",(function(){return i._18})),n.d(e,"_19",(function(){return i._19})),n.d(e,"_20",(function(){return i._20})),n.d(e,"_21",(function(){return i._21})),n.d(e,"_22",(function(){return i._22})),n.d(e,"_23",(function(){return i._23})),n.d(e,"_24",(function(){return i._24})),n.d(e,"_25",(function(){return i._25})),n.d(e,"_26",(function(){return i._26})),n.d(e,"_27",(function(){return i._27})),n.d(e,"_28",(function(){return i._28})),n.d(e,"_29",(function(){return i._29})),n.d(e,"_30",(function(){return i._30})),n.d(e,"_31",(function(){return i._31})),n.d(e,"_32",(function(){return i._32})),n.d(e,"_33",(function(){return i._33})),n.d(e,"_34",(function(){return i._34})),n.d(e,"_35",(function(){return i._35})),n.d(e,"_36",(function(){return i._36})),n.d(e,"_37",(function(){return i._37})),n.d(e,"_38",(function(){return i._38})),n.d(e,"_39",(function(){return i._39})),n.d(e,"_40",(function(){return i._40})),n.d(e,"_41",(function(){return i._41})),n.d(e,"_42",(function(){return i._42})),n.d(e,"_43",(function(){return i._43})),n.d(e,"_44",(function(){return i._44})),n.d(e,"_45",(function(){return i._45})),n.d(e,"_46",(function(){return i._46})),n.d(e,"_47",(function(){return i._47})),n.d(e,"_48",(function(){return i._48})),n.d(e,"_49",(function(){return i._49})),n.d(e,"_50",(function(){return i._50})),n.d(e,"_51",(function(){return i._51})),n.d(e,"_52",(function(){return i._52})),n.d(e,"_53",(function(){return i._53})),n.d(e,"_54",(function(){return i._54})),n.d(e,"_55",(function(){return i._55})),n.d(e,"_56",(function(){return i._56})),n.d(e,"_57",(function(){return i._57})),n.d(e,"_58",(function(){return i._58})),n.d(e,"_59",(function(){return i._59})),n.d(e,"_60",(function(){return i._60})),n.d(e,"_61",(function(){return i._61})),n.d(e,"_62",(function(){return i._62})),n.d(e,"_63",(function(){return i._63})),n.d(e,"_64",(function(){return i._64})),n.d(e,"_65",(function(){return i._65})),n.d(e,"_66",(function(){return i._66})),n.d(e,"_67",(function(){return i._67})),n.d(e,"_68",(function(){return i._68})),n.d(e,"_69",(function(){return i._69})),n.d(e,"_70",(function(){return i._70})),n.d(e,"_71",(function(){return i._71})),n.d(e,"_72",(function(){return i._72})),n.d(e,"_73",(function(){return i._73})),n.d(e,"_74",(function(){return i._74})),n.d(e,"_75",(function(){return i._75})),n.d(e,"_76",(function(){return i._76})),n.d(e,"_77",(function(){return i._77})),n.d(e,"_78",(function(){return i._78})),n.d(e,"_79",(function(){return i._79})),n.d(e,"_80",(function(){return i._80})),n.d(e,"_81",(function(){return i._81})),n.d(e,"_82",(function(){return i._82})),n.d(e,"_83",(function(){return i._83})),n.d(e,"_84",(function(){return i._84})),n.d(e,"_85",(function(){return i._85})),n.d(e,"_86",(function(){return i._86})),n.d(e,"_87",(function(){return i._87})),n.d(e,"_88",(function(){return i._88})),n.d(e,"_89",(function(){return i._89})),n.d(e,"_90",(function(){return i._90})),n.d(e,"_91",(function(){return i._91})),n.d(e,"_92",(function(){return i._92})),n.d(e,"_93",(function(){return i._93})),n.d(e,"_94",(function(){return i._94})),n.d(e,"_95",(function(){return i._95})),n.d(e,"_96",(function(){return i._96})),n.d(e,"_97",(function(){return i._97})),n.d(e,"_98",(function(){return i._98})),n.d(e,"_99",(function(){return i._99})),n.d(e,"_100",(function(){return i._100})),n.d(e,"_101",(function(){return i._101})),n.d(e,"_102",(function(){return i._102})),n.d(e,"_103",(function(){return i._103})),n.d(e,"_104",(function(){return i._104})),n.d(e,"_105",(function(){return i._105})),n.d(e,"_106",(function(){return i._106})),n.d(e,"_107",(function(){return i._107})),n.d(e,"_108",(function(){return i._108})),n.d(e,"_109",(function(){return i._109})),n.d(e,"_110",(function(){return i._110})),n.d(e,"_111",(function(){return i._111})),n.d(e,"_112",(function(){return i._112})),n.d(e,"_113",(function(){return i._113})),n.d(e,"_114",(function(){return i._114})),n.d(e,"_115",(function(){return i._115})),n.d(e,"_116",(function(){return i._116})),n.d(e,"_117",(function(){return i._117})),n.d(e,"_118",(function(){return i._118})),n.d(e,"_119",(function(){return i._119})),n.d(e,"_120",(function(){return i._120})),n.d(e,"_121",(function(){return i._121})),n.d(e,"_122",(function(){return i._122})),n.d(e,"_123",(function(){return i._123})),n.d(e,"_124",(function(){return i._124})),n.d(e,"_125",(function(){return i._125})),n.d(e,"_126",(function(){return i._126})),n.d(e,"_127",(function(){return i._127})),n.d(e,"_128",(function(){return i._128})),n.d(e,"_129",(function(){return i._129})),n.d(e,"_130",(function(){return i._130})),n.d(e,"_131",(function(){return i._131})),n.d(e,"_132",(function(){return i._132})),n.d(e,"_133",(function(){return i._133})),n.d(e,"_134",(function(){return i._134})),n.d(e,"_135",(function(){return i._135})),n.d(e,"_136",(function(){return i._136})),n.d(e,"_137",(function(){return i._137})),n.d(e,"_138",(function(){return i._138})),n.d(e,"_139",(function(){return i._139})),n.d(e,"_140",(function(){return i._140})),n.d(e,"_141",(function(){return i._141})),n.d(e,"_142",(function(){return i._142})),n.d(e,"_143",(function(){return i._143})),n.d(e,"_144",(function(){return i._144})),n.d(e,"_145",(function(){return i._145})),n.d(e,"_146",(function(){return i._146})),n.d(e,"_147",(function(){return i._147})),n.d(e,"_148",(function(){return i._148})),n.d(e,"_149",(function(){return i._149})),n.d(e,"_150",(function(){return i._150})),n.d(e,"_151",(function(){return i._151})),n.d(e,"_152",(function(){return i._152})),n.d(e,"_153",(function(){return i._153})),n.d(e,"_154",(function(){return i._154})),n.d(e,"_155",(function(){return i._155})),n.d(e,"_156",(function(){return i._156})),n.d(e,"_157",(function(){return i._157})),n.d(e,"_158",(function(){return i._158})),n.d(e,"_159",(function(){return i._159})),n.d(e,"_160",(function(){return i._160})),n.d(e,"_161",(function(){return i._161})),n.d(e,"_162",(function(){return i._162})),n.d(e,"_163",(function(){return i._163})),n.d(e,"_164",(function(){return i._164})),n.d(e,"_165",(function(){return i._165})),n.d(e,"_166",(function(){return i._166})),n.d(e,"_167",(function(){return i._167})),n.d(e,"_168",(function(){return i._168})),n.d(e,"_169",(function(){return i._169})),n.d(e,"_170",(function(){return i._170})),n.d(e,"_171",(function(){return i._171})),n.d(e,"_172",(function(){return i._172})),n.d(e,"_173",(function(){return i._173})),n.d(e,"_174",(function(){return i._174})),n.d(e,"_175",(function(){return i._175})),n.d(e,"_176",(function(){return i._176})),n.d(e,"_177",(function(){return i._177})),n.d(e,"_178",(function(){return i._178})),n.d(e,"_179",(function(){return i._179})),n.d(e,"_180",(function(){return i._180})),n.d(e,"_181",(function(){return i._181})),n.d(e,"_182",(function(){return i._182})),n.d(e,"_183",(function(){return i._183})),n.d(e,"_184",(function(){return i._184})),n.d(e,"_185",(function(){return i._185})),n.d(e,"_186",(function(){return i._186})),n.d(e,"_187",(function(){return i._187})),n.d(e,"_188",(function(){return i._188})),n.d(e,"_189",(function(){return i._189})),n.d(e,"_190",(function(){return i._190})),n.d(e,"_191",(function(){return i._191})),n.d(e,"_192",(function(){return i._192})),n.d(e,"_193",(function(){return i._193})),n.d(e,"_194",(function(){return i._194})),n.d(e,"_195",(function(){return i._195})),n.d(e,"_196",(function(){return i._196})),n.d(e,"_197",(function(){return i._197})),n.d(e,"_198",(function(){return i._198})),n.d(e,"_199",(function(){return i._199})),n.d(e,"_200",(function(){return i._200})),n.d(e,"_201",(function(){return i._201})),n.d(e,"_202",(function(){return i._202})),n.d(e,"_203",(function(){return i._203})),n.d(e,"_204",(function(){return i._204})),n.d(e,"_205",(function(){return i._205})),n.d(e,"_206",(function(){return i._206})),n.d(e,"_207",(function(){return i._207})),n.d(e,"_208",(function(){return i._208})),n.d(e,"_209",(function(){return i._209})),n.d(e,"_210",(function(){return i._210})),n.d(e,"_211",(function(){return i._211})),n.d(e,"_212",(function(){return i._212})),n.d(e,"_213",(function(){return i._213})),n.d(e,"_214",(function(){return i._214})),n.d(e,"_215",(function(){return i._215})),n.d(e,"_216",(function(){return i._216})),n.d(e,"_217",(function(){return i._217})),n.d(e,"_218",(function(){return i._218})),n.d(e,"_219",(function(){return i._219})),n.d(e,"_220",(function(){return i._220})),n.d(e,"_221",(function(){return i._221})),n.d(e,"_222",(function(){return i._222})),n.d(e,"_223",(function(){return i._223})),n.d(e,"_224",(function(){return i._224})),n.d(e,"_225",(function(){return i._225})),n.d(e,"_226",(function(){return i._226})),n.d(e,"_227",(function(){return i._227})),n.d(e,"_228",(function(){return i._228})),n.d(e,"_229",(function(){return i._229})),n.d(e,"_230",(function(){return i._230})),n.d(e,"_231",(function(){return i._231})),n.d(e,"_232",(function(){return i._232})),n.d(e,"_233",(function(){return i._233})),n.d(e,"_234",(function(){return i._234})),n.d(e,"_235",(function(){return i._235})),n.d(e,"_236",(function(){return i._236})),n.d(e,"_237",(function(){return i._237})),n.d(e,"_238",(function(){return i._238})),n.d(e,"_239",(function(){return i._239})),n.d(e,"_240",(function(){return i._240})),n.d(e,"_241",(function(){return i._241})),n.d(e,"_242",(function(){return i._242})),n.d(e,"_243",(function(){return i._243})),n.d(e,"_244",(function(){return i._244})),n.d(e,"_245",(function(){return i._245})),n.d(e,"_246",(function(){return i._246})),n.d(e,"_247",(function(){return i._247})),n.d(e,"_248",(function(){return i._248})),n.d(e,"_249",(function(){return i._249})),n.d(e,"_250",(function(){return i._250})),n.d(e,"_251",(function(){return i._251})),n.d(e,"_252",(function(){return i._252})),n.d(e,"_253",(function(){return i._253})),n.d(e,"_254",(function(){return i._254})),n.d(e,"_255",(function(){return i._255})),n.d(e,"_256",(function(){return i._256})),n.d(e,"_257",(function(){return i._257})),n.d(e,"_258",(function(){return i._258})),n.d(e,"_259",(function(){return i._259})),n.d(e,"_260",(function(){return i._260})),n.d(e,"_261",(function(){return i._261})),n.d(e,"_262",(function(){return i._262})),n.d(e,"_263",(function(){return i._263})),n.d(e,"_264",(function(){return i._264})),n.d(e,"_265",(function(){return i._265})),n.d(e,"_266",(function(){return i._266})),n.d(e,"_267",(function(){return i._267})),n.d(e,"_268",(function(){return i._268})),n.d(e,"_269",(function(){return i._269})),n.d(e,"_270",(function(){return i._270})),n.d(e,"_271",(function(){return i._271})),n.d(e,"_272",(function(){return i._272})),n.d(e,"_273",(function(){return i._273})),n.d(e,"_274",(function(){return i._274})),n.d(e,"_275",(function(){return i._275})),n.d(e,"_276",(function(){return i._276})),n.d(e,"_277",(function(){return i._277})),n.d(e,"_278",(function(){return i._278})),n.d(e,"_279",(function(){return i._279})),n.d(e,"_280",(function(){return i._280})),n.d(e,"_281",(function(){return i._281})),n.d(e,"_282",(function(){return i._282})),n.d(e,"_283",(function(){return i._283})),n.d(e,"_284",(function(){return i._284})),n.d(e,"_285",(function(){return i._285})),n.d(e,"_286",(function(){return i._286})),n.d(e,"_287",(function(){return i._287})),n.d(e,"_288",(function(){return i._288})),n.d(e,"_289",(function(){return i._289})),n.d(e,"_290",(function(){return i._290})),n.d(e,"_291",(function(){return i._291})),n.d(e,"_292",(function(){return i._292})),n.d(e,"_293",(function(){return i._293})),n.d(e,"_294",(function(){return i._294})),n.d(e,"_295",(function(){return i._295})),n.d(e,"_296",(function(){return i._296})),n.d(e,"_297",(function(){return i._297})),n.d(e,"_298",(function(){return i._298})),n.d(e,"_299",(function(){return i._299})),n.d(e,"_300",(function(){return i._300})),n.d(e,"_301",(function(){return i._301})),n.d(e,"_302",(function(){return i._302})),n.d(e,"_303",(function(){return i._303})),n.d(e,"_304",(function(){return i._304})),n.d(e,"_305",(function(){return i._305})),n.d(e,"_306",(function(){return i._306})),n.d(e,"_307",(function(){return i._307})),n.d(e,"_308",(function(){return i._308})),n.d(e,"_309",(function(){return i._309})),n.d(e,"_310",(function(){return i._310})),n.d(e,"_311",(function(){return i._311})),n.d(e,"_312",(function(){return i._312})),n.d(e,"_313",(function(){return i._313})),n.d(e,"_314",(function(){return i._314})),n.d(e,"_315",(function(){return i._315})),n.d(e,"_316",(function(){return i._316})),n.d(e,"_317",(function(){return i._317})),n.d(e,"_318",(function(){return i._318})),n.d(e,"_319",(function(){return i._319})),n.d(e,"_320",(function(){return i._320})),n.d(e,"_321",(function(){return i._321})),n.d(e,"_322",(function(){return i._322})),n.d(e,"_323",(function(){return i._323})),n.d(e,"_324",(function(){return i._324})),n.d(e,"_325",(function(){return i._325})),n.d(e,"_326",(function(){return i._326})),n.d(e,"_327",(function(){return i._327})),n.d(e,"_328",(function(){return i._328})),n.d(e,"_329",(function(){return i._329})),n.d(e,"_330",(function(){return i._330})),n.d(e,"_331",(function(){return i._331})),n.d(e,"_332",(function(){return i._332})),n.d(e,"_333",(function(){return i._333})),n.d(e,"_334",(function(){return i._334})),n.d(e,"_335",(function(){return i._335})),n.d(e,"_336",(function(){return i._336})),n.d(e,"_337",(function(){return i._337})),n.d(e,"_338",(function(){return i._338})),n.d(e,"_339",(function(){return i._339})),n.d(e,"_340",(function(){return i._340})),n.d(e,"_341",(function(){return i._341})),n.d(e,"_342",(function(){return i._342})),n.d(e,"_343",(function(){return i._343})),n.d(e,"_344",(function(){return i._344})),n.d(e,"_345",(function(){return i._345})),n.d(e,"_346",(function(){return i._346})),n.d(e,"_347",(function(){return i._347})),n.d(e,"_348",(function(){return i._348})),n.d(e,"_349",(function(){return i._349})),n.d(e,"_350",(function(){return i._350})),n.d(e,"_351",(function(){return i._351})),n.d(e,"_352",(function(){return i._352})),n.d(e,"_353",(function(){return i._353})),n.d(e,"_354",(function(){return i._354})),n.d(e,"_355",(function(){return i._355})),n.d(e,"_356",(function(){return i._356})),n.d(e,"_357",(function(){return i._357})),n.d(e,"_358",(function(){return i._358})),n.d(e,"_359",(function(){return i._359})),n.d(e,"_360",(function(){return i._360})),n.d(e,"_361",(function(){return i._361})),n.d(e,"_362",(function(){return i._362})),n.d(e,"_363",(function(){return i._363})),n.d(e,"_364",(function(){return i._364})),n.d(e,"_365",(function(){return i._365})),n.d(e,"_366",(function(){return i._366})),n.d(e,"_367",(function(){return i._367})),n.d(e,"_368",(function(){return i._368})),n.d(e,"_369",(function(){return i._369})),n.d(e,"_370",(function(){return i._370})),n.d(e,"_371",(function(){return i._371})),n.d(e,"_372",(function(){return i._372})),n.d(e,"_373",(function(){return i._373})),n.d(e,"_374",(function(){return i._374})),n.d(e,"_375",(function(){return i._375})),n.d(e,"_376",(function(){return i._376})),n.d(e,"_377",(function(){return i._377})),n.d(e,"_378",(function(){return i._378})),n.d(e,"_379",(function(){return i._379})),n.d(e,"_380",(function(){return i._380})),n.d(e,"_381",(function(){return i._381})),n.d(e,"_382",(function(){return i._382})),n.d(e,"_383",(function(){return i._383})),n.d(e,"_384",(function(){return i._384})),n.d(e,"_385",(function(){return i._385})),n.d(e,"_386",(function(){return i._386})),n.d(e,"_387",(function(){return i._387})),n.d(e,"_388",(function(){return i._388})),n.d(e,"_389",(function(){return i._389})),n.d(e,"_390",(function(){return i._390})),n.d(e,"_391",(function(){return i._391})),n.d(e,"_392",(function(){return i._392})),n.d(e,"_393",(function(){return i._393})),n.d(e,"_394",(function(){return i._394})),n.d(e,"_395",(function(){return i._395})),n.d(e,"_396",(function(){return i._396})),n.d(e,"_397",(function(){return i._397})),n.d(e,"_398",(function(){return i._398})),n.d(e,"_399",(function(){return i._399})),n.d(e,"_400",(function(){return i._400})),n.d(e,"_401",(function(){return i._401})),n.d(e,"_402",(function(){return i._402})),n.d(e,"_403",(function(){return i._403})),n.d(e,"_404",(function(){return i._404})),n.d(e,"_405",(function(){return i._405})),n.d(e,"_406",(function(){return i._406})),n.d(e,"_407",(function(){return i._407})),n.d(e,"_408",(function(){return i._408})),n.d(e,"_409",(function(){return i._409})),n.d(e,"_410",(function(){return i._410})),n.d(e,"_411",(function(){return i._411})),n.d(e,"_412",(function(){return i._412})),n.d(e,"_413",(function(){return i._413})),n.d(e,"_414",(function(){return i._414})),n.d(e,"_415",(function(){return i._415})),n.d(e,"_416",(function(){return i._416})),n.d(e,"_417",(function(){return i._417})),
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.a)()},function(t,e,n){"use strict";const a="Abs";e.a=a;const s="Acos";e.b=s;const i="Acosh";e.c=i;const Add="Add";e.d=Add;const o="AddN";e.e=o;const All="All";e.f=All;const c="Any";e.g=c;const u="ArgMax";e.h=u;const l="ArgMin";e.i=l;const h="Asin";e.j=h;const p="Asinh";e.k=p;const f="Atan";e.l=f;const b="Atanh";e.n=b;const m="Atan2";e.m=m;const g="AvgPool";e.o=g;const v="AvgPoolGrad";e.r=v;const w="AvgPool3D";e.p=w;const y="AvgPool3DGrad";e.q=y;const O="BatchMatMul";e.s=O;const x="BatchToSpaceND";e.t=x;const A="Bincount";e.u=A;const I="BitwiseAnd";e.v=I;const j="BroadcastTo";e.x=j;const C="BroadcastArgs";e.w=C;const _="Cast";e.y=_;const k="Ceil";e.z=k;const S="ClipByValue";e.A=S;const T="Complex";e.B=T;const L="ComplexAbs";e.C=L;const B="Concat";e.D=B;const N="Conv2D";e.E=N;const E="Conv2DBackpropFilter";e.F=E;const M="Conv2DBackpropInput";e.G=M;const F="Conv3D";e.H=F;const W="Conv3DBackpropFilterV2";e.I=W;const z="Conv3DBackpropInputV2";e.J=z;const P="Cos";e.K=P;const G="Cosh";e.L=G;const V="Cumprod";e.N=V;const H="Cumsum";e.O=H;const Z="CropAndResize";e.M=Z;const X="DenseBincount";e.P=X;const U="DepthToSpace";e.Q=U;const $="DepthwiseConv2dNative";e.R=$;const Y="DepthwiseConv2dNativeBackpropFilter";e.S=Y;const J="DepthwiseConv2dNativeBackpropInput";e.T=J;const K="Diag";e.U=K;const tt="Dilation2D";e.V=tt;const nt="Dilation2DBackpropInput";e.X=nt;const rt="Dilation2DBackpropFilter";e.W=rt;const at="Draw";e.Y=at;const st="RealDiv";e._73=st;const ot="Einsum";e.Z=ot;const ct="Elu";e._0=ct;const ut="EluGrad";e._1=ut;const lt="Erf";e._3=lt;const dt="Equal";e._2=dt;const ht="Exp";e._4=ht;const pt="ExpandDims";e._5=pt;const ft="Expm1";e._6=ft;const bt="FFT";e._7=bt;const Fill="Fill";e._8=Fill;const mt="FlipLeftRight";e._9=mt;const gt="Floor";e._10=gt;const vt="FloorDiv";e._11=vt;const wt="FusedBatchNorm";e._13=wt;const yt="GatherV2";e._17=yt;const Ot="GatherNd";e._16=Ot;const xt="Greater";e._18=xt;const At="GreaterEqual";e._19=At;const jt="Identity";e._21=jt;const Ct="IFFT";e._20=Ct;const _t="Imag";e._22=_t;const kt="IsFinite";e._23=kt;const St="IsInf";e._24=St;const Tt="IsNan";e._25=Tt;const Lt="LeakyRelu";e._28=Lt;const Bt="Less";e._29=Bt;const Nt="LessEqual";e._30=Nt;const Mt="LinSpace";e._31=Mt;const Dt="Log";e._32=Dt;const Ft="Log1p";e._33=Ft;const Rt="LogicalAnd";e._35=Rt;const Wt="LogicalNot";e._36=Wt;const zt="LogicalOr";e._37=zt;const Pt="LogicalXor";e._38=Pt;const Gt="LogSoftmax";e._34=Gt;const Vt="LowerBound";e._39=Vt;const Ht="LRN";e._26=Ht;const Zt="LRNGrad";e._27=Zt;const Xt="MatrixBandPart";e._40=Xt;const Ut="Max";e._41=Ut;const $t="Maximum";e._47=$t;const Yt="MaxPool";e._42=Yt;const Jt="MaxPoolGrad";e._45=Jt;const qt="MaxPool3D";e._43=qt;const Kt="MaxPool3DGrad";e._44=Kt;const Qt="MaxPoolWithArgmax";e._46=Qt;const te="Mean";e._48=te;const ee="Min";e._49=ee;const ne="Minimum";e._50=ne;const re="MirrorPad";e._51=re;const ae="Mod";e._52=ae;const se="Multinomial";e._53=se;const ie="Multiply";e._54=ie;const oe="Neg";e._55=oe;const ce="NotEqual";e._59=ce;const ue="NonMaxSuppressionV3";e._56=ue;const le="NonMaxSuppressionV4";e._57=le;const pe="NonMaxSuppressionV5";e._58=pe;const fe="OnesLike";e._61=fe;const be="OneHot";e._60=be;const ge="Pack";e._62=ge;const ve="PadV2";e._63=ve;const we="Pool";e._64=we;const ye="Pow";e._65=ye;const Oe="Prelu";e._66=Oe;const xe="Prod";e._67=xe;const Ae="RaggedGather";e._68=Ae;const Ie="RaggedRange";e._69=Ie;const je="RaggedTensorToTensor";e._70=je;const Ce="Range";e._71=Ce;const _e="Real";e._72=_e;const ke="Reciprocal";e._74=ke;const Se="Relu";e._75=Se;const Te="Reshape";e._77=Te;const Le="ResizeNearestNeighbor";e._80=Le;const Be="ResizeNearestNeighborGrad";e._81=Be;const Ne="ResizeBilinear";e._78=Ne;const Ee="ResizeBilinearGrad";e._79=Ee;const Fe="Relu6";e._76=Fe;const Re="Reverse";e._82=Re;const We="Round";e._84=We;const ze="Rsqrt";e._85=ze;const Pe="ScatterNd";e._86=Pe;const Ge="TensorScatterUpdate";e._117=Ge;const Ve="SearchSorted";e._87=Ve;const Select="Select";e._88=Select;const Ze="Selu";e._89=Ze;const Xe="Slice";e._94=Xe;const Ue="Sin";e._92=Ue;const $e="Sinh";e._93=$e;const Ye="Sign";e._91=Ye;const Je="Sigmoid";e._90=Je;const qe="Softplus";e._96=qe;const Ke="Sqrt";e._104=Ke;const Qe="Sum";e._114=Qe;const tn="SpaceToBatchND";e._97=tn;const en="SplitV";e._103=en;const nn="Softmax";e._95=nn;const rn="SparseFillEmptyRows";e._98=rn;const an="SparseReshape";e._99=an;const sn="SparseSegmentMean";e._100=sn;const on="SparseSegmentSum";e._101=on;const cn="SparseToDense";e._102=cn;const un="SquaredDifference";e._106=un;const ln="Square";e._105=ln;const dn="StaticRegexReplace";e._107=dn;const hn="StridedSlice";e._109=hn;const pn="StringNGrams";e._110=pn;const fn="StringSplit";e._111=fn;const bn="StringToHashBucketFast";e._112=bn;const mn="Sub";e._113=mn;const gn="Tan";e._115=gn;const vn="Tanh";e._116=vn;const wn="Tile";e._118=wn;const yn="TopK";e._119=yn;const Transform="Transform";e._120=Transform;const On="Transpose";e._121=On;const xn="Unique";e._122=xn;const An="Unpack";e._123=An;const In="UnsortedSegmentSum";e._124=In;const jn="UpperBound";e._125=jn;const Cn="ZerosLike";e._126=Cn;const _n="Step";e._108=_n;const kn="FromPixels";e._12=kn;const Sn="RotateWithOffset";e._83=Sn;const Tn="_FusedMatMul";e._127=Tn;const Ln="FusedConv2D";e._14=Ln;const Bn="FusedDepthwiseConv2D";e._15=Bn},function(t,e,n){"use strict";function a(t){const e=Object.keys(t);if(1!==e.length)throw new Error(`Please provide an object with a single key (operation name) mapping to a function. Got an object with ${e.length} keys.`);let n=e[0];const a=t[n];n.endsWith("_")&&(n=n.substring(0,n.length-1)),n+=o;const c=(...t)=>{s.a.startScope(n);try{const e=a(...t);return Object(i.isPromise)(e)&&console.error("Cannot return a Promise inside of tidy."),s.a.endScope(e),e}catch(t){throw s.a.endScope(null),t}};return Object.defineProperty(c,"name",{value:n,configurable:true}),c}e.b=a;var s=n(4),i=n(5);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="__op";e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=t;if(Object(f.isTypedArray)(t))return"string"===e?[]:[t.length];if(Object(p.b)(t)){const e=t.channels||"RGBA";return[t.height,t.width*e.length]}if(Object(p.c)(t))return[t.buffer.size/(null==e?4:Object(b.h)(e))];if(!Array.isArray(t))return[];const shape=[];for(;Array.isArray(n)||Object(f.isTypedArray)(n)&&"string"!==e;)shape.push(n.length),n=n[0];return Array.isArray(t)&&Object(l.c)().getBool("TENSORLIKE_CHECK_SHAPE_CONSISTENCY")&&s(t,shape,[]),shape}function s(t,shape,e){if(e=e||[],!Array.isArray(t)&&!Object(f.isTypedArray)(t))return Object(f.assert)(0===shape.length,(()=>`Element arr[${e.join("][")}] is a primitive, but should be an array/TypedArray of ${shape[0]} elements`)),void 0;Object(f.assert)(shape.length>0,(()=>`Element arr[${e.join("][")}] should be a primitive, but is an array of ${t.length} elements`)),Object(f.assert)(t.length===shape[0],(()=>`Element arr[${e.join("][")}] should have ${shape[0]} elements, but has ${t.length} elements`));const n=shape.slice(1);for(let a=0;a<t.length;++a)s(t[a],n,e.concat(a))}function i(t,e,n,a){if("string_or_numeric"!==t){if(null==t)throw new Error("Expected dtype cannot be null.");if("numeric"!==t&&t!==e||"numeric"===t&&"string"===e)throw new Error(`Argument '${n}' passed to '${a}' must be ${t} tensor, but got ${e} tensor`)}}function o(t,e,n,s="numeric"){if(t instanceof Object(h.d)())return i(s,t.dtype,e,n),t;let o=Object(f.inferDtype)(t);if("string"!==o&&["bool","int32","float32"].indexOf(s)>=0&&(o=s),i(s,o,e,n),null==t||!Object(f.isTypedArray)(t)&&!Array.isArray(t)&&"number"!=typeof t&&"boolean"!=typeof t&&"string"!=typeof t){const type=null==t?"null":t.constructor.name;throw new Error(`Argument '${e}' passed to '${n}' must be a Tensor or TensorLike, but got '${type}'`)}const c=a(t,o);Object(f.isTypedArray)(t)||Array.isArray(t)||(t=[t]);const l=true,p="string"!==o?Object(f.toTypedArray)(t,o):Object(f.flatten)(t,[],l);return u.a.makeTensor(p,c,o)}function c(t,e,n,a="numeric"){if(!Array.isArray(t))throw new Error(`Argument ${e} passed to ${n} must be a \`Tensor[]\` or \`TensorLike[]\``);const s=undefined;return t.map(((t,s)=>o(t,`${e}[${s}]`,n,a)))}e.c=a,e.a=o,e.b=c;var u=n(4),l=n(39),h=n(6),p=n(108),f=n(5),b=n(35)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return null!=t.kernelName}function s(shape){const t=Object(v.makeOnesTypedArray)(Object(v.sizeFromShape)(shape),"float32");return O.makeTensor(t,shape,"float32")}function i(){const t=Object(u.b)();if(null==t._tfengine){const e=new c.b(t);t._tfengine=new y(e)}return Object(c.d)(t._tfengine.ENV),Object(m.g)((()=>t._tfengine)),t._tfengine}function add(t,e){const n={a:t,b:e};return O.runKernel(l.d,n)}e.b=i;var o=n(232),c=n(39),u=n(171),l=n(1),h=n(134),p=n(172),f=n(405),b=n(408),m=n(6),g=n(23),v=n(5);class w{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=false,this.activeProfile={newBytes:0,newTensors:0,peakBytes:0,kernels:[],result:null,get kernelNames(){return Array.from(new Set(this.kernels.map((t=>t.name))))}}}dispose(){for(const t in this.registeredVariables)this.registeredVariables[t].dispose()}}class y{constructor(t){this.ENV=t,this.registry={},this.registryFactory={},this.pendingBackendInitId=0,this.state=new w}async ready(){if(null!=this.pendingBackendInit)return this.pendingBackendInit.then((()=>{}));if(null!=this.backendInstance)return;const t=this.getSortedBackends();for(let e=0;e<t.length;e++){const n=t[e],a=undefined;if(await this.initializeBackend(n).success)return await this.setBackend(n),void 0}throw new Error("Could not initialize any backends, all backend initializations failed.")}get backend(){if(null!=this.pendingBackendInit)throw new 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){const{name:t,asyncInit:e}=this.initializeBackendsAndReturnBest();if(e)throw new Error(`The highest priority backend '${t}' has not yet been initialized. Make sure to await tf.ready() or await tf.setBackend() before calling other methods`);this.setBackend(t)}return this.backendInstance}backendNames(){return Object.keys(this.registryFactory)}findBackend(t){if(!(t in this.registry)){if(!(t in this.registryFactory))return null;{const{asyncInit:e}=this.initializeBackend(t);if(e)return null}}return this.registry[t]}findBackendFactory(t){return t in this.registryFactory?this.registryFactory[t].factory:null}registerBackend(t,factory,e=1){return t in this.registryFactory?(p.b(`${t} backend was already registered. Reusing existing backend factory.`),false):(this.registryFactory[t]={factory:factory,priority:e},true)}async setBackend(t){if(null==this.registryFactory[t])throw new Error(`Backend name '${t}' not found in registry`);if(this.backendName=t,null==this.registry[t]){this.backendInstance=null;const{success:e,asyncInit:n}=this.initializeBackend(t),a=undefined;if(!(n?await e:e))return false}return this.backendInstance=this.registry[t],this.setupRegisteredKernels(),this.profiler=new f.a(this.backendInstance),true}setupRegisteredKernels(){const t=undefined;Object(h.d)(this.backendName).forEach((t=>{null!=t.setupFunc&&t.setupFunc(this.backendInstance)}))}disposeRegisteredKernels(t){const e=undefined;Object(h.d)(t).forEach((e=>{null!=e.disposeFunc&&e.disposeFunc(this.registry[t])}))}initializeBackend(t){const e=this.registryFactory[t];if(null==e)throw new Error(`Cannot initialize backend ${t}, no registration found.`);try{const n=e.factory();if(!n||n instanceof o.b||"function"!=typeof n.then)return this.registry[t]=n,{success:true,asyncInit:false};{const e=++this.pendingBackendInitId,a=n.then((n=>!(e<this.pendingBackendInitId)&&(this.registry[t]=n,this.pendingBackendInit=null,true))).catch((n=>(e<this.pendingBackendInitId||(this.pendingBackendInit=null,p.b(`Initialization of backend ${t} failed`),p.b(n.stack||n.message)),false)));return this.pendingBackendInit=a,{success:a,asyncInit:true}}}catch(e){return p.b(`Initialization of backend ${t} failed`),p.b(e.stack||e.message),{success:false,asyncInit:false}}}removeBackend(t){if(!(t in this.registryFactory))throw new Error(`${t} backend not found in registry`);this.backendName===t&&null!=this.pendingBackendInit&&this.pendingBackendInitId++,t in this.registry&&(this.disposeRegisteredKernels(t),this.registry[t].dispose(),delete this.registry[t]),delete this.registryFactory[t],this.backendName===t&&(this.pendingBackendInit=null,this.backendName=null,this.backendInstance=null)}getSortedBackends(){if(0===Object.keys(this.registryFactory).length)throw new Error("No backend found in registry.");return Object.keys(this.registryFactory).sort(((t,e)=>this.registryFactory[e].priority-this.registryFactory[t].priority))}initializeBackendsAndReturnBest(){const t=this.getSortedBackends();for(let e=0;e<t.length;e++){const n=t[e],{success:a,asyncInit:s}=this.initializeBackend(n);if(s||a)return{name:n,asyncInit:s}}throw new Error("Could not initialize any backends, all backend initializations failed.")}moveData(t,e){const n=this.state.tensorInfo.get(e),a=n.backend,s=this.readSync(e),i=a.refCount(e);a.disposeData(e,true),n.backend=t,t.move(e,s,n.shape,n.dtype,i),this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack[this.state.numDataMovesStack.length-1]++}tidy(t,e){let n=null,a;if(null==e){if("function"!=typeof t)throw new Error("Please provide a function to tidy()");e=t}else{if("string"!=typeof t&&!(t instanceof String))throw new Error("When calling with two arguments, the first argument to tidy() must be a string");if("function"!=typeof e)throw new Error("When calling with two arguments, the 2nd argument to tidy() must be a function");n=t}return this.scopedRun((()=>this.startScope(n)),(()=>this.endScope(a)),(()=>(a=e(),a instanceof Promise&&console.error("Cannot return a Promise inside of tidy."),a)))}scopedRun(t,e,n){t();try{const t=n();return e(),t}catch(t){throw e(),t}}nextTensorId(){return y.nextTensorId++}nextVariableId(){return y.nextVariableId++}clone(t){const e=O.runKernel(l._21,{x:t}),n={x:t},a=t=>({x:()=>{const e=undefined,n={x:t},a={dtype:"float32"};return O.runKernel(l.y,n,a)}}),s=[];return this.addTapeNode(this.state.activeScope.name,n,[e],a,s,{}),e}runKernel(t,e,n){null==this.backendName&&this.backend;const a=undefined;if(!(null!=Object(h.c)(t,this.backendName)))throw new Error(`Kernel '${t}' not registered for backend '${this.backendName}'`);return this.runKernelFunc({kernelName:t,inputs:e,attrs:n})}shouldCheckForMemLeaks(){return this.ENV.getBool("IS_TEST")}checkKernelForMemLeak(t,e,n){const a=this.backend.numDataIds();let s=0;n.forEach((t=>{s+="complex64"===t.dtype?3:1}));const i=this.state.numDataMovesStack[this.state.numDataMovesStack.length-1],o=a-e-s-i;if(o>0)throw new Error(`Backend '${this.backendName}' has an internal memory leak (${o} data ids) after running '${t}'`)}runKernelFunc(t){let e,n=[];const s=this.isTapeOn(),i=this.state.numBytes,o=this.state.numTensors;let c,u;this.shouldCheckForMemLeaks()&&this.state.numDataMovesStack.push(0),null==this.backendName&&this.backend;const l=a(t)?t.kernelName:null!=this.state.activeScope?this.state.activeScope.name:"";if(a(t)){const{kernelName:e,inputs:a,attrs:i}=t;null==this.backendName&&this.backend;const o=Object(h.c)(e,this.backendName);v.assert(null!=o,(()=>`Cannot find registered kernel '${e}' for backend '${this.backendName}'`)),c=()=>{const t=this.backend.numDataIds();u=o.kernelFunc({inputs:a,attrs:i,backend:this.backend});const c=Array.isArray(u)?u:[u];this.shouldCheckForMemLeaks()&&this.checkKernelForMemLeak(e,t,c);const l=c.map((t=>null!=t.rank?t:this.makeTensorFromTensorInfo(t)));if(s){const t=this.getTensorsForGradient(e,a,l);n=this.saveTensorsForBackwardMode(t)}return l}}else{const{forwardFunc:e}=t,a=t=>{s&&(n=t.map((t=>this.keep(this.clone(t)))))};c=()=>{const t=this.backend.numDataIds();u=this.tidy((()=>e(this.backend,a)));const n=Array.isArray(u)?u:[u];return this.shouldCheckForMemLeaks()&&this.checkKernelForMemLeak(l,t,n),n}}const{inputs:p,attrs:f}=t,b=a(t)?null:t.backwardsFunc;let m;return this.scopedRun((()=>this.state.kernelDepth++),(()=>this.state.kernelDepth--),(()=>{this.ENV.getBool("DEBUG")||this.state.profiling?(m=this.profiler.profileKernel(l,p,(()=>c())),this.ENV.getBool("DEBUG")&&this.profiler.logKernelProfile(m),e=m.outputs):e=c()})),s&&this.addTapeNode(l,p,e,b,n,f),this.state.profiling&&this.state.activeProfile.kernels.push({name:l,bytesAdded:this.state.numBytes-i,totalBytesSnapshot:this.state.numBytes,tensorsAdded:this.state.numTensors-o,totalTensorsSnapshot:this.state.numTensors,inputShapes:Object.keys(p).map((t=>null!=p[t]?p[t].shape:null)),outputShapes:e.map((t=>t.shape)),kernelTimeMs:m.timeMs,extraInfo:m.extraInfo}),Array.isArray(u)?e:e[0]}saveTensorsForBackwardMode(t){const e=undefined;return t.map((t=>this.keep(this.clone(t))))}getTensorsForGradient(t,e,n){const a=Object(h.b)(t);if(null!=a){const t=a.inputsToSave||[],s=a.outputsToSave||[];let i;a.saveAllInputs?(v.assert(Array.isArray(e),(()=>"saveAllInputs is true, expected inputs to be an array.")),i=Object.keys(e).map((t=>e[t]))):i=t.map((t=>e[t]));const o=n.filter(((t,e)=>s[e]));return i.concat(o)}return[]}makeTensor(t,shape,e,n){if(null==t)throw new Error("Values passed to engine.makeTensor() are null");e=e||"float32",n=n||this.backend;let a=t;"string"===e&&v.isString(t[0])&&(a=t.map((d=>v.encodeString(d))));const s=n.write(a,shape,e),i=new m.a(shape,e,s,this.nextTensorId());if(this.trackTensor(i,n),"string"===e){const t=this.state.tensorInfo.get(s),e=Object(v.bytesFromStringArray)(a);this.state.numBytes+=e-t.bytes,t.bytes=e}return i}makeTensorFromDataId(t,shape,e,n){const a={dataId:t,shape:shape,dtype:e=e||"float32"};return this.makeTensorFromTensorInfo(a,n)}makeTensorFromTensorInfo(t,e){const{dataId:n,shape:shape,dtype:a}=t,s=new m.a(shape,a,n,this.nextTensorId());return this.trackTensor(s,e),s}makeVariable(t,e=true,n,a){n=n||this.nextVariableId().toString(),null!=a&&a!==t.dtype&&(t=t.cast(a));const s=new m.c(t,e,n,this.nextTensorId());if(null!=this.state.registeredVariables[s.name])throw new Error(`Variable with name ${s.name} was already registered`);return this.state.registeredVariables[s.name]=s,this.incRef(s,this.backend),s}trackTensor(t,e){this.state.numTensors++,"string"===t.dtype&&this.state.numStringTensors++;let n=0;"complex64"!==t.dtype&&"string"!==t.dtype&&(n=t.size*v.bytesPerElement(t.dtype)),this.state.numBytes+=n,this.state.tensorInfo.has(t.dataId)||(this.state.numDataBuffers++,this.state.tensorInfo.set(t.dataId,{backend:e||this.backend,dtype:t.dtype,shape:t.shape,bytes:n})),t instanceof m.c||this.track(t)}incRef(t,e){this.trackTensor(t,e),this.backend.incRef(t.dataId)}removeDataId(t,e){this.state.tensorInfo.has(t)&&this.state.tensorInfo.get(t).backend===e&&(this.state.tensorInfo.delete(t),this.state.numDataBuffers--)}disposeTensor(t){if(!this.state.tensorInfo.has(t.dataId))return;const e=this.state.tensorInfo.get(t.dataId);if(this.state.numTensors--,"string"===t.dtype&&(this.state.numStringTensors--,this.state.numBytes-=e.bytes),"complex64"!==t.dtype&&"string"!==t.dtype){const e=t.size*v.bytesPerElement(t.dtype);this.state.numBytes-=e}e.backend.disposeData(t.dataId)&&this.removeDataId(t.dataId,e.backend)}disposeVariables(){for(const t in this.state.registeredVariables){const e=this.state.registeredVariables[t];this.disposeVariable(e)}}disposeVariable(t){this.disposeTensor(t),null!=this.state.registeredVariables[t.name]&&delete this.state.registeredVariables[t.name]}memory(){const t=this.backend.memory();return t.numTensors=this.state.numTensors,t.numDataBuffers=this.state.numDataBuffers,t.numBytes=this.state.numBytes,this.state.numStringTensors>0&&(t.unreliable=true,null==t.reasons&&(t.reasons=[]),t.reasons.push("Memory usage by string tensors is approximate (2 bytes per character)")),t}async profile(t){this.state.profiling=true;const e=this.state.numBytes,n=this.state.numTensors;this.state.activeProfile.kernels=[],this.state.activeProfile.result=await t(),this.state.profiling=false,this.state.activeProfile.peakBytes=Math.max(...this.state.activeProfile.kernels.map((d=>d.totalBytesSnapshot))),this.state.activeProfile.newBytes=this.state.numBytes-e,this.state.activeProfile.newTensors=this.state.numTensors-n;for(const t of this.state.activeProfile.kernels)t.kernelTimeMs=await t.kernelTimeMs,t.extraInfo=await t.extraInfo;return this.state.activeProfile}isTapeOn(){return this.state.gradientDepth>0&&0===this.state.kernelDepth}addTapeNode(t,e,n,a,s,i){const o={id:this.state.nextTapeNodeId++,kernelName:t,inputs:e,outputs:n,saved:s},c=Object(h.b)(t);null!=c&&(a=c.gradFunc),null!=a&&(o.gradient=t=>(t=t.map(((t,e)=>{if(null==t){const t=n[e],a=v.makeZerosTypedArray(t.size,t.dtype);return this.makeTensor(a,t.shape,t.dtype)}return t})),a(t.length>1?t:t[0],s,i))),this.state.activeTape.push(o)}keep(t){return t.kept=true,t}startTape(){0===this.state.gradientDepth&&(this.state.activeTape=[]),this.state.gradientDepth++}endTape(){this.state.gradientDepth--}startScope(t){const e={track:[],name:"unnamed scope",id:this.state.nextScopeId++};t&&(e.name=t),this.state.scopeStack.push(e),this.state.activeScope=e}endScope(t){const e=Object(g.getTensorsInContainer)(t),n=new Set(e.map((t=>t.id)));for(let t=0;t<this.state.activeScope.track.length;t++){const e=this.state.activeScope.track[t];e.kept||n.has(e.id)||e.dispose()}const a=this.state.scopeStack.pop();this.state.activeScope=0===this.state.scopeStack.length?null:this.state.scopeStack[this.state.scopeStack.length-1],e.forEach((t=>{t.kept||t.scopeId!==a.id||this.track(t)}))}gradients(t,e,n,a=false){if(v.assert(e.length>0,(()=>"gradients() received an empty list of xs.")),null!=n&&"float32"!==n.dtype)throw new Error(`dy must have 'float32' dtype, but has '${n.dtype}'`);const i=this.scopedRun((()=>this.startTape()),(()=>this.endTape()),(()=>this.tidy("forward",t)));v.assert(i instanceof m.a,(()=>"The result y returned by f() must be a tensor."));const o=Object(b.b)(this.state.activeTape,e,i);if(!a&&0===o.length&&e.length>0)throw new 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",(()=>{const t={};t[i.id]=null==n?s(i.shape):n,Object(b.a)(t,o,(t=>this.tidy(t)),add);const a=e.map((e=>t[e.id]));return 0===this.state.gradientDepth&&(this.state.activeTape.forEach((t=>{for(const e of t.saved)e.dispose()})),this.state.activeTape=null),{value:i,grads:a}}))}customGrad(t){return v.assert(v.isFunction(t),(()=>"The f passed in customGrad(f) must be a function.")),(...e)=>{let n;v.assert(e.every((t=>t instanceof m.a)),(()=>"The args passed in customGrad(f)(x1, x2,...) must all be tensors"));const a={};e.forEach(((input,t)=>{a[t]=input}));const s=(a,save)=>(n=t(...e,save),v.assert(n.value instanceof m.a,(()=>"The function f passed in customGrad(f) must return an object where `obj.value` is a tensor")),v.assert(v.isFunction(n.gradFunc),(()=>"The function f passed in customGrad(f) must return an object where `obj.gradFunc` is a function.")),n.value),i=(t,a)=>{const s=n.gradFunc(t,a),i=Array.isArray(s)?s:[s];v.assert(i.length===e.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(...).")),v.assert(i.every((t=>t instanceof m.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."));const o={};return i.forEach(((t,e)=>{o[e]=()=>t})),o};return this.runKernelFunc({forwardFunc:s,backwardsFunc:i,inputs:a})}}readSync(t){const e=undefined;return this.state.tensorInfo.get(t).backend.readSync(t)}read(t){const e=undefined;return this.state.tensorInfo.get(t).backend.read(t)}readToGPU(t,e){const n=undefined;return this.state.tensorInfo.get(t).backend.readToGPU(t,e)}async time(t){const e=Object(v.now)(),n=await this.backend.time(t);return n.wallMs=Object(v.now)()-e,n}track(t){return null!=this.state.activeScope&&(t.scopeId=this.state.activeScope.id,this.state.activeScope.track.push(t)),t}get registeredVariables(){return this.state.registeredVariables}reset(){this.pendingBackendInitId++,this.state.dispose(),this.ENV.reset(),this.state=new w;for(const t in this.registry)this.disposeRegisteredKernels(t),this.registry[t].dispose(),delete this.registry[t];this.backendName=null,this.backendInstance=null,this.pendingBackendInit=null}}y.nextTensorId=0,y.nextVariableId=0;const O=i();e.a=O},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){return"string"===e?c(t):i([t],e)}function s(t,e){return t instanceof Float32Array&&"float32"===e||t instanceof Int32Array&&"int32"===e||t instanceof Uint8Array&&"bool"===e}function i(t,e){if("string"===e)throw new Error("Cannot convert a string[] to a TypedArray");if(Array.isArray(t)&&(t=h(t)),Object(p.c)().getBool("DEBUG")&&b.i(t,e),s(t,e))return t;if(null==e||"float32"===e||"complex64"===e)return new Float32Array(t);if("int32"===e)return new Int32Array(t);if("bool"===e){const e=new Uint8Array(t.length);for(let n=0;n<e.length;++n)0!==Math.round(t[n])&&(e[n]=1);return e}throw new Error(`Unknown data type ${e}`)}function o(){return Object(p.c)().platform.now()}function fetch(t,e){return Object(p.c)().platform.fetch(t,e)}function c(t,e="utf-8"){return e=e||"utf-8",Object(p.c)().platform.encode(t,e)}function u(t,e="utf-8"){return e=e||"utf-8",Object(p.c)().platform.decode(t,e)}function l(t){return null!=Object(p.c)().platform.isTypedArray?Object(p.c)().platform.isTypedArray(t):Object(f.a)(t)}function h(t,e=[],n=false){if(null==e&&(e=[]),"boolean"==typeof t||"number"==typeof t||"string"==typeof t||b.y(t)||null==t||l(t)&&n)e.push(t);else if(Array.isArray(t)||l(t))for(let a=0;a<t.length;++a)h(t[a],e,n);else{let a=-1;for(const e of Object.keys(t))/^([1-9]+[0-9]*|0)$/.test(e)&&(a=Math.max(a,Number(e)));for(let s=0;s<=a;s++)h(t[s],e,n)}return e}Object.defineProperty(e,"__esModule",{value:true}),e.createScalarValue=a,e.toTypedArray=i,e.now=o,e.fetch=fetch,e.encodeString=c,e.decodeString=u,e.isTypedArray=l,e.flatten=h;var p=n(39),f=n(233),b=n(35);n.d(e,"shuffle",(function(){return b.M})),n.d(e,"shuffleCombo",(function(){return b.N})),n.d(e,"clamp",(function(){return b.j})),n.d(e,"nearestLargerEven",(function(){return b.H})),n.d(e,"swap",(function(){return b.S})),n.d(e,"sum",(function(){return b.R})),n.d(e,"randUniform",(function(){return b.J})),n.d(e,"distSquared",(function(){return b.n})),n.d(e,"assert",(function(){return b.c})),n.d(e,"assertShapesMatch",(function(){return b.f})),n.d(e,"assertNonNull",(function(){return b.e})),n.d(e,"sizeFromShape",(function(){return b.O})),n.d(e,"isScalarShape",(function(){return b.z})),n.d(e,"arraysEqualWithNull",(function(){return b.b})),n.d(e,"arraysEqual",(function(){return b.a})),n.d(e,"isInt",(function(){return b.w})),n.d(e,"tanh",(function(){return b.T})),n.d(e,"sizeToSquarishShape",(function(){return b.P})),n.d(e,"createShuffledIndices",(function(){return b.m})),n.d(e,"rightPad",(function(){return b.L})),n.d(e,"repeatedTry",(function(){return b.K})),n.d(e,"inferFromImplicitShape",(function(){return b.t})),n.d(e,"parseAxisParam",(function(){return b.I})),n.d(e,"squeezeShape",(function(){return b.Q})),n.d(e,"getTypedArrayFromDType",(function(){return b.p})),n.d(e,"getArrayFromDType",(function(){return b.o})),n.d(e,"checkConversionForErrors",(function(){return b.i})),n.d(e,"isValidDtype",(function(){return b.B})),n.d(e,"hasEncodingLoss",(function(){return b.q})),n.d(e,"bytesPerElement",(function(){return b.h})),n.d(e,"bytesFromStringArray",(function(){return b.g})),n.d(e,"isString",(function(){return b.A})),n.d(e,"isBoolean",(function(){return b.u})),n.d(e,"isNumber",(function(){return b.x})),n.d(e,"inferDtype",(function(){return b.s})),n.d(e,"isFunction",(function(){return b.v})),n.d(e,"nearestDivisor",(function(){return b.G})),n.d(e,"computeStrides",(function(){return b.k})),n.d(e,"toNestedArray",(function(){return b.U})),n.d(e,"convertBackendValuesAndArrayBuffer",(function(){return b.l})),n.d(e,"makeOnesTypedArray",(function(){return b.D})),n.d(e,"makeZerosTypedArray",(function(){return b.F})),n.d(e,"makeZerosNestedTypedArray",(function(){return b.E})),n.d(e,"assertNonNegativeIntegerDimensions",(function(){return b.d})),n.d(e,"locToIndex",(function(){return b.C})),n.d(e,"indexToLoc",(function(){return b.r})),n.d(e,"isPromise",(function(){return b.y}));var m=n(406);n.d(e,"hexToLong",(function(){return m.b})),n.d(e,"fingerPrint64",(function(){return m.a}))},function(t,e,n){"use strict";function a(t){p=t}function s(t){f=t}function i(t){b=t}function o(){return Object(c.a)("Tensor",(()=>m))}e.g=a,e.f=s,e.e=i,e.d=o;var c=n(171),u=n(409),l=n(5);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class h{constructor(shape,t,e){if(this.dtype=t,this.shape=shape.slice(),this.size=l.sizeFromShape(shape),null!=e){const t=e.length;l.assert(t===this.size,(()=>`Length of values '${t}' does not match the size inferred by the shape '${this.size}'.`))}if("complex64"===t)throw new 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=e||l.getArrayFromDType(t,this.size),this.strides=Object(l.computeStrides)(shape)}set(t,...e){0===e.length&&(e=[0]),l.assert(e.length===this.rank,(()=>`The number of provided coordinates (${e.length}) must match the rank (${this.rank})`));const index=this.locToIndex(e);this.values[index]=t}get(...t){0===t.length&&(t=[0]);let e=0;for(const n of t){if(n<0||n>=this.shape[e]){const e=`Requested out of range element at ${t}. Buffer shape=${this.shape}`;throw new Error(e)}e++}let index=t[t.length-1];for(let e=0;e<t.length-1;++e)index+=this.strides[e]*t[e];return this.values[index]}locToIndex(t){if(0===this.rank)return 0;if(1===this.rank)return t[0];let index=t[t.length-1];for(let e=0;e<t.length-1;++e)index+=this.strides[e]*t[e];return index}indexToLoc(index){if(0===this.rank)return[];if(1===this.rank)return[index];const t=new Array(this.shape.length);for(let e=0;e<t.length-1;++e)t[e]=Math.floor(index/this.strides[e]),index-=t[e]*this.strides[e];return t[t.length-1]=index,t}get rank(){return this.shape.length}toTensor(){return p().makeTensor(this.values,this.shape,this.dtype)}}e.b=h;let p=null,f=null,b=null;[b];class m{constructor(shape,t,e,id){this.kept=false,this.isDisposedInternal=false,this.shape=shape.slice(),this.dtype=t||"float32",this.size=l.sizeFromShape(shape),this.strides=Object(l.computeStrides)(shape),this.dataId=e,this.id=id,this.rankType=this.rank<5?this.rank.toString():"higher"}get rank(){return this.shape.length}async buffer(){const t=await this.data();return f.buffer(this.shape,this.dtype,t)}bufferSync(){return f.buffer(this.shape,this.dtype,this.dataSync())}async array(){const t=await this.data();return Object(l.toNestedArray)(this.shape,t,"complex64"===this.dtype)}arraySync(){return Object(l.toNestedArray)(this.shape,this.dataSync(),"complex64"===this.dtype)}async data(){this.throwIfDisposed();const data=p().read(this.dataId);if("string"===this.dtype){const t=await data;try{return t.map((t=>l.decodeString(t)))}catch(t){throw new Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}}return data}dataToGPU(t){return this.throwIfDisposed(),p().readToGPU(this.dataId,t)}dataSync(){this.throwIfDisposed();const data=p().readSync(this.dataId);if("string"===this.dtype)try{return data.map((t=>l.decodeString(t)))}catch(t){throw new Error("Failed to decode the string bytes into utf-8. To get the original bytes, call tensor.bytes().")}return data}async bytes(){this.throwIfDisposed();const data=await p().read(this.dataId);return"string"===this.dtype?data:new Uint8Array(data.buffer)}dispose(){this.isDisposed||(this.kerasMask&&this.kerasMask.dispose(),p().disposeTensor(this),this.isDisposedInternal=true)}get isDisposed(){return this.isDisposedInternal}throwIfDisposed(){if(this.isDisposed)throw new Error("Tensor is disposed.")}print(t=false){return f.print(this,t)}clone(){return this.throwIfDisposed(),f.clone(this)}toString(t=false){const e=this.dataSync();return Object(u.a)(e,this.shape,this.dtype,t)}cast(t){return this.throwIfDisposed(),f.cast(this,t)}variable(t=true,e,n){return this.throwIfDisposed(),p().makeVariable(this,t,e,n)}}e.a=m,Object.defineProperty(m,Symbol.hasInstance,{value:instance=>!!instance&&null!=instance.data&&null!=instance.dataSync&&null!=instance.throwIfDisposed}),o();class g extends m{constructor(t,e,n,a){super(t.shape,t.dtype,t.dataId,a),this.trainable=e,this.name=n}assign(t){if(t.dtype!==this.dtype)throw new Error(`dtype of the new value (${t.dtype}) and previous value (${this.dtype}) must match`);if(!l.arraysEqual(t.shape,this.shape))throw new Error(`shape of the new value (${t.shape}) and previous value (${this.shape}) must match`);p().disposeTensor(this),this.dataId=t.dataId,p().incRef(this,null)}dispose(){p().disposeVariable(this),this.isDisposedInternal=true}}e.c=g,Object.defineProperty(g,Symbol.hasInstance,{value:instance=>instance instanceof m&&null!=instance.assign&&instance.assign instanceof Function})},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape){const e=undefined,n={x:Object(o.a)(t,"x","reshape","string_or_numeric")},a={shape:shape};return s.a.runKernel(i._77,n,a)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({reshape_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){Array.isArray(t)||(t=[t]),t.forEach((t=>{null!=t&&s._408.assert("complex64"!==t.dtype,(()=>`${e} does not support complex64 tensors in the CPU backend.`))}))}e.a=a;var s=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","mul"),a=Object(c.a)(e,"b","mul");[n,a]=Object(o.makeTypesMatch)(n,a);const u={a:n,b:a};return s.a.runKernel(i._54,u)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(2);const l=Object(u.b)({mul_:a});e.a=l},function(t,e,n){"use strict";function a({opSnippet:t,packedOpSnippet:e,cpuKernelImpl:n,dtype:a}){return({inputs:s,backend:i})=>{const{x:c}=s,u=i,l=a||c.dtype;if(u.shouldExecuteOnCPU([c])&&null!=n){const t=u.texData.get(c.dataId),e=n(t.values,l);return u.makeTensorInfo(c.shape,l,e)}const h=undefined;let p;return p=Object(o._222)().getBool("WEBGL_PACK_UNARY_OPERATIONS")&&null!=e?new b.f(c.shape,e):new f.i(c.shape,t),u.runWebGLProgram(p,[c],l)}}function s({opSnippet:t,packedOpSnippet:e,checkOutOfBounds:n=false,supportsComplex:a=false,cpuKernelImpl:s,dtype:i}){return({inputs:h,backend:p})=>{const{a:f,b:b}=h,m=p;if(a&&"complex64"===f.dtype){const e=m.texData.get(f.dataId),n=m.texData.get(b.dataId),[a,s]=[[e.complexTensorInfos.real,n.complexTensorInfos.real],[e.complexTensorInfos.imag,n.complexTensorInfos.imag]].map((e=>{const[n,a]=e,s={dataId:n.dataId,dtype:n.dtype,shape:f.shape},i={dataId:a.dataId,dtype:a.dtype,shape:b.shape},u=new c.a(t,f.shape,b.shape);return m.runWebGLProgram(u,[s,i],Object(o._406)(n.dtype,a.dtype))})),i=Object(l.a)({inputs:{real:a,imag:s},backend:m});return m.disposeIntermediateTensorInfo(a),m.disposeIntermediateTensorInfo(s),i}const g=i||Object(o._406)(f.dtype,b.dtype);if(("string"===f.dtype||"string"===b.dtype||m.shouldExecuteOnCPU([f,b]))&&null!=s){const t=m.texData.get(f.dataId).values,e=m.texData.get(b.dataId).values,n="string"===f.dtype?o._164.fromUint8ToStringArray(t):t,a="string"===f.dtype?o._164.fromUint8ToStringArray(e):e,[i,c]=s(f.shape,b.shape,n,a,g),u=m.makeTensorInfo(c,g),l=undefined;return m.texData.get(u.dataId).values=i,u}const v=undefined;let w;return w=Object(o._222)().getBool("WEBGL_PACK_BINARY_OPERATIONS")&&null!=e?new u.a(e,f.shape,b.shape,n):new c.a(t,f.shape,b.shape),m.runWebGLProgram(w,[f,b],g)}}function i(t,e=false){if("linear"===t)return e?b.b:f.e;if("relu"===t)return e?b.c:f.f;if("elu"===t)return e?b.a:f.d;if("relu6"===t)return e?b.d:f.g;if("prelu"===t)return e?p.b:p.a;if("leakyrelu"===t)return e?h.b:h.a;if("sigmoid"===t)return e?b.e:f.h;throw new Error(`Activation ${t} has not been implemented for the WebGL backend.`)}e.d=a,e.b=s,e.c=i;var o=n(0),c=n(66),u=n(46),l=n(77),h=n(374),p=n(375),f=n(41),b=n(106);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const m="if (isnan(x)) return x;";e.a=m},function(t,e,n){"use strict";n.d(e,"_28",(function(){return image})),n.d(e,"_37",(function(){return ua})),n.d(e,"_49",(function(){return la})),n.d(e,"_130",(function(){return oa})),n.d(e,"_117",(function(){return ca})),n.d(e,"_128",(function(){return ha})),n.d(e,"_139",(function(){return pa}));var a=n(92);n.d(e,"b",(function(){return a.a}));var s=n(418);n.d(e,"c",(function(){return s.a}));var i=n(419);n.d(e,"d",(function(){return i.a}));var o=n(20);n.d(e,"e",(function(){return o.a}));var c=n(420);n.d(e,"f",(function(){return c.a}));var u=n(240);n.d(e,"g",(function(){return u.a}));var l=n(241);n.d(e,"h",(function(){return l.a}));var h=n(242);n.d(e,"i",(function(){return h.a}));var p=n(243);n.d(e,"j",(function(){return p.a}));var f=n(421);n.d(e,"k",(function(){return f.a}));var b=n(422);n.d(e,"l",(function(){return b.a}));var m=n(423);n.d(e,"m",(function(){return m.a}));var g=n(244);n.d(e,"n",(function(){return g.a}));var v=n(424);n.d(e,"o",(function(){return v.a}));var w=n(176);n.d(e,"p",(function(){return w.a}));var y=n(425);n.d(e,"q",(function(){return y.a}));var O=n(426);n.d(e,"r",(function(){return O.a}));var x=n(136);n.d(e,"w",(function(){return x.a}));var A=n(112);n.d(e,"s",(function(){return A.a}));var I=n(428);n.d(e,"t",(function(){return I.a}));var j=n(429);n.d(e,"u",(function(){return j.a}));var C=n(430);n.d(e,"v",(function(){return C.a}));var _=n(246);n.d(e,"x",(function(){return _.a}));var k=n(431);n.d(e,"y",(function(){return k.a}));var S=n(432);n.d(e,"A",(function(){return S.a}));var T=n(177);n.d(e,"B",(function(){return T.a}));var L=n(68);n.d(e,"C",(function(){return L.a}));var B=n(13);n.d(e,"D",(function(){return B.a}));var N=n(433);n.d(e,"E",(function(){return N.a}));var E=n(434);n.d(e,"F",(function(){return E.a}));var M=n(110);n.d(e,"G",(function(){return M.a}));var F=n(79);n.d(e,"H",(function(){return F.a}));var W=n(48);n.d(e,"I",(function(){return W.a}));var z=n(435);n.d(e,"J",(function(){return z.a}));var P=n(436);n.d(e,"K",(function(){return P.a}));var G=n(437);n.d(e,"L",(function(){return G.a}));var V=n(438);n.d(e,"M",(function(){return V.a}));var H=n(247);n.d(e,"N",(function(){return H.a}));var Z=n(93);n.d(e,"O",(function(){return Z.a}));var X=n(248);n.d(e,"P",(function(){return X.a}));var U=n(439);n.d(e,"Q",(function(){return U.a}));var $=n(440);n.d(e,"R",(function(){return $.a}));var Y=n(179);n.d(e,"S",(function(){return Y.a}));var J=n(250);n.d(e,"T",(function(){return J.a}));var K=n(180);n.d(e,"V",(function(){return K.a}));var tt=n(181);n.d(e,"W",(function(){return tt.a}));var nt=n(441);n.d(e,"X",(function(){return nt.a}));var rt=n(251);n.d(e,"Y",(function(){return rt.a}));var at=n(137);n.d(e,"Z",(function(){return at.a}));var st=n(442);n.d(e,"_0",(function(){return st.a}));var ot=n(252);n.d(e,"_1",(function(){return ot.a}));var ct=n(16);n.d(e,"_2",(function(){return ct.a}));var ut=n(253);n.d(e,"_3",(function(){return ut.a}));var lt=n(254);n.d(e,"_4",(function(){return lt.a}));var dt=n(255);n.d(e,"_6",(function(){return dt.a}));var ht=n(182);n.d(e,"_7",(function(){return ht.a}));var pt=n(443);n.d(e,"_9",(function(){return pt.a}));var ft=n(138);n.d(e,"_10",(function(){return ft.a}));var bt=n(444);n.d(e,"_11",(function(){return bt.a}));var mt=n(256);n.d(e,"_12",(function(){return mt.a}));var gt=n(61);n.d(e,"_13",(function(){return gt.a}));var vt=n(115);n.d(e,"_14",(function(){return vt.a}));var wt=n(445);n.d(e,"_15",(function(){return wt.a}));var yt=n(257);n.d(e,"_16",(function(){return yt.a}));var Ot=n(113);n.d(e,"_18",(function(){return Ot.a}));var xt=n(184);n.d(e,"_19",(function(){return xt.a}));var At=n(175);n.d(e,"_20",(function(){return At.a}));var jt=n(140);n.d(e,"_22",(function(){return jt.a}));var Ct=n(62);n.d(e,"_24",(function(){return Ct.a}));var _t=n(94);n.d(e,"_25",(function(){return _t.a}));var kt=n(141);n.d(e,"_27",(function(){return kt.a}));var St=n(446);n.d(e,"_31",(function(){return St.a}));var Tt=n(447);n.d(e,"_32",(function(){return Tt.a}));var Lt=n(448);n.d(e,"_33",(function(){return Lt.a}));var Bt=n(185);n.d(e,"_34",(function(){return Bt.a}));var Nt=n(142);n.d(e,"_35",(function(){return Nt.a}));var Mt=n(82);n.d(e,"_36",(function(){return Mt.a}));var Dt=n(449);n.d(e,"_38",(function(){return Dt.a}));var Ft=n(258);n.d(e,"_39",(function(){return Ft.a}));var Rt=n(117);n.d(e,"_40",(function(){return Rt.a}));var Wt=n(259);n.d(e,"_41",(function(){return Wt.a}));var zt=n(450);n.d(e,"_42",(function(){return zt.a}));var Pt=n(451);n.d(e,"_43",(function(){return Pt.a}));var Gt=n(186);n.d(e,"_44",(function(){return Gt.a}));var Vt=n(95);n.d(e,"_45",(function(){return Vt.a}));var Ht=n(143);n.d(e,"_46",(function(){return Ht.a}));var Zt=n(187);n.d(e,"_47",(function(){return Zt.a}));var Xt=n(261);n.d(e,"_48",(function(){return Xt.a}));var Ut=n(452);n.d(e,"_50",(function(){return Ut.a}));var $t=n(54);n.d(e,"_51",(function(){return $t.a}));var Yt=n(114);n.d(e,"_52",(function(){return Yt.a}));var Jt=n(189);n.d(e,"_53",(function(){return Jt.a}));var qt=n(453);n.d(e,"_54",(function(){return qt.a}));var Kt=n(454);n.d(e,"_55",(function(){return Kt.a}));var Qt=n(144);n.d(e,"_56",(function(){return Qt.a}));var te=n(145);n.d(e,"_57",(function(){return te.a}));var ee=n(455);n.d(e,"_58",(function(){return ee.a}));var ne=n(183);n.d(e,"_59",(function(){return ne.a}));var re=n(146);n.d(e,"_60",(function(){return re.a}));var ae=n(262);n.d(e,"_61",(function(){return ae.a}));var se=n(263);n.d(e,"_62",(function(){return se.a}));var ie=n(456);n.d(e,"_63",(function(){return ie.a}));var oe=n(9);n.d(e,"_65",(function(){return oe.a}));var ce=n(457);n.d(e,"_66",(function(){return ce.a}));var ue=n(458);n.d(e,"_67",(function(){return ue.a}));var le=n(36);n.d(e,"_68",(function(){return le.a}));var pe=n(190);n.d(e,"_70",(function(){return pe.a}));var fe=n(191);n.d(e,"_71",(function(){return fe.a}));var be=n(96);n.d(e,"_72",(function(){return be.a}));var ge=n(459);n.d(e,"_73",(function(){return ge.a}));var ve=n(460);n.d(e,"_75",(function(){return ve.a}));var we=n(83);n.d(e,"_76",(function(){return we.a}));var ye=n(461);n.d(e,"_77",(function(){return ye.a}));var Oe=n(462);n.d(e,"_78",(function(){return Oe.a}));var xe=n(463);n.d(e,"_79",(function(){return xe.a}));var Ae=n(464);n.d(e,"_80",(function(){return Ae.a}));var Ie=n(264);n.d(e,"_81",(function(){return Ie.a}));var je=n(81);n.d(e,"_82",(function(){return je.a}));var Ce=n(192);n.d(e,"_83",(function(){return Ce.a}));var _e=n(239);n.d(e,"_84",(function(){return _e.a}));var ke=n(265);n.d(e,"_85",(function(){return ke.a}));var Se=n(465);n.d(e,"_86",(function(){return Se.a}));var Te=n(466);n.d(e,"_87",(function(){return Te.a}));var Le=n(467);n.d(e,"_88",(function(){return Le.a}));var Be=n(468);n.d(e,"_89",(function(){return Be.a}));var Ne=n(469);n.d(e,"_90",(function(){return Ne.a}));var Ee=n(267);n.d(e,"_91",(function(){return Ee.a}));var Fe=n(478);n.d(e,"_92",(function(){return Fe.a}));var Re=n(193);n.d(e,"_93",(function(){return Re.a}));var We=n(479);n.d(e,"_94",(function(){return We.a}));var ze=n(194);n.d(e,"_95",(function(){return ze.a}));var Pe=n(150);n.d(e,"_96",(function(){return Pe.a}));var Ge=n(480);n.d(e,"_97",(function(){return Ge.a}));var Ve=n(119);n.d(e,"_98",(function(){return Ve.a}));var Ze=n(195);n.d(e,"_99",(function(){return Ze.a}));var Xe=n(7);n.d(e,"_100",(function(){return Xe.a}));var Ue=n(70);n.d(e,"_101",(function(){return Ue.a}));var $e=n(481);n.d(e,"_102",(function(){return $e.a}));var Ye=n(482);n.d(e,"_103",(function(){return Ye.a}));var Je=n(483);n.d(e,"_104",(function(){return Je.a}));var qe=n(484);n.d(e,"_105",(function(){return qe.a}));var Ke=n(268);n.d(e,"_107",(function(){return Ke.a}));var Qe=n(269);n.d(e,"_108",(function(){return Qe.a}));var tn=n(22);n.d(e,"_109",(function(){return tn.a}));var en=n(270);n.d(e,"_112",(function(){return en.a}));var nn=n(271);n.d(e,"_113",(function(){return nn.a}));var rn=n(485);n.d(e,"_114",(function(){return rn.a}));var an=n(111);n.d(e,"_115",(function(){return an.a}));var sn=n(486);n.d(e,"_116",(function(){return sn.a}));var on=n(272);n.d(e,"_118",(function(){return on.a}));var cn=n(273);n.d(e,"_119",(function(){return cn.a}));var un=n(42);n.d(e,"_120",(function(){return un.a}));var ln=n(487);n.d(e,"_121",(function(){return ln.a}));var dn=n(488);n.d(e,"_122",(function(){return dn.a}));var hn=n(489);n.d(e,"_123",(function(){return hn.a}));var pn=n(490);n.d(e,"_124",(function(){return pn.a}));var fn=n(491);n.d(e,"_125",(function(){return fn.a}));var bn=n(260);n.d(e,"_126",(function(){return bn.a}));var mn=n(147);n.d(e,"_127",(function(){return mn.a}));var gn=n(196);n.d(e,"_17",(function(){return gn.a}));var vn=n(197);n.d(e,"_26",(function(){return vn.a}));var wn=n(274);n.d(e,"_30",(function(){return wn.a}));var yn=n(198);n.d(e,"_106",(function(){return yn.a}));var On=n(98);n.d(e,"_131",(function(){return On.a}));var xn=n(56);n.d(e,"_132",(function(){return xn.a}));var An=n(31);n.d(e,"_133",(function(){return An.a}));var In=n(199);n.d(e,"_134",(function(){return In.a}));var jn=n(151);n.d(e,"_135",(function(){return jn.a}));var Cn=n(84);n.d(e,"_136",(function(){return Cn.a}));var _n=n(120);n.d(e,"_137",(function(){return _n.a}));var kn=n(492);n.d(e,"_138",(function(){return kn.a}));var Sn=n(18);n.d(e,"_140",(function(){return Sn.a}));var Tn=n(26);n.d(e,"_141",(function(){return Tn.a}));var Ln=n(493);n.d(e,"_142",(function(){return Ln.a}));var Bn=n(245);n.d(e,"_143",(function(){return Bn.a}));var Nn=n(135);n.d(e,"_144",(function(){return Nn.a}));var En=n(85);n.d(e,"_145",(function(){return En.a}));var Mn=n(200);n.d(e,"_146",(function(){return Mn.a}));var Dn=n(275);n.d(e,"_147",(function(){return Dn.a}));var Fn=n(494);n.d(e,"_148",(function(){return Fn.a}));var Rn=n(495);n.d(e,"_149",(function(){return Rn.a}));var Wn=n(496);n.d(e,"_150",(function(){return Wn.a}));var zn=n(497);n.d(e,"_151",(function(){return zn.a}));var Pn=n(116);n.d(e,"_152",(function(){return Pn.a}));var Gn=n(276);n.d(e,"_153",(function(){return Gn.a}));var Vn=n(498);n.d(e,"_155",(function(){return Vn.a}));var Hn=n(277);n.d(e,"_156",(function(){return Hn.a}));var Zn=n(201);n.d(e,"_157",(function(){return Zn.a}));var Xn=n(121);n.d(e,"_158",(function(){return Xn.a}));var Un=n(499);n.d(e,"_159",(function(){return Un.a}));var $n=n(500);n.d(e,"_160",(function(){return $n.a}));var Yn=n(49);n.d(e,"_161",(function(){return Yn.a}));var Jn=n(278);n.d(e,"_162",(function(){return Jn.a}));var qn=n(118);n.d(e,"_163",(function(){return qn.a}));var Kn=n(21);n.d(e,"_164",(function(){return Kn.a}));var Qn=n(501);n.d(e,"z",(function(){return Qn.a}));var er=n(71);n.d(e,"_154",(function(){return er.a}));var nr=n(139);n.d(e,"_69",(function(){return nr.a}));var rr=n(502);n.d(e,"_64",(function(){return rr.a}));var ir=n(503);n.d(e,"_110",(function(){return ir.a}));var or=n(188);n.d(e,"_111",(function(){return or.a}));var cr=n(504);n.d(e,"_129",(function(){return cr.a}));var ur=n(506);n.d(e,"_23",(function(){return ur.a}));var lr=n(507);n.d(e,"_5",(function(){return lr.a}));var dr=n(153);n.d(e,"U",(function(){return dr.a})),n.d(e,"_8",(function(){return dr.b}));var pr=n(509);n.d(e,"_29",(function(){return pr.a}));var br=n(2);n.d(e,"_74",(function(){return br.b})),n.d(e,"a",(function(){return br.a}));var mr=n(510),gr=n(514),vr=n(282),wr=n(283),yr=n(515),Or=n(516),xr=n(517),Ir=n(518),jr=n(519),Cr=n(520),_r=n(521),kr=n(522),Lr=n(524),Br=n(525),Nr=n(526),Er=n(527),Mr=n(284),Dr=n(285),Rr=n(528),Wr=n(529),zr=n(530),Pr=n(531),Gr=n(532),Vr=n(533),Zr=n(63),Xr=n(534),Ur=n(535),$r=n(536),Yr=n(537),Jr=n(538),qr=n(539),Kr=n(540),Qr=n(541),ta=n(542),ea=n(543),na=n(544),ra=n(545),aa=n(546),sa=n(547),ia=n(548);n.d(e,"_21",(function(){return mr}));
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const oa={fft:gn.a,ifft:vn.a,rfft:yn.a,irfft:wn.a},ca={hammingWindow:gr.a,hannWindow:vr.a,frame:wr.a,stft:yr.a},image={flipLeftRight:xr.a,grayscaleToRGB:Ir.a,resizeNearestNeighbor:Dr.a,resizeBilinear:Mr.a,rgbToGrayscale:jr.a,rotateWithOffset:Cr.a,cropAndResize:Or.a,nonMaxSuppression:_r.a,nonMaxSuppressionAsync:kr.a,nonMaxSuppressionWithScore:Lr.a,nonMaxSuppressionWithScoreAsync:Br.a,nonMaxSuppressionPadded:Nr.a,nonMaxSuppressionPaddedAsync:Er.a,threshold:Rr.a,transform:Wr.a},ua={bandPart:zr.a,gramSchmidt:Pr.a,qr:Gr.a},la={absoluteDifference:Vr.a,computeWeightedLoss:Zr.a,cosineDistance:Xr.a,hingeLoss:Ur.a,huberLoss:$r.a,logLoss:Yr.a,meanSquaredError:Jr.a,sigmoidCrossEntropy:qr.a,softmaxCrossEntropy:Kr.a},ha={sparseFillEmptyRows:Qr.a,sparseReshape:ta.a,sparseSegmentMean:ea.a,sparseSegmentSum:na.a},pa={stringNGrams:ra.a,stringSplit:aa.a,stringToHashBucketFast:sa.a,staticRegexReplace:ia.a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return b})),n.d(e,"k",(function(){return m})),n.d(e,"l",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return y})),n.d(e,"o",(function(){return w})),n.d(e,"p",(function(){return x})),n.d(e,"q",(function(){return O})),n.d(e,"r",(function(){return A})),n.d(e,"s",(function(){return I})),n.d(e,"t",(function(){return j})),n.d(e,"u",(function(){return C})),n.d(e,"v",(function(){return _})),n.d(e,"w",(function(){return k})),n.d(e,"x",(function(){return S})),n.d(e,"y",(function(){return T})),n.d(e,"z",(function(){return L})),n.d(e,"A",(function(){return B})),n.d(e,"B",(function(){return N})),n.d(e,"C",(function(){return E})),n.d(e,"F",(function(){return W})),n.d(e,"G",(function(){return z})),n.d(e,"H",(function(){return P})),n.d(e,"I",(function(){return G})),n.d(e,"J",(function(){return V})),n.d(e,"K",(function(){return H})),n.d(e,"L",(function(){return Z})),n.d(e,"M",(function(){return X})),n.d(e,"N",(function(){return U})),n.d(e,"O",(function(){return $})),n.d(e,"P",(function(){return Y})),n.d(e,"Q",(function(){return J})),n.d(e,"R",(function(){return K})),n.d(e,"S",(function(){return tt})),n.d(e,"D",(function(){return M})),n.d(e,"E",(function(){return F})),n.d(e,"T",(function(){return nt})),n.d(e,"U",(function(){return rt})),n.d(e,"V",(function(){return at})),n.d(e,"W",(function(){return st}));var a=n(315);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const{addImpl:s,bincountImpl:i,bincountReduceImpl:o,bitwiseAndImpl:c,castImpl:u,ceilImpl:l,concatImpl:h,equalImpl:p,expImpl:f,expm1Impl:b,floorImpl:m,gatherNdImpl:g,gatherV2Impl:v,greaterImpl:w,greaterEqualImpl:y,lessImpl:O,lessEqualImpl:x,linSpaceImpl:A,logImpl:I,maxImpl:j,maximumImpl:C,minimumImpl:_,multiplyImpl:k,negImpl:S,notEqualImpl:T,prodImpl:L,raggedGatherImpl:B,raggedRangeImpl:N,raggedTensorToTensorImpl:E,rangeImpl:M,rsqrtImpl:F,scatterImpl:W,sigmoidImpl:z,simpleAbsImpl:P,sliceImpl:G,sparseFillEmptyRowsImpl:V,sparseReshapeImpl:H,sparseSegmentReductionImpl:Z,sqrtImpl:X,staticRegexReplaceImpl:U,stridedSliceImpl:$,stringNGramsImpl:Y,stringSplitImpl:J,stringToHashBucketFastImpl:K,subImpl:tt,tileImpl:nt,topKImpl:rt,transposeImpl:at,uniqueImpl:st}=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(o.a)(t,"x","cast");if(!c.isValidDtype(e))throw new Error(`Failed to cast to unknown dtype ${e}`);if("string"===e&&"string"!==n.dtype||"string"!==e&&"string"===n.dtype)throw new Error("Only strings can be casted to strings");const a={x:n},u={dtype:e};return s.a.runKernel(i.y,a,u)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({cast_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=undefined;return s(t,Object(c.a)(e),n)}function s(t,e,n){return({inputs:a,attrs:s,backend:c})=>{const{x:u}=a;Object(o.a)(u,t);const l=c,h=l.data.get(u.dataId).values;let p;if("string"===u.dtype){if(!Array.isArray(h))throw new Error("String tensor's value was not an instance of Array");p=i._164.fromUint8ToStringArray(h)}else p=h;const f=n||u.dtype,b=e(p,f,s);return l.makeTensorInfo(u.shape,f,b)}}e.a=a,e.b=s;var i=n(0),o=n(8),c=n(59)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/class a extends Error{constructor(t){super(t),Object.setPrototypeOf(this,a.prototype)}}e.b=a;class s extends Error{constructor(t){super(t),Object.setPrototypeOf(this,s.prototype)}}e.d=s;class i extends Error{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}e.e=i;class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}e.c=o;class c extends Error{constructor(t){super(t),Object.setPrototypeOf(this,c.prototype)}}e.a=c;class u extends Error{constructor(t){super(t),Object.setPrototypeOf(this,u.prototype)}}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","div"),a=Object(c.a)(e,"b","div");if([n,a]=Object(o.makeTypesMatch)(n,a),"int32"===n.dtype&&"int32"===a.dtype)return Object(u.a)(n,a);const l={a:n,b:a},h={};return s.a.runKernel(i._73,l,h)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(175),l=n(2);const h=Object(l.b)({div_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{shape:shape}=a,u=n,l=s._408.sizeFromShape(c.shape),h=s._408.inferFromImplicitShape(shape,l),p=s._408.sizeFromShape(h);s._408.assert(l===p,(()=>`The new shape (${h}) has ${p} elements and the old shape (${c.shape}) has ${l} elements. The new shape and old shape must have the same number of elements.`));const f=u.texData.get(c.dataId);return!f.isPacked||Object(o.isReshapeFree)(c.shape,h)||null!==f.texture&&Object(o.isReshapeFree)(f.shape,h)?(u.incRef(c.dataId),{dataId:c.dataId,shape:h,dtype:c.dtype}):Object(i.a)(c,h,u)}e.a=a;var s=n(0),i=n(1059),o=n(43);const c={kernelName:s._92,backendName:"webgl",kernelFunc:a};e.b=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","sub"),a=Object(c.a)(e,"b","sub");[n,a]=Object(o.makeTypesMatch)(n,a);const u={a:n,b:a};return s.a.runKernel(i._113,u)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(2);const l=Object(u.b)({sub_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=t.length,a=[];for(let s=0;s<n;s++){const i=n-1-s,o=t[i]||1,c=undefined;(e[e.length-1-s]||1)>1&&1===o&&a.unshift(i)}return a}function s(t,e){const n=[];for(let a=0;a<e.length;a++){const s=t[t.length-a-1],i=e.length-a-1,o=e[i];(null==s||1===s&&o>1)&&n.unshift(i)}return n}function i(t,e){const n=Math.max(t.length,e.length),a=new Array(n);for(let s=0;s<n;s++){let i=t[t.length-s-1];null==i&&(i=1);let o=e[e.length-s-1];if(null==o&&(o=1),1===i)a[n-s-1]=o;else if(1===o)a[n-s-1]=i;else{if(i!==o){const n=undefined;throw Error(`Operands could not be broadcast together with shapes ${t} and ${e}.`)}a[n-s-1]=i}}return a}Object.defineProperty(e,"__esModule",{value:true}),e.getBroadcastDims=a,e.getReductionAxes=s,e.assertAndGetBroadcastShape=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","add"),a=Object(c.a)(e,"b","add");[n,a]=Object(o.makeTypesMatch)(n,a);const u={a:n,b:a};return s.a.runKernel(i.d,u)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(2);const add=Object(u.b)({add_:a});e.a=add},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","zerosLike")};return s.a.runKernel(i._126,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({zerosLike_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){if((Object(s.isTypedArray)(t)&&"string"!==e||Array.isArray(t))&&"complex64"!==e)throw new Error("Error creating a new Scalar: value must be a primitive (number|boolean|string)");if("string"===e&&Object(s.isTypedArray)(t)&&!(t instanceof Uint8Array))throw new Error("When making a scalar from encoded string, the value must be `Uint8Array`.");const shape=[],n=[];return Object(i.a)(t,shape,n,e)}e.a=a;var s=n(5),i=n(67)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){if(t.dtype===e.dtype)return[t,e];const n=Object(h.e)(t.dtype,e.dtype);return[t.cast(n),e.cast(n)]}function s(t,e){Object(p.assert)(t.dtype===e.dtype,(()=>`The dtypes of the first(${t.dtype}) and second(${e.dtype}) input must match`))}function i(t,e){return e.some((e=>e.id===t.id))}function o(t){const list=[],e=undefined;return c(t,list,new Set),list}function c(container,list,t){if(null==container)return;if(container instanceof l.a)return list.push(container),void 0;if(!u(container))return;const e=container;for(const n in e){const a=e[n];t.has(a)||(t.add(a),c(a,list,t))}}function u(t){return Array.isArray(t)||"object"==typeof t}Object.defineProperty(e,"__esModule",{value:true}),e.makeTypesMatch=a,e.assertTypesMatch=s,e.isTensorInList=i,e.getTensorsInContainer=o;var l=n(6),h=n(108),p=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e){if(Array.isArray(t)){let n=[];for(let a=0;a<e;a++)n=n.concat(t);return n}{const n=new Array(e);return n.fill(t),n}}function s(t,e){if(!t)throw new T.a(e)}function i(t,e){let counter=0;for(const n of t)n===e&&counter++;return counter}function o(t){return 1===t.length?t[0]:t}function c(t){return Array.isArray(t)?t:[t]}function u(t){const e=c(t);let n="";for(const t of e){if(null==t.id)throw new T.e(`Object ${t} passed to objectListUid without an id`);""!==n&&(n+=", "),n=`${n}${Math.abs(t.id)}`}return n}function l(t){const e=undefined,n=t.replace(/(.)([A-Z][a-z0-9]+)/g,"$1_$2").replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase();return"_"!==n[0]?n:"private"+n}function h(t){return t.length<=1||-1===t.indexOf("_")?t:t.replace(/[_]+(\w|$)/g,((t,e)=>e.toUpperCase()))}function p(instance){if(null==instance)return null;const t={};return t.className=instance.getClassName(),t.config=instance.getConfig(),t}function f(t){if(null!=t&&"object"==typeof t)if(Array.isArray(t))t.forEach((t=>f(t)));else{const fields=Object.keys(t);for(const field of fields){const e=t[field];null!=e&&"object"==typeof e&&(Array.isArray(e)||"ndarray"!==e.type||"number"!=typeof e.value?f(e):t[field]=e.value)}}}function b(t,e={},n={},a="object",s=false){if("string"==typeof t){const s=t;let i;if(s in n)i=n[s];else if(s in L)i=L[s];else if(i=e[s],null==i)throw new T.e(`Unknown ${a}: ${t}. This may be due to one of the following reasons:\n1. The ${a} is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code.\n2. The custom ${a} is defined in JavaScript, but is not registered properly with tf.serialization.registerClass().`);return i}{const i=t;if(null==i.className||null==i.config)throw new T.e(`${a}: Improper config format: ${JSON.stringify(i)}.\n'className' and 'config' must set.`);const o=i.className;let c,u;if(o in n?[c,u]=n[o]:o in L?[c,u]=L.className:o in e&&([c,u]=e[o]),null==c)throw new T.e(`Unknown ${a}: ${o}. This may be due to one of the following reasons:\n1. The ${a} is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code.\n2. The custom ${a} is defined in JavaScript, but is not registered properly with tf.serialization.registerClass().`);if(null!=u){const t={};for(const e of Object.keys(L))t[e]=L[e];for(const e of Object.keys(n))t[e]=n[e];const e=undefined;i.config.customObjects=t;const a=Object.assign({},L);for(const t of Object.keys(n))L[t]=n[t];f(i.config);const o=u(c,i.config,n,s);return L=Object.assign({},a),o}{const t=Object.assign({},L);for(const t of Object.keys(n))L[t]=n[t];const e=new c(i.config);return L=Object.assign({},t),e}}}function m(t,e){return t<e?-1:t>e?1:0}function g(t,e){return-1*m(t,e)}function v(t){if("float32"===t)return"float32";throw new T.e(`Invalid dtype: ${t}`)}function w(t,e){if(null==t||null==e)return t===e;if(t.length!==e.length)return false;for(let n=0;n<t.length;++n)if(t[n]!==e[n])return false;return true}function y(t){if(null==t)return t;const e=[];for(const n of t)-1===e.indexOf(n)&&e.push(n);return e}function O(t){if(null==t)throw new T.e(`Invalid value in obj: ${JSON.stringify(t)}`);for(const e in t)if(t.hasOwnProperty(e))return false;return true}function x(t,e,n){if(null!=n&&t.indexOf(n)<0)throw new T.e(`${n} is not a valid ${e}. Valid values are ${t} or null/undefined.`)}function A(t,e,n=0,a=1/0){return s(n>=0),s(a>=n),Array.isArray(t)&&t.length>=n&&t.length<=a&&t.every((t=>typeof t===e))}function I(t,e){Array.isArray(t)?(S._408.assert(t.length>0,(()=>`${e} is unexpectedly an empty array.`)),t.forEach(((t,n)=>I(t,`element ${n+1} of ${e}`)))):S._408.assert(Number.isInteger(t)&&t>0,(()=>`Expected ${e} to be a positive integer, but got ${j(t)}.`))}function j(t){return null===t?"null":Array.isArray(t)?"["+t.map((t=>j(t))).join(",")+"]":"string"==typeof t?`"${t}"`:`${t}`}function C(t,e,n){let a=null!=n?n():S._408.now(),s;const i=undefined;return(...i)=>{const o=null!=n?n():S._408.now();return o-a<e||(a=o,s=t(...i)),s}}function _(t){return"relu"===t?"relu":"linear"===t?"linear":"elu"===t?"elu":null}function k(...t){s(t.length>0,"arrayOfValues is empty");for(const e of t)s(Array.isArray(e),"one of the values is not an array"),s(e.length>0,"one of the values is empty");return t.reduce(((products,t)=>0===products.length?t.map((t=>[t])):t.map((t=>products.map((e=>[...e,t])))).reduce(((t,e)=>t.concat(e)),[])),[])}e.j=a,e.a=s,e.e=i,e.m=o,e.o=c,e.p=l,e.n=h,e.l=p,e.g=b,e.k=g,e.q=y,e.h=O,e.d=x,e.c=A,e.b=I,e.f=C,e.i=_;var S=n(0),T=n(15);let L={}},function(t,e,n){"use strict";function a(t){t=b.o(t);const e=[];for(const n of t)e.push(n.shape);return b.m(e)}function s(t){return"float32"}function i(t,e,n){if((null==e||null!=n&&n>0)&&(e=t.sourceLayer,n=t.nodeIndex),0===e.inboundNodes.length)return[t];{const t=e.inboundNodes[n];if(0===t.inboundLayers.length)return t.inputTensors;{const e=[];for(let n=0;n<t.inboundLayers.length;n++){const a=undefined,s=undefined,o=undefined,c=i(t.inputTensors[n],t.inboundLayers[n],t.nodeIndices[n]);for(const t of c)-1===e.indexOf(t)&&e.push(t)}return e}}}function o(t){let e=true;for(const n of b.o(t))if(!(n instanceof y)){e=false;break}return e}function c(t){let e=true;for(const n of b.o(t))if(n instanceof y){e=false;break}return e}e.e=i;var u=n(0),l=n(124),h=n(51),p=n(15),f=n(58),b=n(24),m=n(29),g=n(297),v=n(156);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class w{constructor(t){this.dtype=t.dtype,this.shape=t.shape,null!=t.shape?this.ndim=t.shape.length:this.ndim=t.ndim,this.maxNDim=t.maxNDim,this.minNDim=t.minNDim,this.axes=t.axes||{}}}e.a=w;class y{constructor(t,shape,e,n,a,s,i){this.dtype=t,this.shape=shape,this.sourceLayer=e,this.inputs=n,this.callArgs=a,this.outputTensorIndex=i,this.id=Object(l.a)(),null!=s&&(this.originalName=Object(h.e)(s),this.name=Object(h.f)(this.originalName)),this.rank=shape.length}}e.d=y;let O=0;class x{constructor(t,e){this.callArgs=e,this.id=O++,this.outboundLayer=t.outboundLayer,this.inboundLayers=t.inboundLayers,this.nodeIndices=t.nodeIndices,this.tensorIndices=t.tensorIndices,this.inputTensors=t.inputTensors,this.outputTensors=t.outputTensors,this.inputMasks=t.inputMasks,this.outputMasks=t.outputMasks,this.inputShapes=t.inputShapes,this.outputShapes=t.outputShapes;for(const e of t.inboundLayers)null!=e&&e.outboundNodes.push(this);t.outboundLayer.inboundNodes.push(this)}getConfig(){const t=[];for(const e of this.inboundLayers)null!=e?t.push(e.name):t.push(null);return{outboundLayer:this.outboundLayer?this.outboundLayer.name:null,inboundLayers:t,nodeIndices:this.nodeIndices,tensorIndices:this.tensorIndices}}}e.c=x;let A=0;class I extends u._349.Serializable{constructor(t={}){super(),this._callHook=null,this._addedWeightNames=[],this._stateful=false,this.id=A++,this.activityRegularizer=null,this.inputSpec=null,this.supportsMasking=false,this._trainableWeights=[],this._nonTrainableWeights=[],this._losses=[],this._updates=[],this._built=false,this.inboundNodes=[],this.outboundNodes=[];let e=t.name;if(!e){const t=this.getClassName();e=b.p(t)+"_"+Object(l.b)(t)}if(this.name=e,this.trainable_=null==t.trainable||t.trainable,null!=t.inputShape||null!=t.batchInputShape){let e;if(null!=t.batchInputShape)e=t.batchInputShape;else if(null!=t.inputShape){let n=null;null!=t.batchSize&&(n=t.batchSize),e=[n].concat(t.inputShape)}this.batchInputShape=e;let n=t.dtype;null==n&&(n=t.inputDType),null==n&&(n="float32"),this.dtype=n}null!=t.weights?this.initialWeights=t.weights:this.initialWeights=null,this._refCount=null,this.fastWeightInitDuringBuild=false}static nodeKey(t,e){return t.name+"_ib-"+e.toString()}getNodeAtIndex(t,e){if(0===this.inboundNodes.length)throw new p.d(`The layer has never been called and thus has no defined ${e}.`);if(this.inboundNodes.length<=t)throw new p.e(`Asked to get ${e} at node ${t}, but the layer has only ${this.inboundNodes.length} inbound nodes.`);return this.inboundNodes[t]}getInputAt(t){return b.m(this.getNodeAtIndex(t,"input").inputTensors)}getOutputAt(t){return b.m(this.getNodeAtIndex(t,"output").outputTensors)}get input(){if(this.inboundNodes.length>1)throw new p.b(`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 p.b(`Layer ${this.name} is not connected, no input to return.`);return b.m(this.getNodeAtIndex(0,"input").inputTensors)}get output(){if(0===this.inboundNodes.length)throw new p.b(`Layer ${this.name} has no inbound nodes.`);if(this.inboundNodes.length>1)throw new p.b(`Layer ${this.name} has multiple inbound nodes, hence the notion of "layer output" is ill-defined. Use \`getOutputAt(nodeIndex)\` instead.`);return b.m(this.getNodeAtIndex(0,"output").outputTensors)}get losses(){return this._losses}calculateLosses(){return this.losses.map((t=>t()))}get updates(){return this._updates}get built(){return this._built}set built(t){this._built=t}get trainable(){return this.trainable_}set trainable(t){this._trainableWeights.forEach((e=>e.trainable=t)),this.trainable_=t}get trainableWeights(){return this.trainable_?this._trainableWeights.filter((t=>t.trainable)):[]}set trainableWeights(t){this._trainableWeights=t}get nonTrainableWeights(){return this.trainable?this._trainableWeights.filter((t=>!t.trainable)).concat(this._nonTrainableWeights):this._trainableWeights.concat(this._nonTrainableWeights)}set nonTrainableWeights(t){this._nonTrainableWeights=t}get weights(){return this.trainableWeights.concat(this.nonTrainableWeights)}get stateful(){return this._stateful}resetStates(){if(!this.stateful)throw new Error("Cannot call the resetStates() method of a non-stateful Layer object.")}assertInputCompatibility(t){const e=b.o(t);if(null==this.inputSpec||0===this.inputSpec.length)return;const n=b.o(this.inputSpec);if(e.length!==n.length)throw new p.e(`Layer ${this.name} expects ${n.length} inputs, but it received ${e.length} input tensors. Input received: ${t}`);for(let t=0;t<e.length;t++){const a=e[t],s=n[t];if(null==s)continue;const i=a.rank;if(null!=s.ndim&&i!==s.ndim)throw new p.e(`Input ${t} is incompatible with layer ${this.name}: expected ndim=${s.ndim}, found ndim=${i}`);if(null!=s.maxNDim&&i>s.maxNDim)throw new p.e(`Input ${t} is incompatible with layer ${this.name}: expected max_ndim=${s.maxNDim}, found ndim=${i}`);if(null!=s.minNDim&&i<s.minNDim)throw new p.e(`Input ${t} is incompatible with layer ${this.name}: expected min_ndim=${s.minNDim}, found ndim=${i}.`);if(null!=s.dtype&&a.dtype!==s.dtype)throw new p.e(`Input ${t} is incompatible with layer ${this.name} : expected dtype=${s.dtype}, found dtype=${a.dtype}.`);if(s.axes){const e=a.shape;for(const n in s.axes){const a=Number(n),i=s.axes[n],o=a>=0?e[a]:e[e.length+a];if(null!=i&&-1===[i,null].indexOf(o))throw new p.e(`Input ${t} is incompatible with layer ${this.name}: expected axis ${a} of input shape to have value ${i} but got shape ${e}.`)}}if(null!=s.shape)for(let e=0;e<s.shape.length;++e){const n=s.shape[e],i=a.shape[e];if(null!=n&&null!=i&&n!==i)throw new p.e(`Input ${t} is incompatible with layer ${this.name}: expected shape=${s.shape}, found shape=${a.shape}.`)}}}call(t,e){return t}invokeCallHook(t,e){null!=this._callHook&&this._callHook(t,e)}setCallHook(t){this._callHook=t}clearCallHook(){this._callHook=null}apply(t,e){e=e||{},this.assertNotDisposed();const n=b.o(t),s=o(t),i=c(t);if(s===i)throw new p.e("Arguments to apply() must be all SymbolicTensors or all Tensors");return Object(h.g)(this.name,(()=>{if(!this.built){this.assertInputCompatibility(t);const e=[];for(const n of b.o(t))e.push(n.shape);this.build(b.m(e)),this.built=true,this.initialWeights&&this.setWeights(this.initialWeights),null===this._refCount&&i&&(this._refCount=1)}if(this.assertInputCompatibility(t),i){let a=this.call(t,e);this.supportsMasking&&this.setMaskMetadata(t,a);const s=b.o(a),i=[];for(let t of s)-1!==n.indexOf(t)&&(t=t.clone()),i.push(t);if(a=b.m(i),null!=this.activityRegularizer)throw new p.c("Layer invocation in the presence of activity regularizer(s) is not supported yet.");return a}{const n=a(t),s=this.computeOutputShape(n);let i;const o=(t,"float32");if(this.warnOnIncompatibleInputShape(Array.isArray(t)?n[0]:n),i=null!=s&&s.length>0&&Array.isArray(s[0])?s.map(((shape,index)=>new y(o,shape,this,b.o(t),e,this.name,index))):new y(o,s,this,b.o(t),e,this.name),this.addInboundNode(t,i,null,null,n,s,e),this._refCount++,null!=this.activityRegularizer)throw new p.c("Layer invocation in the presence of activity regularizer(s) is not supported yet.");return i}}))}warnOnIncompatibleInputShape(t){if(null!=this.batchInputShape)if(t.length!==this.batchInputShape.length)console.warn(`The rank of the input tensor provided (shape: ${JSON.stringify(t)}) does not match that of the batchInputShape (${JSON.stringify(this.batchInputShape)}) of the layer ${this.name}`);else{let e=false;this.batchInputShape.forEach(((n,a)=>{null!=n&&null!=t[a]&&t[a]!==n&&(e=true)})),e&&console.warn(`The shape of the input tensor (${JSON.stringify(t)}) does not match the expectation of layer ${this.name}: ${JSON.stringify(this.batchInputShape)}`)}}get outputShape(){if(null==this.inboundNodes||0===this.inboundNodes.length)throw new p.b(`The layer ${this.name} has never been called and thus has no defined output shape.`);const t=[];for(const e of this.inboundNodes){const n=JSON.stringify(e.outputShapes);-1===t.indexOf(n)&&t.push(n)}if(1===t.length){const t=this.inboundNodes[0].outputShapes;return Array.isArray(t)&&Array.isArray(t[0])&&1===t.length?t[0]:t}throw new p.b(`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 p.d(`You tried to call countParams() on ${this.name}, but the layer is not built yet. Build it first by calling build(batchInputShape).`);return g.a(this.weights)}build(t){this.built=true}getWeights(t=false){return Object(v.b)(t?this.trainableWeights:this.weights)}setWeights(t){Object(u._394)((()=>{const e=this.weights;if(e.length!==t.length)throw new p.e(`You called setWeights(weights) on layer "${this.name}" with a weight list of length ${t.length}, but the layer was expecting ${e.length} weights. Provided weights: ${t}...`);if(0===e.length)return;const n=[],a=Object(v.b)(e);for(let s=0;s<a.length;++s){const i=a[s],o=e[s],c=t[s];if(!u._408.arraysEqual(i.shape,c.shape))throw new p.e(`Layer weight shape ${i.shape} not compatible with provided weight shape ${c.shape}`);n.push([o,c])}Object(v.c)(n)}))}addWeight(t,shape,e,n,a,s,i,o){if(-1!==this._addedWeightNames.indexOf(t))throw new p.e(`Duplicate weight name ${t} for layer ${this.name}`);this._addedWeightNames.push(t),null==e&&(e="float32"),this.fastWeightInitDuringBuild&&(n=null!=o?o():Object(f.q)("zeros"));const c=n.apply(shape,e),u=new v.a(c,e,t,s,i);return c.dispose(),null!=a&&this.addLoss((()=>a.apply(u.read()))),null==s&&(s=true),s?this._trainableWeights.push(u):this._nonTrainableWeights.push(u),u}setFastWeightInitDuringBuild(t){this.fastWeightInitDuringBuild=t}addLoss(t){null==t||Array.isArray(t)&&0===t.length||(t=b.o(t),void 0!==this._losses&&null!==this._losses&&this.losses.push(...t))}computeOutputShape(t){return t}computeMask(t,e){if(!this.supportsMasking){if(null!=e){if(!Array.isArray(e))throw new TypeError(`Layer ${this.name} does not support masking, but was passed an inputMask.`);e.forEach((t=>{if(null!=t)throw new TypeError(`Layer ${this.name} does not support masking, but was passed an inputMask.`)}))}return null}return e}setMaskMetadata(t,e,n){if(!this.supportsMasking)return;const a=this.computeMask(t,n),s=b.o(e),i=b.o(a);if(s.length!==i.length)throw new Error(`${this.name} outputs ${s.length} tensors but ${s.length} masks for those tensors`);for(let t=0;t<s.length;t++)s[t].kerasMask=i[t]}addInboundNode(t,e,n,a,s,i,o=null){const c=b.o(t);e=b.o(e),n=b.o(n),a=b.o(a),s=m.d(s),i=m.d(i);const u=[],l=[],h=[];for(const t of c)u.push(t.sourceLayer),l.push(t.nodeIndex),h.push(t.tensorIndex);new x({outboundLayer:this,inboundLayers:u,nodeIndices:l,tensorIndices:h,inputTensors:c,outputTensors:e,inputMasks:n,outputMasks:a,inputShapes:s,outputShapes:i},o);for(let t=0;t<e.length;t++)e[t].sourceLayer=this,e[t].nodeIndex=this.inboundNodes.length-1,e[t].tensorIndex=t}getConfig(){const t={name:this.name,trainable:this.trainable};return null!=this.batchInputShape&&(t.batchInputShape=this.batchInputShape),null!=this.dtype&&(t.dtype=this.dtype),t}disposeWeights(){return this.weights.forEach((t=>t.dispose())),this.weights.length}assertNotDisposed(){if(0===this._refCount)throw new Error(`Layer '${this.name}' is already disposed.`)}dispose(){if(!this.built)throw new Error(`Cannot dispose Layer ${this.name} because it has not been built yet.`);if(null===this._refCount)throw new Error(`Cannot dispose Layer ${this.name} because it has not been used yet.`);this.assertNotDisposed();let t=0;return 0==--this._refCount&&(t=this.disposeWeights()),{refCountAfterDispose:this._refCount,numDisposedVariables:t}}}e.b=I},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){let a=Object(o.a)(t,"x","sum");"bool"===a.dtype&&(a=Object(c.a)(a,"int32"));const u={x:a},l={axis:e,keepDims:n};return s.a.runKernel(i._114,u,l)}var s=n(4),i=n(1),o=n(3),c=n(13),u=n(2);const l=Object(u.b)({sum_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,i){const o=e.inputParams[t];if(o&&void 0!==o.inputIndexStart){const t=o.inputIndexStart,c=0===o.inputIndexEnd?void 0:void 0===o.inputIndexEnd?t+1:o.inputIndexEnd,u=t<0?e.inputNames.length+t:t;if("tensor"===o.type)return s(e.inputNames[u],n,a,i);if("tensors"===o.type){const o=e.inputs.slice(t,c),u=undefined;return e.inputNames.slice(t,c).filter(((t,index)=>{var e;return"NoOp"!==(null===(e=o[index])||void 0===e?void 0:e.op)})).map((t=>s(t,n,a,i)))}const l=s(e.inputNames[u],n,a,i),data=l.dataSync();return"number"===o.type?data[0]:f._408.toNestedArray(l.shape,data)}const c=e.attrParams[t];return c&&c.value}function s(t,e,n,a){const[s,index]=u(t,n);if(null!=a){const t=a.getHashTableHandleByName(s);if(null!=t)return t}const i=n.currentContextIds.find((t=>!!e[c(s,t)]));return void 0!==i?e[c(s,i)][index]:void 0}function i(t,e,n){return e[c(t,n.currentContextId)]}function o(t,e){const[n,index,a]=u(t,e);return[c(n,e&&e.currentContextId),index,a]}function c(t,e){return!e?t:`${t}-${e}`}function u(t,e){if(""===t)return["",0,void 0];const n=null!=e&&null!=e.parseNodeNameCache;if(n){const n=e.parseNodeNameCache.get(t);if(null!=n)return n}const a=t.split(":");let s;if(1===a.length)s=[t,0,void 0];else{const t=a[0],e=3===a.length?a[1]:void 0,index=undefined;s=[t,Number(a[a.length-1]),e]}return n&&e.parseNodeNameCache.set(t,s),s}function l(t,size){const e=[];for(let n=0;n<t.length;n+=size)e.push(t.slice(n,n+size));return e}function h(t,e,n){let s=a("pad",t,e,n);if("explicit"===s){s=a("explicitPaddings",t,e,n);const i=[[0,0],[0,0],[0,0],[0,0]];for(let t=0;t<4;t++)i[t][0]=s[2*t],i[t][1]=s[2*t+1];return i}return s}function p(t){return t.kept?t:Object(f._182)(t)}e.d=a,e.e=s,e.f=i,e.b=o,e.g=u,e.c=h,e.a=p;var f=n(0)},function(t,e,n){"use strict";function a(t,e,n){const a=[];if(t.forEach((t=>{const size=$._408.sizeFromShape(t.shapeInfo.logicalShape);if(t.shapeInfo.isUniform?a.push(`uniform float ${t.name}${size>1?`[${size}]`:""};`):(a.push(`uniform sampler2D ${t.name};`),a.push(`uniform int offset${t.name};`)),n.enableShapeUniforms){const{uniformShape:e}=Z(n.packedInputs,t.shapeInfo.logicalShape,t.shapeInfo.texShape);switch(e.length){case 1:a.push(`uniform int ${t.name}Shape;`);break;case 2:a.push(`uniform ivec2 ${t.name}Shape;`);break;case 3:a.push(`uniform ivec3 ${t.name}Shape;`);break;case 4:a.push(`uniform ivec4 ${t.name}Shape;`)}a.push(`uniform ivec2 ${t.name}TexShape;`)}})),n.enableShapeUniforms){switch(e.logicalShape.length){case 1:a.push("uniform int outShape;");break;case 2:a.push("uniform ivec2 outShape;"),a.push("uniform int outShapeStrides;");break;case 3:a.push("uniform ivec3 outShape;"),a.push("uniform ivec2 outShapeStrides;");break;case 4:a.push("uniform ivec4 outShape;"),a.push("uniform ivec3 outShapeStrides;")}a.push("uniform ivec2 outTexShape;")}n.customUniforms&&n.customUniforms.forEach((d=>{a.push(`uniform ${d.type} ${d.name}${d.arrayIndex?`[${d.arrayIndex}]`:""};`)}));const s=a.join("\n"),i=t.map((t=>o(t,e,n.packedInputs,n.enableShapeUniforms))).join("\n"),b=e.texShape,m=Object(Y.a)(),g=l(m);let v,w,y=f(m);e.isPacked?(v=c(e.logicalShape,b,n.enableShapeUniforms),w=p(m)):(v=u(e.logicalShape,b,n.enableShapeUniforms),w=h(m)),n.packedInputs&&(y+=at);const O=undefined;return[y,g,w,s,v,i,n.userCode].join("\n")}function s(t,e=false){const shape=t.shapeInfo.logicalShape;switch(shape.length){case 0:return k(t,e);case 1:return T(t,e);case 2:return B(t,e);case 3:return E(t,e);case 4:return F(t,e);case 5:return W(t);case 6:return z(t);default:throw new Error(`${shape.length}-D input sampling is not yet supported`)}}function i(t,e){const shape=undefined;switch(t.shapeInfo.logicalShape.length){case 0:return _(t);case 1:return S(t,e);case 2:return L(t,e);case 3:return N(t,e);default:return M(t,e)}}function o(t,e,n=false,a){let o="";o+=n?i(t,a):s(t,a);const c=t.shapeInfo.logicalShape,u=e.logicalShape;return c.length<=u.length&&(o+=n?G(t,e):V(t,e)),o}function c(t,e,n){switch(t.length){case 0:return b();case 1:return m(t,e,n);case 2:return I(t,e,n);case 3:return v(t,e,n);default:return y(t,e,n)}}function u(t,e,n){switch(t.length){case 0:return b();case 1:return g(t,e,n);case 2:return j(t,e,n);case 3:return w(t,e,n);case 4:return O(t,e,n);case 5:return x(t,e);case 6:return A(t,e);default:throw new Error(`${t.length}-D output sampling is not yet supported`)}}function l(t){return`\n float sampleTexture(sampler2D textureSampler, vec2 uv) {\n return ${t.texture2D}(textureSampler, uv).r;\n }\n `}function h(t){return`\n void setOutput(float val) {\n ${t.output} = vec4(val, 0, 0, 0);\n }\n `}function p(t){return`\n void setOutput(vec4 val) {\n ${t.output} = val;\n }\n `}function f(t){const e=undefined;return`${t.version}\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n ${t.varyingFs} vec2 resultUV;\n ${t.defineOutput}\n const vec2 halfCR = vec2(0.5, 0.5);\n\n struct ivec5\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n };\n\n struct ivec6\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n int v;\n };\n\n uniform float NAN;\n ${t.defineSpecialNaN}\n ${t.defineSpecialInf}\n ${t.defineRound}\n\n int imod(int x, int y) {\n return x - y * (x / y);\n }\n\n int idiv(int a, int b, float sign) {\n int res = a / b;\n int mod = imod(a, b);\n if (sign < 0. && mod != 0) {\n res -= 1;\n }\n return res;\n }\n\n //Based on the work of Dave Hoskins\n //https://www.shadertoy.com/view/4djSRW\n #define HASHSCALE1 443.8975\n float random(float seed){\n vec2 p = resultUV * seed;\n vec3 p3 = fract(vec3(p.xyx) * HASHSCALE1);\n p3 += dot(p3, p3.yzx + 19.19);\n return fract((p3.x + p3.y) * p3.z);\n }\n\n ${tt}\n ${nt}\n ${rt}\n `}function b(){return"\n int getOutputCoords() {\n return 0;\n }\n "}function m(shape,t,e){const n=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)];return 1===n[0]?e?"\n int getOutputCoords() {\n return 2 * int(resultUV.x * ceil(float(outTexShape[1]) / 2.0));\n }\n ":`\n int getOutputCoords() {\n return 2 * int(resultUV.x * ${n[1]}.0);\n }\n `:1===n[1]?e?"\n int getOutputCoords() {\n return 2 * int(resultUV.y * ceil(float(outTexShape[0]) / 2.0));\n }\n ":`\n int getOutputCoords() {\n return 2 * int(resultUV.y * ${n[0]}.0);\n }\n `:e?"\n int 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 return 2 * (resTexRC.x * packedTexShape[1] + resTexRC.y);\n }\n ":`\n int getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${n[0]}, ${n[1]}));\n return 2 * (resTexRC.x * ${n[1]} + resTexRC.y);\n }\n `}function g(shape,t,e){return 1===t[0]?e?"\n int getOutputCoords() {\n return int(resultUV.x * float(outTexShape[1]));\n }\n ":`\n int getOutputCoords() {\n return int(resultUV.x * ${t[1]}.0);\n }\n `:1===t[1]?e?"\n int getOutputCoords() {\n return int(resultUV.y * float(outTexShape[0]));\n }\n ":`\n int getOutputCoords() {\n return int(resultUV.y * ${t[0]}.0);\n }\n `:e?"\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 ":`\n int getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${t[0]}, ${t[1]}));\n return resTexRC.x * ${t[1]} + resTexRC.y;\n }\n `}function v(shape,t,e){if(e)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 ";const n=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)],a=Math.ceil(shape[2]/2),s=a*Math.ceil(shape[1]/2);return`\n ivec3 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${n[0]}, ${n[1]}));\n int index = resTexRC.x * ${n[1]} + resTexRC.y;\n\n int b = index / ${s};\n index -= b * ${s};\n\n int r = 2 * (index / ${a});\n int c = imod(index, ${a}) * 2;\n\n return ivec3(b, r, c);\n }\n `}function w(shape,t,e){if(e){const t=undefined;return`\n ivec3 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(outTexShape[0], outTexShape[1]));\n int index = resTexRC.x * outTexShape[1] + resTexRC.y;\n ${J.f(["r","c","d"],shape)}\n return ivec3(r, c, d);\n }\n`}const n=J.d(["r","c","d"],shape);return`\n ivec3 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${t[0]}, ${t[1]}));\n int index = resTexRC.x * ${t[1]} + resTexRC.y;\n ${n}\n return ivec3(r, c, d);\n }\n `}function y(shape,t,e){if(e)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 ";const n=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)],a=Math.ceil(shape[shape.length-1]/2),s=a*Math.ceil(shape[shape.length-2]/2);let i=s,o="",c="b, r, c";for(let t=2;t<shape.length-1;t++)i*=shape[shape.length-t-1],o=`\n int b${t} = index / ${i};\n index -= b${t} * ${i};\n `+o,c=`b${t}, `+c;return`\n ivec${shape.length} getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${n[0]}, ${n[1]}));\n int index = resTexRC.x * ${n[1]} + resTexRC.y;\n\n ${o}\n\n int b = index / ${s};\n index -= b * ${s};\n\n int r = 2 * (index / ${a});\n int c = imod(index, ${a}) * 2;\n\n return ivec${shape.length}(${c});\n }\n `}function O(shape,t,e){if(e){const t=undefined;return`\n ivec4 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(outTexShape[0], outTexShape[1]));\n int index = resTexRC.x * outTexShape[1] + resTexRC.y;\n ${J.f(["r","c","d","d2"],shape)}\n return ivec4(r, c, d, d2);\n }\n `}const n=J.d(["r","c","d","d2"],shape);return`\n ivec4 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${t[0]}, ${t[1]}));\n int index = resTexRC.x * ${t[1]} + resTexRC.y;\n ${n}\n return ivec4(r, c, d, d2);\n }\n `}function x(shape,t){const e=J.d(["r","c","d","d2","d3"],shape);return`\n ivec5 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx * vec2(${t[0]},\n ${t[1]}));\n\n int index = resTexRC.x * ${t[1]} + resTexRC.y;\n\n ${e}\n\n ivec5 outShape = ivec5(r, c, d, d2, d3);\n return outShape;\n }\n `}function A(shape,t){const e=J.d(["r","c","d","d2","d3","d4"],shape);return`\n ivec6 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${t[0]}, ${t[1]}));\n int index = resTexRC.x * ${t[1]} + resTexRC.y;\n\n ${e}\n\n ivec6 result = ivec6(r, c, d, d2, d3, d4);\n return result;\n }\n `}function I(shape,t,e){const n=[Math.ceil(t[0]/2),Math.ceil(t[1]/2)];if($._408.arraysEqual(shape,t))return e?"\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 ":`\n ivec2 getOutputCoords() {\n return 2 * ivec2(resultUV.yx * vec2(${n[0]}, ${n[1]}));\n }\n `;const a=Math.ceil(shape[1]/2);return e?"\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 ":`\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${n[0]}, ${n[1]}));\n\n int index = resTexRC.x * ${n[1]} + resTexRC.y;\n int r = 2 * (index / ${a});\n int c = imod(index, ${a}) * 2;\n\n return ivec2(r, c);\n }\n `}function j(shape,t,e){return $._408.arraysEqual(shape,t)?e?"\n ivec2 getOutputCoords() {\n return ivec2(resultUV.yx * vec2(outTexShape[0], outTexShape[1]));\n }\n ":`\n ivec2 getOutputCoords() {\n return ivec2(resultUV.yx * vec2(${t[0]}, ${t[1]}));\n }\n `:1===shape[1]?e?"\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 ":`\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${t[0]}, ${t[1]}));\n int index = resTexRC.x * ${t[1]} + resTexRC.y;\n return ivec2(index, 0);\n }\n `:1===shape[0]?e?"\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 ":`\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${t[0]}, ${t[1]}));\n int index = resTexRC.x * ${t[1]} + resTexRC.y;\n return ivec2(0, index);\n }\n `:e?"\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 ":`\n ivec2 getOutputCoords() {\n ivec2 resTexRC = ivec2(resultUV.yx *\n vec2(${t[0]}, ${t[1]}));\n int index = resTexRC.x * ${t[1]} + resTexRC.y;\n int r = index / ${shape[1]};\n int c = index - r * ${shape[1]};\n return ivec2(r, c);\n }\n `}function C(t){return`offset${t}`}function _(t){const e=t.name,n=undefined,a=undefined;return`\n vec4 ${"get"+e.charAt(0).toUpperCase()+e.slice(1)}() {\n return ${Object(Y.a)().texture2D}(${e}, halfCR);\n }\n `}function k(t,e){const n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1);if(t.shapeInfo.isUniform)return`float ${a}() {return ${n};}`;const[s,i]=t.shapeInfo.texShape;if(1===s&&1===i)return`\n float ${a}() {\n return sampleTexture(${n}, halfCR);\n }\n `;const o=C(n);if(e)return`\n float ${a}() {\n vec2 uv = uvFromFlat(${n}TexShape[0], ${n}TexShape[1], ${o});\n return sampleTexture(${n}, uv);\n }\n `;const[c,u]=t.shapeInfo.texShape;return`\n float ${a}() {\n vec2 uv = uvFromFlat(${c}, ${u}, ${o});\n return sampleTexture(${n}, uv);\n }\n `}function S(t,e){const n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1),s=t.shapeInfo.texShape,i=Object(Y.a)();if(e)return`\n vec4 ${a}(int index) {\n ivec2 packedTexShape = ivec2(ceil(float(${n}TexShape[0]) / 2.0), ceil(float(${n}TexShape[1]) / 2.0));\n vec2 uv = packedUVfrom1D(\n packedTexShape[0], packedTexShape[1], index);\n return ${i.texture2D}(${n}, uv);\n }\n `;const o=[Math.ceil(s[0]/2),Math.ceil(s[1]/2)];return`\n vec4 ${a}(int index) {\n vec2 uv = packedUVfrom1D(\n ${o[0]}, ${o[1]}, index);\n return ${i.texture2D}(${n}, uv);\n }\n `}function T(t,e){const n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1);if(t.shapeInfo.isUniform)return`\n float ${a}(int index) {\n ${P(t)}\n }\n `;const s=t.shapeInfo.texShape,i=s[0],o=s[1];if(1===o&&1===i)return`\n float ${a}(int index) {\n return sampleTexture(${n}, halfCR);\n }\n `;const c=C(n);return 1===o?e?`\n float ${a}(int index) {\n vec2 uv = vec2(0.5, (float(index + ${c}) + 0.5) / float(${n}TexShape[0]));\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int index) {\n vec2 uv = vec2(0.5, (float(index + ${c}) + 0.5) / ${i}.0);\n return sampleTexture(${n}, uv);\n }\n `:1===i?e?`\n float ${a}(int index) {\n vec2 uv = vec2((float(index + ${c}) + 0.5) / float(${n}TexShape[1]), 0.5);\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int index) {\n vec2 uv = vec2((float(index + ${c}) + 0.5) / ${o}.0, 0.5);\n return sampleTexture(${n}, uv);\n }\n `:e?`\n float ${a}(int index) {\n vec2 uv = uvFromFlat(${n}TexShape[0], ${n}TexShape[1], index + ${c});\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int index) {\n vec2 uv = uvFromFlat(${i}, ${o}, index + ${c});\n return sampleTexture(${n}, uv);\n }\n `}function L(t,e){const shape=t.shapeInfo.logicalShape,n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1),s=t.shapeInfo.texShape,i=s[0],o=s[1],c=Object(Y.a)();if(null!=s&&$._408.arraysEqual(shape,s))return e?`\n vec4 ${a}(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2(${n}TexShape[1], ${n}TexShape[0]);\n\n return ${c.texture2D}(${n}, uv);\n }\n `:`\n vec4 ${a}(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2(${o}.0, ${i}.0);\n\n return ${c.texture2D}(${n}, uv);\n }\n `;if(e)return`\n vec4 ${a}(int row, int col) {\n ivec2 packedTexShape = ivec2(ceil(float(${n}TexShape[0]) / 2.0), ceil(float(${n}TexShape[1]) / 2.0));\n int valuesPerRow = int(ceil(float(${n}Shape[1]) / 2.0));\n vec2 uv = packedUVfrom2D(valuesPerRow, packedTexShape[0], packedTexShape[1], row, col);\n return ${c.texture2D}(${n}, uv);\n }\n `;const u=[Math.ceil(s[0]/2),Math.ceil(s[1]/2)],l=undefined;return`\n vec4 ${a}(int row, int col) {\n vec2 uv = packedUVfrom2D(${Math.ceil(shape[1]/2)}, ${u[0]}, ${u[1]}, row, col);\n return ${c.texture2D}(${n}, uv);\n }\n `}function B(t,e){const shape=t.shapeInfo.logicalShape,n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1),i=t.shapeInfo.texShape;if(null!=i&&$._408.arraysEqual(shape,i)){if(e)return`\n float ${a}(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2(${n}TexShape[1], ${n}TexShape[0]);\n return sampleTexture(${n}, uv);\n }\n `;const t=i[0],s=undefined;return`\n float ${a}(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2(${i[1]}.0, ${t}.0);\n return sampleTexture(${n}, uv);\n }\n `}const{newShape:o,keptDims:c}=$._408.squeezeShape(shape),u=o;if(u.length<shape.length){const n=undefined,i=["row","col"];return`\n ${s(X(t,u),e)}\n float ${a}(int row, int col) {\n return ${a}(${U(i,c)});\n }\n `}if(t.shapeInfo.isUniform)return`\n float ${a}(int row, int col) {\n int index = round(dot(vec2(row, col), vec2(${shape[1]}, 1)));\n ${P(t)}\n }\n `;const l=i[0],h=i[1],p=C(n);return 1===h?e?`\n float ${a}(int row, int col) {\n float index = dot(vec3(row, col, ${p}), vec3(${n}Shape[1], 1, 1));\n vec2 uv = vec2(0.5, (index + 0.5) / float(${n}TexShape[0]));\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col) {\n float index = dot(vec3(row, col, ${p}), vec3(${shape[1]}, 1, 1));\n vec2 uv = vec2(0.5, (index + 0.5) / ${l}.0);\n return sampleTexture(${n}, uv);\n }\n `:1===l?e?`\n float ${a}(int row, int col) {\n float index = dot(vec3(row, col, ${p}), vec3(${n}Shape[1], 1, 1));\n vec2 uv = vec2((index + 0.5) / float(${n}TexShape[1]), 0.5);\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col) {\n float index = dot(vec3(row, col, ${p}), vec3(${shape[1]}, 1, 1));\n vec2 uv = vec2((index + 0.5) / ${h}.0, 0.5);\n return sampleTexture(${n}, uv);\n }\n `:e?`\n float ${a}(int row, int col) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * ${n}Shape[1] + col + ${p};\n vec2 uv = uvFromFlat(${n}TexShape[0], ${n}TexShape[1], index);\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * ${shape[1]} + col + ${p};\n vec2 uv = uvFromFlat(${l}, ${h}, index);\n return sampleTexture(${n}, uv);\n }\n`}function N(t,e){const shape=t.shapeInfo.logicalShape,n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1),s=t.shapeInfo.texShape,o=[Math.ceil(s[0]/2),Math.ceil(s[1]/2)];if(1===shape[0]){const n=undefined,s=[1,2],o=undefined,c=["b","row","col"];return`\n ${i(X(t,shape.slice(1)),e)}\n vec4 ${a}(int b, int row, int col) {\n return ${a}(${U(c,s)});\n }\n `}const c=Object(Y.a)();if(e)return`\n vec4 ${a}(int b, int row, int col) {\n ivec2 packedTexShape = ivec2(ceil(float(${n}TexShape[0]) / 2.0), ceil(float(${n}TexShape[1]) / 2.0));\n int valuesPerRow = int(ceil(float(${n}Shape[2]) / 2.0));\n int texelsInBatch = valuesPerRow * int(ceil(float(${n}Shape[1]) / 2.0));\n vec2 uv = packedUVfrom3D(\n packedTexShape[0], packedTexShape[1], texelsInBatch, valuesPerRow, b, row, col);\n return ${c.texture2D}(${n}, uv);\n }\n `;const u=o[0],l=o[1],h=Math.ceil(shape[2]/2),p=undefined;return`\n vec4 ${a}(int b, int row, int col) {\n vec2 uv = packedUVfrom3D(\n ${u}, ${l}, ${h*Math.ceil(shape[1]/2)}, ${h}, b, row, col);\n return ${c.texture2D}(${n}, uv);\n }\n `}function E(t,e){const shape=t.shapeInfo.logicalShape,n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1),i=shape[1]*shape[2],o=shape[2],{newShape:c,keptDims:u}=$._408.squeezeShape(shape),l=c;if(l.length<shape.length){const n=undefined,i=["row","col","depth"];return`\n ${s(X(t,l),e)}\n float ${a}(int row, int col, int depth) {\n return ${a}(${U(i,u)});\n }\n `}if(t.shapeInfo.isUniform)return`\n float ${a}(int row, int col, int depth) {\n int index = round(dot(vec3(row, col, depth),\n vec3(${i}, ${o}, 1)));\n ${P(t)}\n }\n `;const h=t.shapeInfo.texShape,p=h[0],f=h[1],b=t.shapeInfo.flatOffset;if(f===i&&null==b)return e?`\n float ${a}(int row, int col, int depth) {\n int stride1 = ${n}Shape[2];\n float texR = float(row);\n float texC = dot(vec2(col, depth), vec2(stride1, 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${n}TexShape[1], ${n}TexShape[0]);\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col, int depth) {\n float texR = float(row);\n float texC = dot(vec2(col, depth), vec2(${o}, 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${f}.0, ${p}.0);\n return sampleTexture(${n}, uv);\n }\n `;if(f===o&&null==b)return e?`\n float ${a}(int row, int col, int depth) {\n float texR = dot(vec2(row, col), vec2(${n}Shape[1], 1));\n float texC = float(depth);\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${n}TexShape[1], ${n}TexShape[0]);\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col, int depth) {\n float texR = dot(vec2(row, col), vec2(${shape[1]}, 1));\n float texC = float(depth);\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${f}.0, ${p}.0);\n return sampleTexture(${n}, uv);\n }\n `;const m=C(n);return e?`\n float ${a}(int row, int col, int depth) {\n // Explicitly use integer operations as dot() only works on floats.\n int stride0 = ${n}Shape[1] * ${n}Shape[2];\n int stride1 = ${n}Shape[2];\n int index = row * stride0 + col * stride1 + depth + ${m};\n vec2 uv = uvFromFlat(${n}TexShape[0], ${n}TexShape[1], index);\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col, int depth) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * ${i} + col * ${o} + depth + ${m};\n vec2 uv = uvFromFlat(${p}, ${f}, index);\n return sampleTexture(${n}, uv);\n }\n `}function M(t,e){const n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1),s=Object(Y.a)();if(e)return`\n vec4 ${a}(int b2, int b, int row, int col) {\n int valuesPerRow = int(ceil(float(${n}Shape[3]) / 2.0));\n int texelsInBatch = valuesPerRow * int(ceil(float(${n}Shape[2]) / 2.0));\n int index = b * texelsInBatch + (row / 2) * valuesPerRow + (col / 2);\n texelsInBatch *= ${n}Shape[1];\n index = b2 * texelsInBatch + index;\n ivec2 packedTexShape = ivec2(ceil(float(${n}TexShape[0]) / 2.0), ceil(float(${n}TexShape[1]) / 2.0));\n int texR = index / packedTexShape[1];\n int texC = index - texR * packedTexShape[1];\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2(packedTexShape[1], packedTexShape[0]); return ${s.texture2D}(${n}, uv);\n }\n `;const shape=t.shapeInfo.logicalShape,i=shape.length,o=t.shapeInfo.texShape,c=[Math.ceil(o[0]/2),Math.ceil(o[1]/2)],u=c[0],l=c[1],h=Math.ceil(shape[i-1]/2);let p=h*Math.ceil(shape[i-2]/2),f="int b, int row, int col",index=`b * ${p} + (row / 2) * ${h} + (col / 2)`;for(let t=2;t<i-1;t++)f=`int b${t}, `+f,p*=shape[i-t-1],index=`b${t} * ${p} + `+index;return`\n vec4 ${a}(${f}) {\n int index = ${index};\n int texR = index / ${l};\n int texC = index - texR * ${l};\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${l}, ${u});\n return ${s.texture2D}(${n}, uv);\n }\n `}function F(t,e){const shape=t.shapeInfo.logicalShape,n=t.name,a="get"+n.charAt(0).toUpperCase()+n.slice(1),i=shape[3],o=shape[2]*i,c=shape[1]*o,{newShape:u,keptDims:l}=$._408.squeezeShape(shape);if(u.length<shape.length){const n=undefined,i=["row","col","depth","depth2"];return`\n ${s(X(t,u),e)}\n float ${a}(int row, int col, int depth, int depth2) {\n return ${a}(${U(i,l)});\n }\n `}if(t.shapeInfo.isUniform)return`\n float ${a}(int row, int col, int depth, int depth2) {\n int index = round(dot(vec4(row, col, depth, depth2),\n vec4(${c}, ${o}, ${i}, 1)));\n ${P(t)}\n }\n `;const h=t.shapeInfo.flatOffset,p=t.shapeInfo.texShape,f=p[0],b=p[1],m=`int stride2 = ${n}Shape[3];`,g=`int stride1 = ${n}Shape[2] * stride2;`,v=`int stride0 = ${n}Shape[1] * stride1;`;if(b===c&&null==h)return e?`\n float ${a}(int row, int col, int depth, int depth2) {\n ${m}\n ${g}\n float texR = float(row);\n float texC =\n dot(vec3(col, depth, depth2),\n vec3(stride1, stride2, 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${n}TexShape[1], ${n}TexShape[0]);\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col, int depth, int depth2) {\n float texR = float(row);\n float texC =\n dot(vec3(col, depth, depth2),\n vec3(${o}, ${i}, 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${b}.0, ${f}.0);\n return sampleTexture(${n}, uv);\n }\n `;if(b===i&&null==h)return e?`\n float ${a}(int row, int col, int depth, int depth2) {\n float texR = dot(vec3(row, col, depth),\n vec3(${n}Shape[1] * ${n}Shape[2], ${n}Shape[2], 1));\n float texC = float(depth2);\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${n}TexShape[1], ${n}TexShape[0]);\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col, int depth, int depth2) {\n float texR = dot(vec3(row, col, depth),\n vec3(${shape[1]*shape[2]}, ${shape[2]}, 1));\n float texC = float(depth2);\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${b}.0, ${f}.0);\n return sampleTexture(${n}, uv);\n }\n `;const w=C(n);return e?`\n float ${a}(int row, int col, int depth, int depth2) {\n // Explicitly use integer operations as dot() only works on floats.\n ${m}\n ${g}\n ${v}\n int index = row * stride0 + col * stride1 +\n depth * stride2 + depth2;\n vec2 uv = uvFromFlat(${n}TexShape[0], ${n}TexShape[1], index + ${w});\n return sampleTexture(${n}, uv);\n }\n `:`\n float ${a}(int row, int col, int depth, int depth2) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * ${c} + col * ${o} +\n depth * ${i} + depth2;\n vec2 uv = uvFromFlat(${f}, ${b}, index + ${w});\n return sampleTexture(${n}, uv);\n }\n `}function W(t){const shape=t.shapeInfo.logicalShape,e=t.name,n="get"+e.charAt(0).toUpperCase()+e.slice(1),a=shape[4],i=shape[3]*a,o=shape[2]*i,c=shape[1]*o,{newShape:u,keptDims:l}=$._408.squeezeShape(shape);if(u.length<shape.length){const e=undefined,a=["row","col","depth","depth2","depth3"];return`\n ${s(X(t,u))}\n float ${n}(int row, int col, int depth, int depth2, int depth3) {\n return ${n}(${U(a,l)});\n }\n `}if(t.shapeInfo.isUniform)return`\n float ${n}(int row, int col, int depth, int depth2, int depth3) {\n float index = dot(\n vec4(row, col, depth, depth2),\n vec4(${c}, ${o}, ${i}, ${a})) +\n depth3;\n ${P(t)}\n }\n `;const h=t.shapeInfo.flatOffset,p=t.shapeInfo.texShape,f=p[0],b=p[1];if(b===c&&null==h)return`\n float ${n}(int row, int col, int depth, int depth2, int depth3) {\n int texR = row;\n float texC = dot(vec4(col, depth, depth2, depth3),\n vec4(${o}, ${i}, ${a}, 1));\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${b}.0, ${f}.0);\n return sampleTexture(${e}, uv);\n }\n `;if(b===a&&null==h)return`\n float ${n}(int row, int col, int depth, int depth2, int depth3) {\n float texR = dot(\n vec4(row, col, depth, depth2),\n vec4(${shape[1]*shape[2]*shape[3]},\n ${shape[2]*shape[3]}, ${shape[3]}, 1));\n int texC = depth3;\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${b}.0, ${f}.0);\n return sampleTexture(${e}, uv);\n }\n `;const m=undefined;return`\n float ${n}(int row, int col, int depth, int depth2, int depth3) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * ${c} + col * ${o} + depth * ${i} +\n depth2 * ${a} + depth3 + ${C(e)};\n vec2 uv = uvFromFlat(${f}, ${b}, index);\n return sampleTexture(${e}, uv);\n }\n `}function z(t){const shape=t.shapeInfo.logicalShape,e=t.name,n="get"+e.charAt(0).toUpperCase()+e.slice(1),{newShape:a,keptDims:i}=$._408.squeezeShape(shape);if(a.length<shape.length){const e=undefined,o=["row","col","depth","depth2","depth3","depth4"];return`\n ${s(X(t,a))}\n float ${n}(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n return ${n}(${U(o,i)});\n }\n `}const o=shape[5],c=shape[4]*o,u=shape[3]*c,l=shape[2]*u,h=shape[1]*l;if(t.shapeInfo.isUniform)return`\n float ${n}(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n int index = round(dot(\n vec4(row, col, depth, depth2),\n vec4(${h}, ${l}, ${u}, ${c})) +\n dot(\n vec2(depth3, depth4),\n vec2(${o}, 1)));\n ${P(t)}\n }\n `;const p=t.shapeInfo.flatOffset,f=t.shapeInfo.texShape,b=f[0],m=f[1];if(m===h&&null==p)return`\n float ${n}(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n int texR = row;\n float texC = dot(vec4(col, depth, depth2, depth3),\n vec4(${l}, ${u}, ${c}, ${o})) +\n float(depth4);\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${m}.0, ${b}.0);\n return sampleTexture(${e}, uv);\n }\n `;if(m===o&&null==p)return`\n float ${n}(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n float texR = dot(vec4(row, col, depth, depth2),\n vec4(${shape[1]*shape[2]*shape[3]*shape[4]},\n ${shape[2]*shape[3]*shape[4]},\n ${shape[3]*shape[4]},\n ${shape[4]})) + float(depth3);\n int texC = depth4;\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${m}.0, ${b}.0);\n return sampleTexture(${e}, uv);\n }\n `;const g=undefined;return`\n float ${n}(int row, int col, int depth,\n int depth2, int depth3, int depth4) {\n // Explicitly use integer operations as dot() only works on floats.\n int index = row * ${h} + col * ${l} + depth * ${u} +\n depth2 * ${c} + depth3 * ${o} + depth4 + ${C(e)};\n vec2 uv = uvFromFlat(${b}, ${m}, index);\n return sampleTexture(${e}, uv);\n }\n `}function P(t){const e=t.name,n=$._408.sizeFromShape(t.shapeInfo.logicalShape);return n<2?`return ${e};`:`\n for (int i = 0; i < ${n}; i++) {\n if (i == index) {\n return ${e}[i];\n }\n }\n `}function G(t,e){const n=t.name,a=n.charAt(0).toUpperCase()+n.slice(1),s="get"+a+"AtOutCoords",i=t.shapeInfo.logicalShape.length,o=e.logicalShape.length,c=K(t.shapeInfo.logicalShape,e.logicalShape),type=H(o),u=o-i;let l;const fields=["x","y","z","w","u","v"];l=0===i?"":o<2&&c.length>=1?"coords = 0;":c.map((d=>`coords.${fields[d+u]} = 0;`)).join("\n");let h="";h=o<2&&i>0?"coords":t.shapeInfo.logicalShape.map(((t,e)=>`coords.${fields[e+u]}`)).join(", ");let p="return outputValue;";const f=undefined,b=1===$._408.sizeFromShape(t.shapeInfo.logicalShape),m=undefined,g=1===$._408.sizeFromShape(e.logicalShape);if(1!==i||b||g){if(b&&!g)p=1===o?"\n return vec4(outputValue.x, outputValue.x, 0., 0.);\n ":"\n return vec4(outputValue.x);\n ";else if(c.length){const t=i-2,e=i-1;c.indexOf(t)>-1&&c.indexOf(e)>-1?p="return vec4(outputValue.x);":c.indexOf(t)>-1?p="return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);":c.indexOf(e)>-1&&(p="return vec4(outputValue.xx, outputValue.zz);")}}else p="\n return vec4(outputValue.xy, outputValue.xy);\n ";return`\n vec4 ${s}() {\n ${type} coords = getOutputCoords();\n ${l}\n vec4 outputValue = get${a}(${h});\n ${p}\n }\n `}function V(t,e){const n=t.name,a=n.charAt(0).toUpperCase()+n.slice(1),s="get"+a+"AtOutCoords",i=e.texShape,o=t.shapeInfo.texShape,c=t.shapeInfo.logicalShape.length,u=e.logicalShape.length;if(!t.shapeInfo.isUniform&&c===u&&null==t.shapeInfo.flatOffset&&$._408.arraysEqual(o,i))return`\n float ${s}() {\n return sampleTexture(${n}, resultUV);\n }\n `;const type=H(u),l=K(t.shapeInfo.logicalShape,e.logicalShape),h=u-c;let p;const fields=["x","y","z","w","u","v"];p=0===c?"":u<2&&l.length>=1?"coords = 0;":l.map((d=>`coords.${fields[d+h]} = 0;`)).join("\n");let f="";return f=u<2&&c>0?"coords":t.shapeInfo.logicalShape.map(((t,e)=>`coords.${fields[e+h]}`)).join(", "),`\n float ${s}() {\n ${type} coords = getOutputCoords();\n ${p}\n return get${a}(${f});\n }\n `}function H(t){if(t<=1)return"int";if(2===t)return"ivec2";if(3===t)return"ivec3";if(4===t)return"ivec4";if(5===t)return"ivec5";if(6===t)return"ivec6";throw Error(`GPU for rank ${t} is not yet supported`)}function Z(t,shape,e){const{newShape:n,keptDims:a}=$._408.squeezeShape(shape),s=shape.length,i=t&&3===s&&1===shape[0],o=i?shape.slice(1):n,c=!t&&s>1&&!$._408.arraysEqual(shape,e)&&n.length<s||i,u=undefined;return{useSqueezeShape:c,uniformShape:c?o:shape,keptDims:a}}function X(t,e){const n=JSON.parse(JSON.stringify(t));return n.shapeInfo.logicalShape=e,n}function U(t,e){return e.map((d=>t[d])).join(", ")}e.c=a,e.a=H,e.b=Z;var $=n(0),Y=n(53),J=n(76);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const{getBroadcastDims:K}=$._164,tt="\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",nt="\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",rt="\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",at="\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(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){return Array.isArray(t)&&Array.isArray(t[0])}function s(t){return 0===t.length?[]:Array.isArray(t[0])?t:[t]}function i(t){let e;if(Array.isArray(t)){if(1!==t.length)throw new c.e(`Expected Tensor length to be 1; got ${t.length}`);e=t[0]}else e=t;return e}function o(t){if(Array.isArray(t)&&Array.isArray(t[0])){if(1===t.length)return(t=t)[0];throw new c.e(`Expected exactly 1 Shape; got ${t.length}`)}return t}e.c=a,e.d=s,e.b=i,e.a=o;var c=n(15)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return(e,n,a,i,o)=>{const c=s._164.assertAndGetBroadcastShape(e,n),u=c.length,l=s._408.computeStrides(c),h=s._408.sizeFromShape(c),p=s._408.getTypedArrayFromDType(o,h),f=e.length,b=n.length,m=s._408.computeStrides(e),g=s._408.computeStrides(n),v=s._164.getBroadcastDims(e,c),w=s._164.getBroadcastDims(n,c);if(v.length+w.length===0)for(let e=0;e<p.length;++e)p[e]=t(a[e%a.length],i[e%i.length]);else for(let e=0;e<p.length;++e){const n=s._408.indexToLoc(e,u,l),o=n.slice(-f);v.forEach((d=>o[d]=0));const c=s._408.locToIndex(o,f,m),h=n.slice(-b);w.forEach((d=>h[d]=0));const y=s._408.locToIndex(h,b,g);p[e]=t(a[c],i[y])}return[p,c]}}e.a=a;var s=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=Object(i.a)(t,"x","square"),n={};return s.a.runKernel("Square",{x:e},n)}var s=n(4),i=n(3),o=n(2);const c=Object(o.b)({square_:a});e.a=c},function(t,e,n){"use strict";function a(t){E._350(t),P=t}function s(){return P}function i(){return false}function o(t){const shape=t.shape;return shape.length>0?shape.reduce(((t,e)=>t*e)):1}function c(t,e){return E._179(t,e)}function u(t,e=-1){const n=t.shape.slice();return e<0&&(e=n.length+e+1),n.splice(e,0,1),E._334(t,n)}function l(t,e){return Object(E._394)((()=>{if(2!==t.shape.length)throw new F.e(`repeat() expects a rank-2 tensor, but received a rank-${t.shape.length} tensor.`);const n=undefined;return w(u(t,1),[1,e,1])}))}function h(t){const e=[W.a(t.shape)];return E._334(t,e)}function p(t){if(t.rank<=1)throw new F.e(`batchFlatten requires a minimum rank of 2. Got rank: ${t.rank}.`);const e=[t.shape[0],W.a(t.shape,1)];return E._334(t,e)}function f(t,e,size){return Object(E._394)((()=>{switch(t.rank){case 1:return E._359(t,e,size);case 2:return E._360(t,[e,0],[size,t.shape[1]]);case 3:return E._361(t,[e,0,0],[size,t.shape[1],t.shape[2]]);case 4:return E._362(t,[e,0,0,0],[size,t.shape[1],t.shape[2],t.shape[3]]);case 5:return E._358(t,[e,0,0,0,0],[size,t.shape[1],t.shape[2],t.shape[3],t.shape[4]]);case 6:return E._358(t,[e,0,0,0,0,0],[size,t.shape[1],t.shape[2],t.shape[3],t.shape[4],t.shape[5]]);default:throw new F.e(`sliceAlongFirstAxis() received an unsupported tensor rank: ${t.rank}`)}}))}function b(t,e,size){return Object(E._394)((()=>{switch(t.rank){case 1:return E._359(t,e,size);case 2:return E._360(t,[0,e],[t.shape[0],size]);case 3:return E._361(t,[0,0,e],[t.shape[0],t.shape[1],size]);case 4:return E._362(t,[0,0,0,e],[t.shape[0],t.shape[1],t.shape[2],size]);default:throw new F.e(`sliceAlongLastAxis() received an unsupported tensor rank: ${t.rank}`)}}))}function m(t,e,size,n){return Object(E._394)((()=>{switch(t.rank){case 1:return E._359(t,e,size);case 2:switch(n){case 1:return f(t,e,size);case 2:return b(t,e,size);default:throw new F.e(`The axis is not within the rank of the tensor ${n}`)}case 3:switch(n){case 1:return f(t,e,size);case 2:return E._361(t,[0,e,0],[t.shape[0],size,t.shape[2]]);case 3:return b(t,e,size);default:throw new F.e(`The axis is not within the rank of the tensor ${n}`)}case 4:switch(n){case 1:return f(t,e,size);case 2:return E._362(t,[0,e,0,0],[t.shape[0],size,t.shape[2],t.shape[3]]);case 3:return E._362(t,[0,0,e,0],[t.shape[0],t.shape[1],size,t.shape[3]]);case 4:return b(t,e,size);default:throw new F.e(`The axis is not within the rank of the tensor ${n}`)}default:throw new F.e(`sliceAlongLastAxis() received an unsupported tensor rank: ${t.rank}`)}}))}function g(t,e=-1){let n;return e<0&&(n=t[0].rank,e=0!==n?n:0),e===t[0].rank&&(e=-1),E._184(t,e)}function v(t,e){switch(t.rank){case 1:return E._185([t,e]);case 2:return E._186([t,e],0);case 3:return E._187([t,e],0);case 4:return E._188([t,e],0);default:throw new F.e(`concatAlongFirstAxis() received an unsupported tensor rank: ${t.rank}`)}}function w(t,e){if(Array.isArray(e)||(e=[e]),t.rank!==e.length)throw new F.e(`The length of input n (${e.length}) does not match the number of dimensions in input x (${t.rank})`);return E._395(t,e)}function y(shape,t=0,e=1,n,a){return E._320(shape,t,e,n,a)}function O(t,e,n,a){if(t.rank<2||e.rank<2)throw new F.c(`dot requires both inputs to be rank >= 2 but got x shape = ${t.shape} and y shape = ${e.shape}`);if(e.rank>=3){const n=undefined,a=undefined;if(t.shape.slice(-1)[0]!==e.shape.slice(-2)[0])throw new F.c(`If rank y >= 3, then the second last dim of y must equal the last dim of x but got x shape = ${t.shape} and y shape = ${e.shape}`)}if(2===t.rank&&2===e.rank){const s=false,i=false;return E._236.matMul({a:t,b:e,transposeA:s,transposeB:i,bias:a?_(t.rank,a,Object(z.b)()):null,activation:n})}{const s=t.shape.slice(),i=s.pop();t=E._334(t,[-1,i]);const o=e.shape.slice(),c=o.pop(),u=o.pop(),l=[...o,c],h=Array.from({length:e.rank},((t,n)=>0===n?e.rank-2:n<=e.rank-2?n-1:n));e=E._334(E._399(e,h),[u,-1]);const p=[...s,...l],f=false,b=false;return E._334(E._236.matMul({a:t,b:e,transposeA:f,transposeB:b,bias:a?_(t.rank,a,Object(z.b)()):null,activation:n}),p)}}function x(t){return Object(E._394)((()=>{const e=Object(E._417)(t),n=Object(E._301)(t);return Object(E._414)(E._223(t,e),e,Object(E._414)(E._246(t,Object(E._417)(t)),n,E._292(-1,n)))}))}function A(t,e){return Object(E._394)((()=>{if(1!==t.rank)throw new Error("Only 1D one-hot tensors are supported in the deeplearn backend, at present.");return t=E._179(t,"int32"),E._179(E._299(t,e),"float32")}))}function I(t,e,n){return Object(E._394)((()=>(e=Array.isArray(e)?Object(E._385)(e,"int32"):E._179(e,"int32"),E._237(t,e,n))))}function j(t){return E._292(t,t)}function C(t,e){return Object(E._394)((()=>{if("number"==typeof e&&(e=Object(E._343)(Math.round(e),"int32")),"int32"!==e.dtype)throw new F.c(`Non-int32 dtype (${e.dtype}) is not supported by pow() yet`);return E._310(t,e)}))}function _(t,e,n){const a=e.shape;if(1!==e.rank&&e.rank!==t)throw new F.e(`Unexpected bias dimensions: ${e.rank}; expected it to be 1 or ${t}`);if(5===t){if("channelsFirst"===n)return 1===a.length?E._334(e,[1,a[0],1,1,1]):E._334(e,[1,a[3],a[0],a[1],a[2]]);if("channelsLast"===n)return 1===a.length?E._334(e,[1,1,1,1,a[0]]):E._334(e,[1].concat(a))}else if(4===t){if("channelsFirst"===n)return 1===a.length?E._334(e,[1,a[0],1,1]):E._334(e,[1,a[2],a[0],a[1]]);if("channelsLast"===n)return 1===a.length?E._334(e,[1,1,1,a[0]]):E._334(e,[1].concat(a))}else if(3===t){if("channelsFirst"===n)return 1===a.length?E._334(e,[1,a[0],1]):E._334(e,[1,a[1],a[0]]);if("channelsLast"===n)return 1===a.length?E._334(e,[1,1,a[0]]):E._334(e,[1].concat(a))}else if(t<3)return e;throw new F.e(`Unsupported input rank by biasAdd: ${e.rank}`)}function k(t,e,n){return Object(E._394)((()=>(null==n&&(n=Object(z.b)()),Object(M.a)(n),E._150(t,_(t.rank,e,n)))))}function S(t,e=1){if(1!==e)throw new F.c(`Support for alpha values other than 1 (${e}) is not implemented yet.`);return E._216(t)}function T(t){return Object(E._394)((()=>E._211(t,E._150(E._147(t),1))))}function L(t,e,n,a){return Object(E._394)((()=>E._214(t,e,n,a)))}function B(t){return Object(E._394)((()=>{const e=E._150(.5,E._292(.2,t));return E._181(e,0,1)}))}function N(t,e,n=false){return n?t():e()}e.c=c,e.i=u,e.o=l,e.j=h,e.a=p,e.q=f,e.p=m,e.e=g,e.d=v,e.t=w,e.n=y,e.f=O,e.k=I,e.s=j,e.b=k,e.h=S,e.r=T,e.g=L,e.l=B,e.m=N;var E=n(0),M=n(51),F=n(15),W=n(72),z=n(73);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
let P="webgl"},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,s="NHWC",i){const c=undefined,u=undefined,l=undefined;return o(t,[...e,t[3]],n,i,a,null,null,x(s))}function s(t,e,n,a,s,i,c="channelsLast"){const[u,l]=p(e);let h;if("channelsLast"===c)h=[u,l,t[3],t[3]];else{if("channelsFirst"!==c)throw new Error(`Unknown dataFormat ${c}`);h=[u,l,t[1],t[1]]}return o(t,h,n,a,s,i,false,c)}function i(t,e,n,a,s,i,o="NDHWC"){const[u,l,h]=f(e);let p,b;if("NDHWC"===o)b="channelsLast",p=[u,l,h,t[4],t[4]];else{if("NCDHW"!==o)throw new Error(`Unknown dataFormat ${o}`);b="channelsFirst",p=[u,l,h,t[1],t[1]]}return c(t,p,n,a,s,false,b,i)}function o(t,e,n,a,s,i,o=false,c="channelsLast"){let[u,l,h,f]=[-1,-1,-1,-1];if("channelsLast"===c)[u,l,h,f]=t;else{if("channelsFirst"!==c)throw new Error(`Unknown dataFormat ${c}`);[u,f,l,h]=t}const[g,v,,w]=e,[y,O]=p(n),[x,A]=p(a),I=b(g,x),j=b(v,A),{padInfo:C,outHeight:_,outWidth:k}=m(s,l,h,y,O,I,j,i,c),S=o?w*f:w;let T;return"channelsFirst"===c?T=[u,S,_,k]:"channelsLast"===c&&(T=[u,_,k,S]),{batchSize:u,dataFormat:c,inHeight:l,inWidth:h,inChannels:f,outHeight:_,outWidth:k,outChannels:S,padInfo:C,strideHeight:y,strideWidth:O,filterHeight:g,filterWidth:v,effectiveFilterHeight:I,effectiveFilterWidth:j,dilationHeight:x,dilationWidth:A,inShape:t,outShape:T,filterShape:e}}function c(t,e,n,a,s,i=false,o="channelsLast",c){let[u,l,h,p,m]=[-1,-1,-1,-1,-1];if("channelsLast"===o)[u,l,h,p,m]=t;else{if("channelsFirst"!==o)throw new Error(`Unknown dataFormat ${o}`);[u,m,l,h,p]=t}const[v,w,y,,O]=e,[x,A,I]=f(n),[j,C,_]=f(a),k=b(v,j),S=b(w,C),T=b(y,_),{padInfo:L,outDepth:B,outHeight:N,outWidth:E}=g(s,l,h,p,x,A,I,k,S,T,c),M=i?O*m:O;let F;return"channelsFirst"===o?F=[u,M,B,N,E]:"channelsLast"===o&&(F=[u,B,N,E,M]),{batchSize:u,dataFormat:o,inDepth:l,inHeight:h,inWidth:p,inChannels:m,outDepth:B,outHeight:N,outWidth:E,outChannels:M,padInfo:L,strideDepth:x,strideHeight:A,strideWidth:I,filterDepth:v,filterHeight:w,filterWidth:y,effectiveFilterDepth:k,effectiveFilterHeight:S,effectiveFilterWidth:T,dilationDepth:j,dilationHeight:C,dilationWidth:_,inShape:t,outShape:F,filterShape:e}}function u(t,e,n,a,s){null==a&&(a=h(t,e,n));const i=t[0],o=t[1],c=undefined,u=undefined;return[v((i-e+2*a)/n+1,s),v((o-e+2*a)/n+1,s)]}function l(t,e,n,a,s,i){null==s&&(s=h(t,e[0],a[0]));const o=[0,0,0,n];for(let index=0;index<3;index++)t[index]+2*s>=e[index]&&(o[index]=v((t[index]-e[index]+2*s)/a[index]+1,i));return o}function h(t,e,n,a=1){const s=b(e,a);return Math.floor((t[0]*(n-1)-n+s)/2)}function p(t){return"number"==typeof t?[t,t,t]:2===t.length?[t[0],t[1],1]:t}function f(t){return"number"==typeof t?[t,t,t]:t}function b(t,e){return e<=1?t:t+(t-1)*(e-1)}function m(t,e,n,a,s,i,o,c,l){let h,p,f;if("number"==typeof t){const s=undefined;h={top:t,bottom:t,left:t,right:t,type:0===t?"VALID":"NUMBER"};const o=u([e,n],i,a,t,c);p=o[0],f=o[1]}else if("same"===t){p=Math.ceil(e/a),f=Math.ceil(n/s);const t=Math.max(0,(p-1)*a+i-e),c=Math.max(0,(f-1)*s+o-n),u=Math.floor(t/2),l=t-u,b=Math.floor(c/2),m=undefined;h={top:u,bottom:l,left:b,right:c-b,type:"SAME"}}else if("valid"===t)h={top:0,bottom:0,left:0,right:0,type:"VALID"},p=Math.ceil((e-i+1)/a),f=Math.ceil((n-o+1)/s);else{if("object"!=typeof t)throw Error(`Unknown padding parameter: ${t}`);{const u="channelsLast"===l?t[1][0]:t[2][0],b="channelsLast"===l?t[1][1]:t[2][1],m="channelsLast"===l?t[2][0]:t[3][0],g="channelsLast"===l?t[2][1]:t[3][1],w=undefined;h={top:u,bottom:b,left:m,right:g,type:0===u&&0===b&&0===m&&0===g?"VALID":"EXPLICIT"},p=v((e-i+u+b)/a+1,c),f=v((n-o+m+g)/s+1,c)}}return{padInfo:h,outHeight:p,outWidth:f}}function g(t,e,n,a,s,i,o,c,u,h,p){let f,b,m,g;if("valid"===t&&(t=0),"number"==typeof t){const v=undefined;f={top:t,bottom:t,left:t,right:t,front:t,back:t,type:0===t?"VALID":"NUMBER"};const w=l([e,n,a,1],[c,u,h],1,[s,i,o],t,p);b=w[0],m=w[1],g=w[2]}else{if("same"!==t)throw Error(`Unknown padding parameter: ${t}`);{b=Math.ceil(e/s),m=Math.ceil(n/i),g=Math.ceil(a/o);const t=(b-1)*s+c-e,l=(m-1)*i+u-n,p=(g-1)*o+h-a,v=Math.floor(t/2),w=t-v,y=Math.floor(l/2),O=l-y,x=Math.floor(p/2),A=undefined;f={top:y,bottom:O,left:x,right:p-x,front:v,back:w,type:"SAME"}}}return{padInfo:f,outDepth:b,outHeight:m,outWidth:g}}function v(t,e){if(!e)return Math.trunc(t);switch(e){case"round":return Math.round(t);case"ceil":return Math.ceil(t);case"floor":return Math.floor(t);default:throw new Error(`Unknown roundingMode ${e}`)}}function w(t){const[e,n,a]=p(t);return 1===e&&1===n&&1===a}function y(t,e){return w(t)||w(e)}function O(t){return p(t).every((t=>t>0))}function x(t){if("NHWC"===t)return"channelsLast";if("NCHW"===t)return"channelsFirst";throw new Error(`Unknown dataFormat ${t}`)}function A(t,e,n){if(null!=n){if("string"==typeof e)throw Error(`Error in ${t}: pad must be an integer when using dimRoundingMode ${n} but got pad ${e}.`);if("number"==typeof e)I.assert(I.isInt(e),(()=>`Error in ${t}: pad must be an integer when using dimRoundingMode ${n} but got pad ${e}.`));else{if("object"!=typeof e)throw Error(`Error in ${t}: Unknown padding parameter: ${e}`);e.forEach((e=>{e.forEach((e=>{I.assert(I.isInt(e),(()=>`Error in ${t}: pad must be an integer when using dimRoundingMode ${n} but got pad ${e}.`))}))}))}}}e.e=a,e.f=s,e.g=i,e.b=o,e.c=c,e.d=h,e.k=w,e.i=y,e.j=O,e.h=x,e.a=A;var I=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){return null==n?({inputs:n,backend:s})=>{const{a:c,b:u}=n,l=s;Object(o.a)([c,u],t);const h=l.data.get(c.dataId).values,p=l.data.get(u.dataId).values,f="string"===c.dtype?i._164.fromUint8ToStringArray(h):h,b="string"===c.dtype?i._164.fromUint8ToStringArray(p):p,m=a||c.dtype,[g,v]=e(c.shape,u.shape,f,b,m);return l.makeTensorInfo(v,m,g)}:({inputs:t,backend:s})=>{const{a:i,b:o}=t,l=s;if("complex64"===i.dtype||"complex64"===o.dtype){const t=Object(c.a)({inputs:{x:i},backend:l,attrs:{dtype:"complex64"}}),e=l.data.get(t.dataId),a=e.complexTensorInfos.real,s=e.complexTensorInfos.imag,h=l.data.get(a.dataId).values,p=l.data.get(s.dataId).values,f=Object(c.a)({inputs:{x:o},backend:l,attrs:{dtype:"complex64"}}),b=l.data.get(f.dataId),m=b.complexTensorInfos.real,g=b.complexTensorInfos.imag,v=l.data.get(m.dataId).values,w=l.data.get(g.dataId).values,[y,O,x]=n(i.shape,o.shape,h,p,v,w),A=l.makeTensorInfo(x,"float32",y),I=l.makeTensorInfo(x,"float32",O),j=Object(u.a)({inputs:{real:A,imag:I},backend:l});return l.disposeIntermediateTensorInfo(t),l.disposeIntermediateTensorInfo(f),l.disposeIntermediateTensorInfo(A),l.disposeIntermediateTensorInfo(I),j}{const t=l.data.get(i.dataId).values,n=l.data.get(o.dataId).values,s=a||i.dtype,[c,u]=e(i.shape,o.shape,t,n,s);return l.makeTensorInfo(u,s,c)}}}function s(t){return(e,n,a,s,o,c)=>{const u=i._164.assertAndGetBroadcastShape(e,n),l=i._408.sizeFromShape(u),h=u.length,p=i._408.computeStrides(u),f=i._408.getTypedArrayFromDType("float32",l),b=i._408.getTypedArrayFromDType("float32",l),m=i._164.getBroadcastDims(e,u),g=i._164.getBroadcastDims(n,u),v=i._164.mergeRealAndImagArrays(a,s),w=i._164.mergeRealAndImagArrays(o,c),y=e.length,O=i._408.computeStrides(e),x=n.length,A=i._408.computeStrides(n);if(m.length+g.length===0)for(let e=0;e<f.length;e++){const n=e%v.length,a=e%w.length,s=t(v[2*n],v[2*n+1],w[2*a],w[2*a+1]);f[e]=s.real,b[e]=s.imag}else for(let e=0;e<f.length;e++){const n=i._408.indexToLoc(e,h,p),a=n.slice(-y);m.forEach((d=>a[d]=0));const s=i._408.locToIndex(a,y,O),o=n.slice(-x);g.forEach((d=>o[d]=0));const c=i._408.locToIndex(o,x,A),u=t(v[2*s],v[2*s+1],w[2*c],w[2*c+1]);f[e]=u.real,b[e]=u.imag}return[f,b,u]}}e.a=a,e.b=s;var i=n(0),o=n(8),c=n(103),u=n(75)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){let counter=t.length,index=0;for(;counter>0;)index=Math.random()*counter|0,counter--,c(t,counter,index)}function s(t,e){if(t.length!==e.length)throw new Error(`Array sizes must match to be shuffled together First array length was ${t.length}Second array length was ${e.length}`);let counter=t.length,index=0;for(;counter>0;)index=Math.random()*counter|0,counter--,c(t,counter,index),c(e,counter,index)}function i(t,e,n){return Math.max(t,Math.min(e,n))}function o(t){return t%2==0?t:t+1}function c(t,e,n){const a=t[e];t[e]=t[n],t[n]=a}function u(t){let e=0;for(let n=0;n<t.length;n++)e+=t[n];return e}function l(t,e){const r=Math.random();return e*r+(1-r)*t}function h(t,e){let n=0;for(let a=0;a<t.length;a++){const diff=Number(t[a])-Number(e[a]);n+=diff*diff}return n}function p(t,e){if(!t)throw new Error("string"==typeof e?e:e())}function f(t,e,n=""){p(w(t,e),(()=>n+` Shapes ${t} and ${e} must match`))}function b(t){p(null!=t,(()=>"The input to the tensor constructor must be a non-null value."))}function m(shape){if(0===shape.length)return 1;let size=shape[0];for(let t=1;t<shape.length;t++)size*=shape[t];return size}function g(shape){return 0===shape.length}function v(t,e){if(t===e)return true;if(null==t||null==e)return false;if(t.length!==e.length)return false;for(let n=0;n<t.length;n++)if(null!==t[n]&&null!==e[n]&&t[n]!==e[n])return false;return true}function w(t,e){if(t===e)return true;if(null==t||null==e)return false;if(t.length!==e.length)return false;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return false;return true}function y(t){return t%1==0}function O(t){if(null!=Math.tanh)return Math.tanh(t);if(t===1/0)return 1;if(t===-1/0)return-1;{const e=Math.exp(2*t);return(e-1)/(e+1)}}function x(size){const t=Math.ceil(Math.sqrt(size));return[t,Math.ceil(size/t)]}function A(t){const e=new Uint32Array(t);for(let n=0;n<t;++n)e[n]=n;return a(e),e}function I(t,size){return size<=t.length?t:t+" ".repeat(size-t.length)}function j(t,e=(counter=>0),n,a){return new Promise(((s,i)=>{let o=0;const c=()=>{if(t())return s(),void 0;o++;const u=e(o);if(null!=n&&o>=n)return i(),void 0;null!=a?a(c,u):setTimeout(c,u)};c()}))}function C(shape,size){let t=1,e=-1;for(let n=0;n<shape.length;++n)if(shape[n]>=0)t*=shape[n];else if(-1===shape[n]){if(-1!==e)throw Error(`Shapes can only have 1 implicit size. Found -1 at dim ${e} and dim ${n}`);e=n}else if(shape[n]<0)throw Error(`Shapes can not be < 0. Found ${shape[n]} at dim ${n}`);if(-1===e){if(size>0&&size!==t)throw Error(`Size(${size}) must match the product of shape ${shape}`);return shape}if(0===t)throw Error(`Cannot infer the missing size in [${shape}] when there are 0 elements`);if(size%t!=0)throw Error(`The implicit shape can't be a fractional number. Got ${size} / ${t}`);const n=shape.slice();return n[e]=size/t,n}function _(t,shape){const e=shape.length;return p((t=null==t?shape.map(((t,e)=>e)):[].concat(t)).every((t=>t>=-e&&t<e)),(()=>`All values in axis param must be in range [-${e}, ${e}) but got axis ${t}`)),p(t.every((t=>y(t))),(()=>`All values in axis param must be integers but got axis ${t}`)),t.map((t=>t<0?e+t:t))}function k(shape,t){const e=[],n=[],a=null!=t&&Array.isArray(t)&&0===t.length,s=null==t||a?null:_(t,shape).sort();let i=0;for(let t=0;t<shape.length;++t){if(null!=s){if(s[i]===t&&1!==shape[t])throw new Error(`Can't squeeze axis ${t} since its dim '${shape[t]}' is not 1`);(null==s[i]||s[i]>t)&&1===shape[t]&&(e.push(shape[t]),n.push(t)),s[i]<=t&&i++}1!==shape[t]&&(e.push(shape[t]),n.push(t))}return{newShape:e,keptDims:n}}function S(t,size){return T(t,size)}function T(t,size){let e=null;if(null==t||"float32"===t)e=new Float32Array(size);else if("int32"===t)e=new Int32Array(size);else if("bool"===t)e=new Uint8Array(size);else{if("string"!==t)throw new Error(`Unknown data type ${t}`);e=new Array(size)}return e}function L(t,e){for(let n=0;n<t.length;n++){const a=t[n];if(isNaN(a)||!isFinite(a))throw Error(`A tensor of type ${e} being uploaded contains ${a}.`)}}function B(t){return"bool"===t||"complex64"===t||"float32"===t||"int32"===t||"string"===t}function N(t,e){return"complex64"!==e&&(("float32"!==e||"complex64"===t)&&(("int32"!==e||"float32"===t||"complex64"===t)&&("bool"!==e||"bool"!==t)))}function E(t){if("float32"===t||"int32"===t)return 4;if("complex64"===t)return 8;if("bool"===t)return 1;throw new Error(`Unknown dtype ${t}`)}function M(t){if(null==t)return 0;let e=0;return t.forEach((t=>e+=t.length)),e}function F(t){return"string"==typeof t||t instanceof String}function W(t){return"boolean"==typeof t}function z(t){return"number"==typeof t}function P(t){return Array.isArray(t)?P(t[0]):t instanceof Float32Array?"float32":t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray?"int32":z(t)?"float32":F(t)?"string":W(t)?"bool":"float32"}function G(t){return!!(t&&t.constructor&&t.call&&t.apply)}function V(size,t){for(let e=t;e<size;++e)if(size%e==0)return e;return size}function H(shape){const t=shape.length;if(t<2)return[];const e=new Array(t-1);e[t-2]=shape[t-1];for(let n=t-3;n>=0;--n)e[n]=e[n+1]*shape[n+1];return e}function Z(t,shape,e,n=false){const a=new Array;if(1===shape.length){const d=shape[0]*(n?2:1);for(let n=0;n<d;n++)a[n]=e[t+n]}else{const d=shape[0],s=shape.slice(1),i=s.reduce(((t,e)=>t*e))*(n?2:1);for(let o=0;o<d;o++)a[o]=Z(t+o*i,s,e,n)}return a}function X(shape,t,e=false){if(0===shape.length)return t[0];const size=shape.reduce(((t,e)=>t*e))*(e?2:1);if(0===size)return[];if(size!==t.length)throw new Error(`[${shape}] does not match the input size ${t.length}${e?" for a complex tensor":""}.`);return Z(0,shape,t,e)}function U(data,t){if(Array.isArray(data))return data;if("float32"===t)return data instanceof Float32Array?data:new Float32Array(data);if("int32"===t)return data instanceof Int32Array?data:new Int32Array(data);if("bool"===t||"string"===t)return Uint8Array.from(new Int32Array(data));throw new Error(`Unknown dtype ${t}`)}function $(size,t){const e=Y(size,t);for(let t=0;t<e.length;t++)e[t]=1;return e}function Y(size,t){if(null==t||"float32"===t||"complex64"===t)return new Float32Array(size);if("int32"===t)return new Int32Array(size);if("bool"===t)return new Uint8Array(size);throw new Error(`Unknown data type ${t}`)}function J(shape,t){const size=shape.reduce(((t,e)=>t*e),1);if(null==t||"float32"===t)return X(shape,new Float32Array(size));if("int32"===t)return X(shape,new Int32Array(size));if("bool"===t)return X(shape,new Uint8Array(size));throw new Error(`Unknown data type ${t}`)}function K(shape){shape.forEach((t=>{p(Number.isInteger(t)&&t>=0,(()=>`Tensor must have a shape comprised of positive integers but got shape [${shape}].`))}))}function tt(t,e,n){if(0===e)return 0;if(1===e)return t[0];let index=t[t.length-1];for(let e=0;e<t.length-1;++e)index+=n[e]*t[e];return index}function nt(index,t,e){if(0===t)return[];if(1===t)return[index];const n=new Array(t);for(let t=0;t<n.length-1;++t)n[t]=Math.floor(index/e[t]),index-=n[t]*e[t];return n[n.length-1]=index,n}function rt(t){return t&&t.then&&"function"==typeof t.then}e.M=a,e.N=s,e.j=i,e.H=o,e.S=c,e.R=u,e.J=l,e.n=h,e.c=p,e.f=f,e.e=b,e.O=m,e.z=g,e.b=v,e.a=w,e.w=y,e.T=O,e.P=x,e.m=A,e.L=I,e.K=j,e.t=C,e.I=_,e.Q=k,e.p=S,e.o=T,e.i=L,e.B=B,e.q=N,e.h=E,e.g=M,e.A=F,e.u=W,e.x=z,e.s=P,e.v=G,e.G=V,e.k=H,e.U=X,e.l=U,e.D=$,e.F=Y,e.E=J,e.d=K,e.C=tt,e.r=nt,e.y=rt},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","neg")};return s.a.runKernel(i._55,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({neg_:a});e.a=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(11);n.d(e,"abs",(function(){return a.b})),n.d(e,"acos",(function(){return a.c})),n.d(e,"acosh",(function(){return a.d})),n.d(e,"add",(function(){return a.e})),n.d(e,"addN",(function(){return a.f})),n.d(e,"all",(function(){return a.g})),n.d(e,"any",(function(){return a.h})),n.d(e,"argMax",(function(){return a.i})),n.d(e,"argMin",(function(){return a.j})),n.d(e,"asin",(function(){return a.k})),n.d(e,"asinh",(function(){return a.l})),n.d(e,"atan",(function(){return a.m})),n.d(e,"atan2",(function(){return a.n})),n.d(e,"atanh",(function(){return a.o})),n.d(e,"avgPool",(function(){return a.p})),n.d(e,"avgPool3d",(function(){return a.q})),n.d(e,"basicLSTMCell",(function(){return a.r})),n.d(e,"batchToSpaceND",(function(){return a.w})),n.d(e,"batchNorm",(function(){return a.s})),n.d(e,"batchNorm2d",(function(){return a.t})),n.d(e,"batchNorm3d",(function(){return a.u})),n.d(e,"batchNorm4d",(function(){return a.v})),n.d(e,"bincount",(function(){return a.x})),n.d(e,"bitwiseAnd",(function(){return a.y})),n.d(e,"broadcastArgs",(function(){return a.A})),n.d(e,"broadcastTo",(function(){return a.B})),n.d(e,"buffer",(function(){return a.C})),n.d(e,"cast",(function(){return a.D})),n.d(e,"ceil",(function(){return a.E})),n.d(e,"clipByValue",(function(){return a.F})),n.d(e,"clone",(function(){return a.G})),n.d(e,"complex",(function(){return a.H})),n.d(e,"concat",(function(){return a.I})),n.d(e,"concat1d",(function(){return a.J})),n.d(e,"concat2d",(function(){return a.K})),n.d(e,"concat3d",(function(){return a.L})),n.d(e,"concat4d",(function(){return a.M})),n.d(e,"conv1d",(function(){return a.N})),n.d(e,"conv2d",(function(){return a.O})),n.d(e,"conv2dTranspose",(function(){return a.P})),n.d(e,"conv3d",(function(){return a.Q})),n.d(e,"conv3dTranspose",(function(){return a.R})),n.d(e,"cos",(function(){return a.S})),n.d(e,"cosh",(function(){return a.T})),n.d(e,"cumprod",(function(){return a.V})),n.d(e,"cumsum",(function(){return a.W})),n.d(e,"denseBincount",(function(){return a.X})),n.d(e,"depthToSpace",(function(){return a.Y})),n.d(e,"depthwiseConv2d",(function(){return a.Z})),n.d(e,"diag",(function(){return a._0})),n.d(e,"dilation2d",(function(){return a._1})),n.d(e,"div",(function(){return a._2})),n.d(e,"divNoNan",(function(){return a._3})),n.d(e,"dot",(function(){return a._4})),n.d(e,"einsum",(function(){return a._6})),n.d(e,"elu",(function(){return a._7})),n.d(e,"ensureShape",(function(){return a._9})),n.d(e,"equal",(function(){return a._10})),n.d(e,"erf",(function(){return a._11})),n.d(e,"euclideanNorm",(function(){return a._12})),n.d(e,"exp",(function(){return a._13})),n.d(e,"expandDims",(function(){return a._14})),n.d(e,"expm1",(function(){return a._15})),n.d(e,"eye",(function(){return a._16})),n.d(e,"fill",(function(){return a._18})),n.d(e,"floor",(function(){return a._19})),n.d(e,"floorDiv",(function(){return a._20})),n.d(e,"gather",(function(){return a._22})),n.d(e,"greater",(function(){return a._24})),n.d(e,"greaterEqual",(function(){return a._25})),n.d(e,"imag",(function(){return a._27})),n.d(e,"isFinite",(function(){return a._31})),n.d(e,"isInf",(function(){return a._32})),n.d(e,"isNaN",(function(){return a._33})),n.d(e,"leakyRelu",(function(){return a._34})),n.d(e,"less",(function(){return a._35})),n.d(e,"lessEqual",(function(){return a._36})),n.d(e,"linspace",(function(){return a._38})),n.d(e,"localResponseNormalization",(function(){return a._39})),n.d(e,"log",(function(){return a._40})),n.d(e,"log1p",(function(){return a._41})),n.d(e,"logSigmoid",(function(){return a._42})),n.d(e,"logSoftmax",(function(){return a._43})),n.d(e,"logSumExp",(function(){return a._44})),n.d(e,"logicalAnd",(function(){return a._45})),n.d(e,"logicalNot",(function(){return a._46})),n.d(e,"logicalOr",(function(){return a._47})),n.d(e,"logicalXor",(function(){return a._48})),n.d(e,"lowerBound",(function(){return a._50})),n.d(e,"matMul",(function(){return a._51})),n.d(e,"max",(function(){return a._52})),n.d(e,"maxPool",(function(){return a._53})),n.d(e,"maxPool3d",(function(){return a._54})),n.d(e,"maxPoolWithArgmax",(function(){return a._55})),n.d(e,"maximum",(function(){return a._56})),n.d(e,"mean",(function(){return a._57})),n.d(e,"meshgrid",(function(){return a._58})),n.d(e,"min",(function(){return a._59})),n.d(e,"minimum",(function(){return a._60})),n.d(e,"mirrorPad",(function(){return a._61})),n.d(e,"mod",(function(){return a._62})),n.d(e,"moments",(function(){return a._63})),n.d(e,"mul",(function(){return a._65})),n.d(e,"multiRNNCell",(function(){return a._66})),n.d(e,"multinomial",(function(){return a._67})),n.d(e,"neg",(function(){return a._68})),n.d(e,"notEqual",(function(){return a._70})),n.d(e,"oneHot",(function(){return a._71})),n.d(e,"ones",(function(){return a._72})),n.d(e,"onesLike",(function(){return a._73})),n.d(e,"outerProduct",(function(){return a._75})),n.d(e,"pad",(function(){return a._76})),n.d(e,"pad1d",(function(){return a._77})),n.d(e,"pad2d",(function(){return a._78})),n.d(e,"pad3d",(function(){return a._79})),n.d(e,"pad4d",(function(){return a._80})),n.d(e,"pool",(function(){return a._81})),n.d(e,"pow",(function(){return a._82})),n.d(e,"prelu",(function(){return a._83})),n.d(e,"print",(function(){return a._84})),n.d(e,"prod",(function(){return a._85})),n.d(e,"raggedGather",(function(){return a._86})),n.d(e,"raggedRange",(function(){return a._87})),n.d(e,"raggedTensorToTensor",(function(){return a._88})),n.d(e,"rand",(function(){return a._89})),n.d(e,"randomGamma",(function(){return a._90})),n.d(e,"randomNormal",(function(){return a._91})),n.d(e,"randomStandardNormal",(function(){return a._92})),n.d(e,"randomUniform",(function(){return a._93})),n.d(e,"randomUniformInt",(function(){return a._94})),n.d(e,"range",(function(){return a._95})),n.d(e,"real",(function(){return a._96})),n.d(e,"reciprocal",(function(){return a._97})),n.d(e,"relu",(function(){return a._98})),n.d(e,"relu6",(function(){return a._99})),n.d(e,"reshape",(function(){return a._100})),n.d(e,"reverse",(function(){return a._101})),n.d(e,"reverse1d",(function(){return a._102})),n.d(e,"reverse2d",(function(){return a._103})),n.d(e,"reverse3d",(function(){return a._104})),n.d(e,"reverse4d",(function(){return a._105})),n.d(e,"round",(function(){return a._107})),n.d(e,"rsqrt",(function(){return a._108})),n.d(e,"scalar",(function(){return a._109})),n.d(e,"selu",(function(){return a._112})),n.d(e,"separableConv2d",(function(){return a._113})),n.d(e,"setdiff1dAsync",(function(){return a._114})),n.d(e,"sigmoid",(function(){return a._115})),n.d(e,"sign",(function(){return a._116})),n.d(e,"sin",(function(){return a._118})),n.d(e,"sinh",(function(){return a._119})),n.d(e,"slice",(function(){return a._120})),n.d(e,"slice1d",(function(){return a._121})),n.d(e,"slice2d",(function(){return a._122})),n.d(e,"slice3d",(function(){return a._123})),n.d(e,"slice4d",(function(){return a._124})),n.d(e,"softmax",(function(){return a._125})),n.d(e,"softplus",(function(){return a._126})),n.d(e,"spaceToBatchND",(function(){return a._127})),n.d(e,"fft",(function(){return a._17})),n.d(e,"ifft",(function(){return a._26})),n.d(e,"irfft",(function(){return a._30})),n.d(e,"rfft",(function(){return a._106})),n.d(e,"split",(function(){return a._131})),n.d(e,"sqrt",(function(){return a._132})),n.d(e,"square",(function(){return a._133})),n.d(e,"squaredDifference",(function(){return a._134})),n.d(e,"squeeze",(function(){return a._135})),n.d(e,"stack",(function(){return a._136})),n.d(e,"step",(function(){return a._137})),n.d(e,"stridedSlice",(function(){return a._138})),n.d(e,"sub",(function(){return a._140})),n.d(e,"sum",(function(){return a._141})),n.d(e,"tan",(function(){return a._142})),n.d(e,"tanh",(function(){return a._143})),n.d(e,"tensor",(function(){return a._144})),n.d(e,"tensor1d",(function(){return a._145})),n.d(e,"tensor2d",(function(){return a._146})),n.d(e,"tensor3d",(function(){return a._147})),n.d(e,"tensor4d",(function(){return a._148})),n.d(e,"tensor5d",(function(){return a._149})),n.d(e,"tensor6d",(function(){return a._150})),n.d(e,"tensorScatterUpdate",(function(){return a._151})),n.d(e,"tile",(function(){return a._152})),n.d(e,"topk",(function(){return a._153})),n.d(e,"truncatedNormal",(function(){return a._155})),n.d(e,"unique",(function(){return a._156})),n.d(e,"unsortedSegmentSum",(function(){return a._157})),n.d(e,"unstack",(function(){return a._158})),n.d(e,"upperBound",(function(){return a._159})),n.d(e,"variable",(function(){return a._160})),n.d(e,"where",(function(){return a._161})),n.d(e,"whereAsync",(function(){return a._162})),n.d(e,"zeros",(function(){return a._163})),n.d(e,"zerosLike",(function(){return a._164})),n.d(e,"op",(function(){return a._74})),n.d(e,"OP_SCOPE_SUFFIX",(function(){return a.a})),n.d(e,"image",(function(){return a._28})),n.d(e,"linalg",(function(){return a._37})),n.d(e,"losses",(function(){return a._49})),n.d(e,"spectral",(function(){return a._130})),n.d(e,"fused",(function(){return a._21})),n.d(e,"signal",(function(){return a._117})),n.d(e,"sparse",(function(){return a._128})),n.d(e,"string",(function(){return a._139})),n.d(e,"booleanMaskAsync",(function(){return a.z})),n.d(e,"transpose",(function(){return a._154})),n.d(e,"norm",(function(){return a._69})),n.d(e,"movingAverage",(function(){return a._64})),n.d(e,"scatterND",(function(){return a._110})),n.d(e,"searchSorted",(function(){return a._111})),n.d(e,"sparseToDense",(function(){return a._129})),n.d(e,"gatherND",(function(){return a._23})),n.d(e,"dropout",(function(){return a._5})),n.d(e,"enclosingPowerOfTwo",(function(){return a._8})),n.d(e,"cosineWindow",(function(){return a.U})),n.d(e,"inTopKAsync",(function(){return a._29}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const i=n.map(((input,t)=>{const n={logicalShape:input.shape,texShape:input.isUniform?null:input.texData.texShape,isUniform:input.isUniform,isPacked:!input.isUniform&&input.texData.isPacked,flatOffset:null};return null!=input.texData&&null!=input.texData.slice&&input.texData.slice.flatOffset>0&&(n.flatOffset=input.texData.slice.flatOffset),{name:e.variableNames[t],shapeInfo:n}})),o=i.map((t=>t.shapeInfo)),c={logicalShape:a.shape,texShape:a.texData.texShape,isUniform:false,isPacked:a.texData.isPacked,flatOffset:null},u=h.c(i,c,e),f=Object(p.createFragmentShader)(t.gl,u),b=t.createProgram(f);return Object(l._222)().get("ENGINE_COMPILE_ONLY")?{program:e,fragmentShader:f,source:u,webGLProgram:b,inShapeInfos:o,outShapeInfo:c,variablesLocations:null,customUniformLocations:null,infLoc:null,nanLoc:null,outShapeLocation:null,outShapeStridesLocation:null,outTexShapeLocation:null}:(t.buildVao(b),Object.assign({program:e,fragmentShader:f,source:u,webGLProgram:b,inShapeInfos:o,outShapeInfo:c},s(t,e,b)))}function s(t,e,n){const a=[],s=[];let i,o,c,u=null,h=null;h=t.getUniformLocation(n,"NAN",false),1===Object(l._222)().getNumber("WEBGL_VERSION")&&(u=t.getUniformLocation(n,"INFINITY",false));const p=false;for(const s of e.variableNames){const i={name:s,uniform:t.getUniformLocation(n,s,p),offset:t.getUniformLocation(n,`offset${s}`,p)};e.enableShapeUniforms&&(i.shape=t.getUniformLocation(n,`${s}Shape`,p),i.texShape=t.getUniformLocation(n,`${s}TexShape`,p)),a.push(i)}if(e.enableShapeUniforms&&(i=t.getUniformLocation(n,"outShape",p),c=t.getUniformLocation(n,"outShapeStrides",p),o=t.getUniformLocation(n,"outTexShape",p)),e.customUniforms)for(const d of e.customUniforms)s.push(t.getUniformLocation(n,d.name,p));return{variablesLocations:a,customUniformLocations:s,infLoc:u,nanLoc:h,outShapeLocation:i,outShapeStridesLocation:c,outTexShapeLocation:o}}function i(t,e){if(t.length!==e.length)throw Error(`Binary was compiled with ${t.length} inputs, but was executed with ${e.length} inputs`);t.forEach(((t,n)=>{const a=t.logicalShape,input=e[n],s=input.shape;if(!l._408.arraysEqual(a,s))throw Error(`Binary was compiled with different shapes than the current args. Shapes ${a} and ${s} must match`);if(t.isUniform&&input.isUniform)return;const i=t.texShape,o=input.isUniform?null:input.texData.texShape;if(!l._408.arraysEqual(i,o))throw Error(`Binary was compiled with different texture shapes than the current args. Shape ${i} and ${o} must match`)}))}function o(t,e,n,a,s){e.program.enableShapeUniforms||(i(e.inShapeInfos,n),i([e.outShapeInfo],[a]));const o=a.texData.texture,c=a.texData.texShape;a.texData.isPacked?t.setOutputPackedMatrixTexture(o.texture,c[0],c[1]):t.setOutputMatrixTexture(o.texture,c[0],c[1]),t.setProgram(e.webGLProgram),t.bindVertexArray(e.webGLProgram.vao),1===Object(l._222)().getNumber("WEBGL_VERSION")&&null!==e.infLoc&&t.gl.uniform1f(e.infLoc,1/0),null!==e.nanLoc&&t.gl.uniform1f(e.nanLoc,NaN);for(let a=0;a<n.length;++a){const input=n[a],{uniform:s,offset:i,shape:o,texShape:c}=e.variablesLocations[a];if(o){const{uniformShape:n}=h.b(e.program.packedInputs,input.shape,input.texData.texShape);switch(n.length){case 1:t.gl.uniform1iv(o,new Int32Array(n));break;case 2:t.gl.uniform2iv(o,new Int32Array(n));break;case 3:t.gl.uniform3iv(o,new Int32Array(n));break;case 4:t.gl.uniform4iv(o,new Int32Array(n))}}if(c&&t.gl.uniform2i(c,input.texData.texShape[0],input.texData.texShape[1]),null!=s)if(input.isUniform)if(l._408.sizeFromShape(input.shape)<2)t.gl.uniform1f(s,input.uniformValues[0]);else{let e=input.uniformValues;e instanceof Float32Array||(e=new Float32Array(e)),t.gl.uniform1fv(s,e)}else null!=input.texData.slice&&null!=i&&t.gl.uniform1i(i,input.texData.slice.flatOffset),t.setInputMatrixTexture(input.texData.texture.texture,s,a)}const u=e.outShapeLocation;if(u)switch(a.shape.length){case 1:t.gl.uniform1iv(u,new Int32Array(a.shape));break;case 2:t.gl.uniform2iv(u,new Int32Array(a.shape));break;case 3:t.gl.uniform3iv(u,new Int32Array(a.shape));break;case 4:t.gl.uniform4iv(u,new Int32Array(a.shape))}if(e.outShapeStridesLocation){const n=l._408.computeStrides(a.shape);switch(a.shape.length){case 2:t.gl.uniform1iv(e.outShapeStridesLocation,new Int32Array(n));break;case 3:t.gl.uniform2iv(e.outShapeStridesLocation,new Int32Array(n));break;case 4:t.gl.uniform3iv(e.outShapeStridesLocation,new Int32Array(n))}}if(e.outTexShapeLocation&&t.gl.uniform2i(e.outTexShapeLocation,a.texData.texShape[0],a.texData.texShape[1]),e.program.customUniforms&&s)for(let n=0;n<e.program.customUniforms.length;++n){const d=e.program.customUniforms[n],a=e.customUniformLocations[n],i=s[n];if("float"===d.type)t.gl.uniform1fv(a,i);else if("vec2"===d.type)t.gl.uniform2fv(a,i);else if("vec3"===d.type)t.gl.uniform3fv(a,i);else if("vec4"===d.type)t.gl.uniform4fv(a,i);else if("int"===d.type)t.gl.uniform1iv(a,i);else if("ivec2"===d.type)t.gl.uniform2iv(a,i);else if("ivec3"===d.type)t.gl.uniform3iv(a,i);else{if("ivec4"!==d.type)throw Error(`uniform type ${d.type} is not supported yet.`);t.gl.uniform4iv(a,i)}}t.executeProgram()}function c(t,e,n){let a="";e.concat(n).forEach((e=>{const s=null!=e.texData&&null!=e.texData.slice&&e.texData.slice.flatOffset>0;if(t.enableShapeUniforms&&!e.isUniform){const i=e.texData.texShape,{useSqueezeShape:o,uniformShape:c,keptDims:u}=h.b(t.packedInputs,e.shape,i);let p="",f="",b="";if(1===c.length&&t.packedInputs){const t=[Math.ceil(i[0]/2),Math.ceil(i[1]/2)];p=`${t[0]>1}_${t[1]>1}`}else if(2!==c.length||t.packedInputs){if(c.length>2&&!t.packedInputs){const t=l._408.computeStrides(c);b=`${t[0]===i[1]}_${t[t.length-1]===i[1]}`}}else f=`${c[0]>1}_${c[1]>1}`;const m=e.shape.length,g=2===c.length&&l._408.arraysEqual(e.shape,i),v=1===l._408.sizeFromShape(e.shape),w=l._164.getBroadcastDims(e.shape,n.shape),y=!t.packedInputs&&m===n.shape.length&&l._408.arraysEqual(i,n.texData.texShape),O=t.packedInputs||c.length>2?"":`${i[0]>1}_${i[1]>1}`;a+=`${m}_${y}_${o?u:""}_${c.length}_${v}_${w}_${g}_${p}_${f}_${b}_${O}_${s}`}else{const t=e.isUniform?"uniform":e.texData.texShape;a+=`${e.shape}_${t}_${s}`}}));const s=t.userCode;let i=t.constructor.name;return i+="_"+a+"_"+s+`${Object(l._222)().getNumber("WEBGL_VERSION")}`,i}function u(t){return Object(l._222)().getBool("WEBGL_USE_SHAPES_UNIFORMS")&&t<=4}e.a=a,e.b=s,e.d=o,e.c=c,e.e=u;var l=n(0),h=n(28),p=n(43)},function(t,e,n){"use strict";function a(t){const e={};return t.replace(/[?&]([^=?&]+)(?:=([^&]*))?/g,((t,...n)=>(s(e,n[0],n[1]),n.join("=")))),e}function s(t,e,n){t[decodeURIComponent(e)]=decodeURIComponent(n||"")}function i(t,e){const n=e.toLowerCase();return"true"===n||"false"===n?"true"===n:""+ +n===n?+n:e}function o(){return p}function c(t){p=t}e.c=o,n.d(e,"a",(function(){return p})),e.d=c;var u=n(35);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const l="tfjsflags";class h{constructor(t){this.global=t,this.flags={},this.flagRegistry={},this.urlFlags={},this.getQueryParams=a,this.populateURLFlags()}setPlatform(t,e){null!=this.platform&&(o().getBool("IS_TEST")||o().getBool("PROD")||console.warn(`Platform ${this.platformName} has already been set. Overwriting the platform with ${t}.`)),this.platformName=t,this.platform=e}registerFlag(t,e,n){if(this.flagRegistry[t]={evaluationFn:e,setHook:n},null!=this.urlFlags[t]){const e=this.urlFlags[t];o().getBool("IS_TEST")||o().getBool("PROD")||console.warn(`Setting feature override from URL ${t}: ${e}.`),this.set(t,e)}}async getAsync(t){return t in this.flags||(this.flags[t]=await this.evaluateFlag(t)),this.flags[t]}get(t){if(t in this.flags)return this.flags[t];const e=this.evaluateFlag(t);if(Object(u.y)(e))throw new Error(`Flag ${t} cannot be synchronously evaluated. Please use getAsync() instead.`);return this.flags[t]=e,this.flags[t]}getNumber(t){return this.get(t)}getBool(t){return this.get(t)}getString(t){return this.get(t)}getFlags(){return this.flags}get features(){return this.flags}set(t,e){if(null==this.flagRegistry[t])throw new Error(`Cannot set flag ${t} as it has not been registered.`);this.flags[t]=e,null!=this.flagRegistry[t].setHook&&this.flagRegistry[t].setHook(e)}evaluateFlag(t){if(null==this.flagRegistry[t])throw new Error(`Cannot evaluate flag '${t}': no evaluation function found.`);return this.flagRegistry[t].evaluationFn()}setFlags(t){this.flags=Object.assign({},t)}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;const t=this.getQueryParams(this.global.location.search);if(l in t){const e=undefined;t.tfjsflags.split(",").forEach((t=>{const[e,n]=t.split(":");this.urlFlags[e]=i(e,n)}))}}}e.b=h;let p=null},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:i}=e,{shape:shape}=a,o=s._408.sizeFromShape(i.shape),c=s._408.inferFromImplicitShape(shape,o),u=s._408.sizeFromShape(c);s._408.assert(o===u,(()=>`The new shape (${c}) has ${u} 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);const l=n.data.get(i.dataId);if(null!=l.complexTensorInfos){const t=l.complexTensorInfos.real,e=l.complexTensorInfos.imag;t.shape=c,e.shape=c}return{dataId:i.dataId,shape:c,dtype:i.dtype}}e.a=a;var s=n(0);const i={kernelName:s._92,backendName:"cpu",kernelFunc:a};e.b=i},function(t,e,n){"use strict";function a(t=0){return`if (isnan(x)) return x;\n return x > 0.0 ? 1.0 : float(${t});\n `}var s=n(38);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class i{constructor(t,e){this.variableNames=["A"],this.outputShape=t,this.enableShapeUniforms=Object(s.e)(this.outputShape.length),this.userCode=`\n float unaryOperation(float x) {\n ${e}\n }\n\n void main() {\n float x = getAAtOutCoords();\n float y = unaryOperation(x);\n\n setOutput(y);\n }\n `}}e.i=i;const o="if (isnan(x)) return x;";e.b=o;const c="return x;";e.e=c;const u="return abs(x);";e.a=u;const l="return (x >= 0.0) ? x : (exp(x) - 1.0);";e.d=l;const h=o+"\n return (x < 0.0) ? 0.0 : x;\n";e.f=h;const p=o+"\n return (x < 0.0) ? 0.0 : min(6.0, x);\n";e.g=p;const f="return x;";e.c=f;const b="return 1.0 / (1.0 + exp(-1.0 * x));";e.h=b},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size){const n=Object(o.a)(t,"x","slice","string_or_numeric");if(0===n.rank)throw new Error("Slicing scalar is not possible");const a={x:n},c={begin:e,size:size};return s.a.runKernel(i._94,a,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({slice_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=e();return Object(st._222)().getBool("DEBUG")&&s(t),n}function s(t){const e=t.getError();if(e!==t.NO_ERROR)throw new Error("WebGL Error: "+o(t,e))}function i(t){return!!(Object(st._222)().getBool("WEBGL_RENDER_FLOAT32_ENABLED")||0===t||ut<Math.abs(t)&&Math.abs(t)<lt)}function o(t,e){switch(e){case t.NO_ERROR:return"NO_ERROR";case t.INVALID_ENUM:return"INVALID_ENUM";case t.INVALID_VALUE:return"INVALID_VALUE";case t.INVALID_OPERATION:return"INVALID_OPERATION";case t.INVALID_FRAMEBUFFER_OPERATION:return"INVALID_FRAMEBUFFER_OPERATION";case t.OUT_OF_MEMORY:return"OUT_OF_MEMORY";case t.CONTEXT_LOST_WEBGL:return"CONTEXT_LOST_WEBGL";default:return`Unknown error code ${e}`}}function c(t,e){return N(t,(()=>t.getExtension(e)),'Extension "'+e+'" not supported on this browser.')}function u(t,e){const n=N(t,(()=>t.createShader(t.VERTEX_SHADER)),"Unable to create vertex WebGLShader.");if(a(t,(()=>t.shaderSource(n,e))),a(t,(()=>t.compileShader(n))),false===t.getShaderParameter(n,t.COMPILE_STATUS))throw console.log(t.getShaderInfoLog(n)),new Error("Failed to compile vertex shader.");return n}function l(t,e){const n=N(t,(()=>t.createShader(t.FRAGMENT_SHADER)),"Unable to create fragment WebGLShader.");if(a(t,(()=>t.shaderSource(n,e))),a(t,(()=>t.compileShader(n))),Object(st._222)().get("ENGINE_COMPILE_ONLY"))return n;if(false===t.getShaderParameter(n,t.COMPILE_STATUS))throw h(e,t.getShaderInfoLog(n)),new Error("Failed to compile fragment shader.");return n}function h(t,e){const n=dt.exec(e);if(null==n)return console.log(`Couldn't parse line number in error: ${e}`),console.log(t),void 0;const a=+n[1],s=t.split("\n"),i=s.length.toString().length+2,o=s.map(((line,t)=>st._408.rightPad((t+1).toString(),i)+line));let c=0;for(let t=0;t<o.length;t++)c=Math.max(o[t].length,c);const u=o.slice(0,a-1),l=o.slice(a-1,a),h=o.slice(a);console.log(u.join("\n")),console.log(e.split("\n")[0]),console.log(`%c ${st._408.rightPad(l[0],c)}`,"border:1px solid red; background-color:#e3d2d2; color:#a61717"),console.log(h.join("\n"))}function p(t){return N(t,(()=>t.createProgram()),"Unable to create WebGLProgram.")}function f(t,e){if(a(t,(()=>t.linkProgram(e))),!Object(st._222)().get("ENGINE_COMPILE_ONLY")&&false===t.getProgramParameter(e,t.LINK_STATUS))throw console.log(t.getProgramInfoLog(e)),new Error("Failed to link vertex and fragment shaders.")}function b(t,e){if(a(t,(()=>t.validateProgram(e))),false===t.getProgramParameter(e,t.VALIDATE_STATUS))throw console.log(t.getProgramInfoLog(e)),new Error("Shader program validation failed.")}function m(t,data){const e=N(t,(()=>t.createBuffer()),"Unable to create WebGLBuffer");return a(t,(()=>t.bindBuffer(t.ARRAY_BUFFER,e))),a(t,(()=>t.bufferData(t.ARRAY_BUFFER,data,t.STATIC_DRAW))),e}function g(t,data){const e=N(t,(()=>t.createBuffer()),"Unable to create WebGLBuffer");return a(t,(()=>t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e))),a(t,(()=>t.bufferData(t.ELEMENT_ARRAY_BUFFER,data,t.STATIC_DRAW))),e}function v(){return 2===Object(st._222)().getNumber("WEBGL_VERSION")?1:4}function w(t){return N(t,(()=>t.createTexture()),"Unable to create WebGLTexture.")}function y(t,e){const n=Object(st._222)().getNumber("WEBGL_MAX_TEXTURE_SIZE");if(t<=0||e<=0){const n=undefined;throw new Error("Requested texture size "+`[${t}x${e}]`+" is invalid.")}if(t>n||e>n){const a=undefined,s=undefined;throw new Error("Requested texture size "+`[${t}x${e}]`+" greater than WebGL maximum on this browser / GPU "+`[${n}x${n}]`+".")}}function O(t){return N(t,(()=>t.createFramebuffer()),"Unable to create WebGLFramebuffer.")}function x(t,e,n,s,i,o,c){const u=t.getAttribLocation(e,n);return-1!==u&&(a(t,(()=>t.bindBuffer(t.ARRAY_BUFFER,s))),a(t,(()=>t.vertexAttribPointer(u,i,t.FLOAT,false,o,c))),a(t,(()=>t.enableVertexAttribArray(u))),true)}function A(t,e,n){E(t,n),a(t,(()=>t.activeTexture(t.TEXTURE0+n))),a(t,(()=>t.bindTexture(t.TEXTURE_2D,e)))}function I(t,e){E(t,e),a(t,(()=>t.activeTexture(t.TEXTURE0+e))),a(t,(()=>t.bindTexture(t.TEXTURE_2D,null)))}function j(t,e,n){return N(t,(()=>t.getUniformLocation(e,n)),'uniform "'+n+'" not present in program.')}function C(t,e,n){return t.getUniformLocation(e,n)}function _(t,e,n,s){a(t,(()=>A(t,e,s))),a(t,(()=>t.uniform1i(n,s)))}function k(t){a(t,(()=>t.bindFramebuffer(t.FRAMEBUFFER,null))),a(t,(()=>t.viewport(0,0,t.canvas.width,t.canvas.height))),a(t,(()=>t.scissor(0,0,t.canvas.width,t.canvas.height)))}function S(t,e,n){a(t,(()=>t.bindFramebuffer(t.FRAMEBUFFER,n))),a(t,(()=>t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0)))}function T(t,e){a(t,(()=>t.bindFramebuffer(t.FRAMEBUFFER,e))),a(t,(()=>t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,null,0)))}function L(t){const e=t.checkFramebufferStatus(t.FRAMEBUFFER);if(e!==t.FRAMEBUFFER_COMPLETE)throw new Error("Error binding framebuffer: "+B(t,e))}function B(t,e){switch(e){case t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:return"FRAMEBUFFER_INCOMPLETE_ATTACHMENT";case t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:return"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";case t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:return"FRAMEBUFFER_INCOMPLETE_DIMENSIONS";case t.FRAMEBUFFER_UNSUPPORTED:return"FRAMEBUFFER_UNSUPPORTED";default:return`unknown error ${e}`}}function N(t,e,n){const s=a(t,(()=>e()));if(null==s)throw new Error(n);return s}function E(t,e){const n=t.MAX_COMBINED_TEXTURE_IMAGE_UNITS-1,a=e+t.TEXTURE0;if(a<t.TEXTURE0||a>n){const t=undefined;throw new Error(`textureUnit must be in ${`[gl.TEXTURE0, gl.TEXTURE${n}]`}.`)}}function M(shape,t=2){return st._408.sizeFromShape(shape.slice(0,shape.length-t))}function F(shape){if(0===shape.length)throw Error("Cannot get rows and columns of an empty shape array.");return[shape.length>1?shape[shape.length-2]:1,shape[shape.length-1]]}function W(shape){let t=[1,1,1];const e=undefined;return 0===shape.length||1===shape.length&&1===shape[0]||(t=[M(shape),...F(shape)]),t}function z(t,e=false){let n=Object(st._222)().getNumber("WEBGL_MAX_TEXTURE_SIZE"),a=Object(st._222)().getNumber("WEBGL_MAX_SIZE_FOR_NARROW_TEXTURE");if(a===1/0&&Object(st._222)().getBool("WEBGL_AUTO_SQUARIFY_NARROW_TEXTURE_SHAPE")&&(a=n/2),e&&(n*=2,a*=2,1===(t=t.map(((d,e)=>e>=t.length-2?st._408.nearestLargerEven(t[e]):t[e]))).length&&(t=[2,t[0]])),2!==t.length){const e=st._408.squeezeShape(t);t=e.newShape}let size=st._408.sizeFromShape(t),s=null;t.length<=1&&size<=n?s=[1,size]:2===t.length&&t[0]<=n&&t[1]<=n?s=t:3===t.length&&t[0]*t[1]<=n&&t[2]<=n?s=[t[0]*t[1],t[2]]:3===t.length&&t[0]<=n&&t[1]*t[2]<=n?s=[t[0],t[1]*t[2]]:4===t.length&&t[0]*t[1]*t[2]<=n&&t[3]<=n?s=[t[0]*t[1]*t[2],t[3]]:4===t.length&&t[0]<=n&&t[1]*t[2]*t[3]<=n&&(s=[t[0],t[1]*t[2]*t[3]]);const i=null!=s&&Math.max(...s)>a&&Math.min(...s)<=(e?2:1)&&Math.min(...s)>0;if(null==s||i)if(e){const e=M(t);let n=2,a=2;t.length&&([n,a]=F(t)),size=e*(n/2)*(a/2),s=st._408.sizeToSquarishShape(size).map((d=>2*d))}else s=st._408.sizeToSquarishShape(size);return s}function P(t){return t%2==0}function G(t,e){if(t=t.slice(-2),e=e.slice(-2),st._408.arraysEqual(t,e))return true;if(!t.length||!e.length)return true;if(0===t[0]||0===t[1]||0===e[0]||0===e[1])return true;if(t.length!==e.length){const n=t[t.length-1],a=e[e.length-1];if(n===a)return true;if(P(n)&&P(a)&&(1===t[0]||1===e[0]))return true}return t[1]===e[1]&&P(t[0])&&P(e[0])}function V(t){if(null==ht){const e=Object(ot.a)(t);ht=e.getParameter(e.MAX_TEXTURE_SIZE)}return ht}function H(){ht=null}function Z(){pt=null}function X(t){if(null==pt){const e=Object(ot.a)(t);pt=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)}return Math.min(16,pt)}function U(t){if(0===t)return 0;let e;const n=Object(ot.a)(t);return e=$(n,"EXT_disjoint_timer_query_webgl2")&&2===t?2:$(n,"EXT_disjoint_timer_query")?1:0,e}function $(t,e){const n=undefined;return null!=t.getExtension(e)}function Y(t){try{const e=undefined;if(null!=Object(ot.a)(t))return true}catch(t){return console.log("Error when getting WebGL context: ",t),false}return false}function J(t){if(0===t)return false;const e=Object(ot.a)(t);if(1===t){if(!$(e,"OES_texture_float"))return false}else if(!$(e,"EXT_color_buffer_float"))return false;const n=undefined;return tt(e)}function K(t){if(0===t)return false;const e=Object(ot.a)(t);if(1!==t){if($(e,"EXT_color_buffer_float"))return tt(e);const t="EXT_color_buffer_half_float";if($(e,t)){const n=e.getExtension(t);return nt(e,n)}return false}if(!$(e,"OES_texture_float"))return false;if(!$(e,"WEBGL_color_buffer_float"))return false;const n=undefined;return tt(e)}function tt(t){const e=Object(ct.g)(t),n=t.createTexture();t.bindTexture(t.TEXTURE_2D,n);const a=1,s=1;t.texImage2D(t.TEXTURE_2D,0,e.internalFormatFloat,1,1,0,e.textureFormatFloat,e.textureTypeFloat,null);const i=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,i),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0);const o=t.checkFramebufferStatus(t.FRAMEBUFFER)===t.FRAMEBUFFER_COMPLETE;return t.bindTexture(t.TEXTURE_2D,null),t.bindFramebuffer(t.FRAMEBUFFER,null),t.deleteTexture(n),t.deleteFramebuffer(i),o}function nt(t,e){const n=Object(ct.g)(t,e),a=t.createTexture();t.bindTexture(t.TEXTURE_2D,a);const s=1,i=1;t.texImage2D(t.TEXTURE_2D,0,n.internalFormatHalfFloat,1,1,0,n.textureFormatFloat,n.textureTypeHalfFloat,null);const o=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,o),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,a,0);const c=t.checkFramebufferStatus(t.FRAMEBUFFER)===t.FRAMEBUFFER_COMPLETE;return t.bindTexture(t.TEXTURE_2D,null),t.bindFramebuffer(t.FRAMEBUFFER,null),t.deleteTexture(a),t.deleteFramebuffer(o),c}function rt(t){if(2!==t)return false;const e=undefined,n=undefined;return null!=Object(ot.a)(t).fenceSync}function at(t,e){Array.isArray(t)||(t=[t]),t.forEach((t=>{null!=t&&st._408.assert("complex64"!==t.dtype,(()=>`${e} does not support complex64 tensors in the WebGL backend.`))}))}Object.defineProperty(e,"__esModule",{value:true}),e.callAndCheck=a,e.canBeRepresented=i,e.getWebGLErrorMessage=o,e.getExtensionOrThrow=c,e.createVertexShader=u,e.createFragmentShader=l,e.logShaderSourceAndInfoLog=h,e.createProgram=p,e.linkProgram=f,e.validateProgram=b,e.createStaticVertexBuffer=m,e.createStaticIndexBuffer=g,e.getNumChannels=v,e.createTexture=w,e.validateTextureSize=y,e.createFramebuffer=O,e.bindVertexBufferToProgramAttribute=x,e.bindTextureUnit=A,e.unbindTextureUnit=I,e.getProgramUniformLocationOrThrow=j,e.getProgramUniformLocation=C,e.bindTextureToProgramUniformSampler=_,e.bindCanvasToFramebuffer=k,e.bindColorTextureToFramebuffer=S,e.unbindColorTextureFromFramebuffer=T,e.validateFramebuffer=L,e.getFramebufferErrorMessage=B,e.getBatchDim=M,e.getRowsCols=F,e.getShapeAs3D=W,e.getTextureShapeFromLogicalShape=z,e.isReshapeFree=G,e.getWebGLMaxTextureSize=V,e.resetMaxTextureSize=H,e.resetMaxTexturesInShader=Z,e.getMaxTexturesInShader=X,e.getWebGLDisjointQueryTimerVersion=U,e.hasExtension=$,e.isWebGLVersionEnabled=Y,e.isCapableOfRenderingToFloatTexture=J,e.isDownloadFloatTextureEnabled=K,e.isWebGLFenceEnabled=rt,e.assertNotComplex=at;var st=n(0),ot=n(167),ct=n(52);const ut=5.96e-8,lt=65504,dt=/ERROR: [0-9]+:([0-9]+):/g;let ht,pt},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(){Object(_.c)().set("PROD",true)}function s(){Object(_.c)().set("DEBUG",true)}function i(){Object(_.c)().set("DEPRECATION_WARNINGS_ENABLED",false),console.warn("TensorFlow.js deprecation warnings have been disabled.")}function o(t){Object(_.c)().getBool("DEPRECATION_WARNINGS_ENABLED")&&console.warn(t+" You can disable deprecation warnings with tf.disableDeprecationWarnings().")}function c(){C.a.disposeVariables()}function u(){return C.a}function l(){return C.a.memory()}function h(t){return C.a.profile(t)}function p(t,e){return C.a.tidy(t,e)}function f(container){const t=undefined;Object(S.getTensorsInContainer)(container).forEach((t=>t.dispose()))}function b(t){return C.a.keep(t)}function m(t){return C.a.time(t)}function g(t){return C.a.setBackend(t)}function v(){return C.a.ready()}function w(){return C.a.backendName}function y(t){C.a.removeBackend(t)}function O(t){return C.a.findBackend(t)}function x(t){return C.a.findBackendFactory(t)}function A(t,factory,e=1){return C.a.registerBackend(t,factory,e)}function I(){return C.a.backend}function j(t,e){Object(_.c)().setPlatform(t,e)}e.g=a,e.f=s,e.c=i,e.b=o,e.e=c,e.h=u,e.m=l,e.n=h,e.t=p,e.d=f,e.l=b,e.u=m,e.r=g,e.o=v,e.k=w,e.q=y,e.i=O,e.j=x,e.p=A,e.a=I,e.s=j;var C=n(4),_=n(39),k=n(6),S=n(23);Object(k.e)(o)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,attrs:n,backend:a}=t,{x:s}=e,{perm:c}=n;Object(i.a)(s,"transpose");const u=s.shape.length,l=new Array(u);for(let t=0;t<l.length;t++)l[t]=s.shape[c[t]];const h=a.data.get(s.dataId).values,p=Object(o.a)(h,s.shape,s.dtype,c,l),f=undefined;return{dataId:a.write(p,l,s.dtype),shape:l,dtype:s.dtype}}e.a=a;var s=n(0),i=n(8),o=n(219);const c={kernelName:s._139,backendName:"cpu",kernelFunc:a};e.b=c},function(t,e,n){"use strict";var a=n(0),s=n(38),i=n(60),o=n(28);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c="\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";e.b=c;const u="\n vec4 bGTEZero = vec4(greaterThanEqual(b, vec4(0.)));\n return (bGTEZero * a) + ((vec4(1.0) - bGTEZero) * (a * (b + vec4(1.0))));\n",l="\n return vec4(notEqual(a, b));\n";class h{constructor(t,e,n,c=false){this.variableNames=["A","B"],this.supportsBroadcasting=true,this.packedInputs=true,this.packedOutput=true,this.outputShape=a._164.assertAndGetBroadcastShape(e,n);const u=this.outputShape.length;this.enableShapeUniforms=Object(s.e)(u);let l="";if(c)if(0===u||1===a._408.sizeFromShape(this.outputShape))l="\n result.y = 0.;\n result.z = 0.;\n result.w = 0.;\n ";else{const t=undefined;if(l=`\n ${Object(o.a)(u)} coords = getOutputCoords();\n `,1===u)this.enableShapeUniforms?l+="\n result.y = (coords + 1) >= outShape ? 0. : result.y;\n result.z = 0.;\n result.w = 0.;\n ":l+=`\n result.y = (coords + 1) >= ${this.outputShape[0]} ? 0. : result.y;\n result.z = 0.;\n result.w = 0.;\n `;else{const t=Object(i.a)("coords",u);this.enableShapeUniforms?l+=`\n bool nextRowOutOfBounds =\n (${t[u-2]} + 1) >= outShape[${u} - 2];\n bool nextColOutOfBounds =\n (${t[u-1]} + 1) >= outShape[${u} - 1];\n result.y = nextColOutOfBounds ? 0. : result.y;\n result.z = nextRowOutOfBounds ? 0. : result.z;\n result.w = nextColOutOfBounds || nextRowOutOfBounds ? 0. : result.w;\n `:l+=`\n bool nextRowOutOfBounds =\n (${t[u-2]} + 1) >= ${this.outputShape[u-2]};\n bool nextColOutOfBounds =\n (${t[u-1]} + 1) >= ${this.outputShape[u-1]};\n result.y = nextColOutOfBounds ? 0. : result.y;\n result.z = nextRowOutOfBounds ? 0. : result.z;\n result.w = nextColOutOfBounds || nextRowOutOfBounds ? 0. : result.w;\n `}}this.userCode=`\n vec4 binaryOperation(vec4 a, vec4 b) {\n ${t}\n }\n\n void main() {\n vec4 a = getAAtOutCoords();\n vec4 b = getBAtOutCoords();\n\n vec4 result = binaryOperation(a, b);\n ${l}\n\n setOutput(result);\n }\n `}}e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s}=e,{perm:o}=a,c=n,u=s.shape.length,l=new Array(u);for(let t=0;t<l.length;t++)l[t]=s.shape[o[t]];let h;if(c.shouldExecuteOnCPU([s])){const t=undefined,e=c.texData.get(s.dataId).values,n=Object(i.b)(e,s.shape,s.dtype,o,l);h=c.makeTensorInfo(l,s.dtype);const a=undefined;c.texData.get(h.dataId).values=n}else h=Object(i.a)(s,o,c);return h}e.a=a;var s=n(0),i=n(129);const o={kernelName:s._139,backendName:"webgl",kernelFunc:a};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0){Object(c.assert)(t.length>=1,(()=>"Pass at least one tensor to concat"));const n=Object(o.b)(t,"tensors","concat","string_or_numeric");if("complex64"===n[0].dtype&&n.forEach((t=>{if("complex64"!==t.dtype)throw new Error(`Cannot concatenate complex64 tensors with a tensor\n with dtype ${t.dtype}. `)})),1===n.length)return Object(u.a)(n[0]);const a=n,l={axis:e};return s.a.runKernel(i.D,a,l)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(110),l=n(2);const h=Object(l.b)({concat_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(o.a)(e,"a","where"),l=Object(o.a)(n,"b","where"),h=Object(o.a)(t,"condition","where","bool"),p=Object(u.assertAndGetBroadcastShape)(Object(u.assertAndGetBroadcastShape)(h.shape,a.shape),l.shape),f=undefined,b=undefined,m=undefined,g={condition:Object(c.a)(h,p),t:Object(c.a)(a,p),e:Object(c.a)(l,p)};return s.a.runKernel(i._88,g)}var s=n(4),i=n(1),o=n(3),c=n(177),u=n(19),l=n(2);const h=Object(l.b)({where_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{x:a}=e;return n.incRef(a.dataId),{dataId:a.dataId,shape:a.shape,dtype:a.dtype}}var s;e.a=a;const i={kernelName:n(0)._28,backendName:"webgl",kernelFunc:a};e.b=i},function(t,e,n){"use strict";function a(t){Object(b.d)(f.b,"DataFormat",t)}function s(t){Object(b.d)(f.c,"InterpolationFormat",t)}function i(t){Object(b.d)(f.d,"PaddingMode",t)}function o(t){Object(b.d)(f.e,"PoolMode",t)}function c(t,e){g.push(t);try{const t=e();return g.pop(),t}catch(t){throw g.pop(),t}}function u(){return 0===g.length?"":g.join(v)+v}function l(t){if(!p(t))throw new Error("Not a valid tensor name: '"+t+"'");return u()+t}function h(t){if(!p(t))throw new Error("Not a valid tensor name: '"+t+"'");m.has(t)||m.set(t,0);const index=m.get(t);if(m.set(t,m.get(t)+1),index>0){const e=`${t}_${index}`;return m.set(e,1),e}return t}function p(t){return!!t.match(w)}e.a=a,e.b=s,e.c=i,e.d=o,e.g=c,e.e=l,e.f=h;var f=n(296),b=n(24);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
const m=new Map,g=[],v="/",w=new RegExp(/^[A-Za-z0-9][-A-Za-z0-9\._\/]*$/)},function(t,e,n){"use strict";function a(t,e){return[e,t]}function s(t,e){return t*e}function i(t,e){return[4*e,t]}function o(shape){const size=f._408.sizeFromShape(shape),t=Math.ceil(size/4);return f._408.sizeToSquarishShape(t)}function c(t,e){if(t%e!=0)throw new Error(`unpackedSize (${t}) must be a multiple of ${e}`);return t/e}function u(t,e,n){const a=t.length*n/4;if(e.length<a)throw new Error(`matrix length (${e.length}) must be >= ${a}`);let s=0;for(let a=0;a<t.length;a+=4)for(let i=0;i<n;i++)e[s++]=t[a+i]}function l(t,e){return[Math.max(1,Math.ceil(e/2)),Math.max(1,Math.ceil(t/2))]}function h(t,e){const[n,a]=l(t,e);return n*a*4}function p(t,e){const n=t;let a,s,i,o,c,u,l,h,p,b;return 2===Object(f._222)().getNumber("WEBGL_VERSION")?(a=n.R32F,s=n.R16F,i=n.RGBA16F,o=n.RGBA32F,c=n.RED,l=4,h=1,p=n.HALF_FLOAT,b=n.FLOAT,u=n.RGBA8):(a=t.RGBA,s=t.RGBA,i=t.RGBA,o=n.RGBA,c=t.RGBA,l=4,h=4,p=null!=e?e.HALF_FLOAT_OES:null,b=t.FLOAT,u=t.RGBA),{internalFormatFloat:a,internalFormatHalfFloat:s,internalFormatPackedHalfFloat:i,internalFormatPackedFloat:o,textureFormatFloat:c,downloadTextureFormat:u,downloadUnpackNumChannels:l,defaultNumChannels:h,textureTypeHalfFloat:p,textureTypeFloat:b}}n.d(e,"a",(function(){return b})),n.d(e,"c",(function(){return m})),n.d(e,"b",(function(){return g})),e.i=a,e.h=s,e.d=o,e.e=l,e.f=h,e.g=p;var f=n(0),b,m,g;
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/!function(t){t[t.DENSE=0]="DENSE",t[t.SHARED_BATCH=1]="SHARED_BATCH"}(b||(b={})),function(t){t[t.RENDER=0]="RENDER",t[t.UPLOAD=1]="UPLOAD",t[t.PIXELS=2]="PIXELS",t[t.DOWNLOAD=3]="DOWNLOAD"}(m||(m={})),function(t){t[t.UNPACKED_FLOAT16=0]="UNPACKED_FLOAT16",t[t.UNPACKED_FLOAT32=1]="UNPACKED_FLOAT32",t[t.PACKED_4X1_UNSIGNED_BYTE=2]="PACKED_4X1_UNSIGNED_BYTE",t[t.PACKED_2X2_FLOAT32=3]="PACKED_2X2_FLOAT32",t[t.PACKED_2X2_FLOAT16=4]="PACKED_2X2_FLOAT16"}(g||(g={}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(){let t,e,n,a,i,o,c,u,l,h;return 2===Object(s._222)().getNumber("WEBGL_VERSION")?(t="#version 300 es",e="in",n="out",a="in",i="texture",o="outputColor",c="out vec4 outputColor;",u=Object(s._222)().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="",h="\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 "):(t="",e="attribute",n="varying",a="varying",i="texture2D",o="gl_FragColor",c="",u="\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 ",h="\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:t,attribute:e,varyingVs:n,varyingFs:a,texture2D:i,output:o,defineOutput:c,defineSpecialNaN:u,defineSpecialInf:l,defineRound:h}}e.a=a;var s=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n=false,a=false){let u=Object(c.a)(t,"a","matMul"),l=Object(c.a)(e,"b","matMul");[u,l]=Object(o.makeTypesMatch)(u,l);const h={a:u,b:l},p={transposeA:n,transposeB:a};return s.a.runKernel(i.s,h,p)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(2);const l=Object(u.b)({matMul_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){for(let n=0;n<t.length;++n)if(t[t.length-n-1]!==e-1-n)return false;return true}function s(t,e,n){const a=t.length+e.length,s=[];let i=0,o=0;for(let c=0;c<a;c++)-1===n.indexOf(c)?s.push(t[i++]):s.push(e[o++]);return s}function i(t,e){const n=[],a=t.length;for(let s=0;s<a;s++)-1===e.indexOf(s)&&n.push(t[s]);const s=undefined;return[n,e.map((e=>t[e]))]}function o(shape,t){const e=undefined;return s(shape,t.map((t=>1)),t)}function c(t,e,n){p.assert(a(e,n),(()=>`${t} supports only inner-most axes for now. Got axes ${e} and rank-${n} input.`))}function u(t,e){if(a(t,e))return null;const n=[];for(let a=0;a<e;++a)-1===t.indexOf(a)&&n.push(a);return t.forEach((t=>n.push(t))),n}function l(t){return t.map(((t,e)=>[e,t])).sort(((t,e)=>t[1]-e[1])).map((t=>t[0]))}function h(t,e){const n=[];for(let a=e-t;a<e;++a)n.push(a);return n}e.b=a,e.c=s,e.d=i,e.e=o,e.a=c,e.f=u,e.h=l,e.g=h;var p=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","sqrt","float32")};return s.a.runKernel(i._104,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sqrt_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
var a;n.d(e,"a",(function(){return a})),function(t){t[t.NONE=0]="NONE",t[t.MEAN=1]="MEAN",t[t.SUM=2]="SUM",t[t.SUM_BY_NONZERO_WEIGHTS=3]="SUM_BY_NONZERO_WEIGHTS"}(a||(a={}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){Object(m.d)(b.b,"FanMode",t)}function s(t){Object(m.d)(b.a,"Distribution",t)}function i(shape,t="channelsLast"){let e,n;if(Object(p.a)(t),2===shape.length)e=shape[0],n=shape[1];else if(-1!==[3,4,5].indexOf(shape.length)){if("channelsFirst"===t){const t=Object(g.a)(shape,2);e=shape[1]*t,n=shape[0]*t}else if("channelsLast"===t){const t=Object(g.a)(shape,0,shape.length-2);e=shape[shape.length-2]*t,n=shape[shape.length-1]*t}}else{const t=Object(g.a)(shape);e=Math.sqrt(t),n=Math.sqrt(t)}return[e,n]}function o(t,e={}){return Object(m.g)(t,l._349.SerializationMap.getMap().classNameMap,e,"initializer")}function c(t){return Object(m.l)(t)}function u(t){if("string"==typeof t){const e=t in E?E[t]:t;if("GlorotNormal"===e)return new k;if("GlorotUniform"===e)return new _;if("HeNormal"===e)return new S;if("HeUniform"===e)return new T;if("LeCunNormal"===e)return new L;if("LeCunUniform"===e)return new B;{const t={};return t.className=e,t.config={},o(t)}}return t instanceof v?t:o(t)}n.d(e,"p",(function(){return w})),n.d(e,"j",(function(){return y})),n.d(e,"a",(function(){return O})),n.d(e,"m",(function(){return x})),n.d(e,"l",(function(){return A})),n.d(e,"n",(function(){return I})),n.d(e,"f",(function(){return j})),n.d(e,"o",(function(){return C})),n.d(e,"c",(function(){return _})),n.d(e,"b",(function(){return k})),n.d(e,"d",(function(){return S})),n.d(e,"e",(function(){return T})),n.d(e,"h",(function(){return L})),n.d(e,"i",(function(){return B})),n.d(e,"k",(function(){return N})),e.r=c,e.q=u;var l=n(0),h=n(32),p=n(51),f=n(15),b=n(823),m=n(24),g=n(72);class v extends l._349.Serializable{fromConfigUsesCustomObjects(){return false}getConfig(){return{}}}e.g=v;class w extends v{apply(shape,t){return Object(l._416)(shape,t)}}w.className="Zeros",l._349.registerClass(w);class y extends v{apply(shape,t){return Object(l._300)(shape,t)}}y.className="Ones",l._349.registerClass(y);class O extends v{constructor(t){if(super(),"object"!=typeof t)throw new f.e(`Expected argument of type ConstantConfig but got ${t}`);if(void 0===t.value)throw new f.e(`config must have value set but got ${t}`);this.value=t.value}apply(shape,t){return Object(l._394)((()=>Object(l._292)(Object(l._343)(this.value),Object(l._300)(shape,t))))}getConfig(){return{value:this.value}}}O.className="Constant",l._349.registerClass(O);class x extends v{constructor(t){super(),this.DEFAULT_MINVAL=-.05,this.DEFAULT_MAXVAL=.05,this.minval=t.minval||this.DEFAULT_MINVAL,this.maxval=t.maxval||this.DEFAULT_MAXVAL,this.seed=t.seed}apply(shape,t){return Object(l._322)(shape,this.minval,this.maxval,t,this.seed)}getConfig(){return{minval:this.minval,maxval:this.maxval,seed:this.seed}}}x.className="RandomUniform",l._349.registerClass(x);class A extends v{constructor(t){super(),this.DEFAULT_MEAN=0,this.DEFAULT_STDDEV=.05,this.mean=t.mean||this.DEFAULT_MEAN,this.stddev=t.stddev||this.DEFAULT_STDDEV,this.seed=t.seed}apply(shape,t){if("float32"!==(t=t||"float32")&&"int32"!==t)throw new f.c(`randomNormal does not support dType ${t}.`);return h.n(shape,this.mean,this.stddev,t,this.seed)}getConfig(){return{mean:this.mean,stddev:this.stddev,seed:this.seed}}}A.className="RandomNormal",l._349.registerClass(A);class I extends v{constructor(t){super(),this.DEFAULT_MEAN=0,this.DEFAULT_STDDEV=.05,this.mean=t.mean||this.DEFAULT_MEAN,this.stddev=t.stddev||this.DEFAULT_STDDEV,this.seed=t.seed}apply(shape,t){if("float32"!==(t=t||"float32")&&"int32"!==t)throw new f.c(`truncatedNormal does not support dType ${t}.`);return Object(l._400)(shape,this.mean,this.stddev,t,this.seed)}getConfig(){return{mean:this.mean,stddev:this.stddev,seed:this.seed}}}I.className="TruncatedNormal",l._349.registerClass(I);class j extends v{constructor(t){super(),this.gain=null!=t.gain?t.gain:1}apply(shape,t){return Object(l._394)((()=>{if(2!==shape.length||shape[0]!==shape[1])throw new f.e("Identity matrix initializer can only be used for 2D square matrices.");return Object(l._292)(this.gain,Object(l._229)(shape[0]))}))}getConfig(){return{gain:this.gain}}}j.className="Identity",l._349.registerClass(j);class C extends v{constructor(t){if(super(),t.scale<0)throw new f.e(`scale must be a positive float. Got: ${t.scale}`);this.scale=null==t.scale?1:t.scale,this.mode=null==t.mode?"fanIn":t.mode,a(this.mode),this.distribution=null==t.distribution?"normal":t.distribution,s(this.distribution),this.seed=t.seed}apply(shape,t){const e=i(shape),n=e[0],a=e[1];let s=this.scale;if("fanIn"===this.mode?s/=Math.max(1,n):"fanOut"===this.mode?s/=Math.max(1,a):s/=Math.max(1,(n+a)/2),"normal"===this.distribution){const e=Math.sqrt(s);if("float32"!==(t=t||"float32")&&"int32"!==t)throw new f.c(`${this.getClassName()} does not support dType ${t}.`);return Object(l._400)(shape,0,e,t,this.seed)}{const e=Math.sqrt(3*s);return Object(l._322)(shape,-e,e,t,this.seed)}}getConfig(){return{scale:this.scale,mode:this.mode,distribution:this.distribution,seed:this.seed}}}C.className="VarianceScaling",l._349.registerClass(C);class _ extends C{constructor(t){super({scale:1,mode:"fanAvg",distribution:"uniform",seed:null==t?null:t.seed})}getClassName(){return C.className}}_.className="GlorotUniform",l._349.registerClass(_);class k extends C{constructor(t){super({scale:1,mode:"fanAvg",distribution:"normal",seed:null==t?null:t.seed})}getClassName(){return C.className}}k.className="GlorotNormal",l._349.registerClass(k);class S extends C{constructor(t){super({scale:2,mode:"fanIn",distribution:"normal",seed:null==t?null:t.seed})}getClassName(){return C.className}}S.className="HeNormal",l._349.registerClass(S);class T extends C{constructor(t){super({scale:2,mode:"fanIn",distribution:"uniform",seed:null==t?null:t.seed})}getClassName(){return C.className}}T.className="HeUniform",l._349.registerClass(T);class L extends C{constructor(t){super({scale:1,mode:"fanIn",distribution:"normal",seed:null==t?null:t.seed})}getClassName(){return C.className}}L.className="LeCunNormal",l._349.registerClass(L);class B extends C{constructor(t){super({scale:1,mode:"fanIn",distribution:"uniform",seed:null==t?null:t.seed})}getClassName(){return C.className}}B.className="LeCunUniform",l._349.registerClass(B);class N extends v{constructor(t){super(),this.DEFAULT_GAIN=1,this.ELEMENTS_WARN_SLOW=2e3,this.gain=null==t.gain?this.DEFAULT_GAIN:t.gain,this.seed=t.seed}apply(shape,t){return Object(l._394)((()=>{if(shape.length<2)throw new f.c("Shape must be at least 2D.");if("int32"!==t&&"float32"!==t&&void 0!==t)throw new TypeError(`Unsupported data type ${t}.`);t=t;const e=l._408.sizeFromShape(shape.slice(0,-1)),n=shape[shape.length-1],a=e*n;a>this.ELEMENTS_WARN_SLOW&&console.warn(`Orthogonal initializer is being called on a matrix with more than ${this.ELEMENTS_WARN_SLOW} (${a}) elements: Slowness may result.`);const s=[Math.max(n,e),Math.min(n,e)],i=h.n(s,0,1,t,this.seed),o=l._262.qr(i,false);let c=o[0];const u=undefined,p=o[1].flatten().stridedSlice([0],[Math.min(n,e)*Math.min(n,e)],[Math.min(n,e)+1]);return c=Object(l._292)(c,p.sign()),e<n&&(c=c.transpose()),Object(l._292)(Object(l._343)(this.gain),c.reshape(shape))}))}getConfig(){return{gain:this.gain,seed:this.seed}}}N.className="Orthogonal",l._349.registerClass(N);const E={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(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return(e,n,a)=>{const i=s._408.getArrayFromDType(n,e.length);for(let n=0;n<e.length;++n)i[n]=t(e[n],a);return i}}e.a=a;var s=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){return["x","y","z","w","u","v"].slice(0,e).map((d=>`${t}.${d}`))}function s(t,e){return 1===e?[t]:a(t,e)}function i(t,e){if(1===t)return"rc";let n="";for(let a=0;a<t;a++)n+=e[a],a<t-1&&(n+=",");return n}e.c=a,e.a=s,e.b=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","exp")};return s.a.runKernel(i._4,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({exp_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","greater","string_or_numeric"),a=Object(c.a)(e,"b","greater","string_or_numeric");[n,a]=Object(o.makeTypesMatch)(n,a),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const l={a:n,b:a};return s.a.runKernel(i._18,l)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(2);const h=Object(l.b)({greater_:a});e.a=h},function(t,e,n){"use strict";function a(t,e,n=c.a.SUM_BY_NONZERO_WEIGHTS){const a=Object(s.a)(t,"losses","computeWeightedLoss");let f=null;null!=e&&(f=Object(s.a)(e,"weights","computeWeightedLoss"));const g=null==f?a:Object(l.a)(a,f);if(n===c.a.NONE)return g;if(n===c.a.SUM)return Object(m.a)(g);if(n===c.a.MEAN){if(null==f)return Object(u.a)(g);{const t=a.size/f.size,e=Object(o.a)(Object(m.a)(g),Object(m.a)(f));return t>1?Object(o.a)(e,Object(b.a)(t)):e}}if(n===c.a.SUM_BY_NONZERO_WEIGHTS){if(null==f)return Object(o.a)(Object(m.a)(g),Object(b.a)(a.size));{const t=Object(l.a)(f,Object(p.a)(a.shape)),e=Object(i.a)(Object(m.a)(Object(h.a)(t,Object(b.a)(0))),"float32");return Object(o.a)(Object(m.a)(g),e)}}throw Error(`Unknown reduction: ${n}`)}var s=n(3),i=n(13),o=n(16),c=n(57),u=n(145),l=n(9),h=n(190),p=n(96),f=n(2),b=n(22),m=n(26);const g=Object(f.b)({computeWeightedLoss_:a});e.a=g},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){if(null!=t&&"object"!=typeof t)throw new Error(`Argument to L1L2 regularizer's constructor is expected to be an object, but received: ${t}`)}function s(t){return a(t),new b({l1:null!=t?t.l1:null,l2:0})}function i(t){return a(t),new b({l2:null!=t?t.l2:null,l1:0})}function o(t){return Object(p.l)(t)}function c(t,e={}){return Object(p.g)(t,l._349.SerializationMap.getMap().classNameMap,e,"regularizer")}function u(t){if(null==t)return null;if("string"==typeof t){const e=undefined,n=undefined;return c({className:t in m?m[t]:t,config:{}})}return t instanceof f?t:c(t)}n.d(e,"a",(function(){return b})),e.c=s,e.d=i,e.e=o,e.b=u;var l=n(0),h=n(32),p=n(24);class f extends l._349.Serializable{}class b extends f{constructor(t){super(),a(t),this.l1=null==t||null==t.l1?.01:t.l1,this.l2=null==t||null==t.l2?.01:t.l2,this.hasL1=0!==this.l1,this.hasL2=0!==this.l2}apply(t){return Object(l._394)((()=>{let e=Object(l._416)([1]);return this.hasL1&&(e=Object(l._150)(e,Object(l._380)(l._292(this.l1,Object(l._147)(t))))),this.hasL2&&(e=Object(l._150)(e,Object(l._380)(l._292(this.l2,h.s(t))))),l._334(e,[])}))}getConfig(){return{l1:this.l1,l2:this.l2}}static fromConfig(t,e){return new t({l1:e.l1,l2:e.l2})}}b.className="L1L2",l._349.registerClass(b);const m={l1l2:"L1L2"}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{x:a}=e;return n.incRef(a.dataId),{dataId:a.dataId,shape:a.shape,dtype:a.dtype}}var s;e.a=a;const i={kernelName:n(0)._28,backendName:"cpu",kernelFunc:a};e.b=i},function(t,e,n){"use strict";var a=n(0),s=n(38);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\n if (isnan(a)) return a;\n if (isnan(b)) return b;\n";e.b=i;const o="return (a - b) * (a - b);";class c{constructor(t,e,n){this.variableNames=["A","B"],this.outputShape=a._164.assertAndGetBroadcastShape(e,n),this.enableShapeUniforms=Object(s.e)(this.outputShape.length),this.userCode=`\n float binaryOperation(float a, float b) {\n ${t}\n }\n\n void main() {\n float a = getAAtOutCoords();\n float b = getBAtOutCoords();\n setOutput(binaryOperation(a, b));\n }\n `}}e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e,n){if(null==n)n=Object(o.inferDtype)(t);else if("complex64"===n)throw new Error("Cannot construct a complex64 tensor directly. Please use tf.complex(real, imag).");if(Object(i.c)(t)||Object(i.b)(t)){if("float32"!==n&&"int32"!==n)throw new Error(`Creating tensor from GPU data only supports 'float32'|'int32' dtype, while the dtype is ${n}.`);return s.a.backend.createTensorFromGPUData(t,shape||e,n)}if(!Object(o.isTypedArray)(t)&&!Array.isArray(t)&&"number"!=typeof t&&"boolean"!=typeof t&&"string"!=typeof t)throw new Error("values passed to tensor(values) must be a number/boolean/string or an array of numbers/booleans/strings, or a TypedArray");if(null!=shape){Object(o.assertNonNegativeIntegerDimensions)(shape);const t=Object(o.sizeFromShape)(shape),n=Object(o.sizeFromShape)(e);Object(o.assert)(t===n,(()=>`Based on the provided shape, [${shape}], the tensor should have ${t} values but has ${n}`));for(let t=0;t<e.length;++t){const n=e[t],a=t!==e.length-1||n!==Object(o.sizeFromShape)(shape.slice(t));Object(o.assert)(e[t]===shape[t]||!a,(()=>`Error creating a new Tensor. Inferred shape (${e}) does not match the provided shape (${shape}). `))}}return Object(o.isTypedArray)(t)||Array.isArray(t)||(t=[t]),shape=shape||e,t="string"!==n?Object(o.toTypedArray)(t,n):Object(o.flatten)(t,[],true),s.a.makeTensor(t,shape,n)}e.a=a;var s=n(4),i=n(108),o=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t="float32",e){return t=t||"float32",i.assertNonNegativeIntegerDimensions(shape),new s.b(shape,t,e)}e.a=a;var s=n(6),i=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return b.assert(b.isFunction(t),(()=>"The f passed in grad(f) must be a function")),(e,n)=>{const a=Object(f.a)(e,"x","tf.grad","string_or_numeric"),s=null!=n?Object(f.a)(n,"dy","tf.grad"):null;return h.a.tidy((()=>{const{value:e,grads:n}=h.a.gradients((()=>t(a)),[a],s);return null!=s&&b.assertShapesMatch(e.shape,s.shape,"The shape of dy passed in grad(f)(x, dy) must match the shape returned by f(x)"),l(n),n[0]}))}}function s(t){return b.assert(b.isFunction(t),(()=>"The f passed in grads(f) must be a function")),(e,n)=>{b.assert(Array.isArray(e),(()=>"The args passed in grads(f)(args) must be an array of `Tensor`s or `TensorLike`s"));const a=Object(f.b)(e,"args","tf.grads","string_or_numeric"),s=null!=n?Object(f.a)(n,"dy","tf.grads"):null;return h.a.tidy((()=>{const{value:e,grads:n}=h.a.gradients((()=>t(...a)),a,s);return null!=s&&b.assertShapesMatch(e.shape,s.shape,"The shape of dy passed in grads(f)([x1,...], dy) must match the shape returned by f([x1,...])"),l(n),n}))}}function i(t){return b.assert(b.isFunction(t),(()=>"The f passed in valueAndGrad(f) must be a function")),(e,n)=>{b.assert(e instanceof p.a,(()=>"The x passed in valueAndGrad(f)(x) must be a tensor")),b.assert(null==n||n instanceof p.a,(()=>"The dy passed in valueAndGrad(f)(x, dy) must be a tensor"));const{grads:a,value:s}=h.a.gradients((()=>t(e)),[e],n);return l(a),{grad:a[0],value:s}}}function o(t){return b.assert(b.isFunction(t),(()=>"The f passed in valueAndGrads(f) must be a function")),(e,n)=>{b.assert(Array.isArray(e)&&e.every((t=>t instanceof p.a)),(()=>"The args passed in valueAndGrads(f)(args) must be array of tensors")),b.assert(null==n||n instanceof p.a,(()=>"The dy passed in valueAndGrads(f)(args, dy) must be a tensor"));const a=h.a.gradients((()=>t(...e)),e,n);return null!=n&&b.assertShapesMatch(a.value.shape,n.shape,"The shape of dy passed in valueAndGrads(f)([x1,...], dy) must match the shape returned by f([x1,...])"),l(a.grads),a}}function c(t,e){b.assert(b.isFunction(t),(()=>"The f passed in variableGrads(f) must be a function")),b.assert(null==e||Array.isArray(e)&&e.every((t=>t instanceof p.c)),(()=>"The varList passed in variableGrads(f, varList) must be an array of variables"));const n=null!=e;if(!n){e=[];for(const t in h.a.registeredVariables)e.push(h.a.registeredVariables[t])}const a=n?e.filter((t=>!t.trainable)):null,s=e.length;e=e.filter((t=>t.trainable)),b.assert(e.length>0,(()=>`variableGrads() expects at least one of the input variables to be trainable, but none of the ${s} variables is trainable.`));const i=true,{value:o,grads:c}=h.a.gradients(t,e,null,i);b.assert(c.some((t=>null!=t)),(()=>"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().")),b.assert(0===o.rank,(()=>`The f passed in variableGrads(f) must return a scalar, but it returned a rank-${o.rank} tensor`));const u={};return e.forEach(((t,e)=>{null!=c[e]&&(u[t.name]=c[e])})),null!=a&&a.forEach((t=>u[t.name]=null)),{value:o,grads:u}}function u(t){return h.a.customGrad(t)}function l(t){const e=undefined;if(t.filter((t=>null==t)).length>0)throw new 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.")}n.d(e,"a",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s}));var h=n(4),p=n(6),f=n(3),b=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=undefined,a={x:Object(o.a)(t,"x","reverse")},c={dims:e};return s.a.runKernel(i._82,a,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({reverse_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(c.a)(t,"x","transpose");if(null==e&&(e=a.shape.map(((t,e)=>e)).reverse()),u.assert(a.rank===e.length,(()=>`Error in transpose: rank of input ${a.rank} must match length of perm ${e}.`)),e.forEach((t=>{u.assert(t>=0&&t<a.rank,(()=>"All entries in 'perm' must be between 0 and "+(a.rank-1)+` but got ${e}`))})),a.rank<=1)return a.clone();const f={x:a},m={perm:e};return"complex64"===a.dtype?Object(i.t)((()=>{let t=Object(b.a)(a),e=Object(h.a)(a);return t=s.a.runKernel(o._121,{x:t},m),e=s.a.runKernel(o._121,{x:e},m),n&&(e=Object(p.a)(e)),Object(l.a)(t,e)})):s.a.runKernel(o._121,f,m)}var s=n(4),i=n(44),o=n(1),c=n(3),u=n(5),l=n(79),h=n(141),p=n(36),f=n(2),b=n(150);const m=Object(f.b)({transpose_:a});e.a=m},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){return t===parseInt(t.toString(),10)}function s(t,e,n){null==e&&(e=0),null==n&&(n=t.length);let a=1;for(let s=e;s<n;++s)a*=t[s];return a}function i(t){if(0===t.length)return Number.NaN;let e=Number.POSITIVE_INFINITY;for(let n=0;n<t.length;n++){const a=t[n];a<e&&(e=a)}return e}function o(t){if(0===t.length)return Number.NaN;let e=Number.NEGATIVE_INFINITY;for(let n=0;n<t.length;n++){const a=t[n];a>e&&(e=a)}return e}function c(t){let e=0;for(let n=0;n<t.length;n++){const a=undefined;e+=t[n]}return e}function u(t){return c(t)/t.length}function l(t){const e=u(t),n=t.map((t=>t-e));let a=0;for(let t=0;t<n.length;t++){const e=n[t];a+=e*e}return a/t.length}function h(t){const e=t.slice().sort(((t,e)=>t-e)),n=Math.floor((e.length-1)/2),a=Math.ceil((e.length-1)/2);return n===a?e[n]:(e[n]+e[a])/2}function p(t,e){if(e<t)throw new f.e(`end (${e}) < begin (${t}) is forbidden.`);const n=[];for(let a=t;a<e;++a)n.push(a);return n}e.b=a,e.a=s,e.d=i,e.c=o,e.e=p;var f=n(15)},function(t,e,n){"use strict";function a(){return null==c&&(c=Object(o._163)().epsilon()),c}function s(t){c=t}function i(){return"channelsLast"}e.a=a,e.b=i;var o=n(0);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/let c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e){return Object(c._394)((()=>c._371(c._380(c._292(t,t),e,true))))}function s(t){return Object(l.l)(t)}function i(t,e={}){return Object(l.g)(t,c._349.SerializationMap.getMap().classNameMap,e,"constraint")}function o(t){if(null==t)return null;if("string"==typeof t){const e=undefined,n=undefined;return i({className:t in g?g[t]:t,config:{}})}return t instanceof h?t:i(t)}n.d(e,"a",(function(){return p})),n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return m})),e.f=s,e.e=o;var c=n(0),u=n(73),l=n(24);class h extends c._349.Serializable{getConfig(){return{}}}class p extends h{constructor(t){super(),this.defaultMaxValue=2,this.defaultAxis=0,this.maxValue=null!=t.maxValue?t.maxValue:this.defaultMaxValue,this.axis=null!=t.axis?t.axis:this.defaultAxis}apply(t){return Object(c._394)((()=>{const e=a(t,this.axis),n=c._181(e,0,this.maxValue);return c._292(t,c._211(n,c._150(Object(u.a)(),e)))}))}getConfig(){return{maxValue:this.maxValue,axis:this.axis}}}p.className="MaxNorm",c._349.registerClass(p);class f extends h{constructor(t){super(),this.defaultAxis=0,this.axis=null!=t.axis?t.axis:this.defaultAxis}apply(t){return Object(c._394)((()=>c._211(t,c._150(Object(u.a)(),a(t,this.axis)))))}getConfig(){return{axis:this.axis}}}f.className="UnitNorm",c._349.registerClass(f);class b extends h{apply(t){return c._331(t)}}b.className="NonNeg",c._349.registerClass(b);class m extends h{constructor(t){super(),this.defaultMinValue=0,this.defaultMaxValue=1,this.defaultRate=1,this.defaultAxis=0,this.minValue=null!=t.minValue?t.minValue:this.defaultMinValue,this.maxValue=null!=t.maxValue?t.maxValue:this.defaultMaxValue,this.rate=null!=t.rate?t.rate:this.defaultRate,this.axis=null!=t.axis?t.axis:this.defaultAxis}apply(t){return Object(c._394)((()=>{const e=a(t,this.axis),n=c._150(c._292(this.rate,c._181(e,this.minValue,this.maxValue)),c._292(1-this.rate,e));return c._292(t,c._211(n,c._150(Object(u.a)(),e)))}))}getConfig(){return{minValue:this.minValue,maxValue:this.maxValue,rate:this.rate,axis:this.axis}}}m.className="MinMaxNorm",c._349.registerClass(m);const g={maxNorm:"MaxNorm",minMaxNorm:"MinMaxNorm",nonNeg:"NonNeg",unitNorm:"UnitNorm"}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{real:a,imag:s}=e,i=n.data.get(a.dataId).values,o=n.data.get(s.dataId).values,c=n.makeTensorInfo(a.shape,"complex64"),u=undefined;return n.data.get(c.dataId).complexTensorInfos={real:n.makeTensorInfo(a.shape,"float32",i),imag:n.makeTensorInfo(s.shape,"float32",o)},c}var s;e.a=a;const i={kernelName:n(0).F,backendName:"cpu",kernelFunc:a};e.b=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,index="index"){const e=p._408.computeStrides(shape);return e.map(((n,a)=>{const s=undefined,i=undefined;return`${`int ${t[a]} = ${index} / ${n}`}; ${a===e.length-1?`int ${t[a+1]} = ${index} - ${t[a]} * ${n}`:`index -= ${t[a]} * ${n}`};`})).join("")}function s(t,shape,index="index"){const e=p._408.computeStrides(shape);return e.map(((n,a)=>{const s=undefined,i=undefined;return`${`int ${t[a]} = ${index} / outShapeStrides[${a}]`}; ${a===e.length-1?`int ${t[a+1]} = ${index} - ${t[a]} * outShapeStrides[${a}]`:`index -= ${t[a]} * outShapeStrides[${a}]`};`})).join("")}function i(t,e){const n=t.length,shape=t.map((d=>`${e}[${d}]`)),a=new Array(n-1);a[n-2]=shape[n-1];for(let t=n-3;t>=0;--t)a[t]=`(${a[t+1]} * ${shape[t+1]})`;return a}function o(t,e,index="index"){const n=undefined,a=i(t.map(((t,e)=>e)),e);return a.map(((e,n)=>{const s=undefined,i=undefined;return`${`int ${t[n]} = ${index} / ${a[n]}`}; ${n===a.length-1?`int ${t[n+1]} = ${index} - ${t[n]} * ${a[n]}`:`index -= ${t[n]} * ${a[n]}`};`})).join("")}function c(t){return 1===t.length?`${t[0]}`:`vec${t.length}(${t.join(",")})`}function u(t,e){if(t.length!==e.length)throw new Error(`Vectors to be dotted must be of the same length -got ${t.length} and ${e.length}`);const n=[],a=Math.floor(t.length/4),s=t.length%4;for(let s=0;s<a;s++){const a=t.slice(4*s,4*s+4),i=e.slice(4*s,4*s+4);n.push(`${c(a)}, ${c(i)}`)}if(0!==s){let s=t.slice(4*a),i=e.slice(4*a);1===s.length&&(s=s.map((d=>`float(${d})`)),i=i.map((d=>`float(${d})`))),n.push(`${c(s)}, ${c(i)}`)}return n.map(((d,t)=>`dot(${d})`)).join("+")}function l(shape){const t=p._408.computeStrides(shape).map((d=>d.toString()));return`\n int getFlatIndex(ivec3 coords) {\n return coords.x * ${t[0]} + coords.y * ${t[1]} + coords.z;\n }\n`}function h(){return"\n int getFlatIndex(ivec3 coords) {\n return coords.x * outShapeStrides[0] + coords.y * outShapeStrides[1] + coords.z;\n }\n"}e.d=a,e.f=s,e.e=o,e.b=l,e.c=h;var p=n(0);const f="\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";e.a=f},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{real:a,imag:s}=e,o=n.makeTensorInfo(a.shape,"complex64"),c=n.texData.get(o.dataId),u=Object(i.a)({inputs:{x:a},backend:n}),l=Object(i.a)({inputs:{x:s},backend:n});return c.complexTensorInfos={real:u,imag:l},o}e.a=a;var s=n(0),i=n(50);const o={kernelName:s.F,backendName:"webgl",kernelFunc:a};e.b=o},function(t,e,n){"use strict";(function(t){async function a(t,group){const e=[],n=[],names=Array.isArray(t)?t.map((t=>t.name)):Object.keys(t);for(let a=0;a<names.length;++a){const s=names[a],i=Array.isArray(t)?t[a].tensor:t[s];if("float32"!==i.dtype&&"int32"!==i.dtype&&"bool"!==i.dtype&&"string"!==i.dtype&&"complex64"!==i.dtype)throw new Error(`Unsupported dtype in weight '${s}': ${i.dtype}`);const o={name:s,shape:i.shape,dtype:i.dtype};if("string"===i.dtype){const t=new Promise((async t=>{const e=await i.bytes(),n=e.reduce(((t,e)=>t+e.length),0)+4*e.length,a=new Uint8Array(n);let s=0;for(let t=0;t<e.length;t++){const n=e[t],i=new Uint8Array(new Uint32Array([n.length]).buffer);a.set(i,s),s+=4,a.set(n,s),s+=n.length}t(a)}));n.push(t)}else n.push(i.data());null!=group&&(o.group=group),e.push(o)}const a=undefined;return{data:h(await Promise.all(n)),specs:e}}function s(t,e){const n=new L.a(t),a={};let s=0;for(const t of e){const e=i(t,((t,e)=>n.slice(s+t,s+e)));a[t.name]=c(t,n.slice(s,s+e)),s+=e}return a}function i(t,e){const size=Object(S.sizeFromShape)(t.shape);let n;if("quantization"in t){const e=t.quantization;n=T.a[e.dtype]}else{if("string"===t.dtype){let t=0;for(let n=0;n<size;n++)t+=4+new Uint32Array(e(t,t+4))[0];return t}n=T.a[t.dtype]}return size*n}async function o(t,e){const size=Object(S.sizeFromShape)(t.shape);let n;if("quantization"in t){const e=t.quantization;n=T.a[e.dtype]}else{if("string"===t.dtype){let t=0;for(let n=0;n<size;n++)t+=4+new Uint32Array(await e(t,t+4))[0];return t}n=T.a[t.dtype]}return size*n}function c(t,e){const n=t.name,a=t.dtype,shape=t.shape,size=Object(S.sizeFromShape)(shape);let s,i=0;if("quantization"in t){const o=t.quantization;if("uint8"===o.dtype||"uint16"===o.dtype){if(!("min"in o&&"scale"in o))throw new Error(`Weight ${t.name} with quantization ${o.dtype} doesn't have corresponding metadata min and scale.`)}else{if("float16"!==o.dtype)throw new Error(`Weight ${t.name} has unknown quantization dtype ${o.dtype}. Supported quantization dtypes are: 'uint8', 'uint16', and 'float16'.`);if("float32"!==a)throw new Error(`Weight ${t.name} is quantized with ${o.dtype} which only supports weights of type float32 not ${a}.`)}const c=T.a[o.dtype],u="uint8"===o.dtype?new Uint8Array(e):new Uint16Array(e);if("float32"===a)if("uint8"===o.dtype||"uint16"===o.dtype){s=new Float32Array(u.length);for(let t=0;t<u.length;t++){const e=u[t];s[t]=e*o.scale+o.min}}else{if("float16"!==o.dtype)throw new Error(`Unsupported quantization type ${o.dtype} for weight type float32.`);{const t=undefined;s=C()(u)}}else{if("int32"!==a)throw new Error(`Unsupported dtype in weight '${n}': ${a}`);if("uint8"!==o.dtype&&"uint16"!==o.dtype)throw new Error(`Unsupported quantization type ${o.dtype} for weight type int32.`);s=new Int32Array(u.length);for(let t=0;t<u.length;t++){const e=u[t];s[t]=Math.round(e*o.scale+o.min)}}i+=size*c}else if("string"===a){const size=Object(S.sizeFromShape)(t.shape);s=[];for(let t=0;t<size;t++){const t=new Uint32Array(e.slice(i,i+4))[0];i+=4;const n=new Uint8Array(e.slice(i,i+t));s.push(n),i+=t}}else{const t=T.a[a];if("float32"===a)s=new Float32Array(e);else if("int32"===a)s=new Int32Array(e);else{if("bool"!==a){if("complex64"===a){s=new Float32Array(e);const t=new Float32Array(s.length/2),image=new Float32Array(s.length/2);for(let e=0;e<t.length;e++)t[e]=s[2*e],image[e]=s[2*e+1];const n=Object(k.a)(t,shape,"float32"),a=Object(k.a)(image,shape,"float32"),i=Object(_.a)(n,a);return n.dispose(),a.dispose(),i}throw new Error(`Unsupported dtype in weight '${n}': ${a}`)}s=new Uint8Array(e)}i+=size*t}return Object(k.a)(s,shape,a)}async function u(t,e,length){let data=new Uint8Array(e);for(;data.byteLength<length;){const{done:e,value:n}=await t.read();if(e&&null==n){const t=length-data.byteLength;throw new Error(`Reader is done but ${t} bytes are still expected`)}const a=new Uint8Array(data.length+n.byteLength);a.set(data,0),a.set(new Uint8Array(n),data.length),data=a}return data.buffer}async function l(t,e){const n={},a=t.getReader();let data=new ArrayBuffer(0);for(const t of e){const e=await o(t,(async(t,e)=>(data=await u(a,data,e),data.slice(t,e))));data=await u(a,data,e);const s=data.slice(0,e);data=data.slice(e);const i=c(t,s);if(n[t.name]=i,"webgpu"===Object(B.k)()){const t=Object(B.a)();"uploadToGPU"in t&&Object(S.sizeFromShape)(i.shape)>=Object(N.c)().get("WEBGPU_CPU_HANDOFF_SIZE_THRESHOLD")&&t.uploadToGPU(i.dataId)}}return n}function h(t){if(null===t)throw new Error(`Invalid input value: ${JSON.stringify(t)}`);let e=0;const n=[];t.forEach((t=>{if(e+=t.byteLength,n.push(t.byteLength===t.buffer.byteLength?t:new t.constructor(t)),!(t instanceof Float32Array||t instanceof Int32Array||t instanceof Uint8Array))throw new Error(`Unsupported TypedArray subtype: ${t.constructor.name}`)}));const a=new Uint8Array(e);let s=0;return n.forEach((t=>{a.set(new Uint8Array(t.buffer),s),s+=t.byteLength})),a.buffer}function p(e){return M?t.byteLength(e,"utf8"):new Blob([e]).size}function f(e){if(M)return t.from(e).toString("base64");const n=new Uint8Array(e);let a="";for(let t=0,e=n.length;t<e;t++)a+=String.fromCharCode(n[t]);return btoa(a)}function b(e){if(M){const n=t.from(e,"base64");return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}const n=atob(e),a=new Uint8Array(n.length);for(let t=0;t<n.length;++t)a.set([n.charCodeAt(t)],t);return a.buffer}function m(t){return L.a.join(t)}function g(t){const e="/";for(t=t.trim();t.endsWith(e);)t=t.slice(0,t.length-1);const items=t.split(e);return items[items.length-1]}function v(t,e){const n={modelTopology:t.modelTopology,format:t.format,generatedBy:t.generatedBy,convertedBy:t.convertedBy,weightsManifest:e};return null!=t.signature&&(n.signature=t.signature),null!=t.userDefinedMetadata&&(n.userDefinedMetadata=t.userDefinedMetadata),null!=t.modelInitializer&&(n.modelInitializer=t.modelInitializer),null!=t.initializerSignature&&(n.initializerSignature=t.initializerSignature),null!=t.trainingConfig&&(n.trainingConfig=t.trainingConfig),n}function w(t,e,n){const a={modelTopology:t.modelTopology,format:t.format,generatedBy:t.generatedBy,convertedBy:t.convertedBy};if(null!=t.trainingConfig&&(a.trainingConfig=t.trainingConfig),null!=t.weightsManifest){if(!e)throw new Error("modelJSON has weightsManifest but weightSpecs is null");if(!n)throw new Error("modelJSON has weightsManifest but weightData is null");a.weightSpecs=e,a.weightData=n}return null!=t.signature&&(a.signature=t.signature),null!=t.userDefinedMetadata&&(a.userDefinedMetadata=t.userDefinedMetadata),null!=t.modelInitializer&&(a.modelInitializer=t.modelInitializer),null!=t.initializerSignature&&(a.initializerSignature=t.initializerSignature),a}async function y(t,e){let n,a;return null!=t.weightsManifest&&([n,a]=await e(t.weightsManifest)),w(t,n,a)}function O(t){if(t.modelTopology instanceof ArrayBuffer)throw new Error("Expected JSON model topology, received ArrayBuffer.");return{dateSaved:new Date,modelTopologyType:"JSON",modelTopologyBytes:null==t.modelTopology?0:p(JSON.stringify(t.modelTopology)),weightSpecsBytes:null==t.weightSpecs?0:p(JSON.stringify(t.weightSpecs)),weightDataBytes:null==t.weightData?0:new L.a(t.weightData).byteLength}}function x(t){const e=[];for(const n of t)e.push(...n.weights);return e}function A(){const t=t=>{let e=t<<13,n=0;for(;0==(8388608&e);)n-=8388608,e<<=1;return e&=-8388609,n+=947912704,e|n},e=new Uint32Array(2048);e[0]=0;for(let n=1;n<1024;n++)e[n]=t(n);for(let t=1024;t<2048;t++)e[t]=939524096+(t-1024<<13);return e}function I(){const t=new Uint32Array(64);t[0]=0,t[31]=1199570944,t[32]=2147483648,t[63]=3347054592;for(let e=1;e<31;e++)t[e]=e<<23;for(let e=33;e<63;e++)t[e]=2147483648+(e-32<<23);return t}function j(){const t=new Uint32Array(64);for(let e=0;e<64;e++)t[e]=1024;return t[0]=t[32]=0,t}function C(){const t=A(),e=I(),n=j();return a=>{const s=new ArrayBuffer(4*a.length),i=new Uint32Array(s);for(let index=0;index<a.length;index++){const s=a[index],o=t[n[s>>10]+(1023&s)]+e[s>>10];i[index]=o}return new Float32Array(s)}}e.g=a,e.e=s,e.f=l,e.a=f,e.b=b,e.d=m,e.c=g,e.k=v,e.i=w,e.h=y,e.j=O,e.l=x;var _=n(79),k=n(135),S=n(5),T=n(236),L=n(80),B=n(44),N=n(39);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const E=4,M=void 0!==t&&("undefined"==typeof Blob||"undefined"==typeof atob||"undefined"==typeof btoa)}).call(e,n(173).Buffer)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(o.a)(t,"real","complex"),a=Object(o.a)(e,"imag","complex");c.assertShapesMatch(n.shape,a.shape,`real and imag shapes, ${n.shape} and ${a.shape}, must match in call to tf.complex().`);const u={real:n,imag:a};return s.a.runKernel(i.B,u)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({complex_:a});e.a=l},function(t,e,n){"use strict";function search(t,compare){let e=0,n=t.length;for(;e<=n;){const a=Math.floor((n-e)/2)+e,s=compare(t[a]);if(0===s)return a;s<0?n=a:e=a+1}return-1}var a=n(5);class s{static join(t){return new s(t).slice()}constructor(t){if(this.shards=[],this.previousShardIndex=0,null==t)return;if(t instanceof Array||(t=[t]),0===(t=t.map((t=>a.isTypedArray(t)?t.buffer:t))).length)return;this.bufferUniformSize=t[0].byteLength;let e=0;for(let n=0;n<t.length;n++){const a=t[n];n!==t.length-1&&a.byteLength!==this.bufferUniformSize&&(this.bufferUniformSize=void 0);const s=e+a.byteLength;this.shards.push({buffer:a,start:e,end:s}),e=s}0===this.shards.length&&(this.byteLength=0),this.byteLength=this.shards[this.shards.length-1].end}slice(t=0,e=this.byteLength){if(0===this.shards.length)return new ArrayBuffer(0);if(t=isNaN(Number(t))?0:t,e=isNaN(Number(e))?0:e,t=Math.max(0,t),(e=Math.min(this.byteLength,e))<=t)return new ArrayBuffer(0);const n=this.findShardForByte(t);if(-1===n)throw new Error(`Could not find start shard for byte ${t}`);const size=undefined,a=new ArrayBuffer(e-t),s=new Uint8Array(a);let i=0;for(let a=n;a<this.shards.length;a++){const n=this.shards[a],o=undefined,c=t+i-n.start,u=i,l=undefined,h=Math.min(e,n.end)-n.start,p=new Uint8Array(n.buffer,c,h-c);if(s.set(p,u),i+=p.length,e<n.end)break}return a}findShardForByte(t){function e(e){return t<e.start?-1:t>=e.end?1:0}if(0===this.shards.length||t<0||t>=this.byteLength)return-1;if(null!=this.bufferUniformSize)return this.previousShardIndex=Math.floor(t/this.bufferUniformSize),this.previousShardIndex;if(0===e(this.shards[this.previousShardIndex]))return this.previousShardIndex;const index=search(this.shards,e);return-1===index?-1:(this.previousShardIndex=index,this.previousShardIndex)}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(base,t){let e=Object(c.a)(base,"base","pow"),n=Object(c.a)(t,"exp","pow");[e,n]=Object(o.makeTypesMatch)(e,n);const a={a:e,b:n};return s.a.runKernel(i._65,a)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(2);const l=Object(u.b)({pow_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","lessEqual","string_or_numeric"),a=Object(c.a)(e,"b","lessEqual","string_or_numeric");[n,a]=Object(o.makeTypesMatch)(n,a),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const l={a:n,b:a};return s.a.runKernel(i._30,l)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(2);const h=Object(l.b)({lessEqual_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,paddings,e=0){const n=Object(o.a)(t,"x","pad");if(0===n.rank)throw new Error("pad(scalar) is not defined. Pass non-scalar to pad");const a={paddings:paddings,constantValue:e},c={x:n};return s.a.runKernel(i._63,c,a)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({pad_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0){const n=Object(o.b)(t,"tensors","stack","string_or_numeric");c.assert(n.length>=1,(()=>"Pass at least one tensor to tf.stack")),n.length>0&&c.assert(e<=n[0].rank,(()=>"Axis must be <= rank of the tensor"));const a=n,u={axis:e};return s.a.runKernel(i._62,a,u)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({stack_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){Object(i.assertNonNull)(t);const n=Object(s.c)(t,e);if(1!==n.length)throw new Error("tensor1d() requires values to be a flat/TypedArray");const shape=null;return Object(o.a)(t,shape,n,e)}e.a=a;var s=n(3),i=n(5),o=n(67)},function(t,e,n){"use strict";var a=n(44),s=n(69),i=n(11),o=n(203);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class c extends o.Serializable{minimize(t,e=false,n){const{value:s,grads:i}=this.computeGradients(t,n);if(null!=n){const t=n.map((t=>({name:t.name,tensor:i[t.name]})));this.applyGradients(t)}else this.applyGradients(i);return Object(a.d)(i),e?s:(s.dispose(),null)}get iterations(){return null==this.iterations_&&(this.iterations_=0),this.iterations_}incrementIterations(){this.iterations_=this.iterations+1}computeGradients(t,e){return Object(s.f)(t,e)}dispose(){null!=this.iterations_&&Object(a.d)(this.iterations_)}async saveIterations(){return null==this.iterations_&&(this.iterations_=0),{name:"iter",tensor:Object(i._109)(this.iterations_,"int32")}}async getWeights(){throw new Error("getWeights() is not implemented for this optimizer yet.")}async setWeights(t){throw new Error(`setWeights() is not implemented for this optimizer class ${this.getClassName()}`)}async extractIterations(t){return this.iterations_=(await t[0].tensor.data())[0],t.slice(1)}}e.a=c,Object.defineProperty(c,Symbol.hasInstance,{value:instance=>null!=instance.minimize&&null!=instance.computeGradients&&null!=instance.applyGradients})},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size,shape,n){const a=i._363.isSliceContinous(shape,e,size),length=i._408.sizeFromShape(size),s=i._408.computeStrides(shape);if(a){const a=i._363.computeFlatOffset(e,s);return"string"===n?t.slice(a,a+length):t.subarray(a,a+length)}const o="string"===n?i._164.fromUint8ToStringArray(t):t,c=Object(i._178)(shape,n,o),u=Object(i._178)(size,n);for(let t=0;t<u.size;++t){const n=u.indexToLoc(t),a=n.map(((t,n)=>t+e[n]));u.set(c.get(...a),...n)}return"string"===n?i._164.fromStringArrayToUint8(u.values):u.values}function s(t){const{inputs:e,backend:n,attrs:s}=t,{x:c}=e,{begin:u,size:size}=s;Object(o.a)(c,"slice");const[l,h]=i._363.parseSliceParams(c,u,size);i._363.assertParamsValid(c,l,h);const p=undefined,f=a(n.data.get(c.dataId).values,l,h,c.shape,c.dtype);return n.makeTensorInfo(h,c.dtype,f)}e.c=a,e.a=s;var i=n(0),o=n(8);const c={kernelName:i._110,backendName:"cpu",kernelFunc:s};e.b=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,s,i){const o=s.strideHeight,u=s.strideWidth,l=s.dilationHeight,h=s.dilationWidth,p=s.effectiveFilterHeight,f=s.effectiveFilterWidth,b=s.padInfo.top,m=s.padInfo.left,g="max"===i?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,v=Object(c._178)(s.outShape,n),w=v.values,y=s.outShape[1]*s.outShape[2]*s.outShape[3],O=s.outShape[2]*s.outShape[3],x=s.outShape[3];for(let e=0;e<s.batchSize;++e){const n=e*y,c=e*a[0];for(let d=0;d<s.inChannels;++d)for(let e=0;e<s.outHeight;++e){const v=e*o-b,y=Math.max(0,v),A=Math.min(s.inHeight,p+v),I=n+e*O;for(let e=0;e<s.outWidth;++e){const n=e*u-m,o=Math.max(0,n),p=Math.min(s.inWidth,f+n);let b=g,v=0,O=0;for(let e=y;e<A;e+=l){const n=c+e*a[1];for(let e=o;e<p;e+=h){const s=undefined,o=t[n+e*a[2]+d];"max"===i&&o>b?b=o:"avg"===i&&(v+=o,O++)}if(isNaN(b))break}const j=undefined;w[I+e*x+d]="avg"===i?v/O:b}}}return v}function s(t,e,n,a,s=false,i=false){const o=Object(c._178)(a.outShape,"int32"),u=a.strideHeight,l=a.strideWidth,h=a.dilationHeight,p=a.dilationWidth,f=a.effectiveFilterHeight,b=a.effectiveFilterWidth,m=a.padInfo.top,g=a.padInfo.left,v=Object(c._178)(e,n,t);for(let t=0;t<a.batchSize;++t)for(let d=0;d<a.inChannels;++d)for(let e=0;e<a.outHeight;++e){const n=e*u-m;let c=n;for(;c<0;)c+=h;const w=Math.min(a.inHeight,f+n);for(let u=0;u<a.outWidth;++u){const f=u*l-g;let m=f;for(;m<0;)m+=p;const y=Math.min(a.inWidth,b+f);let O=Number.NEGATIVE_INFINITY,x=-1;for(let e=c;e<w;e+=h){const o=e-n;for(let n=m;n<y;n+=p){const c=n-f,u=v.get(t,e,n,d);u>O&&(O=u,x=s?i?((t*a.inHeight+e)*a.inWidth+n)*a.inChannels+d:(e*a.inWidth+n)*a.inChannels+d:o*b+c)}}o.set(x,t,e,u,d)}}return o}function i(t,e,n,a,s,i){const o=s.strideDepth,u=s.strideHeight,l=s.strideWidth,h=s.dilationDepth,p=s.dilationHeight,f=s.dilationWidth,b=s.effectiveFilterDepth,m=s.effectiveFilterHeight,g=s.effectiveFilterWidth,v=s.padInfo.front,w=s.padInfo.top,y=s.padInfo.left,O="max"===i?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,x=Object(c._178)(s.outShape,n),A=x.values,I=s.outShape[1]*s.outShape[2]*s.outShape[3]*s.outShape[4],j=s.outShape[2]*s.outShape[3]*s.outShape[4],C=s.outShape[3]*s.outShape[4],_=s.outShape[4];for(let e=0;e<s.batchSize;++e){const n=e*I,c=e*a[0];for(let e=0;e<s.inChannels;++e)for(let x=0;x<s.outDepth;++x){const I=x*o-v;let k=I;for(;k<0;)k+=h;const S=Math.min(s.inDepth,b+I),T=n+x*j;for(let n=0;n<s.outHeight;++n){const o=n*u-w;let b=o;for(;b<0;)b+=p;const v=Math.min(s.inHeight,m+o),x=T+n*C;for(let n=0;n<s.outWidth;++n){const o=n*l-y;let u=o;for(;u<0;)u+=f;const m=Math.min(s.inWidth,g+o),w=x+n*_;let I=O,j=0,C=0;for(let n=k;n<S;n+=h){const s=c+n*a[1];for(let n=b;n<v;n+=p){const o=s+n*a[2];for(let n=u;n<m;n+=f){const s=undefined,c=t[o+n*a[3]+e];if("max"===i&&c>I?I=c:"avg"===i&&(j+=c,C++),isNaN(I))break}if(isNaN(I))break}if(isNaN(I))break}const T=undefined;A[w+e]="avg"===i?j/Math.max(C,1):I}}}}return x}function o(t,e){const n=Object(c._178)(e.outShape,"int32"),a=e.strideDepth,s=e.strideHeight,i=e.strideWidth,o=e.dilationDepth,u=e.dilationHeight,l=e.dilationWidth,h=e.effectiveFilterDepth,p=e.effectiveFilterHeight,f=e.effectiveFilterWidth,b=e.padInfo.front,m=e.padInfo.top,g=e.padInfo.left;for(let c=0;c<e.batchSize;++c)for(let v=0;v<e.inChannels;++v)for(let w=0;w<e.outDepth;++w){const y=w*a-b;let O=y;for(;O<0;)O+=o;const x=Math.min(e.inDepth,h+y);for(let a=0;a<e.outHeight;++a){const h=a*s-m;let b=h;for(;b<0;)b+=u;const A=Math.min(e.inHeight,p+h);for(let s=0;s<e.outWidth;++s){const m=s*i-g;let I=m;for(;I<0;)I+=l;const j=Math.min(e.inWidth,f+m);let C=Number.NEGATIVE_INFINITY,_=-1;for(let e=O;e<x;e+=o){const n=e-y;for(let a=b;a<A;a+=u){const s=a-h;for(let i=I;i<j;i+=l){const o=i-m,u=t.get(c,e,a,i,v);u>=C&&(C=u,_=n*p*f+s*p+o)}}}n.set(_,c,w,a,s,v)}}}return n}e.c=a,e.b=s,e.d=i,e.a=o;var c=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=[];for(;0===e.length||1!==e[e.length-1].outSize;){const n=e.length?e[e.length-1].outSize:t[1],a=i._164.computeOptimalWindowSize(n);e.push({inSize:n,windowSize:a,outSize:Math.ceil(n/a)})}return e}function s(t,e,n,s){const i=a(t.shape);let u=t;for(let a=0;a<i.length;a++){const{inSize:l,windowSize:h,outSize:p}=i[a];let f,b;f="mean"===n?0===a?new o.a({windowSize:h,inSize:l,batchSize:t.shape[0],outSize:p},l):new o.a({windowSize:h,inSize:l,batchSize:t.shape[0],outSize:p}):new c.a({windowSize:h,inSize:l,batchSize:t.shape[0],outSize:p},n),b=u,u=s.runWebGLProgram(f,[u],e),b.dataId!==t.dataId&&s.disposeIntermediateTensorInfo(b)}return u}e.a=s;var i=n(0),o=n(1061),c=n(1062)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a=false,s=false){if(this.variableNames=["x"],"avg"===e&&n)throw new Error("Cannot compute positions for average pool.");const i=t.filterWidth,o=t.strideHeight,c=t.strideWidth,u=t.dilationHeight,l=t.dilationWidth,h=t.effectiveFilterHeight,p=t.effectiveFilterWidth,f=t.padInfo.top,b=t.padInfo.left;this.outputShape=t.outShape;const m="avg"===e,g=`((batch * ${t.inHeight} + xR) * ${t.inWidth} + xC) * ${t.inChannels} + d`,v=`(xR * ${t.inWidth} + xC) * ${t.inChannels} + d`;let w="0.0";if(m||(w="-1.0 / 1e-20"),n){const e=">=";return this.userCode=`\n const ivec2 strides = ivec2(${o}, ${c});\n const ivec2 pads = ivec2(${f}, ${b});\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d = coords[3];\n\n ivec2 xRCCorner = coords.yz * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // max/min x(?, ?, d) to get y(yR, yC, d).\n // ? = to be determined\n float minMaxValue = 0.0;\n float minMaxValueFound = 0.0;\n int minMaxPosition = 0;\n float avgValue = 0.0;\n\n for (int wR = 0; wR < ${h};\n wR += ${u}) {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int wC = 0; wC < ${p};\n wC += ${l}) {\n int xC = xCCorner + wC;\n\n if (xC < 0 || xC >= ${t.inWidth}) {\n continue;\n }\n\n float value = getX(batch, xR, xC, d);\n\n // If a min / max value has already been found, use it. If not,\n // use the current value.\n float currMinMaxValue = mix(\n value, minMaxValue, minMaxValueFound);\n if (value ${e} currMinMaxValue) {\n minMaxValue = value;\n minMaxValueFound = 1.0;\n minMaxPosition = ${a?s?g:v:`wR * ${p} + wC`};\n }\n }\n }\n setOutput(float(minMaxPosition));\n }\n `,void 0}const y="max";let O=`${e}(${e}(${e}(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])`;"avg"===e&&(O="avgValue / max(count, 1.0)");const x=4*Math.floor(i/4),A=i%4,I=`\n if (${m}) {\n avgValue += dot(values, ones);\n } else {\n minMaxValue = max(values, minMaxValue);\n }\n `;this.userCode=`\n const ivec2 strides = ivec2(${o}, ${c});\n const ivec2 pads = ivec2(${f}, ${b});\n const float initializationValue = ${w};\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float count = 0.0;\n\n float getValue(int batch, int xR, int xC, int d) {\n if (xC < 0 || xC >= ${t.inWidth}) {\n return initializationValue;\n }\n count += 1.0;\n return getX(batch, xR, xC, d);\n }\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d = coords[3];\n\n ivec2 xRCCorner = coords.yz * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // max/min x(?, ?, d) to get y(yR, yC, d).\n // ? = to be determined\n vec4 minMaxValue = vec4(${w});\n float avgValue = 0.0;\n count = 0.0;\n\n for (int wR = 0; wR < ${h};\n wR += ${u}) {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int wC = 0; wC < ${x}; wC += 4) {\n int xC = xCCorner + wC * ${l};\n\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + ${l}, d),\n getValue(batch, xR, xC + 2 * ${l}, d),\n getValue(batch, xR, xC + 3 * ${l}, d)\n );\n\n ${I}\n }\n\n int xC = xCCorner + ${x};\n if (${1===A}) {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n ${I}\n } else if (${2===A}) {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + ${l}, d),\n initializationValue,\n initializationValue\n );\n\n ${I}\n } else if (${3===A}) {\n vec4 values = vec4(\n getValue(batch, xR, xC, d),\n getValue(batch, xR, xC + ${l}, d),\n getValue(batch, xR, xC + 2 * ${l}, d),\n initializationValue\n );\n\n ${I}\n }\n }\n setOutput(${O});\n }\n `}}e.a=a;class s{constructor(t,e,n,a=false,s=false){if(this.variableNames=["x"],"avg"===e&&n)throw new Error("Cannot compute positions for average pool.");const i=t.filterWidth,o=t.strideDepth,c=t.strideHeight,u=t.strideWidth,l=t.dilationDepth,h=t.dilationHeight,p=t.dilationWidth,f=t.effectiveFilterDepth,b=t.effectiveFilterHeight,m=t.effectiveFilterWidth,g=t.padInfo.front,v=t.padInfo.top,w=t.padInfo.left;this.outputShape=t.outShape;const y="avg"===e;let O="0.0";if(y||(O="-1.0 / 1e-20"),n){const e=">=";return this.userCode=`\n const ivec3 strides =\n ivec3(${o}, ${c}, ${u});\n const ivec3 pads = ivec3(${g}, ${v}, ${w});\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 xCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xDCorner = xCorner.x;\n int xRCorner = xCorner.y;\n int xCCorner = xCorner.z;\n\n // max/min x(?, ?, ?, ch) to get y(yD, yR, yC, ch).\n // ? = to be determined\n float minMaxValue = 0.0;\n float minMaxValueFound = 0.0;\n int minMaxPosition = 0;\n\n for (int wD = 0; wD < ${f};\n wD += ${l}) {\n int xD = xDCorner + wD;\n\n if (xD < 0 || xD >= ${t.inDepth}) {\n continue;\n }\n\n for (int wR = 0; wR < ${b};\n wR += ${h}) {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int wC = 0; wC < ${m};\n wC += ${p}) {\n int xC = xCCorner + wC;\n\n if (xC < 0 || xC >= ${t.inWidth}) {\n continue;\n }\n\n float value = getX(batch, xD, xR, xC, ch);\n\n // If a min / max value has already been found, use it. If not,\n // use the current value.\n float currMinMaxValue = mix(\n value, minMaxValue, minMaxValueFound);\n if (value ${e} currMinMaxValue) {\n minMaxValue = value;\n minMaxValueFound = 1.0;\n minMaxPosition = ${a?s?`(((batch * ${t.inDepth} + xD) * ${t.inHeight} + xR) * ${t.inWidth} + xC) * ${t.inChannels} + ch`:`((xD * ${t.inHeight} + xR) * ${t.inWidth} + xC) * ${t.inChannels} + ch`:`wD * ${b} * ${m} +\n wR * ${m} + wC`};\n }\n }\n }\n }\n setOutput(float(minMaxPosition));\n }\n `,void 0}const x="max";let A=`${e}(${e}(${e}(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])`;"avg"===e&&(A="avgValue / max(count, 1.0)");const I=4*Math.floor(i/4),j=i%4,C=`\n if (${y}) {\n avgValue += dot(values, ones);\n } else {\n minMaxValue = max(values, minMaxValue);\n }\n `;this.userCode=`\n const ivec3 strides =\n ivec3(${o}, ${c}, ${u});\n const ivec3 pads = ivec3(${g}, ${v}, ${w});\n const float initializationValue = ${O};\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float count = 0.0;\n\n float getValue(int batch, int xD, int xR, int xC, int ch) {\n if (xC < 0 || xC >= ${t.inWidth}) {\n return initializationValue;\n }\n count += 1.0;\n return getX(batch, xD, xR, xC, ch);\n }\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 xCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xDCorner = xCorner.x;\n int xRCorner = xCorner.y;\n int xCCorner = xCorner.z;\n\n // max/min x(?, ?, ?, d) to get y(yD, yR, yC, ch).\n // ? = to be determined\n vec4 minMaxValue = vec4(${O});\n float avgValue = 0.0;\n count = 0.0;\n\n for (int wD = 0; wD < ${f};\n wD += ${l}) {\n int xD = xDCorner + wD;\n\n if (xD < 0 || xD >= ${t.inDepth}) {\n continue;\n }\n\n for (int wR = 0; wR < ${b};\n wR += ${h}) {\n int xR = xRCorner + wR;\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int wC = 0; wC < ${I}; wC += 4) {\n int xC = xCCorner + wC * ${p};\n\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + ${p}, ch),\n getValue(batch, xD, xR, xC + 2 * ${p}, ch),\n getValue(batch, xD, xR, xC + 3 * ${p}, ch)\n );\n\n ${C}\n }\n\n int xC = xCCorner + ${I};\n if (${1===j}) {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n ${C}\n } else if (${2===j}) {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + ${p}, ch),\n initializationValue,\n initializationValue\n );\n\n ${C}\n } else if (${3===j}) {\n vec4 values = vec4(\n getValue(batch, xD, xR, xC, ch),\n getValue(batch, xD, xR, xC + ${p}, ch),\n getValue(batch, xD, xR, xC + 2 * ${p}, ch),\n initializationValue\n );\n\n ${C}\n }\n }\n }\n setOutput(${A});\n }\n `}}e.b=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(){this.saveRouters=[],this.loadRouters=[]}static getInstance(){return null==a.instance&&(a.instance=new a),a.instance}static registerSaveRouter(t){a.getInstance().saveRouters.push(t)}static registerLoadRouter(t){a.getInstance().loadRouters.push(t)}static getSaveHandlers(url){return a.getHandlers(url,"save")}static getLoadHandlers(url,t){return a.getHandlers(url,"load",t)}static getHandlers(url,t,e){const n=[],s=undefined;return("load"===t?a.getInstance().loadRouters:a.getInstance().saveRouters).forEach((t=>{const a=t(url,e);null!==a&&n.push(a)})),n}}e.a=a;const s=t=>a.registerSaveRouter(t);e.e=s;const i=t=>a.registerLoadRouter(t);e.d=i;const o=url=>a.getSaveHandlers(url);e.c=o;const c=(url,t)=>a.getLoadHandlers(url,t);e.b=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=Object(o.a)(t,"x","abs");if("complex64"===e.dtype){const t={x:e};return s.a.runKernel(i.C,t)}{const t={x:e};return s.a.runKernel(i.a,t)}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({abs_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,filter,e,n,a="NHWC",l=[1,1],p){const f=Object(o.a)(t,"x","conv2d","float32"),b=Object(o.a)(filter,"filter","conv2d","float32");let m=f,g=false;3===f.rank&&(g=true,m=Object(h.a)(f,[1,f.shape[0],f.shape[1],f.shape[2]])),c.assert(4===m.rank,(()=>`Error in conv2d: input must be rank 4, but got rank ${m.rank}.`)),c.assert(4===b.rank,(()=>`Error in conv2d: filter must be rank 4, but got rank ${b.rank}.`)),u.a("conv2d",n,p);const v="NHWC"===a?m.shape[3]:m.shape[1];c.assert(v===b.shape[2],(()=>`Error in conv2d: depth of input (${v}) must match input depth for filter ${b.shape[2]}.`)),c.assert(u.i(e,l),(()=>`Error in conv2D: Either strides or dilations must be 1. Got strides ${e} and dilations '${l}'`)),c.assert(u.j(l),(()=>"Error in conv2D: Dilated rates should be larger than 0.")),c.assert(u.j(e),(()=>"Error in conv2D: Strides should be larger than 0."));const w={x:m,filter:b},y={strides:e,pad:n,dataFormat:a,dilations:l,dimRoundingMode:p},O=s.a.runKernel(i.E,w,y);return g?Object(h.a)(O,[O.shape[1],O.shape[2],O.shape[3]]):O}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(33),l=n(2),h=n(7);const p=Object(l.b)({conv2d_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","greaterEqual","string_or_numeric"),a=Object(c.a)(e,"b","greaterEqual","string_or_numeric");[n,a]=Object(o.makeTypesMatch)(n,a),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const l={a:n,b:a};return s.a.runKernel(i._19,l)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(2);const h=Object(l.b)({greaterEqual_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(o.a)(t,"a","logicalAnd","bool"),a=Object(o.a)(e,"b","logicalAnd","bool");Object(c.assertAndGetBroadcastShape)(n.shape,a.shape);const u={a:n,b:a};return s.a.runKernel(i._35,u)}var s=n(4),i=n(1),o=n(3),c=n(19),u=n(2);const l=Object(u.b)({logicalAnd_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t="float32"){if(Object(o.d)(shape),"complex64"===t){const t=a(shape,"float32"),e=Object(u.a)(shape,"float32");return Object(c.a)(t,e)}const e=Object(i.makeOnesTypedArray)(Object(i.sizeFromShape)(shape),t);return s.a.makeTensor(e,shape,t)}e.a=a;var s=n(4),i=n(5),o=n(35),c=n(79),u=n(118)},function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:true,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:true,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n=0){const a=undefined,c={x:Object(o.a)(t,"x","split")},u={numOrSizeSplits:e,axis:n};return s.a.runKernel(i._103,c,u)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({split_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,i,o){null==a&&(a=.5),null==i&&(i=Number.NEGATIVE_INFINITY),null==o&&(o=0);const c=t.shape[0];return n=Math.min(n,c),s.assert(0<=a&&a<=1,(()=>`iouThreshold must be in [0, 1], but was '${a}'`)),s.assert(2===t.rank,(()=>`boxes must be a 2D tensor, but was of rank '${t.rank}'`)),s.assert(4===t.shape[1],(()=>`boxes must have 4 columns, but 2nd dimension was ${t.shape[1]}`)),s.assert(1===e.rank,(()=>"scores must be a 1D tensor")),s.assert(e.shape[0]===c,(()=>`scores has incompatible shape with boxes. Expected ${c}, but was ${e.shape[0]}`)),s.assert(0<=o&&o<=1,(()=>`softNmsSigma must be in [0, 1], but was '${o}'`)),{maxOutputSize:n,iouThreshold:a,scoreThreshold:i,softNmsSigma:o}}n.d(e,"a",(function(){return a}));var s=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e){return Object(x._394)((()=>{"float32"!==t.dtype&&(t=x._179(t,"float32"));const n=x._380(I.s(t),e,true),a=x._231(n.shape,Object(A.a)()),s=x._371(x._282(n,a));return x._211(t,s)}))}function s(t,e){return Object(x._394)((()=>x._283(I.s(x._379(e,t)),-1)))}function i(t,e){return Object(x._394)((()=>x._283(x._147(x._379(e,t)),-1)))}function o(t,e){return Object(x._394)((()=>{const diff=x._379(t,e),n=x._181(x._147(t),Object(A.a)(),Number.MAX_VALUE),a=x._147(x._211(diff,n));return x._292(100,x._283(a,-1))}))}function c(t,e){return Object(x._394)((()=>{const n=x._181(e,Object(A.a)(),Number.MAX_VALUE),a=x._265(x._150(1,n)),s=x._181(t,Object(A.a)(),Number.MAX_VALUE),i=x._265(x._150(1,s));return x._283(I.s(x._379(a,i)),-1)}))}function u(t,e){return Object(x._394)((()=>{const n=x._282(0,x._379(1,x._292(t,e)));return x._283(I.s(n),-1)}))}function l(t,e){return Object(x._394)((()=>{const n=x._282(0,x._379(1,x._292(t,e)));return x._283(n,-1)}))}function h(t,e){return Object(x._394)((()=>{const n=x._380(x._292(t,e),-1),a=x._278(x._292(x._379(1,t),e),-1);return x._282(0,x._150(1,x._379(a,n)))}))}function p(t,e){return Object(x._394)((()=>{const n=Math.log(2),a=x._379(e,t),s=x._379(x._150(a,x._365(x._292(-2,a))),n);return x._283(s,-1)}))}function f(t,e,n=false){return Object(x._394)((()=>{if(n)e=x._364(e);else{const t=x._380(e,e.shape.length-1,true);e=x._211(e,t)}return e=x._181(e,Object(A.a)(),1-Object(A.a)()),x._295(x._380(x._292(x._179(t,"float32"),x._265(e)),e.shape.length-1))}))}function b(t,e,n=false){return Object(x._394)((()=>{const a=x._179(x._234(I.j(t)),"int32"),s=(e=x._181(e,Object(A.a)(),1-Object(A.a)())).shape,i=undefined;return f(x._334(x._299(a,s[s.length-1]),s),e,n)}))}function m(t,e){if(!x._408.arraysEqual(t.shape,e.shape))throw new j.e(`logits and labels must have the same shape, but got shapes ${JSON.stringify(t.shape)} and ${JSON.stringify(e.shape)}`);return Object(x._394)((()=>{const n=x._331(e),a=x._295(x._147(e));return x._150(x._379(n,x._292(e,t)),x._266(x._226(a)))}))}function g(t,e){return Object(x._394)((()=>{let n;return n=x._181(e,Object(A.a)(),1-Object(A.a)()),n=x._265(x._211(n,x._379(1,n))),x._283(m(t,n),-1)}))}function v(t,e){return Object(x._394)((()=>{const n=x._181(t,Object(A.a)(),1),a=x._181(e,Object(A.a)(),1);return x._380(x._292(t,x._265(x._211(n,a))),-1)}))}function w(t,e){return Object(x._394)((()=>{const n=x._265(x._150(Object(A.a)(),e));return x._283(x._379(e,x._292(t,n)),-1)}))}function y(t,e){return Object(x._394)((()=>{const n=a(t,-1),s=a(e,-1),i=x._292(n,s);return x._295(x._380(i,-1))}))}function O(t){if("string"==typeof t){if(t in W)return W[t];let e=`Unknown loss ${t}`;throw t.toLowerCase().includes("softmaxcrossentropy")&&(e=`Unknown loss ${t}. Use "categoricalCrossentropy" as the string name for tf.losses.softmaxCrossEntropy`),new j.e(e)}return t}e.e=a,e.i=s,e.g=i,e.h=o,e.b=f,e.j=b,e.a=g,e.c=y,e.d=O;var x=n(0),A=n(73),I=n(32),j=n(15);const C=s,_=s,k=i,S=i,T=o,L=o,B=c,N=c,E=v,M=v,F=y,W={meanSquaredError:s,meanAbsoluteError:i,meanAbsolutePercentageError:o,meanSquaredLogarithmicError:c,squaredHinge:u,hinge:l,categoricalHinge:h,logcosh:p,categoricalCrossentropy:f,sparseCategoricalCrossentropy:b,binaryCrossentropy:g,kullbackLeiblerDivergence:v,poisson:w,cosineProximity:y};e.f=W},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
function a(items){return new y(items)}function s(t){let e=t;return i((()=>({value:e++,done:false})))}function i(t){return new O(t)}function o(t,e){return new B(t,e)}function c(t,e,n){return o(i(t).take(e),n)}function u(t,e=v.FAIL){return new N(t,e)}e.f=a,e.e=i,e.d=o,e.g=u,n.d(e,"c",(function(){return v}));var l=n(0),h=n(149),p=n.n(h),f=n(908),b=n(215),m=n(910),g=n(305),v;class w{async toArray(){const t=[];let e=await this.next();for(;!e.done;)t.push(e.value),e=await this.next();return t}async toArrayForTest(){const t=this.prefetch(100),e=[];let n=await t.next();for(;!n.done;)e.push(n.value),n=await t.next();return e}async resolveFully(){let t=await this.next();for(;!t.done;)t=await this.next()}async resolveWhile(t){let e=await this.next(),n=t(e.value);for(;!e.done&&n;)e=await this.next(),n=t(e.value)}handleErrors(t){return new k(this,t)}filter(t){return new C(this,t)}map(transform){return new _(this,transform)}mapAsync(transform){return new S(this,transform)}serialMapAsync(transform){return new S(this,transform).serial()}flatmap(transform){return new L(this,transform)}async forEachAsync(t){return this.map(t).resolveFully()}async serialForEach(t){return this.serialMapAsync(t).resolveWhile((t=>true===t))}rowMajorBatch(t,e=true){return new j(this,t,e)}columnMajorBatch(t,e=true,n=b.f){const a=undefined;return this.rowMajorBatch(t,e).map((t=>Object(b.d)(t,n)))}concatenate(t,e){return new B(a([this,t]),e)}take(t){return t<0||null==t?this:new I(this,t)}skip(t){return t<0||null==t?this:new A(this,t)}prefetch(t){return new E(this,t)}shuffle(t,e){return new M(this,t,e)}serial(){return new x(this)}}e.a=w;class y extends w{constructor(items){super(),this.items=items,this.trav=0}summary(){return`Array of ${this.items.length} items`}async next(){if(this.trav>=this.items.length)return{value:null,done:true};const t=this.items[this.trav];return this.trav++,{value:Object(f.a)(t),done:false}}}class O extends w{constructor(t){super(),this.nextFn=t}summary(){return"Function call"}async next(){try{return this.nextFn()}catch(t){throw t.message=`Error thrown while iterating through a dataset: ${t.message}`,t}}}class x extends w{constructor(t){super(),this.upstream=t,this.lastRead=Promise.resolve({value:null,done:false})}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 A extends w{constructor(t,e){super(),this.upstream=t,this.maxCount=e,this.count=0,this.lastRead=Promise.resolve({value:null,done:false})}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;){const t=await this.upstream.next();if(t.done)return t;l._209(t.value)}return this.upstream.next()}}class I extends w{constructor(t,e){super(),this.upstream=t,this.maxCount=e,this.count=0}summary(){return`${this.upstream.summary()} -> Take`}async next(){return this.count++>=this.maxCount?{value:null,done:true}:this.upstream.next()}}class j extends w{constructor(t,e,n=true){super(),this.upstream=t,this.batchSize=e,this.enableSmallLastBatch=n,this.lastRead=Promise.resolve({value:null,done:false})}summary(){return`${this.upstream.summary()} -> RowMajorBatch`}async next(){return this.lastRead=this.lastRead.then((()=>this.serialNext())),this.lastRead}async serialNext(){const t=[];for(;t.length<this.batchSize;){const e=await this.upstream.next();if(e.done)return this.enableSmallLastBatch&&t.length>0?{value:t,done:false}:{value:null,done:true};t.push(e.value)}return{value:t,done:false}}}class C extends w{constructor(t,e){super(),this.upstream=t,this.predicate=e,this.lastRead=Promise.resolve({value:null,done:false})}summary(){return`${this.upstream.summary()} -> Filter`}async next(){return this.lastRead=this.lastRead.then((()=>this.serialNext())),this.lastRead}async serialNext(){for(;;){const t=await this.upstream.next();if(t.done||this.predicate(t.value))return t;l._209(t.value)}}}class _ extends w{constructor(t,transform){super(),this.upstream=t,this.transform=transform}summary(){return`${this.upstream.summary()} -> Map`}async next(){const t=await this.upstream.next();if(t.done)return{value:null,done:true};const e=l._392.getTensorsInContainer(t.value),n=this.transform(t.value),a=l._392.getTensorsInContainer(n);for(const t of e)l._392.isTensorInList(t,a)||t.dispose();return{value:n,done:false}}}class k extends w{constructor(t,e){super(),this.upstream=t,this.handler=e,this.count=0,this.lastRead=Promise.resolve({value:null,done:false})}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(t){if(!this.handler(t))return{value:null,done:true}}}}class S extends w{constructor(t,transform){super(),this.upstream=t,this.transform=transform}summary(){return`${this.upstream.summary()} -> AsyncMap`}async next(){const t=await this.upstream.next();if(t.done)return{value:null,done:true};const e=l._392.getTensorsInContainer(t.value),n=await this.transform(t.value),a=l._392.getTensorsInContainer(n);for(const t of e)l._392.isTensorInList(t,a)||t.dispose();return{value:n,done:false}}}class T extends w{constructor(){super(),this.outputQueue=new m.a,this.lastRead=Promise.resolve({value:null,done:false})}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:true};return{value:this.outputQueue.shift(),done:false}}}e.b=T;class L extends T{constructor(t,transform){super(),this.upstream=t,this.transform=transform}summary(){return`${this.upstream.summary()} -> Flatmap`}async pump(){const t=await this.upstream.next();if(t.done)return false;const e=l._392.getTensorsInContainer(t.value),n=this.transform(t.value),a=l._392.getTensorsInContainer(n);this.outputQueue.pushAll(n);for(const t of e)l._392.isTensorInList(t,a)||t.dispose();return true}}class B extends w{constructor(t,e){super(),this.baseErrorHandler=e,this.lastRead=null,this.iterator=null,this.moreIterators=t}summary(){const t=undefined;return`${"TODO: fill in upstream of chained summaries"} -> Chained`}async next(){return this.lastRead=this.readFromChain(this.lastRead),this.lastRead}async readFromChain(t){if(await t,null==this.iterator){const t=await this.moreIterators.next();if(t.done)return{value:null,done:true};this.iterator=t.value,null!=this.baseErrorHandler&&(this.iterator=this.iterator.handleErrors(this.baseErrorHandler))}const e=await this.iterator.next();return e.done?(this.iterator=null,this.readFromChain(t)):e}}!function(t){t[t.FAIL=0]="FAIL",t[t.SHORTEST=1]="SHORTEST",t[t.LONGEST=2]="LONGEST"}(v||(v={}));class N extends w{constructor(t,e=v.FAIL){super(),this.iterators=t,this.mismatchMode=e,this.count=0,this.currentPromise=null}summary(){const t=undefined;return`{${"TODO: fill in upstream of zip summaries"}} -> Zip`}async nextState(t){function e(container){if(container instanceof w){const t=undefined;return{value:container.next().then((t=>(n++,t.done&&a++,t.value))),recurse:false}}return{value:null,recurse:true}}await t;let n=0,a=0;const s=await Object(b.c)(this.iterators,e);if(n===a)return{value:null,done:true};if(a>0)switch(this.mismatchMode){case v.FAIL:throw new Error(`Zipped streams should have the same length. Mismatched at element ${this.count}.`);case v.SHORTEST:return{value:null,done:true};case v.LONGEST:}return this.count++,{value:s,done:false}}async next(){return this.currentPromise=this.nextState(this.currentPromise),this.currentPromise}}class E extends w{constructor(t,e){super(),this.upstream=t,this.bufferSize=e,this.buffer=new g.a(e)}summary(){return`${this.upstream.summary()} -> Prefetch`}refill(){for(;!this.buffer.isFull();){const t=this.upstream.next();this.buffer.push(t)}}next(){return this.refill(),this.buffer.shift()}}class M extends E{constructor(t,e,n){super(t,e),this.upstream=t,this.windowSize=e,this.upstreamExhausted=false,this.random=h.alea(n||l._408.now().toString()),this.lastRead=Promise.resolve({value:null,done:false})}async next(){return this.lastRead=this.lastRead.then((()=>this.serialNext())),this.lastRead}randomInt(t){return Math.floor(this.random()*t)}chooseIndex(){return this.randomInt(this.buffer.length())}async serialNext(){for(this.upstreamExhausted||this.refill();!this.buffer.isEmpty();){const t=this.chooseIndex(),e=await this.buffer.shuffleExcise(t);if(!e.done)return this.refill(),e;this.upstreamExhausted=true}return{value:null,done:true}}}},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t+e));e.c=o;const c=Object(i.b)(((t,e,n,a)=>({real:t+n,imag:e+a}))),add=Object(i.a)(a.h,o,c);e.a=add;const u={kernelName:a.h,backendName:"cpu",kernelFunc:add};e.b=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e,n){if("int32"===n){const e=undefined;return[shape,"int32",Int32Array.from(t)]}if("bool"===n){const n=i._408.toTypedArray([0],e),[a,s]=Object(o.a)(((t,e)=>t!==e?1:0))(shape,[],t,n,"bool");return[s,"bool",a]}throw new Error(`Error in Cast: failed to cast ${e} to ${n}`)}function s(t){const{inputs:e,backend:n,attrs:o}=t,{x:p}=e,{dtype:f}=o;if("complex64"===f){if("complex64"===p.dtype)return Object(l.a)({inputs:{x:p},backend:n});const t=Object(c.a)(n,p.shape,p.dtype),e=s({inputs:{x:p},backend:n,attrs:{dtype:"float32"}}),a=Object(u.a)({inputs:{real:e,imag:t},backend:n});return n.disposeIntermediateTensorInfo(t),n.disposeIntermediateTensorInfo(e),a}if("complex64"===p.dtype){const t=Object(h.a)({inputs:{input:p},backend:n}),e=s({inputs:{x:t},backend:n,attrs:{dtype:f}});return n.disposeIntermediateTensorInfo(t),e}if(!i._408.hasEncodingLoss(p.dtype,f)){const t=Object(l.a)({inputs:{x:p},backend:n});return{dataId:t.dataId,shape:t.shape,dtype:f}}const b=n.data.get(p.dataId).values,[m,g,v]=a(b,p.shape,p.dtype,f);return n.makeTensorInfo(m,g,v)}e.c=a,e.a=s;var i=n(0),o=n(30),c=n(317),u=n(75),l=n(65),h=n(104);const p={kernelName:i.C,backendName:"cpu",kernelFunc:s};e.b=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{input:input}=e,a=n.data.get(input.dataId).complexTensorInfos.real,s=n.data.get(a.dataId).values;return n.makeTensorInfo(a.shape,a.dtype,s)}var s;e.a=a;const i={kernelName:n(0)._86,backendName:"cpu",kernelFunc:a};e.b=i},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t*e));e.c=o;const c=Object(i.b)(((t,e,n,a)=>({real:t*n-e*a,imag:t*a+e*n}))),u=Object(i.a)(a._63,o,c);e.a=u;const l={kernelName:a._63,backendName:"cpu",kernelFunc:u};e.b=l},function(t,e,n){"use strict";var a=n(38);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s="return x;";e.b=s;const i="\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";e.a=i;const o="\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";e.c=o;const c="\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";e.d=c;const u="return 1.0 / (1.0 + exp(-1.0 * x));";e.e=u;class l{constructor(t,e){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true,this.outputShape=t,this.enableShapeUniforms=Object(a.e)(this.outputShape.length),this.userCode=`\n vec4 unaryOperation(vec4 x) {\n ${e}\n }\n\n void main() {\n vec4 x = getAAtOutCoords();\n vec4 y = unaryOperation(x);\n\n setOutput(y);\n }\n `}}e.f=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size,n){const a=n.texData.get(t.dataId),s=n.makeTensorInfo(size,t.dtype),o=n.texData.get(s.dataId);Object.assign(o,a),o.refCount=1,o.shape=size,o.dtype=t.dtype;let c=i._363.computeFlatOffset(e,i._408.computeStrides(t.shape));a.slice&&(c+=a.slice.flatOffset),o.slice={flatOffset:c,origDataId:a.slice&&a.slice.origDataId||t.dataId};const u=n.dataRefCount.get(o.slice.origDataId)||1;return n.dataRefCount.set(o.slice.origDataId,u+1),s}function s(t){const{inputs:e,backend:n,attrs:s}=t,{x:l}=e,{begin:h,size:size}=s,[p,f]=i._363.parseSliceParams(l,h,size);if(i._363.assertParamsValid(l,p,f),0===i._408.sizeFromShape(f))return n.makeTensorInfo(f,l.dtype,[]);if(n.shouldExecuteOnCPU([l])||"string"===l.dtype){const t=n.texData.get(l.dataId),e=Object(o.I)(t.values,p,f,l.shape,l.dtype);return n.makeTensorInfo(f,l.dtype,e)}const{isPacked:b}=n.texData.get(l.dataId),m=i._363.isSliceContinous(l.shape,p,f);if(b||!m){const t=Object(i._222)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new u.a(f):new c.a(f),e=[p];return n.runWebGLProgram(t,[l],l.dtype,e)}return n.uploadToGPU(l.dataId),a(l,p,f,n)}e.a=s;var i=n(0),o=n(12),c=n(1092),u=n(1093);const l={kernelName:i._110,backendName:"webgl",kernelFunc:s};e.b=l},function(t,e,n){"use strict";function a(t,e){if("string"===t||"string"===e){if("string"===t&&"string"===e)return"string";throw new Error(`Can not upcast ${t} with ${e}`)}return f[t][e]}function s(type){return a(type,"int32")}function i(t){return null!=t&&"object"==typeof t&&"texture"in t&&t.texture instanceof WebGLTexture}function o(t){return"undefined"!=typeof GPUBuffer&&null!=t&&"object"==typeof t&&"buffer"in t&&t.buffer instanceof GPUBuffer}
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
var c,u,l,h,p;n.d(e,"a",(function(){return c})),e.e=a,e.d=s,e.b=i,e.c=o,function(t){t.R0="R0",t.R1="R1",t.R2="R2",t.R3="R3",t.R4="R4",t.R5="R5",t.R6="R6"}(c||(c={})),function(t){t.float32="float32",t.int32="int32",t.bool="int32",t.complex64="complex64"}(u||(u={})),function(t){t.float32="float32",t.int32="int32",t.bool="bool",t.complex64="complex64"}(l||(l={})),function(t){t.float32="float32",t.int32="float32",t.bool="float32",t.complex64="complex64"}(h||(h={})),function(t){t.float32="complex64",t.int32="complex64",t.bool="complex64",t.complex64="complex64"}(p||(p={}));const f={float32:h,int32:u,bool:l,complex64:p}},function(t,e,n){"use strict";(function(t){var e=n(4),a=n(234),s=n(39);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.c)();i.registerFlag("DEBUG",(()=>false),(t=>{t&&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.")})),i.registerFlag("IS_BROWSER",(()=>a.isBrowser())),i.registerFlag("IS_NODE",(()=>void 0!==t&&void 0!==t.versions&&void 0!==t.versions.node)),i.registerFlag("IS_CHROME",(()=>"undefined"!=typeof navigator&&null!=navigator&&null!=navigator.userAgent&&/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor))),i.registerFlag("IS_SAFARI",(()=>"undefined"!=typeof navigator&&null!=navigator&&null!=navigator.userAgent&&/Safari/.test(navigator.userAgent)&&/Apple/.test(navigator.vendor))),i.registerFlag("PROD",(()=>false)),i.registerFlag("TENSORLIKE_CHECK_SHAPE_CONSISTENCY",(()=>i.getBool("DEBUG"))),i.registerFlag("DEPRECATION_WARNINGS_ENABLED",(()=>true)),i.registerFlag("IS_TEST",(()=>false)),i.registerFlag("CHECK_COMPUTATION_FOR_ERRORS",(()=>i.getBool("DEBUG"))),i.registerFlag("WRAP_TO_IMAGEBITMAP",(()=>false)),i.registerFlag("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU",(()=>false)),i.registerFlag("USE_SETTIMEOUTCUSTOM",(()=>false))}).call(e,n(133))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","clone","string_or_numeric")};return s.a.runKernel(i._21,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const clone=Object(c.b)({clone_:a});e.a=clone},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","sigmoid","float32")};return s.a.runKernel(i._90,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sigmoid_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,l,p){null==p&&(p=.001);const f=Object(o.a)(t,"x","batchNorm"),b=Object(o.a)(e,"mean","batchNorm"),m=Object(o.a)(n,"variance","batchNorm");let g,v;null!=l&&(g=Object(o.a)(l,"scale","batchNorm")),null!=a&&(v=Object(o.a)(a,"offset","batchNorm")),c.assert(b.rank===m.rank,(()=>"Batch normalization gradient requires mean and variance to have equal ranks.")),c.assert(null==v||b.rank===v.rank,(()=>"Batch normalization gradient requires mean and offset to have equal ranks.")),c.assert(null==g||b.rank===g.rank,(()=>"Batch normalization gradient requires mean and scale to have equal ranks."));const w=undefined,y={x:Object(u.a)(f),scale:g,offset:v,mean:b,variance:m},O={varianceEpsilon:p},x=s.a.runKernel(i._13,y,O);return Object(h.a)(x,f.shape)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(427),l=n(2),h=n(7);const p=Object(l.b)({batchNorm_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function fill(shape,t,e){Object(o.d)(shape);const n={shape:shape,value:t,dtype:e=e||Object(i.inferDtype)(t)};return a.a.runKernel(s._8,{},n)}n.d(e,"a",(function(){return fill}));var a=n(4),s=n(1),i=n(5),o=n(35)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){const a=undefined,c={x:Object(o.a)(t,"x","max")},u={reductionIndices:e,keepDims:n};return s.a.runKernel(i._41,c,u)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({max_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0){const n=Object(o.a)(t,"x","expandDims","string_or_numeric");c.assert(e<=n.rank,(()=>"Axis must be <= rank of the tensor"));const a={input:n},u={dim:e};return s.a.runKernel(i._5,a,u)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({expandDims_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(o.a)(t,"x","tile","string_or_numeric");c.assert(n.rank===e.length,(()=>`Error in transpose: rank of input ${n.rank} must match length of reps ${e}.`));const a={x:n},u={reps:e};return s.a.runKernel(i._118,a,u)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({tile_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","log","float32")};return s.a.runKernel(i._32,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({log_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t="float32"){if(Object(i.assertNonNegativeIntegerDimensions)(shape),"complex64"===t){const t=a(shape,"float32"),e=a(shape,"float32");return Object(o.a)(t,e)}const e=Object(i.makeZerosTypedArray)(Object(i.sizeFromShape)(shape),t);return s.a.makeTensor(e,shape,t)}e.a=a;var s=n(4),i=n(5),o=n(79)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","relu")};return s.a.runKernel(i._75,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({relu_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0){const n=undefined,a={x:Object(o.a)(t,"x","step")},c={alpha:e};return s.a.runKernel(i._108,a,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({step_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0){const n=Object(o.a)(t,"x","unstack","string_or_numeric");c.assert(e>=-n.shape.length&&e<n.shape.length,(()=>`Axis = ${e} is not in [-${n.shape.length}, ${n.shape.length})`));const a={value:n},u={axis:e};return s.a.runKernel(i._123,a,u)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({unstack_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){if(null==n||"linear"===n)return t;if("relu"===n)return Object(l.a)(t,Object(g.a)(e));throw new Error(`Cannot compute gradient for fused activation ${n}.`)}function s(t,e){let n=e;const a=o.getReductionAxes(t.shape,e.shape);return a.length>0&&(n=Object(v.a)(n,a)),Object(b.a)(n,t.shape)}function i(t,e,n,a){if("linear"===e)return t;if("relu"===e)return Object(p.a)(t);if("elu"===e)return Object(c.a)(t);if("relu6"===e)return Object(f.a)(t);if("prelu"===e)return Object(h.a)(t,n);if("leakyrelu"===e)return Object(u.a)(t,a);if("sigmoid"===e)return Object(m.a)(t);throw new Error(`Unknown fused activation ${e}.`)}e.c=a,e.b=s,e.a=i;var o=n(19),c=n(182),u=n(185),l=n(9),h=n(192),p=n(119),f=n(195),b=n(7),m=n(111),g=n(120),v=n(26);const w=(t,e)=>{const n=undefined;return!(t>0)||"linear"===e};e.d=w},function(t,e,n){"use strict";function Input(t){if(null==t.batchShape&&null==t.shape)throw new Error("Please provide to Input either a `shape` or a `batchShape` argument. Note that `shape` does not include the batch dimension.");if(null!=t.batchShape&&null!=t.shape)throw new i.e("Please provide either a `shape` or `batchShape` argument to Input, but not both.");let e=t.batchShape;null!=t.shape&&null==e&&(e=[null].concat(t.shape));let n=t.dtype;null==n&&(n="float32");const a=undefined,s=undefined;return new c({batchInputShape:e,name:t.name,dtype:n,sparse:t.sparse}).inboundNodes[0].outputTensors[0]}n.d(e,"b",(function(){return c})),e.a=Input;var a=n(0),s=n(124),i=n(15),o=n(25);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class c extends o.b{constructor(t){if(super({dtype:t.dtype,name:null!=t.name?t.name:Object(s.b)("input").toString()}),null==t.batchSize&&(t.batchSize=null),null==t.sparse&&(t.sparse=false),this.trainable=false,this.built=true,this.sparse=t.sparse,null!=t.inputShape&&null!=t.batchInputShape)throw new i.e("Only provide the inputShape OR batchInputShape argument to inputLayer, not both at the same time.");let e=t.batchInputShape;if(null==e){if(null==t.inputShape)throw new i.e("An InputLayer should be passed either a `batchInputShape` or an `inputShape`.");e=[t.batchSize].concat(t.inputShape)}else if(null!=t.batchSize)throw new i.e("Cannot specify batchSize if batchInputShape is specified when creating an InputLayer.");const n=t.dtype||"float32";this.batchInputShape=e,this.dtype=n,this.inputSpec=[{shape:e}];const a=new o.d(this.dtype,this.batchInputShape,this,[],{},this.name);a.nodeIndex=0,a.tensorIndex=0,new o.c({outboundLayer:this,inboundLayers:[],nodeIndices:[],tensorIndices:[],inputTensors:[a],outputTensors:[a],inputMasks:[null],outputMasks:[null],inputShapes:[e],outputShapes:[e]})}apply(t,e){throw new i.e(`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}}}c.className="InputLayer",a._349.registerClass(c)},function(t,e,n){"use strict";function a(){return i++}function s(t=""){return t in o||(o[t]=0),o[t]+=1,t+o[t].toString()}e.a=a,e.b=s;
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
let i=0;const o={}},function(t,e,n){"use strict";function a(t,e){if(null==t&&(t={}),t instanceof p)return[t];if(Array.isArray(t)&&t[0]instanceof p)return t;const n=undefined;return u.o(t).map((t=>new m(t,e)))}function s(t,e,n,a,s,i,o,c,u){const l=new b,h=[new BaseLogger,...g.createCallbacks(e)];null!=t&&h.push(...t),h.push(l);const p=new f(h);return p.setParams({epochs:n,initialEpoch:a,samples:s,steps:i,batchSize:o,verbose:e,doValidation:c,metrics:u}),{callbackList:p,history:l}}e.g=a,n.d(e,"b",(function(){return g})),e.f=s;var i=n(0),o=n(15),c=n(157),u=n(24),l;!function(t){t[t.SILENT=0]="SILENT",t[t.VERBOSE=1]="VERBOSE"}(l||(l={}));const h=125;class p{constructor(){this.validationData=null}setParams(t){this.params=t}async onEpochBegin(t,e){}async onEpochEnd(t,e){}async onBatchBegin(t,e){}async onBatchEnd(t,e){}async onTrainBegin(t){}async onTrainEnd(t){}setModel(model){}}e.a=p;class f{constructor(t,e=10){null==t&&(t=[]),this.callbacks=t,this.queueLength=e}append(t){this.callbacks.push(t)}setParams(t){for(const e of this.callbacks)e.setParams(t)}setModel(model){for(const t of this.callbacks)t.setModel(model)}async onEpochBegin(t,e){null==e&&(e={});for(const n of this.callbacks)await n.onEpochBegin(t,e)}async onEpochEnd(t,e){null==e&&(e={});for(const n of this.callbacks)await n.onEpochEnd(t,e)}async onBatchBegin(t,e){null==e&&(e={});for(const n of this.callbacks)await n.onBatchBegin(t,e)}async onBatchEnd(t,e){null==e&&(e={});for(const n of this.callbacks)await n.onBatchEnd(t,e)}async onTrainBegin(t){null==t&&(t={});for(const e of this.callbacks)await e.onTrainBegin(t)}async onTrainEnd(t){null==t&&(t={});for(const e of this.callbacks)await e.onTrainEnd(t)}}e.c=f;class BaseLogger extends p{constructor(){super()}async onEpochBegin(t){this.seen=0,this.totals={}}async onBatchEnd(t,e){null==e&&(e={});const n=null==e.size?0:e.size;this.seen+=n;for(const t in e){const a=e[t];if("number"==typeof a)this.totals.hasOwnProperty(t)||(this.totals[t]=0),this.totals[t]=this.totals[t]+a*n;else{let e;t in this.totals?e=this.totals[t]:this.totals[t]=0;const s=Object(i._394)((()=>Object(i._150)(this.totals[t],Object(i._292)(a,n))));this.totals[t]=s,null!=e&&e.dispose()}}}async onEpochEnd(t,e){if(null!=e)for(const t of this.params.metrics)null!=this.totals[t]&&("number"==typeof this.totals[t]?e[t]=this.totals[t]/this.seen:Object(i._394)((()=>{const n=Object(i._292)(Object(i._211)(1,this.seen),this.totals[t]);e[t]=n,this.totals[t].dispose(),Object(i._257)(e[t])})))}}class b extends p{async onTrainBegin(t){this.epoch=[],this.history={}}async onEpochEnd(t,e){null==e&&(e={}),this.epoch.push(t);for(const t in e)null==this.history[t]&&(this.history[t]=[]),this.history[t].push(e[t])}async syncData(){const t=[],e=[],n=[];for(const a in this.history){const s=this.history[a];for(let i=0;i<s.length;++i)if("number"!=typeof s[i]){const o=s[i];t.push(o.data()),e.push(a),n.push(i)}}const a=await Promise.all(t);for(let t=0;t<a.length;++t){const s=undefined;this.history[e[t]][n[t]].dispose(),this.history[e[t]][n[t]]=a[t][0]}}}e.e=b;class m extends p{constructor(t,e){if(super(),this.currentEpoch=0,this.nowFunc=t.nowFunc,this.nextFrameFunc=t.nextFrameFunc||i._296,this.yieldEvery=e||"auto","auto"===this.yieldEvery&&(this.yieldEvery=h),"never"===this.yieldEvery&&null!=t.onYield)throw new Error("yieldEvery is `never` but you provided an `onYield` callback. Either change `yieldEvery` or remove the callback");i._408.isNumber(this.yieldEvery)&&(this.maybeWait=u.f(this.maybeWait.bind(this),this.yieldEvery,this.nowFunc)),this.trainBegin=t.onTrainBegin,this.trainEnd=t.onTrainEnd,this.epochBegin=t.onEpochBegin,this.epochEnd=t.onEpochEnd,this.batchBegin=t.onBatchBegin,this.batchEnd=t.onBatchEnd,this.yield=t.onYield}async maybeWait(t,e,n){const a=[];null!=this.yield&&(await Object(c.b)(n),a.push(this.yield(t,e,n))),a.push(this.nextFrameFunc()),await Promise.all(a)}async onEpochBegin(t,e){this.currentEpoch=t,null!=this.epochBegin&&(await Object(c.b)(e),await this.epochBegin(t,e))}async onEpochEnd(t,e){const n=[];null!=this.epochEnd&&(await Object(c.b)(e),n.push(this.epochEnd(t,e))),"epoch"===this.yieldEvery&&n.push(this.nextFrameFunc()),await Promise.all(n)}async onBatchBegin(t,e){null!=this.batchBegin&&(await Object(c.b)(e),await this.batchBegin(t,e))}async onBatchEnd(t,e){const n=[];null!=this.batchEnd&&(await Object(c.b)(e),n.push(this.batchEnd(t,e))),"batch"===this.yieldEvery?n.push(this.nextFrameFunc()):i._408.isNumber(this.yieldEvery)&&n.push(this.maybeWait(this.currentEpoch,t,e)),await Promise.all(n)}async onTrainBegin(t){null!=this.trainBegin&&(await Object(c.b)(t),await this.trainBegin(t))}async onTrainEnd(t){null!=this.trainEnd&&(await Object(c.b)(t),await this.trainEnd(t))}}e.d=m;class g{constructor(){}static registerCallbackConstructor(t,e){i._408.assert(t>=0&&Number.isInteger(t),(()=>`Verbosity level is expected to be an integer >= 0, but got ${t}`)),g.checkForDuplicate(e),null==g.constructors[t]&&(g.constructors[t]=[]),g.constructors[t].push(e)}static checkForDuplicate(t){for(const e in g.constructors){const n=undefined;g.constructors[+e].forEach((e=>{if(e===t)throw new o.e("Duplicate callback constructor.")}))}}static clear(){g.constructors={}}static createCallbacks(t){const e=[];for(const n in g.constructors){const a=+n;t>=a&&e.push(...g.constructors[a])}return e.map((t=>new t))}}g.constructors={}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e={},n=false){return Object(i.g)(t,s._349.SerializationMap.getMap().classNameMap,e,"layer",n)}e.a=a;var s=n(0),i=n(24)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{input:input}=e,a=n.data.get(input.dataId).complexTensorInfos.imag,s=n.data.get(a.dataId).values;return n.makeTensorInfo(a.shape,a.dtype,s)}var s;e.a=a;const i={kernelName:n(0)._29,backendName:"cpu",kernelFunc:a};e.b=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:p}=e,{axis:f,keepDims:b}=a;let m;Object(i.a)(p,"sum"),m="bool"===p.dtype?Object(c.a)({inputs:{x:p},backend:n,attrs:{dtype:"int32"}}):Object(u.a)({inputs:{x:p},backend:n});const g=m.shape.length,v=s._408.parseAxisParam(f,m.shape),w=s._164.getAxesPermutation(v,g);let y=v,O=m;null!=w&&(O=Object(h.a)({inputs:{x:m},backend:n,attrs:{perm:w}}),y=s._164.getInnerMostAxes(y.length,g)),s._164.assertAxesAreInnerMostDims("sum",y,O.shape.length);const[x,A]=s._164.computeOutAndReduceShapes(O.shape,y),I=s._164.upcastType(O.dtype,"int32");let j=Object(o.a)(n,x,I);const C=s._408.sizeFromShape(A),_=n.data.get(j.dataId).values,k=n.data.get(O.dataId).values;for(let t=0;t<_.length;++t){const e=t*C;let n=0;for(let t=0;t<C;++t)n+=k[e+t];_[t]=n}if(b){const t=s._164.expandShapeToKeepDim(j.shape,v),e=j;j=Object(l.a)({inputs:{x:j},backend:n,attrs:{shape:t}}),n.disposeIntermediateTensorInfo(e)}return n.disposeIntermediateTensorInfo(m),null!=w&&n.disposeIntermediateTensorInfo(O),j}e.a=a;var s=n(0),i=n(8),o=n(317),c=n(103),u=n(65),l=n(40),h=n(45);const p={kernelName:s._130,backendName:"cpu",kernelFunc:a};e.b=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(s._222)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new c.a(t.shape,e):new o.a(t.shape,e);return n.runWebGLProgram(a,[t],t.dtype)}e.a=a;var s=n(0),i=n(12),o=n(1063),c=n(1064);n.d(e,"b",(function(){return i.V}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{input:input}=e,a=n.texData.get(input.dataId);return Object(i.a)({inputs:{x:a.complexTensorInfos.real},backend:n})}e.a=a;var s=n(0),i=n(50);const o={kernelName:s._86,backendName:"webgl",kernelFunc:a};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function fill(t){const{backend:e,attrs:n}=t,{shape:shape,value:i}=n;let{dtype:o}=n;if(o=o||a._408.inferDtype(i),"string"===o){const t=a._408.getArrayFromDType(o,a._408.sizeFromShape(shape));return t.fill(i),e.makeTensorInfo(shape,o,t)}{const t=new s.a(shape,i),n=[[i]];return e.runWebGLProgram(t,[],o,n)}}e.a=fill;var a=n(0),s=n(1140);const i={kernelName:a._15,backendName:"webgl",kernelFunc:fill};e.b=i},function(t,e,n){"use strict";var a;a=function(){return this}();try{a=a||Function("return this")()||(1,eval)("this")}catch(t){"object"==typeof window&&(a=window)}t.exports=a},function(t,e,n){"use strict";function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===a||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(b===clearTimeout)return clearTimeout(t);if((b===s||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(t);try{return b(t)}catch(e){try{return b.call(null,t)}catch(e){return b.call(this,t)}}}function c(){g&&v&&(g=false,v.length?m=v.concat(m):w=-1,m.length&&u())}function u(){if(!g){var t=i(c);g=true;for(var e=m.length;e;){for(v=m,m=[];++w<e;)v&&v[w].run();w=-1,e=m.length}v=null,g=false,o(t)}}function l(t,e){this.fun=t,this.array=e}function h(){}var p=t.exports={},f,b;!function(){try{f="function"==typeof setTimeout?setTimeout:a}catch(t){f=a}try{b="function"==typeof clearTimeout?clearTimeout:s}catch(t){b=s}}();var m=[],g=false,v,w=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];m.push(new l(t,e)),1!==m.length||g||i(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=true,p.env={},p.argv=[],p.version="",p.versions={},p.on=h,p.addListener=h,p.once=h,p.off=h,p.removeListener=h,p.removeAllListeners=h,p.emit=h,p.prependListener=h,p.prependOnceListener=h,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){"use strict";function a(t,e){const n=p(t,e);return g.get(n)}function s(t){return v.get(t)}function i(t){const it=g.entries(),e=[];for(;;){const{done:n,value:a}=it.next();if(n)break;const[s,i]=a,[o]=s.split("_");o===t&&e.push(i)}return e}function o(t){const{kernelName:e,backendName:n}=t,a=p(e,n);g.has(a)&&m.b(`The kernel '${e}' for backend '${n}' is already registered`),g.set(a,t)}function c(t){const{kernelName:e}=t;v.has(e)&&Object(f.c)().getBool("DEBUG")&&m.b(`Overriding the gradient for '${e}'`),v.set(e,t)}function u(t,e){const n=p(t,e);if(!g.has(n))throw new Error(`The kernel '${t}' for backend '${e}' is not registered`);g.delete(n)}function l(t){if(!v.has(t))throw new Error(`The gradient '${t}' for backend is not registered`);v.delete(t)}function h(t,e){const n=undefined;i(t).forEach((t=>{const n=undefined;o(Object.assign({},t,{backendName:e}))}))}function p(t,e){return`${e}_${t}`}e.c=a,e.b=s,e.d=i,e.f=o,e.e=c,e.h=u,e.g=l,e.a=h;var f=n(39),b=n(171),m=n(172);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const g=Object(b.a)("kernelRegistry",(()=>new Map)),v=Object(b.a)("gradRegistry",(()=>new Map))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e){const n=Object(s.c)(t,e);return Object(i.a)(t,shape,n,e)}e.a=a;var s=n(3),i=n(67)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,blockShape,e){const n=Object(o.a)(t,"x","batchToSpaceND"),a=blockShape.reduce(((t,e)=>t*e));c.assert(n.rank>=1+blockShape.length,(()=>`input rank is ${n.rank} but should be > than blockShape.length ${blockShape.length}`)),c.assert(e.length===blockShape.length,(()=>`crops.length is ${e.length} but should be equal to blockShape.length ${blockShape.length}`)),c.assert(n.shape[0]%a==0,(()=>`input tensor batch is ${n.shape[0]} but is not divisible by the product of the elements of blockShape ${blockShape.join(" * ")} === ${a}`));const u={x:n},l={blockShape:blockShape,crops:e};return s.a.runKernel(i.t,u,l)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({batchToSpaceND_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,filter,e,n,a="NHWC",l=[1,1],p){const f=Object(o.a)(t,"x","depthwiseConv2d","float32"),b=Object(o.a)(filter,"filter","depthwiseConv2d","float32");let m=f,g=false;3===f.rank&&(g=true,m=Object(h.a)(f,[1,f.shape[0],f.shape[1],f.shape[2]])),c.assert(4===m.rank,(()=>`Error in depthwiseConv2d: input must be rank 4, but got rank ${m.rank}.`)),c.assert(4===b.rank,(()=>`Error in depthwiseConv2d: filter must be rank 4, but got rank ${b.rank}.`));const v="NHWC"===a?m.shape[3]:m.shape[1];c.assert(v===b.shape[2],(()=>`Error in depthwiseConv2d: number of input channels (${v}) must match the inChannels dimension in filter ${b.shape[2]}.`)),u.a("depthwiseConv2d",n,p);const w={x:m,filter:b},y={strides:e,pad:n,dataFormat:a,dilations:l,dimRoundingMode:p},O=s.a.runKernel(i.R,w,y);return g?Object(h.a)(O,[O.shape[1],O.shape[2],O.shape[3]]):O}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(33),l=n(2),h=n(7);const p=Object(l.b)({depthwiseConv2d_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","equal","string_or_numeric"),a=Object(c.a)(e,"b","equal","string_or_numeric");[n,a]=Object(o.makeTypesMatch)(n,a),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const l={a:n,b:a};return s.a.runKernel(i._2,l)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(2);const h=Object(l.b)({equal_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e="euclidean",n=null,a=false){const c=s(t=Object(i.a)(t,"x","norm"),e,n);let l=c.shape;if(a){const e=Object(o.parseAxisParam)(n,t.shape);l=u.e(c.shape,e)}return Object(b.a)(c,l)}function s(t,e,n=null){if(0===t.rank)return Object(c.a)(t);if(1!==t.rank&&null===n)return s(Object(b.a)(t,[-1]),e,n);if(1===t.rank||"number"==typeof n||Array.isArray(n)&&1===n.length){if(1===e)return Object(w.a)(Object(c.a)(t),n);if(e===1/0)return Object(l.a)(Object(c.a)(t),n);if(e===-1/0)return Object(h.a)(Object(c.a)(t),n);if("euclidean"===e||2===e)return Object(g.a)(Object(w.a)(Object(f.a)(Object(c.a)(t),Object(m.a)(2,"int32")),n));throw new Error(`Error in norm: invalid ord value: ${e}`)}if(Array.isArray(n)&&2===n.length){if(1===e)return Object(l.a)(Object(w.a)(Object(c.a)(t),n[0]),n[1]-1);if(e===1/0)return Object(l.a)(Object(w.a)(Object(c.a)(t),n[1]),n[0]);if(e===-1/0)return Object(h.a)(Object(w.a)(Object(c.a)(t),n[1]),n[0]);if("fro"===e||"euclidean"===e)return Object(g.a)(Object(w.a)(Object(v.a)(t),n));throw new Error(`Error in norm: invalid ord value: ${e}`)}throw new Error(`Error in norm: invalid axis: ${n}`)}var i=n(3),o=n(5),c=n(92),u=n(55),l=n(114),h=n(183),p=n(2),f=n(81),b=n(7),m=n(22),g=n(56),v=n(31),w=n(26);const y=Object(p.b)({norm_:a});e.a=y},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n=0,a=0){const c=undefined,u=undefined,l={x:Object(o.a)(t,"x","gather"),indices:Object(o.a)(e,"indices","gather","int32")},h={axis:n,batchDims:a};return s.a.runKernel(i._17,l,h)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({gather_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input){const t=undefined,e={input:Object(o.a)(input,"input","imag")};return s.a.runKernel(i._22,e)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({imag_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","less","string_or_numeric"),a=Object(c.a)(e,"b","less","string_or_numeric");[n,a]=Object(o.makeTypesMatch)(n,a),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const l={a:n,b:a};return s.a.runKernel(i._29,l)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(2);const h=Object(l.b)({less_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","logicalNot","bool")};return s.a.runKernel(i._36,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({logicalNot_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","maximum"),a=Object(c.a)(e,"b","maximum");[n,a]=Object(o.makeTypesMatch)(n,a),"bool"===n.dtype&&(n=Object(l.a)(n,"int32"),a=Object(l.a)(a,"int32")),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const h={a:n,b:a};return s.a.runKernel(i._47,h)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(13),h=n(2);const p=Object(h.b)({maximum_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){const a=undefined,c={x:Object(o.a)(t,"x","mean")},u={axis:e,keepDims:n};return s.a.runKernel(i._48,c,u)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({mean_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","minimum"),a=Object(c.a)(e,"b","minimum");[n,a]=Object(o.makeTypesMatch)(n,a),"bool"===n.dtype&&(n=Object(l.a)(n,"int32"),a=Object(l.a)(a,"int32")),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const h={a:n,b:a};return s.a.runKernel(i._50,h)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(13),h=n(2);const p=Object(h.b)({minimum_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,blockShape,paddings){const e=Object(o.a)(t,"x","spaceToBatchND");c.assert(e.rank>=1+blockShape.length,(()=>`input rank ${e.rank} should be > than [blockShape] ${blockShape.length}`)),c.assert(paddings.length===blockShape.length,(()=>`paddings.shape[0] ${paddings.length} must be equal to [blockShape] ${blockShape.length}`)),c.assert(e.shape.reduce(((t,e,n)=>n>0&&n<=blockShape.length?t&&(e+paddings[n-1][0]+paddings[n-1][1])%blockShape[n-1]==0:t),true),(()=>`input spatial dimensions ${e.shape.slice(1)} with paddings ${paddings.toString()} must be divisible by blockShapes ${blockShape.toString()}`));const n={x:e},a={blockShape:blockShape,paddings:paddings};return s.a.runKernel(i._97,n,a)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({spaceToBatchND_:a});e.a=l},function(t,e,n){"use strict";function a(t){const e=t.length,n=u(t),a=c(t),s=e/6*(Math.pow(n,2)+.25*Math.pow(a-3,2)),i=undefined;if(s>5.991)throw new Error(`Invalid p-value for JB: ${s}`)}function s(t,e,n,a){null==a&&(a=Object(p.testEpsilon)());const s=i(t);Object(p.expectNumbersClose)(s,e,a),Object(p.expectNumbersClose)(o(t,s),n,a)}function i(t){let e=0;for(let n=0;n<t.length;n++)e+=t[n];return e/t.length}function o(t,e){let n=0;for(let a=0;a<t.length;a++){const diff=t[a]-e;n+=diff*diff}return Math.sqrt(n/t.length)}function c(t){const e=i(t),n=t.length;let a=0,s=0;for(let i=0;i<n;i++){const n=t[i]-e;a+=Math.pow(n,2),s+=Math.pow(n,4)}return 1/n*s/Math.pow(1/n*a,2)}function u(t){const e=i(t),n=t.length;let a=0,s=0;for(let i=0;i<n;i++){const n=t[i]-e;a+=Math.pow(n,2),s+=Math.pow(n,3)}return 1/n*s/Math.pow(1/(n-1)*a,1.5)}var l=n(149),h=n.n(l),p=n(266);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class f{constructor(t,e,n,a,s){this.mean=t,this.stdDev=e,this.dtype=n,this.nextVal=NaN,this.truncated=a,this.truncated&&(this.upper=this.mean+2*this.stdDev,this.lower=this.mean-2*this.stdDev);const i=s||Math.random();this.random=l.alea(i.toString())}nextValue(){if(!isNaN(this.nextVal)){const t=this.nextVal;return this.nextVal=NaN,t}let t,e,n=false;for(;!n;){let a,s,i;do{a=2*this.random()-1,s=2*this.random()-1,i=a*a+s*s}while(i>=1||0===i);const o=Math.sqrt(-2*Math.log(i)/i);t=this.mean+this.stdDev*a*o,e=this.mean+this.stdDev*s*o,this.truncated&&!this.isValidTruncated(t)||(n=true)}return this.truncated&&!this.isValidTruncated(e)||(this.nextVal=this.convertValue(e)),this.convertValue(t)}convertValue(t){return null==this.dtype||"float32"===this.dtype?t:Math.round(t)}isValidTruncated(t){return t<=this.upper&&t>=this.lower}}e.a=f;class b{constructor(t,e,n,a){this.alpha=t,this.beta=1/e,this.dtype=n;const s=a||Math.random();this.randu=l.alea(s.toString()),this.randn=new f(0,1,n,false,this.randu()),this.d=t<1?t+2/3:t-1/3,this.c=1/Math.sqrt(9*this.d)}nextValue(){let t,e,n,a,s,i;for(;;){do{a=this.randn.nextValue(),i=1+this.c*a}while(i<=0);if(i*=i*i,t=a*a,e=1-.331*t*t,n=.5*t+this.d*(1-i+Math.log(i)),s=this.randu(),s<e||Math.log(s)<n)break}return i=1/this.beta*this.d*i,this.alpha<1&&(i*=Math.pow(this.randu(),1/this.alpha)),this.convertValue(i)}convertValue(t){return"float32"===this.dtype?t:Math.round(t)}}e.b=b;class m{constructor(t=0,e=1,n,a){if(this.canReturnFloat=()=>null==this.dtype||"float32"===this.dtype,this.min=t,this.range=e-t,this.dtype=n,null==a&&(a=Math.random()),"number"==typeof a&&(a=a.toString()),!this.canReturnFloat()&&this.range<=1)throw new Error(`The difference between ${t} - ${e} <= 1 and dtype is not float`);this.random=l.alea(a)}convertValue(t){return this.canReturnFloat()?t:Math.round(t)}nextValue(){return this.convertValue(this.min+this.range*this.random())}}e.c=m},function(t,e,n){"use strict";var a=n(470),s=n(471),i=n(472),o=n(473),c=n(474),u=n(475),sr=n(476);sr.alea=a,sr.xor128=s,sr.xorwow=i,sr.xorshift7=o,sr.xor4096=c,sr.tychei=u,t.exports=sr},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input){const t=undefined,e={input:Object(o.a)(input,"input","real")};return s.a.runKernel(i._72,e)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({real_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(s.a)(t,"x","squeeze","string_or_numeric");return Object(c.a)(n,Object(i.squeezeShape)(n.shape,e).newShape)}var s=n(3),i=n(5),o=n(2),c=n(7);const u=Object(o.b)({squeeze_:a});e.a=u},function(t,e,n){"use strict";function a(shape,t,e){const n=t.rank>1?t.shape[t.rank-1]:1,a=t.rank>1?t.rank-1:1,s=`Must have updates.shape = indices.shape[:batchDim] + shape[sliceDim:], got updates.shape: ${e.shape}, indices.shape: ${t.shape}, shape: ${shape}, sliceDim: ${n}, and batchDim: ${a}.`;if(e.rank<a)throw new Error(s+` update.rank < ${a}. `);if(shape.length<n+(e.rank-a))throw new Error(s+` Output shape length < ${n+(e.rank-a)}`);if(e.rank!==a+shape.length-n)throw new Error(s+" update.rank != "+(a+shape.length-n));for(let d=0;d<a;++d)if(e.shape[d]!==t.shape[d])throw new Error(s+` updates.shape[${d}] (${e.shape[d]}) != indices.shape[${d}] (${t.shape[d]}).`);for(let d=0;d<e.rank-a;++d)if(e.shape[d+a]!==shape[d+n])throw new Error(s+` updates.shape[${d+a}] (${e.shape[d+a]}) != shape[${d+a}] (${shape[d+a]})`)}function s(t,e,shape){if(e.rank<1)throw new Error(`tf.scatterND() expects the indices to be rank 1 or higher, but the rank was ${e.rank}.`);if(t.rank<1)throw new Error(`tf.scatterND() expects the updates to be rank 1 or higher, but the rank was ${t.rank}.`);if("int32"!==e.dtype)throw new Error(`The dtype of 'indices' should be int32, but got dtype: ${e.dtype}`);if(shape.length<1)throw new Error(`Output rank must be greater or equal to 1, but got shape: ${shape}`);if(0===shape.length){if(0===e.size)throw new Error(`Indices specified for empty output. indices shape: ${e.shape}`);if(0===t.size)throw new Error(`Updates specified for empty output. updates shape: ${t.shape}`)}a(shape,e,t)}function i(t,e,shape){const n=e.shape.length,a=n>1?e.shape[n-1]:1,s=shape.length;let i=1;for(let t=a;t<s;++t)i*=shape[t];const c=a<1?1:a,u=undefined,l=undefined,h=undefined;return{sliceRank:a,numUpdates:Object(o.sizeFromShape)(e.shape)/c,sliceSize:i,strides:[...Object(o.computeStrides)(shape.slice(0,a)),1],outputSize:Object(o.sizeFromShape)(shape)}}Object.defineProperty(e,"__esModule",{value:true}),e.validateUpdateShape=a,e.validateInput=s,e.calculateShapes=i;var o=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return Math.floor(Math.pow(2,Math.ceil(Math.log(t)/Math.log(2))))}function s(t,e,n){const a=1-t%2,s=new Float32Array(t);for(let i=0;i<t;++i){const o=2*Math.PI*i/(t+a-1);s[i]=e-n*Math.cos(o)}return Object(i.a)(s,"float32")}e.b=a,e.a=s;var i=n(85)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,s){return o(t,e,n,a,s,0)}function s(t,e,n,a,s,i){return o(t,e,n,a,s,0,false,i,true)}function i(t,e,n,a,s,i){return o(t,e,n,a,s,i,true)}function o(t,e,n,a,s,i,o=false,p=false,f=false){const b=[];for(let t=0;t<e.length;t++)e[t]>s&&b.push({score:e[t],boxIndex:t,suppressBeginIndex:0});b.sort(l);const m=i>0?-.5/i:0,g=[],v=[];for(;g.length<n&&b.length>0;){const e=b.pop(),{score:n,boxIndex:i,suppressBeginIndex:o}=e;if(n<s)break;let p=false;for(let n=g.length-1;n>=o;--n){const o=c(t,i,g[n]);if(o>=a){p=true;break}if(e.score=e.score*u(a,m,o),e.score<=s)break}e.suppressBeginIndex=g.length,p||(e.score===n?(g.push(i),v.push(e.score)):e.score>s&&Object(h.a)(b,e,l))}const w=g.length,y=n-w;p&&y>0&&(g.push(...new Array(y).fill(0)),v.push(...new Array(y).fill(0)));const O={selectedIndices:g};return o&&(O.selectedScores=v),f&&(O.validOutputs=w),O}function c(t,e,n){const a=t.subarray(4*e,4*e+4),s=t.subarray(4*n,4*n+4),i=Math.min(a[0],a[2]),o=Math.min(a[1],a[3]),c=Math.max(a[0],a[2]),u=Math.max(a[1],a[3]),l=Math.min(s[0],s[2]),h=Math.min(s[1],s[3]),p=Math.max(s[0],s[2]),f=Math.max(s[1],s[3]),b=(c-i)*(u-o),m=(p-l)*(f-h);if(b<=0||m<=0)return 0;const g=Math.max(i,l),v=Math.max(o,h),w=Math.min(c,p),y=Math.min(u,f),O=Math.max(w-g,0)*Math.max(y-v,0);return O/(b+m-O)}function u(t,e,n){const a=Math.exp(e*n*n);return n<=t?a:0}function l(t,e){return t.score-e.score||t.score===e.score&&e.boxIndex-t.boxIndex}e.a=a,e.b=s,e.c=i;var h=n(523)},function(t,e,n){"use strict";var a=n(4),s=n(44),i=n(20),o=n(9),c=n(22),u=n(86);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class l extends u.a{static get className(){return"SGD"}constructor(t){super(),this.learningRate=t,this.setLearningRate(t)}applyGradients(t){const e=undefined;(Array.isArray(t)?t.map((t=>t.name)):Object.keys(t)).forEach(((e,n)=>{const gradient=Array.isArray(t)?t[n].tensor:t[e];if(null==gradient)return;const c=a.a.registeredVariables[e];Object(s.t)((()=>{const t=Object(i.a)(Object(o.a)(this.c,gradient),c);c.assign(t)}))})),this.incrementIterations()}setLearningRate(t){this.learningRate=t,null!=this.c&&this.c.dispose(),this.c=Object(s.l)(Object(c.a)(-t))}dispose(){this.c.dispose()}async getWeights(){return[await this.saveIterations()]}async setWeights(t){if(0!==(t=await this.extractIterations(t)).length)throw new Error("SGD optimizer does not have settable weights.")}getConfig(){return{learningRate:this.learningRate}}static fromConfig(t,e){return new t(e.learningRate)}}e.a=l},function(t,e,n){"use strict";function a(t,e){if(t.shape.toString()!==e.shape.toString())throw new Error("Shape mismatch: "+JSON.stringify(t.shape)+" vs. "+JSON.stringify(e.shape))}function s(t,e,n,a){return new j(t,e,n,true,a)}function i(shape,t,e){return new j(y._416(shape),t,e)}function o(t,e,n){return new j(y._417(t),e,n)}function c(shape,t,e){const n=y._300(shape);return new j(n,t,e)}function u(t,e,n){const a=y._301(t);return new j(a,e,n)}function l(size,t,e){return new j(y._229(size),t,e)}function h(shape,t,e,n,a,s="randomUniform"){return new j(y._322(shape,t,e,n),n,s)}function p(shape,t=0,e=1,n,a,s="truncatedNormal"){if("float32"!==(n=n||"float32")&&"int32"!==n)throw new A.c(`randomNormal does not support dType ${n}.`);return new j(y._400(shape,t,e,n,a),n,s)}function f(shape,t=0,e=1,n,a,s="randomNormal"){if("float32"!==(n=n||"float32")&&"int32"!==n)throw new A.c(`randomNormalVariable does not support dType ${n}.`);return new j(y._320(shape,t,e,n,a),n,s)}function update(t,e){return t.write(e)}function b(t,e){return t.write(y._150(t.read(),e))}function m(t,e){return t.write(y._379(t.read(),e))}function g(t){return t.map((t=>t.read()))}function v(t){t.forEach((t=>{const e=undefined;t[0].write(t[1])}))}function w(t,e){const n=e.map((t=>t.read())),a=Object(y._412)(t,n);return e.map((t=>a.grads[t.name]))}e.b=g,e.c=v;var y=n(0),O=n(124),x=n(51),A=n(15);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
const I="Variable";class j{constructor(t,e="float32",n="Variable",a=true,s=null){this.dtype=null==e?"float32":e,this.shape=t.shape,this.id=Object(O.a)(),n=null==n?I:n,this.originalName=Object(x.e)(n),this.name=Object(x.f)(this.originalName),this.trainable_=a,this.constraint=s,this.val=y._411(t,this.trainable_,this.name,this.dtype)}read(){return this.assertNotDisposed(),this.val}write(t){return this.assertNotDisposed(),a(this.val,t),this.val.id!==t.id&&(this.val.assign(t),null!=this.constraint&&this.val.assign(this.constraint.apply(this.val))),this}dispose(){this.assertNotDisposed(),this.val.dispose()}assertNotDisposed(){if(this.val.isDisposed)throw new Error(`LayersVariable ${this.name} is already disposed.`)}get trainable(){return this.trainable_}set trainable(t){this.trainable_=t,this.val.trainable=t}}e.a=j},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
async function a(t){if(null==t)return;const e=[],n=[],a=[];for(const s in t){const i=t[s];if("number"!=typeof i){const t=i;e.push(t.data()),n.push(s),a.push(t)}}if(e.length>0){const s=await Promise.all(e);for(let e=0;e<s.length;++e)t[n[e]]=s[e][0];Object(i._209)(a)}}function s(t){if(null!=t)for(const e in t){const n=t[e];"number"!=typeof n&&n.dispose()}}e.b=a,e.a=s;var i=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){return t instanceof p._133}function s(t){return Array.isArray(t)}function i(t){return!a(t)&&!s(t)}function o(data,names,t,e=true,n=""){if(null==names||0===names.length){if(null!=data){let t=false;if(s(data)&&data.length>0)t=true;else if(i(data)){for(const e in data)if(data.hasOwnProperty(e)){t=true;break}}else t=true;if(t)throw new g.e(`Error when checking model ${n} expected no data, but got ${data}`)}return[]}if(null==data)return names.map((t=>null));let a;if(i(data)){data=data,a=[];for(const t of names){if(null==data[t])throw new g.e(`No data provided for "${t}". Need data for each key in: ${names}`);a.push(data[t])}}else if(s(data)){if((data=data).length!==names.length)throw new g.e(`Error when checking model ${n}: the Array of Tensors that you are passing to your model is not the size the model expected. Expected to see ${names.length} Tensor(s), but instead got the following list of Tensor(s): ${data}`);a=data}else{if(data=data,names.length>1)throw new g.e(`The model ${n} expects ${names.length} Tensor(s), but only received one Tensor. Found: Tensor with shape ${data.shape}`);a=[data]}if(a=Object(B.c)(a),null!=t)for(let s=0;s<names.length;++s){if(null==t[s])continue;const i=a[s];if(i.shape.length!==t[s].length)throw new g.e(`Error when checking ${n}: expected ${names[s]} to have ${t[s].length} dimension(s). but got array with shape ${i.shape}`);for(let a=0;a<t[s].length;++a){if(0===a&&!e)continue;const o=i.shape[a],c=t[s][a];if(null!=c&&c>=0&&o!==c)throw new g.e(`${n} expected a batch of elements where each example has shape [${t[s].slice(1,t[s].length)}] (i.e.,tensor shape [*,${t[s].slice(1,t[s].length)}]) but the ${n} received an input with ${i.shape[0]} examples, each with shape [${i.shape.slice(1,i.shape.length)}] (tensor shape [${i.shape}])`)}}return a}function c(t,e,n){const a=Object(I.q)(t.map((input=>input.shape[0])));a.sort();const s=Object(I.q)(e.map((t=>t.shape[0])));if(s.sort(),a.length>1)throw new g.e(`All input Tensors (x) should have the same number of samples. Got array shapes: ${JSON.stringify(t.map((input=>input.shape)))}`);if(s.length>1)throw new g.e(`All target Tensors (y) should have the same number of samples. Got array shapes: ${JSON.stringify(e.map((t=>t.shape)))}`);if(a.length>0&&s.length>0&&!p._408.arraysEqual(a,s))throw new g.e(`Input Tensors should have the same number of samples as target Tensors. Found ${a[0]} input sample(s) and ${s[0]} target sample(s).`)}function u(t,e,n){const a=[y.i,y.a,y.b];for(let s=0;s<t.length;++s){const i=t[s],o=e[s],shape=n[s];if(null!=o){if(o===y.b&&1===i.shape[i.shape.length-1])throw new g.e(`You are passing a target array of shape ${i.shape} while using a loss 'categorical_crossentropy'. 'categorical_crossentropy'expects targets to be binary matrices (1s and 0s) of shape [samples, classes].`);if(-1!==a.indexOf(o)){const t=i.shape.slice(1),e=shape.slice(1);for(let n=0;n<t.length;++n){const a=t[n],s=e[n];if(null!=s&&a!==s)throw new g.e(`A target Tensor with shape ${i.shape} was passed for an output of shape ${shape}, while using a loss function that expects targets to have the same shape as the output.`)}}}}}function l(data,names,t,e=true,n=""){let a;if(Array.isArray(data)){if(data.length!==names.length)throw new g.e(`Error when checking model ${n}: the Array of Tensors that you are passing to your model is not the size the the model expected. Expected to see ${names.length} Tensor(s), but instead got ${data.length} Tensors(s).`);a=data}else{if(names.length>1)throw new g.e(`The model expects ${names.length} ${n} Tensors, but only received one Tensor. Found: array with shape ${JSON.stringify(data.shape)}.`);a=[data]}if(null!=t)for(let s=0;s<names.length;++s){if(null==t[s])continue;const i=a[s];if(i.shape.length!==t[s].length)throw new g.e(`Error when checking ${n}: expected ${names[s]} to have ${t[s].length} dimension(s), but got array with shape ${JSON.stringify(i.shape)}`);for(let a=0;a<t[s].length;++a){if(0===a&&!e)continue;const o=i.shape[a],c=t[s][a];if(null!=c&&c!==o)throw new g.e(`Error when checking ${n}: expected ${names[s]} to have shape ${JSON.stringify(t[s])} but got array with shape ${JSON.stringify(i.shape)}.`)}}}function h(t,e){if(null==t||Array.isArray(t)&&0===t.length)return e.map((t=>[]));let n;if("string"==typeof t||"function"==typeof t)n=[t];else{if(!Array.isArray(t)&&"object"!=typeof t)throw new TypeError(`Type of metrics argument not understood. Expected an string,function, Array, or Object, found: ${t}`);n=t}if(Array.isArray(n))return e.map((t=>n));{const t=[];for(const a of e){let e=n.hasOwnProperty(a)?n[a]:[];Array.isArray(e)||(e=[e]),t.push(e)}return t}}n.d(e,"a",(function(){return M}));var p=n(0),f=n(32),b=n(125),m=n(51),g=n(15),v=n(126),w=n(157),y=n(100),O=n(299),x=n(827),A=n(828),I=n(24),j=n(829),C=n(72),_=n(211),k=n(212),S=n(830),T=n(210),L=n(831),B=n(832),N=n(300);const E="layers-model";class M extends S.a{constructor(t){super(t),this.isTraining=false}summary(t,e,n=console.log){if(!this.built)throw new g.e("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).");Object(j.a)(this,t,e,n)}compile(t){if(null==t.loss&&(t.loss=[]),this.loss=t.loss,"string"==typeof t.optimizer)this.optimizer_=x.a(t.optimizer),this.isOptimizerOwned=true;else{if(!(t.optimizer instanceof p._72))throw new g.e("User-defined optimizer must be an instance of tf.Optimizer.");this.optimizer_=t.optimizer,this.isOptimizerOwned=false}let e=[];if(Array.isArray(t.loss)||"string"==typeof t.loss||"function"==typeof t.loss)if(Array.isArray(t.loss)){if(t.loss.length!==this.outputs.length)throw new g.e(`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=${t.loss}.`);const n=t.loss;e=n.map((t=>y.d(t)))}else{const n=y.d(t.loss);this.outputs.forEach((t=>{e.push(n)}))}else{t.loss=t.loss;for(const e in t.loss)if(-1===this.outputNames.indexOf(e))throw new g.e(`Unknown entry in loss dictionary: "${e}". Only expected the following keys: ${this.outputNames}`);for(const n of this.outputNames)null==t.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`),e.push(y.d(t.loss[n]))}this.lossFunctions=e,this.feedOutputNames=[],this.feedOutputShapes=[],this.feedLossFns=[];for(let t=0;t<this.outputs.length;++t){const shape=this.internalOutputShapes[t],e=this.outputNames[t];this.feedOutputNames.push(e),this.feedOutputShapes.push(shape),this.feedLossFns.push(this.lossFunctions[t])}const n=[];this.metrics=t.metrics,this.metricsNames=["loss"],this.metricsTensors=[],Object(m.g)("loss",(()=>{for(let t=0;t<this.outputs.length;++t){if(-1!==n.indexOf(t))continue;const e=this.lossFunctions[t];this.outputs.length>1&&(this.metricsTensors.push([e,t]),this.metricsNames.push(this.outputNames[t]+"_loss"))}}));const a=h(t.metrics,this.outputNames),s=(t,e,n)=>{this.outputNames.length>1&&(e=this.outputNames[t]+"_"+e),this.metricsNames.push(e),this.metricsTensors.push([n,t])};Object(m.g)("metric",(()=>{for(let t=0;t<this.outputs.length;++t){if(-1!==n.indexOf(t))continue;const e=undefined,i=undefined;(e=>{const n="";let a,i,o;for(const c of e){if("string"==typeof c&&-1!==["accuracy","acc","crossentropy","ce"].indexOf(c)){const e=this.internalOutputShapes[t];let s;1===e[e.length-1]||this.lossFunctions[t]===y.a?-1!==["accuracy","acc"].indexOf(c)?i=O.a:-1!==["crossentropy","ce"].indexOf(c)&&(i=O.b):this.lossFunctions[t]===y.j?-1!==["accuracy","acc"].indexOf(c)?i=O.i:-1!==["crossentropy","ce"].indexOf(c)&&(i=O.j):-1!==["accuracy","acc"].indexOf(c)?i=O.c:-1!==["crossentropy","ce"].indexOf(c)&&(i=O.d),-1!==["accuracy","acc"].indexOf(c)?s="acc":-1!==["crossentropy","ce"].indexOf(c)&&(s="ce"),o=i,a=n+s}else{const t=O.e(c);o=t,a=n+O.f(c)}let e;Object(m.g)(a,(()=>{e=o})),s(t,a,e)}})(a[t])}})),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(t,e,n={}){const a=null==n.batchSize?32:n.batchSize;Object(B.a)(a);const s=true,i=this.standardizeUserDataXY(t,e,s,a);try{const s=i[0].concat(i[1]);this.makeTestFunction();const o=this.testFunction,c=this.testLoop(o,s,a,n.verbose,n.steps);return Object(I.m)(c)}finally{Object(B.b)(i[0],t),Object(B.b)(i[1],e)}}async evaluateDataset(t,e){return this.makeTestFunction(),Object(L.a)(this,t,e)}checkNumSamples(t,e,n,a="steps"){let s;if(null!=n){if(s=null,null!=e)throw new g.e(`If ${a} is set, batchSize must be null or undefined.Got batchSize = ${e}`)}else{if(null==t)throw new g.e(`Either the input data should have a defined shape, or ${a} shoud be specified.`);s=Array.isArray(t)?t[0].shape[0]:t.shape[0]}return s}execute(t,e){if(Array.isArray(e)&&0===e.length)throw new g.e("`outputs` is an empty Array, which is not allowed.");const n=Array.isArray(e),a=n?e:[e],s=this.retrieveSymbolicTensors(a),i=new T.a;if(t instanceof p._133&&(t=[t]),Array.isArray(t)){if(t.length!==this.inputs.length)throw new g.e(`The number of inputs provided (${t.length}) does not match the number of inputs of this model (${this.inputs.length}).`);for(let e=0;e<this.inputs.length;++e)i.add(this.inputs[e],t[e])}else for(const input of this.inputs){const e=t[input.name];if(null==e)throw new g.e(`No value is provided for the model's input ${input.name}`);i.add(input,e)}const o=Object(T.b)(s,i);return n?o:o[0]}retrieveSymbolicTensors(t){const e=Object(I.j)(null,t.length);let n=t.length;for(const a of this.layers){const s=Array.isArray(a.output)?a.output:[a.output],i=s.map((t=>t.name));for(let a=0;a<t.length;++a){const index=i.indexOf(t[a]);if(-1!==index&&(e[a]=s[index],n--),0===n)break}if(0===n)break}if(n>0){const n=[];throw e.forEach(((e,a)=>{null==e&&n.push(t[a])})),new g.e(`Cannot find SymbolicTensors for output name(s): ${JSON.stringify(n)}`)}return e}predictLoop(t,e=32,n=false){return p._394((()=>{const a=this.checkNumSamples(t);if(n)throw new g.c("Verbose predictLoop() is not implemented yet.");const s=Object(B.d)(a,e),i=this.outputs.map((t=>[]));for(let e=0;e<s.length;++e){const n=undefined;p._394((()=>{const n=s[e][0],a=s[e][1],i=Object(B.e)(t,n,a),o=[];if(Array.isArray(i))for(let t=0;t<i.length;++t)o.push({key:this.inputs[t],value:i[t]});else o.push({key:this.inputs[0],value:i});const c=new T.a(o);return Object(T.b)(this.outputs,c)})).forEach(((t,e)=>i[e].push(t)))}return Object(I.m)(i.map((t=>p._184(t,0))))}))}predict(t,e={}){const n=Object(B.c)(t);l(n,this.inputNames,this.feedInputShapes,false);try{const a=null==e.batchSize?32:e.batchSize;return Object(B.a)(a),this.predictLoop(n,a)}finally{Object(B.b)(n,t)}}predictOnBatch(t){l(t,this.inputNames,this.feedInputShapes,true);const e=(Array.isArray(t)?t[0]:t).shape[0];return this.predictLoop(t,e)}standardizeUserDataXY(t,e,n=true,a){if(null==this.optimizer_)throw new g.d("You must compile a model before training/testing. Use LayersModel.compile(modelCompileArgs).");const s=[];for(let t=0;t<this.feedOutputShapes.length;++t){const e=this.feedOutputShapes[t],n=undefined;this.feedLossFns[t]===y.j?s.push(e.slice(0,e.length-1).concat([1])):s.push(e)}if(c(t=o(t,this.feedInputNames,this.feedInputShapes,false,"input"),e=o(e,this.feedOutputNames,s,false,"target"),null),u(e,this.feedLossFns,this.feedOutputShapes),this.stateful&&null!=a&&a>0&&t[0].shape[0]%a!=0)throw new g.e(`In a stateful network, you should only pass inputs with a number of samples that is divisible by the batch size ${a}. Found: ${t[0].shape[0]} sample(s).`);return[t,e]}async standardizeUserData(t,e,n,a,s=true,i){const[o,c]=this.standardizeUserDataXY(t,e,s,i);if(null!=n)throw new Error("sample weight is not supported yet.");let u=null;if(null!=a){const t=Object(N.b)(a,this.outputNames);u=[];for(let e=0;e<t.length;++e)u.push(await Object(N.c)(c[e],null,t[e]))}return[o,c,u]}testLoop(t,e,n,a=0,s){return p._394((()=>{const i=this.checkNumSamples(e,n,s,"steps"),o=[];if(a>0)throw new g.c("Verbose mode is not implemented yet.");if(null!=s)throw new g.c("steps mode in testLoop() is not implemented yet");{const a=Object(B.d)(i,n),s=Object(p._385)(Object(C.e)(0,i));for(let n=0;n<a.length;++n){const i=a[n][0],c=a[n][1],u=f.q(s,i,c-i),l=Object(B.f)(e,u),h=t(l);if(0===n)for(let t=0;t<h.length;++t)o.push(Object(p._343)(0));for(let t=0;t<h.length;++t){const e=h[t];o[t]=p._150(o[t],p._292(c-i,e))}}for(let t=0;t<o.length;++t)o[t]=p._211(o[t],i)}return o}))}getDedupedMetricsNames(){const t=this.metricsNames,e=[];for(let n=0;n<t.length;++n){const a=t[n];let s=a;if(Object(I.e)(t,a)>1){const e=undefined;s+=`_${Object(I.e)(t.slice(0,n),a)}`}e.push(s)}return e}makeTrainFunction(){return data=>{const t=[],e=data.slice(0,this.inputs.length),n=data.slice(this.inputs.length,this.inputs.length+this.outputs.length),a=data.slice(this.inputs.length+this.outputs.length,this.inputs.length+2*this.outputs.length),s=[],i=()=>{const i=[];for(let t=0;t<this.inputs.length;++t)i.push({key:this.inputs[t],value:e[t]});const o=new T.a(i),c=Object(T.b)(this.outputs,o,{training:true});let u;for(let e=0;e<this.lossFunctions.length;++e){const s=undefined;let i=(0,this.lossFunctions[e])(n[e],c[e]);null!=a[e]&&(i=Object(N.a)(i,a[e]));const o=p._283(i);t.push(o),u=0===e?i:p._150(u,i)}for(let e=0;e<this.metricsTensors.length;++e){let a;if(this.outputs.length>1&&e<this.outputs.length)a=t[e];else{const t=this.metricsTensors[e][0],s=this.metricsTensors[e][1];a=p._283(t(n[s],c[s]))}p._257(a),s.push(a)}return u=p._283(u),this.calculateLosses().forEach((t=>{u=p._150(u,t)})),u},o=this.collectedTrainableWeights.map((t=>t.read())),c=true,u=undefined;return[this.optimizer_.minimize(i,c,o)].concat(s)}}makeTestFunction(){this.testFunction=data=>p._394((()=>{const t=[];let e;const n=data.slice(0,this.inputs.length),a=data.slice(this.inputs.length,this.inputs.length+this.outputs.length),s=[];for(let t=0;t<this.inputs.length;++t)s.push({key:this.inputs[t],value:n[t]});const i=new T.a(s),o=Object(T.b)(this.outputs,i);for(let n=0;n<this.lossFunctions.length;++n){const s=this.lossFunctions[n],i=p._283(s(a[n],o[n]));e=0===n?i:p._150(e,i),t.push(e)}for(let e=0;e<this.metricsTensors.length;++e){const n=this.metricsTensors[e][0],s=this.metricsTensors[e][1],i=p._283(n(a[s],o[s]));t.push(i)}return t}))}async fit(t,e,n={}){if(this.isTraining)throw new Error("Cannot start training because another fit() call is ongoing.");let a,s,i,o,c,u,l,h,f;this.isTraining=true;try{const m=null==n.batchSize?32:n.batchSize;Object(B.a)(m);const v=false,w=await this.standardizeUserData(t,e,n.sampleWeight,n.classWeight,v,m);a=w[0],s=w[1],f=w[2];let y=false,O;if(null!=n.validationData&&n.validationData.length>0){if(y=true,2!==n.validationData.length)throw 3===n.validationData.length?new g.c("validationData including sample weights is not supported yet."):new g.e(`When passing validation data, it must contain 2 (valX, valY) or 3 (valX, valY, valSampleWeight) items; ${n.validationData} is invalid.`);c=n.validationData[0],u=n.validationData[1];const t=true,e=await this.standardizeUserData(c,u,null,null,t,m);l=e[0],h=e[1],O=l.concat(h)}else if(null!=n.validationSplit&&n.validationSplit>0&&n.validationSplit<1){y=true;const t=Math.floor(a[0].shape[0]*(1-n.validationSplit)),e=a[0].shape[0];l=Object(B.e)(a,t,e),i=a,a=Object(B.e)(a,0,t),h=Object(B.e)(s,t,e),o=s,s=Object(B.e)(s,0,t),O=l.concat(h)}else null!=n.validationSteps&&(y=true);const x=a.concat(s).concat(f);this.checkTrainableWeightsConsistency();const A=this.makeTrainFunction(),I=this.getDedupedMetricsNames();let j,C;y?(this.makeTestFunction(),j=this.testFunction,C=I.slice().concat(I.map((t=>"val_"+t)))):(j=null,O=[],C=I.slice());const _=Object(b.g)(n.callbacks,n.yieldEvery),k=undefined;return await this.fitLoop(A,x,I,m,n.epochs,n.verbose,_,j,O,n.shuffle,C,n.initialEpoch,null,null)}finally{this.isTraining=false,Object(B.b)(a,t),Object(B.b)(s,e),Object(B.b)(i,t),Object(B.b)(o,e),Object(B.b)(l,c),Object(B.b)(h,u),null!=f&&p._209(f)}}async fitLoop(t,e,n,a,s,i,o,c,u,l,h,m,v,y){null==a&&(a=32),null==s&&(s=1),null==l&&(l=true),null==m&&(m=0);let O=false;if(null!=c&&null!=u&&(O=true),null!=y&&(O=true,null==v))throw new g.e("Can only use `validationSteps` when doing step-wise training, i.e., `stepsPerEpoch` must be set.");const x=this.checkNumSamples(e,a,v,"steps_per_epoch");let A;null!=x&&(A=Object(C.e)(0,x)),null==i&&(i=1);const{callbackList:I,history:j}=Object(b.f)(o,i,s,m,x,v,a,O,h);I.setModel(this),this.history=j,await I.onTrainBegin(),this.stopTraining_=false;for(let i=m;i<s;++i){await I.onEpochBegin(i);const s={};if(null!=v)throw new g.c("stepsPerEpoch mode is not implemented yet.");{if("batch"===l)throw new g.c("batch shuffling is not implemneted yet");l&&p._408.shuffle(A);const i=Object(p._385)(A),o=Object(B.d)(x,a);for(let l=0;l<o.length;++l){const h={};if(await I.onBatchBegin(l,h),p._394((()=>{const b=o[l][0],m=o[l][1],g=f.q(i,b,m-b);h.batch=l,h.size=m-b;const v=Object(B.f)(e,g),w=t(v);for(let t=0;t<n.length;++t){const e=n[t],a=w[t];h[e]=a,p._257(a)}if(l===o.length-1&&O){const t=this.testLoop(c,u,a);for(let e=0;e<n.length;++e){const a=n[e],i=t[e];p._257(i),s["val_"+a]=i}}})),await I.onBatchEnd(l,h),Object(w.a)(h),this.stopTraining_)break}i.dispose()}if(await I.onEpochEnd(i,s),this.stopTraining_)break}return await I.onTrainEnd(),await this.history.syncData(),this.history}async fitDataset(t,e){return Object(L.b)(this,t,e)}async trainOnBatch(t,e){const n=await this.standardizeUserData(t,e),a=n[0],s=n[1],i=undefined,o=this.makeTrainFunction()(a.concat(s)),c=[];for(const t of o){const e=await t.data();c.push(e[0])}return p._209(o),Object(B.b)(n[0],t),Object(B.b)(n[1],e),Object(I.m)(c)}getNamedWeights(t){const e=[],n=null!=t&&t.trainableOnly,a=n?this.trainableWeights:this.weights,s=this.getWeights(n);for(let t=0;t<a.length;++t)n&&!a[t].trainable||e.push({name:a[t].originalName,tensor:s[t]});return e}set stopTraining(t){this.stopTraining_=t}get stopTraining(){return this.stopTraining_}get optimizer(){return this.optimizer_}set optimizer(t){this.optimizer_!==t&&(this.optimizer_=t,this.isOptimizerOwned=false)}dispose(){const t=super.dispose();if(0===t.refCountAfterDispose&&null!=this.optimizer&&this.isOptimizerOwned){const e=p._284().numTensors;this.optimizer_.dispose(),t.numDisposedVariables+=e-p._284().numTensors}return t}getLossIdentifiers(){let t;if("string"==typeof this.loss)t=Object(I.p)(this.loss);else if(Array.isArray(this.loss)){for(const t of this.loss)if("string"!=typeof t)throw new Error("Serialization of non-string loss is not supported.");t=this.loss.map((t=>Object(I.p)(t)))}else{const e=Object.keys(this.loss);t={};const n=this.loss;for(const a of e){if("string"!=typeof n[a])throw new Error("Serialization of non-string loss is not supported.");t[a]=Object(I.p)(n[a])}}return t}getMetricIdentifiers(){if("string"==typeof this.metrics||"function"==typeof this.metrics)return[Object(I.p)(O.f(this.metrics))];if(Array.isArray(this.metrics))return this.metrics.map((t=>Object(I.p)(O.f(t))));{const t={};for(const e in this.metrics)t[e]=Object(I.p)(O.f(this.metrics[e]));return t}}getTrainingConfig(){return{loss:this.getLossIdentifiers(),metrics:this.getMetricIdentifiers(),optimizer_config:{class_name:this.optimizer.getClassName(),config:this.optimizer.getConfig()}}}loadTrainingConfig(t){if(null!=t.weighted_metrics)throw new Error("Loading weight_metrics is not supported yet.");if(null!=t.loss_weights)throw new Error("Loading loss_weights is not supported yet.");if(null!=t.sample_weight_mode)throw new Error("Loading sample_weight_mode is not supported yet.");const e=Object(_.a)(t.optimizer_config),n=Object(v.a)(e);let a,s;if("string"==typeof t.loss)a=Object(I.n)(t.loss);else if(Array.isArray(t.loss))a=t.loss.map((t=>Object(I.n)(t)));else if(null!=t.loss){a={};for(const e in t.loss)a[e]=Object(I.n)(t.loss[e])}if(Array.isArray(t.metrics))s=t.metrics.map((t=>Object(I.n)(t)));else if(null!=t.metrics){s={};for(const e in t.metrics)s[e]=Object(I.n)(t.metrics[e])}this.compile({loss:a,metrics:s,optimizer:n})}async save(t,e){if("string"==typeof t){const handlers=p._252.getSaveHandlers(t);if(0===handlers.length)throw new g.e(`Cannot find any save handlers for URL '${t}'`);if(handlers.length>1)throw new g.e(`Found more than one (${handlers.length}) save handlers for URL '${t}'`);t=handlers[0]}if(null==t.save)throw new g.e("LayersModel.save() cannot proceed because the IOHandler provided does not have the `save` attribute defined.");const n=await p._252.encodeWeights(this.getNamedWeights(e)),a=false,s=null,i=undefined,o={modelTopology:this.toJSON(s,a),format:E,generatedBy:`TensorFlow.js tfjs-layers v${k.a}`,convertedBy:null},c=undefined;if(null!=e&&e.includeOptimizer&&null!=this.optimizer){o.trainingConfig=this.getTrainingConfig();const t="optimizer",{data:e,specs:a}=await p._252.encodeWeights(await this.optimizer.getWeights(),t);n.specs.push(...a),n.data=p._252.concatenateArrayBuffers([n.data,e])}if(null!=this.userDefinedMetadata){const t=true;Object(A.a)(this.userDefinedMetadata,this.name,t),o.userDefinedMetadata=this.userDefinedMetadata}return o.weightData=n.data,o.weightSpecs=n.specs,t.save(o)}setUserDefinedMetadata(t){Object(A.a)(t,this.name),this.userDefinedMetadata=t}getUserDefinedMetadata(){return this.userDefinedMetadata}}M.className="Model",p._349.registerClass(M);class F extends M{}F.className="Functional",p._349.registerClass(F)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
async function a(t,e){"modelTopology"in t||(t={modelTopology:t});let n=(t=t).modelTopology;null!=n.model_config&&(n=n.model_config);const a=Object(g.a)(n),model=Object(b.a)(a,e);if(null!=t.weightsManifest){const e=await c._252.loadWeights(t.weightsManifest,t.pathPrefix,model.weights.map((t=>t.originalName))),n={};for(const t of model.weights)n[t.originalName]=e[t.originalName];model.loadWeights(n),Object(c._209)(e)}return model}async function s(t,e){if(null==e&&(e={}),"string"==typeof t){const handlers=c._252.getLoadHandlers(t,e);if(0===handlers.length)handlers.push(c._252.browserHTTPRequest(t,e));else if(handlers.length>1)throw new f.e(`Found more than one (${handlers.length}) load handlers for URL '${t}'`);t=handlers[0]}return i(t,void 0,e)}async function i(t,e,n){if(null==n&&(n={}),null==t.load)throw new f.e("Cannot proceed with model loading because the IOHandler provided does not have the `load` method implemented.");const a=await t.load();let s=a.modelTopology;null!=s.model_config&&(s=s.model_config);const i=null==n.strict||n.strict,u=null!=a.weightData&&null!=a.weightSpecs&&i,model=Object(b.a)(Object(g.a)(s),e,u),l=a.trainingConfig;if(null!=l&&model.loadTrainingConfig(l),null!=a.userDefinedMetadata&&model.setUserDefinedMetadata(a.userDefinedMetadata),null!=a.weightData){if(null==a.weightSpecs)throw new f.e("LayersModel artifacts contains weight data, but not weight specs. Therefore loading of weights cannot proceed.");const{modelWeights:t,optimizerWeights:e}=o(a.weightData,a.weightSpecs);model.loadWeights(t,i),null!=model.optimizer&&e.length>0&&await model.optimizer.setWeights(e),Object(c._209)(t),Object(c._209)(e.map((t=>t.tensor)))}return model}function o(t,e){const n=c._252.decodeWeights(t,e),a={},s=[];return e.forEach((t=>{"optimizer"===t.group?s.push({name:t.name,tensor:n[t.name]}):a[t.name]=n[t.name]})),{modelWeights:a,optimizerWeights:s}}e.c=a,e.b=s,n.d(e,"a",(function(){return w}));var c=n(0),u=n(124),l=n(123),h=n(25),p=n(158),f=n(15),b=n(126),m=n(24),g=n(211),v=n(29);class w extends p.a{constructor(t){if(super({inputs:[],outputs:[]}),t=t||{},this.trainable=true,this.built=false,this.name=null!=t.name?t.name:Object(u.b)("sequential_"),null!=t.layers)for(const e of t.layers)this.add(e)}checkShape(t){const shape=undefined;if(t.inboundNodes[0].outputTensors[0].shape.some((t=>t<0)))throw new f.e(`Negative dimension size caused by adding layer ${t.name} with input shape [${t.inboundNodes[0].inputTensors[0].shape}]`)}add(t){const e=t instanceof w||t instanceof p.a;let n;if(e){if(n=t,1!==n.outputs.length)throw new f.e("All layers in a Sequential model should have a single output tensor. For multi-output layers, use the functional API.");if(1!==n.inputs.length)throw new f.e("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===t.inboundNodes.length){if(null==t.batchInputShape)throw new f.e("The first layer in a Sequential model must get an `inputShape` or `batchInputShape` argument.");const e=Object(l.a)({batchShape:t.batchInputShape,dtype:t.dtype,name:t.name+"_input"});t.apply(e)}if(e)this.outputs=n.outputs,this.inputs=n.inputs;else{if(1!==t.inboundNodes.length)throw new f.e(`A layer added to a Sequential model must not already be connected somewhere else. LayersModel received layer ${t.name} which has ${t.inboundNodes.length} pre-existing inbound connections.`);if(1!==t.inboundNodes[0].outputTensors.length)throw new f.e("All layers in a Sequential model should have a single output tensor. For multi-output layers, use the functional API.");this.checkShape(t),this.outputs=[t.inboundNodes[0].outputTensors[0]],this.inputs=Object(h.e)(this.outputs[0])}this.inboundNodes=[],new h.c({outboundLayer:this,inboundLayers:[],nodeIndices:[],tensorIndices:[],inputTensors:this.inputs,outputTensors:this.outputs,inputMasks:m.j(null,this.inputs.length),outputMasks:[null],inputShapes:this.inputs.map((t=>t.shape)),outputShapes:this.outputs[0].shape})}else{const e=t.apply(this.outputs[0]);if(Array.isArray(e))throw new TypeError("All layers in a Sequential model should have a single output tensor. For multi-output layers, use the functional API.");this.checkShape(t),this.outputs=[e],this.inboundNodes[0].outputTensors=this.outputs,this.inboundNodes[0].outputShapes=[this.outputs[0].shape]}this.layers.push(t),this.built=false}pop(){if(0===this.layers.length)throw new TypeError("There are no layers in the model.");if(this.layers.pop(),0===this.layers.length)this.outputs=[],this.inboundNodes=[],this.outboundNodes=[];else{const t=this.layers.length-1;this.layers[t].outboundNodes=[],this.outputs=[this.layers[t].output],this.inboundNodes[0].outputTensors=this.outputs,this.inboundNodes[0].outputShapes=[this.outputs[0].shape]}}call(t,e){return null==this.model&&this.build(),this.model.call(t,e)}build(t){if(Object(v.a)(t),0===this.inputs.length||0===this.outputs.length)throw new TypeError("Sequential model cannot be built: model is empty. Add some layers first.");this.model=new p.a({inputs:this.inputs,outputs:this.outputs[0],name:this.name+"_model"}),this.model.trainable=this.trainable,this.supportsMasking=this.model.supportsMasking,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=true}countParams(){return this.built||this.build(),super.countParams()}summary(t,e,n=console.log){this.built||this.build(),super.summary(t,e,n)}setWeights(t){null==this.model&&this.build(),this.model.setWeights(t)}evaluate(t,e,n={}){if(!this.built)throw new f.d("The model needs to be compiled before being used.");return this.model.evaluate(t,e,n)}async evaluateDataset(t,e){if(!this.built)throw new f.d("The model needs to be compiled before being used.");return this.model.evaluateDataset(t,e)}predict(t,e={}){return null==this.model&&this.build(),this.model.predict(t,e)}predictOnBatch(t){return null==this.model&&this.build(),this.model.predictOnBatch(t)}compile(t){this.build(),this.model.compile(t),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(t){this.model.optimizer=t}async fit(t,e,n={}){if(!this.built)throw new f.d("The model needs to be compiled before being used.");return this.model.fit(t,e,n)}async fitDataset(t,e){if(!this.built)throw new f.d("The model needs to be compiled before being used.");return this.model.fitDataset(t,e)}async trainOnBatch(t,e){return this.model.trainOnBatch(t,e)}static fromConfig(t,e,n={},a=false){let s,i={};if(e instanceof Array){if(!(null!=e[0].className)||"Merge"===e[0].className)throw new f.e("Legacy serialization format not supported yet.");s=e}else c._408.assert(null!=e.layers,(()=>"When the config data for a Sequential model is not an Array, it must be an Object that contains the 'layers' field.")),s=e.layers,delete e.layers,i=e;const model=new t(i);if(!(model instanceof w))throw new f.c(`Sequential.fromConfig called on non-Sequential input: ${model}`);for(const t of s){const e=void 0,n=Object(b.a)(t,e,a);a&&n.setFastWeightInitDuringBuild(true),model.add(n)}return model}set stopTraining(t){if(null==this.model)throw new f.e("Cannot set the stopTraining property of a sequential model before it is compiled.");this.model.stopTraining=t}get stopTraining(){if(null==this.model)throw new f.e("Cannot get the stopTraining property of a sequential model before it is compiled.");return this.model.stopTraining}getConfig(){const t=[];for(const e of this.layers){const n={};n.className=e.getClassName(),n.config=e.getConfig(),t.push(n)}return{name:this.name,layers:t}}}w.className="Sequential",c._349.registerClass(w)},function(t,e,n){"use strict";function a(t){return t.getClassName()}function s(t,e={}){return Object(u.g)(t,o._349.SerializationMap.getMap().classNameMap,e,"activation")}function i(t){if(null==t){const t={className:"linear",config:{}};return s(t)}if("string"==typeof t){const e={};return e.className=t,e.config={},s(e)}return t instanceof l?t:s(t)}n.d(e,"a",(function(){return x})),e.c=a,e.b=i;var o=n(0),c=n(32),u=n(24);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class l extends o._349.Serializable{getConfig(){return{}}}class h extends l{apply(t,e=1){return c.h(t,e)}}h.className="elu",o._349.registerClass(h);class p extends l{apply(t){return o._347(t)}}p.className="selu",o._349.registerClass(p);class f extends l{apply(t){return o._331(t)}}f.className="relu",o._349.registerClass(f);class b extends l{apply(t){return Object(o._394)((()=>o._287(6,o._331(t))))}}b.className="relu6",o._349.registerClass(b);class m extends l{apply(t){return t}}m.className="linear",o._349.registerClass(m);class g extends l{apply(t){return o._353(t)}}g.className="sigmoid",o._349.registerClass(g);class v extends l{apply(t){return c.l(t)}}v.className="hardSigmoid",o._349.registerClass(v);class w extends l{apply(t){return o._365(t)}}w.className="softplus",o._349.registerClass(w);class y extends l{apply(t){return c.r(t)}}y.className="softsign",o._349.registerClass(y);class O extends l{apply(t){return o._383(t)}}O.className="tanh",o._349.registerClass(O);class x extends l{apply(t,e=-1){return o._364(t,e)}}x.className="softmax",o._349.registerClass(x);class A extends l{apply(t,e=-1){return o._268(t,e)}}A.className="logSoftmax",o._349.registerClass(A);class I extends l{apply(t,e=1){return Object(o._394)((()=>o._292(o._353(o._292(t,e)),t)))}}I.className="swish",o._349.registerClass(I);class j extends l{apply(t){return Object(o._394)((()=>o._292(t,o._383(o._365(t)))))}}j.className="mish",o._349.registerClass(j)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e,n){if("number"==typeof t)return Object(c.j)(t,e);if(t.length!==e)throw new o.e(`The ${n} argument must be an integer or tuple of ${e} integers. Received: ${t.length} elements.`);for(let a=0;a<e;++a){const s=t[a];if(!Object(u.b)(s))throw new o.e(`The ${n} argument must be an integer or tuple of ${e} integers. Received: ${JSON.stringify(t)} including a non-integer number ${s}`)}return t}function s(t,e,n,a,s=1){if(null==t)return t;const i=undefined;let o;return o="same"===n?t:t-(e+(e-1)*(s-1))+1,Math.floor((o+a-1)/a)}function i(t,e,n,a){if(null==t)return null;if("valid"===a)t=t*e+Object(u.c)([n-e,0]);else{if("same"!==a)throw new o.e(`Unsupport padding mode: ${a}.`);t*=e}return t}e.c=a,e.a=s,e.b=i;var o=n(15),c=n(24),u=n(72)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e,n,a){function s(t){return null==t||Array.isArray(t)?t:[t]}if(Array.isArray(t)){if(null!=e||null!=n)throw new f.e("When inputs is an array, neither initialState or constants should be provided");null!=a&&(n=t.slice(t.length-a,t.length),t=t.slice(0,t.length-a)),t.length>1&&(e=t.slice(1,t.length)),t=t[0]}return{inputs:t,initialState:e=s(e),constants:n=s(n)}}function s(t,e,n,a=false,s,i,c=false,u=false){return o._394((()=>{const l=e.shape.length;if(l<3)throw new f.e(`Input should be at least 3D, but is ${l}D.`);const h=[1,0].concat(v.e(2,l));if(e=o._399(e,h),null!=i)throw new f.c("The rnn() functoin of the deeplearn.js backend does not support constants yet.");c&&console.warn("Backend rnn(): the unroll = true option is not applicable to the imperative deeplearn.js backend."),null!=s&&((s=o._179(o._179(s,"bool"),"float32")).rank===l-1&&(s=o._227(s,-1)),s=o._399(s,h)),a&&(e=o._335(e,0),null!=s&&(s=o._335(s,0)));const p=[];let b,m=n;const g=e.shape[0],w=o._405(e);let y,O;null!=s&&(y=o._405(s));for(let e=0;e<g;++e){const n=w[e],a=o._394((()=>t(n,m)));if(null==s)b=a[0],m=a[1];else{const t=o._394((()=>{const t=y[e],n=o._379(o._301(t),t),s=undefined,i=undefined;return{output:o._150(o._292(a[0],t),o._292(m[0],n)),newStates:m.map(((state,e)=>o._150(o._292(a[1][e],t),o._292(state,n))))}}));b=t.output,m=t.newStates}u&&p.push(b)}if(u){const t=1;O=o._375(p,t)}return[b,O,m]}))}function i(t){const{ones:e,rate:n,training:a=false,count:s=1,dropoutFunc:i}=t,c=()=>null!=i?i(e(),n):u.g(e(),n),l=()=>u.m(c,e,a);if(!s||s<=1)return o._257(l().clone());const h=undefined;return Array(s).fill(void 0).map(l).map((t=>o._257(t.clone())))}e.l=a,e.k=s,n.d(e,"e",(function(){return x})),n.d(e,"h",(function(){return I})),n.d(e,"g",(function(){return j})),n.d(e,"b",(function(){return C})),n.d(e,"a",(function(){return _})),n.d(e,"d",(function(){return k})),n.d(e,"c",(function(){return S})),n.d(e,"i",(function(){return T})),e.j=i;var o=n(0),c=n(160),u=n(32),l=n(51),h=n(74),p=n(25),f=n(15),b=n(58),m=n(64),g=n(24),v=n(72),w=n(29),y=n(156),O=n(126);class x extends p.b{constructor(t){let cell;if(super(t),null==t.cell)throw new f.e("cell property is missing for the constructor of RNN.");if(cell=Array.isArray(t.cell)?new T({cells:t.cell}):t.cell,null==cell.stateSize)throw new f.e("The RNN cell should have an attribute `stateSize` (tuple of integers, one integer per RNN state).");this.cell=cell,this.returnSequences=null!=t.returnSequences&&t.returnSequences,this.returnState=null!=t.returnState&&t.returnState,this.goBackwards=null!=t.goBackwards&&t.goBackwards,this._stateful=null!=t.stateful&&t.stateful,this.unroll=null!=t.unroll&&t.unroll,this.supportsMasking=true,this.inputSpec=[new p.a({ndim:3})],this.stateSpec=null,this.states_=null,this.numConstants=null,this.keptStates=[]}getStates(){if(null==this.states_){const t=Array.isArray(this.cell.stateSize)?this.cell.stateSize.length:1;return v.e(0,t).map((t=>null))}return this.states_}setStates(t){this.states_=t}computeOutputShape(t){Object(w.c)(t)&&(t=t[0]),t=t;let e=this.cell.stateSize;Array.isArray(e)||(e=[e]);const n=e[0];let a;if(a=this.returnSequences?[t[0],t[1],n]:[t[0],n],this.returnState){const n=[];for(const a of e)n.push([t[0],a]);return[a].concat(n)}return a}computeMask(t,e){return o._394((()=>{Array.isArray(e)&&(e=e[0]);const t=this.returnSequences?e:null;if(this.returnState){const e=this.states.map((t=>null));return[t].concat(e)}return t}))}get states(){if(null==this.states_){const t=Array.isArray(this.cell.stateSize)?this.cell.stateSize.length:1,e=[];for(let n=0;n<t;++n)e.push(null);return e}return this.states_}set states(t){this.states_=t}build(t){const e=null;if(null!=this.numConstants)throw new f.c("Constants support is not implemented in RNN yet.");Object(w.c)(t)&&(t=t[0]),t=t;const n=this.stateful?t[0]:null,a=t.slice(2);this.inputSpec[0]=new p.a({shape:[n,null,...a]});const s=[t[0]].concat(t.slice(2));let i;if(false,this.cell.build(s),i=Array.isArray(this.cell.stateSize)?this.cell.stateSize:[this.cell.stateSize],null!=this.stateSpec){if(!o._408.arraysEqual(this.stateSpec.map((t=>t.shape[t.shape.length-1])),i))throw new f.e(`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=i.map((t=>new p.a({shape:[null,t]})));this.stateful&&this.resetStates()}resetStates(t,e=false){Object(o._394)((()=>{if(!this.stateful)throw new f.b("Cannot call resetStates() on an RNN Layer that is not stateful.");const n=this.inputSpec[0].shape[0];if(null==n)throw new f.e("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((t=>o._416([n,t]))):this.states_=[o._416([n,this.cell.stateSize])];else if(null==t)o._209(this.states_),null!=this.keptStates&&(o._209(this.keptStates),this.keptStates=[]),Array.isArray(this.cell.stateSize)?this.states_=this.cell.stateSize.map((t=>o._416([n,t]))):this.states_[0]=o._416([n,this.cell.stateSize]);else{if(Array.isArray(t)||(t=[t]),t.length!==this.states_.length)throw new f.e(`Layer ${this.name} expects ${this.states_.length} state(s), but it received ${t.length} state value(s). Input received: ${t}`);true===e?this.keptStates.push(this.states_.slice()):o._209(this.states_);for(let index=0;index<this.states_.length;++index){const e=t[index],a=Array.isArray(this.cell.stateSize)?this.cell.stateSize[index]:this.cell.stateSize,s=[n,a];if(!o._408.arraysEqual(e.shape,s))throw new f.e(`State ${index} is incompatible with layer ${this.name}: expected shape=${s}, received shape=${e.shape}`);this.states_[index]=e}}this.states_=this.states_.map((state=>o._257(state.clone())))}))}apply(t,e){let n=null==e?null:e.initialState,s=null==e?null:e.constants;null==e&&(e={});const i=a(t,n,s,this.numConstants);t=i.inputs,n=i.initialState,s=i.constants;let o=[],c=[];if(null!=n){e.initialState=n,o=o.concat(n),this.stateSpec=[];for(const state of n)this.stateSpec.push(new p.a({shape:state.shape}));c=c.concat(this.stateSpec)}null!=s&&(e.constants=s,o=o.concat(s),this.numConstants=s.length);const u=undefined;if(o[0]instanceof p.d){const n=[t].concat(o),a=this.inputSpec.concat(c),s=this.inputSpec;this.inputSpec=a;const i=super.apply(n,e);return this.inputSpec=s,i}return super.apply(t,e)}call(t,e){return Object(o._394)((()=>{const n=null==e?null:e.mask,a=null==e?null:e.training;let i=null==e?null:e.initialState;t=Object(w.b)(t),null==i&&(i=this.stateful?this.states_:this.getInitialState(t));const o=Array.isArray(this.cell.stateSize)?this.cell.stateSize.length:1;if(i.length!==o)throw new f.e(`RNN Layer has ${o} state(s) but was passed ${i.length} initial state(s).`);this.unroll&&console.warn("Ignoring unroll = true for RNN layer, due to imperative backend.");const c={training:a},u=(t,e)=>{const n=this.cell.call([t].concat(e),c);return[n[0],n.slice(1)]},l=s(u,t,i,this.goBackwards,n,null,this.unroll,this.returnSequences),h=l[0],p=l[1],b=l[2];this.stateful&&this.resetStates(b,a);const m=this.returnSequences?p:h;return this.returnState?[m].concat(b):m}))}getInitialState(t){return Object(o._394)((()=>{let e=o._416(t.shape);return e=o._380(e,[1,2]),e=u.i(e),Array.isArray(this.cell.stateSize)?this.cell.stateSize.map((t=>t>1?u.t(e,[1,t]):e)):this.cell.stateSize>1?[u.t(e,[1,this.cell.stateSize])]:[e]}))}get trainableWeights(){return this.trainable?this.cell.trainableWeights:[]}get nonTrainableWeights(){return this.trainable?this.cell.nonTrainableWeights:this.cell.weights}setFastWeightInitDuringBuild(t){super.setFastWeightInitDuringBuild(t),null!=this.cell&&this.cell.setFastWeightInitDuringBuild(t)}getConfig(){const t=super.getConfig(),e={returnSequences:this.returnSequences,returnState:this.returnState,goBackwards:this.goBackwards,stateful:this.stateful,unroll:this.unroll};null!=this.numConstants&&(e.numConstants=this.numConstants);const n=this.cell.getConfig();return this.getClassName()===x.className&&(e.cell={className:this.cell.getClassName(),config:n}),Object.assign(Object.assign(Object.assign({},n),t),e)}static fromConfig(t,e,n={}){const a=e.cell,cell=Object(O.a)(a,n);return new t(Object.assign(e,{cell:cell}))}}x.className="RNN",o._349.registerClass(x);class A extends p.b{}e.f=A;class I extends A{constructor(t){super(t),this.DEFAULT_ACTIVATION="tanh",this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_RECURRENT_INITIALIZER="orthogonal",this.DEFAULT_BIAS_INITIALIZER="zeros",this.units=t.units,Object(g.b)(this.units,"units"),this.activation=Object(c.b)(null==t.activation?this.DEFAULT_ACTIVATION:t.activation),this.useBias=null==t.useBias||t.useBias,this.kernelInitializer=Object(b.q)(t.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.recurrentInitializer=Object(b.q)(t.recurrentInitializer||this.DEFAULT_RECURRENT_INITIALIZER),this.biasInitializer=Object(b.q)(t.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.kernelRegularizer=Object(m.b)(t.kernelRegularizer),this.recurrentRegularizer=Object(m.b)(t.recurrentRegularizer),this.biasRegularizer=Object(m.b)(t.biasRegularizer),this.kernelConstraint=Object(h.e)(t.kernelConstraint),this.recurrentConstraint=Object(h.e)(t.recurrentConstraint),this.biasConstraint=Object(h.e)(t.biasConstraint),this.dropout=v.d([1,v.c([0,null==t.dropout?0:t.dropout])]),this.recurrentDropout=v.d([1,v.c([0,null==t.recurrentDropout?0:t.recurrentDropout])]),this.dropoutFunc=t.dropoutFunc,this.stateSize=this.units,this.dropoutMask=null,this.recurrentDropoutMask=null}build(t){t=Object(w.a)(t),this.kernel=this.addWeight("kernel",[t[t.length-1],this.units],null,this.kernelInitializer,this.kernelRegularizer,true,this.kernelConstraint),this.recurrentKernel=this.addWeight("recurrent_kernel",[this.units,this.units],null,this.recurrentInitializer,this.recurrentRegularizer,true,this.recurrentConstraint),this.useBias?this.bias=this.addWeight("bias",[this.units],null,this.biasInitializer,this.biasRegularizer,true,this.biasConstraint):this.bias=null,this.built=true}call(t,e){return Object(o._394)((()=>{if(2!==(t=t).length)throw new f.e(`SimpleRNNCell expects 2 input Tensors, got ${t.length}.`);let n=t[1];t=t[0];const a=null!=e.training&&e.training;let s;0<this.dropout&&this.dropout<1&&null==this.dropoutMask&&(this.dropoutMask=i({ones:()=>o._301(t),rate:this.dropout,training:a,dropoutFunc:this.dropoutFunc})),0<this.recurrentDropout&&this.recurrentDropout<1&&null==this.recurrentDropoutMask&&(this.recurrentDropoutMask=i({ones:()=>o._301(n),rate:this.recurrentDropout,training:a,dropoutFunc:this.dropoutFunc}));const c=this.dropoutMask,l=this.recurrentDropoutMask;s=null!=c?u.f(o._292(t,c),this.kernel.read()):u.f(t,this.kernel.read()),null!=this.bias&&(s=u.b(s,this.bias.read())),null!=l&&(n=o._292(n,l));let h=o._150(s,u.f(n,this.recurrentKernel.read()));return null!=this.activation&&(h=this.activation.apply(h)),[h,h]}))}getConfig(){const t=super.getConfig(),e={units:this.units,activation:Object(c.c)(this.activation),useBias:this.useBias,kernelInitializer:Object(b.r)(this.kernelInitializer),recurrentInitializer:Object(b.r)(this.recurrentInitializer),biasInitializer:Object(b.r)(this.biasInitializer),kernelRegularizer:Object(m.e)(this.kernelRegularizer),recurrentRegularizer:Object(m.e)(this.recurrentRegularizer),biasRegularizer:Object(m.e)(this.biasRegularizer),activityRegularizer:Object(m.e)(this.activityRegularizer),kernelConstraint:Object(h.f)(this.kernelConstraint),recurrentConstraint:Object(h.f)(this.recurrentConstraint),biasConstraint:Object(h.f)(this.biasConstraint),dropout:this.dropout,recurrentDropout:this.recurrentDropout};return Object.assign(Object.assign({},t),e)}}I.className="SimpleRNNCell",o._349.registerClass(I);class j extends x{constructor(t){t.cell=new I(t),super(t)}call(t,e){return Object(o._394)((()=>{null!=this.cell.dropoutMask&&(o._209(this.cell.dropoutMask),this.cell.dropoutMask=null),null!=this.cell.recurrentDropoutMask&&(o._209(this.cell.recurrentDropoutMask),this.cell.recurrentDropoutMask=null);const n=null==e?null:e.mask,a=null==e?null:e.training,s=null==e?null:e.initialState;return super.call(t,{mask:n,training:a,initialState:s})}))}static fromConfig(t,e){return new t(e)}}j.className="SimpleRNN",o._349.registerClass(j);class C extends A{constructor(t){if(super(t),this.DEFAULT_ACTIVATION="tanh",this.DEFAULT_RECURRENT_ACTIVATION="hardSigmoid",this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_RECURRENT_INITIALIZER="orthogonal",this.DEFAULT_BIAS_INITIALIZER="zeros",t.resetAfter)throw new f.e("GRUCell does not support reset_after parameter set to true.");this.units=t.units,Object(g.b)(this.units,"units"),this.activation=Object(c.b)(void 0===t.activation?this.DEFAULT_ACTIVATION:t.activation),this.recurrentActivation=Object(c.b)(void 0===t.recurrentActivation?this.DEFAULT_RECURRENT_ACTIVATION:t.recurrentActivation),this.useBias=null==t.useBias||t.useBias,this.kernelInitializer=Object(b.q)(t.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.recurrentInitializer=Object(b.q)(t.recurrentInitializer||this.DEFAULT_RECURRENT_INITIALIZER),this.biasInitializer=Object(b.q)(t.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.kernelRegularizer=Object(m.b)(t.kernelRegularizer),this.recurrentRegularizer=Object(m.b)(t.recurrentRegularizer),this.biasRegularizer=Object(m.b)(t.biasRegularizer),this.kernelConstraint=Object(h.e)(t.kernelConstraint),this.recurrentConstraint=Object(h.e)(t.recurrentConstraint),this.biasConstraint=Object(h.e)(t.biasConstraint),this.dropout=v.d([1,v.c([0,null==t.dropout?0:t.dropout])]),this.recurrentDropout=v.d([1,v.c([0,null==t.recurrentDropout?0:t.recurrentDropout])]),this.dropoutFunc=t.dropoutFunc,this.implementation=t.implementation,this.stateSize=this.units,this.dropoutMask=null,this.recurrentDropoutMask=null}build(t){const e=(t=Object(w.a)(t))[t.length-1];this.kernel=this.addWeight("kernel",[e,3*this.units],null,this.kernelInitializer,this.kernelRegularizer,true,this.kernelConstraint),this.recurrentKernel=this.addWeight("recurrent_kernel",[this.units,3*this.units],null,this.recurrentInitializer,this.recurrentRegularizer,true,this.recurrentConstraint),this.useBias?this.bias=this.addWeight("bias",[3*this.units],null,this.biasInitializer,this.biasRegularizer,true,this.biasConstraint):this.bias=null,this.built=true}call(t,e){return Object(o._394)((()=>{if(2!==(t=t).length)throw new f.e(`GRUCell expects 2 input Tensors (inputs, h, c), got ${t.length}.`);const n=null!=e.training&&e.training;let a=t[1];t=t[0],0<this.dropout&&this.dropout<1&&null==this.dropoutMask&&(this.dropoutMask=i({ones:()=>o._301(t),rate:this.dropout,training:n,count:3,dropoutFunc:this.dropoutFunc})),0<this.recurrentDropout&&this.recurrentDropout<1&&null==this.recurrentDropoutMask&&(this.recurrentDropoutMask=i({ones:()=>o._301(a),rate:this.recurrentDropout,training:n,count:3,dropoutFunc:this.dropoutFunc}));const s=this.dropoutMask,c=this.recurrentDropoutMask;let l,r,h;0<this.dropout&&this.dropout<1&&(t=o._292(t,s[0]));let p=u.f(t,this.kernel.read());this.useBias&&(p=u.b(p,this.bias.read())),0<this.recurrentDropout&&this.recurrentDropout<1&&(a=o._292(a,c[0]));const b=this.recurrentKernel.read(),[m,g]=o._370(b,[2*this.units,this.units],b.rank-1),v=u.f(a,m),[w,y,O]=o._370(p,3,p.rank-1),[x,A]=o._370(v,2,v.rank-1);l=this.recurrentActivation.apply(o._150(w,x)),r=this.recurrentActivation.apply(o._150(y,A));const I=u.f(o._292(r,a),g);h=this.activation.apply(o._150(O,I));const j=o._150(o._292(l,a),o._292(o._150(1,o._295(l)),h));return[j,j]}))}getConfig(){const t=super.getConfig(),e={units:this.units,activation:Object(c.c)(this.activation),recurrentActivation:Object(c.c)(this.recurrentActivation),useBias:this.useBias,kernelInitializer:Object(b.r)(this.kernelInitializer),recurrentInitializer:Object(b.r)(this.recurrentInitializer),biasInitializer:Object(b.r)(this.biasInitializer),kernelRegularizer:Object(m.e)(this.kernelRegularizer),recurrentRegularizer:Object(m.e)(this.recurrentRegularizer),biasRegularizer:Object(m.e)(this.biasRegularizer),activityRegularizer:Object(m.e)(this.activityRegularizer),kernelConstraint:Object(h.f)(this.kernelConstraint),recurrentConstraint:Object(h.f)(this.recurrentConstraint),biasConstraint:Object(h.f)(this.biasConstraint),dropout:this.dropout,recurrentDropout:this.recurrentDropout,implementation:this.implementation,resetAfter:false};return Object.assign(Object.assign({},t),e)}}C.className="GRUCell",o._349.registerClass(C);class _ extends x{constructor(t){0===t.implementation&&console.warn("`implementation=0` has been deprecated, and now defaults to `implementation=1`. Please update your layer call."),t.cell=new C(t),super(t)}call(t,e){return Object(o._394)((()=>{null!=this.cell.dropoutMask&&(o._209(this.cell.dropoutMask),this.cell.dropoutMask=null),null!=this.cell.recurrentDropoutMask&&(o._209(this.cell.recurrentDropoutMask),this.cell.recurrentDropoutMask=null);const n=null==e?null:e.mask,a=null==e?null:e.training,s=null==e?null:e.initialState;return super.call(t,{mask:n,training:a,initialState:s})}))}static fromConfig(t,e){return 0===e.implmentation&&(e.implementation=1),new t(e)}}_.className="GRU",o._349.registerClass(_);class k extends A{constructor(t){super(t),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=t.units,Object(g.b)(this.units,"units"),this.activation=Object(c.b)(void 0===t.activation?this.DEFAULT_ACTIVATION:t.activation),this.recurrentActivation=Object(c.b)(void 0===t.recurrentActivation?this.DEFAULT_RECURRENT_ACTIVATION:t.recurrentActivation),this.useBias=null==t.useBias||t.useBias,this.kernelInitializer=Object(b.q)(t.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.recurrentInitializer=Object(b.q)(t.recurrentInitializer||this.DEFAULT_RECURRENT_INITIALIZER),this.biasInitializer=Object(b.q)(t.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.unitForgetBias=t.unitForgetBias,this.kernelRegularizer=Object(m.b)(t.kernelRegularizer),this.recurrentRegularizer=Object(m.b)(t.recurrentRegularizer),this.biasRegularizer=Object(m.b)(t.biasRegularizer),this.kernelConstraint=Object(h.e)(t.kernelConstraint),this.recurrentConstraint=Object(h.e)(t.recurrentConstraint),this.biasConstraint=Object(h.e)(t.biasConstraint),this.dropout=v.d([1,v.c([0,null==t.dropout?0:t.dropout])]),this.recurrentDropout=v.d([1,v.c([0,null==t.recurrentDropout?0:t.recurrentDropout])]),this.dropoutFunc=t.dropoutFunc,this.implementation=t.implementation,this.stateSize=[this.units,this.units],this.dropoutMask=null,this.recurrentDropoutMask=null}build(t){var e;const n=(t=Object(w.a)(t))[t.length-1];let a;if(this.kernel=this.addWeight("kernel",[n,4*this.units],null,this.kernelInitializer,this.kernelRegularizer,true,this.kernelConstraint),this.recurrentKernel=this.addWeight("recurrent_kernel",[this.units,4*this.units],null,this.recurrentInitializer,this.recurrentRegularizer,true,this.recurrentConstraint),this.useBias){if(this.unitForgetBias){const t=this.biasInitializer,n=this.units;a=new((e=class e extends b.g{apply(shape,e){const a=t.apply([n]),s=(new b.j).apply([n]),i=t.apply([2*n]);return u.d(u.d(a,s),i)}}).className="CustomInit",e)}else a=this.biasInitializer;this.bias=this.addWeight("bias",[4*this.units],null,a,this.biasRegularizer,true,this.biasConstraint)}else this.bias=null;this.built=true}call(t,e){return Object(o._394)((()=>{const n=null!=e.training&&e.training;if(3!==(t=t).length)throw new f.e(`LSTMCell expects 3 input Tensors (inputs, h, c), got ${t.length}.`);let a=t[1];const s=t[2];t=t[0],0<this.dropout&&this.dropout<1&&null==this.dropoutMask&&(this.dropoutMask=i({ones:()=>o._301(t),rate:this.dropout,training:n,count:4,dropoutFunc:this.dropoutFunc})),0<this.recurrentDropout&&this.recurrentDropout<1&&null==this.recurrentDropoutMask&&(this.recurrentDropoutMask=i({ones:()=>o._301(a),rate:this.recurrentDropout,training:n,count:4,dropoutFunc:this.dropoutFunc}));const c=this.dropoutMask,l=this.recurrentDropoutMask;let h,p,b,m;0<this.dropout&&this.dropout<1&&(t=o._292(t,c[0]));let g=u.f(t,this.kernel.read());0<this.recurrentDropout&&this.recurrentDropout<1&&(a=o._292(a,l[0])),g=o._150(g,u.f(a,this.recurrentKernel.read())),this.useBias&&(g=u.b(g,this.bias.read()));const[v,w,y,O]=o._370(g,4,g.rank-1);h=this.recurrentActivation.apply(v),p=this.recurrentActivation.apply(w),b=o._150(o._292(p,s),o._292(h,this.activation.apply(y))),m=this.recurrentActivation.apply(O);const x=o._292(m,this.activation.apply(b));return[x,x,b]}))}getConfig(){const t=super.getConfig(),e={units:this.units,activation:Object(c.c)(this.activation),recurrentActivation:Object(c.c)(this.recurrentActivation),useBias:this.useBias,kernelInitializer:Object(b.r)(this.kernelInitializer),recurrentInitializer:Object(b.r)(this.recurrentInitializer),biasInitializer:Object(b.r)(this.biasInitializer),unitForgetBias:this.unitForgetBias,kernelRegularizer:Object(m.e)(this.kernelRegularizer),recurrentRegularizer:Object(m.e)(this.recurrentRegularizer),biasRegularizer:Object(m.e)(this.biasRegularizer),activityRegularizer:Object(m.e)(this.activityRegularizer),kernelConstraint:Object(h.f)(this.kernelConstraint),recurrentConstraint:Object(h.f)(this.recurrentConstraint),biasConstraint:Object(h.f)(this.biasConstraint),dropout:this.dropout,recurrentDropout:this.recurrentDropout,implementation:this.implementation};return Object.assign(Object.assign({},t),e)}}k.className="LSTMCell",o._349.registerClass(k);class S extends x{constructor(t){0===t.implementation&&console.warn("`implementation=0` has been deprecated, and now defaults to `implementation=1`. Please update your layer call."),t.cell=new k(t),super(t)}call(t,e){return Object(o._394)((()=>{null!=this.cell.dropoutMask&&(o._209(this.cell.dropoutMask),this.cell.dropoutMask=null),null!=this.cell.recurrentDropoutMask&&(o._209(this.cell.recurrentDropoutMask),this.cell.recurrentDropoutMask=null);const n=null==e?null:e.mask,a=null==e?null:e.training,s=null==e?null:e.initialState;return super.call(t,{mask:n,training:a,initialState:s})}))}static fromConfig(t,e){return 0===e.implmentation&&(e.implementation=1),new t(e)}}S.className="LSTM",o._349.registerClass(S);class T extends A{constructor(t){super(t),this.cells=t.cells}get stateSize(){const t=[];for(const cell of this.cells.slice().reverse())Array.isArray(cell.stateSize)?t.push(...cell.stateSize):t.push(cell.stateSize);return t}call(t,e){return Object(o._394)((()=>{let n=(t=t).slice(1);const a=[];for(const cell of this.cells.slice().reverse())Array.isArray(cell.stateSize)?a.push(n.splice(0,cell.stateSize.length)):a.push(n.splice(0,1));a.reverse();const s=[];let i;for(let o=0;o<this.cells.length;++o){const cell=this.cells[o];n=a[o],i=0===o?[t[0]].concat(n):[i[0]].concat(n),i=cell.call(i,e),s.push(i.slice(1))}n=[];for(const t of s.slice().reverse())n.push(...t);return[i[0]].concat(n)}))}build(t){let e;Object(w.c)(t)&&(t=t[0]),t=t,this.cells.forEach(((cell,n)=>{Object(l.g)(`RNNCell_${n}`,(()=>{cell.build(t),e=Array.isArray(cell.stateSize)?cell.stateSize[0]:cell.stateSize,t=[t[0],e]}))})),this.built=true}getConfig(){const t=super.getConfig(),e=cell=>({className:cell.getClassName(),config:cell.getConfig()}),n=undefined,a={cells:this.cells.map(e)};return Object.assign(Object.assign({},t),a)}static fromConfig(t,e,n={}){const a=[];for(const t of e.cells)a.push(Object(O.a)(t,n));return new t({cells:a})}get trainableWeights(){if(!this.trainable)return[];const t=[];for(const cell of this.cells)t.push(...cell.trainableWeights);return t}get nonTrainableWeights(){const t=[];for(const cell of this.cells)t.push(...cell.nonTrainableWeights);if(!this.trainable){const e=[];for(const cell of this.cells)e.push(...cell.trainableWeights);return e.concat(t)}return t}getWeights(){const t=[];for(const cell of this.cells)t.push(...cell.weights);return Object(y.b)(t)}setWeights(t){const e=[];for(const cell of this.cells){const n=cell.weights.length,a=t.splice(n);for(let t=0;t<cell.weights.length;++t)e.push([cell.weights[t],a[t]])}Object(y.c)(e)}}T.className="StackedRNNCells",o._349.registerClass(T)},function(t,e,n){"use strict";function a(t,size=null){return new class extends b{constructor(){super(...arguments),this.size=size}async iterator(){return t()}}}function s(items){return a((async()=>Object(p.f)(items)),items.length)}function i(t){if(!Object(f.e)(t))throw new Error("The argument to zip() must be an object or array.");let size;if(Array.isArray(t))for(let e=0;e<t.length;e++)size=null==size?t[e].size:Math.min(size,t[e].size);else if(t instanceof Object)for(const e in t)size=null==size?t[e].size:Math.min(size,t[e].size);return a((async()=>{const e=await Object(f.c)(t,(d=>{if(d instanceof b)return{value:d.iterator(),recurse:false};if(Object(f.e)(d))return{value:null,recurse:true};throw new Error("Leaves of the structure passed to zip() must be Datasets, not primitives.")}));return Object(p.g)(e,p.c.SHORTEST)}),size)}function o(t){if(null===t)return null;const e=t[0];if(Object(f.a)(e)){const e=undefined;return{value:c(t),recurse:false}}return{value:null,recurse:true}}function c(t){if(0===t.length)throw new Error("Can't make a batch of zero elements.");return t[0]instanceof u._133?u._375(t):u._384(t)}n.d(e,"a",(function(){return b})),e.c=a,e.b=s,e.d=i;var u=n(0),l=n(149),h=n.n(l),p=n(101),f=n(215);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
class b{constructor(){this.size=null}batch(t,e=true){const base=this;let size;return u._408.assert(t>0,(()=>`batchSize needs to be positive, but it is\n ${t}`)),size=this.size===1/0||null==this.size?this.size:e?Math.ceil(this.size/t):Math.floor(this.size/t),a((async()=>(await base.iterator()).columnMajorBatch(t,e,o)),size)}concatenate(t){const base=this;let size;return size=this.size===1/0||t.size===1/0?1/0:null!=this.size&&null!=t.size?this.size+t.size:null,a((async()=>(await base.iterator()).concatenate(await t.iterator())),size)}filter(t){const base=this;let size;return size=this.size===1/0?1/0:null,a((async()=>(await base.iterator()).filter((e=>u._394((()=>t(e)))))),size)}async forEachAsync(t){return(await this.iterator()).forEachAsync(t)}map(transform){const base=this;return a((async()=>(await base.iterator()).map((t=>u._394((()=>transform(t)))))),this.size)}mapAsync(transform){const base=this;return a((async()=>(await base.iterator()).mapAsync(transform)),this.size)}prefetch(t){if(null==t)throw new RangeError("`Dataset.prefetch()` requires bufferSize to be specified.");const base=this;return a((async()=>(await base.iterator()).prefetch(t)),this.size)}repeat(t){const base=this;let size;return size=null!=this.size&&t>0?this.size*t:0===t?0:null!=this.size&&(void 0===t||t<0)?1/0:null,a((async()=>{const e=Object(p.e)((async()=>({value:await base.iterator(),done:false})));return Object(p.d)(e.take(t))}),size)}skip(t){const base=this;let size;return size=null!=this.size&&t>=0&&this.size>=t?this.size-t:null!=this.size&&(this.size<t||void 0===t||t<0)?0:null,a((async()=>(await base.iterator()).skip(t)),size)}shuffle(t,e,n=true){if(null==t||t<0)throw null==this.size?new RangeError("`Dataset.shuffle()` requires bufferSize to be specified."):new 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)`);const base=this,s=l.alea(e||u._408.now().toString());return a((async()=>{let e=s.int32();return n&&(e+=s.int32()),(await base.iterator()).shuffle(t,e.toString())}),this.size)}take(t){const base=this;let size;return size=null!=this.size&&this.size>t?t:null!=this.size&&this.size<=t?this.size:null,a((async()=>(await base.iterator()).take(t)),size)}async toArray(){if(this.size===1/0)throw new Error("Can not convert infinite data stream to array.");return(await this.iterator()).toArray()}async toArrayForTest(){if(this.size===1/0)throw new Error("Can not convert infinite data stream to array.");return(await this.iterator()).toArrayForTest()}}b.MAX_BUFFER_SIZE=1e4},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,shape,n,a,i,o,c,u,l){const h=[n/a,a],p=t.values,f=e.values;if(0===n)return Object(s._178)(shape,e.dtype);const b=u instanceof s._134?u:Object(s._178)(h,e.dtype);"string"==typeof u||"number"==typeof u?b.values.fill(u):"boolean"==typeof u&&b.values.fill(+u);for(let t=0;t<i;t++){const index=[];let s=0;for(let e=0;e<o;e++){const n=p[t*o+e];index.push(n),s+=n*c[e]}if(s<0||s>=n/a)throw new Error(`Invalid indices: ${index} does not index into ${shape}`);for(let n=0;n<a;n++)l?b.values[s*a+n]+=f[t*a+n]:b.values[s*a+n]=0===e.rank?f[0]:f[t*a+n]}return b}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t-e));e.c=o;const c=Object(i.b)(((t,e,n,a)=>({real:t-n,imag:e-a}))),u=Object(i.a)(a._129,o,c);e.a=u;const l={kernelName:a._129,backendName:"cpu",kernelFunc:u};e.b=l},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t/e)),c=Object(i.a)(a._87,o);e.a=c;const u={kernelName:a._87,backendName:"cpu",kernelFunc:c};e.b=u},function(t,e,n){"use strict";function a(t){delete l[t]}function s(t,e){l[t]=e}function i(t,e){if(!(t in l)||null!=e){const n=c(t,e);if(null===n)return console.log("Could not get context for WebGL version",t),null;l[t]=n}const n=l[t];return null==n||n.isContextLost()?(delete l[t],i(t)):(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),l[t])}function o(t){if(Object(u._222)().getBool("IS_SAFARI")||"undefined"==typeof OffscreenCanvas||2!==t){if("undefined"!=typeof document)return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}return new OffscreenCanvas(300,150)}function c(t,e){if(1!==t&&2!==t)throw new Error("Cannot get WebGL rendering context, WebGL is disabled.");const n=null==e?o(t):e;return n.addEventListener("webglcontextlost",(e=>{e.preventDefault(),delete l[t]}),false),Object(u._222)().getBool("SOFTWARE_WEBGL_ENABLED")&&(h.failIfMajorPerformanceCaveat=false),1===t?n.getContext("webgl",h)||n.getContext("experimental-webgl",h):n.getContext("webgl2",h)}e.b=s,e.a=i;var u=n(0);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const l={},h={alpha:false,antialias:false,premultipliedAlpha:false,preserveDrawingBuffer:false,depth:false,stencil:false,failIfMajorPerformanceCaveat:true}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s}=e,{axis:o,keepDims:c}=a;return Object(i.a)(s,o,c,n)}e.a=a;var s=n(0),i=n(1060);const o={kernelName:s._130,backendName:"webgl",kernelFunc:a};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{input:input}=e,a=n.texData.get(input.dataId);return Object(i.a)({inputs:{x:a.complexTensorInfos.imag},backend:n})}e.a=a;var s=n(0),i=n(50);const o={kernelName:s._29,backendName:"webgl",kernelFunc:a};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t){this.variableNames=["x","dy"],this.outputShape=t.filterShape;const e=t.strideHeight,n=t.strideWidth,a=t.padInfo.top,s=t.padInfo.left,i="channelsLast"===t.dataFormat;this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int wR = coords.x;\n int wC = coords.y;\n int d1 = coords.z;\n int d2 = coords.w;\n\n // Convolve x(?, ?, d1) with dy(:, :, d2) to get dw(wR, wC, d1, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int b = 0; b < ${t.batchSize}; b++) {\n for (int yR = 0; yR < ${t.outHeight}; yR++) {\n int xR = wR + yR * ${e} - ${a};\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int yC = 0; yC < ${t.outWidth}; yC++) {\n int xC = wC + yC * ${n} - ${s};\n\n if (xC < 0 || xC >= ${t.inWidth}) {\n continue;\n }\n\n ${i?"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);"}\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.a=a;class s{constructor(t){this.variableNames=["dy","W"],this.outputShape=t.inShape;const e=t.filterHeight,n=t.filterWidth,a=t.strideHeight,s=t.strideWidth,i="channelsLast"===t.dataFormat,o=e-1-t.padInfo.top,c=n-1-t.padInfo.left,u=i?1:2,l=i?2:3,h=i?3:1;this.userCode=`\n const ivec2 pads = ivec2(${o}, ${c});\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d1 = coords[${h}];\n\n ivec2 dyCorner = ivec2(coords[${u}], coords[${l}]) - pads;\n int dyRCorner = dyCorner.x;\n int dyCCorner = dyCorner.y;\n\n // Convolve dy(?, ?, d2) with w(:, :, d1, d2) to compute dx(xR, xC, d1).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < ${e}; wR++) {\n float dyR = float(dyRCorner + wR) / ${a}.0;\n\n if (dyR < 0.0 || dyR >= ${t.outHeight}.0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = ${e} - 1 - wR;\n\n for (int wC = 0; wC < ${n}; wC++) {\n float dyC = float(dyCCorner + wC) / ${s}.0;\n\n if (dyC < 0.0 || dyC >= ${t.outWidth}.0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = ${n} - 1 - wC;\n\n for (int d2 = 0; d2 < ${t.outChannels}; d2++) {\n\n if (${i}) {\n float xValue = getDy(batch, idyR, idyC, d2);\n float wValue = getW(wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n } else {\n float xValue = getDy(batch, d2, idyR, idyC);\n float wValue = getW(wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n }\n\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.b=s;class i{constructor(t){this.variableNames=["x","dy"],this.outputShape=t.filterShape;const e=t.strideDepth,n=t.strideHeight,a=t.strideWidth,s=t.padInfo.front,i=t.padInfo.top,o=t.padInfo.left;this.userCode=`\n void main() {\n ivec5 coords = getOutputCoords();\n int wF = coords.x;\n int wR = coords.y;\n int wC = coords.z;\n int d1 = coords.w;\n int d2 = coords.u;\n\n float dotProd = 0.0;\n\n for (int b = 0; b < ${t.batchSize}; b++) {\n for (int yF = 0; yF < ${t.outDepth}; yF++) {\n int xF = wF + yF * ${e} - ${s};\n\n if (xF < 0 || xF >= ${t.inDepth}) {\n continue;\n }\n\n for (int yR = 0; yR < ${t.outHeight}; yR++) {\n int xR = wR + yR * ${n} - ${i};\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int yC = 0; yC < ${t.outWidth}; yC++) {\n int xC = wC + yC * ${a} - ${o};\n\n if (xC < 0 || xC >= ${t.inWidth}) {\n continue;\n }\n\n float dyValue = getDy(b, yF, yR, yC, d2);\n float xValue = getX(b, xF, xR, xC, d1);\n dotProd += (xValue * dyValue);\n }\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.c=i;class o{constructor(t){this.variableNames=["dy","W"],this.outputShape=t.inShape;const e=t.filterDepth,n=t.filterHeight,a=t.filterWidth,s=t.strideDepth,i=t.strideHeight,o=t.strideWidth,c=e-1-t.padInfo.front,u=n-1-t.padInfo.top,l=a-1-t.padInfo.left;this.userCode=`\n const ivec3 pads = ivec3(${c}, ${u}, ${l});\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int d1 = coords.u;\n\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyFCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n float dotProd = 0.0;\n for (int wF = 0; wF < ${e}; wF++) {\n float dyF = float(dyFCorner + wF) / ${s}.0;\n\n if (dyF < 0.0 || dyF >= ${t.outDepth}.0 || fract(dyF) > 0.0) {\n continue;\n }\n int idyF = int(dyF);\n\n int wFPerm = ${e} - 1 - wF;\n\n for (int wR = 0; wR < ${n}; wR++) {\n float dyR = float(dyRCorner + wR) / ${i}.0;\n\n if (dyR < 0.0 || dyR >= ${t.outHeight}.0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = ${n} - 1 - wR;\n\n for (int wC = 0; wC < ${a}; wC++) {\n float dyC = float(dyCCorner + wC) / ${o}.0;\n\n if (dyC < 0.0 || dyC >= ${t.outWidth}.0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = ${a} - 1 - wC;\n\n for (int d2 = 0; d2 < ${t.outChannels}; d2++) {\n float xValue = getDy(batch, idyF, idyR, idyC, d2);\n float wValue = getW(wFPerm, wRPerm, wCPerm, d1, d2);\n dotProd += xValue * wValue;\n }\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.d=o},function(t,e,n){"use strict";(function(t,n){function a(){if(null==o){let e;if("undefined"!=typeof window)e=window;else if(void 0!==t)e=t;else if(void 0!==n)e=n;else{if("undefined"==typeof self)throw new Error("Could not find a global object");e=self}o=e}return o}function s(){const t=a();return null==t._tfGlobals&&(t._tfGlobals=new Map),t._tfGlobals}function i(t,init){const e=s();if(e.has(t))return e.get(t);{const n=init();return e.set(t,n),e.get(t)}}
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
let o;e.b=a,e.a=i}).call(e,n(132),n(133))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(...t){Object(i.c)().getBool("IS_TEST")||Object(i.c)().getBool("PROD")||console.warn(...t)}function s(...t){Object(i.c)().getBool("IS_TEST")||Object(i.c)().getBool("PROD")||console.log(...t)}e.b=a,e.a=s;var i=n(39)},function(t,e,n){"use strict";(function(t){function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return false}}function s(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,length){if(s()<length)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(length)).__proto__=o.prototype:(null===t&&(t=new o(length)),t.length=length),t}function o(t,e,length){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,length);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,length)}function c(t,e,n,length){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?b(t,e,n,length):"string"==typeof e?p(t,e,n):m(t,e)}function u(size){if("number"!=typeof size)throw new TypeError('"size" argument must be a number');if(size<0)throw new RangeError('"size" argument must not be negative')}function l(t,size,fill,e){return u(size),size<=0?i(t,size):void 0!==fill?"string"==typeof e?i(t,size).fill(fill,e):i(t,size).fill(fill):i(t,size)}function h(t,size){if(u(size),t=i(t,size<0?0:0|g(size)),!o.TYPED_ARRAY_SUPPORT)for(var e=0;e<size;++e)t[e]=0;return t}function p(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var length=0|w(e,n),a=(t=i(t,length)).write(e,n);return a!==length&&(t=t.slice(0,a)),t}function f(t,e){var length=e.length<0?0:0|g(e.length);t=i(t,length);for(var n=0;n<length;n+=1)t[n]=255&e[n];return t}function b(t,e,n,length){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(length||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===length?new Uint8Array(e):void 0===length?new Uint8Array(e,n):new Uint8Array(e,n,length),o.TYPED_ARRAY_SUPPORT?(t=e).__proto__=o.prototype:t=f(t,e),t}function m(t,e){if(o.isBuffer(e)){var n=0|g(e.length);return 0===(t=i(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||rt(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&ot(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(length){if(length>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|length}function v(length){return+length!=length&&(length=0),o.alloc(+length)}function w(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var a=false;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return tt(t).length;default:if(a)return Y(t).length;e=(""+e).toLowerCase(),a=true}}function y(t,e,n){var a=false;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,n);default:if(a)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=true}}function O(t,e,n){var a=t[e];t[e]=t[n],t[n]=a}function x(t,e,n,a,s){if(0===t.length)return-1;if("string"==typeof n?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=s?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(s)return-1;n=t.length-1}else if(n<0){if(!s)return-1;n=0}if("string"==typeof e&&(e=o.from(e,a)),o.isBuffer(e))return 0===e.length?-1:A(t,e,n,a,s);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):A(t,[e],n,a,s);throw new TypeError("val must be string, number or Buffer")}function A(t,e,n,a,s){function i(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}var o=1,c=t.length,u=e.length,l;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(t.length<2||e.length<2)return-1;o=2,c/=2,u/=2,n/=2}if(s){var h=-1;for(l=n;l<c;l++)if(i(t,l)===i(e,-1===h?0:l-h)){if(-1===h&&(h=l),l-h+1===u)return h*o}else-1!==h&&(l-=l-h),h=-1}else for(n+u>c&&(n=c-u),l=n;l>=0;l--){for(var p=true,f=0;f<u;f++)if(i(t,l+f)!==i(e,f)){p=false;break}if(p)return l}return-1}function I(t,e,n,length){n=Number(n)||0;var a=t.length-n;length?(length=Number(length))>a&&(length=a):length=a;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");length>s/2&&(length=s/2);for(var i=0;i<length;++i){var o=parseInt(e.substr(2*i,2),16);if(isNaN(o))return i;t[n+i]=o}return i}function j(t,e,n,length){return nt(Y(e,t.length-n),t,n,length)}function C(t,e,n,length){return nt(J(e),t,n,length)}function _(t,e,n,length){return C(t,e,n,length)}function k(t,e,n,length){return nt(tt(e),t,n,length)}function S(t,e,n,length){return nt(K(e,t.length-n),t,n,length)}function T(t,e,n){return 0===e&&n===t.length?at.fromByteArray(t):at.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);for(var a=[],s=e;s<n;){var i=t[s],o=null,c=i>239?4:i>223?3:i>191?2:1,u,l,h,p;if(s+c<=n)switch(c){case 1:i<128&&(o=i);break;case 2:128==(192&(u=t[s+1]))&&(p=(31&i)<<6|63&u)>127&&(o=p);break;case 3:u=t[s+1],l=t[s+2],128==(192&u)&&128==(192&l)&&(p=(15&i)<<12|(63&u)<<6|63&l)>2047&&(p<55296||p>57343)&&(o=p);break;case 4:u=t[s+1],l=t[s+2],h=t[s+3],128==(192&u)&&128==(192&l)&&128==(192&h)&&(p=(15&i)<<18|(63&u)<<12|(63&l)<<6|63&h)>65535&&p<1114112&&(o=p)}null===o?(o=65533,c=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|1023&o),a.push(o),s+=c}return B(a)}function B(t){var e=t.length;if(e<=ct)return String.fromCharCode.apply(String,t);for(var n="",a=0;a<e;)n+=String.fromCharCode.apply(String,t.slice(a,a+=ct));return n}function N(t,e,n){var a="";n=Math.min(t.length,n);for(var s=e;s<n;++s)a+=String.fromCharCode(127&t[s]);return a}function E(t,e,n){var a="";n=Math.min(t.length,n);for(var s=e;s<n;++s)a+=String.fromCharCode(t[s]);return a}function M(t,e,n){var a=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>a)&&(n=a);for(var s="",i=e;i<n;++i)s+=$(t[i]);return s}function F(t,e,n){for(var a=t.slice(e,n),s="",i=0;i<a.length;i+=2)s+=String.fromCharCode(a[i]+256*a[i+1]);return s}function W(t,e,length){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>length)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,a,s,i){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<i)throw new RangeError('"value" argument is out of bounds');if(n+a>t.length)throw new RangeError("Index out of range")}function P(t,e,n,a){e<0&&(e=65535+e+1);for(var s=0,i=Math.min(t.length-n,2);s<i;++s)t[n+s]=(e&255<<8*(a?s:1-s))>>>8*(a?s:1-s)}function G(t,e,n,a){e<0&&(e=4294967295+e+1);for(var s=0,i=Math.min(t.length-n,4);s<i;++s)t[n+s]=e>>>8*(a?s:3-s)&255}function V(t,e,n,a,s,i){if(n+a>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,a,s){return s||V(t,e,n,4,34028234663852886e22,-34028234663852886e22),st.write(t,e,n,a,23,4),n+4}function Z(t,e,n,a,s){return s||V(t,e,n,8,17976931348623157e292,-17976931348623157e292),st.write(t,e,n,a,52,8),n+8}function X(t){if((t=U(t).replace(ut,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function U(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function $(t){return t<16?"0"+t.toString(16):t.toString(16)}function Y(t,e){var n;e=e||1/0;for(var length=t.length,a=null,s=[],i=0;i<length;++i){if((n=t.charCodeAt(i))>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(i+1===length){(e-=3)>-1&&s.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(e-=3)>-1&&s.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function J(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function K(t,e){for(var n,a,s,i=[],o=0;o<t.length&&!((e-=2)<0);++o)a=(n=t.charCodeAt(o))>>8,s=n%256,i.push(s),i.push(a);return i}function tt(t){return at.toByteArray(X(t))}function nt(t,e,n,length){for(var a=0;a<length&&!(a+n>=e.length||a>=t.length);++a)e[a+n]=t[a];return a}function rt(t){return t!=t}var at=n(411),st=n(412),ot=n(413);e.Buffer=o,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,length){return c(null,t,e,length)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:true})),o.alloc=function(size,fill,t){return l(null,size,fill,t)},o.allocUnsafe=function(size){return h(null,size)},o.allocUnsafeSlow=function(size){return h(null,size)},o.isBuffer=function t(e){return!!(null!=e&&e._isBuffer)},o.compare=function compare(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,a=e.length,s=0,i=Math.min(n,a);s<i;++s)if(t[s]!==e[s]){n=t[s],a=e[s];break}return n<a?-1:a<n?1:0},o.isEncoding=function t(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 true;default:return false}},o.concat=function t(list,length){if(!ot(list))throw new TypeError('"list" argument must be an Array of Buffers');if(0===list.length)return o.alloc(0);var e;if(void 0===length)for(length=0,e=0;e<list.length;++e)length+=list[e].length;var n=o.allocUnsafe(length),a=0;for(e=0;e<list.length;++e){var s=list[e];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,a),a+=s.length}return n},o.byteLength=w,o.prototype._isBuffer=true,o.prototype.swap16=function t(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)O(this,n,n+1);return this},o.prototype.swap32=function t(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)O(this,n,n+3),O(this,n+1,n+2);return this},o.prototype.swap64=function t(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)O(this,n,n+7),O(this,n+1,n+6),O(this,n+2,n+5),O(this,n+3,n+4);return this},o.prototype.toString=function t(){var length=0|this.length;return 0===length?"":0===arguments.length?L(this,0,length):y.apply(this,arguments)},o.prototype.equals=function t(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function t(){var n="",a=e.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(n+=" ... ")),"<Buffer "+n+">"},o.prototype.compare=function compare(t,e,n,a,s){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===a&&(a=0),void 0===s&&(s=this.length),e<0||n>t.length||a<0||s>this.length)throw new RangeError("out of range index");if(a>=s&&e>=n)return 0;if(a>=s)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(s>>>=0)-(a>>>=0),c=(n>>>=0)-(e>>>=0),u=Math.min(i,c),l=this.slice(a,s),h=t.slice(e,n),p=0;p<u;++p)if(l[p]!==h[p]){i=l[p],c=h[p];break}return i<c?-1:c<i?1:0},o.prototype.includes=function t(e,n,a){return-1!==this.indexOf(e,n,a)},o.prototype.indexOf=function t(e,n,a){return x(this,e,n,a,true)},o.prototype.lastIndexOf=function t(e,n,a){return x(this,e,n,a,false)},o.prototype.write=function t(e,n,length,a){if(void 0===n)a="utf8",length=this.length,n=0;else if(void 0===length&&"string"==typeof n)a=n,length=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(length)?(length|=0,void 0===a&&(a="utf8")):(a=length,length=void 0)}var s=this.length-n;if((void 0===length||length>s)&&(length=s),e.length>0&&(length<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=false;;)switch(a){case"hex":return I(this,e,n,length);case"utf8":case"utf-8":return j(this,e,n,length);case"ascii":return C(this,e,n,length);case"latin1":case"binary":return _(this,e,n,length);case"base64":return k(this,e,n,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n,length);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=true}},o.prototype.toJSON=function t(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ct=4096;o.prototype.slice=function t(e,n){var a=this.length,s;if((e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(n=void 0===n?a:~~n)<0?(n+=a)<0&&(n=0):n>a&&(n=a),n<e&&(n=e),o.TYPED_ARRAY_SUPPORT)(s=this.subarray(e,n)).__proto__=o.prototype;else{var i=n-e;s=new o(i,void 0);for(var c=0;c<i;++c)s[c]=this[c+e]}return s},o.prototype.readUIntLE=function t(e,n,a){e|=0,n|=0,a||W(e,n,this.length);for(var s=this[e],i=1,o=0;++o<n&&(i*=256);)s+=this[e+o]*i;return s},o.prototype.readUIntBE=function t(e,n,a){e|=0,n|=0,a||W(e,n,this.length);for(var s=this[e+--n],i=1;n>0&&(i*=256);)s+=this[e+--n]*i;return s},o.prototype.readUInt8=function t(e,n){return n||W(e,1,this.length),this[e]},o.prototype.readUInt16LE=function t(e,n){return n||W(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function t(e,n){return n||W(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function t(e,n){return n||W(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function t(e,n){return n||W(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function t(e,n,a){e|=0,n|=0,a||W(e,n,this.length);for(var s=this[e],i=1,o=0;++o<n&&(i*=256);)s+=this[e+o]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*n)),s},o.prototype.readIntBE=function t(e,n,a){e|=0,n|=0,a||W(e,n,this.length);for(var s=n,i=1,o=this[e+--s];s>0&&(i*=256);)o+=this[e+--s]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*n)),o},o.prototype.readInt8=function t(e,n){return n||W(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function t(e,n){n||W(e,2,this.length);var a=this[e]|this[e+1]<<8;return 32768&a?4294901760|a:a},o.prototype.readInt16BE=function t(e,n){n||W(e,2,this.length);var a=this[e+1]|this[e]<<8;return 32768&a?4294901760|a:a},o.prototype.readInt32LE=function t(e,n){return n||W(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function t(e,n){return n||W(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function t(e,n){return n||W(e,4,this.length),st.read(this,e,true,23,4)},o.prototype.readFloatBE=function t(e,n){return n||W(e,4,this.length),st.read(this,e,false,23,4)},o.prototype.readDoubleLE=function t(e,n){return n||W(e,8,this.length),st.read(this,e,true,52,8)},o.prototype.readDoubleBE=function t(e,n){return n||W(e,8,this.length),st.read(this,e,false,52,8)},o.prototype.writeUIntLE=function t(e,n,a,s){var i;(e=+e,n|=0,a|=0,s)||z(this,e,n,a,Math.pow(2,8*a)-1,0);var o=1,c=0;for(this[n]=255&e;++c<a&&(o*=256);)this[n+c]=e/o&255;return n+a},o.prototype.writeUIntBE=function t(e,n,a,s){var i;(e=+e,n|=0,a|=0,s)||z(this,e,n,a,Math.pow(2,8*a)-1,0);var o=a-1,c=1;for(this[n+o]=255&e;--o>=0&&(c*=256);)this[n+o]=e/c&255;return n+a},o.prototype.writeUInt8=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},o.prototype.writeUInt16LE=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):P(this,e,n,true),n+2},o.prototype.writeUInt16BE=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):P(this,e,n,false),n+2},o.prototype.writeUInt32LE=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):G(this,e,n,true),n+4},o.prototype.writeUInt32BE=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):G(this,e,n,false),n+4},o.prototype.writeIntLE=function t(e,n,a,s){if(e=+e,n|=0,!s){var i=Math.pow(2,8*a-1);z(this,e,n,a,i-1,-i)}var o=0,c=1,u=0;for(this[n]=255&e;++o<a&&(c*=256);)e<0&&0===u&&0!==this[n+o-1]&&(u=1),this[n+o]=(e/c>>0)-u&255;return n+a},o.prototype.writeIntBE=function t(e,n,a,s){if(e=+e,n|=0,!s){var i=Math.pow(2,8*a-1);z(this,e,n,a,i-1,-i)}var o=a-1,c=1,u=0;for(this[n+o]=255&e;--o>=0&&(c*=256);)e<0&&0===u&&0!==this[n+o+1]&&(u=1),this[n+o]=(e/c>>0)-u&255;return n+a},o.prototype.writeInt8=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},o.prototype.writeInt16LE=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):P(this,e,n,true),n+2},o.prototype.writeInt16BE=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):P(this,e,n,false),n+2},o.prototype.writeInt32LE=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):G(this,e,n,true),n+4},o.prototype.writeInt32BE=function t(e,n,a){return e=+e,n|=0,a||z(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):G(this,e,n,false),n+4},o.prototype.writeFloatLE=function t(e,n,a){return H(this,e,n,true,a)},o.prototype.writeFloatBE=function t(e,n,a){return H(this,e,n,false,a)},o.prototype.writeDoubleLE=function t(e,n,a){return Z(this,e,n,true,a)},o.prototype.writeDoubleBE=function t(e,n,a){return Z(this,e,n,false,a)},o.prototype.copy=function copy(t,e,n,a){if(n||(n=0),a||0===a||(a=this.length),e>=t.length&&(e=t.length),e||(e=0),a>0&&a<n&&(a=n),a===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-e<a-n&&(a=t.length-e+n);var s=a-n,i;if(this===t&&n<e&&e<a)for(i=s-1;i>=0;--i)t[i+e]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},o.prototype.fill=function fill(t,e,n,a){if("string"==typeof t){if("string"==typeof e?(a=e,e=0,n=this.length):"string"==typeof n&&(a=n,n=this.length),1===t.length){var s=t.charCodeAt(0);s<256&&(t=s)}if(void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!o.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var c=o.isBuffer(t)?t:Y(new o(t,a).toString()),u=c.length;for(i=0;i<n-e;++i)this[i+e]=c[i%u]}return this};var ut=/[^+\/0-9A-Za-z-_]/g}).call(e,n(132))},function(t,e,n){"use strict";var a=n(4),s=n(44),i=n(20),o=n(16),c=n(9),u=n(11),l=n(31),h=n(21),p=n(86);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class f extends p.a{static get className(){return"Adadelta"}constructor(t,e,n=null){super(),this.learningRate=t,this.rho=e,this.epsilon=n,this.accumulatedGrads=[],this.accumulatedUpdates=[],null==n&&(this.epsilon=a.a.backend.epsilon())}applyGradients(t){const e=undefined;(Array.isArray(t)?t.map((t=>t.name)):Object.keys(t)).forEach(((e,n)=>{const p=a.a.registeredVariables[e],f=false;null==this.accumulatedGrads[n]&&(this.accumulatedGrads[n]={originalName:`${e}/accum_grad`,variable:Object(s.t)((()=>Object(h.a)(p).variable(f)))}),null==this.accumulatedUpdates[n]&&(this.accumulatedUpdates[n]={originalName:`${e}/accum_var`,variable:Object(s.t)((()=>Object(h.a)(p).variable(f)))});const gradient=Array.isArray(t)?t[n].tensor:t[e];if(null==gradient)return;const b=this.accumulatedGrads[n].variable,m=this.accumulatedUpdates[n].variable;Object(s.t)((()=>{const t=Object(i.a)(Object(c.a)(b,this.rho),Object(c.a)(Object(l.a)(gradient),1-this.rho)),e=Object(c.a)(Object(o.a)(Object(u._132)(Object(i.a)(m,this.epsilon)),Object(u._132)(Object(i.a)(b,this.epsilon))),gradient),n=Object(i.a)(Object(c.a)(m,this.rho),Object(c.a)(Object(l.a)(e),1-this.rho));b.assign(t),m.assign(n);const a=Object(i.a)(Object(c.a)(e,-this.learningRate),p);p.assign(a)}))})),this.incrementIterations()}dispose(){null!=this.accumulatedUpdates&&(Object(s.d)(this.accumulatedGrads.map((t=>t.variable))),Object(s.d)(this.accumulatedUpdates.map((t=>t.variable))))}async getWeights(){const t=[...this.accumulatedGrads,...this.accumulatedUpdates];return[await this.saveIterations()].concat(t.map((t=>({name:t.originalName,tensor:t.variable}))))}async setWeights(t){const e=(t=await this.extractIterations(t)).length/2,n=false;this.accumulatedGrads=t.slice(0,e).map((t=>({originalName:t.name,variable:t.tensor.variable(n)}))),this.accumulatedUpdates=t.slice(e,2*e).map((t=>({originalName:t.name,variable:t.tensor.variable(n)})))}getConfig(){return{learningRate:this.learningRate,rho:this.rho,epsilon:this.epsilon}}static fromConfig(t,e){return new t(e.learningRate,e.rho,e.epsilon)}}e.a=f},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","floorDiv"),a=Object(c.a)(e,"b","floorDiv");[n,a]=Object(o.makeTypesMatch)(n,a);const u={a:n,b:a};return s.a.runKernel(i._11,u)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(2);const l=Object(u.b)({floorDiv_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,h){const f=Object(o.a)(t,"x","avgPool","float32"),b=1;c.assert(l.i(n,1),(()=>`Error in avgPool: Either strides or dilations must be 1. Got strides ${n} and dilations '1'`));let m=f,g=false;3===f.rank&&(g=true,m=Object(p.a)(f,[1,f.shape[0],f.shape[1],f.shape[2]])),c.assert(4===m.rank,(()=>`Error in avgPool: x must be rank 4 but got rank ${m.rank}.`)),l.a("avgPool",a,h);const v={x:m},w={filterSize:e,strides:n,pad:a,dimRoundingMode:h};let y=s.a.runKernel(i.o,v,w);return y=Object(u.a)(y,f.dtype),g?Object(p.a)(y,[y.shape[1],y.shape[2],y.shape[3]]):y}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(13),l=n(33),h=n(2),p=n(7);const f=Object(h.b)({avgPool_:a});e.a=f},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape){let input=Object(o.a)(t,"broadcastTo","x");const e=input.shape;if(Object(c.d)(shape),shape.length<input.rank)throw new Error(`broadcastTo(): shape.length=${shape.length} < input.rank=${input.rank}.`);if(shape.length>input.rank){const t=input.shape.slice();for(;t.length<shape.length;)t.unshift(1);input=Object(h.a)(input,t)}const n=input.shape,a=Array.from(shape);for(let t=shape.length-1;t>=0;t--)if(n[t]===shape[t])a[t]=1;else if(1!==input.shape[t])throw new Error(`broadcastTo(): [${e}] cannot be broadcast to [${shape}].`);const l=undefined;if(0===a.map(((t,e)=>t>1?e:-1)).filter((t=>t>=0)).length)return Object(u.a)(input);const p={x:input},f={reps:a};return s.a.runKernel(i._118,p,f)}var s=n(4),i=n(1),o=n(3),c=n(35),u=n(110),l=n(2),h=n(7);const p=Object(l.b)({broadcastTo_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,filter,n,a,u="NHWC",h){o.assert(t.length===e.rank,(()=>`Length of inShape (${t.length}) and rank of dy (${e.rank}) must match`));let p=t,f=e,b=false;3===e.rank&&(b=true,f=Object(l.a)(e,[1,e.shape[0],e.shape[1],e.shape[2]]),p=[1,t[0],t[1],t[2]]),o.assert(4===p.length,(()=>`Error in conv2dDerInput: inShape must be length 4, but got length ${p.length}.`)),o.assert(4===f.rank,(()=>`Error in conv2dDerInput: dy must be rank 4, but got rank ${f.rank}`)),o.assert(4===filter.rank,(()=>`Error in conv2dDerInput: filter must be rank 4, but got rank ${filter.rank}`));const m="NHWC"===u?p[3]:p[1],g="NHWC"===u?f.shape[3]:f.shape[1];o.assert(m===filter.shape[2],(()=>`Error in conv2dDerInput: depth of input (${m}) must match input depth for filter ${filter.shape[2]}.`)),o.assert(g===filter.shape[3],(()=>`Error in conv2dDerInput: depth of output (${g}) must match output depth for filter ${filter.shape[3]}.`)),c.a("conv2dDerInput",a,h);const v={dy:f,filter:filter},w={strides:n,pad:a,dataFormat:u,dimRoundingMode:h,inputShape:p},y=s.a.runKernel(i.G,v,w);return b?Object(l.a)(y,[y.shape[1],y.shape[2],y.shape[3]]):y}var s=n(4),i=n(1),o=n(5),c=n(33),u=n(2),l=n(7);const h=Object(u.b)({conv2DBackpropInput_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","cos","float32")};return s.a.runKernel(i.K,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({cos_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0,n=false,a=false){const c=undefined,u={x:Object(o.a)(t,"x","cumprod")},l={axis:e,exclusive:n,reverse:a};return s.a.runKernel(i.N,u,l)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({cumprod_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0,n=false,a=false){const c=undefined,u={x:Object(o.a)(t,"x","cumsum")},l={axis:e,exclusive:n,reverse:a};return s.a.runKernel(i.O,u,l)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({cumsum_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","elu","float32")};return s.a.runKernel(i._0,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({elu_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){const a=undefined,c={x:Object(o.a)(t,"x","min")},u={axis:e,keepDims:n};return s.a.runKernel(i._49,c,u)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({min_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","floor","float32")};return s.a.runKernel(i._10,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({floor_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=.2){const n=undefined,a={x:Object(o.a)(t,"x","leakyRelu")},c={alpha:e};return s.a.runKernel(i._28,a,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({leakyRelu_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){const a=Object(s.a)(t,"x","logSumExp"),p=Object(i.parseAxisParam)(e,a.shape),g=Object(h.a)(a,p,true),v=Object(b.a)(a,g),w=Object(u.a)(v),y=Object(m.a)(w,p),d=Object(l.a)(y),O=Object(o.a)(Object(f.a)(g,d.shape),d);if(n){const t=Object(c.e)(O.shape,p);return Object(f.a)(O,t)}return O}var s=n(3),i=n(5),o=n(20),c=n(55),u=n(61),l=n(117),h=n(114),p=n(2),f=n(7),b=n(18),m=n(26);const g=Object(p.b)({logSumExp_:a});e.a=g},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(o.a)(t,"a","logicalOr","bool"),a=Object(o.a)(e,"b","logicalOr","bool");Object(c.assertAndGetBroadcastShape)(n.shape,a.shape);const u={a:n,b:a};return s.a.runKernel(i._37,u)}var s=n(4),i=n(1),o=n(3),c=n(19),u=n(2);const l=Object(u.b)({logicalOr_:a});e.a=l},function(t,e,n){"use strict";function a(t,e,n="left"){const a=Object(o.a)(t,"sortedSequence","searchSorted"),u=Object(o.a)(e,"values","searchSorted"),p=a.shape[a.shape.length-1],f=u.shape[u.shape.length-1],b=Object(l.a)(a,[-1,p]),m=Object(l.a)(u,[-1,f]);if(b.rank<2)throw new Error("Sorted input argument must be at least 2-dimensional");if(b.shape[0]!==m.shape[0])throw new Error("Leading dimension of 'sortedSequence' and 'values' must match.");if(Object(c.O)(m.shape)>=h)throw new Error("values tensor size must less than 2147483648");if(b.shape[1]>=h)throw new Error(`trailing dim_size must less than 2147483648 for int32 output type, was ${b.shape[1]}`);const g={sortedSequence:b,values:m},v={side:n};return s.a.runKernel(i._87,g,v)}var s=n(4),i=n(1),o=n(3),c=n(35),u=n(2),l=n(7);
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const h=2147483648,p=Object(u.b)({searchSorted_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,l){const p=Object(o.a)(t,"x","maxPool"),f=1;let b=p,m=false;3===p.rank&&(m=true,b=Object(h.a)(p,[1,p.shape[0],p.shape[1],p.shape[2]])),c.assert(4===b.rank,(()=>`Error in maxPool: input must be rank 4 but got rank ${b.rank}.`)),c.assert(u.i(n,1),(()=>`Error in maxPool: Either strides or dilations must be 1. Got strides ${n} and dilations '1'`)),u.a("maxPool",a,l);const g={x:b},v={filterSize:e,strides:n,pad:a,dimRoundingMode:l},w=s.a.runKernel(i._42,g,v);return m?Object(h.a)(w,[w.shape[1],w.shape[2],w.shape[3]]):w}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(33),l=n(2),h=n(7);const p=Object(l.b)({maxPool_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","notEqual","string_or_numeric"),a=Object(c.a)(e,"b","notEqual","string_or_numeric");[n,a]=Object(o.makeTypesMatch)(n,a),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const l={a:n,b:a};return s.a.runKernel(i._59,l)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(2);const h=Object(l.b)({notEqual_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n=1,a=0,c="int32"){if(e<2)throw new Error(`Error in oneHot: depth must be >=2, but it is ${e}`);const u=undefined,l={indices:Object(o.a)(t,"indices","oneHot","int32")},h={dtype:c,depth:e,onValue:n,offValue:a};return s.a.runKernel(i._60,l,h)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({oneHot_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=undefined,a=undefined,c={x:Object(o.a)(t,"x","prelu"),alpha:Object(o.a)(e,"alpha","prelu")};return s.a.runKernel(i._66,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({prelu_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t=0,e=1,n="float32",a){Object(s.d)(shape);const o=Object(i.a)(shape,n),u=new c.c(t,e,null,a);for(let t=0;t<o.values.length;t++)o.values[t]=u.nextValue();return o.toTensor()}var s=n(35),i=n(68),o=n(2),c=n(148);const u=Object(o.b)({randomUniform_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n=1,a="float32"){if(0===n)throw new Error("Cannot have a step of zero");const o={start:t,stop:e,step:n,dtype:a};return s.a.runKernel(i._71,{},o)}e.a=a;var s=n(4),i=n(1)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","relu6")};return s.a.runKernel(i._76,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({relu6_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input){Object(o.assert)("complex64"===input.dtype,(()=>`The dtype for tf.spectral.fft() must be complex64 but got ${input.dtype}.`));const t={input:input};return s.a.runKernel(i._7,t)}var s=n(4),i=n(1),o=n(5),c=n(2);const u=Object(c.b)({fft_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input){Object(o.assert)("complex64"===input.dtype,(()=>`The dtype for tf.spectral.ifft() must be complex64 but got ${input.dtype}.`));const t={input:input};return s.a.runKernel(i._20,t)}var s=n(4),i=n(1),o=n(5),c=n(2);const u=Object(c.b)({ifft_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t){Object(s.assert)("float32"===input.dtype,(()=>`The dtype for rfft() must be real value but got ${input.dtype}`));let e=input.shape[input.shape.length-1];const n=input.size/e;let a;if(null!=t&&t<e){const n=input.shape.map((t=>0)),size=input.shape.map((t=>t));size[input.shape.length-1]=t,a=Object(p.a)(input,n,size),e=t}else if(null!=t&&t>e){const n=input.shape.map((t=>t));n[input.shape.length-1]=t-e,a=Object(o.a)([input,Object(b.a)(n)],input.shape.length-1),e=t}else a=input;const u=Object(m.a)(a),v=Object(h.a)(Object(i.a)(a,u),[n,e]),w=Object(g.a)(v),y=Math.floor(e/2)+1,O=Object(l.a)(w),x=Object(c.a)(w),A=Object(f.a)(O,[y,e-y],O.shape.length-1),I=Object(f.a)(x,[y,e-y],x.shape.length-1),j=a.shape.slice();return j[a.shape.length-1]=y,Object(h.a)(Object(i.a)(A[0],I[0]),j)}var s=n(5),i=n(79),o=n(48),c=n(141),u=n(2),l=n(150),h=n(7),p=n(42),f=n(98),b=n(118),m=n(21),g=n(196);const v=Object(u.b)({rfft_:a});e.a=v},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","squaredDifference"),a=Object(c.a)(e,"b","squaredDifference");[n,a]=Object(o.makeTypesMatch)(n,a),Object(u.assertAndGetBroadcastShape)(n.shape,a.shape);const l={a:n,b:a},h={};return s.a.runKernel(i._106,l,h)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(19),l=n(2);const h=Object(l.b)({squaredDifference_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e){if(Object(i.assertNonNull)(t),null!=shape&&2!==shape.length)throw new Error("tensor2d() requires shape to have two numbers");const n=Object(s.c)(t,e);if(2!==n.length&&1!==n.length)throw new Error("tensor2d() requires values to be number[][] or flat/TypedArray");if(1===n.length&&null==shape)throw new Error("tensor2d() requires shape to be provided when `values` are a flat/TypedArray");return Object(o.a)(t,shape,n,e)}e.a=a;var s=n(3),i=n(5),o=n(67)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(o.a)(t,"x","unsortedSegmentSum"),u=Object(o.a)(e,"segmentIds","unsortedSegmentSum","int32");Object(c.assert)(Object(c.isInt)(n),(()=>"numSegments must be of dtype int"));const l={x:a,segmentIds:u},h={numSegments:n};return s.a.runKernel(i._124,l,h)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({unsortedSegmentSum_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,u,h="NHWC",p){let f=t;3===t.rank&&(f=Object(l.a)(t,[1,t.shape[0],t.shape[1],t.shape[2]]));let b=e;3===b.rank&&(b=Object(l.a)(e,[1,e.shape[0],e.shape[1],e.shape[2]])),o.assert(4===f.rank,(()=>`Error in conv2dDerFilter: input must be rank 4, but got shape ${f.shape}.`)),o.assert(4===b.rank,(()=>`Error in conv2dDerFilter: dy must be rank 4, but got shape ${b.shape}.`)),o.assert(4===n.length,(()=>`Error in conv2dDerFilter: filterShape must be length 4, but got ${n}.`));const m="NHWC"===h?f.shape[3]:f.shape[1],g="NHWC"===h?b.shape[3]:b.shape[1];o.assert(m===n[2],(()=>`Error in conv2dDerFilter: depth of input ${m}) must match input depth in filter (${n[2]}.`)),o.assert(g===n[3],(()=>`Error in conv2dDerFilter: depth of dy (${g}) must match output depth for filter (${n[3]}).`)),c.a("conv2dDerFilter",u,p);const v={x:f,dy:b},w={strides:a,pad:u,dataFormat:h,dimRoundingMode:p,filterShape:n};return s.a.runKernel(i.F,v,w)}var s=n(4),i=n(1),o=n(5),c=n(33),u=n(2),l=n(7);const h=Object(u.b)({conv2DBackpropFilter_:a});e.a=h},function(t,e,n){"use strict";function a(t,e,n){Object(i.assert)(null!=t.className,(()=>"Class being registered does not have the static className property defined.")),Object(i.assert)("string"==typeof t.className,(()=>"className is required to be a string, but got type "+typeof t.className)),Object(i.assert)(t.className.length>0,(()=>"Class being registered has an empty-string as its className, which is disallowed.")),void 0===e&&(e="Custom"),void 0===n&&(n=t.className);const a=undefined,s=e+">"+n;return l.register(t),o.set(s,t),c.set(t,s),t}function s(t){return c.has(t)?c.get(t):t.className}Object.defineProperty(e,"__esModule",{value:true}),e.registerClass=a,e.getRegisteredName=s;var i=n(5);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const o=new Map,c=new Map;class u{getClassName(){return this.constructor.className}static fromConfig(t,e){return new t(e)}}e.Serializable=u;class l{constructor(){this.classNameMap={}}static getMap(){return null==l.instance&&(l.instance=new l),l.instance}static register(t){l.getMap().classNameMap[t.className]=[t,t.fromConfig]}}e.SerializationMap=l},function(t,e,n){"use strict";var a=n(4),s=n(44),i=n(20),o=n(16),c=n(113),u=n(9),l=n(56),h=n(31),p=n(86);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class f extends p.a{static get className(){return"Adagrad"}constructor(t,e=.1){super(),this.learningRate=t,this.initialAccumulatorValue=e,this.accumulatedGrads=[]}applyGradients(t){const e=undefined;(Array.isArray(t)?t.map((t=>t.name)):Object.keys(t)).forEach(((e,n)=>{const p=a.a.registeredVariables[e];if(null==this.accumulatedGrads[n]){const t=false;this.accumulatedGrads[n]={originalName:`${e}/accumulator`,variable:Object(s.t)((()=>Object(c.a)(p.shape,this.initialAccumulatorValue).variable(t)))}}const gradient=Array.isArray(t)?t[n].tensor:t[e];if(null==gradient)return;const f=this.accumulatedGrads[n].variable;Object(s.t)((()=>{const t=Object(i.a)(f,Object(h.a)(gradient));f.assign(t);const e=Object(i.a)(Object(u.a)(Object(o.a)(gradient,Object(l.a)(Object(i.a)(t,a.a.backend.epsilon()))),-this.learningRate),p);p.assign(e)}))})),this.incrementIterations()}dispose(){null!=this.accumulatedGrads&&Object(s.d)(this.accumulatedGrads.map((t=>t.variable)))}async getWeights(){return[await this.saveIterations()].concat(this.accumulatedGrads.map((t=>({name:t.originalName,tensor:t.variable}))))}async setWeights(t){t=await this.extractIterations(t);const e=false;this.accumulatedGrads=t.map((t=>({originalName:t.name,variable:t.tensor.variable(e)})))}getConfig(){return{learningRate:this.learningRate,initialAccumulatorValue:this.initialAccumulatorValue}}static fromConfig(t,e){return new t(e.learningRate,e.initialAccumulatorValue)}}e.a=f},function(t,e,n){"use strict";var a=n(4),s=n(44),i=n(20),o=n(16),c=n(9),u=n(81),l=n(22),h=n(56),p=n(31),f=n(18),b=n(21),m=n(86);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class g extends m.a{static get className(){return"Adam"}constructor(t,e,n,i=null){super(),this.learningRate=t,this.beta1=e,this.beta2=n,this.epsilon=i,this.accumulatedFirstMoment=[],this.accumulatedSecondMoment=[],Object(s.t)((()=>{this.accBeta1=Object(l.a)(e).variable(),this.accBeta2=Object(l.a)(n).variable()})),null==i&&(this.epsilon=a.a.backend.epsilon())}applyGradients(t){const e=Array.isArray(t)?t.map((t=>t.name)):Object.keys(t);Object(s.t)((()=>{const n=Object(f.a)(1,this.accBeta1),u=Object(f.a)(1,this.accBeta2);e.forEach(((e,l)=>{const f=a.a.registeredVariables[e],m=false;null==this.accumulatedFirstMoment[l]&&(this.accumulatedFirstMoment[l]={originalName:`${e}/m`,variable:Object(s.t)((()=>Object(b.a)(f).variable(m)))}),null==this.accumulatedSecondMoment[l]&&(this.accumulatedSecondMoment[l]={originalName:`${e}/v`,variable:Object(s.t)((()=>Object(b.a)(f).variable(m)))});const gradient=Array.isArray(t)?t[l].tensor:t[e];if(null==gradient)return;const g=this.accumulatedFirstMoment[l].variable,v=this.accumulatedSecondMoment[l].variable,w=Object(i.a)(Object(c.a)(g,this.beta1),Object(c.a)(gradient,1-this.beta1)),y=Object(i.a)(Object(c.a)(v,this.beta2),Object(c.a)(Object(p.a)(gradient),1-this.beta2)),O=Object(o.a)(w,n),x=Object(o.a)(y,u);g.assign(w),v.assign(y);const A=Object(i.a)(Object(c.a)(Object(o.a)(O,Object(i.a)(Object(h.a)(x),this.epsilon)),-this.learningRate),f);f.assign(A)})),this.accBeta1.assign(Object(c.a)(this.accBeta1,this.beta1)),this.accBeta2.assign(Object(c.a)(this.accBeta2,this.beta2))})),this.incrementIterations()}dispose(){this.accBeta1.dispose(),this.accBeta2.dispose(),null!=this.accumulatedFirstMoment&&Object(s.d)(this.accumulatedFirstMoment.map((t=>t.variable))),null!=this.accumulatedSecondMoment&&Object(s.d)(this.accumulatedSecondMoment.map((t=>t.variable)))}async getWeights(){const t=[...this.accumulatedFirstMoment,...this.accumulatedSecondMoment];return[await this.saveIterations()].concat(t.map((t=>({name:t.originalName,tensor:t.variable}))))}async setWeights(t){t=await this.extractIterations(t),Object(s.t)((()=>{this.accBeta1.assign(Object(u.a)(this.beta1,this.iterations_+1)),this.accBeta2.assign(Object(u.a)(this.beta2,this.iterations_+1))}));const e=t.length/2,n=false;this.accumulatedFirstMoment=t.slice(0,e).map((t=>({originalName:t.name,variable:t.tensor.variable(n)}))),this.accumulatedSecondMoment=t.slice(e,2*e).map((t=>({originalName:t.name,variable:t.tensor.variable(n)})))}getConfig(){return{learningRate:this.learningRate,beta1:this.beta1,beta2:this.beta2,epsilon:this.epsilon}}static fromConfig(t,e){return new t(e.learningRate,e.beta1,e.beta2,e.epsilon)}}e.a=g},function(t,e,n){"use strict";var a=n(4),s=n(44),i=n(92),o=n(20),c=n(16),u=n(144),l=n(9),h=n(22),p=n(18),f=n(21),b=n(86);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class m extends b.a{static get className(){return"Adamax"}constructor(t,e,n,i=null,o=0){super(),this.learningRate=t,this.beta1=e,this.beta2=n,this.epsilon=i,this.decay=o,this.accumulatedFirstMoment=[],this.accumulatedWeightedInfNorm=[],Object(s.t)((()=>{this.iteration=Object(h.a)(0).variable(),this.accBeta1=Object(h.a)(e).variable()})),null==i&&(this.epsilon=a.a.backend.epsilon())}applyGradients(t){const e=Array.isArray(t)?t.map((t=>t.name)):Object.keys(t);Object(s.t)((()=>{const n=Object(p.a)(1,this.accBeta1),s=Object(c.a)(-this.learningRate,Object(o.a)(Object(l.a)(this.iteration,this.decay),1));e.forEach(((e,h)=>{const p=a.a.registeredVariables[e],b=false;null==this.accumulatedFirstMoment[h]&&(this.accumulatedFirstMoment[h]={originalName:`${e}/m`,variable:Object(f.a)(p).variable(b)}),null==this.accumulatedWeightedInfNorm[h]&&(this.accumulatedWeightedInfNorm[h]={originalName:`${e}/v`,variable:Object(f.a)(p).variable(b)});const gradient=Array.isArray(t)?t[h].tensor:t[e];if(null==gradient)return;const m=this.accumulatedFirstMoment[h].variable,g=this.accumulatedWeightedInfNorm[h].variable,v=Object(o.a)(Object(l.a)(m,this.beta1),Object(l.a)(gradient,1-this.beta1)),w=Object(l.a)(g,this.beta2),y=Object(i.a)(gradient),O=Object(u.a)(w,y);m.assign(v),g.assign(O);const x=Object(o.a)(Object(l.a)(Object(c.a)(s,n),Object(c.a)(v,Object(o.a)(O,this.epsilon))),p);p.assign(x)})),this.iteration.assign(Object(o.a)(this.iteration,1)),this.accBeta1.assign(Object(l.a)(this.accBeta1,this.beta1))})),this.incrementIterations()}dispose(){this.accBeta1.dispose(),this.iteration.dispose(),null!=this.accumulatedFirstMoment&&Object(s.d)(this.accumulatedFirstMoment.map((t=>t.variable))),null!=this.accumulatedWeightedInfNorm&&Object(s.d)(this.accumulatedWeightedInfNorm.map((t=>t.variable)))}async getWeights(){throw new Error("getWeights() is not implemented for Adamax yet.")}async setWeights(t){throw new 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(t,e){return new t(e.learningRate,e.beta1,e.beta2,e.epsilon,e.decay)}}e.a=m},function(t,e,n){"use strict";var a=n(4),s=n(44),i=n(20),o=n(9),c=n(22),u=n(21),l=n(155);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class h extends l.a{static get className(){return"Momentum"}constructor(t,e,n=false){super(t),this.learningRate=t,this.momentum=e,this.useNesterov=n,this.accumulations=[],this.m=Object(c.a)(this.momentum)}applyGradients(t){const e=undefined;(Array.isArray(t)?t.map((t=>t.name)):Object.keys(t)).forEach(((e,n)=>{const c=a.a.registeredVariables[e];if(null==this.accumulations[n]){const t=false;this.accumulations[n]={originalName:`${e}/momentum`,variable:Object(s.t)((()=>Object(u.a)(c).variable(t)))}}const l=this.accumulations[n].variable,gradient=Array.isArray(t)?t[n].tensor:t[e];null!=gradient&&Object(s.t)((()=>{let t;const e=Object(i.a)(Object(o.a)(this.m,l),gradient);t=this.useNesterov?Object(i.a)(Object(o.a)(this.c,Object(i.a)(gradient,Object(o.a)(e,this.m))),c):Object(i.a)(Object(o.a)(this.c,e),c),l.assign(e),c.assign(t)}))})),this.incrementIterations()}dispose(){this.m.dispose(),null!=this.accumulations&&Object(s.d)(this.accumulations.map((t=>t.variable)))}setMomentum(t){this.momentum=t}async getWeights(){return[await this.saveIterations()].concat(this.accumulations.map((t=>({name:t.originalName,tensor:t.variable}))))}async setWeights(t){t=await this.extractIterations(t);const e=false;this.accumulations=t.map((t=>({originalName:t.name,variable:t.tensor.variable(e)})))}getConfig(){return{learningRate:this.learningRate,momentum:this.momentum,useNesterov:this.useNesterov}}static fromConfig(t,e){return new t(e.learningRate,e.momentum,e.useNesterov)}}e.a=h},function(t,e,n){"use strict";var a=n(4),s=n(44),i=n(20),o=n(16),c=n(9),u=n(56),l=n(31),h=n(18),p=n(21),f=n(86);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class b extends f.a{static get className(){return"RMSProp"}constructor(t,e=.9,n=0,s=null,i=false){if(super(),this.learningRate=t,this.decay=e,this.momentum=n,this.epsilon=s,this.accumulatedMeanSquares=[],this.accumulatedMoments=[],this.accumulatedMeanGrads=[],this.centered=i,null==s&&(this.epsilon=a.a.backend.epsilon()),null==t)throw new Error("learningRate for RMSPropOptimizer must be defined.")}applyGradients(t){const e=undefined;(Array.isArray(t)?t.map((t=>t.name)):Object.keys(t)).forEach(((e,n)=>{const f=a.a.registeredVariables[e],b=false;null==this.accumulatedMeanSquares[n]&&(this.accumulatedMeanSquares[n]={originalName:`${e}/rms`,variable:Object(s.t)((()=>Object(p.a)(f).variable(b)))}),null==this.accumulatedMoments[n]&&(this.accumulatedMoments[n]={originalName:`${e}/momentum`,variable:Object(s.t)((()=>Object(p.a)(f).variable(b)))}),null==this.accumulatedMeanGrads[n]&&this.centered&&(this.accumulatedMeanGrads[n]={originalName:`${e}/mg`,variable:Object(s.t)((()=>Object(p.a)(f).variable(b)))});const gradient=Array.isArray(t)?t[n].tensor:t[e];if(null==gradient)return;const m=this.accumulatedMeanSquares[n].variable,g=this.accumulatedMoments[n].variable;Object(s.t)((()=>{const t=Object(i.a)(Object(c.a)(m,this.decay),Object(c.a)(Object(l.a)(gradient),1-this.decay));if(this.centered){const e=this.accumulatedMeanGrads[n].variable,a=Object(i.a)(Object(c.a)(e,this.decay),Object(c.a)(gradient,1-this.decay)),s=Object(o.a)(Object(c.a)(gradient,this.learningRate),Object(u.a)(Object(h.a)(t,Object(i.a)(Object(l.a)(a),this.epsilon)))),p=Object(i.a)(Object(c.a)(g,this.momentum),s);m.assign(t),e.assign(a),g.assign(p);const b=Object(h.a)(f,p);f.assign(b)}else{const t=Object(i.a)(Object(c.a)(m,this.decay),Object(c.a)(Object(l.a)(gradient),1-this.decay)),e=Object(i.a)(Object(c.a)(g,this.momentum),Object(o.a)(Object(c.a)(gradient,this.learningRate),Object(u.a)(Object(i.a)(t,this.epsilon))));m.assign(t),g.assign(e);const n=Object(h.a)(f,e);f.assign(n)}}))})),this.incrementIterations()}dispose(){null!=this.accumulatedMeanSquares&&Object(s.d)(this.accumulatedMeanSquares.map((t=>t.variable))),null!=this.accumulatedMeanGrads&&this.centered&&Object(s.d)(this.accumulatedMeanGrads.map((t=>t.variable))),null!=this.accumulatedMoments&&Object(s.d)(this.accumulatedMoments.map((t=>t.variable)))}async getWeights(){const t=[...this.accumulatedMeanSquares,...this.accumulatedMoments];return this.centered&&t.push(...this.accumulatedMeanGrads),[await this.saveIterations()].concat(t.map((t=>({name:t.originalName,tensor:t.variable}))))}async setWeights(t){t=await this.extractIterations(t);const e=this.centered?t.length/3:t.length/2,n=false;this.accumulatedMeanSquares=t.slice(0,e).map((t=>({originalName:t.name,variable:t.tensor.variable(n)}))),this.accumulatedMoments=t.slice(e,2*e).map((t=>({originalName:t.name,variable:t.tensor.variable(n)}))),this.centered&&(this.accumulatedMeanGrads=t.slice(2*e,3*e).map((t=>({originalName:t.name,variable:t.tensor.variable(n)}))))}getConfig(){return{learningRate:this.learningRate,decay:this.decay,momentum:this.momentum,epsilon:this.epsilon,centered:this.centered}}static fromConfig(t,e){return new t(e.learningRate,e.decay,e.momentum,e.epsilon,e.centered)}}e.a=b},function(t,e,n){"use strict";function a(input,t,size){const e=input.shape.length;A.assert(e===t.length,(()=>`Error in slice${e}D: Length of begin ${t} must match the rank of the array (${e}).`)),A.assert(e===size.length,(()=>`Error in slice${e}D: Length of size ${size} must match the rank of the array (${e}).`));for(let n=0;n<e;++n)A.assert(t[n]+size[n]<=input.shape[n],(()=>`Error in slice${e}D: begin[${n}] + size[${n}] (${t[n]+size[n]}) would overflow input.shape[${n}] (${input.shape[n]})`))}function s(t){const e=[];let n=0;for(;t>0;)1&t&&e.push(n),t/=2,n++;return e}function i(t,e,n){const size=[];for(let a=0;a<t.length;a++)size[a]=Math.ceil((e[a]-t[a])/n[a]);return size}function o(t,e,n,a){const s=[...t];for(let t=s.length;t<a.length;t++)s.push(1);for(let t=0;t<n;t++)0===t?s[e]=1:(s.splice(e,0,1),s.pop());return s}function c(t,e,n){return n<=t?n:n-(e-1)}function u(t,e){const n=[];for(let a=0;a<t;a++)n.push(e+a);return n}function l(t,e,n,a,s,i,c,u,l){const g=t.length;let v=new Array(g),w=new Array(g),y=new Array(g);if(e.length&&n>0){const l=e[0],f=n+1;v=h(c,l,f,a,t),w=p(u,l,f,s,t),y=o(i,l,f,t)}else for(let e=0;e<g;e++)v[e]=b(c,a,i,t,e,l),w[e]=m(u,s,i,t,e,l),y[e]=f(i,e,l);return{begin:v,end:w,strides:y}}function h(t,e,n,a,s){const i=[...s],o=u(n,e);for(let s=0;s<i.length;s++)if(o.indexOf(s)>-1)i[s]=0;else{const o=c(e,n,s);let u=a[o];t&1<<o&&(u=0),i[s]=u}return i}function p(t,e,n,a,s){const i=[...s],o=u(n,e);for(let s=0;s<i.length;s++)if(o.indexOf(s)>-1)i[s]=Number.MAX_SAFE_INTEGER;else{const o=c(e,n,s);let u=a[o];t&1<<o&&(u=Number.MAX_SAFE_INTEGER),i[s]=u}for(let t=0;t<i.length;t++){const e=s[t];i[t]<0&&(i[t]+=e),i[t]=A.clamp(0,i[t],s[t])}return i}function f(t,e,n){let a=t[e];return(n&1<<e||null==a)&&(a=1),a}function b(t,e,n,a,s,i){let o=e[s];const c=n[s]||1;(t&1<<s||i&1<<s||null==o)&&(o=c>0?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER);const u=a[s];return o<0&&(o+=u),o=A.clamp(0,o,u-1),o}function m(t,e,n,a,s,i){let o=e[s];const c=n[s]||1;(t&1<<s||i&1<<s||null==o)&&(o=c>0?Number.MAX_SAFE_INTEGER:Number.MIN_SAFE_INTEGER);const u=a[s];return o<0&&(o+=u),o=c>0?A.clamp(0,o,u):A.clamp(-1,o,u-1),o}function g(shape,t,size){let e=size.length;for(let t=0;t<size.length;t++)if(size[t]>1){e=t;break}for(let n=e+1;n<size.length;n++)if(t[n]>0||size[n]!==shape[n])return false;return true}function v(t,e){let n=t.length>0?t[t.length-1]:1;for(let a=0;a<t.length-1;a++)n+=t[a]*e[a];return n}function w(t,e,size){let n;const a=t.shape.length;let s;return n="number"==typeof e?[e,...new Array(a-1).fill(0)]:e.length<a?e.concat(new Array(a-e.length).fill(0)):e.slice(),n.forEach((d=>{A.assert(-1!==d,(()=>"slice() does not support negative begin indexing."))})),s=null==size?new Array(a).fill(-1):"number"==typeof size?[size,...new Array(a-1).fill(-1)]:size.length<a?size.concat(new Array(a-size.length).fill(-1)):size,s=s.map(((d,e)=>d>=0?d:(A.assert(-1===d,(()=>`Negative size values should be exactly -1 but got ${d} for the slice() size at index ${e}.`)),t.shape[e]-n[e]))),[n,s]}function y(t,e,n,a,s,i,o,c,u){let l;if(null==a?(l=new Array(e.length),l.fill(1)):l=a,null!=o&&0!=(o&o-1))throw new Error("Multiple ellipses in slice is not allowed.");let h=false;const p={dims:l.length,numAddAxisAfterEllipsis:0,begin:e.slice(),end:n.slice(),strides:l.slice(),beginMask:s,endMask:i,ellipsisMask:o,newAxisMask:c,shrinkAxisMask:u};for(let t=0;t<p.dims;t++)h&&0!=(1<<t&c)&&p.numAddAxisAfterEllipsis++,1<<t&o&&(h=true);h||(p.ellipsisMask|=1<<p.dims,p.dims++);const f={dims:t.length,beginMask:0,endMask:0,beginValid:false,endValid:false};O(p,f);let b=true,m=true,g=true;const v=[],w=[];for(let e=0;e<t.length;++e){if(0===f.strides[e])throw Error(`strides[${e}] must be non-zero`);const n=!!(f.shrinkAxisMask&1<<e),a=t[e];if(-1===a){v.push(n?1:-1);continue}const s=[f.beginMask&1<<e,f.endMask&1<<e],i=[f.strides[e]>0?0:-1,f.strides[e]>0?a:a-1];if(n&&f.strides[e]<=0)throw Error("only stride 1 allowed on non-range indexing.");g=g&&1===f.strides[e];const o=!!(f.beginMask&1<<e&&f.endMask&1<<e);if(f.beginValid&&f.endValid){if(n){const t=f.begin[e]<0?a+f.begin[e]:f.begin[e];if(f.begin[e]=t,f.end[e]=f.begin[e]+1,t<0||t>=a)throw Error(`slice index ${f.begin[e]} of dimension ${e} out of bounds.`)}else f.begin[e]=x(f.begin[e],0,f.strides[e],a,s,i),f.end[e]=x(f.end[e],1,f.strides[e],a,s,i);const t=1===f.strides[e]&&0===f.begin[e]&&f.end[e]===a;b=b&&t,m=m&&(0===e&&1===f.strides[e]||t)}else b=b&&1===f.strides[e]&&o,m=m&&(0===e&&1===f.strides[e]||o);let c,u=false;if(f.beginValid&&f.endValid?(c=f.end[e]-f.begin[e],u=true):n?(c=1,u=true):o&&a>=0&&(c=f.strides[e]<0?-a:a,u=true),u){let t;t=0===c||c<0!=f.strides[e]<0?0:Math.trunc(c/f.strides[e])+(c%f.strides[e]!=0?1:0),v.push(t)}else v.push(-1)}for(let t=0;t<f.finalShapeGatherIndices.length;++t){const e=f.finalShapeGatherIndices[t];e>=0?w.push(v[e]):e===I&&w.push(1)}const y=undefined;return{finalShapeSparse:w.filter(((t,e)=>f.finalShapeGatherIndices[e]!==I)),finalShape:w,isIdentity:b,sliceDim0:m,isSimpleSlice:g,begin:f.begin,end:f.end,strides:f.strides}}function O(t,e){e.beginMask=0,e.endMask=0,e.shrinkAxisMask=0;let n=0;e.beginValid=null!=t.begin,e.endValid=null!=t.end,e.begin=new Array(e.dims),e.end=new Array(e.dims),e.strides=new Array(e.dims),e.finalShapeGatherIndices=[],e.finalShapeGatherIndicesSparse=[],e.inputShapeGatherIndicesSparse=new Array(e.dims);for(let a=0;a<t.dims;a++)if(1<<a&t.ellipsisMask){const s=Math.min(e.dims-(t.dims-a)+1+t.numAddAxisAfterEllipsis,e.dims);for(;n<s;n++)e.begin[n]=0,e.end[n]=0,e.strides[n]=1,e.beginMask|=1<<n,e.endMask|=1<<n,e.finalShapeGatherIndices.push(n),e.finalShapeGatherIndicesSparse.push(-1),e.inputShapeGatherIndicesSparse[n]=a}else if(1<<a&t.newAxisMask)e.finalShapeGatherIndices.push(I),e.finalShapeGatherIndicesSparse.push(-1);else{if(n===e.begin.length)throw Error(`Index out of range using input dim ${n}; input has only ${e.dims} dims, ${e.begin.length}.`);null!=t.begin&&(e.begin[n]=t.begin[a]),null!=t.end&&(e.end[n]=t.end[a]),e.strides[n]=t.strides[a],t.beginMask&1<<a&&(e.beginMask|=1<<n),t.endMask&1<<a&&(e.endMask|=1<<n),t.shrinkAxisMask&1<<a?(e.finalShapeGatherIndices.push(j),e.finalShapeGatherIndicesSparse.push(-1),e.shrinkAxisMask|=1<<n):(e.finalShapeGatherIndices.push(n),e.finalShapeGatherIndicesSparse.push(a)),e.inputShapeGatherIndicesSparse[n]=a,n++}}function x(t,e,n,a,s,i){if(s[e])return n>0?i[e]:i[e+1&1];{const e=t<0?a+t:t;return e<i[0]?i[0]:e>i[1]?i[1]:e}}Object.defineProperty(e,"__esModule",{value:true}),e.assertParamsValid=a,e.maskToAxes=s,e.computeOutShape=i,e.stridesWithElidedDims=o,e.getNormalizedAxes=l,e.startIndicesWithElidedDims=h,e.stopIndicesWithElidedDims=p,e.stridesForAxis=f,e.startForAxis=b,e.stopForAxis=m,e.isSliceContinous=g,e.computeFlatOffset=v,e.parseSliceParams=w,e.sliceInfo=y;var A=n(5);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const I=-2,j=-1},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e){if(null==t.dtype||t.dtype===e.dtype)return e;try{return Object(h._179)(e,t.dtype)}catch(n){throw new p.e(`The dtype of the feed (${e.dtype}) can not be cast to the dtype of the key '${t.name}' (${t.dtype}).`)}}function s(t){null!=w&&w.setMaxEntries(t),null!=y&&y.setMaxEntries(t)}function i(t,e,n,a){const s=null!=n&&n.training,i=Array.isArray(t),c=i?t:[t],u=c.map((t=>t.name)),p=[],f=e.names();for(const t of u)-1!==f.indexOf(t)?p.push(e.getValue(t)):p.push(null);null!=a&&(a.maxNumTensors=-1/0,a.minNumTensors=1/0);const g=u.join(",")+"|"+e.names().sort().join(",");let O=w.get(g),x;if(null==O){const t=o(c,e);O=t.sorted,x=t.recipientCounts,w.put(g,O),y.put(g,x)}x={},s||Object.assign(x,y.get(g));const A=new v(e);for(let t=0;t<O.length;++t){if(null!=a){const t=Object(h._284)().numTensors;t>a.maxNumTensors&&(a.maxNumTensors=t),t<a.minNumTensors&&(a.minNumTensors=t)}const i=O[t],o=i.sourceLayer;if(o instanceof m.b)continue;const c=[],f=[],g=[];let v=false;for(const input of i.inputs){const t=A.getValue(input),n=A.getMask(input);c.push(t),f.push(n),null!=n&&(v=true),s||(x[input.name]--,0!==x[input.name]||e.hasKey(input)||-1!==u.indexOf(input.name)||t.isDisposed||true===input.sourceLayer.stateful||g.push(t))}v&&((n=n||{}).mask=f[0]);const w=Object(b.o)(o.apply(c,n));let y=null;o.supportsMasking&&(y=o.computeMask(c,f));const I=l(i),j=Array.isArray(I)?I:[I];for(let t=0;t<j.length;++t){A.hasKey(j[t])||A.add(j[t],w[t],Array.isArray(y)?y[0]:y);const index=u.indexOf(j[t].name);-1!==index&&(p[index]=w[t])}s||Object(h._209)(g)}return A.disposeMasks(),i?p:p[0]}function o(t,e){h._408.assert(null!=t&&t.length>0,(()=>"Expected at least one fetch, got none"));let n=[],a={};if(1===t.length){const s=u(t[0],e);n=s.sorted,a=s.recipientMap}else{const s=new Set;for(const fetch of t){const{sorted:t,recipientMap:i}=u(fetch,e);for(const e of t)s.has(e.name)||(n.push(e),s.add(e.name));for(const t in i)null==a[t]&&(a[t]=new Set),i[t].forEach((e=>a[t].add(e)))}}return{sorted:n,recipientCounts:c(a)}}function c(t){const e={};for(const n in t)e[n]=t[n].size;return e}function u(fetch,t){const e=new Set,n=[],a={};for(const n of t.names())e.add(n);const s=[],i=[];for(s.push(fetch);s.length>0;){const t=s[s.length-1];if(e.has(t.name)){s.pop();continue}const o=i[i.length-1]===s.length-1;if(0===t.inputs.length||o)s.pop(),n.push(t),e.add(t.name),o&&i.pop();else{i.push(s.length-1);for(const input of t.inputs)null==a[input.name]&&(a[input.name]=new Set),a[input.name].add(t.name),e.has(input.name)||s.push(input)}}return{sorted:n,recipientMap:a}}function l(fetch){let t;if(1===fetch.sourceLayer.inboundNodes.length)t=fetch.sourceLayer.output;else{let e=null;for(let t=0;t<fetch.sourceLayer.inboundNodes.length;++t)for(const n of fetch.sourceLayer.inboundNodes[t].outputTensors)if(n.id===fetch.id){e=t;break}t=fetch.sourceLayer.getOutputAt(e)}return t}e.c=s,e.b=i;var h=n(0),p=n(15),f=n(822),b=n(24),m=n(123),g=n(25);class v{constructor(t){if(this.id2Value={},this.id2Mask={},this.name2Id={},t instanceof v)for(const id in t.id2Value)this.id2Value[id]=t.id2Value[id],id in t.id2Mask&&(this.id2Mask[id]=t.id2Mask[id]);else{if(null==t)return;for(const e of t)this.add(e.key,e.value)}}add(t,e,n){if(null!=this.id2Value[t.id])throw new p.e(`Duplicate key: name=${t.name}, id=${t.id}`);return this.id2Value[t.id]=a(t,e),this.name2Id[t.name]=t.id,null!=n&&(this.id2Mask[t.id]=n),this}addFeed(t){this.add(t.key,t.value)}hasKey(t){return null!=this.id2Value[t.id]}names(){return Object.keys(this.name2Id)}getValue(t){if(t instanceof g.d){if(null==this.id2Value[t.id])throw new p.e(`Nonexistent key: ${t.name}`);return this.id2Value[t.id]}{const id=this.name2Id[t];if(null==id)throw new p.e(`Feed dict has no SymbolicTensor name: ${t}`);return this.id2Value[id]}}getMask(t){if(t instanceof g.d){if(null==this.id2Value[t.id])throw new p.e(`Nonexistent key: ${t.name}`);return this.id2Mask[t.id]}{const id=this.name2Id[t];if(null==id)throw new p.e(`Feed dict has no SymbolicTensor name: ${t}`);return this.id2Mask[id]}}disposeMasks(){null!=this.id2Mask&&Object(h._209)(this.id2Mask)}}e.a=v;const w=new f.a,y=new f.a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,index,e){return("inboundNodes"===t||"outputLayers"===t||"inputLayers"===t)&&0===index&&"string"==typeof e}function s(t,e){if(null===t)return null;if("string"==typeof t)return o.n(t);if("number"==typeof t||"boolean"==typeof t)return t;if(t instanceof Array){const n=[],i=t.length;for(let o=0;o<i;++o){const i=t[o];a(e,o,i)?n.push(i):n.push(s(i,e))}return n}{const e={};for(const n of Object.keys(t)){const a=t[n];if("name"===n&&"string"==typeof a)e[n]=a;else{const t=o.n(n);e[t]=s(a,t)}}return e}}function i(t,e){if(null==t)return null;if("string"==typeof t)return o.p(t);if("number"==typeof t||"boolean"==typeof t)return t;if(t instanceof Array){const n=[],s=t.length;for(let o=0;o<s;++o){const s=t[o];a(e,o,s)?n.push(s):n.push(i(s,e))}return n}{const e={};for(const n of Object.keys(t)){const a=t[n],s=o.p(n);e[s]="name"!==n&&"className"!==n||"string"!=typeof a?i(a,n):a}return e}}e.a=s,e.b=i;var o=n(24)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));
/** @license See the LICENSE file. */
const a="4.15.0"},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e){return Object(p._394)((()=>(Object(g.a)(e),"channelsFirst"===e?p._399(t,[0,2,3,1]):t)))}function s(t,e){return Object(p._394)((()=>(Object(g.a)(e),"channelsFirst"===e?p._399(t,[0,2,3,4,1]):t)))}function i(t,e,n,a=1,s="valid",i,o=1){return Object(p._394)((()=>{if(null==i&&(i=Object(b.b)()),Object(g.a)(i),3!==t.shape.length)throw new y.e(`The input of a conv1dWithBias operation should be 3, but is ${t.shape.length} instead.`);if(3!==e.shape.length)throw new y.e(`The kernel for a conv1dWithBias operation should be 3, but is ${e.shape.length} instead`);if(null!=n&&1!==n.shape.length)throw new y.e(`The bias for a conv1dWithBias operation should be 1, but is ${e.shape.length} instead`);if("channelsFirst"===i&&(t=p._399(t,[0,2,1])),"causal"===s)throw new y.c("The support for CAUSAL padding mode in conv1dWithBias is not implemented yet.");let c=p._189(t,e,a,"same"===s?"same":"valid","NWC",o);return null!=n&&(c=m.b(c,n)),c}))}function o(t,e,n=1,a="valid",s,o=1){return Object(p._394)((()=>(Object(g.a)(s),i(t,e,null,n,a,s,o))))}function c(t,e,n=[1,1],a="valid",s,i){return Object(p._394)((()=>(Object(g.a)(s),u(t,e,null,n,a,s,i))))}function u(t,e,n,s=[1,1],i="valid",o,c,u=null){return Object(p._394)((()=>{if(null==o&&(o=Object(b.b)()),Object(g.a)(o),3!==t.rank&&4!==t.rank)throw new y.e(`conv2dWithBiasActivation expects input to be of rank 3 or 4, but received ${t.rank}.`);if(3!==e.rank&&4!==e.rank)throw new y.e(`conv2dWithBiasActivation expects kernel to be of rank 3 or 4, but received ${t.rank}.`);let l=a(t,o);if("causal"===i)throw new y.c("The support for CAUSAL padding mode in conv1dWithBias is not implemented yet.");return l=p._236.conv2d({x:l,filter:e,strides:s,pad:"same"===i?"same":"valid",dilations:c,dataFormat:"NHWC",bias:n,activation:u}),"channelsFirst"===o&&(l=p._399(l,[0,3,1,2])),l}))}function l(t,e,n=[1,1,1],a="valid",s,i){return Object(p._394)((()=>(Object(g.a)(s),h(t,e,null,n,a,s,i))))}function h(t,e,n,a=[1,1,1],i="valid",o,c){return Object(p._394)((()=>{if(null==o&&(o=Object(b.b)()),Object(g.a)(o),4!==t.rank&&5!==t.rank)throw new y.e(`conv3dWithBias expects input to be of rank 4 or 5, but received ${t.rank}.`);if(4!==e.rank&&5!==e.rank)throw new y.e(`conv3dWithBias expects kernel to be of rank 4 or 5, but received ${t.rank}.`);let u=s(t,o);if("causal"===i)throw new y.c("The support for CAUSAL padding mode in conv3dWithBias is not implemented yet.");return u=p._192(u,e,a,"same"===i?"same":"valid","NDHWC",c),null!=n&&(u=m.b(u,n)),"channelsFirst"===o&&(u=p._399(u,[0,4,1,2,3])),u}))}e.j=a,e.k=s,n.d(e,"c",(function(){return k})),n.d(e,"e",(function(){return S})),n.d(e,"d",(function(){return T})),n.d(e,"f",(function(){return L})),n.d(e,"h",(function(){return N})),n.d(e,"b",(function(){return E})),n.d(e,"g",(function(){return M})),n.d(e,"i",(function(){return F}));var p=n(0),f=n(160),b=n(73),m=n(32),g=n(51),v=n(74),w=n(25),y=n(15),O=n(58),x=n(64),A=n(161),I=n(24),j=n(29);class C extends w.b{constructor(t,e){if(super(e),this.bias=null,this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_BIAS_INITIALIZER="zeros",C.verifyArgs(e),this.rank=t,I.b(this.rank,"rank"),1!==this.rank&&2!==this.rank&&3!==this.rank)throw new y.c(`Convolution layer for rank other than 1, 2, or 3 (${this.rank}) is not implemented yet.`);if(this.kernelSize=Object(A.c)(e.kernelSize,t,"kernelSize"),this.strides=Object(A.c)(null==e.strides?1:e.strides,t,"strides"),this.padding=null==e.padding?"valid":e.padding,Object(g.c)(this.padding),this.dataFormat=null==e.dataFormat?"channelsLast":e.dataFormat,Object(g.a)(this.dataFormat),this.activation=Object(f.b)(e.activation),this.useBias=null==e.useBias||e.useBias,this.biasInitializer=Object(O.q)(e.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.biasConstraint=Object(v.e)(e.biasConstraint),this.biasRegularizer=Object(x.b)(e.biasRegularizer),this.activityRegularizer=Object(x.b)(e.activityRegularizer),this.dilationRate=Object(A.c)(null==e.dilationRate?1:e.dilationRate,t,"dilationRate"),1===this.rank&&Array.isArray(this.dilationRate)&&1!==this.dilationRate.length)throw new y.e(`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 y.e(`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 y.e(`dilationRate must be a number or array of three numbers for 3D convolution, but received ${JSON.stringify(this.dilationRate)}`)}static verifyArgs(t){if(I.a("kernelSize"in t,"required key 'kernelSize' not in config"),"number"!=typeof t.kernelSize&&!I.c(t.kernelSize,"number",1,3))throw new y.e(`BaseConv expects config.kernelSize to be number or number[] with length 1, 2, or 3, but received ${JSON.stringify(t.kernelSize)}.`)}getConfig(){const t={kernelSize:this.kernelSize,strides:this.strides,padding:this.padding,dataFormat:this.dataFormat,dilationRate:this.dilationRate,activation:Object(f.c)(this.activation),useBias:this.useBias,biasInitializer:Object(O.r)(this.biasInitializer),biasRegularizer:Object(x.e)(this.biasRegularizer),activityRegularizer:Object(x.e)(this.activityRegularizer),biasConstraint:Object(v.f)(this.biasConstraint)},e=super.getConfig();return Object.assign(t,e),t}}e.a=C;class _ extends C{constructor(t,e){super(t,e),this.kernel=null,_.verifyArgs(e),this.filters=e.filters,I.b(this.filters,"filters"),this.kernelInitializer=Object(O.q)(e.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.kernelConstraint=Object(v.e)(e.kernelConstraint),this.kernelRegularizer=Object(x.b)(e.kernelRegularizer)}build(t){t=Object(j.a)(t);const e="channelsFirst"===this.dataFormat?1:t.length-1;if(null==t[e])throw new y.e(`The channel dimension of the input should be defined. Found ${t[e]}`);const n=t[e],a=this.kernelSize.concat([n,this.filters]);this.kernel=this.addWeight("kernel",a,null,this.kernelInitializer,this.kernelRegularizer,true,this.kernelConstraint),this.useBias&&(this.bias=this.addWeight("bias",[this.filters],null,this.biasInitializer,this.biasRegularizer,true,this.biasConstraint)),this.inputSpec=[{ndim:this.rank+2,axes:{[e]:n}}],this.built=true}call(t,e){return Object(p._394)((()=>{let e;t=Object(j.b)(t);const n=null==this.bias?null:this.bias.read(),a=I.i(this.activation.getClassName());if(null!=a&&2===this.rank)e=u(t,this.kernel.read(),n,this.strides,this.padding,this.dataFormat,this.dilationRate,a);else{if(1===this.rank)e=i(t,this.kernel.read(),n,this.strides[0],this.padding,this.dataFormat,this.dilationRate[0]);else if(2===this.rank)e=u(t,this.kernel.read(),n,this.strides,this.padding,this.dataFormat,this.dilationRate);else{if(3!==this.rank)throw new y.c("convolutions greater than 3D are not implemented yet.");e=h(t,this.kernel.read(),n,this.strides,this.padding,this.dataFormat,this.dilationRate)}null!=this.activation&&(e=this.activation.apply(e))}return e}))}computeOutputShape(t){t=Object(j.a)(t);const e=[],n="channelsLast"===this.dataFormat?t.slice(1,t.length-1):t.slice(2);for(let t=0;t<n.length;++t){const a=Object(A.a)(n[t],this.kernelSize[t],this.padding,this.strides[t],"number"==typeof this.dilationRate?this.dilationRate:this.dilationRate[t]);e.push(a)}let a=[t[0]];return"channelsLast"===this.dataFormat?(a=a.concat(e),a.push(this.filters)):(a.push(this.filters),a=a.concat(e)),a}getConfig(){const t={filters:this.filters,kernelInitializer:Object(O.r)(this.kernelInitializer),kernelRegularizer:Object(x.e)(this.kernelRegularizer),kernelConstraint:Object(v.f)(this.kernelConstraint)},e=super.getConfig();return Object.assign(t,e),t}static verifyArgs(t){if(!("filters"in t)||"number"!=typeof t.filters||t.filters<1)throw new y.e(`Convolution layer expected config.filters to be a 'number' > 0 but got ${JSON.stringify(t.filters)}`)}}class k extends _{constructor(t){super(2,t),k.verifyArgs(t)}getConfig(){const t=super.getConfig();return delete t.rank,t}static verifyArgs(t){if("number"!=typeof t.kernelSize&&!I.c(t.kernelSize,"number",1,2))throw new y.e(`Conv2D expects config.kernelSize to be number or number[] with length 1 or 2, but received ${JSON.stringify(t.kernelSize)}.`)}}k.className="Conv2D",p._349.registerClass(k);class S extends _{constructor(t){super(3,t),S.verifyArgs(t)}getConfig(){const t=super.getConfig();return delete t.rank,t}static verifyArgs(t){if("number"!=typeof t.kernelSize&&!(Array.isArray(t.kernelSize)&&(1===t.kernelSize.length||3===t.kernelSize.length)))throw new y.e(`Conv3D expects config.kernelSize to be number or [number, number, number], but received ${JSON.stringify(t.kernelSize)}.`)}}S.className="Conv3D",p._349.registerClass(S);class T extends k{constructor(t){if(super(t),this.inputSpec=[new w.a({ndim:4})],"same"!==this.padding&&"valid"!==this.padding)throw new y.e(`Conv2DTranspose currently supports only padding modes 'same' and 'valid', but received padding mode ${this.padding}`)}build(t){if(4!==(t=Object(j.a)(t)).length)throw new y.e("Input should have rank 4; Received input shape: "+JSON.stringify(t));const e="channelsFirst"===this.dataFormat?1:t.length-1;if(null==t[e])throw new y.e("The channel dimension of the inputs should be defined. Found `None`.");const n=t[e],a=this.kernelSize.concat([this.filters,n]);this.kernel=this.addWeight("kernel",a,"float32",this.kernelInitializer,this.kernelRegularizer,true,this.kernelConstraint),this.useBias&&(this.bias=this.addWeight("bias",[this.filters],"float32",this.biasInitializer,this.biasRegularizer,true,this.biasConstraint)),this.inputSpec=[new w.a({ndim:4,axes:{[e]:n}})],this.built=true}call(t,e){return p._394((()=>{let input=Object(j.b)(t);if(4!==input.shape.length)throw new y.e(`Conv2DTranspose.call() expects input tensor to be rank-4, but received a tensor of rank-${input.shape.length}`);const e=input.shape,n=e[0];let a,s;"channelsFirst"===this.dataFormat?(a=2,s=3):(a=1,s=2);const i=e[a],o=e[s],c=this.kernelSize[0],u=this.kernelSize[1],l=this.strides[0],h=this.strides[1],f=undefined,b=undefined,g=[n,Object(A.b)(i,l,c,this.padding),Object(A.b)(o,h,u,this.padding),this.filters];"channelsLast"!==this.dataFormat&&(input=p._399(input,[0,2,3,1]));let v=p._191(input,this.kernel.read(),g,this.strides,this.padding);return"channelsLast"!==this.dataFormat&&(v=p._399(v,[0,3,1,2])),null!=this.bias&&(v=m.b(v,this.bias.read(),this.dataFormat)),null!=this.activation&&(v=this.activation.apply(v)),v}))}computeOutputShape(t){const e=(t=Object(j.a)(t)).slice();let n,a,s;"channelsFirst"===this.dataFormat?(n=1,a=2,s=3):(n=3,a=1,s=2);const i=this.kernelSize[0],o=this.kernelSize[1],c=this.strides[0],u=this.strides[1];return e[n]=this.filters,e[a]=Object(A.b)(e[a],c,i,this.padding),e[s]=Object(A.b)(e[s],u,o,this.padding),e}getConfig(){const t=super.getConfig();return delete t.dilationRate,t}}T.className="Conv2DTranspose",p._349.registerClass(T);class L extends S{constructor(t){if(super(t),this.inputSpec=[new w.a({ndim:5})],"same"!==this.padding&&"valid"!==this.padding)throw new y.e(`Conv3DTranspose currently supports only padding modes 'same' and 'valid', but received padding mode ${this.padding}`)}build(t){if(5!==(t=Object(j.a)(t)).length)throw new y.e("Input should have rank 5; Received input shape: "+JSON.stringify(t));const e="channelsFirst"===this.dataFormat?1:t.length-1;if(null==t[e])throw new y.e("The channel dimension of the inputs should be defined. Found `None`.");const n=t[e],a=this.kernelSize.concat([this.filters,n]);this.kernel=this.addWeight("kernel",a,"float32",this.kernelInitializer,this.kernelRegularizer,true,this.kernelConstraint),this.useBias&&(this.bias=this.addWeight("bias",[this.filters],"float32",this.biasInitializer,this.biasRegularizer,true,this.biasConstraint)),this.inputSpec=[new w.a({ndim:5,axes:{[e]:n}})],this.built=true}call(t,e){return p._394((()=>{let input=Object(j.b)(t);if(5!==input.shape.length)throw new y.e(`Conv3DTranspose.call() expects input tensor to be rank-4, but received a tensor of rank-${input.shape.length}`);const e=input.shape,n=e[0];let a,s,i;"channelsFirst"===this.dataFormat?(i=2,a=3,s=4):(i=1,a=2,s=3);const o=e[i],c=e[a],u=e[s],l=this.kernelSize[0],h=this.kernelSize[1],f=this.kernelSize[2],b=this.strides[0],g=this.strides[1],v=this.strides[2],w=undefined,O=undefined,x=undefined,I=[n,Object(A.b)(o,b,l,this.padding),Object(A.b)(c,g,h,this.padding),Object(A.b)(u,v,f,this.padding),this.filters];"channelsLast"!==this.dataFormat&&(input=p._399(input,[0,2,3,4,1]));let C=p._193(input,this.kernel.read(),I,this.strides,this.padding);return"channelsLast"!==this.dataFormat&&(C=p._399(C,[0,4,1,2,3])),null!==this.bias&&(C=m.b(C,this.bias.read(),this.dataFormat)),null!==this.activation&&(C=this.activation.apply(C)),C}))}computeOutputShape(t){const e=(t=Object(j.a)(t)).slice();let n,a,s,i;"channelsFirst"===this.dataFormat?(n=1,a=2,s=3,i=4):(n=4,a=1,s=2,i=3);const o=this.kernelSize[0],c=this.kernelSize[1],u=this.kernelSize[2],l=this.strides[0],h=this.strides[1],p=this.strides[2];return e[n]=this.filters,e[a]=Object(A.b)(e[a],l,o,this.padding),e[s]=Object(A.b)(e[s],h,c,this.padding),e[i]=Object(A.b)(e[i],p,u,this.padding),e}getConfig(){const t=super.getConfig();return delete t.dilationRate,t}}L.className="Conv3DTranspose",p._349.registerClass(L);class B extends _{constructor(t,e){if(super(t,e),this.DEFAULT_DEPTHWISE_INITIALIZER="glorotUniform",this.DEFAULT_POINTWISE_INITIALIZER="glorotUniform",this.depthwiseKernel=null,this.pointwiseKernel=null,null==e.filters)throw new y.e("The `filters` configuration field is required by SeparableConv, but is unspecified.");if(null!=e.kernelInitializer||null!=e.kernelRegularizer||null!=e.kernelConstraint)throw new y.e("Fields kernelInitializer, kernelRegularizer and kernelConstraint are invalid for SeparableConv2D. Use depthwiseInitializer, depthwiseRegularizer, depthwiseConstraint, pointwiseInitializer, pointwiseRegularizer and pointwiseConstraint instead.");if(null!=e.padding&&"same"!==e.padding&&"valid"!==e.padding)throw new y.e(`SeparableConv${this.rank}D supports only padding modes: 'same' and 'valid', but received ${JSON.stringify(e.padding)}`);this.depthMultiplier=null==e.depthMultiplier?1:e.depthMultiplier,this.depthwiseInitializer=Object(O.q)(e.depthwiseInitializer||this.DEFAULT_DEPTHWISE_INITIALIZER),this.depthwiseRegularizer=Object(x.b)(e.depthwiseRegularizer),this.depthwiseConstraint=Object(v.e)(e.depthwiseConstraint),this.pointwiseInitializer=Object(O.q)(e.depthwiseInitializer||this.DEFAULT_POINTWISE_INITIALIZER),this.pointwiseRegularizer=Object(x.b)(e.pointwiseRegularizer),this.pointwiseConstraint=Object(v.e)(e.pointwiseConstraint)}build(t){if((t=Object(j.a)(t)).length<this.rank+2)throw new y.e(`Inputs to SeparableConv${this.rank}D should have rank ${this.rank+2}, but received input shape: ${JSON.stringify(t)}`);const e="channelsFirst"===this.dataFormat?1:t.length-1;if(null==t[e]||t[e]<0)throw new y.e(`The channel dimension of the inputs should be defined, but found ${JSON.stringify(t[e])}`);const n=t[e],a=this.kernelSize.concat([n,this.depthMultiplier]),s=[];for(let t=0;t<this.rank;++t)s.push(1);s.push(n*this.depthMultiplier,this.filters);const i=true;this.depthwiseKernel=this.addWeight("depthwise_kernel",a,"float32",this.depthwiseInitializer,this.depthwiseRegularizer,i,this.depthwiseConstraint),this.pointwiseKernel=this.addWeight("pointwise_kernel",s,"float32",this.pointwiseInitializer,this.pointwiseRegularizer,i,this.pointwiseConstraint),this.useBias?this.bias=this.addWeight("bias",[this.filters],"float32",this.biasInitializer,this.biasRegularizer,i,this.biasConstraint):this.bias=null,this.inputSpec=[new w.a({ndim:this.rank+2,axes:{[e]:n}})],this.built=true}call(t,e){return Object(p._394)((()=>{let e;if(t=Object(j.b)(t),1===this.rank)throw new y.c("1D separable convolution is not implemented yet.");return 2===this.rank&&("channelsFirst"===this.dataFormat&&(t=p._399(t,[0,2,3,1])),e=p._348(t,this.depthwiseKernel.read(),this.pointwiseKernel.read(),this.strides,this.padding,this.dilationRate,"NHWC")),this.useBias&&(e=m.b(e,this.bias.read(),this.dataFormat)),null!=this.activation&&(e=this.activation.apply(e)),"channelsFirst"===this.dataFormat&&(e=p._399(e,[0,3,1,2])),e}))}getConfig(){const t=super.getConfig();return delete t.rank,delete t.kernelInitializer,delete t.kernelRegularizer,delete t.kernelConstraint,t.depthwiseInitializer=Object(O.r)(this.depthwiseInitializer),t.pointwiseInitializer=Object(O.r)(this.pointwiseInitializer),t.depthwiseRegularizer=Object(x.e)(this.depthwiseRegularizer),t.pointwiseRegularizer=Object(x.e)(this.pointwiseRegularizer),t.depthwiseConstraint=Object(v.f)(this.depthwiseConstraint),t.pointwiseConstraint=Object(v.f)(this.pointwiseConstraint),t}}B.className="SeparableConv";class N extends B{constructor(t){super(2,t)}}N.className="SeparableConv2D",p._349.registerClass(N);class E extends _{constructor(t){super(1,t),E.verifyArgs(t),this.inputSpec=[{ndim:3}]}getConfig(){const t=super.getConfig();return delete t.rank,delete t.dataFormat,t}static verifyArgs(t){if("number"!=typeof t.kernelSize&&!I.c(t.kernelSize,"number",1,1))throw new y.e(`Conv1D expects config.kernelSize to be number or number[] with length 1, but received ${JSON.stringify(t.kernelSize)}.`)}}E.className="Conv1D",p._349.registerClass(E);class M extends w.b{constructor(t){super(t),"number"==typeof t.cropping?this.cropping=[[t.cropping,t.cropping],[t.cropping,t.cropping]]:"number"==typeof t.cropping[0]?this.cropping=[[t.cropping[0],t.cropping[0]],[t.cropping[1],t.cropping[1]]]:this.cropping=t.cropping,this.dataFormat=void 0===t.dataFormat?"channelsLast":t.dataFormat,this.inputSpec=[{ndim:4}]}computeOutputShape(t){return"channelsFirst"===this.dataFormat?[t[0],t[1],t[2]-this.cropping[0][0]-this.cropping[0][1],t[3]-this.cropping[1][0]-this.cropping[1][1]]:[t[0],t[1]-this.cropping[0][0]-this.cropping[0][1],t[2]-this.cropping[1][0]-this.cropping[1][1],t[3]]}call(t,e){return Object(p._394)((()=>{if(t=Object(j.b)(t),"channelsLast"===this.dataFormat){const e=m.p(t,this.cropping[0][0],t.shape[1]-this.cropping[0][0]-this.cropping[0][1],2);return m.p(e,this.cropping[1][0],t.shape[2]-this.cropping[1][1]-this.cropping[1][0],3)}{const e=m.p(t,this.cropping[0][0],t.shape[2]-this.cropping[0][0]-this.cropping[0][1],3);return m.p(e,this.cropping[1][0],t.shape[3]-this.cropping[1][1]-this.cropping[1][0],4)}}))}getConfig(){const t={cropping:this.cropping,dataFormat:this.dataFormat},e=super.getConfig();return Object.assign(t,e),t}}M.className="Cropping2D",p._349.registerClass(M);class F extends w.b{constructor(t){super(t),this.DEFAULT_SIZE=[2,2],this.inputSpec=[{ndim:4}],this.size=null==t.size?this.DEFAULT_SIZE:t.size,this.dataFormat=null==t.dataFormat?"channelsLast":t.dataFormat,Object(g.a)(this.dataFormat),this.interpolation=null==t.interpolation?"nearest":t.interpolation,Object(g.b)(this.interpolation)}computeOutputShape(t){if("channelsFirst"===this.dataFormat){const e=null==t[2]?null:this.size[0]*t[2],n=null==t[3]?null:this.size[1]*t[3];return[t[0],t[1],e,n]}{const e=null==t[1]?null:this.size[0]*t[1],n=null==t[2]?null:this.size[1]*t[2];return[t[0],e,n,t[3]]}}call(t,e){return p._394((()=>{let input=Object(j.b)(t);const e=input.shape;if("channelsFirst"===this.dataFormat){input=p._399(input,[0,2,3,1]);const t=this.size[0]*e[2],n=this.size[1]*e[3],a="nearest"===this.interpolation?p._250.resizeNearestNeighbor(input,[t,n]):p._250.resizeBilinear(input,[t,n]);return p._399(a,[0,3,1,2])}{const t=this.size[0]*e[1],n=this.size[1]*e[2];return"nearest"===this.interpolation?p._250.resizeNearestNeighbor(input,[t,n]):p._250.resizeBilinear(input,[t,n])}}))}getConfig(){const t={size:this.size,dataFormat:this.dataFormat,interpolation:this.interpolation},e=super.getConfig();return Object.assign(t,e),t}}F.className="UpSampling2D",p._349.registerClass(F)},function(t,e,n){"use strict";function a(t,e){const n={tfOpName:t,category:"custom",inputs:[],attrs:[],customExecutor:e};o[t]=n}function s(t){return o[t]}function i(t){delete o[t]}e.c=a,e.b=s,e.a=i;
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
function a(input,t){return s(input,t)}function s(input,t,e=new Map,n=new Set){if(null==input)return null;if("function"==typeof Blob&&input instanceof Blob)return input.slice();if(n.has(input))throw new Error("Circular references are not supported.");if(e.has(input))return e.get(input);const a=t(input);if(a.recurse&&null!==a.value)throw new Error("A deep map function may not return both a value and recurse=true.");if(a.recurse){if(l(input)){const a=Array.isArray(input)?[]:{};n.add(input);for(const i in input){const o=undefined,c=s(input[i],t,e,n);a[i]=c}return n.delete(input),input.__proto__&&(a.__proto__=input.__proto__),a}throw new Error(`Can't recurse into non-iterable type: ${input}`)}return e.set(input,a.value),a.value}function i(t,e=c){return o(t,e)}function o(t,e,n=new Set){const input=t[0];if(n.has(input))throw new Error("Circular references are not supported.");const a=e(t);if(a.recurse&&null!==a.value)throw new Error("A deep zip function may not return both a value and recurse=true.");if(a.recurse){if(l(input)){const a=Array.isArray(input)?[]:{};n.add(input);for(const s in input){const i=undefined,c=o(t.map((t=>t[s])),e,n);a[s]=c}return n.delete(input),a}throw new Error(`Can't recurse into non-iterable type: ${input}`)}return a.value}function c(t){return null===t?null:l(t[0])?{value:null,recurse:true}:{value:t,recurse:false}}async function u(input,t){const e=new Map;s(input,t,e);for(const t of Array.from(e.keys())){const n=e.get(t);if(f._408.isPromise(n)){const a=await n;e.set(t,a)}}const n=undefined;return s(input,t,e)}function l(t){let e=false;if(f._222().get("IS_BROWSER"))e=t instanceof TextDecoder;else{const{StringDecoder:a}=n(909);e=t instanceof a}return null!=t&&!ArrayBuffer.isView(t)&&(Array.isArray(t)||"object"==typeof t&&!(t instanceof f._133)&&!(t instanceof Promise)&&!e)}function h(t){return null==t||p(t)||Array.isArray(t)||"object"==typeof t&&t instanceof f._133||f._408.isTypedArray(t)}function p(t){return null===t||"object"!=typeof t&&"function"!=typeof t}e.b=a,e.d=i,e.f=c,e.c=u,e.e=l,e.a=h;var f=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,size){const s=i._408.sizeFromShape(a),o=i._408.makeZerosTypedArray(size,n);for(let n=0;n<t.length;n++){const a=t[n];if(a<0)throw new Error("Input x must be non-negative!");a>=size||(o[a]+=s>0?e[n]:1)}return o}function s(t,e,size,n=false){const a=t.shape[0],s=t.shape[1],o=Object(i._178)([a,size],e.dtype);for(let i=0;i<a;i++)for(let a=0;a<s;a++){const s=t.get(i,a);if(s<0)throw new Error("Input x must be non-negative!");s>=size||(n?o.set(1,i,s):e.size>0?o.set(o.get(i,s)+e.get(i,a),i,s):o.set(o.get(i,s)+1,i,s))}return o}e.a=a,e.b=s;var i=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t===e?1:0));e.c=o;const c=Object(i.a)(a._9,o,null,"bool");e.a=c;const u={kernelName:a._9,backendName:"cpu",kernelFunc:c};e.b=u},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)((t=>Math.exp(t)));e.c=o;const c=Object(i.b)(a._11,o,"float32");e.a=c;const u={kernelName:a._11,backendName:"cpu",kernelFunc:c};e.b=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,i){const o=e.length,c=s._408.sizeFromShape(e),u=s._408.computeStrides(e),l=s._408.computeStrides(i),h=s._408.getTypedArrayFromDType(n,s._408.sizeFromShape(i));for(let e=0;e<c;++e){const n=s._408.indexToLoc(e,o,u),i=new Array(n.length);for(let t=0;t<i.length;t++)i[t]=n[a[t]];const c=undefined;h[s._408.locToIndex(i,o,l)]=t[e]}return h}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)((t=>1/(1+Math.exp(-t))));e.c=o;const c=Object(i.a)(a._106,(t=>1/(1+Math.exp(-t))));e.a=c;const u={kernelName:a._106,backendName:"cpu",kernelFunc:c};e.b=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t,e,n,a,i=false,o=0){const c=n.length,u=[t[0],input.length/t[0]],l=u[1],h=undefined,p=c>0?a[c-1]+1:0;if(p<0)throw new Error(s._164.getSparseSegmentReductionNegativeSegmentIdsErrorMessage());const f=t.slice();f[0]=p;const b=f.reduce(((product,t)=>product*t),1),m=s._408.getArrayFromDType(e,b);if(0===c)return p>0&&m.fill(o),[m,f];if(p<=0)throw new Error(s._164.getSparseSegmentReductionNegativeSegmentIdsErrorMessage());let g=0,v=1,w=0,y=a[g];for(;;){let t=0;if(v<c){if(t=a[v],y===t){++v;continue}if(y>=t)throw new Error(s._164.getSparseSegmentReductionNonIncreasingSegmentIdsErrorMessage())}if(y<0||y>=p)throw new Error(s._164.getSparseSegmentReductionSegmentIdOutOfRangeErrorMessage(y,p));y>w&&m.fill(o,w*l,y*l);for(let t=g;t<v;++t){const index=n[t];if(index<0||index>=u[0])throw new Error(s._164.getSparseSegmentReductionIndicesOutOfRangeErrorMessage(t,n[t],u[0]));for(let t=0;t<l;t++)m[y*l+t]+=input[index*l+t]}if(i)for(let t=0;t<l;t++)m[y*l+t]/=v-g;if(g=v,++v,w=y+1,y=t,v>c)break}return w<p&&m.fill(o,w*l,p*l),[m,f]}e.a=a;var s=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,p){if("linear"===n)return Object(i.a)({inputs:{x:e},backend:t});if("relu"===n)return Object(u.a)({inputs:{x:e},backend:t});if("elu"===n)return Object(s.a)({inputs:{x:e},backend:t});if("relu6"===n)return Object(l.a)({inputs:{x:e},backend:t});if("prelu"===n)return Object(c.a)({inputs:{x:e,alpha:a},backend:t});if("leakyrelu"===n)return Object(o.a)({inputs:{x:e},backend:t,attrs:{alpha:p}});if("sigmoid"===n)return Object(h.a)({inputs:{x:e},backend:t});throw new Error(`Activation ${n} has not been implemented for the CPU backend.`)}e.a=a;var s=n(355),i=n(65),o=n(356),c=n(357),u=n(358),l=n(359),h=n(220)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:p}=t,{axis:f}=p,b=s._408.parseAxisParam(f,e[0].shape)[0],m=e.map((t=>t.shape));s._164.assertParamsConsistent(m,b);let g=s._164.computeOutShape(e.map((t=>t.shape)),b);if(0===s._408.sizeFromShape(g))return n.makeTensorInfo(g,e[0].dtype,[]);const v=e.filter((t=>s._408.sizeFromShape(t.shape)>0));if(1===v.length)return Object(c.a)({inputs:{x:v[0]},backend:n});if("complex64"===v[0].dtype){const t=v.map((t=>Object(l.a)({inputs:{input:t},backend:n}))),e=v.map((t=>Object(u.a)({inputs:{input:t},backend:n}))),s=a({inputs:t,backend:n,attrs:{axis:b}}),o=a({inputs:e,backend:n,attrs:{axis:b}}),c=Object(i.a)({inputs:{real:s,imag:o},backend:n});return t.forEach((r=>n.disposeIntermediateTensorInfo(r))),e.forEach((t=>n.disposeIntermediateTensorInfo(t))),n.disposeIntermediateTensorInfo(s),n.disposeIntermediateTensorInfo(o),c}const w=v.map((t=>{const e=undefined,shape=[-1,s._408.sizeFromShape(t.shape.slice(b))];return Object(h.a)({inputs:{x:t},backend:n,attrs:{shape:shape}})})),y=w.map((t=>({vals:n.data.get(t.dataId).values,shape:t.shape})));g=s._164.computeOutShape(w.map((t=>t.shape)),1);const O=1===w[0].shape[0],x=Object(o.a)(y,g,e[0].dtype,O),A=s._164.computeOutShape(v.map((t=>t.shape)),b),I=n.makeTensorInfo(A,e[0].dtype,x);return w.forEach((t=>n.disposeIntermediateTensorInfo(t))),I}e.a=a;var s=n(0),i=n(75),o=n(320),c=n(65),u=n(127),l=n(104),h=n(40);const p={kernelName:s.H,backendName:"cpu",kernelFunc:a};e.b=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{input:input}=e,{dim:o}=a,c=input.shape.length,u=input.shape.slice();let l=o;return o<0&&(s._408.assert(-(c+1)<=o,(()=>`Axis must be in the interval [${-(c+1)}, ${c}]`)),l=c+o+1),u.splice(l,0,1),Object(i.a)({inputs:{x:input},backend:n,attrs:{shape:u}})}e.a=a;var s=n(0),i=n(40);const o={kernelName:s._12,backendName:"cpu",kernelFunc:a};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function fill(t){const{backend:e,attrs:n}=t,{shape:shape,value:i,dtype:o}=n,c=o||s._408.inferDtype(i),u=s._408.getArrayFromDType(c,s._408.sizeFromShape(shape));return a(u,i,c),e.makeTensorInfo(shape,c,u)}function a(t,e,n){"string"===n,t.fill(e)}e.a=fill;var s=n(0);const i={kernelName:s._15,backendName:"cpu",kernelFunc:fill};e.b=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=Object(k.a)(),n=`${e.version}\n precision highp float;\n ${e.attribute} vec3 clipSpacePos;\n ${e.attribute} vec2 uv;\n ${e.varyingVs} vec2 resultUV;\n\n void main() {\n gl_Position = vec4(clipSpacePos, 1);\n resultUV = uv;\n }`;return T.createVertexShader(t,n)}function s(t){const e=new Float32Array([-1,1,0,0,1,-1,-1,0,0,0,1,1,0,1,1,1,-1,0,1,0]);return T.createStaticVertexBuffer(t,e)}function i(t){const e=new Uint16Array([0,1,2,2,1,3]);return T.createStaticIndexBuffer(t,e)}function o(t,e,n,a,s,i){T.validateTextureSize(e,n);const o=T.createTexture(t),c=t.TEXTURE_2D;return T.callAndCheck(t,(()=>t.bindTexture(c,o))),T.callAndCheck(t,(()=>t.texParameteri(c,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE))),T.callAndCheck(t,(()=>t.texParameteri(c,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE))),T.callAndCheck(t,(()=>t.texParameteri(c,t.TEXTURE_MIN_FILTER,t.NEAREST))),T.callAndCheck(t,(()=>t.texParameteri(c,t.TEXTURE_MAG_FILTER,t.NEAREST))),1===Object(_._222)().getNumber("WEBGL_VERSION")?T.callAndCheck(t,(()=>t.texImage2D(c,0,a,e,n,0,s,i,null))):T.callAndCheck(t,(()=>t.texStorage2D(c,1,a,e,n))),T.callAndCheck(t,(()=>t.bindTexture(t.TEXTURE_2D,null))),{texture:o,texShape:[n,e]}}function c(t){return t.internalFormatFloat}function u(t,e,n,a){const[s,i]=S.i(e,n);return o(t,s,i,c(a),a.textureFormatFloat,t.FLOAT)}function l(t){return t.internalFormatHalfFloat}function h(t,e,n,a){const[s,i]=S.i(e,n);return o(t,s,i,l(a),a.textureFormatFloat,a.textureTypeHalfFloat)}function p(t){return t.downloadTextureFormat}function f(t,e,n,a){const[s,i]=S.i(e,n);return o(t,s,i,p(a),t.RGBA,t.UNSIGNED_BYTE)}function b(t){return t.internalFormatPackedFloat}function m(t,e,n,a){const[s,i]=S.e(e,n);return o(t,s,i,b(a),t.RGBA,t.FLOAT)}function g(t){return t.internalFormatPackedHalfFloat}function v(t,e,n,a){const[s,i]=S.e(e,n);return o(t,s,i,g(a),t.RGBA,a.textureTypeHalfFloat)}function w(t,e,n){const a=0,s=12,i=20;T.callAndCheck(t,(()=>t.bindBuffer(t.ARRAY_BUFFER,n)));const o=undefined;return T.bindVertexBufferToProgramAttribute(t,e,"clipSpacePos",n,3,i,0)&&T.bindVertexBufferToProgramAttribute(t,e,"uv",n,2,i,s)}function y(t,e,n,a,data,s){let i,o,c;T.callAndCheck(t,(()=>t.bindTexture(t.TEXTURE_2D,e))),data instanceof Uint8Array?(i=new Uint8Array(n*a*4),o=t.UNSIGNED_BYTE,c=t.RGBA):(i=new Float32Array(n*a*4),o=t.FLOAT,c=s.internalFormatPackedFloat),i.set(data),2===Object(_._222)().getNumber("WEBGL_VERSION")?T.callAndCheck(t,(()=>t.texSubImage2D(t.TEXTURE_2D,0,0,0,n,a,t.RGBA,o,i))):T.callAndCheck(t,(()=>t.texImage2D(t.TEXTURE_2D,0,c,n,a,0,t.RGBA,o,i))),T.callAndCheck(t,(()=>t.bindTexture(t.TEXTURE_2D,null)))}function O(t,e,n){T.callAndCheck(t,(()=>t.bindTexture(t.TEXTURE_2D,e))),n.data instanceof Uint8Array?2===Object(_._222)().getNumber("WEBGL_VERSION")?T.callAndCheck(t,(()=>t.texSubImage2D(t.TEXTURE_2D,0,0,0,n.width,n.height,t.RGBA,t.UNSIGNED_BYTE,n.data))):T.callAndCheck(t,(()=>t.texImage2D(t.TEXTURE_2D,0,t.RGBA,n.width,n.height,0,t.RGBA,t.UNSIGNED_BYTE,n.data))):2===Object(_._222)().getNumber("WEBGL_VERSION")?T.callAndCheck(t,(()=>t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,n))):T.callAndCheck(t,(()=>t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n))),T.callAndCheck(t,(()=>t.bindTexture(t.TEXTURE_2D,null)))}function x(t,e,n,a){const s=t.createBuffer();T.callAndCheck(t,(()=>t.bindBuffer(t.PIXEL_PACK_BUFFER,s)));const i=4,o=4,c=16*e*n;return T.callAndCheck(t,(()=>t.bufferData(t.PIXEL_PACK_BUFFER,c,t.STREAM_READ))),T.callAndCheck(t,(()=>t.readPixels(0,0,n,e,t.RGBA,t.FLOAT,0))),T.callAndCheck(t,(()=>t.bindBuffer(t.PIXEL_PACK_BUFFER,null))),s}function A(t,e,size){const n=t,a=new Float32Array(size);return n.bindBuffer(n.PIXEL_PACK_BUFFER,e),n.getBufferSubData(n.PIXEL_PACK_BUFFER,0,a),n.bindBuffer(n.PIXEL_PACK_BUFFER,null),a}function I(t,e,n,a){const[s,i]=S.i(e,n),o=4,c=new Uint8Array(S.h(e*n,4));return T.callAndCheck(t,(()=>t.readPixels(0,0,s,i,a.downloadTextureFormat,t.UNSIGNED_BYTE,c))),new Float32Array(c.buffer)}function j(t,e,n,a,s,i,o,c){const u=t,l=new Float32Array(S.f(i,o));return u.bindBuffer(u.PIXEL_PACK_BUFFER,e),u.getBufferSubData(u.PIXEL_PACK_BUFFER,0,l),u.bindBuffer(u.PIXEL_PACK_BUFFER,null),l}function C(t,e,n){const a=new Float32Array(e*n*4);return T.callAndCheck(t,(()=>t.readPixels(0,0,n,e,t.RGBA,t.FLOAT,a))),a}Object.defineProperty(e,"__esModule",{value:true}),e.createVertexShader=a,e.createVertexBuffer=s,e.createIndexBuffer=i,e.getInternalFormatForFloat32MatrixTexture=c,e.createFloat32MatrixTexture=u,e.getInternalFormatForFloat16MatrixTexture=l,e.createFloat16MatrixTexture=h,e.getInternalFormatForUnsignedBytesMatrixTexture=p,e.createUnsignedBytesMatrixTexture=f,e.getInternalFormatForPackedMatrixTexture=b,e.createPackedMatrixTexture=m,e.getInternalFormatForFloat16PackedMatrixTexture=g,e.createFloat16PackedMatrixTexture=v,e.bindVertexProgramAttributeStreams=w,e.uploadDenseMatrixToTexture=y,e.uploadPixelDataToTexture=O,e.createBufferFromOutputTexture=x,e.downloadFloat32MatrixFromBuffer=A,e.downloadByteEncodedFloatMatrixFromOutputTexture=I,e.downloadPackedMatrixFromBuffer=j,e.downloadMatrixFromPackedOutputTexture=C;var _=n(0),k=n(53),S=n(52),T=n(43)},function(t,e,n){"use strict";function a({a:t,b:e,transposeA:n,transposeB:a,backend:f,bias:b=null,preluActivationWeights:m=null,leakyreluAlpha:g=0,activation:v=null}){const w=t.shape.length,y=e.shape.length,O=n?t.shape[w-2]:t.shape[w-1],x=a?e.shape[y-1]:e.shape[y-2],A=n?t.shape[w-1]:t.shape[w-2],I=a?e.shape[y-2]:e.shape[y-1],j=t.shape.slice(0,-2),C=e.shape.slice(0,-2),_=s._408.sizeFromShape(j),k=s._408.sizeFromShape(C),S=undefined,T=s._176.assertAndGetBroadcastShape(t.shape.slice(0,-2),e.shape.slice(0,-2)).concat([A,I]);s._408.assert(O===x,(()=>`Error in matMul: inner shapes (${O}) and (${x}) of Tensors with shapes ${t.shape} and ${e.shape} and transposeA=${n} and transposeB=${a} must match.`));const L=n?[_,O,A]:[_,A,O],B=a?[k,I,x]:[k,x,I],N=Object(u.a)({inputs:{x:t},backend:f,attrs:{shape:L}}),E=Object(u.a)({inputs:{x:e},backend:f,attrs:{shape:B}}),M=[N,E],F=Math.max(_,k),W=n?N.shape[1]:N.shape[2],z=null!=b,P=null!=m,G="leakyrelu"===v,V=null!=v?Object(i.c)(v,true):null,H=undefined;let Z;if((1===A||1===I)&&W>p&&false===(z||P||G||null!=V)){let t=N,e=E;n&&(t=Object(h.a)({inputs:{x:N},backend:f,attrs:{perm:[0,2,1]}}),M.push(t)),a&&(e=Object(h.a)({inputs:{x:E},backend:f,attrs:{perm:[0,2,1]}}),M.push(e));const s=undefined,i=1===I;let o=t;1!==I&&(o=Object(u.a)({inputs:{x:t},backend:f,attrs:{shape:[F,W,1]}}),M.push(o));const p=1===I?2:1;let b=e;i&&(b=Object(u.a)({inputs:{x:e},backend:f,attrs:{shape:[F,1,W]}}),M.push(b));const product=Object(c.a)({inputs:{a:o,b:b},backend:f});Z=Object(l.a)({inputs:{x:product},backend:f,attrs:{axis:p,keepDims:true}}),M.push(product)}else{const i=Object(s._406)(t.dtype,e.dtype),c=new o.a(L,B,[F,A,I],n,a,z,V,P,G),u=[N,E];if(null!=b&&u.push(b),P&&u.push(m),G){const t=f.makeTensorInfo([],"float32",s._408.createScalarValue(g,"float32"));u.push(t),M.push(t)}Z=f.runWebGLProgram(c,u,i)}const X=Object(u.a)({inputs:{x:Z},backend:f,attrs:{shape:T}});M.push(Z);for(const t of M)f.disposeIntermediateTensorInfo(t);return X}e.b=a;var s=n(0),i=n(10),o=n(376),c=n(228),u=n(17),l=n(168),h=n(47);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p=1e3;e.a=p},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n}=t,{a:a,b:p}=e,f=s._164.upcastType(a.dtype,p.dtype);if("complex64"===a.dtype){const t=n.texData.get(a.dataId),e=n.texData.get(p.dataId),s=new i.a(i.b.REAL,a.shape,p.shape),o=new i.a(i.b.IMAG,a.shape,p.shape),c=[{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},{dataId:e.complexTensorInfos.real.dataId,dtype:e.complexTensorInfos.real.dtype,shape:p.shape},{dataId:e.complexTensorInfos.imag.dataId,dtype:e.complexTensorInfos.imag.dtype,shape:p.shape}],u=n.runWebGLProgram(s,c,"float32"),h=n.runWebGLProgram(o,c,"float32"),f=Object(l.a)({inputs:{real:u,imag:h},backend:n});return n.disposeIntermediateTensorInfo(u),n.disposeIntermediateTensorInfo(h),f}if(n.shouldExecuteOnCPU([a,p])){const t=n.texData.get(a.dataId),e=n.texData.get(p.dataId),[s,i]=Object(u.w)(a.shape,p.shape,t.values,e.values,f),o=n.makeTensorInfo(i,f),c=undefined;return n.texData.get(o.dataId).values=s,o}let b;return b=Object(s._222)().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new c.a(h,a.shape,p.shape):new o.a(h,a.shape,p.shape),n.runWebGLProgram(b,[a,p],f)}e.a=a;var s=n(0),i=n(377),o=n(66),c=n(46),u=n(12),l=n(77);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const h="return a * b;",p={kernelName:s._63,backendName:"webgl",kernelFunc:a};e.b=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e=false,n=null,a=false,s=false){this.variableNames=["x","W"],this.outputShape=t.outShape;const i=t.padInfo.top,o=t.padInfo.left,c=t.strideHeight,u=t.strideWidth,l=t.dilationHeight,h=t.dilationWidth,p=t.filterHeight,f=t.filterWidth,b=4*Math.floor(t.inChannels/4),m=t.inChannels%4,g="channelsLast"===t.dataFormat,v=g?1:2,w=g?2:3,y=g?3:1;let O="",x="";n&&(O=a?`float activation(float a) {\n float b = getPreluActivationWeightsAtOutCoords();\n ${n}\n }`:s?`float activation(float a) {\n float b = getLeakyreluAlphaAtOutCoords();\n ${n}\n }`:`\n float activation(float x) {\n ${n}\n }\n `,x="result = activation(result);");const A=e?"result += getBiasAtOutCoords();":"";e&&this.variableNames.push("bias"),a&&this.variableNames.push("preluActivationWeights"),s&&this.variableNames.push("leakyreluAlpha"),this.userCode=`\n ${O}\n\n const ivec2 strides = ivec2(${c}, ${u});\n const ivec2 pads = ivec2(${i}, ${o});\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d2 = coords[${y}];\n\n ivec2 xRCCorner =\n ivec2(coords[${v}], coords[${w}]) * strides - pads;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // Convolve x(?, ?, d1) with w(:, :, d1, d2) to get y(yR, yC, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < ${p}; wR++) {\n int xR = xRCorner + wR * ${l};\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int wC = 0; wC < ${f}; wC++) {\n int xC = xCCorner + wC * ${h};\n\n if (xC < 0 || xC >= ${t.inWidth}) {\n continue;\n }\n\n for (int d1 = 0; d1 < ${b}; d1 += 4) {\n vec4 wValues = vec4(\n getW(wR, wC, d1, d2),\n getW(wR, wC, d1 + 1, d2),\n getW(wR, wC, d1 + 2, d2),\n getW(wR, wC, d1 + 3, d2)\n );\n\n if (${g}) {\n vec4 xValues = vec4(\n getX(batch, xR, xC, d1),\n getX(batch, xR, xC, d1 + 1),\n getX(batch, xR, xC, d1 + 2),\n getX(batch, xR, xC, d1 + 3)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec4 xValues = vec4(\n getX(batch, d1, xR, xC),\n getX(batch, d1 + 1, xR, xC),\n getX(batch, d1 + 2, xR, xC),\n getX(batch, d1 + 3, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n }\n\n if (${1===m}) {\n\n if (${g}) {\n dotProd +=\n getX(batch, xR, xC, ${b}) *\n getW(wR, wC, ${b}, d2);\n } else {\n dotProd +=\n getX(batch, ${b}, xR, xC) *\n getW(wR, wC, ${b}, d2);\n }\n\n } else if (${2===m}) {\n vec2 wValues = vec2(\n getW(wR, wC, ${b}, d2),\n getW(wR, wC, ${b} + 1, d2)\n );\n\n if (${g}) {\n vec2 xValues = vec2(\n getX(batch, xR, xC, ${b}),\n getX(batch, xR, xC, ${b} + 1)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec2 xValues = vec2(\n getX(batch, ${b}, xR, xC),\n getX(batch, ${b} + 1, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n\n } else if (${3===m}) {\n vec3 wValues = vec3(\n getW(wR, wC, ${b}, d2),\n getW(wR, wC, ${b} + 1, d2),\n getW(wR, wC, ${b} + 2, d2)\n );\n\n if (${g}) {\n vec3 xValues = vec3(\n getX(batch, xR, xC, ${b}),\n getX(batch, xR, xC, ${b} + 1),\n getX(batch, xR, xC, ${b} + 2)\n );\n dotProd += dot(xValues, wValues);\n } else {\n vec3 xValues = vec3(\n getX(batch, ${b}, xR, xC),\n getX(batch, ${b} + 1, xR, xC),\n getX(batch, ${b} + 2, xR, xC)\n );\n dotProd += dot(xValues, wValues);\n }\n\n }\n }\n }\n\n float result = dotProd;\n ${A}\n ${x}\n setOutput(result);\n }\n `}}e.a=a;class s{constructor(t){this.variableNames=["x","W"],this.outputShape=t.outShape;const e=t.padInfo.front,n=t.padInfo.top,a=t.padInfo.left,s=t.strideDepth,i=t.strideHeight,o=t.strideWidth,c=t.dilationDepth,u=t.dilationHeight,l=t.dilationWidth,h=t.filterDepth,p=t.filterHeight,f=t.filterWidth,b=4*Math.floor(t.inChannels/4),m=t.inChannels%4;this.userCode=`\n const ivec3 strides = ivec3(${s}, ${i}, ${o});\n const ivec3 pads = ivec3(${e}, ${n}, ${a});\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int d2 = coords.u;\n\n ivec3 xFRCCorner = ivec3(coords.y, coords.z, coords.w) * strides - pads;\n int xFCorner = xFRCCorner.x;\n int xRCorner = xFRCCorner.y;\n int xCCorner = xFRCCorner.z;\n\n // Convolve x(?, ?, ?, d1) with w(:, :, :, d1, d2) to get\n // y(yF, yR, yC, d2). ? = to be determined. : = across all\n // values in that axis.\n float dotProd = 0.0;\n for (int wF = 0; wF < ${h}; wF++) {\n int xF = xFCorner + wF * ${c};\n\n if (xF < 0 || xF >= ${t.inDepth}) {\n continue;\n }\n\n for (int wR = 0; wR < ${p}; wR++) {\n int xR = xRCorner + wR * ${u};\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int wC = 0; wC < ${f}; wC++) {\n int xC = xCCorner + wC * ${l};\n\n if (xC < 0 || xC >= ${t.inWidth}) {\n continue;\n }\n\n for (int d1 = 0; d1 < ${b}; d1 += 4) {\n vec4 xValues = vec4(\n getX(batch, xF, xR, xC, d1),\n getX(batch, xF, xR, xC, d1 + 1),\n getX(batch, xF, xR, xC, d1 + 2),\n getX(batch, xF, xR, xC, d1 + 3)\n );\n vec4 wValues = vec4(\n getW(wF, wR, wC, d1, d2),\n getW(wF, wR, wC, d1 + 1, d2),\n getW(wF, wR, wC, d1 + 2, d2),\n getW(wF, wR, wC, d1 + 3, d2)\n );\n\n dotProd += dot(xValues, wValues);\n }\n\n if (${1===m}) {\n dotProd +=\n getX(batch, xF, xR, xC, ${b}) *\n getW(wF, wR, wC, ${b}, d2);\n } else if (${2===m}) {\n vec2 xValues = vec2(\n getX(batch, xF, xR, xC, ${b}),\n getX(batch, xF, xR, xC, ${b} + 1)\n );\n vec2 wValues = vec2(\n getW(wF, wR, wC, ${b}, d2),\n getW(wF, wR, wC, ${b} + 1, d2)\n );\n dotProd += dot(xValues, wValues);\n } else if (${3===m}) {\n vec3 xValues = vec3(\n getX(batch, xF, xR, xC, ${b}),\n getX(batch, xF, xR, xC, ${b} + 1),\n getX(batch, xF, xR, xC, ${b} + 2)\n );\n vec3 wValues = vec3(\n getW(wF, wR, wC, ${b}, d2),\n getW(wF, wR, wC, ${b} + 1, d2),\n getW(wF, wR, wC, ${b} + 2, d2)\n );\n dotProd += dot(xValues, wValues);\n }\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.b=s},function(t,e,n){"use strict";function a(t,e,n){if(1===t)return`${e}`;if(2===t)return`${e}.x, ${e}.y`;if(3===t)return`${e}.x, ${e}.y, ${e}.z`;if(4===t)return`${e}.x, ${e}.y, ${e}.z, ${e}.w`;throw new Error(`Cumulative ${n} for rank ${t} is not yet supported`)}function s(t,e,n){if(1===t)return`${e}`;if(2===t)return`${e}.y`;if(3===t)return`${e}.z`;if(4===t)return`${e}.w`;throw new Error(`Cumulative ${n} for rank ${t} is not yet supported`)}n.d(e,"a",(function(){return o}));var i=n(28),o;!function(t){t.Prod="*",t.Sum="+"}(o||(o={}));class c{constructor(t,e,n,c){this.op=t,this.outputShape=e,this.variableNames=["x"],this.customUniforms=[{name:"index",type:"float"}];const u=this.outputShape.length,l=this.op===o.Prod?"1.0":"0.0",h=n?l:`getX(${a(u,"coords",this.op)})`,length=this.outputShape[this.outputShape.length-1];let p="",f="";n?(p=c?"end != "+(length-1):"end != 0",f=c?"end + 1":"end - 1"):(p=c?`end + pow2 < ${length}`:"end >= pow2",f=c?"end + pow2":"end - pow2"),this.userCode=`\n void main() {\n ${Object(i.a)(u)} coords = getOutputCoords();\n int end = ${s(u,"coords",this.op)};\n float val = ${h};\n int pow2 = int(pow(2.0, index));\n if (${p}) {\n int idx = ${f};\n ${s(u,"coords",this.op)} = idx;\n val ${this.op}= getX(${a(u,"coords",this.op)});\n }\n setOutput(val);\n }\n `}}e.b=c},function(t,e,n){"use strict";var a=n(28);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e,n,s,i,shape,o=true,c=false){this.variableNames=["updates","indices","defaultValue"],this.outputShape=shape;const u=Object(a.a)(i.length),l=Object(a.a)(shape.length);let h="";1===n?h="i":2===n&&(h="i, j");const p=`getIndices(${h})`;let f="";1===s?f="i":2===s&&(f="i, coords[1]");const b=`getUpdates(${f})`;let m="";c&&(m="coords[0], coords[1]");const g=`getDefaultValue(${m})`,v=e>1?"strides[j]":"strides";this.userCode=`\n ${u} strides = ${u}(${i});\n\n void main() {\n ${l} coords = getOutputCoords();\n float sum = 0.0;\n bool found = false;\n for (int i = 0; i < ${t}; i++) {\n int flattenedIndex = 0;\n for (int j = 0; j < ${e}; j++) {\n int index = round(${p});\n flattenedIndex += index * ${v};\n }\n if (flattenedIndex == coords[0]) {\n sum += ${b};\n found = true;\n }\n }\n setOutput(mix(${g}, sum, float(found)));\n }\n `}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/function a(t){throw new Error(`'${t}' not yet implemented or not found in the registry. This kernel may not be supported by the tfjs backend you have chosen`)}const s=1e-7,i=1e-4;class o{constructor(t,e){this.backend=t,this.dataMover=e,this.data=new WeakMap,this.dataIdsCount=0}get(t){return this.data.has(t)||this.dataMover.moveData(this.backend,t),this.data.get(t)}set(t,e){this.dataIdsCount++,this.data.set(t,e)}has(t){return this.data.has(t)}delete(t){return this.dataIdsCount--,this.data.delete(t)}numDataIds(){return this.dataIdsCount}}e.a=o;class c{refCount(t){return a("refCount")}incRef(t){return a("incRef")}timerAvailable(){return true}time(t){return a("time")}read(t){return a("read")}readSync(t){return a("readSync")}readToGPU(t,e){return a("readToGPU")}numDataIds(){return a("numDataIds")}disposeData(t,e){return a("disposeData")}write(t,shape,e){return a("write")}move(t,e,shape,n,s){return a("move")}createTensorFromGPUData(t,shape,e){return a("createTensorFromGPUData")}memory(){return a("memory")}floatPrecision(){return a("floatPrecision")}epsilon(){return 32===this.floatPrecision()?s:i}dispose(){return a("dispose")}}e.b=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return t instanceof Float32Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(){return"undefined"!=typeof navigator&&null!=navigator}function s(t){c=t}function i(nav){if(void 0!==c)return c;if(nav||a()){if(nav||(nav=navigator),"ReactNative"===nav.product)return true;const t=nav.userAgent||nav.vendor||("undefined"!=typeof window?window.opera:"");if(!t){const t=nav;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 false}function o(){return"undefined"!=typeof window&&null!=window.document||"undefined"!=typeof WorkerGlobalScope}let c;Object.defineProperty(e,"__esModule",{value:true}),e.mockIsMobile=s,e.isMobile=i,e.isBrowser=o},function(t,e,n){"use strict";async function a(){const t=s();return new Promise(((e,n)=>{const a=t.deleteDatabase(b);a.onsuccess=()=>e(),a.onerror=t=>n(t)}))}function s(){if(!Object(l.c)().getBool("IS_BROWSER"))throw new Error("Failed to obtain IndexedDB factory because the current environmentis not a web browser.");const t="undefined"==typeof window?self:window,factory=t.indexedDB||t.mozIndexedDB||t.webkitIndexedDB||t.msIndexedDB||t.shimIndexedDB;if(null==factory)throw new Error("The current browser does not appear to support IndexedDB.");return factory}function i(t){const e=t.result;e.createObjectStore(g,{keyPath:"modelPath"}),e.createObjectStore(v,{keyPath:"modelPath"})}function o(t){return new w(t)}function c(t){return t.startsWith(w.URL_SCHEME)?t.slice(w.URL_SCHEME.length):t}n.d(e,"a",(function(){return w}));var u=n(109),l=n(39),h=n(78),p=n(91),f=n(80);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const b="tensorflowjs",m=1,g="models_store",v="model_info_store";class w{constructor(t){if(this.indexedDB=s(),null==t||!t)throw new Error("For IndexedDB, modelPath must not be null, undefined or empty.");this.modelPath=t}async save(t){if(t.modelTopology instanceof ArrayBuffer)throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");return this.databaseAction(this.modelPath,t)}async load(){return this.databaseAction(this.modelPath)}databaseAction(t,e){return new Promise(((t,n)=>{const a=this.indexedDB.open(b,1);a.onupgradeneeded=()=>i(a),a.onsuccess=()=>{const s=a.result;if(null==e){const e=s.transaction(g,"readonly"),a=undefined,i=e.objectStore(g).get(this.modelPath);i.onsuccess=()=>{if(null==i.result)return s.close(),n(new Error(`Cannot find model with path '${this.modelPath}' in IndexedDB.`));t(i.result.modelArtifacts)},i.onerror=t=>(s.close(),n(i.error)),e.oncomplete=()=>s.close()}else{e.weightData=f.a.join(e.weightData);const a=Object(h.j)(e),i=s.transaction(v,"readwrite");let o=i.objectStore(v),c,u;try{c=o.put({modelPath:this.modelPath,modelArtifactsInfo:a})}catch(t){return n(t)}c.onsuccess=()=>{u=s.transaction(g,"readwrite");const c=u.objectStore(g);let l;try{l=c.put({modelPath:this.modelPath,modelArtifacts:e,modelArtifactsInfo:a})}catch(t){return n(t)}l.onsuccess=()=>t({modelArtifactsInfo:a}),l.onerror=t=>{o=i.objectStore(v);const e=o.delete(this.modelPath);e.onsuccess=()=>(s.close(),n(l.error)),e.onerror=t=>(s.close(),n(l.error))}},c.onerror=t=>(s.close(),n(c.error)),i.oncomplete=()=>{null==u?s.close():u.oncomplete=()=>s.close()}}},a.onerror=t=>n(a.error)}))}}w.URL_SCHEME="indexeddb://";const y=url=>Object(l.c)().getBool("IS_BROWSER")&&!Array.isArray(url)&&url.startsWith(w.URL_SCHEME)?o(url.slice(w.URL_SCHEME.length)):null;p.a.registerSaveRouter(y),p.a.registerLoadRouter(y);class O{constructor(){this.indexedDB=s()}async listModels(){return new Promise(((t,e)=>{const n=this.indexedDB.open(b,1);n.onupgradeneeded=()=>i(n),n.onsuccess=()=>{const a=n.result,s=a.transaction(v,"readonly"),i=undefined,o=s.objectStore(v).getAll();o.onsuccess=()=>{const e={};for(const t of o.result)e[t.modelPath]=t.modelArtifactsInfo;t(e)},o.onerror=t=>(a.close(),e(o.error)),s.oncomplete=()=>a.close()},n.onerror=t=>e(n.error)}))}async removeModel(t){return t=c(t),new Promise(((e,n)=>{const a=this.indexedDB.open(b,1);a.onupgradeneeded=()=>i(a),a.onsuccess=()=>{const s=a.result,i=s.transaction(v,"readwrite"),o=i.objectStore(v),c=o.get(t);let u;c.onsuccess=()=>{if(null==c.result)return s.close(),n(new Error(`Cannot find model with path '${t}' in IndexedDB.`));{const a=o.delete(t),i=()=>{u=s.transaction(g,"readwrite");const a=undefined,i=u.objectStore(g).delete(t);i.onsuccess=()=>e(c.result.modelArtifactsInfo),i.onerror=t=>n(c.error)};a.onsuccess=i,a.onerror=t=>(i(),s.close(),n(c.error))}},c.onerror=t=>(s.close(),n(c.error)),i.oncomplete=()=>{null==u?s.close():u.oncomplete=()=>s.close()}},a.onerror=t=>n(a.error)}))}}e.b=O},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const a={float32:4,float16:2,int32:4,uint16:2,uint8:1,bool:1,complex64:8};e.a=a},function(t,e,n){"use strict";function a(){if(!Object(h.c)().getBool("IS_BROWSER")||"undefined"==typeof window||void 0===window.localStorage)throw new Error("purgeLocalStorageModels() cannot proceed because local storage is unavailable in the current environment.");const t=window.localStorage,e=[];for(let n=0;n<t.length;++n){const a=t.key(n),s=v+g;if(a.startsWith(s)&&a.length>s.length){t.removeItem(a);const n=o(a);-1===e.indexOf(n)&&e.push(n)}}return e}function s(t){return{info:[v,t,w].join(g),topology:[v,t,y].join(g),weightSpecs:[v,t,O].join(g),weightData:[v,t,x].join(g),modelMetadata:[v,t,A].join(g)}}function i(t){for(const e of Object.values(t))window.localStorage.removeItem(e)}function o(t){const items=t.split(g);if(items.length<3)throw new Error(`Invalid key format: ${t}`);return items.slice(1,items.length-1).join(g)}function c(t){return t.startsWith(I.URL_SCHEME)?t.slice(I.URL_SCHEME.length):t}function u(t){return new I(t)}n.d(e,"a",(function(){return I}));var l=n(109),h=n(39),p=n(5),f=n(78),b=n(80),m=n(91);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const g="/",v="tensorflowjs_models",w="info",y="model_topology",O="weight_specs",x="weight_data",A="model_metadata";class I{constructor(t){if(!Object(h.c)().getBool("IS_BROWSER")||"undefined"==typeof window||void 0===window.localStorage)throw new Error("The current environment does not support local storage.");if(this.LS=window.localStorage,null==t||!t)throw new Error("For local storage, modelPath must not be null, undefined or empty.");this.modelPath=t,this.keys=s(this.modelPath)}async save(t){if(t.modelTopology instanceof ArrayBuffer)throw new Error("BrowserLocalStorage.save() does not support saving model topology in binary formats yet.");{const e=JSON.stringify(t.modelTopology),n=JSON.stringify(t.weightSpecs),a=Object(f.j)(t),s=b.a.join(t.weightData);try{this.LS.setItem(this.keys.info,JSON.stringify(a)),this.LS.setItem(this.keys.topology,e),this.LS.setItem(this.keys.weightSpecs,n),this.LS.setItem(this.keys.weightData,Object(f.a)(s));const metadata={format:t.format,generatedBy:t.generatedBy,convertedBy:t.convertedBy,signature:null!=t.signature?t.signature:void 0,userDefinedMetadata:null!=t.userDefinedMetadata?t.userDefinedMetadata:void 0,modelInitializer:null!=t.modelInitializer?t.modelInitializer:void 0,initializerSignature:null!=t.initializerSignature?t.initializerSignature:void 0,trainingConfig:null!=t.trainingConfig?t.trainingConfig:void 0};return this.LS.setItem(this.keys.modelMetadata,JSON.stringify(metadata)),{modelArtifactsInfo:a}}catch(t){throw i(this.keys),new Error(`Failed to save model '${this.modelPath}' to local storage: size quota being exceeded is a possible cause of this failure: modelTopologyBytes=${a.modelTopologyBytes}, weightSpecsBytes=${a.weightSpecsBytes}, weightDataBytes=${a.weightDataBytes}.`)}}}async load(){const t=JSON.parse(this.LS.getItem(this.keys.info));if(null==t)throw new Error(`In local storage, there is no model with name '${this.modelPath}'`);if("JSON"!==t.modelTopologyType)throw new Error("BrowserLocalStorage does not support loading non-JSON model topology yet.");const e={},n=JSON.parse(this.LS.getItem(this.keys.topology));if(null==n)throw new Error(`In local storage, the topology of model '${this.modelPath}' is missing.`);e.modelTopology=n;const a=JSON.parse(this.LS.getItem(this.keys.weightSpecs));if(null==a)throw new Error(`In local storage, the weight specs of model '${this.modelPath}' are missing.`);e.weightSpecs=a;const s=this.LS.getItem(this.keys.modelMetadata);if(null!=s){const metadata=JSON.parse(s);e.format=metadata.format,e.generatedBy=metadata.generatedBy,e.convertedBy=metadata.convertedBy,null!=metadata.signature&&(e.signature=metadata.signature),null!=metadata.userDefinedMetadata&&(e.userDefinedMetadata=metadata.userDefinedMetadata),null!=metadata.modelInitializer&&(e.modelInitializer=metadata.modelInitializer),null!=metadata.initializerSignature&&(e.initializerSignature=metadata.initializerSignature),null!=metadata.trainingConfig&&(e.trainingConfig=metadata.trainingConfig)}const i=this.LS.getItem(this.keys.weightData);if(null==i)throw new Error(`In local storage, the binary weight values of model '${this.modelPath}' are missing.`);return e.weightData=Object(f.b)(i),e}}I.URL_SCHEME="localstorage://";const j=url=>Object(h.c)().getBool("IS_BROWSER")&&!Array.isArray(url)&&url.startsWith(I.URL_SCHEME)?u(url.slice(I.URL_SCHEME.length)):null;m.a.registerSaveRouter(j),m.a.registerLoadRouter(j);class C{constructor(){Object(p.assert)(Object(h.c)().getBool("IS_BROWSER"),(()=>"Current environment is not a web browser")),Object(p.assert)("undefined"==typeof window||void 0!==window.localStorage,(()=>"Current browser does not appear to support localStorage")),this.LS=window.localStorage}async listModels(){const t={},e=v+g,n=g+w;for(let a=0;a<this.LS.length;++a){const s=this.LS.key(a);if(s.startsWith(e)&&s.endsWith(n)){const e=undefined;t[o(s)]=JSON.parse(this.LS.getItem(s))}}return t}async removeModel(t){const e=s(t=c(t));if(null==this.LS.getItem(e.info))throw new Error(`Cannot find model at path '${t}'`);const n=JSON.parse(this.LS.getItem(e.info));return i(e),n}}e.b=C},function(t,e,n){"use strict";function a(url){if(-1===url.indexOf(p))throw new Error(`The url string provided does not contain a scheme. Supported schemes are: ${f.getSchemes().join(",")}`);return{scheme:url.split(p)[0],path:url.split(p)[1]}}async function s(t,e,n=false){Object(l.assert)(t!==e,(()=>`Old path and new path are the same: '${t}'`));const s=h.a.getLoadHandlers(t);Object(l.assert)(s.length>0,(()=>`Copying failed because no load handler is found for source URL ${t}.`)),Object(l.assert)(s.length<2,(()=>`Copying failed because more than one (${s.length}) load handlers for source URL ${t}.`));const i=s[0],o=h.a.getSaveHandlers(e);Object(l.assert)(o.length>0,(()=>`Copying failed because no save handler is found for destination URL ${e}.`)),Object(l.assert)(o.length<2,(()=>`Copying failed because more than one (${s.length}) save handlers for destination URL ${e}.`));const c=o[0],u=a(t).scheme,p=a(t).path,b=u===a(t).scheme,m=await i.load();n&&b&&await f.getManager(u).removeModel(p);const g=await c.save(m);return n&&!b&&await f.getManager(u).removeModel(p),g.modelArtifactsInfo}async function i(){const t=f.getSchemes(),e={};for(const scheme of t){const t=await f.getManager(scheme).listModels();for(const n in t){const url=undefined;e[scheme+p+n]=t[n]}}return e}async function o(url){const t=a(url),e=undefined;return f.getManager(t.scheme).removeModel(t.path)}async function c(t,e){const n=undefined;return s(t,e,false)}async function u(t,e){const n=undefined;return s(t,e,true)}n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return i}));var l=n(5),h=n(91);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p="://";class f{constructor(){this.managers={}}static getInstance(){return null==f.instance&&(f.instance=new f),f.instance}static registerManager(scheme,t){Object(l.assert)(null!=scheme,(()=>"scheme must not be undefined or null.")),scheme.endsWith(p)&&(scheme=scheme.slice(0,scheme.indexOf(p))),Object(l.assert)(scheme.length>0,(()=>"scheme must not be an empty string."));const e=f.getInstance();Object(l.assert)(null==e.managers[scheme],(()=>`A model store manager is already registered for scheme '${scheme}'.`)),e.managers[scheme]=t}static getManager(scheme){const t=f.getInstance().managers[scheme];if(null==t)throw new Error(`Cannot find model manager for scheme '${scheme}'`);return t}static getSchemes(){return Object.keys(f.getInstance().managers)}}e.a=f},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function print(t,e=false){console.log(t.toString(e))}e.a=print},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){const a=undefined,c={x:Object(o.a)(t,"x","all","bool")},u={axis:e,keepDims:n};return s.a.runKernel(i.f,c,u)}var s=n(4),i=n(1),o=n(3),c=n(2);const all=Object(c.b)({all_:a});e.a=all},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){const a=undefined,c={x:Object(o.a)(t,"x","any","bool")},u={axis:e,keepDims:n};return s.a.runKernel(i.g,c,u)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({any_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0){const n=undefined,a={x:Object(o.a)(t,"x","argMax")},c={axis:e};return s.a.runKernel(i.h,a,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({argMax_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0){const n=undefined,a={x:Object(o.a)(t,"x","argMin")},c={axis:e};return s.a.runKernel(i.i,a,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({argMin_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","atan2"),a=Object(c.a)(e,"b","atan2");[n,a]=Object(o.makeTypesMatch)(n,a);const u={a:n,b:a};return s.a.runKernel(i.m,u)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(2);const l=Object(u.b)({atan2_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","tanh","float32")};return s.a.runKernel(i._116,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({tanh_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size){const n=Object(o.a)(t,"x","bincount"),a=Object(o.a)(e,"weights","bincount");c.assert("int32"===n.dtype,(()=>`Error in bincount: input dtype must be int32, but got ${n.dtype}`)),c.assert(size>=0,(()=>`size must be non-negative, but got ${size}.`)),c.assert(a.size===n.size||0===a.size,(()=>`Error in bincount: weights must have the same size as input or0-length, but got input shape: ${n.shape}, weights shape: ${a.shape}.`));const u={x:n,weights:a},l={size:size};return s.a.runKernel(i.u,u,l)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({bincount_:a});e.a=l},function(t,e,n){"use strict";function a(t,filter,e,n,a="NWC",u=1,h){const p=Object(s.a)(t,"x","conv1d"),f=Object(s.a)(filter,"filter","conv1d");let b=p,m=false;2===p.rank&&(m=true,b=Object(l.a)(p,[1,p.shape[0],p.shape[1]])),i.assert(3===b.rank,(()=>`Error in conv1d: input must be rank 3, but got rank ${b.rank}.`)),i.assert(3===f.rank,(()=>`Error in conv1d: filter must be rank 3, but got rank ${f.rank}.`)),c.a("conv1d",n,h),i.assert(b.shape[2]===f.shape[1],(()=>`Error in conv1d: depth of input (${b.shape[2]}) must match input depth for filter ${f.shape[1]}.`)),i.assert(c.i(e,u),(()=>`Error in conv1D: Either stride or dilation must be 1. Got stride ${e} and dilation '${u}'`)),i.assert(c.j(u),(()=>"Error in conv1D: Dilated rates should be larger than 0.")),i.assert(c.j(e),(()=>"Error in conv1D: Stride should be larger than 0.")),i.assert("NWC"===a,(()=>`Error in conv1d: got dataFormat of ${a} but only NWC is currently supported.`));const g=Object(l.a)(f,[1,f.shape[0],f.shape[1],f.shape[2]]),v=Object(l.a)(b,[b.shape[0],1,b.shape[1],b.shape[2]]),w=[1,e],y=[1,u],O="NHWC",x=Object(o.a)(v,g,w,n,O,y,h);return m?Object(l.a)(x,[x.shape[2],x.shape[3]]):Object(l.a)(x,[x.shape[0],x.shape[2],x.shape[3]])}var s=n(3),i=n(5),o=n(93),c=n(33),u=n(2),l=n(7);const h=Object(u.b)({conv1d_:a});e.a=h},function(t,e,n){"use strict";function a(t,filter,e,n,a,o){const c=Object(s.a)(t,"x","conv2dTranspose"),u=Object(s.a)(filter,"filter","conv2dTranspose");return Object(i.a)(e,c,u,n,a,"NHWC",o)}var s=n(3),i=n(178),o=n(2);const c=Object(o.b)({conv2dTranspose_:a});e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,filter,n,a){o.assert(t.length===e.rank,(()=>`Length of inShape (${t.length}) and rank of dy (${e.rank}) must match`));let c=t,l=e,h=false;4===e.rank&&(h=true,l=Object(u.a)(e,[1,e.shape[0],e.shape[1],e.shape[2],e.shape[3]]),c=[1,t[0],t[1],t[2],t[3]]);const p=c[4],f=l.shape[4];o.assert(5===c.length,(()=>`Error in conv3dDerInput: inShape must be length 5, but got length ${c.length}.`)),o.assert(5===l.rank,(()=>`Error in conv3dDerInput: dy must be rank 5, but got rank ${l.rank}`)),o.assert(5===filter.rank,(()=>`Error in conv3dDerInput: filter must be rank 5, but got rank ${filter.rank}`)),o.assert(p===filter.shape[3],(()=>`Error in conv3dDerInput: depth of input (${p}) must match input depth for filter ${filter.shape[3]}.`)),o.assert(f===filter.shape[4],(()=>`Error in conv3dDerInput: depth of output (${f}) must match output depth for filter ${filter.shape[4]}.`));const b={dy:l,filter:filter},m={pad:a,strides:n,inputShape:c},g=s.a.runKernel(i.J,b,m);return h?Object(u.a)(g,[g.shape[1],g.shape[2],g.shape[3],g.shape[4]]):g}var s=n(4),i=n(1),o=n(5),c=n(2),u=n(7);const l=Object(c.b)({conv3DBackpropInput_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","cosh","float32")};return s.a.runKernel(i.L,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({cosh_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n="NHWC"){const a=Object(o.a)(t,"x","depthToSpace","float32"),u="NHWC"===n?a.shape[1]:a.shape[2],l="NHWC"===n?a.shape[2]:a.shape[3],h="NHWC"===n?a.shape[3]:a.shape[1];c.assert(e>1,(()=>`blockSize should be > 1 for depthToSpace, but was: ${e}`)),c.assert(u*e>=0,(()=>`Negative dimension size caused by overflow when multiplying\n ${u} and ${e} for depthToSpace with input shape\n ${a.shape}`)),c.assert(l*e>=0,(()=>`Negative dimension size caused by overflow when multiplying\n ${l} and ${e} for depthToSpace with input shape\n ${a.shape}`)),c.assert(h%(e*e)==0,(()=>`Dimension size must be evenly divisible by ${e*e} but is ${h} for depthToSpace with input shape ${a.shape}`));const p={x:a},f={blockSize:e,dataFormat:n};return s.a.runKernel(i.Q,p,f)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({depthToSpace_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,filter,e,n,a=[1,1],u="NHWC"){const h=Object(o.a)(t,"x","dilation2d"),p=Object(o.a)(filter,"filter","dilation2d");c.assert(3===h.rank||4===h.rank,(()=>`Error in dilation2d: input must be rank 3 or 4, but got rank ${h.rank}.`)),c.assert(3===p.rank,(()=>`Error in dilation2d: filter must be rank 3, but got rank ${p.rank}.`)),c.assert("NHWC"===u,(()=>`Error in dilation2d: Only NHWC is currently supported, but got dataFormat of ${u}`));let f=h,b=false;3===h.rank&&(f=Object(l.a)(h,[1,h.shape[0],h.shape[1],h.shape[2]]),b=true),c.assert(f.shape[3]===p.shape[2],(()=>`Error in dilation2d: input and filter must have the same depth: ${f.shape[3]} vs ${p.shape[2]}`));const m={x:f,filter:p},g={strides:e,pad:n,dilations:a},v=s.a.runKernel(i.V,m,g);return b?Object(l.a)(v,[v.shape[1],v.shape[2],v.shape[3]]):v}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2),l=n(7);const h=Object(u.b)({dilation2d_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(i.a)(t,"a","div"),a=Object(i.a)(e,"b","div");[n,a]=Object(s.makeTypesMatch)(n,a);const u=Object(o.a)(n,a),p=Object(h.a)(u),f=Object(c.a)(a,p);return Object(l.a)(f,p,u)}var s=n(23),i=n(3),o=n(16),c=n(138),u=n(2),l=n(49),h=n(21);const p=Object(u.b)({divNoNan_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(s.a)(t,"t1","dot"),a=Object(s.a)(e,"t2","dot");i.assert(!(1!==n.rank&&2!==n.rank||1!==a.rank&&2!==a.rank),(()=>`Error in dot: inputs must all be rank 1 or 2, but got ranks ${n.rank} and ${a.rank}.`));const c=1===n.rank?n.size:n.shape[1],l=1===a.rank?a.size:a.shape[0];if(i.assert(c===l,(()=>`Error in dot: inner dimensions of inputs must match, but got ${c} and ${l}.`)),1===n.rank&&1===a.rank){const t=Object(u.a)(n,[1,-1]),e=Object(u.a)(a,[-1,1]),s=Object(o.a)(t,e);return Object(u.a)(s,[])}if(1===n.rank&&2===a.rank){const t=Object(u.a)(n,[1,-1]),e=Object(u.a)(a,[a.shape[0],a.shape[1]]),s=Object(o.a)(t,e);return Object(u.a)(s,[s.size])}if(2===n.rank&&1===a.rank){const t=Object(u.a)(a,[-1,1]),e=Object(o.a)(n,t);return Object(u.a)(e,[e.size])}{const t=Object(u.a)(a,[a.shape[0],a.shape[1]]),e=undefined;return Object(o.a)(n,t)}}var s=n(3),i=n(5),o=n(54),c=n(2),u=n(7);const l=Object(c.b)({dot_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,...e){const n=e.map(((t,e)=>Object(o.a)(t,`tensors${e}`,"einsum"))),a={equation:t};return s.a.runKernel(i.Z,n,a)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({einsum_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){return Object(s.a)(t,"euclidean",e,n)}var s=n(139),i=n(2);const o=Object(i.b)({euclideanNorm_:a});e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a="float32"){null==e&&(e=t);const o=Object(s.a)([t,e],a),l=t<=e?t:e;for(let t=0;t<l;++t)o.set(1,t,t);const h=Object(c.a)(o.toTensor(),[t,e]);if(null==n)return h;if(1===n.length)return Object(u.a)(Object(i.a)(h,0),[n[0],1,1]);if(2===n.length)return Object(u.a)(Object(i.a)(Object(i.a)(h,0),0),[n[0],n[1],1,1]);if(3===n.length)return Object(u.a)(Object(i.a)(Object(i.a)(Object(i.a)(h,0),0),0),[n[0],n[1],n[2],1,1]);throw new Error(`eye() currently supports only 1D and 2D batchShapes, but received ${n.length}D.`)}var s=n(68),i=n(115),o=n(2),c=n(7),u=n(116);const l=Object(o.b)({eye_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=5,n=1,a=1,u=.5){const h=Object(o.a)(t,"x","localResponseNormalization");c.assert(4===h.rank||3===h.rank,(()=>`Error in localResponseNormalization: x must be rank 3 or 4 but got\n rank ${h.rank}.`)),c.assert(c.isInt(e),(()=>`Error in localResponseNormalization: depthRadius must be an integer but got depthRadius ${e}.`));let p=h,f=false;3===h.rank&&(f=true,p=Object(l.a)(h,[1,h.shape[0],h.shape[1],h.shape[2]]));const b={x:p},m={depthRadius:e,bias:n,alpha:a,beta:u},g=s.a.runKernel(i._26,b,m);return f?Object(l.a)(g,[g.shape[1],g.shape[2],g.shape[3]]):g}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2),l=n(7);const h=Object(u.b)({localResponseNormalization_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","log1p")};return s.a.runKernel(i._33,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({log1p_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","softplus")};return s.a.runKernel(i._96,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({softplus_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(s.a)(t,"a","logicalXor","bool"),a=Object(s.a)(e,"b","logicalXor","bool");return Object(i.assertAndGetBroadcastShape)(n.shape,a.shape),Object(o.a)(Object(u.a)(t,e),Object(c.a)(Object(o.a)(t,e)))}var s=n(3),i=n(19),o=n(95),c=n(143),u=n(187),l=n(2);const h=Object(l.b)({logicalXor_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,paddings,e){c.assert("reflect"===e||"symmetric"===e,(()=>`Invalid mode. Mode must be either reflect or symmetric. Got ${e}.`));const n=Object(o.a)(t,"x","mirrorPad");if(0===n.rank)throw new Error("mirrorPad(scalar) is not defined. Pass non-scalar to mirrorPad");c.assert(paddings.length===n.rank,(()=>`Padding doesn't match input. Must be ${n.rank}. Got ${paddings.length}.`));const a="reflect"===e?1:0;for(let t=0;t<n.rank;t++)c.assert(2===paddings[t].length,(()=>"Invalid number of paddings. Must be length of 2 each.")),c.assert(paddings[t][0]>=0&&paddings[t][0]<=n.shape[t]-a&&paddings[t][1]>=0&&paddings[t][1]<=n.shape[t]-a,(()=>`Padding in dimension ${t} cannot be greater than or equal to ${n.shape[t]-a} or less than 0 for input of shape ${n.shape}`));const u={paddings:paddings,mode:e},l={x:n};return s.a.runKernel(i._51,l,u)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({mirrorPad_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=Object(c.a)(t,"a","mod"),a=Object(c.a)(e,"b","mod");[n,a]=Object(o.makeTypesMatch)(n,a);const u={a:n,b:a};return s.a.runKernel(i._52,u)}var s=n(4),i=n(1),o=n(23),c=n(3),u=n(2);const l=Object(u.b)({mod_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t,e,n,a,f,g){null==a&&(a=[1,1]),null==f&&(f=1),0===n&&(n="valid");const v=Object(o.a)(input,"x","maxPool");let w=v,y=false;3===v.rank&&(y=true,w=Object(b.a)(v,[1,v.shape[0],v.shape[1],v.shape[2]])),c.assert(h.i(f,a),(()=>`Error in pool: Either strides or dilations must be 1. Got strides ${f} and dilations '${a}'`));const O=h.f(w.shape,t,f,a,n),x=[O.dilationHeight,O.dilationWidth];let A;A="same"===n?i([O.filterHeight,O.filterWidth],x):[[0,0],[0,0]];const I=1===x[0]&&1===x[1],[j,C]=s([O.inHeight,O.inWidth],x,A),_=I?n:"valid",k=I?w:Object(m.a)(w,x,j),S=undefined,T=("avg"===e?()=>Object(u.a)(k,t,f,_,g):()=>Object(p.a)(k,t,f,_,g))(),L=I?T:Object(l.a)(T,x,C);return y?Object(b.a)(L,[L.shape[1],L.shape[2],L.shape[3]]):L}function s(t,blockShape,e){const n=e.map((t=>t[0])),a=e.map((t=>t[1])),s=t.concat(n,a),i=blockShape.map(((t,e)=>(t-s[e]%t)%t)),o=a.map(((t,e)=>t+i[e])),paddings=undefined,c=undefined;return[blockShape.map(((t,e)=>[n[e],o[e]])),blockShape.map(((t,e)=>[0,i[e]]))]}function i(t,e){const n=undefined,a=t.map(((t,n)=>t+(t-1)*(e[n]-1))).map((t=>t-1)),s=a.map((t=>Math.floor(t/2))),i=a.map(((t,e)=>t-s[e]));return a.map(((t,e)=>[s[e],i[e]]))}var o=n(3),c=n(5),u=n(176),l=n(136),h=n(33),p=n(189),f=n(2),b=n(7),m=n(147);const g=Object(f.b)({pool_:a});e.a=g},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){let a=Object(o.a)(t,"x","prod");"bool"===a.dtype&&(a=Object(c.a)(a,"int32"));const u={x:a},l={axis:e,keepDims:n};return s.a.runKernel(i._67,u,l)}var s=n(4),i=n(1),o=n(3),c=n(13),u=n(2);const l=Object(u.b)({prod_:a});e.a=l},function(t,e,n){"use strict";function a(t,e,n){return null==n&&(n=s()),i(t,e,((t,e)=>l(t,e,n)))}function s(){return 32===g.a.backend.floatPrecision()?y:O}function i(t,e,n){let a=true;if((Object(w.isTypedArray)(t)||Object(w.isTypedArray)(e))&&(a=false),Object(w.isTypedArray)(t)&&Object(w.isTypedArray)(e)&&(a=true),a){const n=t.constructor.name,a=e.constructor.name;if(n!==a)throw new Error(`Arrays are of different type. Actual: ${n}. Expected: ${a}`)}if(Array.isArray(t)&&Array.isArray(e)){const n=Object(v.c)(t),a=Object(v.c)(e);if(!Object(w.arraysEqual)(n,a))throw new Error(`Arrays have different shapes. Actual: [${n}]. Expected: [${a}]`)}const s=Object(w.isTypedArray)(t)?t:Object(w.flatten)(t),i=Object(w.isTypedArray)(e)?e:Object(w.flatten)(e);if(s.length!==i.length)throw new Error(`Arrays have different lengths actual: ${s.length} vs expected: ${i.length}.\nActual: ${s}.\nExpected: ${i}.`);for(let t=0;t<i.length;++t){const e=s[t],a=i[t];if(!n(e,a))throw new Error(`Arrays differ: actual[${t}] = ${e}, expected[${t}] = ${a}.\nActual: ${s}.\nExpected: ${i}.`)}"undefined"!=typeof expect&&expect().nothing()}function o(t,e){t().then((()=>e.fail()),(()=>e())),"undefined"!=typeof expect&&expect().nothing()}function c(t,e){const n="string"==typeof e||"number"==typeof e||"boolean"==typeof e?[e]:e;return Object(w.isString)(t)||Object(w.isString)(t[0])||Object(w.isString)(e)||Object(w.isString)(e[0])?i(t,n,((t,e)=>t==e)):i(t,e,((t,e)=>l(t,e,0)))}function u(t,e,n){if(null==n&&(n=s()),!l(t,e,n))throw new Error(`Numbers differ: actual === ${t}, expected === ${e}`);"undefined"!=typeof expect&&expect().nothing()}function l(t,e,n){return!isFinite(t)&&!isFinite(e)||!(isNaN(t)||isNaN(e)||Math.abs(t-e)>n)}function h(t,e,n){for(let a=0;a<t.length;a++)if(t[a]<e||t[a]>n)throw new Error(`Value out of range:${t[a]} low: ${e}, high: ${n}`)}function p(t,e){const n=new Float32Array(t),a=new Float32Array(e);if(n.length!==a.length)throw new Error(`Expected ArrayBuffer to be of length ${a.length}, but it was ${n.length}`);for(let t=0;t<a.length;t++)if(n[t]!==a[t])throw new Error(`Expected ArrayBuffer value at ${t} to be ${a[t]} but got ${n[t]} instead`)}function f(t){for(let e=0;e<t.length;e++){const n=t[e];Array.isArray(n)?f(n):t[e]=Object(w.encodeString)(n)}return t}function b(t){const video=document.createElement("video");return"playsInline"in video&&(video.playsInline=true),video.muted=true,video.loop=true,video.style.position="fixed",video.style.left="0px",video.style.top="0px",video.preload="auto",video.appendChild(t),new Promise((t=>{video.addEventListener("loadeddata",(e=>t(video))),video.load()}))}async function m(video){await video.play(),"requestVideoFrameCallback"in video&&await new Promise((t=>{video.requestVideoFrameCallback(t)}))}Object.defineProperty(e,"__esModule",{value:true}),e.expectArraysClose=a,e.testEpsilon=s,e.expectPromiseToFail=o,e.expectArraysEqual=c,e.expectNumbersClose=u,e.expectValuesInRange=h,e.expectArrayBuffersEqual=p,e.encodeStrings=f,e.createVideoElement=b,e.play=m;var g=n(4),v=n(3),w=n(5);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const y=.001,O=.1;e.TEST_EPSILON_FLOAT16=O},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t=0,e=1,n,a){if(Object(s.d)(shape),null!=n&&"bool"===n)throw new Error(`Unsupported data type ${n}`);const o=new c.a(t,e,n,false,a),u=Object(i.a)(shape,n);for(let t=0;t<u.values.length;t++)u.values[t]=o.nextValue();return u.toTensor()}var s=n(35),i=n(68),o=n(2),c=n(148);const u=Object(o.b)({randomNormal_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","round")};return s.a.runKernel(i._84,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({round_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","rsqrt","float32")};return s.a.runKernel(i._85,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({rsqrt_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","selu")};return s.a.runKernel(i._89,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({selu_:a});e.a=u},function(t,e,n){"use strict";function a(t,e,n,a,u,h=[1,1],p="NHWC"){const f=Object(s.a)(t,"x","separableConv2d"),b=Object(s.a)(e,"depthwiseFilter","separableConv2d"),m=Object(s.a)(n,"pointwiseFilter","separableConv2d");let g=f,v=false;if(3===f.rank&&(v=true,g=Object(l.a)(f,[1,f.shape[0],f.shape[1],f.shape[2]])),"NCHW"===p)throw new Error("separableConv2d currently does not support dataFormat NCHW; only NHWC is supported");i.assert(4===g.rank,(()=>`Error in separableConv2d: input must be rank 4, but got rank ${g.rank}.`)),i.assert(4===b.rank,(()=>`Error in separableConv2d: depthwise filter must be rank 4, but got rank ${b.rank}.`)),i.assert(4===m.rank,(()=>`Error in separableConv2d: pointwise filter must be rank 4, but got rank ${b.rank}.`)),i.assert(1===m.shape[0],(()=>`Error in separableConv2d: the first dimension of pointwise filter must be 1, but got ${m.shape[0]}.`)),i.assert(1===m.shape[1],(()=>`Error in separableConv2d: the second dimension of pointwise filter must be 1, but got ${m.shape[1]}.`));const w=b.shape[2],y=b.shape[3];i.assert(m.shape[2]===w*y,(()=>`Error in separableConv2d: the third dimension of pointwise filter must be ${w*y}, but got ${m.shape[2]}.`));const O=Object(c.a)(g,b,a,u,p,h),x=1,A=Object(o.a)(O,m,1,"valid",p);return v?Object(l.a)(A,[A.shape[1],A.shape[2],A.shape[3]]):A}var s=n(3),i=n(5),o=n(93),c=n(137),u=n(2),l=n(7);const h=Object(u.b)({separableConv2d_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","sin","float32")};return s.a.runKernel(i._92,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sin_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","sinh")};return s.a.runKernel(i._93,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sinh_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input){const t=input.shape[input.shape.length-1],e=input.size/t;let n;if(t<=2){const a=Object(h.a)(input,[e,t]);n=Object(m.a)(a)}else{const a=[e,2*(t-1)],u=Object(h.a)(Object(l.a)(input),[e,t]),g=Object(h.a)(Object(o.a)(input),[e,t]),v=Object(p.a)(Object(b.a)(u,[0,1],[e,t-2]),1),w=Object(c.a)(Object(p.a)(Object(b.a)(g,[0,1],[e,t-2]),1),Object(f.a)(-1)),r=Object(i.a)([u,v],1),y=Object(i.a)([g,w],1),O=Object(h.a)(Object(s.a)(r,y),[a[0],a[1]]);n=Object(m.a)(O)}if(n=Object(l.a)(n),3===input.rank&&0!==input.shape[0]){const t=n,e=input.shape[0];n=Object(h.a)(n,[e,n.shape[0]/e,n.shape[1]]),t.dispose()}return n}var s=n(79),i=n(48),o=n(141),c=n(9),u=n(2),l=n(150),h=n(7),p=n(70),f=n(22),b=n(42),m=n(197);const g=Object(u.b)({irfft_:a});e.a=g},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e){if(Object(i.assertNonNull)(t),null!=shape&&3!==shape.length)throw new Error("tensor3d() requires shape to have three numbers");const n=Object(s.c)(t,e);if(3!==n.length&&1!==n.length)throw new Error("tensor3d() requires values to be number[][][] or flat/TypedArray");if(1===n.length&&null==shape)throw new Error("tensor3d() requires shape to be provided when `values` are a flat array");return Object(o.a)(t,shape,n,e)}e.a=a;var s=n(3),i=n(5),o=n(67)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=1,n=true){const a=Object(o.a)(t,"x","topk");if(0===a.rank)throw new Error("topk() expects the input to be of rank 1 or higher");const c=a.shape[a.shape.length-1];if(e<0)throw new Error(`'k' passed to topk() must be >= 0 but got ${e}`);if(e>c)throw new Error(`'k' passed to topk() must be <= the last dimension (${c}) but got ${e}`);const u={x:a},l={k:e,sorted:n},[h,p]=s.a.runKernel(i._119,u,l);return{values:h,indices:p}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({topk_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=0){const n=Object(o.a)(t,"x","unique","string_or_numeric");Object(c.assert)(n.rank>0,(()=>"The input tensor must be at least 1D"));const a={x:n},u={axis:e},[l,h]=s.a.runKernel(i._122,a,u);return{values:l,indices:h}}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({unique_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
async function a(t){const e=Object(i.a)(t,"condition","whereAsync","bool"),n=await e.data(),a=Object(s.a)(e.shape,n);return t!==e&&e.dispose(),a}var s=n(279),i=n(3);const o=a;e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=[];for(let t=0;t<e.length;t++)e[t]&&n.push(t);const a=Object(s.a)(t,"int32"),i=Object(s.a)([n.length,t.length],"int32");for(let e=0;e<n.length;e++){const s=a.indexToLoc(n[e]),o=e*t.length;i.values.set(s,o)}return i.toTensor()}e.a=a;var s=n(68)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,o,u=[1,1],l){let h=t;3===t.rank&&(h=Object(c.a)(t,[1,t.shape[0],t.shape[1],t.shape[2]]));let p=e;3===p.rank&&(p=Object(c.a)(e,[1,e.shape[0],e.shape[1],e.shape[2]]));const f={x:h,dy:p},b={strides:a,pad:o,dimRoundingMode:l,dilations:u,filterShape:n};return s.a.runKernel(i.S,f,b)}var s=n(4),i=n(1),o=n(2),c=n(7);const u=Object(o.b)({depthwiseConv2dNativeBackpropFilter_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,filter,n,a,o=[1,1],u){let l=e,h=false;3===e.rank&&(h=true,l=Object(c.a)(e,[1,e.shape[0],e.shape[1],e.shape[2]]));const p={dy:l,filter:filter},f={strides:n,pad:a,dimRoundingMode:u,dilations:o,inputShape:t},b=s.a.runKernel(i.T,p,f);return h?Object(c.a)(b,[b.shape[1],b.shape[2],b.shape[3]]):b}var s=n(4),i=n(1),o=n(2),c=n(7);const u=Object(o.b)({depthwiseConv2dNativeBackpropInput_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return Object(i.a)(t,.5,.5)}var s=n(2),i=n(153);const o=Object(s.b)({hannWindow_:a});e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=false,o=0){let h=0;const p=[];for(;h+e<=t.size;)p.push(Object(u.a)(t,h,e)),h+=n;if(a)for(;h<t.size;){const a=h+e-t.size,c=Object(s.a)([Object(u.a)(t,h,e-a),Object(i.a)([a],o)]);p.push(c),h+=n}return 0===p.length?Object(l.a)([],[0,e]):Object(c.a)(Object(s.a)(p),[p.length,e])}var s=n(48),i=n(113),o=n(2),c=n(7),u=n(42),l=n(200);const h=Object(o.b)({frame_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,size,e=false,n=false){const a=Object(o.a)(t,"images","resizeBilinear");c.assert(3===a.rank||4===a.rank,(()=>`Error in resizeBilinear: x must be rank 3 or 4, but got rank ${a.rank}.`)),c.assert(2===size.length,(()=>`Error in resizeBilinear: new shape must 2D, but got shape ${size}.`)),c.assert(false===n||false===e,(()=>"Error in resizeBilinear: If halfPixelCenters is true, alignCorners must be false."));let u=a,h=false;3===a.rank&&(h=true,u=Object(l.a)(a,[1,a.shape[0],a.shape[1],a.shape[2]]));const[]=size,p={images:u},f={alignCorners:e,halfPixelCenters:n,size:size},b=s.a.runKernel(i._78,p,f);return h?Object(l.a)(b,[b.shape[1],b.shape[2],b.shape[3]]):b}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2),l=n(7);const h=Object(u.b)({resizeBilinear_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,size,e=false,n=false){const a=Object(o.a)(t,"images","resizeNearestNeighbor");c.assert(3===a.rank||4===a.rank,(()=>`Error in resizeNearestNeighbor: x must be rank 3 or 4, but got rank ${a.rank}.`)),c.assert(2===size.length,(()=>`Error in resizeNearestNeighbor: new shape must 2D, but got shape ${size}.`)),c.assert("float32"===a.dtype||"int32"===a.dtype,(()=>"`images` must have `int32` or `float32` as dtype")),c.assert(false===n||false===e,(()=>"Error in resizeNearestNeighbor: If halfPixelCenters is true, alignCorners must be false."));let u=a,h=false;3===a.rank&&(h=true,u=Object(l.a)(a,[1,a.shape[0],a.shape[1],a.shape[2]]));const[]=size,p={images:u},f={alignCorners:e,halfPixelCenters:n,size:size},b=s.a.runKernel(i._80,p,f);return h?Object(l.a)(b,[b.shape[1],b.shape[2],b.shape[3]]):b}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2),l=n(7);const h=Object(u.b)({resizeNearestNeighbor_:a});e.a=h},function(t,e,n){"use strict";var a=n(549),s=n(554),i=n(19),o=n(556),c=n(288),u=n(152),l=n(209),h=n(203),p=n(23),f=n(266),b=n(5),m=n(557),g=n(174);n.d(e,"d",(function(){return g.a}));var v=n(204);n.d(e,"e",(function(){return v.a}));var w=n(205);n.d(e,"f",(function(){return w.a}));var y=n(206);n.d(e,"g",(function(){return y.a}));var O=n(207);n.d(e,"_61",(function(){return O.a}));var x=n(86);n.d(e,"_72",(function(){return x.a}));var A=n(289);n.d(e,"_73",(function(){return A.a}));var I=n(208);n.d(e,"_80",(function(){return I.a}));var j=n(155);n.d(e,"_101",(function(){return j.a}));var C=n(6);n.d(e,"_133",(function(){return C.a})),n.d(e,"_134",(function(){return C.b})),n.d(e,"_144",(function(){return C.c}));var _=n(108);n.d(e,"_85",(function(){return _.a})),n.d(e,"_381",(function(){return _.d})),n.d(e,"_406",(function(){return _.e}));var k=n(11);n.d(e,"_69",(function(){return k.a})),n.d(e,"_147",(function(){return k.b})),n.d(e,"_148",(function(){return k.c})),n.d(e,"_149",(function(){return k.d})),n.d(e,"_150",(function(){return k.e})),n.d(e,"_151",(function(){return k.f})),n.d(e,"_152",(function(){return k.g})),n.d(e,"_153",(function(){return k.h})),n.d(e,"_154",(function(){return k.i})),n.d(e,"_155",(function(){return k.j})),n.d(e,"_156",(function(){return k.k})),n.d(e,"_157",(function(){return k.l})),n.d(e,"_158",(function(){return k.m})),n.d(e,"_159",(function(){return k.n})),n.d(e,"_160",(function(){return k.o})),n.d(e,"_161",(function(){return k.p})),n.d(e,"_162",(function(){return k.q})),n.d(e,"_165",(function(){return k.r})),n.d(e,"_166",(function(){return k.s})),n.d(e,"_167",(function(){return k.t})),n.d(e,"_168",(function(){return k.u})),n.d(e,"_169",(function(){return k.v})),n.d(e,"_170",(function(){return k.w})),n.d(e,"_171",(function(){return k.x})),n.d(e,"_172",(function(){return k.y})),n.d(e,"_173",(function(){return k.z})),n.d(e,"_174",(function(){return k.A})),n.d(e,"_175",(function(){return k.B})),n.d(e,"_178",(function(){return k.C})),n.d(e,"_179",(function(){return k.D})),n.d(e,"_180",(function(){return k.E})),n.d(e,"_181",(function(){return k.F})),n.d(e,"_182",(function(){return k.G})),n.d(e,"_183",(function(){return k.H})),n.d(e,"_184",(function(){return k.I})),n.d(e,"_185",(function(){return k.J})),n.d(e,"_186",(function(){return k.K})),n.d(e,"_187",(function(){return k.L})),n.d(e,"_188",(function(){return k.M})),n.d(e,"_189",(function(){return k.N})),n.d(e,"_190",(function(){return k.O})),n.d(e,"_191",(function(){return k.P})),n.d(e,"_192",(function(){return k.Q})),n.d(e,"_193",(function(){return k.R})),n.d(e,"_195",(function(){return k.S})),n.d(e,"_196",(function(){return k.T})),n.d(e,"_197",(function(){return k.U})),n.d(e,"_198",(function(){return k.V})),n.d(e,"_199",(function(){return k.W})),n.d(e,"_201",(function(){return k.X})),n.d(e,"_203",(function(){return k.Y})),n.d(e,"_204",(function(){return k.Z})),n.d(e,"_206",(function(){return k._0})),n.d(e,"_207",(function(){return k._1})),n.d(e,"_211",(function(){return k._2})),n.d(e,"_212",(function(){return k._3})),n.d(e,"_213",(function(){return k._4})),n.d(e,"_214",(function(){return k._5})),n.d(e,"_215",(function(){return k._6})),n.d(e,"_216",(function(){return k._7})),n.d(e,"_219",(function(){return k._8})),n.d(e,"_221",(function(){return k._9})),n.d(e,"_223",(function(){return k._10})),n.d(e,"_224",(function(){return k._11})),n.d(e,"_225",(function(){return k._12})),n.d(e,"_226",(function(){return k._13})),n.d(e,"_227",(function(){return k._14})),n.d(e,"_228",(function(){return k._15})),n.d(e,"_229",(function(){return k._16})),n.d(e,"_230",(function(){return k._17})),n.d(e,"_231",(function(){return k._18})),n.d(e,"_234",(function(){return k._19})),n.d(e,"_235",(function(){return k._20})),n.d(e,"_236",(function(){return k._21})),n.d(e,"_237",(function(){return k._22})),n.d(e,"_238",(function(){return k._23})),n.d(e,"_246",(function(){return k._24})),n.d(e,"_247",(function(){return k._25})),n.d(e,"_248",(function(){return k._26})),n.d(e,"_249",(function(){return k._27})),n.d(e,"_250",(function(){return k._28})),n.d(e,"_251",(function(){return k._29})),n.d(e,"_253",(function(){return k._30})),n.d(e,"_254",(function(){return k._31})),n.d(e,"_255",(function(){return k._32})),n.d(e,"_256",(function(){return k._33})),n.d(e,"_259",(function(){return k._34})),n.d(e,"_260",(function(){return k._35})),n.d(e,"_261",(function(){return k._36})),n.d(e,"_262",(function(){return k._37})),n.d(e,"_263",(function(){return k._38})),n.d(e,"_264",(function(){return k._39})),n.d(e,"_265",(function(){return k._40})),n.d(e,"_266",(function(){return k._41})),n.d(e,"_267",(function(){return k._42})),n.d(e,"_268",(function(){return k._43})),n.d(e,"_269",(function(){return k._44})),n.d(e,"_270",(function(){return k._45})),n.d(e,"_271",(function(){return k._46})),n.d(e,"_272",(function(){return k._47})),n.d(e,"_273",(function(){return k._48})),n.d(e,"_274",(function(){return k._49})),n.d(e,"_275",(function(){return k._50})),n.d(e,"_276",(function(){return k._51})),n.d(e,"_278",(function(){return k._52})),n.d(e,"_279",(function(){return k._53})),n.d(e,"_280",(function(){return k._54})),n.d(e,"_281",(function(){return k._55})),n.d(e,"_282",(function(){return k._56})),n.d(e,"_283",(function(){return k._57})),n.d(e,"_285",(function(){return k._58})),n.d(e,"_286",(function(){return k._59})),n.d(e,"_287",(function(){return k._60})),n.d(e,"_288",(function(){return k._61})),n.d(e,"_289",(function(){return k._62})),n.d(e,"_290",(function(){return k._63})),n.d(e,"_291",(function(){return k._64})),n.d(e,"_292",(function(){return k._65})),n.d(e,"_293",(function(){return k._66})),n.d(e,"_294",(function(){return k._67})),n.d(e,"_295",(function(){return k._68})),n.d(e,"_297",(function(){return k._69})),n.d(e,"_298",(function(){return k._70})),n.d(e,"_299",(function(){return k._71})),n.d(e,"_300",(function(){return k._72})),n.d(e,"_301",(function(){return k._73})),n.d(e,"_302",(function(){return k._74})),n.d(e,"_303",(function(){return k._75})),n.d(e,"_304",(function(){return k._76})),n.d(e,"_305",(function(){return k._77})),n.d(e,"_306",(function(){return k._78})),n.d(e,"_307",(function(){return k._79})),n.d(e,"_308",(function(){return k._80})),n.d(e,"_309",(function(){return k._81})),n.d(e,"_310",(function(){return k._82})),n.d(e,"_311",(function(){return k._83})),n.d(e,"_312",(function(){return k._84})),n.d(e,"_313",(function(){return k._85})),n.d(e,"_315",(function(){return k._86})),n.d(e,"_316",(function(){return k._87})),n.d(e,"_317",(function(){return k._88})),n.d(e,"_318",(function(){return k._89})),n.d(e,"_319",(function(){return k._90})),n.d(e,"_320",(function(){return k._91})),n.d(e,"_321",(function(){return k._92})),n.d(e,"_322",(function(){return k._93})),n.d(e,"_323",(function(){return k._94})),n.d(e,"_324",(function(){return k._95})),n.d(e,"_326",(function(){return k._96})),n.d(e,"_327",(function(){return k._97})),n.d(e,"_331",(function(){return k._98})),n.d(e,"_332",(function(){return k._99})),n.d(e,"_334",(function(){return k._100})),n.d(e,"_335",(function(){return k._101})),n.d(e,"_336",(function(){return k._102})),n.d(e,"_337",(function(){return k._103})),n.d(e,"_338",(function(){return k._104})),n.d(e,"_339",(function(){return k._105})),n.d(e,"_340",(function(){return k._106})),n.d(e,"_341",(function(){return k._107})),n.d(e,"_342",(function(){return k._108})),n.d(e,"_343",(function(){return k._109})),n.d(e,"_344",(function(){return k._110})),n.d(e,"_346",(function(){return k._111})),n.d(e,"_347",(function(){return k._112})),n.d(e,"_348",(function(){return k._113})),n.d(e,"_352",(function(){return k._114})),n.d(e,"_353",(function(){return k._115})),n.d(e,"_354",(function(){return k._116})),n.d(e,"_355",(function(){return k._117})),n.d(e,"_356",(function(){return k._118})),n.d(e,"_357",(function(){return k._119})),n.d(e,"_358",(function(){return k._120})),n.d(e,"_359",(function(){return k._121})),n.d(e,"_360",(function(){return k._122})),n.d(e,"_361",(function(){return k._123})),n.d(e,"_362",(function(){return k._124})),n.d(e,"_364",(function(){return k._125})),n.d(e,"_365",(function(){return k._126})),n.d(e,"_366",(function(){return k._127})),n.d(e,"_367",(function(){return k._128})),n.d(e,"_368",(function(){return k._129})),n.d(e,"_369",(function(){return k._130})),n.d(e,"_370",(function(){return k._131})),n.d(e,"_371",(function(){return k._132})),n.d(e,"_372",(function(){return k._133})),n.d(e,"_373",(function(){return k._134})),n.d(e,"_374",(function(){return k._135})),n.d(e,"_375",(function(){return k._136})),n.d(e,"_376",(function(){return k._137})),n.d(e,"_377",(function(){return k._138})),n.d(e,"_378",(function(){return k._139})),n.d(e,"_379",(function(){return k._140})),n.d(e,"_380",(function(){return k._141})),n.d(e,"_382",(function(){return k._142})),n.d(e,"_383",(function(){return k._143})),n.d(e,"_384",(function(){return k._144})),n.d(e,"_385",(function(){return k._145})),n.d(e,"_386",(function(){return k._146})),n.d(e,"_387",(function(){return k._147})),n.d(e,"_388",(function(){return k._148})),n.d(e,"_389",(function(){return k._149})),n.d(e,"_390",(function(){return k._150})),n.d(e,"_391",(function(){return k._151})),n.d(e,"_395",(function(){return k._152})),n.d(e,"_397",(function(){return k._153})),n.d(e,"_399",(function(){return k._154})),n.d(e,"_400",(function(){return k._155})),n.d(e,"_401",(function(){return k._156})),n.d(e,"_404",(function(){return k._157})),n.d(e,"_405",(function(){return k._158})),n.d(e,"_407",(function(){return k._159})),n.d(e,"_411",(function(){return k._160})),n.d(e,"_414",(function(){return k._161})),n.d(e,"_415",(function(){return k._162})),n.d(e,"_416",(function(){return k._163})),n.d(e,"_417",(function(){return k._164}));var S=n(57);n.d(e,"_89",(function(){return S.a}));var T=n(558);n.d(e,"_398",(function(){return T.a}));var L=n(44);n.d(e,"_163",(function(){return L.a})),n.d(e,"_202",(function(){return L.b})),n.d(e,"_208",(function(){return L.c})),n.d(e,"_209",(function(){return L.d})),n.d(e,"_210",(function(){return L.e})),n.d(e,"_217",(function(){return L.f})),n.d(e,"_218",(function(){return L.g})),n.d(e,"_220",(function(){return L.h})),n.d(e,"_232",(function(){return L.i})),n.d(e,"_233",(function(){return L.j})),n.d(e,"_240",(function(){return L.k})),n.d(e,"_257",(function(){return L.l})),n.d(e,"_284",(function(){return L.m})),n.d(e,"_314",(function(){return L.n})),n.d(e,"_325",(function(){return L.o})),n.d(e,"_328",(function(){return L.p})),n.d(e,"_333",(function(){return L.q})),n.d(e,"_350",(function(){return L.r})),n.d(e,"_351",(function(){return L.s})),n.d(e,"_394",(function(){return L.t})),n.d(e,"_396",(function(){return L.u}));var B=n(134);n.d(e,"_194",(function(){return B.a})),n.d(e,"_241",(function(){return B.b})),n.d(e,"_242",(function(){return B.c})),n.d(e,"_243",(function(){return B.d})),n.d(e,"_329",(function(){return B.e})),n.d(e,"_330",(function(){return B.f})),n.d(e,"_402",(function(){return B.g})),n.d(e,"_403",(function(){return B.h}));var N=n(69);n.d(e,"_200",(function(){return N.a})),n.d(e,"_244",(function(){return N.b})),n.d(e,"_245",(function(){return N.c})),n.d(e,"_409",(function(){return N.d})),n.d(e,"_410",(function(){return N.e})),n.d(e,"_412",(function(){return N.f}));var E=n(39);n.d(e,"_8",(function(){return E.b})),n.d(e,"_222",(function(){return E.c})),n.d(e,"_4",(function(){return E.a})),n.d(e,"_413",(function(){return m.a}));var M=n(559);n.d(e,"_296",(function(){return M.a}));var F=n(562),W=n(234);n.d(e,"_177",(function(){return o})),n.d(e,"_252",(function(){return a})),n.d(e,"_277",(function(){return s})),n.d(e,"_349",(function(){return h})),n.d(e,"_393",(function(){return f})),n.d(e,"_408",(function(){return b})),n.d(e,"_164",(function(){return F})),n.d(e,"_176",(function(){return i})),n.d(e,"_392",(function(){return p})),n.d(e,"_363",(function(){return l})),n.d(e,"_239",(function(){return c})),n.d(e,"_345",(function(){return u})),n.d(e,"_205",(function(){return W}));var z=n(576);n.d(e,"_258",(function(){return z}));var P=n(232);n.d(e,"_33",(function(){return P.b})),n.d(e,"T",(function(){return P.a}));var G=n(1);n.d(e,"a",(function(){return G.a})),n.d(e,"b",(function(){return G.b})),n.d(e,"c",(function(){return G.c})),n.d(e,"h",(function(){return G.d})),n.d(e,"i",(function(){return G.e})),n.d(e,"j",(function(){return G.f})),n.d(e,"k",(function(){return G.g})),n.d(e,"l",(function(){return G.h})),n.d(e,"m",(function(){return G.i})),n.d(e,"n",(function(){return G.j})),n.d(e,"o",(function(){return G.k})),n.d(e,"p",(function(){return G.l})),n.d(e,"q",(function(){return G.m})),n.d(e,"r",(function(){return G.n})),n.d(e,"s",(function(){return G.o})),n.d(e,"t",(function(){return G.p})),n.d(e,"u",(function(){return G.q})),n.d(e,"v",(function(){return G.r})),n.d(e,"w",(function(){return G.s})),n.d(e,"x",(function(){return G.t})),n.d(e,"y",(function(){return G.u})),n.d(e,"z",(function(){return G.v})),n.d(e,"A",(function(){return G.w})),n.d(e,"B",(function(){return G.x})),n.d(e,"C",(function(){return G.y})),n.d(e,"D",(function(){return G.z})),n.d(e,"E",(function(){return G.A})),n.d(e,"F",(function(){return G.B})),n.d(e,"G",(function(){return G.C})),n.d(e,"H",(function(){return G.D})),n.d(e,"I",(function(){return G.E})),n.d(e,"J",(function(){return G.F})),n.d(e,"K",(function(){return G.G})),n.d(e,"L",(function(){return G.H})),n.d(e,"M",(function(){return G.I})),n.d(e,"N",(function(){return G.J})),n.d(e,"O",(function(){return G.K})),n.d(e,"P",(function(){return G.L})),n.d(e,"Q",(function(){return G.M})),n.d(e,"R",(function(){return G.N})),n.d(e,"S",(function(){return G.O})),n.d(e,"U",(function(){return G.P})),n.d(e,"V",(function(){return G.Q})),n.d(e,"W",(function(){return G.R})),n.d(e,"X",(function(){return G.S})),n.d(e,"Y",(function(){return G.T})),n.d(e,"Z",(function(){return G.U})),n.d(e,"_0",(function(){return G.V})),n.d(e,"_1",(function(){return G.W})),n.d(e,"_2",(function(){return G.X})),n.d(e,"_3",(function(){return G.Y})),n.d(e,"_5",(function(){return G.Z})),n.d(e,"_6",(function(){return G._0})),n.d(e,"_7",(function(){return G._1})),n.d(e,"_9",(function(){return G._2})),n.d(e,"_10",(function(){return G._3})),n.d(e,"_11",(function(){return G._4})),n.d(e,"_12",(function(){return G._5})),n.d(e,"_13",(function(){return G._6})),n.d(e,"_14",(function(){return G._7})),n.d(e,"_15",(function(){return G._8})),n.d(e,"_16",(function(){return G._9})),n.d(e,"_17",(function(){return G._10})),n.d(e,"_18",(function(){return G._11})),n.d(e,"_19",(function(){return G._12})),n.d(e,"_20",(function(){return G._13})),n.d(e,"_21",(function(){return G._14})),n.d(e,"_22",(function(){return G._15})),n.d(e,"_23",(function(){return G._16})),n.d(e,"_24",(function(){return G._17})),n.d(e,"_25",(function(){return G._18})),n.d(e,"_26",(function(){return G._19})),n.d(e,"_27",(function(){return G._20})),n.d(e,"_28",(function(){return G._21})),n.d(e,"_29",(function(){return G._22})),n.d(e,"_30",(function(){return G._23})),n.d(e,"_31",(function(){return G._24})),n.d(e,"_32",(function(){return G._25})),n.d(e,"_34",(function(){return G._26})),n.d(e,"_35",(function(){return G._27})),n.d(e,"_36",(function(){return G._28})),n.d(e,"_37",(function(){return G._29})),n.d(e,"_38",(function(){return G._30})),n.d(e,"_39",(function(){return G._31})),n.d(e,"_40",(function(){return G._32})),n.d(e,"_41",(function(){return G._33})),n.d(e,"_42",(function(){return G._34})),n.d(e,"_43",(function(){return G._35})),n.d(e,"_44",(function(){return G._36})),n.d(e,"_45",(function(){return G._37})),n.d(e,"_46",(function(){return G._38})),n.d(e,"_47",(function(){return G._39})),n.d(e,"_48",(function(){return G._40})),n.d(e,"_49",(function(){return G._41})),n.d(e,"_50",(function(){return G._42})),n.d(e,"_51",(function(){return G._43})),n.d(e,"_52",(function(){return G._44})),n.d(e,"_53",(function(){return G._45})),n.d(e,"_54",(function(){return G._46})),n.d(e,"_55",(function(){return G._47})),n.d(e,"_56",(function(){return G._48})),n.d(e,"_57",(function(){return G._49})),n.d(e,"_58",(function(){return G._50})),n.d(e,"_59",(function(){return G._51})),n.d(e,"_60",(function(){return G._52})),n.d(e,"_62",(function(){return G._53})),n.d(e,"_63",(function(){return G._54})),n.d(e,"_64",(function(){return G._55})),n.d(e,"_65",(function(){return G._56})),n.d(e,"_66",(function(){return G._57})),n.d(e,"_67",(function(){return G._58})),n.d(e,"_68",(function(){return G._59})),n.d(e,"_70",(function(){return G._60})),n.d(e,"_71",(function(){return G._61})),n.d(e,"_74",(function(){return G._62})),n.d(e,"_75",(function(){return G._63})),n.d(e,"_76",(function(){return G._64})),n.d(e,"_77",(function(){return G._65})),n.d(e,"_78",(function(){return G._66})),n.d(e,"_79",(function(){return G._67})),n.d(e,"_81",(function(){return G._68})),n.d(e,"_82",(function(){return G._69})),n.d(e,"_83",(function(){return G._70})),n.d(e,"_84",(function(){return G._71})),n.d(e,"_86",(function(){return G._72})),n.d(e,"_87",(function(){return G._73})),n.d(e,"_88",(function(){return G._74})),n.d(e,"_90",(function(){return G._75})),n.d(e,"_91",(function(){return G._76})),n.d(e,"_92",(function(){return G._77})),n.d(e,"_93",(function(){return G._78})),n.d(e,"_94",(function(){return G._79})),n.d(e,"_95",(function(){return G._80})),n.d(e,"_96",(function(){return G._81})),n.d(e,"_97",(function(){return G._82})),n.d(e,"_98",(function(){return G._83})),n.d(e,"_99",(function(){return G._84})),n.d(e,"_100",(function(){return G._85})),n.d(e,"_102",(function(){return G._86})),n.d(e,"_103",(function(){return G._87})),n.d(e,"_104",(function(){return G._88})),n.d(e,"_105",(function(){return G._89})),n.d(e,"_106",(function(){return G._90})),n.d(e,"_107",(function(){return G._91})),n.d(e,"_108",(function(){return G._92})),n.d(e,"_109",(function(){return G._93})),n.d(e,"_110",(function(){return G._94})),n.d(e,"_111",(function(){return G._95})),n.d(e,"_112",(function(){return G._96})),n.d(e,"_113",(function(){return G._97})),n.d(e,"_114",(function(){return G._98})),n.d(e,"_115",(function(){return G._99})),n.d(e,"_116",(function(){return G._100})),n.d(e,"_117",(function(){return G._101})),n.d(e,"_118",(function(){return G._102})),n.d(e,"_119",(function(){return G._103})),n.d(e,"_120",(function(){return G._104})),n.d(e,"_121",(function(){return G._105})),n.d(e,"_122",(function(){return G._106})),n.d(e,"_123",(function(){return G._107})),n.d(e,"_124",(function(){return G._108})),n.d(e,"_125",(function(){return G._109})),n.d(e,"_126",(function(){return G._110})),n.d(e,"_127",(function(){return G._111})),n.d(e,"_128",(function(){return G._112})),n.d(e,"_129",(function(){return G._113})),n.d(e,"_130",(function(){return G._114})),n.d(e,"_131",(function(){return G._115})),n.d(e,"_132",(function(){return G._116})),n.d(e,"_135",(function(){return G._117})),n.d(e,"_136",(function(){return G._118})),n.d(e,"_137",(function(){return G._119})),n.d(e,"_138",(function(){return G._120})),n.d(e,"_139",(function(){return G._121})),n.d(e,"_140",(function(){return G._122})),n.d(e,"_141",(function(){return G._123})),n.d(e,"_142",(function(){return G._124})),n.d(e,"_143",(function(){return G._125})),n.d(e,"_145",(function(){return G._126})),n.d(e,"_146",(function(){return G._127}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
async function a(t,e){null==e&&(e={});const fetchFunc=null==e.fetchFunc?Object(c.c)().platform.fetch:e.fetchFunc,n=t.map((t=>fetchFunc(t,e.requestInit,{isBinary:true}))),a=0,s=.5,i=undefined,o=(null==e.onProgress?await Promise.all(n):await Object(p.a)(n,e.onProgress,0,s)).map((t=>t.arrayBuffer())),u=.5,l=1,h=undefined;return null==e.onProgress?await Promise.all(o):await Object(p.a)(o,e.onProgress,u,1)}function s(t,e){var n;const fetchFunc=null==e.fetchFunc?Object(c.c)().platform.fetch:e.fetchFunc;let a=0,s;return null===(n=e.onProgress)||void 0===n?void 0:n.call(e,0),new ReadableStream({pull:async n=>{for(var i;a<t.length;){if(!s){const n=(await fetchFunc(t[a],e.requestInit,{isBinary:true})).body;s=n.getReader()}const{done:o,value:c}=await s.read();if(!o)return n.enqueue(c),void 0;a++,s=void 0,null===(i=e.onProgress)||void 0===i||i.call(e,a/t.length)}n.close()}})}async function i(t,e="",n,s){const i=undefined,c=undefined;return o((t=>a(t,{requestInit:s})))(t,e,n)}function o(t){return async(e,n="",a)=>{const s=e.map((()=>false)),i={},o=null!=a?a.map((()=>false)):[],c=[];if(e.forEach(((t,e)=>{let n=0;t.weights.forEach((t=>{const l="quantization"in t?t.quantization.dtype:t.dtype,h=f.a[l]*u.sizeFromShape(t.shape),p=()=>{s[e]=true,null==i[e]&&(i[e]=[]),i[e].push({manifestEntry:t,groupOffset:n,sizeBytes:h})};null!=a?a.forEach(((e,n)=>{e===t.name&&(p(),o[n]=true)})):p(),c.push(t.name),n+=h}))})),!o.every((t=>t))){const t=a.filter(((t,e)=>!o[e]));throw new Error(`Could not find weights in manifest with names: ${t.join(", ")}. \nManifest JSON has weights with names: ${c.join(", ")}.`)}const p=s.reduce(((t,e,n)=>(e&&t.push(n),t)),[]),b=[];p.forEach((t=>{e[t].paths.forEach((t=>{const e=n+(n.endsWith("/")?"":"/")+t;b.push(e)}))}));const m=await t(b),g={};let v=0;return p.forEach((t=>{const n=e[t].paths.length,a=new l.a(m.slice(v,v+n)),s=undefined;i[t].forEach((t=>{const e=a.slice(t.groupOffset,t.groupOffset+t.sizeBytes),n=Object(h.e)(e,[t.manifestEntry]);for(const t in n)g[t]=n[t]})),v+=n})),g}}e.b=a,e.c=s,e.a=i,e.d=o;var c=n(39),u=n(5),l=n(80),h=n(78),p=n(552),f=n(236)},function(t,e,n){"use strict";function a(t,e){const n=t.shape.length,a=e.shape.length;if(n<1)throw new Error(`tf.gatherND() expects the input to be rank 1 or higher, but the rank was ${n}.`);if(a<1)throw new Error(`tf.gatherND() expects the indices to be rank 1 or higher, but the rank was ${a}.`);if("int32"!==e.dtype)throw new Error(`tf.gatherND() expects the indices to be int32 type, but the dtype was ${e.dtype}.`);if(e.shape[a-1]>n)throw new Error(`index innermost dimension length must be <= tensor rank; saw: ${e.shape[a-1]} vs. ${n}`);if(0===Object(s.sizeFromShape)(t.shape))throw new Error(`Requested more than 0 entries, but input is empty. Input shape: ${t.shape}.`);const i=e.shape,o=i[i.length-1];let c=1;for(let t=0;t<i.length-1;++t)c*=i[t];const u=t.shape,l=i.slice();l.pop();let h=1;for(let t=o;t<n;++t)h*=u[t],l.push(u[t]);const p=[...Object(s.computeStrides)(t.shape).map((t=>t/h)),1].slice(0,o);return[l,c,h,p]}Object.defineProperty(e,"__esModule",{value:true}),e.prepareAndValidate=a;var s=n(5)},function(t,e,n){"use strict";var a=n(174),s=n(204),i=n(205),o=n(206),c=n(207),u=n(208),l=n(155);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class h{static sgd(t){return new l.a(t)}static momentum(t,e,n=false){return new c.a(t,e,n)}static rmsprop(t,e=.9,n=0,a=null,s=false){return new u.a(t,e,n,a,s)}static adam(t=.001,e=.9,n=.999,a=null){return new i.a(t,e,n,a)}static adadelta(t=.001,e=.95,n=null){return new a.a(t,e,n)}static adamax(t=.002,e=.9,n=.999,a=null,s=0){return new o.a(t,e,n,a,s)}static adagrad(t,e=.1){return new s.a(t,e)}}e.a=h},function(t,e,n){"use strict";function a(t){return t<=i?t:Object(s.nearestDivisor)(t,Math.floor(Math.sqrt(t)))}e.b=a;var s=n(5);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const i=30;e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const a=1.7580993408473768;e.b=a;const s=1.0507009873554805;e.a=s},function(t,e,n){"use strict";var a=n(293),s=n(577),i=n(578),o=n(579),c=n(580),u=n(581),l=n(582),h=n(583),p=n(584),f=n(585),b=n(586),m=n(587),g=n(588),v=n(590),w=n(592),y=n(593),O=n(594),x=n(595),A=n(596),I=n(597),j=n(598),C=n(599),_=n(600),k=n(601),S=n(602),T=n(604),L=n(605),B=n(606),N=n(607),E=n(608),M=n(609),F=n(610),W=n(611),z=n(612),P=n(613),G=n(614),V=n(615),H=n(616),Z=n(617),X=n(618),U=n(619),$=n(620),Y=n(621),J=n(622),K=n(623),tt=n(624),nt=n(625),rt=n(626),at=n(627),st=n(629),ot=n(630),ct=n(631),ut=n(633),lt=n(635),dt=n(636),ht=n(637),pt=n(638),ft=n(639),bt=n(640),mt=n(641),gt=n(642),vt=n(643),wt=n(644),yt=n(645),Ot=n(646),xt=n(647),At=n(648),jt=n(649),Ct=n(650),_t=n(651),kt=n(652),St=n(653),Tt=n(654),Lt=n(655),Bt=n(656),Nt=n(657),Mt=n(658),Dt=n(659),Ft=n(660),Rt=n(661),Wt=n(662),zt=n(663),Pt=n(664),Gt=n(665),Vt=n(666),Ht=n(667),Zt=n(668),Xt=n(669),Ut=n(670),$t=n(671),Yt=n(672),Jt=n(673),qt=n(674),Kt=n(675),Qt=n(676),te=n(677),ee=n(678),ne=n(679),re=n(680),ae=n(681),se=n(682),ie=n(134);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const oe=[a.a,s.a,i.a,o.a,c.a,u.a,l.a,h.a,p.a,f.a,b.a,m.a,g.a,v.a,w.a,y.a,O.a,x.a,A.a,I.a,j.a,C.a,k.a,_.a,S.a,T.a,L.a,B.a,N.a,E.a,jt.a,M.a,F.a,W.a,z.a,P.a,V.a,G.a,H.a,Z.a,X.a,U.a,$.a,Y.a,J.a,K.a,tt.a,nt.a,rt.a,at.a,st.a,st.a,ot.a,ct.a,ut.a,lt.a,dt.a,ht.a,pt.a,ft.a,bt.a,mt.a,gt.a,vt.a,wt.a,yt.a,yt.a,Ot.a,xt.a,At.a,Ct.a,_t.a,kt.a,St.a,Tt.a,Lt.a,Bt.a,Nt.a,Mt.a,Dt.a,Ft.a,Rt.a,Wt.a,zt.a,Pt.a,Gt.a,Vt.a,Ht.a,Zt.a,Zt.a,Xt.a,Xt.a,Ut.a,Yt.a,$t.a,Jt.a,qt.a,Kt.a,Qt.a,te.a,ee.a,ne.a,re.a,ae.a,se.a];for(const t of oe)Object(ie.e)(t)},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(9),o=n(120);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a.a,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(o.a)(Object(s.a)(n,"float32"),-1))}}};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){return e.rank<n.rank&&(e=Object(u.a)(e,s.e(e.shape,a))),t.rank<n.rank&&(t=Object(u.a)(t,s.e(t.shape,a))),{x:()=>{const a=undefined;return Object(c.a)(t,Object(i.a)(Object(o.a)(n,e),t.dtype))}}}e.a=a;var s=n(55),i=n(13),o=n(138),c=n(9),u=n(7)},function(t,e,n){"use strict";var a=n(821),s=n(0),i=n(292),o=n(824),c=n(825),u=n(826),l=n(852),h=n(853),p=n(854),f=n(125);n.d(e,"b",(function(){return f.c})),n.d(e,"c",(function(){return f.d})),n.d(e,"e",(function(){return f.e}));var b=n(855);n.d(e,"a",(function(){return b.a})),n.d(e,"l",(function(){return b.c})),n.d(e,"d",(function(){return b.b}));var m=n(25);n.d(e,"f",(function(){return m.a})),n.d(e,"k",(function(){return m.d}));var g=n(158);n.d(e,"h",(function(){return g.a}));var v=n(298);n.d(e,"o",(function(){return v.a})),n.d(e,"q",(function(){return v.b})),n.d(e,"s",(function(){return v.c})),n.d(e,"u",(function(){return v.d})),n.d(e,"w",(function(){return v.e}));var w=n(162);n.d(e,"i",(function(){return w.e}));var y=n(159);n.d(e,"j",(function(){return y.a}));var O=n(156);n.d(e,"g",(function(){return O.a}));var x=n(212);n.d(e,"x",(function(){return x.a})),n.d(e,"m",(function(){return o})),n.d(e,"n",(function(){return c})),n.d(e,"p",(function(){return u})),n.d(e,"r",(function(){return l})),n.d(e,"t",(function(){return h})),n.d(e,"v",(function(){return p}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/const a=["channelsFirst","channelsLast"];e.b=a;const s=["nearest","bilinear"];e.c=s;const i=["valid","same","causal"];e.d=i;const o=["max","avg"];e.e=o;const c=["sum","mul","concat","ave"];e.a=c;const u=["temporal"]},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){let e=0;for(const n of t)0===n.shape.length?e+=1:e+=n.shape.reduce(((t,e)=>t*e));return e}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function model(t){return new c.a(t)}function a(t){return new u.a(t)}function input(t){return Object(o.a)(t)}function s(t,e){i.b.registerCallbackConstructor(t,e)}e.c=model,e.e=a,e.a=input,e.d=s;var i=n(125),o=n(123),c=n(158),u=n(159);n.d(e,"b",(function(){return u.b}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e){return Object(v._394)((()=>{const n=v._292(.5,v._301(e)),a=w.c(v._246(e,n),t.dtype);return v._283(v._223(t,a),-1)}))}function s(t,e){return Object(v._394)((()=>w.c(v._223(v._154(t,-1),v._154(e,-1)),"float32")))}function i(t,e){return Object(v._394)((()=>v._179(v._380(v._270(v._223(t,1),v._223(e,1))),"float32")))}function o(t,e){return Object(v._394)((()=>v._179(v._380(v._270(v._223(t,1),v._223(e,0))),"float32")))}function c(t,e){return Object(v._394)((()=>v._179(v._380(v._270(v._223(t,0),v._223(e,1))),"float32")))}function u(t,e){return Object(v._394)((()=>{const n=i(t,e),a=c(t,e),s=v._150(n,a);return v._179(v._414(v._246(s,0),v._211(n,s),0),"float32")}))}function l(t,e){return Object(v._394)((()=>{const n=i(t,e),a=o(t,e),s=v._150(n,a);return v._179(v._414(v._246(s,0),v._211(n,s),0),"float32")}))}function h(t,e){return Object(O.a)(t,e)}function p(t,e){return t.rank===e.rank&&(t=v._374(t,[t.rank-1])),(e=v._154(e,-1)).dtype!==t.dtype&&(e=v._179(e,t.dtype)),v._179(v._223(t,e),"float32")}function f(t,e){throw new y.c}function b(t,e){throw new y.c}function m(t){if("string"==typeof t&&t in B)return B[t];if("string"!=typeof t&&null!=t)return t;throw new y.e(`Unknown metric ${t}`)}function g(t){if(x.a(null!==t,`Unknown LossOrMetricFn ${t}`),"string"==typeof t)return t;{let e;for(const n of Object.keys(O.f))if(O.f[n]===t){e=n;break}if(void 0!==e)return e;for(const n of Object.keys(B))if(B[n]===t){e=n;break}return void 0!==e?e:t.name}}e.a=a,e.c=s,e.g=u,e.h=l,e.b=h,e.i=p,e.e=m,e.f=g;var v=n(0),w=n(32),y=n(15),O=n(100),x=n(24);const A=O.i,I=O.i,j=O.g,C=O.g,_=O.h,k=O.h,S=O.b;e.d=S;const T=O.c,L=O.j;e.j=L;const B={binaryAccuracy:a,categoricalAccuracy:s,precision:u,categoricalCrossentropy:S,sparseCategoricalCrossentropy:L,mse:A,MSE:I,mae:j,MAE:C,mape:_,MAPE:k,cosine:T}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e,n){const a=e.length;if(null==t||Array.isArray(t)&&0===t.length)return e.map((t=>null));if(1===a)return Array.isArray(t)&&1===t.length?t:"object"==typeof t&&e[0]in t?[t[e[0]]]:[t];if(Array.isArray(t)){if(t.length!==a)throw new Error(`Provided ${n} is an array of ${t.length} element(s), but the model has ${a} outputs. Make sure a set of weights is provided for each model output.`);return t}if("object"==typeof t&&Object.keys(t).length>0&&"object"==typeof t[Object.keys(t)[0]]){const n=[];return e.forEach((e=>{e in t?n.push(t[e]):n.push(null)})),n}throw new Error(`The model has multiple (${a}) outputs, so ${n} must be either an array with ${a} elements or an object with ${e} keys. Provided ${n} not understood: ${JSON.stringify(t)}`)}function s(t,e){return a(t,e,"classWeight")}function i(t,e){return a(t,e,"sampleWeight")}async function o(t,e,n,a){if(null!=e||null!=a)throw new Error("Support sampleWeight is not implemented yet");if(null!=n){const e=Object(u._394)((()=>{if(1===t.shape.length)return Object(u._182)(t);if(2===t.shape.length){if(t.shape[1]>1){const e=1;return Object(u._154)(t,e)}if(1===t.shape[1])return Object(u._334)(t,[t.shape[0]]);throw new Error(`Encountered unexpected last-dimension size (${t.shape[1]}) during handling of class weights. The size is expected to be >= 1.`)}throw new Error(`Unexpected rank of target (y) tensor (${t.rank}) during handling of class weights. The rank is expected to be 1 or 2.`)})),a=Array.from(await e.data());Object(u._209)(e);const s=[];return a.forEach((t=>{if(null==n[t])throw new Error(`classWeight must contain all classes in the training data. The class ${t} exists in the data but not in classWeight`);s.push(n[t])})),Object(u._385)(s,"float32")}return null}function c(t,e){return Object(u._292)(t,e)}e.b=s,e.c=o,e.a=c;var u=n(0)},function(t,e,n){"use strict";var a=n(856),s=n(857);n.d(e,"a",(function(){return s.a})),n.d(e,"c",(function(){return s.b})),n.d(e,"d",(function(){return s.c}));var i=n(214);n.d(e,"b",(function(){return i.a})),n.d(e,"e",(function(){return i.c}));var o=n(907);n.d(e,"f",(function(){return o.a}))},function(t,e,n){"use strict";(function(t){function a(text){const e=Object(y._222)().global;if(void 0!==e.atob)return e.atob(text);if(void 0!==t)return new t(text,"base64").toString();throw new Error("Unable to decode base64 in this environment. Missing built-in atob() or Buffer()")}function s(t,e){const n=Array.isArray(t)?String.fromCharCode.apply(null,t):a(t);return e?n:n.toLowerCase()}function i(t,e,n,a=false){const i=t[e];return null!=i?s(i.s,a):n}function o(t,e,n){const a=t[e];return a?a.b:n}function c(t,e,n){const a=t[e]||{},s=null!=a.i?a.i:null!=a.f?a.f:n;return"number"==typeof s?s:parseInt(s,10)}function u(t){switch("string"==typeof t&&(t=O.a[t]),t){case O.a.DT_FLOAT:case O.a.DT_HALF:return"float32";case O.a.DT_INT32:case O.a.DT_INT64:case O.a.DT_INT8:case O.a.DT_UINT8:return"int32";case O.a.DT_BOOL:return"bool";case O.a.DT_DOUBLE:return"float32";case O.a.DT_STRING:return"string";default:return null}}function l(t,e,n){const a=t[e];return a&&a.func?a.func.name:n}function h(t,e,n){const a=t[e];return a&&a.type?u(a.type):n}function p(t,e,n){const a=t[e];return a&&a.list&&a.list.type?a.list.type.map((t=>u(t))):n}function f(shape){if(!shape.unknownRank)return null!=shape.dim?shape.dim.map((t=>"number"==typeof t.size?t.size:parseInt(t.size,10))):[]}function b(t,e,n){const a=t[e];return a&&a.shape?f(a.shape):n}function m(t,e,n){const a=t[e];return a?((a.list.f&&a.list.f.length?a.list.f:a.list.i)||[]).map((t=>"number"==typeof t?t:parseInt(t,10))):n}function g(t,e,n,a=false){const i=t[e];return i&&i.list&&i.list.s?i.list.s.map((t=>s(t,a))):n}function v(t,e,n){const a=t[e];return a&&a.list&&a.list.shape?a.list.shape.map((t=>f(t))):n}function w(t,e,n){const a=t[e];return a&&a.list&&a.list.b?a.list.b:n}e.i=i,e.c=o,e.f=c,e.e=h,e.d=p,e.k=b,e.g=m,e.h=g,e.j=v,e.b=w;var y=n(0),O=n(858),x=n(214),A=n(27),I=n(859),j=n(860),C=n(861),_=n(862),k=n(863),S=n(864),T=n(865),L=n(866),B=n(867),N=n(868),E=n(869),M=n(870),F=n(871),W=n(872),z=n(873),P=n(874),G=n(875),V=n(876),H=n(877);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class Z{static get Instance(){return this._instance||(this._instance=new this)}constructor(){const t=undefined,e=[].concat(...[I,j,C,_,k,S,T,L,B,N,E,M,F,W,z,P,G,V,H].map((t=>t.json)));this.opMappers=e.reduce(((map,t)=>(map[t.tfOpName]=t,map)),{})}transformGraph(t,e={}){const n=t.node,a=[],s=[],i=[],o=n.reduce(((map,t)=>(map[t.name]=this.mapNode(t),t.op.startsWith("Placeholder")?a.push(map[t.name]):"Const"===t.op?s.push(map[t.name]):null!=t.input&&0!==t.input.length||i.push(map[t.name]),map)),{});let c=[];const u=[];let l={},h={};null!=e&&(l=this.mapSignatureEntries(e.inputs),h=this.mapSignatureEntries(e.outputs));const p=Object.keys(o);p.forEach((t=>{const e=o[t];e.inputNames.forEach(((t,index)=>{const[n,,a]=Object(A.b)(t),s=o[n];if(null!=s.outputs){const t=s.outputs.indexOf(a);if(-1!==t){const a=`${n}:${t}`;e.inputNames[index]=a}}e.inputs.push(s),s.children.push(e)}))})),0===Object.keys(h).length?p.forEach((t=>{const e=o[t];0===e.children.length&&u.push(e)})):Object.keys(h).forEach((t=>{const[e]=Object(A.b)(t),n=o[e];null!=n&&(n.signatureKey=h[t],u.push(n))})),Object.keys(l).length>0?Object.keys(l).forEach((t=>{const[e]=Object(A.b)(t),n=o[e];n&&(n.signatureKey=l[t],c.push(n))})):c=a;let f={};null!=t.library&&null!=t.library.function&&(f=t.library.function.reduce(((t,e)=>(t[e.signature.name]=this.mapFunction(e),t)),{}));const b={nodes:o,inputs:c,outputs:u,weights:s,placeholders:a,signature:e,functions:f};return i.length>0&&(b.initNodes=i),b}mapSignatureEntries(t){return Object.keys(t||{}).reduce(((e,n)=>(e[t[n].name]=n,e)),{})}mapNode(t){const e=Object(x.b)(t.op)||this.opMappers[t.op]||{};null==t.attr&&(t.attr={});const n={name:t.name,op:t.op,category:e.category,inputNames:(t.input||[]).map((input=>input.startsWith("^")?input.slice(1):input)),inputs:[],children:[],inputParams:{},attrParams:{},rawAttrs:t.attr,outputs:e.outputs};return null!=e.inputs&&(n.inputParams=e.inputs.reduce(((map,t)=>(map[t.name]={type:t.type,inputIndexStart:t.start,inputIndexEnd:t.end},map)),{})),null!=e.attrs&&(n.attrParams=e.attrs.reduce(((map,e)=>{const type=e.type;let n;switch(e.type){case"string":n=i(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=i(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"string[]":n=g(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=g(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"number":n=c(t.attr,e.tfName,e.defaultValue||0),void 0!==n||!e.tfDeprecatedName||(n=c(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"number[]":n=m(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=m(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"bool":n=o(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=o(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"bool[]":n=w(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=w(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"shape":n=b(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=b(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"shape[]":n=v(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=v(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"dtype":n=h(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=h(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"dtype[]":n=p(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=p(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"func":n=l(t.attr,e.tfName,e.defaultValue),void 0!==n||!e.tfDeprecatedName||(n=l(t.attr,e.tfDeprecatedName,e.defaultValue));break;case"tensor":case"tensors":break;default:throw new Error(`Unsupported param type: ${e.type} for op: ${t.op}`)}return map[e.name]={value:n,type:type},map}),{})),n}mapFunction(t){const e=t.nodeDef,n=[],a=[];let s={};null!=e&&(s=e.reduce(((map,t)=>(map[t.name]=this.mapNode(t),"Const"===t.op&&a.push(map[t.name]),map)),{}));const i=[],o=[];t.signature.inputArg.forEach((t=>{const[e]=Object(A.b)(t.name),n={name:e,op:"Placeholder",inputs:[],inputNames:[],category:"graph",inputParams:{},attrParams:{dtype:{value:u(t.type),type:"dtype"}},children:[]};n.signatureKey=t.name,i.push(n),s[e]=n}));const c=undefined;Object.keys(s).forEach((t=>{const e=s[t];e.inputNames.forEach(((t,index)=>{const[n,,a]=Object(A.b)(t),i=s[n];if(null!=i.outputs){const t=i.outputs.indexOf(a);if(-1!==t){const a=`${n}:${t}`;e.inputNames[index]=a}}e.inputs.push(i),i.children.push(e)}))}));const l=t.ret;t.signature.outputArg.forEach((t=>{const[e,index]=Object(A.b)(l[t.name]),n=s[e];null!=n&&(n.defaultOutput=index,o.push(n))}));const h=this.mapArgsToSignature(t);return{nodes:s,inputs:i,outputs:o,weights:a,placeholders:n,signature:h}}mapArgsToSignature(t){return{methodName:t.signature.name,inputs:t.signature.inputArg.reduce(((map,t)=>(map[t.name]=this.mapArgToTensorInfo(t),map)),{}),outputs:t.signature.outputArg.reduce(((map,e)=>(map[e.name]=this.mapArgToTensorInfo(e,t.ret),map)),{})}}mapArgToTensorInfo(t,e){let n=t.name;return null!=e&&(n=e[n]),{name:n,dtype:t.type}}}e.a=Z}).call(e,n(173).Buffer)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n=""){if("number"!=typeof t&&"number"!=typeof e){c._408.assert(t.length===e.length,(()=>n+` Shapes ${t} and ${e} must match`));for(let a=0;a<t.length;a++){const s=t[a],i=e[a];c._408.assert(s<0||i<0||s===i,(()=>n+` Shapes ${t} and ${e} must match`))}}}function s(t){return"number"!=typeof t&&!t.some((t=>t<0))}function i(t,e,n){let a=o(t,n);const i=!s(a);if(i&&0===e.length)throw new Error(`Tried to calculate elements of an empty list with non-fully-defined elementShape: ${a}`);if(i&&e.forEach((t=>{a=o(t.shape,a)})),!s(a))throw new Error(`Non-fully-defined elementShape: ${a}`);return a}function o(t,e){if("number"==typeof t)return e;if("number"==typeof e)return t;if(t.length!==e.length)throw new Error(`Incompatible ranks during merge: ${t} vs. ${e}`);const n=[];for(let a=0;a<t.length;++a){const s=t[a],i=e[a];if(s>=0&&i>=0&&s!==i)throw new Error(`Incompatible shape during merge: ${t} vs. ${e}`);n[a]=s>=0?s:i}return n}e.a=a,e.b=i,e.c=o;var c=n(0)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(163);n.d(e,"array",(function(){return a.b})),n.d(e,"Dataset",(function(){return a.a})),n.d(e,"zip",(function(){return a.d}));var s=n(306);n.d(e,"CSVDataset",(function(){return s.a}));var i=n(307);n.d(e,"TextLineDataset",(function(){return i.a}));var o=n(911);n.d(e,"csv",(function(){return o.a})),n.d(e,"func",(function(){return o.b})),n.d(e,"generator",(function(){return o.c})),n.d(e,"microphone",(function(){return o.d})),n.d(e,"webcam",(function(){return o.e}));var c=n(312);n.d(e,"FileDataSource",(function(){return c.a}));var u=n(308);n.d(e,"URLDataSource",(function(){return u.a}));var l=n(919);n.d(e,"version_data",(function(){return l.a}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/class a{constructor(t){if(this.capacity=t,this.begin=0,this.end=0,null==t)throw new RangeError("Can't create a ring buffer of unknown capacity.");if(t<1)throw new RangeError("Can't create ring buffer of capacity < 1.");this.data=new Array(t),this.doubledCapacity=2*t}wrap(index){for(;index<0;)index+=this.doubledCapacity;return index%this.doubledCapacity}get(index){if(index<0)throw new RangeError("Can't get item at a negative index.");return this.data[index%this.capacity]}set(index,t){if(index<0)throw new RangeError("Can't set item at a negative index.");this.data[index%this.capacity]=t}length(){let length=this.end-this.begin;return length<0&&(length=this.doubledCapacity+length),length}isFull(){return this.length()===this.capacity}isEmpty(){return 0===this.length()}push(t){if(this.isFull())throw new RangeError("Ring buffer is full.");this.set(this.end,t),this.end=this.wrap(this.end+1)}pushAll(t){for(const e of t)this.push(e)}pop(){if(this.isEmpty())throw new RangeError("Ring buffer is empty.");this.end=this.wrap(this.end-1);const t=this.get(this.end);return this.set(this.end,void 0),t}unshift(t){if(this.isFull())throw new RangeError("Ring buffer is full.");this.begin=this.wrap(this.begin-1),this.set(this.begin,t)}shift(){if(this.isEmpty())throw new RangeError("Ring buffer is empty.");const t=this.get(this.begin);return this.set(this.begin,void 0),this.begin=this.wrap(this.begin+1),t}shuffleExcise(t){if(this.isEmpty())throw new RangeError("Ring buffer is empty.");const index=this.wrap(this.begin+t),e=this.get(index);return this.set(index,this.pop()),e}}e.a=a},function(t,e,n){"use strict";var a=n(0),s=n(163),i=n(307);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
const o='"',c=Symbol("out"),u=Symbol("field"),l=Symbol("quote"),h=Symbol("quoteafterquote"),p=Symbol("quoteinquote");class f extends s.a{async columnNames(){return this.columnNamesValidated||await this.setColumnNames(),this.configuredColumnsOnly?Object.keys(this.columnConfigs):this.fullColumnNames}async setColumnNames(){const t=await this.maybeReadHeaderLine();if(!this.fullColumnNames&&!t)throw new Error("Column names must be provided if there is no header line.");this.fullColumnNames&&t&&a._408.assert(t.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 ("+t.length.toString()+").")),this.fullColumnNames||(this.fullColumnNames=t);const counts=this.fullColumnNames.reduce(((t,e)=>(t[e]=t[e]+1||1,t)),{}),e=Object.keys(counts).filter((t=>counts[t]>1));if(a._408.assert(0===e.length,(()=>"Duplicate column names found: "+e.toString())),this.columnConfigs)for(const t of Object.keys(this.columnConfigs)){const index=undefined;if(-1===this.fullColumnNames.indexOf(t))throw new Error('The key "'+t+'" provided in columnConfigs does not match any of the column names ('+this.fullColumnNames.toString()+").")}this.columnNamesValidated=true}async maybeReadHeaderLine(){if(this.hasHeader){const t=await this.base.iterator(),e=await t.next();if(e.done)throw new Error("No data was found for CSV parsing.");const n=e.value,a=undefined;return this.parseRow(n,false)}return null}constructor(input,t){super(),this.input=input,this.hasHeader=true,this.fullColumnNames=null,this.columnNamesValidated=false,this.columnConfigs=null,this.configuredColumnsOnly=false,this.delimiter=",",this.delimWhitespace=false,this.base=new i.a(input),t||(t={}),this.hasHeader=false!==t.hasHeader,this.fullColumnNames=t.columnNames,this.columnConfigs=t.columnConfigs,this.configuredColumnsOnly=t.configuredColumnsOnly,t.delimWhitespace?(a._408.assert(null==t.delimiter,(()=>"Delimiter should not be provided when delimWhitespace is true.")),this.delimWhitespace=true,this.delimiter=" "):this.delimiter=t.delimiter?t.delimiter:","}async iterator(){this.columnNamesValidated||await this.setColumnNames();let t=await this.base.iterator();return this.hasHeader&&(t=t.skip(1)),t.map((t=>this.makeDataElement(t)))}makeDataElement(line){const t=this.parseRow(line),e={},n={};for(let a=0;a<this.fullColumnNames.length;a++){const s=this.fullColumnNames[a],i=this.columnConfigs?this.columnConfigs[s]:null;if(!this.configuredColumnsOnly||i){const o=t[a];let c=null;if(""===o)if(i&&void 0!==i.default)c=i.default;else{if(i&&(i.required||i.isLabel))throw new Error(`Required column ${s} is empty in this line: ${line}`);c=void 0}else{const t=Number(o);if(isNaN(t))c=i&&"bool"===i.dtype?this.getBoolean(o):o;else if(i&&i.dtype)switch(i.dtype){default:c=t;break;case"int32":c=Math.floor(t);break;case"bool":c=this.getBoolean(o)}else c=t}i&&i.isLabel?n[s]=c:e[s]=c}}return 0===Object.keys(n).length?e:{xs:e,ys:n}}getBoolean(t){return"1"===t||"true"===t.toLowerCase()?1:0}parseRow(line,t=true){const e=[];let n=0;const a=line.length;let s=c;for(let t=0;t<a;t++)switch(s){case c:switch(line.charAt(t)){case o:n=t+1,s=l;break;case this.delimiter:if(n=t+1," "===this.delimiter&&this.delimWhitespace)break;e.push(""),s=c;break;default:s=u,n=t}break;case u:if(line.charAt(t)===this.delimiter)e.push(line.substring(n,t)),s=c,n=t+1;break;case l:if(line.charAt(t)===o)s=h;break;case h:switch(line.charAt(t)){case this.delimiter:e.push(line.substring(n,t-1)),s=c,n=t+1;break;case o:s=l;break;default:s=p}break;case p:if(line.charAt(t)===o)s=l}if(s===h?e.push(line.substring(n,a-1)):e.push(line.substring(n)),t&&e.length!==this.fullColumnNames.length)throw new Error(`Invalid row in csv file. Should have ${this.fullColumnNames.length} elements in a row, but got ${e}`);return e}}e.a=f},function(t,e,n){"use strict";var a=n(163);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/class s extends a.a{constructor(input){super(),this.input=input}async iterator(){const t=undefined,e=undefined,n=undefined;return(await this.input.iterator()).decodeUTF8().split("\n").map((line=>(line.endsWith("\r")&&(line=line.slice(0,-1)),line)))}}e.a=s},function(t,e,n){"use strict";var a=n(309),s=n(914),i=n(311),o=n(312);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
class c extends a.a{constructor(url,t={}){super(),this.url=url,this.fileOptions=t}async iterator(){return Object(i.a)(this.url)?new o.a(this.url,this.fileOptions).iterator():Object(s.a)(this.url,this.fileOptions)}}e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/class DataSource{}e.a=DataSource},function(t,e,n){"use strict";var a=n(0),s=n(915);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
class i extends s.a{constructor(file,t={}){super(),this.file=file,this.options=t,a._408.assert(file instanceof Uint8Array||!!Object(a._222)().get("IS_BROWSER")&&(file instanceof File||file 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:true};const t=new Promise(((t,e)=>{const n=this.offset+this.chunkSize;if(this.file instanceof Uint8Array)t(new Uint8Array(this.file.slice(this.offset,n)));else{const a=new FileReader;a.onload=n=>{let data=a.result;if(data instanceof ArrayBuffer&&(data=new Uint8Array(data)),!(data instanceof Uint8Array))return e(new TypeError("FileReader returned unknown type."));t(data)},a.onabort=t=>e(new Error("Aborted")),a.onerror=t=>e(new Error(t.type));const s=this.file.slice(this.offset,n);a.readAsArrayBuffer(s)}this.offset=n}));return{value:await t,done:false}}}e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
function a(t){return"string"==typeof t&&"file://"===t.slice(0,7)}e.a=a},function(t,e,n){"use strict";var a=n(0),s=n(309),i=n(310),o=n(311);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
class c extends s.a{constructor(input,t={}){super(),this.input=input,this.options=t}async iterator(){if(Object(o.a)(this.input)&&Object(a._222)().get("IS_NODE")){const t=n(918);this.input=t.readFileSync(this.input.slice(7))}return new i.a(this.input,this.options)}}e.a=c},function(t,e,n){"use strict";var a=n(920);n.d(e,"a",(function(){return a.a})),n.d(e,"b",(function(){return a.b})),n.d(e,"c",(function(){return a.c}));var s=n(922);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(0),s=n(8);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=a._258.whereImpl;class o extends a._33{nextDataId(){return o.nextDataId++}constructor(){super(),this.blockSize=48,this.firstUse=true,this.data=new a.T(this,Object(a._220)())}write(t,shape,e){this.firstUse&&(this.firstUse=false,Object(a._222)().get("IS_NODE")&&a._164.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============================"));const n={id:this.nextDataId()};return this.data.set(n,{values:t,dtype:e,refCount:1}),n}makeTensorInfo(shape,t,e){let n;if("string"===t&&null!=e&&e.length>0&&a._408.isString(e[0])){const s=e.map((d=>a._408.encodeString(d)));n=this.write(s,shape,t)}else n=this.write(e,shape,t);return{dataId:n,shape:shape,dtype:t}}refCount(t){if(this.data.has(t)){const e=undefined;return this.data.get(t).refCount}return 0}incRef(t){const e=undefined;this.data.get(t).refCount++}decRef(t){if(this.data.has(t)){const e=undefined;this.data.get(t).refCount--}}move(t,e,shape,n,a){this.data.set(t,{values:e,dtype:n,refCount:a})}numDataIds(){return this.data.numDataIds()}async read(t){return this.readSync(t)}readSync(t){const{dtype:e,complexTensorInfos:n}=this.data.get(t);if("complex64"===e){const t=this.readSync(n.real.dataId),e=this.readSync(n.imag.dataId);return a._164.mergeRealAndImagArrays(t,e)}return a._408.convertBackendValuesAndArrayBuffer(this.data.get(t).values,e)}bufferSync(t){const data=this.readSync(t.dataId);if("string"===t.dtype)try{const e=data.map((d=>a._408.decodeString(d)));return Object(a._178)(t.shape,t.dtype,e)}catch(t){throw new Error("Failed to decode encoded string bytes into utf-8")}return Object(a._178)(t.shape,t.dtype,data)}makeOutput(t,shape,e){return Object(a._220)().makeTensorFromTensorInfo(this.makeTensorInfo(shape,e,t),this)}disposeData(t,e=false){if(this.data.has(t)){if(this.data.get(t).refCount--,!e&&this.data.get(t).refCount>0)return false;const{complexTensorInfos:n}=this.data.get(t);null!=n&&(this.disposeData(n.real.dataId,true),this.disposeData(n.imag.dataId,true)),this.data.delete(t)}return true}disposeIntermediateTensorInfo(t){this.disposeData(t.dataId)}async time(t){const e=a._408.now();t();const n=undefined;return{kernelMs:a._408.now()-e}}memory(){return{unreliable:true,reasons:["The reported memory is an upper bound. Due to automatic garbage collection, the true allocated memory may be less."]}}where(t){Object(s.a)([t],"where");const e=this.readSync(t.dataId);return i(t.shape,e)}dispose(){}floatPrecision(){return 32}epsilon(){return super.epsilon()}}o.nextDataId=0},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(316);n.d(e,"simpleAbsImpl",(function(){return a.b}));var s=n(102);n.d(e,"addImpl",(function(){return s.c}));var i=n(216);n.d(e,"bincountImpl",(function(){return i.a})),n.d(e,"bincountReduceImpl",(function(){return i.b}));var o=n(318);n.d(e,"bitwiseAndImpl",(function(){return o.b}));var c=n(103);n.d(e,"castImpl",(function(){return c.c}));var u=n(319);n.d(e,"ceilImpl",(function(){return u.b}));var l=n(320);n.d(e,"concatImpl",(function(){return l.a}));var h=n(217);n.d(e,"equalImpl",(function(){return h.c}));var p=n(218);n.d(e,"expImpl",(function(){return p.c}));var f=n(321);n.d(e,"expm1Impl",(function(){return f.b}));var b=n(322);n.d(e,"floorImpl",(function(){return b.b}));var m=n(323);n.d(e,"floorDivImpl",(function(){return m.b}));var g=n(324);n.d(e,"gatherNdImpl",(function(){return g.a}));var v=n(325);n.d(e,"gatherV2Impl",(function(){return v.a}));var w=n(326);n.d(e,"greaterImpl",(function(){return w.b}));var y=n(327);n.d(e,"greaterEqualImpl",(function(){return y.b}));var O=n(328);n.d(e,"lessImpl",(function(){return O.b}));var x=n(329);n.d(e,"lessEqualImpl",(function(){return x.b}));var A=n(330);n.d(e,"linSpaceImpl",(function(){return A.a}));var I=n(331);n.d(e,"logImpl",(function(){return I.b}));var j=n(332);n.d(e,"maxImpl",(function(){return j.a}));var C=n(333);n.d(e,"maximumImpl",(function(){return C.b}));var _=n(334);n.d(e,"minimumImpl",(function(){return _.b}));var k=n(105);n.d(e,"multiplyImpl",(function(){return k.c}));var S=n(335);n.d(e,"negImpl",(function(){return S.b}));var T=n(336);n.d(e,"notEqualImpl",(function(){return T.b}));var L=n(337);n.d(e,"prodImpl",(function(){return L.b}));var B=n(338);n.d(e,"raggedGatherImpl",(function(){return B.a}));var N=n(339);n.d(e,"raggedRangeImpl",(function(){return N.a}));var E=n(340);n.d(e,"raggedTensorToTensorImpl",(function(){return E.a}));var M=n(341);n.d(e,"rangeImpl",(function(){return M.a}));var F=n(342);n.d(e,"rsqrtImpl",(function(){return F.b}));var W=n(164);n.d(e,"scatterImpl",(function(){return W.a}));var z=n(220);n.d(e,"sigmoidImpl",(function(){return z.c}));var P=n(87);n.d(e,"sliceImpl",(function(){return P.c}));var G=n(343);n.d(e,"sparseFillEmptyRowsImpl",(function(){return G.a}));var V=n(344);n.d(e,"sparseReshapeImpl",(function(){return V.a}));var H=n(221);n.d(e,"sparseSegmentReductionImpl",(function(){return H.a}));var Z=n(345);n.d(e,"sqrtImpl",(function(){return Z.b}));var X=n(346);n.d(e,"squaredDifferenceImpl",(function(){return X.b}));var U=n(347);n.d(e,"staticRegexReplaceImpl",(function(){return U.b}));var $=n(348);n.d(e,"stridedSliceImpl",(function(){return $.a}));var Y=n(349);n.d(e,"stringNGramsImpl",(function(){return Y.a}));var J=n(350);n.d(e,"stringSplitImpl",(function(){return J.a}));var K=n(351);n.d(e,"stringToHashBucketFastImpl",(function(){return K.a}));var tt=n(165);n.d(e,"subImpl",(function(){return tt.c}));var nt=n(352);n.d(e,"tileImpl",(function(){return nt.a}));var rt=n(353);n.d(e,"topKImpl",(function(){return rt.a}));var at=n(219);n.d(e,"transposeImpl",(function(){return at.a}));var st=n(354);n.d(e,"uniqueImpl",(function(){return st.a}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=new Float32Array(t.length);for(let n=0;n<t.length;++n)e[n]=Math.abs(t[n]);return e}e.b=a;var s=n(0),i=n(8);const o=t=>{const{x:e}=t.inputs,n=t.backend;Object(i.a)(e,"abs");let o=new Float32Array(s._408.sizeFromShape(e.shape));const c=undefined;return o=a(n.data.get(e.dataId).values),n.makeOutput(o,e.shape,e.dtype)},c={kernelName:s.a,backendName:"cpu",kernelFunc:o};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e="float32"){if("complex64"===e){const e=a(t,shape,"float32"),n=a(t,shape,"float32");return Object(i.a)({inputs:{real:e,imag:n},backend:t})}const n=s._408.makeZerosTypedArray(s._408.sizeFromShape(shape),e);return t.makeTensorInfo(shape,e,n)}e.a=a;var s=n(0),i=n(75)},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t&e));e.b=o;const c=Object(i.a)(a.z,o),u={kernelName:a.z,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)((t=>Math.ceil(t)));e.b=o;const c=Object(i.b)(a.D,o),u={kernelName:a.D,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const i=s._408.getArrayFromDType(n,s._408.sizeFromShape(e));if(a&&"string"!==n){let e=0;t.forEach((input=>{const size=s._408.sizeFromShape(input.shape);i.set(input.vals,e),e+=size}))}else{let a=0;t.forEach((input=>{const t="string"===n?s._164.fromUint8ToStringArray(input.vals):input.vals;let o=0;for(let row=0;row<input.shape[0];++row){const n=row*e[1]+a;for(let e=0;e<input.shape[1];++e)i[n+e]=t[o++]}a+=input.shape[1]}))}return i}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)((t=>Math.expm1(t)));e.b=o;const c=Object(i.b)(a._13,o),u={kernelName:a._13,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)((t=>Math.floor(t)));e.b=o;const c=Object(i.b)(a._17,o),u={kernelName:a._17,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>Math.floor(t/e)));e.b=o;const c=Object(i.a)(a._18,o,null,"int32"),u={kernelName:a._18,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,i,o,c,u,l){const h=Object(s._178)([a,o],n);for(let n=0;n<a;n++){const index=[];let a=0;for(let e=0;e<i;e++){const s=t[n*i+e];a+=s*c[e],index.push(s)}if(a<0||a>=l/o)throw new Error(`Invalid indices: ${index} does not index into ${u}`);for(let t=0;t<o;t++)h.values[n*o+t]=e.get(...e.indexToLoc(a*o+t))}return h}e.a=a;var s=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(s._178)(n,t.dtype);for(let n=0;n<a.size;++n){const s=undefined,i=a.indexToLoc(n).slice(),o=i[0],c=i[2],u=e.locToIndex([o,c]);i[2]=e.values[u];const l=t.locToIndex(i);0<=l&&l<t.values.length&&(a.values[n]=t.values[l])}return a}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t>e?1:0));e.b=o;const c=Object(i.a)(a._25,o,null,"bool"),u={kernelName:a._25,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t>=e?1:0));e.b=o;const c=Object(i.a)(a._26,o,null,"bool"),u={kernelName:a._26,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t<e?1:0));e.b=o;const c=Object(i.a)(a._37,o,null,"bool"),u={kernelName:a._37,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t<=e?1:0));e.b=o;const c=Object(i.a)(a._38,o,null,"bool"),u={kernelName:a._38,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=(e-t)/(n-1),i=s._408.makeZerosTypedArray(n,"float32");i[0]=t;for(let t=1;t<i.length;t++)i[t]=i[t-1]+a;return i}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)((t=>Math.log(t)));e.b=o;const c=Object(i.b)(a._40,o),u={kernelName:a._40,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const i=s._408.getTypedArrayFromDType(a,s._408.sizeFromShape(n));for(let n=0;n<i.length;++n){const a=n*e;let s=t[a];for(let n=0;n<e;++n){const e=t[a+n];(Number.isNaN(e)||e>s)&&(s=e)}i[n]=s}return i}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>Math.max(t,e)));e.b=o;const c=Object(i.a)(a._55,o),u={kernelName:a._55,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>Math.min(t,e)));e.b=o;const c=Object(i.a)(a._58,o),u={kernelName:a._58,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=i._408.createScalarValue(-1,n);return Object(c.c)([],e,a,t,n)}function s(t){const{inputs:e,backend:n}=t,{x:s}=e;Object(o.a)(s,"neg");const i=n.data.get(s.dataId).values,[c,u]=a(i,s.shape,s.dtype);return n.makeTensorInfo(u,s.dtype,c)}e.b=a;var i=n(0),o=n(8),c=n(105);const u={kernelName:i._64,backendName:"cpu",kernelFunc:s};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t!==e?1:0));e.b=o;const c=Object(i.a)(a._68,o,null,"bool"),u={kernelName:a._68,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const[s,o]=i._164.computeOutAndReduceShapes(t,a),c=Object(i._406)(e,"int32"),u=i._408.makeZerosTypedArray(i._408.sizeFromShape(s),c),l=i._408.sizeFromShape(o);for(let t=0;t<u.length;++t){const e=t*l;let a=1;for(let t=0;t<l;++t)a*=n[e+t];u[t]=a}return{outVals:u,outShape:s,outDtype:c}}function s(t){const{inputs:e,backend:n,attrs:s}=t,{x:u}=e,{axis:l,keepDims:h}=s;Object(o.a)(u,"prod");const p=u.shape.length,f=i._408.parseAxisParam(l,u.shape),b=i._164.getAxesPermutation(f,p);let m=f,g=u;const v=[];null!=b&&(g=Object(c.a)({inputs:{x:u},backend:n,attrs:{perm:b}}),v.push(g),m=i._164.getInnerMostAxes(m.length,p));const w=n.data.get(g.dataId).values,{outVals:y,outShape:O,outDtype:x}=a(g.shape,g.dtype,w,m);let A=O;return h&&(A=i._164.expandShapeToKeepDim(O,f)),v.forEach((t=>n.disposeIntermediateTensorInfo(t))),n.makeTensorInfo(A,x,y)}e.b=a;var i=n(0),o=n(8),c=n(45);const u={kernelName:i._79,backendName:"cpu",kernelFunc:s};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){t.forEach(((index,t)=>{if(index<0||index>=n){const a=p._408.indexToLoc(t,e.length,p._408.computeStrides(e)).join(",");throw new Error(`indices[${a}] = ${index} is not in [0, ${n})`)}}))}function s(t,e){for(let n=0;n<t.length;++n){const a=t[n],s=n===t.length-1?e:t[n+1].length;if(0===a.length)throw new Error("Ragged splits may not be empty");if(a[0]<0)throw new Error("Ragged splits must be non-negative");if(a[a.length-1]>s)throw new Error("Ragged splits must not point past values");for(let t=1;t<a.length;++t)if(a[t-1]>a[t])throw new Error("Ragged splits must be sorted in ascending order")}}function i(t,e,n,a){const i=[];let o=0;const c=e.length-1+n.length,u=new Array(c).fill(null).map((()=>[0]));s(n,a);let l=1;for(let t=0;t<e.length-1;++t){l*=e[t];const n=e[t+1];for(let e=1;e<l+1;++e)u[t].push(e*n)}for(let a=0;a<t.length;++a){let s=t[a],c=t[a]+1;for(let t=0;t<n.length;++t){const a=n[t],i=t+e.length-1;if(i>=0){const t=u[i],e=t[t.length-1]-a[s];for(let t=s;t<c;++t)u[i].push(a[t+1]+e)}s=a[s],c=a[c]}c!==s&&(i.push([s,c]),o+=c-s)}return{outSplits:u,valueSlices:i,numValues:o}}function o(t){const e=[];for(let n=0;n<t.length;++n){const a=t[n].length,s=p._408.getArrayFromDType("int32",a);e.push(s),t[n].forEach(((t,e)=>s[e]=t))}return e}function c(t,e){const n=t.slice(0,e);for(;n.length<e;)n.push(1);for(let a=e;a<t.length;a++)n[e-1]*=t[a];return n}function u(t,e,n,a,s,i){const o=c(e,2)[1],u=c(i,2)[1];let l=0;for(const e of n)for(let n=e[0];n<e[1];++n){for(let e=0;e<a;++e)s[l*u+e]=t[n*o+e];++l}}function l(t,e,n,a,s){const i=e.slice();i[0]=s;const o=p._408.getArrayFromDType(n,p._408.sizeFromShape(i)),c=t.length,l=undefined;return u(t,e,a,0===c?0:c/e[0],o,i),[o,i]}function h(t,e,n,s,c,u,h,p){if(0===t.length)throw new Error("paramsNestedSplits must be non empty");if(0===e[0].length)throw new Error("Split tensors must not be scalars");const f=undefined;if(a(u,h,e[0][0]-1),0===s.length)throw new Error("params.rank must be nonzero");const b=s[0],{outSplits:m,valueSlices:g,numValues:v}=i(u,h,t,b),w=o(m),y=l(n,s,c,g,v);return[w,y[0],y[1]]}e.a=h;var p=n(0)},function(t,e,n){"use strict";function a(t,e,n,a,o,c,u){if(e.length>1)throw new Error("starts must be a scalar or vector");if(o.length>1)throw new Error("limits must be a scalar or vector");if(u.length>1)throw new Error("deltas must be a scalar or vector");const l=0===e.length,h=0===o.length,p=0===u.length,f=[];l||f.push(e[0]),h||f.push(o[0]),p||f.push(u[0]);for(let t=1;t<f.length;++t)if(f[t]!==f[t-1])throw new Error("starts, limits, and deltas must have the same shape");const b=0===f.length?1:f[0],m=s._408.getArrayFromDType("int32",b+1);m[0]=0;for(let row=0;row<b;++row){const e=l?t[0]:t[row],n=h?a[0]:a[row],s=p?c[0]:c[row];if(0===s)throw new Error("Requires delta != 0");let size;if(s>0&&n<e||s<0&&n>e)size=0;else if(size=Math.ceil(Math.abs((n-e)/s)),size>i)throw new Error("Requires ((limit - start) / delta) <= 2147483647");m[row+1]=m[row]+size}const g=m[b],v=s._408.getArrayFromDType(n,g);let w=0;for(let row=0;row<b;++row){const e=m[row+1]-m[row];let n=l?t[0]:t[row];const a=p?c[0]:c[row];for(let t=0;t<e;++t)v[w++]=n,n+=a}return[m,v]}e.a=a;var s=n(0);
/**
* @license
* Copyright 2022 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const i=2147483647},function(t,e,n){"use strict";function a(t,e,size){for(let n=0;n<size;n++)t[n]=e[n]}function s(shape,t){const e=[];for(let n of shape){if(n<0){if(!t)throw new Error(`Dimension ${n} must be >= 0`);if(n<-1)throw new Error(`Dimension ${n} must be >= -1`);n=-1}e.push(n)}return e}function i(shape,t,e,n,a,s,i,o,c,l){return new u(shape,t,e,n,a,s,i,o,c,l).compute()}e.a=i;var o=n(0),c=o._164.RowPartitionType;
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class u{constructor(shape,t,e,n,a,s,i,c,u,l){this.shape=shape,this.shapeShape=t,this.values=e,this.valuesShape=n,this.valuesDType=a,this.defaultValue=s,this.defaultValueShape=i,this.rowPartitionValues=c,this.rowPartitionValuesShapes=u,this.rowPartitionTypes=o._164.getRowPartitionTypesHelper(l),this.raggedRank=o._164.getRaggedRank(this.rowPartitionTypes)}getRowPartitionTypeByDimension(t){return this.rowPartitionTypes[0]===c.FIRST_DIM_SIZE?this.rowPartitionTypes[t+1]:this.rowPartitionTypes[t]}getRowPartitionTensor(t){return this.rowPartitionTypes[0]===c.FIRST_DIM_SIZE?this.rowPartitionValues[t+1]:this.rowPartitionValues[t]}getMaxWidth(t){const e=this.getRowPartitionTensor(t-1);switch(this.getRowPartitionTypeByDimension(t-1)){case c.VALUE_ROWIDS:return u.getMaxWidthValueRowID(e);case c.ROW_SPLITS:return u.getMaxWidthRowSplit(e);default:throw new Error(`Cannot handle partition type ${c[this.getRowPartitionTypeByDimension(t-1)]}`)}}static getMaxWidthRowSplit(t){const e=t.length;if(0===e||1===e)return 0;let n=0;for(let a=0;a<e-1;++a){const e=t[a+1]-t[a];e>n&&(n=e)}return n}static getMaxWidthValueRowID(t){const e=t.length;if(0===e)return 0;let n=0,a=t[0],s=0;for(let i=1;i<e;++i){const e=t[i];e!==a&&(a=e,s=Math.max(i-n,s),n=i)}return Math.max(e-n,s)}tensorShapeFromTensor(t,e,n=true){if(0===e.length){if(-1===t[0])return[];throw new Error("The only valid scalar shape tensor is the fully unknown shape specified as -1.")}return s(t,n)}calculateOutputSize(t){const e=this.valuesShape,n=this.defaultValueShape;o._164.validateDefaultValueShape(n,e);const shape=this.tensorShapeFromTensor(this.shape,this.shapeShape),a=undefined,s=o._164.combineRaggedTensorToTensorShapes(this.raggedRank,shape,e);s[0]<0&&(s[0]=t);for(let t=1;t<=this.raggedRank;++t)s[t]<0&&(s[t]=this.getMaxWidth(t));return s}calculateFirstParentOutputIndex(t,e,n){const a=Math.min(t,n),s=[];let i=0;for(let t=0;t<a;++t,i+=e)s.push(i);for(let e=a;e<t;++e)s.push(-1);return o._408.assert(s.length===t,(()=>"Final length of result must be equal to firstDimension.")),s}calculateOutputIndexRowSplit(t,e,n,a){const s=t.length,i=[];for(let o=0;o<s-1;++o){const s=t[o+1]-t[o];let c=Math.min(a,s),u=e[o];-1===u&&(c=0);for(let t=0;t<c;++t)i.push(u),u+=n;for(let t=0;t<s-c;++t)i.push(-1)}if(s>0&&i.length!==t[s-1])throw new Error("Invalid row split size.");return i}calculateOutputIndexValueRowID(t,e,n,a){const s=t.length,i=[];if(0===s)return[];let o=0,c=t[0];if(c>=e.length)throw new Error(`Got currentValueRowId=${c}, which is not less than ${e.length}`);let u=e[c];i.push(u);for(let l=1;l<s;++l){const s=t[l];if(s===c)u>=0&&(++o,o<a?u+=n:u=-1);else{if(o=0,c=s,s>=e.length)throw new Error(`Got nextValueRowId=${s} which is not less than ${e.length}`);u=e[s]}i.push(u)}if(i.length!==t.length)throw new Error("Invalid row ids.");return i}calculateOutputIndex(t,e,n,a){const s=this.getRowPartitionTensor(t),i=this.getRowPartitionTypeByDimension(t);switch(i){case c.VALUE_ROWIDS:return this.calculateOutputIndexValueRowID(s,e,n,a);case c.ROW_SPLITS:if(s.length-1>e.length)throw new Error(`Row partition size is greater than output size: ${s.length-1} > ${e.length}`);return this.calculateOutputIndexRowSplit(s,e,n,a);default:throw new Error(`Unsupported partition type: ${c[i]}`)}}getFirstDimensionSize(){const t=this.rowPartitionValues[0];if(0===this.rowPartitionTypes.length)throw new Error("No row_partition_types given.");const e=this.rowPartitionTypes[0];switch(e){case c.FIRST_DIM_SIZE:return t[0];case c.VALUE_ROWIDS:throw new Error("Cannot handle VALUE_ROWIDS in first dimension.");case c.ROW_SPLITS:return this.rowPartitionValuesShapes[0][0]-1;default:throw new Error(`Cannot handle type ${c[e]}`)}}compute(){const t=undefined;if(this.rowPartitionValues[0].length<=0)throw new Error("Invalid first partition input. Tensor requires at least one element.");const e=this.getFirstDimensionSize(),n=this.calculateOutputSize(e),a=new Array(this.raggedRank+1);a[a.length-1]=1;for(let t=a.length-2;t>=0;--t)a[t]=a[t+1]*n[t+1];const i=s(n,false),c=o._408.getArrayFromDType(this.valuesDType,o._408.sizeFromShape(i)),u=undefined;if(a[0]*n[0]>0){let t=this.calculateFirstParentOutputIndex(e,a[0],n[0]);for(let e=1;e<=this.raggedRank;++e){const s=undefined;t=this.calculateOutputIndex(e-1,t,a[e],n[e])}this.setOutput(this.raggedRank,t,c,i)}return[i,c]}setOutput(t,e,n,s){if(0===n.length)return;const i=this.values,c=n;let u=s.slice();u=u.slice(t+1);const l=o._408.sizeFromShape(u),h=e.length;let p=this.defaultValue;if(p.length!==l&&1!==p.length){const t=this.defaultValueShape;Object(o._394)((()=>{const e=Object(o._334)(p,t),n=Object(o._175)(e,u);p=n.dataSync()}))}let f=0,b=0,m=0;for(let t=0;t<=h;++t){let s=t<h?e[t]:-1;if(s!==m){if(b<m){const t=i.subarray(f*l),e=undefined,n=undefined;a(c.subarray(b*l),t,(m-b)*l)}if(t>=h){const t=n.length;s=Math.floor(t/l)}if(s>m)if(1===this.defaultValue.length)c.subarray(m*l,s*l).fill(this.defaultValue[0]),m=s;else for(;s>m;){const t=undefined;a(c.slice(m*l),p,l),++m}s<0?(f=t+1,b=m):(f=t,b=m,m=b+1)}else++m}}}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const i=undefined,o=undefined,c=undefined;if(t===e||t<e&&n<0||e<t&&n>1)return s._408.makeZerosTypedArray(0,a);const u=Math.abs(Math.ceil((e-t)/n)),l=s._408.makeZerosTypedArray(u,a);e<t&&1===n&&(n=-1),l[0]=t;for(let t=1;t<l.length;t++)l[t]=l[t-1]+n;return l}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)((t=>1/Math.sqrt(t)));e.b=o;const c=Object(i.b)(a._100,o),u={kernelName:a._100,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,i,o,c){const u=e[0],l=o[0],h=new Array(l),p=new Array(u),f=e[1];if(0===l){if(0!==u)throw new Error(s._164.getSparseFillEmptyRowsIndicesDenseShapeMismatch(u));const t=undefined,e=undefined;return[s._408.getArrayFromDType(n,0),[0,f],s._408.getArrayFromDType(i,0),h,p]}let b=true,m=0;const g=new Array(l).fill(0);for(let e=0;e<u;++e){const row=t[e*f];if(row<0)throw new Error(s._164.getSparseFillEmptyRowsNegativeIndexErrorMessage(e,row));if(row>=l)throw new Error(s._164.getSparseFillEmptyRowsOutOfRangeIndexErrorMessage(e,row,l));++g[row],b=b&&row>=m,m=row}let v=true;for(let row=0;row<l;++row){const t=0===g[row];h[row]=t,v=v&&!t,g[row]=Math.max(g[row],1),row>0&&(g[row]+=g[row-1])}if(v&&b){const e=t,n=a;for(let t=0;t<u;++t)p[t]=t;return[e,[u,f],n,h,p]}{const e=g[l-1],o=s._408.getArrayFromDType(n,e*f),b=s._408.getArrayFromDType(i,e),m=new Array(l).fill(0);for(let e=0;e<u;++e){const row=t[e*f],n=m[row],s=(0===row?0:g[row-1])+n;m[row]++;for(let n=0;n<f;++n)o[s*f+n]=t[e*f+n];b[s]=a[e],p[e]=s}for(let row=0;row<l;++row){const rowCount=undefined;if(0===m[row]){const t=0===row?0:g[row-1];o[t*f+0]=row;for(let e=1;e<f;++e)o[t*f+e]=0;b[t]=c}}return[o,[e,f],b,h,p]}}e.a=a;var s=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,i){const o=s._408.sizeFromShape(a),c=e[0],u=i.length,l=[];let product=1,h=-1;for(let d=0;d<u;++d){const size=i[d];if(-1===size){if(-1!==h)throw new Error(s._164.getSparseReshapeMultipleNegativeOneOutputDimErrorMessage(h,d));h=d,l.push(1)}else{if(size<0)throw new Error(s._164.getSparseReshapeNegativeOutputDimErrorMessage(d,size));product*=size,l.push(size)}}if(-1!==h){if(product<=0)throw new Error(s._164.getSparseReshapeEmptyTensorZeroOutputDimErrorMessage());const t=Math.trunc(o/product);if(product*t!==o)throw new Error(s._164.getSparseReshapeInputOutputMultipleErrorMessage(a,l));l[h]=t}const p=undefined;if(s._408.sizeFromShape(l)!==o)throw new Error(s._164.getSparseReshapeInputOutputMismatchErrorMessage(a,l));const f=a.length,b=[];if(f>0){b[f-1]=1;for(let d=f-2;d>=0;--d)b[d]=b[d+1]*a[d+1]}const m=[];if(u>0){m[u-1]=1;for(let d=u-2;d>=0;--d)m[d]=m[d+1]*l[d+1]}const g=s._408.getArrayFromDType(n,c*u);for(let e=0;e<c;++e){let id=0;for(let n=0;n<f;++n)id+=t[e*f+n]*b[n];for(let t=0;t<u;++t)g[e*u+t]=Math.trunc(id/m[t]),id%=m[t]}return[g,[c,u],l]}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)((t=>Math.sqrt(t)));e.b=o;const c=Object(i.a)(a._120,(t=>Math.sqrt(t))),u={kernelName:a._120,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>{const diff=t-e;return diff*diff}));e.b=o;const c=Object(i.a)(a._122,o),u={kernelName:a._122,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(59),i=n(14);
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>{const{pattern:n,replaceGlobal:a,rewrite:s}=e;return t.replace(new RegExp(n,a?"g":""),s)}));e.b=o;const c=Object(i.b)(a._123,o),u={kernelName:a._123,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const i=Object(s._178)(t,e.dtype);for(let t=0;t<i.size;t++){const s=i.indexToLoc(t),o=new Array(s.length);for(let t=0;t<o.length;t++)o[t]=s[t]*n[t]+a[t];i.set(e.get(...o),...s)}return i}e.a=a;var s=n(0)},function(t,e,n){"use strict";function a(data,t,e,n,a,s,o,c){return new i(e,n,a,s,o,c).compute(data,t)}e.a=a;var s=n(0);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class i{constructor(t,e,n,a,i,o){this.separator=s._408.encodeString(t),this.nGramWidths=e,this.leftPad=s._408.encodeString(n),this.rightPad=s._408.encodeString(a),this.padWidth=i,this.preserveShort=o}getPadWidth(t){return Math.min(this.padWidth<0?t-1:this.padWidth,t-1)}getNumNGrams(length,t){const e=this.getPadWidth(t);return Math.max(0,length+2*e-t+1)}createNGrams(data,t,e,n,a,s){for(let i=0;i<a;++i){const o=this.getPadWidth(s),c=Math.max(0,o-i),u=Math.max(0,o-(a-(i+1))),l=s-(c+u),h=t+(c>0?0:i-o);let p=0;p+=c*this.leftPad.length;for(let t=0;t<l;++t)p+=data[h+t].length;p+=u*this.rightPad.length;const f=undefined;p+=(c+u+l-1)*this.separator.length,e[n+i]=new Uint8Array(p);const b=e[n+i];let m=0;const g=t=>t.forEach((t=>b[m++]=t));for(let t=0;t<c;++t)g(this.leftPad),g(this.separator);for(let t=0;t<l-1;++t)g(data[h+t]),g(this.separator);if(l>0){g(data[h+l-1]);for(let t=0;t<u;++t)g(this.separator),g(this.rightPad)}else{for(let t=0;t<u-1;++t)g(this.rightPad),g(this.separator);g(this.rightPad)}}}compute(data,t){const e=data.length,n=t.length;if(n>0){let a=t[0];if(0!==a)throw new Error(`First split value must be 0, got ${a}`);for(let s=1;s<n;++s){let n=t[s]>=a;if(n=n&&t[s]<=e,!n)throw new Error(`Invalid split value ${t[s]}, must be in [${a}, ${e}]`);a=t[s]}if(a!==e)throw new Error(`Last split value must be data size. Expected ${e}, got ${a}`)}const a=n-1,i=s._408.getArrayFromDType("int32",n);if(0===e||0===n){const empty=new Array(e);for(let t=0;t<=a;++t)i[t]=0;return[empty,i]}i[0]=0;for(let e=1;e<=a;++e){const length=t[e]-t[e-1];let n=0;this.nGramWidths.forEach((t=>{n+=this.getNumNGrams(length,t)})),this.preserveShort&&length>0&&0===n&&(n=1),i[e]=i[e-1]+n}const o=new Array(i[a]);for(let e=0;e<a;++e){const n=t[e];let a=i[e];if(this.nGramWidths.forEach((s=>{const length=t[e+1]-t[e],i=this.getNumNGrams(length,s);this.createNGrams(data,n,o,a,i,s),a+=i})),this.preserveShort&&a===i[e]){const s=t[e+1]-t[e];if(0===s)continue;const i=s+2*this.padWidth,c=1;this.createNGrams(data,n,o,a,c,i)}}return[o,i]}}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){if(!t.length)return;if(0===e.length){for(let e=0;e<t.length;++e)a.push(t.subarray(e,e+1));return}if(1===e.length){const s=e[0];let i=t.indexOf(s);for(;-1!==i;){const e=t.subarray(0,i);n&&0===e.length||a.push(e),i=(t=t.subarray(i+1)).indexOf(s)}return n&&0===t.length||a.push(t),void 0}let s=0;for(let i=0;i<t.length+1;i++)if(i===t.length||-1!==e.indexOf(t[i])){const e=t.subarray(s,i);n&&0===e.length||a.push(e),s=i+1}}function s(input,t,e){const n=input.length,s=[];let o=0,c=0;const u=new Array(n);for(let i=0;i<n;++i){const n=s.length;a(input[i],t,e,s);const l=s.length-n;u[i]=l,o+=l,c=Math.max(c,l)}const l=i._408.getArrayFromDType("int32",2*o),h=new Array(o),shape=[n,c];let p=0;for(let t=0;t<n;++t)for(let e=0;e<u[t];++e)l[2*p]=t,l[2*p+1]=e,h[p]=s[p],++p;return[l,h,shape]}e.a=s;var i=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t){const e=s._408.getArrayFromDType("int32",input.length);for(let n=0;n<input.length;++n)e[n]=s._408.fingerPrint64(input[n]).modulo(t).getLowBitsUnsigned();return e}e.a=a;var s=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=new Array(t.rank);for(let a=0;a<n.length;a++)n[a]=t.shape[a]*e[a];const a=Object(s._178)(n,t.dtype);for(let e=0;e<a.values.length;++e){const n=a.indexToLoc(e),s=new Array(t.rank);for(let e=0;e<s.length;e++)s[e]=n[e]%t.shape[e];const i=t.locToIndex(s);a.values[e]=t.values[i]}return a}e.a=a;var s=n(0)},function(t,e,n){"use strict";function select(t,e,n=0,a=t.length-1){for(;a>n;){if(a-n>600){const s=a-n+1,i=e-n+1,o=Math.log(s),c=.5*Math.exp(2*o/3),u=.5*Math.sqrt(o*c*(s-c)/s)*Math.sign(i-s/2),l=undefined,h=undefined;select(t,e,Math.max(n,Math.floor(e-i*c/s+u)),Math.min(a,Math.floor(e+(s-i)*c/s+u)))}const o=t[e];let c=n,u=a;for(s._408.swap(t,n,e),i(t[a],o)>0&&s._408.swap(t,n,a);c<u;){for(s._408.swap(t,c,u),c++,u--;i(t[c],o)<0;)c+=1;for(;i(t[u],o)>0;)u-=1}0===i(t[n],o)?s._408.swap(t,n,u):(u+=1,s._408.swap(t,u,a)),u<=e&&(n=u+1),e<=u&&(a=u-1)}}function a(t,e,n,a,o){const c=e[e.length-1],[u,size]=[t.length/c,c],l=s._408.getTypedArrayFromDType(n,u*a),h=s._408.getTypedArrayFromDType("int32",u*a);for(let e=0;e<u;e++){const n=e*size,s=t.subarray(n,n+size);let c=new Array(s.length);s.forEach(((t,index)=>c[index]={value:t,index:index})),a<c.length&&(select(c,a),c=c.slice(0,a)),o&&c.sort(i);const u=e*a,p=l.subarray(u,u+a),f=h.subarray(u,u+a);for(let t=0;t<a;t++)p[t]=c[t].value,f[t]=c[t].index}const p=e.slice();return p[p.length-1]=a,[Object(s._178)(p,n,l),Object(s._178)(p,"int32",h)]}e.a=a;var s=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const i=(t,e)=>{const n=e.value-t.value;return 0===n?t.index-e.index:n}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,shape,n){const a=s._408.parseAxisParam(e,shape)[0],i=[1,shape[0],1];for(let t=0;t<a;t++)i[0]*=shape[t];i[1]=shape[a];for(let t=a+1;t<shape.length;t++)i[2]*=shape[t];const o=new Map,c=new Int32Array(shape[a]),u=new s._134(i,n,t),l=[],h=1===i[0]&&1===i[2];for(let e=0;e<shape[a];e++){let n;if(h)n=t[e].toString();else{const t=[];for(let n=0;n<i[0];n++)for(let a=0;a<i[2];a++)t.push(u.get(n,e,a));n=t.join(",")}const a=o.get(n);if(null!=a)c[e]=a;else{const t=o.size;o.set(n,t),c[e]=t,l.push(e)}}const p=i.slice();p[1]=o.size;const f=new s._134(p,n);l.forEach(((t,e)=>{for(let n=0;n<i[0];n++)for(let a=0;a<i[2];a++)f.set(u.get(n,t,a),n,e,a)}));const b=shape.slice();return b[a]=p[1],{outputValues:f.values,outputShape:b,indices:c}}e.a=a;var s=n(0)},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._6,(t=>t>=0?t:Math.exp(t)-1));e.a=i;const o={kernelName:a._6,backendName:"cpu",kernelFunc:i};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o}=e,{alpha:c}=a;Object(i.a)([o],"leakyRelu");const u=s._408.sizeFromShape(o.shape),l=n.data.get(o.dataId).values,h=s._408.getTypedArrayFromDType("float32",u);for(let t=0;t<l.length;t++)h[t]=l[t]<0?c*l[t]:l[t];return n.makeTensorInfo(o.shape,"float32",h)}e.a=a;var s=n(0),i=n(8);const o={kernelName:s._36,backendName:"cpu",kernelFunc:a};e.b=o},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n}=t,{x:a,alpha:s}=e;Object(i.a)([a,s],"prelu");const o=n.data.get(a.dataId).values,u=n.data.get(s.dataId).values,[l,h]=c(a.shape,s.shape,o,u,"float32");return n.makeTensorInfo(h,"float32",l)}e.a=a;var s=n(0),i=n(8),o=n(30);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c=Object(o.a)(((t,e)=>t<0?e*t:t)),u={kernelName:s._78,backendName:"cpu",kernelFunc:a};e.b=u},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._90,(t=>Math.max(0,t)));e.a=i;const o={kernelName:a._90,backendName:"cpu",kernelFunc:i};e.b=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._91,(t=>Math.min(Math.max(0,t),6)));e.a=i;const o={kernelName:a._91,backendName:"cpu",kernelFunc:i};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{a:c,b:u}=e,{transposeA:l,transposeB:h}=a;Object(i.a)([c,u],"matMul");const p=c.shape.length,f=u.shape.length,b=l?c.shape[p-2]:c.shape[p-1],m=h?u.shape[f-1]:u.shape[f-2],g=l?c.shape[p-1]:c.shape[p-2],v=h?u.shape[f-2]:u.shape[f-1],w=c.shape.slice(0,-2),y=u.shape.slice(0,-2),O=s._408.sizeFromShape(w),x=s._408.sizeFromShape(y),A=undefined,I=s._176.assertAndGetBroadcastShape(c.shape.slice(0,-2),u.shape.slice(0,-2)).concat([g,v]);s._408.assert(b===m,(()=>`Error in matMul: inner shapes (${b}) and (${m}) of Tensors with shapes ${c.shape} and ${u.shape} and transposeA=${l} and transposeB=${h} must match.`));const j=l?[O,b,g]:[O,g,b],C=h?[x,v,m]:[x,m,v],_=Object(o.a)({inputs:{x:c},backend:n,attrs:{shape:j}}),k=Object(o.a)({inputs:{x:u},backend:n,attrs:{shape:C}}),S=l?_.shape[1]:_.shape[2],T=l?_.shape[2]:_.shape[1],L=h?k.shape[1]:k.shape[2],B=Math.max(O,x),N=n.data.get(_.dataId).values,E=n.data.get(k.dataId).values,M=s._408.computeStrides(_.shape),F=s._408.computeStrides(k.shape),[W,z,P]=l?[M[0],1,M[1]]:[M[0],M[1],1],[G,V,H]=h?[1,F[1],F[0]]:[F[1],1,F[0]],size=T*L,Z=Object(s._178)([B,T,L],_.dtype),X=Z.values,U=n.blockSize;for(let t=0;t<B;t++){const e=t%O,n=t%x;for(let a=0;a<T;a+=U){const s=Math.min(a+U,T);for(let i=0;i<L;i+=U){const o=Math.min(i+U,L);for(let c=0;c<S;c+=U){const u=Math.min(c+U,S);for(let l=a;l<s;l++)for(let a=i;a<o;a++){let s=0;for(let t=c;t<u;t++){const i=undefined,o=undefined;s+=N[e*W+l*z+t*P]*E[t*G+a*V+n*H]}X[t*size+(l*L+a)]+=s}}}}}return n.disposeIntermediateTensorInfo(_),n.disposeIntermediateTensorInfo(k),n.makeTensorInfo(I,Z.dtype,Z.values)}e.a=a;var s=n(0),i=n(8),o=n(40);const c={kernelName:s.w,backendName:"cpu",kernelFunc:a};e.b=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,filter:filter}=e,{strides:c,pad:u,dataFormat:l,dilations:h,dimRoundingMode:p}=a;Object(i.a)([o,filter],"conv2d");const f=s._164.convertConv2DDataFormat(l),b=s._164.computeConv2DInfo(o.shape,filter.shape,c,h,u,p,false,f),m=b.filterHeight,g=b.filterWidth,v=b.dilationHeight,w=b.dilationWidth,y=b.padInfo.left,O=b.padInfo.top,x="channelsLast"===b.dataFormat,A=new s._134(b.outShape,o.dtype),I=s._408.computeStrides(o.shape),j=s._408.computeStrides(filter.shape),C=I[0],_=x?I[1]:I[2],k=x?I[2]:1,S=x?1:I[1],T=A.strides[0],L=x?A.strides[1]:A.strides[2],B=x?A.strides[2]:1,N=x?1:A.strides[1],E=n.data.get(o.dataId).values,M=n.data.get(filter.dataId).values,F=A.values;for(let t=0;t<b.batchSize;++t){const e=t*C,n=t*T;for(let t=0;t<b.outHeight;++t){const a=n+t*L,s=t*b.strideHeight-O;for(let t=0;t<m;++t){const n=s+t*v;if(n<0||n>=b.inHeight)continue;const i=t*j[0],o=e+n*_;for(let t=0;t<b.outWidth;++t){const e=a+t*B,n=t*b.strideWidth-y;for(let t=0;t<g;++t){const a=n+t*w;if(a<0||a>=b.inWidth)continue;const s=undefined,c=o+a*k;let u=i+t*j[1];for(let t=0;t<b.inChannels;++t){const n=E[c+t*S];for(let t=0;t<b.outChannels;++t)F[e+t*N]+=n*M[u+t];u+=b.outChannels}}}}}}return n.makeTensorInfo(A.shape,A.dtype,F)}e.a=a;var s=n(0),i=n(8);const o={kernelName:s.I,backendName:"cpu",kernelFunc:a};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,filter:filter}=e,{strides:c,pad:u,dilations:l,dimRoundingMode:h}=a;Object(i.a)([o,filter],"depthwiseConv2DNative");const p=s._408.computeStrides(o.shape),f=s._408.computeStrides(filter.shape);let b=l;null==b&&(b=[1,1]),s._408.assert(s._164.eitherStridesOrDilationsAreOne(c,b),(()=>`Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides ${c} and dilations '${b}'`));const m=s._164.computeConv2DInfo(o.shape,filter.shape,c,b,u,h,true),{filterHeight:g,filterWidth:v,dilationHeight:w,dilationWidth:y,padInfo:O}=m,x=O.left,A=O.top,I=m.outChannels/m.inChannels,j=new s._134(m.outShape,o.dtype),C=n.data.get(o.dataId).values,_=n.data.get(filter.dataId).values,k=j.values;for(let t=0;t<m.batchSize;++t){const e=t*p[0],n=t*j.strides[0];for(let t=0;t<m.outHeight;++t){const a=n+t*j.strides[1],s=t*m.strideHeight-A;for(let t=0;t<g;++t){const n=s+t*w;if(n<0||n>=m.inHeight)continue;const i=t*f[0],o=e+n*p[1];for(let t=0;t<m.outWidth;++t){const e=a+t*j.strides[2],n=t*m.strideWidth-x;for(let t=0;t<v;++t){const a=n+t*y;if(a<0||a>=m.inWidth)continue;const s=i+t*f[1],c=o+a*m.inChannels;let u=e,l=s;for(let t=0;t<m.inChannels;++t){const e=C[c+t];for(let q=0;q<I;++q)k[u+q]+=e*_[l+q];u+=I,l+=I}}}}}}return n.makeTensorInfo(j.shape,j.dtype,j.values)}e.a=a;var s=n(0),i=n(8);const o={kernelName:s.W,backendName:"cpu",kernelFunc:a};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t,e){const n=input.shape,a=n[0],i=n[1],o=e.data.get(input.dataId),c=o.complexTensorInfos.real,l=o.complexTensorInfos.imag,p=[a,i],f=u._408.sizeFromShape(p),b=u._408.getTypedArrayFromDType("float32",f),m=u._408.getTypedArrayFromDType("float32",f);for(let n=0;n<a;n++){const r=Object(w.a)({inputs:{x:c},backend:e,attrs:{begin:[n,0],size:[1,i]}}),a=Object(w.a)({inputs:{x:l},backend:e,attrs:{begin:[n,0],size:[1,i]}}),input=Object(h.a)({inputs:{real:r,imag:a},backend:e}),{real:o,imag:p}=s(input,t,e),f=u._164.mergeRealAndImagArrays(o,p);for(let d=0;d<i;d++){const t=u._164.getComplexWithIndex(f,d);b[n*i+d]=t.real,m[n*i+d]=t.imag}e.disposeIntermediateTensorInfo(r),e.disposeIntermediateTensorInfo(a),e.disposeIntermediateTensorInfo(input)}const g=e.makeTensorInfo(p,"float32",b),v=e.makeTensorInfo(p,"float32",m),y=Object(h.a)({inputs:{real:g,imag:v},backend:e});return e.disposeIntermediateTensorInfo(g),e.disposeIntermediateTensorInfo(v),y}function s(input,t,e){const n=u._408.sizeFromShape(input.shape),a=e.data.get(input.dataId),s=e.data.get(a.complexTensorInfos.real.dataId).values,l=e.data.get(a.complexTensorInfos.imag.dataId).values;if(i(n)){const a=o(s,l,n,t,e),i=[input.shape[0],input.shape[1]];if(t){const t=e.makeTensorInfo(i,"float32",a.real),s=e.makeTensorInfo(i,"float32",a.imag),o=e.makeTensorInfo([],"float32",u._408.createScalarValue(n,"float32")),c=Object(f.a)({inputs:{x:o},backend:e}),l=v.b.kernelFunc({inputs:{a:t,b:o},backend:e}),h=v.b.kernelFunc({inputs:{a:s,b:c},backend:e}),p=e.data.get(l.dataId).values,b=e.data.get(h.dataId).values;return e.disposeIntermediateTensorInfo(t),e.disposeIntermediateTensorInfo(s),e.disposeIntermediateTensorInfo(o),e.disposeIntermediateTensorInfo(c),e.disposeIntermediateTensorInfo(l),e.disposeIntermediateTensorInfo(h),{real:p,imag:b}}return a}{const data=undefined,e=c(u._164.mergeRealAndImagArrays(s,l),n,t);return u._164.splitRealAndImagArrays(e)}}function i(size){return 0==(size&size-1)}function o(t,e,size,n,a){if(1===size)return{real:t,imag:e};const data=u._164.mergeRealAndImagArrays(t,e),s=size/2,i=u._164.complexWithEvenIndex(data),c=i.real,f=i.imag,v=[c.length],w=a.makeTensorInfo(v,"float32",c),O=a.makeTensorInfo(v,"float32",f),x=Object(h.a)({inputs:{real:w,imag:O},backend:a}),A=u._164.complexWithOddIndex(data),I=A.real,j=A.imag,C=[I.length],_=a.makeTensorInfo(C,"float32",I),k=a.makeTensorInfo(C,"float32",j),S=Object(h.a)({inputs:{real:_,imag:k},backend:a}),T=o(c,f,s,n,a),L=T.real,B=T.imag,N=[L.length],E=a.makeTensorInfo(N,"float32",L),M=a.makeTensorInfo(N,"float32",B),F=Object(h.a)({inputs:{real:E,imag:M},backend:a}),W=o(I,j,s,n,a),z=W.real,P=W.imag,G=[z.length],V=a.makeTensorInfo(G,"float32",z),H=a.makeTensorInfo(G,"float32",P),Z=Object(h.a)({inputs:{real:V,imag:H},backend:a}),X=u._164.exponents(size,n),U=[X.real.length],$=a.makeTensorInfo(U,"float32",X.real),Y=a.makeTensorInfo(U,"float32",X.imag),J=Object(h.a)({inputs:{real:$,imag:Y},backend:a}),K=Object(m.a)({inputs:{a:J,b:Z},backend:a}),tt=Object(l.a)({inputs:{a:F,b:K},backend:a}),nt=Object(y.a)({inputs:{a:F,b:K},backend:a}),rt=Object(g.a)({inputs:{input:tt},backend:a}),at=Object(g.a)({inputs:{input:nt},backend:a}),st=Object(b.a)({inputs:{input:tt},backend:a}),ot=Object(b.a)({inputs:{input:nt},backend:a}),ct=Object(p.a)({inputs:[rt,at],backend:a,attrs:{axis:0}}),ut=Object(p.a)({inputs:[st,ot],backend:a,attrs:{axis:0}}),lt=a.data.get(ct.dataId).values,dt=a.data.get(ut.dataId).values;return a.disposeIntermediateTensorInfo(w),a.disposeIntermediateTensorInfo(O),a.disposeIntermediateTensorInfo(x),a.disposeIntermediateTensorInfo(_),a.disposeIntermediateTensorInfo(k),a.disposeIntermediateTensorInfo(S),a.disposeIntermediateTensorInfo(E),a.disposeIntermediateTensorInfo(M),a.disposeIntermediateTensorInfo(F),a.disposeIntermediateTensorInfo(V),a.disposeIntermediateTensorInfo(H),a.disposeIntermediateTensorInfo(Z),a.disposeIntermediateTensorInfo($),a.disposeIntermediateTensorInfo(Y),a.disposeIntermediateTensorInfo(J),a.disposeIntermediateTensorInfo(K),a.disposeIntermediateTensorInfo(tt),a.disposeIntermediateTensorInfo(nt),a.disposeIntermediateTensorInfo(rt),a.disposeIntermediateTensorInfo(st),a.disposeIntermediateTensorInfo(at),a.disposeIntermediateTensorInfo(ot),a.disposeIntermediateTensorInfo(ct),a.disposeIntermediateTensorInfo(ut),{real:lt,imag:dt}}function c(data,size,t){const e=new Float32Array(2*size);for(let r=0;r<size;r++){let n=0,a=0;for(let e=0;e<size;e++){const s=u._164.exponent(r*e,size,t),i=u._164.getComplexWithIndex(data,e);n+=i.real*s.real-i.imag*s.imag,a+=i.real*s.imag+i.imag*s.real}t&&(n/=size,a/=size),u._164.assignToTypedArray(e,n,a,r)}return e}e.a=a;var u=n(0),l=n(102),h=n(75),p=n(223),f=n(65),b=n(127),m=n(105),g=n(104),v=n(166),w=n(87),y=n(165)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e,{reductionIndices:l,keepDims:h}=a,p=n;let f=u.shape;const b=f.length,m=s._408.parseAxisParam(l,f);let g=m;const v=s._164.getAxesPermutation(g,b);let w=p.data.get(u.dataId).values;if(null!=v){const t=new Array(b);for(let e=0;e<t.length;e++)t[e]=f[v[e]];w=Object(c.a)(w,f,u.dtype,v,t),g=s._164.getInnerMostAxes(g.length,b),f=t}Object(i.a)(u,"max"),s._164.assertAxesAreInnerMostDims("max",g,b);const[y,O]=s._164.computeOutAndReduceShapes(f,g),x=s._408.sizeFromShape(O),A=Object(o.a)(w,x,y,u.dtype),I=p.write(A,y,u.dtype);let j=y;if(h){const t=undefined;j=s._164.expandShapeToKeepDim(y,m)}return{dataId:I,shape:j,dtype:u.dtype}}e.a=a;var s=n(0),i=n(8),o=n(332),c=n(219);const u={kernelName:s._49,backendName:"cpu",kernelFunc:a};e.b=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{logits:p}=e,{dim:f}=a,b=p.shape.length;let m=f;if(-1===m&&(m=b-1),m!==b-1)throw Error(`Softmax along a non-last dimension is not yet supported. Logits was rank ${b} and dim was ${m}`);const g=s._408.parseAxisParam([m],p.shape),v=Object(o.a)({inputs:{x:p},backend:n,attrs:{reductionIndices:g,keepDims:false}}),w=s._164.expandShapeToKeepDim(v.shape,g),y=Object(u.a)({inputs:{x:v},backend:n,attrs:{shape:w}}),O=Object(l.a)({inputs:{a:p,b:y},backend:n}),x=Object(i.a)({inputs:{x:O},backend:n}),A=Object(h.a)({inputs:{x:x},backend:n,attrs:{axis:g,keepDims:false}}),I=Object(u.a)({inputs:{x:A},backend:n,attrs:{shape:w}}),j=Object(c.a)({inputs:{a:x,b:I},backend:n});return n.disposeIntermediateTensorInfo(v),n.disposeIntermediateTensorInfo(y),n.disposeIntermediateTensorInfo(O),n.disposeIntermediateTensorInfo(x),n.disposeIntermediateTensorInfo(A),n.disposeIntermediateTensorInfo(I),j}e.a=a;var s=n(0),i=n(218),o=n(364),c=n(166),u=n(40),l=n(165),h=n(128);const p={kernelName:s._111,backendName:"cpu",kernelFunc:a};e.b=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{x:s}=e;if("string"===s.dtype)throw new Error("zerosLike is not supported for string tensors");if("complex64"===s.dtype){const t=Object(u.a)({inputs:{input:s},backend:n}),r=a({inputs:{x:t},backend:n}),e=Object(c.a)({inputs:{input:s},backend:n}),o=a({inputs:{x:e},backend:n}),l=Object(i.a)({inputs:{real:r,imag:o},backend:n});return n.disposeIntermediateTensorInfo(t),n.disposeIntermediateTensorInfo(r),n.disposeIntermediateTensorInfo(e),n.disposeIntermediateTensorInfo(o),l}return Object(o.a)({backend:n,attrs:{shape:s.shape,value:0,dtype:s.dtype}})}e.a=a;var s=n(0),i=n(75),o=n(225),c=n(127),u=n(104);const l={kernelName:s._145,backendName:"cpu",kernelFunc:a};e.b=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{axis:c}=a;if(1===e.length)return Object(o.a)({inputs:{input:e[0]},backend:n,attrs:{dim:c}});const shape=e[0].shape,u=e[0].dtype;e.forEach((t=>{s._408.assertShapesMatch(shape,t.shape,"All tensors passed to stack must have matching shapes"),s._408.assert(u===t.dtype,(()=>"All tensors passed to stack must have matching dtypes"))}));const l=[],h=e.map((t=>{const e=Object(o.a)({inputs:{input:t},backend:n,attrs:{dim:c}});return l.push(e),e})),p=Object(i.a)({inputs:h,backend:n,attrs:{axis:c}});return l.forEach((t=>n.disposeIntermediateTensorInfo(t))),p}e.a=a;var s=n(0),i=n(223),o=n(224);const c={kernelName:s._74,backendName:"cpu",kernelFunc:a};e.b=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o}=e,{paddings:paddings,constantValue:c}=a;Object(i.a)(o,"pad");const u=paddings.map(((t,e)=>t[0]+o.shape[e]+t[1])),l=paddings.map((t=>t[0])),h=n.data.get(o.dataId).values,p=s._408.sizeFromShape(o.shape),f=o.shape.length,b=s._408.computeStrides(o.shape),m=s._408.sizeFromShape(u),g=u.length,v=s._408.computeStrides(u),w=s._408.getTypedArrayFromDType(o.dtype,m);0!==c&&w.fill(c);for(let t=0;t<p;t++){const e=undefined,n=s._408.indexToLoc(t,f,b).map(((t,e)=>t+l[e])),a=undefined;w[s._408.locToIndex(n,g,v)]=h[t]}const y=undefined;return{dataId:n.write(w,u,o.dtype),shape:u,dtype:o.dtype}}var s=n(0),i=n(8);const o={kernelName:s._75,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(1045);n.d(e,"a",(function(){return a.a})),n.d(e,"b",(function(){return a.b})),n.d(e,"c",(function(){return a.c})),n.d(e,"d",(function(){return a.d})),n.d(e,"e",(function(){return a.e})),n.d(e,"f",(function(){return a.f})),n.d(e,"g",(function(){return a.g})),n.d(e,"h",(function(){return a.h}));var s=n(1057);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/},function(t,e,n){"use strict";function a(t){return t in L||(L[t]={}),L[t]}function s(){return null==Object(c._222)().global.screen?1024:Object(c._222)().global.screen.height*Object(c._222)().global.screen.width*window.devicePixelRatio*N/1024/1024}function i(t,e){if("float32"===e||"complex64"===e)return t;if("int32"===e||"bool"===e){const n="int32"===e?new Int32Array(t.length):new Uint8Array(t.length);for(let e=0;e<n.length;++e)n[e]=Math.round(t[e]);return n}throw new Error(`Unknown dtype ${e}`)}n.d(e,"a",(function(){return E}));var o=n(1046),c=n(0),u=n(167),l=n(1047),h=n(1048),p=n(1049),f=n(1050),b=n(1051),m=n(1052),g=n(371),v=n(38),w=n(12),y=n(1053),O=n(372),x=n(52),A=n(1054),I=n(41),j=n(106),C=n(1055),_=n(43);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const k=c._258.whereImpl,S=1e-7,T=1e-4,L={},B=Object(c._222)().getNumber("CPU_HANDOFF_SIZE_THRESHOLD"),N=600;class E extends c._33{nextDataId(){return E.nextDataId++}constructor(t){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=false,this.pendingDeletes=0,this.disposed=false,!Object(c._222)().getBool("HAS_WEBGL"))throw new Error("WebGL is not supported on this device");let e;if(null!=t){if(t instanceof g.a)e=t;else{const n=Object(u.a)(Object(c._222)().getNumber("WEBGL_VERSION"),t);e=new g.a(n)}this.binaryCache={},this.gpgpuCreatedLocally=false}else{const t=Object(u.a)(Object(c._222)().getNumber("WEBGL_VERSION"));e=new g.a(t),this.binaryCache=a(Object(c._222)().getNumber("WEBGL_VERSION")),this.gpgpuCreatedLocally=true}this.gpgpu=e,this.canvas=this.gpgpu.gl.canvas,this.textureManager=new A.a(this.gpgpu),this.numMBBeforeWarning=s(),this.texData=new c.T(this,Object(c._220)())}numDataIds(){return this.texData.numDataIds()-this.pendingDeletes}writeTexture(t,shape,e,n,a,s){const input=this.makeTensorInfo(shape,e),i=this.texData.get(input.dataId);i.isPacked=false,i.texture={texture:t,texShape:[n,a]},i.texShape=[n,a];const o=_.getShapeAs3D(shape),c=new b.a(o,false,s),u=this.runWebGLProgram(c,[input],e,[[n,a]]);return u.shape=shape,i.texture=null,this.disposeIntermediateTensorInfo(input),u.dataId}write(t,shape,e){if((Object(c._222)().getBool("WEBGL_CHECK_NUMERICAL_PROBLEMS")||Object(c._222)().getBool("DEBUG"))&&this.checkNumericalProblems(t),"complex64"===e&&null!=t)throw new Error("Cannot write to a complex64 dtype. Please use tf.complex(real, imag).");const n={id:this.nextDataId()};return this.texData.set(n,{shape:shape,dtype:e,values:t,usage:x.c.UPLOAD,refCount:1}),n}refCount(t){if(this.texData.has(t)){const e=undefined;return this.texData.get(t).refCount}return 0}incRef(t){const e=undefined;this.texData.get(t).refCount++}decRef(t){if(this.texData.has(t)){const e=undefined;this.texData.get(t).refCount--}}move(t,e,shape,n,a){if(Object(c._222)().getBool("DEBUG")&&this.checkNumericalProblems(e),"complex64"===n)throw new Error("Cannot write to a complex64 dtype. Please use tf.complex(real, imag).");this.texData.set(t,{shape:shape,dtype:n,values:e,usage:x.c.UPLOAD,refCount:a})}disposeIntermediateTensorInfo(t){this.disposeData(t.dataId)}readSync(t){const e=this.texData.get(t),{values:n,dtype:a,complexTensorInfos:s,slice:i,shape:shape,isPacked:o}=e;if(null!=i){let e;e=o?new j.f(shape,I.c):new I.i(shape,I.c);const n=this.runWebGLProgram(e,[{dataId:t,shape:shape,dtype:a}],a),data=this.readSync(n.dataId);return this.disposeIntermediateTensorInfo(n),data}if(null!=n)return this.convertAndCacheOnCPU(t);if("string"===a)return n;const u=null!=this.activeTimers;let l,h;if(u&&(l=c._408.now()),"complex64"===a){const t=this.readSync(s.real.dataId),e=this.readSync(s.imag.dataId);h=c._164.mergeRealAndImagArrays(t,e)}else h=this.getValuesFromTexture(t);return u&&(this.downloadWaitMs+=c._408.now()-l),this.convertAndCacheOnCPU(t,h)}async read(t){if(this.pendingRead.has(t)){const e=this.pendingRead.get(t);return new Promise((t=>e.push(t)))}const e=this.texData.get(t),{values:n,shape:shape,slice:a,dtype:s,complexTensorInfos:i,isPacked:o}=e;if(null!=a){let e;e=o?new j.f(shape,I.c):new I.i(shape,I.c);const n=this.runWebGLProgram(e,[{dataId:t,shape:shape,dtype:s}],s),data=this.read(n.dataId);return this.disposeIntermediateTensorInfo(n),data}if(null!=n)return this.convertAndCacheOnCPU(t);if(Object(c._222)().getBool("DEBUG")&&!Object(c._222)().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")&&2===Object(c._222)().getNumber("WEBGL_VERSION"))throw new Error("tensor.data() with WEBGL_DOWNLOAD_FLOAT_ENABLED=false and WEBGL_VERSION=2 not yet supported.");let u=null,l,h;if("complex64"!==s&&Object(c._222)().get("WEBGL_BUFFER_SUPPORTED")){l=this.decode(t);const e=this.texData.get(l.dataId);u=this.gpgpu.createBufferFromTexture(e.texture.texture,...x.d(shape))}if(this.pendingRead.set(t,[]),"complex64"!==s&&await this.gpgpu.createAndWaitForFence(),"complex64"===s){const t=await Promise.all([this.read(i.real.dataId),this.read(i.imag.dataId)]),e=t[0],n=t[1];h=c._164.mergeRealAndImagArrays(e,n)}else if(null==u)h=this.getValuesFromTexture(t);else{const size=c._408.sizeFromShape(shape);h=this.gpgpu.downloadFloat32MatrixFromBuffer(u,size)}if(null!=l&&this.disposeIntermediateTensorInfo(l),null!=u){const t=this.gpgpu.gl;_.callAndCheck(t,(()=>t.deleteBuffer(u)))}const p=this.convertAndCacheOnCPU(t,h),f=this.pendingRead.get(t);return this.pendingRead.delete(t),f.forEach((t=>t(p))),this.pendingDisposal.has(t)&&(this.pendingDisposal.delete(t),this.disposeData(t)&&Object(c._220)().removeDataId(t,this),this.pendingDeletes--),p}readToGPU(t,e={}){const n=this.texData.get(t),{values:a,shape:shape,slice:s,dtype:i,isPacked:o,texture:u}=n;if("complex64"===i)throw new Error("Does not support reading texture for complex64 dtype.");if(null!=s){let n;n=o?new j.f(shape,I.c):new I.i(shape,I.c);const a=this.runWebGLProgram(n,[{dataId:t,shape:shape,dtype:i}],i),s=this.readToGPU(a,e);return this.disposeIntermediateTensorInfo(a),s}if(null==u)throw null!=a?new Error("Data is not on GPU but on CPU."):new Error("There is no data on GPU or CPU.");const l=this.decode(t,e.customTexShape),h=Object(c._220)().makeTensorFromTensorInfo(l),p=this.texData.get(l.dataId);return Object.assign({tensorRef:h},p.texture)}bufferSync(t){const data=this.readSync(t.dataId);if("string"===t.dtype)try{const e=data.map((d=>c._408.decodeString(d)));return Object(c._178)(t.shape,t.dtype,e)}catch(t){throw new Error("Failed to decode encoded string bytes into utf-8")}return Object(c._178)(t.shape,t.dtype,data)}checkNumericalProblems(t){if(null!=t)for(let e=0;e<t.length;e++){const n=t[e];if(!_.canBeRepresented(n)){if(Object(c._222)().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(t){const{shape:shape,dtype:e,isPacked:n}=this.texData.get(t),size=c._408.sizeFromShape(shape);if(Object(c._222)().getBool("WEBGL_DOWNLOAD_FLOAT_ENABLED")){const e=this.decode(t),n=this.texData.get(e.dataId),a=this.gpgpu.downloadMatrixFromPackedTexture(n.texture.texture,...x.d(shape)).subarray(0,size);return this.disposeIntermediateTensorInfo(e),a}const a=Object(c._222)().getBool("WEBGL_PACK")&&true===n,s=a?_.getShapeAs3D(shape):shape,i=a?new f.a(s):new p.a(s),o=this.runWebGLProgram(i,[{shape:s,dtype:e,dataId:t}],"float32"),u=this.texData.get(o.dataId),l=this.gpgpu.downloadByteEncodedFloatMatrixFromOutputTexture(u.texture.texture,u.texShape[0],u.texShape[1]).subarray(0,size);return this.disposeIntermediateTensorInfo(o),l}timerAvailable(){return Object(c._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0}time(t){const e=this.activeTimers,n=[];let a=false;null==this.programTimersStack?(this.programTimersStack=n,a=true):this.activeTimers.push(n),this.activeTimers=n,t();const s=c._408.flatten(this.activeTimers.map((d=>d.query))).filter((d=>null!=d)),i=c._408.flatten(this.activeTimers.map((d=>d.name))).filter((d=>null!=d));this.activeTimers=e,a&&(this.programTimersStack=null);const o={uploadWaitMs:this.uploadWaitMs,downloadWaitMs:this.downloadWaitMs,kernelMs:null,wallMs:null};return(async()=>{if(Object(c._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0){const t=await Promise.all(s);o.kernelMs=c._408.sum(t),o.getExtraProfileInfo=()=>t.map(((d,t)=>({name:i[t],ms:d}))).map((d=>`${d.name}: ${d.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:false,numBytesInGPU:this.numBytesInGPU,numBytesInGPUAllocated:this.textureManager.numBytesAllocated,numBytesInGPUFree:this.textureManager.numBytesFree}}startTimer(){return Object(c._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?this.gpgpu.beginQuery():{startMs:c._408.now(),endMs:null}}endTimer(t){return Object(c._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0?(this.gpgpu.endQuery(),t):(t.endMs=c._408.now(),t)}async getQueryTime(t){if(Object(c._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE")>0)return this.gpgpu.waitForQueryAndGetTime(t);const e=t;return e.endMs-e.startMs}disposeData(t,e=false){if(this.pendingDisposal.has(t))return false;if(!this.texData.has(t))return true;if(e?this.texData.get(t).refCount=0:this.texData.get(t).refCount--,!e&&this.texData.get(t).refCount>0)return false;if(this.pendingRead.has(t))return this.pendingDisposal.add(t),this.pendingDeletes++,false;this.releaseGPUData(t);const{complexTensorInfos:n}=this.texData.get(t);return null!=n&&(this.disposeData(n.real.dataId,e),this.disposeData(n.imag.dataId,e)),this.texData.delete(t),true}releaseGPUData(t){const{texture:e,dtype:n,texShape:a,usage:s,isPacked:i,slice:o}=this.texData.get(t),c=o&&o.origDataId||t,u=this.dataRefCount.get(c);u>1?this.dataRefCount.set(c,u-1):(this.dataRefCount.delete(c),null!=e&&(this.numBytesInGPU-=this.computeBytes(a,n),this.textureManager.releaseTexture(e,a,s,i)));const l=this.texData.get(t);l.texture=null,l.texShape=null,l.isPacked=false,l.slice=null}getTexture(t){return this.uploadToGPU(t),this.texData.get(t).texture.texture}getDataInfo(t){return this.texData.get(t)}shouldExecuteOnCPU(t,e=B){return Object(c._222)().getBool("WEBGL_CPU_FORWARD")&&t.every((input=>null==this.texData.get(input.dataId).texture&&c._408.sizeFromShape(input.shape)<e))}getGPGPUContext(){return this.gpgpu}where(t){c._164.warn("tf.where() in webgl locks the UI thread. Call tf.whereAsync() instead");const e=t.dataSync();return k(t.shape,e)}packedUnaryOp(t,e,n){const a=new j.f(t.shape,e),s=this.compileAndRun(a,[t],n);return Object(c._220)().makeTensorFromTensorInfo(s)}abs(t){if(this.shouldExecuteOnCPU([t])&&"complex64"!==t.dtype){const e=Object(w.H)(this.texData.get(t.dataId).values);return this.makeOutput(t.shape,t.dtype,e)}if(Object(c._222)().getBool("WEBGL_PACK_UNARY_OPERATIONS"))return this.packedUnaryOp(t,I.a,t.dtype);const e=new I.i(t.shape,I.a),n=this.compileAndRun(e,[t]);return Object(c._220)().makeTensorFromTensorInfo(n)}makeTensorInfo(shape,t,e){let n;if("string"===t&&null!=e&&e.length>0&&c._408.isString(e[0])){const a=e.map((d=>c._408.encodeString(d)));n=this.write(a,shape,t)}else n=this.write(e,shape,t);return this.texData.get(n).usage=null,{dataId:n,shape:shape,dtype:t}}makeOutput(shape,t,e){return Object(c._220)().makeTensorFromTensorInfo(this.makeTensorInfo(shape,t,e),this)}unpackTensor(input){const t=new C.a(input.shape);return this.runWebGLProgram(t,[input],input.dtype)}packTensor(input){const t=new y.a(input.shape),e=true;return this.runWebGLProgram(t,[input],input.dtype,null,e)}packedReshape(input,t){const e=[_.getBatchDim(input.shape),..._.getRowsCols(input.shape)],n={dtype:input.dtype,shape:e,dataId:input.dataId},a=[_.getBatchDim(t),..._.getRowsCols(t)],s=new O.a(a,e),i=true,o=[e],c=this.runWebGLProgram(s,[n],input.dtype,o,i);return{dataId:c.dataId,shape:t,dtype:c.dtype}}decode(t,e){const n=this.texData.get(t),{isPacked:a,shape:shape,dtype:s}=n;if(null!=e){const size=c._408.sizeFromShape(shape),t=e[0]*e[1]*4;c._408.assert(size<=t,(()=>"customTexShape is too small. Row * Column * 4 should be equal or larger than the size of the tensor data."))}const i=_.getShapeAs3D(shape);let o;o=a?new h.a(i):new l.a(i);const u=true,p=[null!=e?e:x.d(i)],f=undefined;return{dtype:s,shape:shape,dataId:this.runWebGLProgram(o,[{shape:i,dtype:s,dataId:t}],s,p,u,e).dataId}}runWebGLProgram(t,e,n,a,s=false,i){const o=this.makeTensorInfo(t.outputShape,n),u=this.texData.get(o.dataId);if(t.packedOutput&&(u.isPacked=true),t.outPackingScheme===x.a.DENSE){const e=null!=i?i:x.d(t.outputShape);u.texShape=e.map((d=>2*d))}if(null!=t.outTexUsage&&(u.usage=t.outTexUsage),0===c._408.sizeFromShape(o.shape))return u.values=c._408.getTypedArrayFromDType(o.dtype,0),o;const l=[],h=e.map((input=>{if("complex64"===input.dtype)throw new Error("GPGPUProgram does not support complex64 input. For complex64 dtypes, please separate the program into real and imaginary parts.");let e=this.texData.get(input.dataId);if(null==e.texture){if(!t.packedInputs&&c._408.sizeFromShape(input.shape)<=Object(c._222)().getNumber("WEBGL_SIZE_UPLOAD_UNIFORM"))return{shape:input.shape,texData:null,isUniform:true,uniformValues:e.values};t.packedInputs&&(e.isPacked=true,e.shape=input.shape)}if(this.uploadToGPU(input.dataId),!!e.isPacked!=!!t.packedInputs)input=e.isPacked?this.unpackTensor(input):this.packTensor(input),l.push(input),e=this.texData.get(input.dataId);else if(e.isPacked&&!_.isReshapeFree(e.shape,input.shape)){const t=input,n=input.shape;input.shape=e.shape,input=this.packedReshape(input,n),l.push(input),e=this.texData.get(input.dataId),t.shape=n}return{shape:input.shape,texData:e,isUniform:false}}));this.uploadToGPU(o.dataId);const p={shape:o.shape,texData:u,isUniform:false},f=v.c(t,h,p),b=this.getAndSaveBinary(f,(()=>v.a(this.gpgpu,t,h,p))),m=null!=this.activeTimers;let g;m&&(g=this.startTimer()),Object(c._222)().get("ENGINE_COMPILE_ONLY")||v.d(this.gpgpu,b,h,p,a),l.forEach((t=>this.disposeIntermediateTensorInfo(t))),m&&(g=this.endTimer(g),this.activeTimers.push({name:t.constructor.name,query:this.getQueryTime(g)}));const w=Object(c._222)().getNumber("WEBGL_FLUSH_THRESHOLD");if(w>0){const t=c._408.now();t-this.lastGlFlushTime>w&&(this.gpgpu.gl.flush(),this.lastGlFlushTime=t)}if(!Object(c._222)().getBool("WEBGL_LAZILY_UNPACK")&&u.isPacked&&false===s){const t=this.unpackTensor(o);return this.disposeIntermediateTensorInfo(o),t}return o}compileAndRun(t,e,n,a,s=false){n=n||e[0].dtype;const i=undefined;return this.runWebGLProgram(t,e,n,a,s)}getAndSaveBinary(t,e){return t in this.binaryCache||(this.binaryCache[t]=e()),this.binaryCache[t]}getTextureManager(){return this.textureManager}dispose(){if(!this.disposed){if(!Object(c._222)().getBool("IS_TEST")){const t=undefined;Object.keys(this.binaryCache).forEach((t=>{this.gpgpu.deleteProgram(this.binaryCache[t].webGLProgram),delete this.binaryCache[t]}))}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=true}}floatPrecision(){return null==this.floatPrecisionValue&&(this.floatPrecisionValue=Object(c._394)((()=>{if(!Object(c._222)().get("WEBGL_RENDER_FLOAT32_ENABLED")){const t=Object(c._222)().getBool("DEBUG");Object(c._222)().set("DEBUG",false);const e=this.abs(Object(c._343)(1e-8)).dataSync()[0];if(Object(c._222)().set("DEBUG",t),e>0)return 32}return 16}))),this.floatPrecisionValue}epsilon(){return 32===this.floatPrecision()?S:T}uploadToGPU(t){const e=this.texData.get(t),{shape:shape,dtype:n,values:a,texture:s,usage:i,isPacked:o}=e;if(null!=s)return;const u=null!=this.activeTimers;let l;u&&(l=c._408.now());let h=e.texShape;if(null==h&&(h=_.getTextureShapeFromLogicalShape(shape,o),e.texShape=h),null!=a){const t=_.getShapeAs3D(shape);let s,i=h[1],p=h[0];const f=a instanceof Uint8Array||a instanceof Uint8ClampedArray;!o&&f||([i,p]=x.e(h[0],h[1])),s=o?new m.a(t,f):new b.a(t,f);const g=f?[p,i]:h,v=this.makeTensorInfo(g,n),w=this.texData.get(v.dataId);w.usage=f?x.c.PIXELS:x.c.UPLOAD,w.texShape=g,this.gpgpu.uploadDenseMatrixToTexture(this.getTexture(v.dataId),i,p,a);const y=[[p,i]],O=true,A=this.runWebGLProgram(s,[v],n,y,O),I=this.texData.get(A.dataId);e.texShape=I.texShape,e.isPacked=I.isPacked,e.usage=I.usage,Object(c._222)().get("ENGINE_COMPILE_ONLY")?this.disposeData(A.dataId):(e.texture=I.texture,e.values=null,this.texData.delete(A.dataId)),this.disposeIntermediateTensorInfo(v),u&&(this.uploadWaitMs+=c._408.now()-l)}else{const t=this.acquireTexture(h,i,n,o);e.texture=t}}convertAndCacheOnCPU(t,e){const n=this.texData.get(t),{dtype:a}=n;return null!=e&&(n.values=i(e,a)),n.values}acquireTexture(t,e,n,a){if(this.numBytesInGPU+=this.computeBytes(t,n),!this.warnedAboutMemory&&this.numBytesInGPU>1024*this.numMBBeforeWarning*1024){const t=(this.numBytesInGPU/1024/1024).toFixed(2);this.warnedAboutMemory=true,console.warn(`High memory usage in GPU: ${t} MB, most likely due to a memory leak`)}return this.textureManager.acquireTexture(t,e,a)}computeBytes(shape,t){return shape[0]*shape[1]*c._408.bytesPerElement(t)}checkCompileCompletion(){for(const[,t]of Object.entries(this.binaryCache))this.checkCompletion_(t)}async checkCompileCompletionAsync(){const t=[];if(this.gpgpu.parallelCompilationExtension){for(const[,e]of Object.entries(this.binaryCache))t.push(this.checkCompletionAsync_(e));return Promise.all(t)}for(const[,e]of Object.entries(this.binaryCache)){const n=new Promise((t=>{try{this.checkCompletion_(e),t(true)}catch(t){throw t}}));t.push(n)}return Promise.all(t)}async checkCompletionAsync_(t){return this.gpgpu.gl.getProgramParameter(t.webGLProgram,this.gpgpu.parallelCompilationExtension.COMPLETION_STATUS_KHR)?this.checkCompletion_(t):(await Object(c._296)(),this.checkCompletionAsync_(t))}checkCompletion_(t){if(false===this.gpgpu.gl.getProgramParameter(t.webGLProgram,this.gpgpu.gl.LINK_STATUS)){if(console.log(this.gpgpu.gl.getProgramInfoLog(t.webGLProgram)),false===this.gpgpu.gl.getShaderParameter(t.fragmentShader,this.gpgpu.gl.COMPILE_STATUS))throw _.logShaderSourceAndInfoLog(t.source,this.gpgpu.gl.getShaderInfoLog(t.fragmentShader)),new Error("Failed to compile fragment shader.");throw new Error("Failed to link vertex and fragment shaders.")}return true}getUniformLocations(){for(const t of Object.values(this.binaryCache)){this.gpgpu.buildVao(t.webGLProgram);const{variablesLocations:e,customUniformLocations:n,infLoc:a,nanLoc:s,outShapeLocation:i,outShapeStridesLocation:o,outTexShapeLocation:c}=Object(v.b)(this.gpgpu,t.program,t.webGLProgram);t.variablesLocations=e,t.customUniformLocations=n,t.infLoc=a,t.nanLoc=s,t.outShapeLocation=i,t.outShapeStridesLocation=o,t.outTexShapeLocation=c}}createTensorFromGPUData(t,shape,e){t.channels=t.channels||"RGBA";const{texture:n,height:a,width:s,channels:i}=t,o=Object(c._220)().backend;if(!o.gpgpu.gl.isTexture(n))throw new 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)'.");const u=o.writeTexture(n,shape,e,a,s,i);return Object(c._220)().makeTensorFromDataId(u,shape,e,o)}}E.nextDataId=0},function(t,e,n){"use strict";function a(t){let e=0;for(;e<t.length;++e){const n=undefined;if(!t[e]())break}return e-1}var s=n(0),i=n(167),o=n(226),c=n(52),u=n(43);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class l{constructor(t){this.outputTexture=null,this.program=null,this.disposed=false,this.itemsToPoll=[];const e=Object(s._222)().getNumber("WEBGL_VERSION");if(null!=t?(this.gl=t,Object(i.b)(e,t)):this.gl=Object(i.a)(e),t=this.gl,2===Object(s._222)().getNumber("WEBGL_VERSION")){const e=t;this.createVertexArray=()=>u.callAndCheck(e,(()=>e.createVertexArray())),this.bindVertexArray=t=>u.callAndCheck(e,(()=>e.bindVertexArray(t))),this.deleteVertexArray=t=>u.callAndCheck(e,(()=>e.deleteVertexArray(t))),this.getVertexArray=()=>u.callAndCheck(e,(()=>e.getParameter(e.VERTEX_ARRAY_BINDING)))}else if(null!=t){const e=t.getExtension("OES_vertex_array_object");if(null==e)throw new Error("All WebGL1 implementations are expected to offer OES_vertex_array_object.");this.createVertexArray=()=>u.callAndCheck(t,(()=>e.createVertexArrayOES())),this.bindVertexArray=n=>u.callAndCheck(t,(()=>e.bindVertexArrayOES(n))),this.deleteVertexArray=n=>u.callAndCheck(t,(()=>e.deleteVertexArrayOES(n))),this.getVertexArray=()=>u.callAndCheck(t,(()=>t.getParameter(e.VERTEX_ARRAY_BINDING_OES)))}let n="WEBGL_color_buffer_float";const a="EXT_color_buffer_half_float";if(this.parallelCompilationExtension=this.gl.getExtension("KHR_parallel_shader_compile"),1===Object(s._222)().getNumber("WEBGL_VERSION")){const t="OES_texture_float",e="OES_texture_half_float";if(this.textureFloatExtension=u.getExtensionOrThrow(this.gl,t),u.hasExtension(this.gl,e))this.textureHalfFloatExtension=u.getExtensionOrThrow(this.gl,e);else if(Object(s._222)().get("WEBGL_FORCE_F16_TEXTURES"))throw new 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),u.hasExtension(this.gl,a))this.colorBufferHalfFloatExtension=u.getExtensionOrThrow(this.gl,a);else if(Object(s._222)().get("WEBGL_FORCE_F16_TEXTURES"))throw new 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",u.hasExtension(this.gl,n))this.colorBufferFloatExtension=this.gl.getExtension(n);else{if(!u.hasExtension(this.gl,a))throw new Error("GL context does not support color renderable floats");this.colorBufferHalfFloatExtension=this.gl.getExtension(a)}this.vertexBuffer=o.createVertexBuffer(this.gl),this.indexBuffer=o.createIndexBuffer(this.gl),this.framebuffer=u.createFramebuffer(this.gl),this.textureConfig=c.g(this.gl,this.textureHalfFloatExtension)}get debug(){return Object(s._222)().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.");const t=this.gl;u.callAndCheck(t,(()=>t.finish())),u.callAndCheck(t,(()=>t.bindFramebuffer(t.FRAMEBUFFER,null))),u.callAndCheck(t,(()=>t.deleteFramebuffer(this.framebuffer))),u.callAndCheck(t,(()=>t.bindBuffer(t.ARRAY_BUFFER,null))),u.callAndCheck(t,(()=>t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null))),u.callAndCheck(t,(()=>t.deleteBuffer(this.indexBuffer))),this.disposed=true}createFloat32MatrixTexture(t,e){return this.throwIfDisposed(),o.createFloat32MatrixTexture(this.gl,t,e,this.textureConfig)}createFloat16MatrixTexture(t,e){return this.throwIfDisposed(),o.createFloat16MatrixTexture(this.gl,t,e,this.textureConfig)}createUnsignedBytesMatrixTexture(t,e){return this.throwIfDisposed(),o.createUnsignedBytesMatrixTexture(this.gl,t,e,this.textureConfig)}uploadPixelDataToTexture(t,e){this.throwIfDisposed(),o.uploadPixelDataToTexture(this.gl,t,e)}uploadDenseMatrixToTexture(t,e,n,data){this.throwIfDisposed(),o.uploadDenseMatrixToTexture(this.gl,t,e,n,data,this.textureConfig)}createFloat16PackedMatrixTexture(t,e){return this.throwIfDisposed(),o.createFloat16PackedMatrixTexture(this.gl,t,e,this.textureConfig)}createPackedMatrixTexture(t,e){return this.throwIfDisposed(),o.createPackedMatrixTexture(this.gl,t,e,this.textureConfig)}deleteMatrixTexture(t){this.throwIfDisposed(),this.outputTexture===t&&(u.unbindColorTextureFromFramebuffer(this.gl,this.framebuffer),this.outputTexture=null),u.callAndCheck(this.gl,(()=>this.gl.deleteTexture(t)))}downloadByteEncodedFloatMatrixFromOutputTexture(t,e,n){return this.downloadMatrixDriver(t,(()=>o.downloadByteEncodedFloatMatrixFromOutputTexture(this.gl,e,n,this.textureConfig)))}downloadPackedMatrixFromBuffer(t,e,n,a,s,i){return o.downloadPackedMatrixFromBuffer(this.gl,t,e,n,a,s,i,this.textureConfig)}downloadFloat32MatrixFromBuffer(t,size){return o.downloadFloat32MatrixFromBuffer(this.gl,t,size)}createBufferFromTexture(t,e,n){this.bindTextureToFrameBuffer(t);const a=o.createBufferFromOutputTexture(this.gl,e,n,this.textureConfig);return this.unbindTextureToFrameBuffer(),a}createAndWaitForFence(){const t=this.createFence(this.gl);return this.pollFence(t)}createFence(t){let e,n;if(Object(s._222)().getBool("WEBGL_FENCE_API_ENABLED")){const a=t,s=a.fenceSync(a.SYNC_GPU_COMMANDS_COMPLETE,0);t.flush(),n=()=>{const t=a.clientWaitSync(s,0,0);return t===a.ALREADY_SIGNALED||t===a.CONDITION_SATISFIED},e=s}else Object(s._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")>0?(e=this.beginQuery(),this.endQuery(),n=()=>this.isQueryAvailable(e,Object(s._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))):n=()=>true;return{query:e,isFencePassed:n}}downloadMatrixFromPackedTexture(t,e,n){return this.downloadMatrixDriver(t,(()=>o.downloadMatrixFromPackedOutputTexture(this.gl,e,n)))}createProgram(t){this.throwIfDisposed();const e=this.gl;null==this.vertexShader&&(this.vertexShader=o.createVertexShader(e));const n=u.createProgram(e);u.callAndCheck(e,(()=>e.attachShader(n,this.vertexShader))),u.callAndCheck(e,(()=>e.attachShader(n,t))),u.linkProgram(e,n);const a=Object.assign(n,{vao:this.createVertexArray()});return this.debug&&u.validateProgram(e,a),a}buildVao(t){this.setProgram(t),this.bindVertexArray(t.vao);const e=this.gl;u.callAndCheck(e,(()=>e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indexBuffer))),o.bindVertexProgramAttributeStreams(e,t,this.vertexBuffer)}deleteProgram(t){this.throwIfDisposed(),t===this.program&&(this.program=null),null!=t&&(u.callAndCheck(this.gl,(()=>this.gl.deleteProgram(t))),this.deleteVertexArray(t.vao))}setProgram(t){this.throwIfDisposed(),this.program=t,null!=this.program&&this.debug&&u.validateProgram(this.gl,this.program),u.callAndCheck(this.gl,(()=>this.gl.useProgram(t)))}getUniformLocation(t,e,n=true){return this.throwIfDisposed(),n?u.getProgramUniformLocationOrThrow(this.gl,t,e):u.getProgramUniformLocation(this.gl,t,e)}getAttributeLocation(t,e){return this.throwIfDisposed(),u.callAndCheck(this.gl,(()=>this.gl.getAttribLocation(t,e)))}getUniformLocationNoThrow(t,e){return this.throwIfDisposed(),this.gl.getUniformLocation(t,e)}setInputMatrixTexture(t,e,n){this.throwIfDisposed(),this.throwIfNoProgram(),u.bindTextureToProgramUniformSampler(this.gl,t,e,n)}setOutputMatrixTexture(t,e,n){this.setOutputMatrixTextureDriver(t,n,e)}setOutputPackedMatrixTexture(t,e,n){this.throwIfDisposed();const[a,s]=c.e(e,n);this.setOutputMatrixTextureDriver(t,a,s)}setOutputMatrixWriteRegion(t,e,n,a){this.setOutputMatrixWriteRegionDriver(n,t,a,e)}setOutputPackedMatrixWriteRegion(t,e,n,a){throw new Error("setOutputPackedMatrixWriteRegion not implemented.")}debugValidate(){null!=this.program&&u.validateProgram(this.gl,this.program),u.validateFramebuffer(this.gl)}executeProgram(){this.throwIfDisposed(),this.throwIfNoProgram();const t=this.gl;if(this.debug){const t=this.getVertexArray();console.assert(t===this.program.vao,"VAO changed between setProgram and executeProgram!"),this.debugValidate()}u.callAndCheck(t,(()=>t.drawElements(t.TRIANGLES,6,t.UNSIGNED_SHORT,0)))}blockUntilAllProgramsCompleted(){this.throwIfDisposed(),u.callAndCheck(this.gl,(()=>this.gl.finish()))}getQueryTimerExtension(){return null==this.disjointQueryTimerExtension&&(this.disjointQueryTimerExtension=u.getExtensionOrThrow(this.gl,2===Object(s._222)().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(s._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")){const t=this.gl,e=this.getQueryTimerExtensionWebGL2(),n=t.createQuery();return t.beginQuery(e.TIME_ELAPSED_EXT,n),n}const t=this.getQueryTimerExtensionWebGL1(),e=t.createQueryEXT();return t.beginQueryEXT(t.TIME_ELAPSED_EXT,e),e}endQuery(){if(2===Object(s._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")){const t=this.gl,e=this.getQueryTimerExtensionWebGL2();return t.endQuery(e.TIME_ELAPSED_EXT),void 0}const t=this.getQueryTimerExtensionWebGL1();t.endQueryEXT(t.TIME_ELAPSED_EXT)}async waitForQueryAndGetTime(t){return await s._408.repeatedTry((()=>this.disposed||this.isQueryAvailable(t,Object(s._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")))),this.getQueryTime(t,Object(s._222)().getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION"))}getQueryTime(t,e){if(0===e)return null;if(2===e){const e=this.gl,n=undefined;return e.getQueryParameter(t,e.QUERY_RESULT)/1e6}{const e=this.getQueryTimerExtensionWebGL1(),n=undefined;return e.getQueryObjectEXT(t,e.QUERY_RESULT_EXT)/1e6}}isQueryAvailable(t,e){if(0===e)return true;if(2===e){const e=this.gl,n=this.getQueryTimerExtensionWebGL2(),a=e.getQueryParameter(t,e.QUERY_RESULT_AVAILABLE);return null==this.disjoint&&(this.disjoint=this.gl.getParameter(n.GPU_DISJOINT_EXT)),a&&!this.disjoint}{const e=this.getQueryTimerExtensionWebGL1(),n=e.getQueryObjectEXT(t,e.QUERY_RESULT_AVAILABLE_EXT);return null==this.disjoint&&(this.disjoint=this.gl.getParameter(e.GPU_DISJOINT_EXT)),n&&!this.disjoint}}pollFence(t){return new Promise((e=>{this.addItemToPoll((()=>t.isFencePassed()),(()=>e()))}))}pollItems(){const index=a(this.itemsToPoll.map((t=>t.isDoneFn)));for(let t=0;t<=index;++t){const{resolveFn:e}=this.itemsToPoll[t];e()}this.itemsToPoll=this.itemsToPoll.slice(index+1)}addItemToPoll(t,e){if(this.itemsToPoll.push({isDoneFn:t,resolveFn:e}),this.itemsToPoll.length>1)return;let n;"setTimeoutCustom"in Object(s._222)().platform&&(n=Object(s._222)().platform.setTimeoutCustom.bind(Object(s._222)().platform)),s._408.repeatedTry((()=>(this.pollItems(),0===this.itemsToPoll.length)),(()=>0),null,n)}bindTextureToFrameBuffer(t){this.throwIfDisposed(),u.bindColorTextureToFramebuffer(this.gl,t,this.framebuffer),this.debug&&u.validateFramebuffer(this.gl)}unbindTextureToFrameBuffer(){null!=this.outputTexture?(u.bindColorTextureToFramebuffer(this.gl,this.outputTexture,this.framebuffer),this.debug&&u.validateFramebuffer(this.gl)):u.unbindColorTextureFromFramebuffer(this.gl,this.framebuffer)}downloadMatrixDriver(t,e){this.bindTextureToFrameBuffer(t);const n=e();return this.unbindTextureToFrameBuffer(),n}setOutputMatrixTextureDriver(t,e,n){this.throwIfDisposed();const a=this.gl;u.bindColorTextureToFramebuffer(a,t,this.framebuffer),this.debug&&u.validateFramebuffer(a),this.outputTexture=t,u.callAndCheck(a,(()=>a.viewport(0,0,e,n))),u.callAndCheck(a,(()=>a.scissor(0,0,e,n)))}setOutputMatrixWriteRegionDriver(t,e,n,a){this.throwIfDisposed(),u.callAndCheck(this.gl,(()=>this.gl.scissor(t,e,n,a)))}throwIfDisposed(){if(this.disposed)throw new Error("Attempted to use disposed GPGPUContext.")}throwIfNoProgram(){if(null==this.program)throw new Error("No GPU program is currently set.")}}e.a=l},function(t,e,n){"use strict";function a(shape,t){const e=undefined;return`\n ivec3 inputCoordsFromReshapedOutCoords(int index) {\n ${t?i.e(["r","c","d"],"inputShape"):i.d(["r","c","d"],shape)}\n return ivec3(r, c, d);\n }\n `}var s=n(38),i=n(76);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class o{constructor(t,e){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true,this.customUniforms=[{name:"inputShape",type:"ivec3"}],this.outputShape=t,this.enableShapeUniforms=Object(s.e)(this.outputShape.length);let n="";for(let t=0;t<4;t++){let e="thisRC = rc;";t%2==1&&(e+="thisRC.z += 1;"),t>1&&(e+="thisRC.y += 1;"),n+=`\n ${e}\n ${t>0?"if(thisRC.y < rows && thisRC.z < cols){":""}\n int flatIndex = getFlatIndex(thisRC);\n\n ivec3 inputRC = inputCoordsFromReshapedOutCoords(flatIndex);\n vec2 inputRCInnerDims = vec2(float(inputRC.y),float(inputRC.z));\n\n result[${t}] =\n getChannel(getA(inputRC.x, inputRC.y, inputRC.z), inputRCInnerDims);\n ${t>0?"}":""}\n `}this.userCode=`\n ${a(e,this.enableShapeUniforms)}\n ${this.enableShapeUniforms?i.c():i.b(t)}\n\n void main() {\n ivec3 rc = getOutputCoords();\n\n vec4 result = vec4(0.);\n\n ivec3 thisRC;\n int rows = ${this.enableShapeUniforms?"outShape[1]":t[1]};\n int cols = ${this.enableShapeUniforms?"outShape[2]":t[2]};\n\n ${n}\n\n setOutput(result);\n }\n `}}e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(){Object(s._222)().set("WEBGL_FORCE_F16_TEXTURES",true)}e.c=a;var s=n(0),i=n(226),o=n(43),c=n(370);n.d(e,"b",(function(){return c.a}));var u=n(167);n.d(e,"e",(function(){return u.b}));var l=n(371);n.d(e,"a",(function(){return l.a})),n.d(e,"d",(function(){return i})),n.d(e,"f",(function(){return o}))},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:l}=e,{alpha:h}=a,p=n.makeTensorInfo([],"float32",s._408.createScalarValue(h,"float32")),f=Object(s._222)().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new o.a(u,l.shape,p.shape):new i.a(c,l.shape,p.shape),b=n.runWebGLProgram(f,[l,p],"float32");return n.disposeIntermediateTensorInfo(p),b}var s=n(0),i=n(66),o=n(46);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c="return (a < 0.) ? b * a : a;";e.a=c;const u="\n vec4 aLessThanZero = vec4(lessThan(a, vec4(0.)));\n return (aLessThanZero * (b * a)) + ((vec4(1.0) - aLessThanZero) * a);\n";e.b=u;const l={kernelName:s._36,backendName:"webgl",kernelFunc:a};e.c=l},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n}=t,{x:a,alpha:l}=e,h=Object(s._222)().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new o.a(u,a.shape,l.shape):new i.a(c,a.shape,l.shape);return n.runWebGLProgram(h,[a,l],"float32")}var s=n(0),i=n(66),o=n(46);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c="return (a < 0.) ? b * a : a;";e.a=c;const u="\n vec4 aLessThanZero = vec4(lessThan(a, vec4(0.)));\n return (aLessThanZero * (b * a)) + ((vec4(1.0) - aLessThanZero) * a);\n";e.b=u;const l={kernelName:s._78,backendName:"webgl",kernelFunc:a};e.c=l},function(t,e,n){"use strict";var a=n(38);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e,n,s=false,i=false,o=false,c=null,u=false,l=false){this.variableNames=["matrixA","matrixB"],this.packedInputs=true,this.packedOutput=true,this.outputShape=n,this.enableShapeUniforms=Object(a.e)(this.outputShape.length);const h=s?t[1]:t[2],p=Math.ceil(h/2),f=s?"i * 2, rc.y":"rc.y, i * 2",b=i?"rc.z, i * 2":"i * 2, rc.z",m=s?["a.xxyy","a.zzww"]:["a.xxzz","a.yyww"],g=i?["b.xzxz","b.ywyw"]:["b.xyxy","b.zwzw"];let v="",w="";c&&(v=u?`vec4 activation(vec4 a) {\n vec4 b = getPreluActivationWeightsAtOutCoords();\n ${c}\n }`:l?`vec4 activation(vec4 a) {\n vec4 b = getLeakyreluAlphaAtOutCoords();\n ${c}\n }`:`vec4 activation(vec4 x) {\n ${c}\n }`,w="result = activation(result);");const y=o?"result += getBiasAtOutCoords();":"";o&&this.variableNames.push("bias"),u&&this.variableNames.push("preluActivationWeights"),l&&this.variableNames.push("leakyreluAlpha");let O="rc.x",x="rc.x";t[0]<e[0]?O=`imod(rc.x, ${t[0]})`:e[0]<t[0]&&(x=`imod(rc.x, ${e[0]})`),this.userCode=`\n ${v}\n // Don't use uniform for sharedDimensionPacked for performance.\n const float sharedDimension = ${p}.0;\n\n vec4 dot2x2ARowBCol(ivec3 rc) {\n vec4 result = vec4(0);\n int batchA = ${O};\n int batchB = ${x};\n for (int i = 0; i < ${p}; i++) {\n vec4 a = getMatrixA(batchA, ${f});\n vec4 b = getMatrixB(batchB, ${b});\n\n // These swizzled products need to be separately added.\n // See: https://github.com/tensorflow/tfjs/issues/1735\n result += (${m[0]} * ${g[0]});\n result += (${m[1]} * ${g[1]});\n }\n return result;\n }\n\n void main() {\n ivec3 rc = getOutputCoords();\n vec4 result = dot2x2ARowBCol(rc);\n\n ${y}\n\n ${w}\n\n setOutput(result);\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s={REAL:"return areal * breal - aimag * bimag;",IMAG:"return areal * bimag + aimag * breal;"};e.b=s;class i{constructor(t,e,n){this.variableNames=["AReal","AImag","BReal","BImag"],this.outputShape=a._164.assertAndGetBroadcastShape(e,n),this.userCode=`\n float binaryOpComplex(\n float areal, float aimag, float breal, float bimag) {\n ${t}\n }\n\n void main() {\n float areal = getARealAtOutCoords();\n float aimag = getAImagAtOutCoords();\n float breal = getBRealAtOutCoords();\n float bimag = getBImagAtOutCoords();\n setOutput(binaryOpComplex(areal, aimag, breal, bimag));\n }\n `}}e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,s=null){let i=e.shape[0],u=e.shape[1];null!=s&&(i=s.shape[0],u=s.shape[1]);const l=o._164.computeOptimalWindowSize(u),h={windowSize:l,inSize:u,batchSize:i,outSize:Math.ceil(u/l)},p=new c.a(h,n,null==s),f=[e];null!=s&&f.push(s);const b=t.runWebGLProgram(p,f,"int32");if(1===b.shape[1])return b;const m=a(t,e,n,b);return t.disposeIntermediateTensorInfo(b),m}function s(t,e,n,a=null){const i=null!=a?a.shape:e.shape,c=i[i.length-1],l=o._164.computeOptimalWindowSize(c),h=new u.a(i,l,n,null==a),p=null==a?[e]:[e,a],f=t.runWebGLProgram(h,p,"int32");if(f.shape.length===e.shape.length){const a=s(t,e,n,f);return t.disposeIntermediateTensorInfo(f),a}return f}function i(t,e,n,i){const c=[n];if(o._164.assertAxesAreInnerMostDims("arg"+i.charAt(0).toUpperCase()+i.slice(1),c,e.shape.length),!Object(o._222)().getBool("WEBGL_PACK_REDUCE")||e.shape.length<=2){const n=[],s=t.texData.get(e.dataId),u=undefined;let h=e;null!==s&&s.isPacked&&(h=t.unpackTensor(e),n.push(h));const[p,f]=o._164.computeOutAndReduceShapes(h.shape,c),b=o._408.sizeFromShape(f),m=Object(l.a)({inputs:{x:h},backend:t,attrs:{shape:[-1,b]}});n.push(m);const g=a(t,m,i);n.push(g);const v=Object(l.a)({inputs:{x:g},backend:t,attrs:{shape:p}});return n.forEach((e=>t.disposeIntermediateTensorInfo(e))),v}return s(t,e,i)}e.a=i;var o=n(0),c=n(1075),u=n(1076),l=n(17)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t){this.variableNames=["dy"],this.outputShape=t.inShape;const e=t.filterHeight,n=t.filterWidth,a=t.strideHeight,s=t.strideWidth,i=t.dilationHeight,o=t.dilationWidth,c=t.effectiveFilterHeight,u=t.effectiveFilterWidth,l=c-1-t.padInfo.top,h=u-1-t.padInfo.left,p=1/(e*n);this.userCode=`\n const ivec2 pads = ivec2(${l}, ${h});\n const float avgMultiplier = float(${p});\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n\n ivec2 dyRCCorner = coords.yz - pads;\n int dyRCorner = dyRCCorner.x;\n int dyCCorner = dyRCCorner.y;\n\n // Convolve dy(?, ?, d) with pos mask(:, :, d) to get dx(xR, xC, d).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < ${c};\n wR += ${i}) {\n float dyR = float(dyRCorner + wR) / ${a}.0;\n\n if (dyR < 0.0 || dyR >= ${t.outHeight}.0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < ${u};\n wC+= ${o}) {\n float dyC = float(dyCCorner + wC) / ${s}.0;\n\n if (dyC < 0.0 || dyC >= ${t.outWidth}.0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(b, idyR, idyC, d);\n\n dotProd += dyValue * avgMultiplier;\n }\n }\n setOutput(dotProd);\n }\n `}}e.a=a;class s{constructor(t){this.variableNames=["dy"],this.outputShape=t.inShape;const e=t.filterDepth,n=t.filterHeight,a=t.filterWidth,s=t.strideDepth,i=t.strideHeight,o=t.strideWidth,c=t.dilationDepth,u=t.dilationHeight,l=t.dilationWidth,h=t.effectiveFilterDepth,p=t.effectiveFilterHeight,f=t.effectiveFilterWidth,b=h-1-t.padInfo.front,m=p-1-t.padInfo.top,g=f-1-t.padInfo.left,v=1/(e*n*a);this.userCode=`\n const ivec3 pads = ivec3(${b}, ${m}, ${g});\n const float avgMultiplier = float(${v});\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyDCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n // Convolve dy(?, ?, ?, d) with pos mask(:, :, :, ch) to get\n // dx(xD, xR, xC, ch).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int wD = 0; wD < ${h};\n wD += ${c}) {\n float dyD = float(dyDCorner + wD) / ${s}.0;\n\n if (dyD < 0.0 || dyD >= ${t.outDepth}.0 || fract(dyD) > 0.0) {\n continue;\n }\n int idyD = int(dyD);\n\n for (int wR = 0; wR < ${p};\n wR += ${u}) {\n float dyR = float(dyRCorner + wR) / ${i}.0;\n\n if (dyR < 0.0 || dyR >= ${t.outHeight}.0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < ${f};\n wC += ${l}) {\n float dyC = float(dyCCorner + wC) / ${o}.0;\n\n if (dyC < 0.0 || dyC >= ${t.outWidth}.0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(batch, idyD, idyR, idyC, ch);\n\n dotProd += dyValue * avgMultiplier;\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.b=s},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return float(a != b);",c=Object(s.b)({opSnippet:o,cpuKernelImpl:i.y,dtype:"bool"});e.a=c;const u={kernelName:a._68,backendName:"webgl",kernelFunc:c};e.b=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{axis:c}=a,u=s._408.parseAxisParam(c,e[0].shape)[0],l=e.map((t=>t.shape));s._164.assertParamsConsistent(l,u);const h=s._164.computeOutShape(e.map((t=>t.shape)),u);if(0===s._408.sizeFromShape(h))return n.makeTensorInfo(h,e[0].dtype,[]);const p=e.filter((t=>s._408.sizeFromShape(t.shape)>0));return 1===p.length?Object(o.a)({inputs:{x:p[0]},backend:n}):Object(i.a)(p,u,n)}e.a=a;var s=n(0),i=n(1105),o=n(50);const c={kernelName:s.H,backendName:"webgl",kernelFunc:a};e.b=c},function(t,e,n){"use strict";var a=n(0),s=n(38);
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,e=false,n=null,i=false,o=false){this.variableNames=["x","W"],this.packedInputs=true,this.packedOutput=true,this.customUniforms=[{name:"pads",type:"ivec2"},{name:"strides",type:"ivec2"},{name:"dilations",type:"ivec2"},{name:"inDims",type:"ivec2"}],this.outputShape=t.outShape,this.enableShapeUniforms=Object(s.e)(this.outputShape.length);const c=t.padInfo.left,u=t.strideWidth,l=t.dilationWidth,h=t.filterHeight,p=t.filterWidth,f=p;let b="\n int xR; int xC; int xCOffset;\n vec4 wTexel; vec4 previous; vec4 final;";for(let t=0;t<p;t++)b+=`\n vec4 xTexelC${2*t};\n int xTexelC${2*t}Ready;\n vec4 xTexelC${2*t+1};\n int xTexelC${2*t+1}Ready;\n vec4 xC${t};`;b+=`\n for (int r = 0; r < ${h}; r++) {\n for (int d1 = 0; d1 < ${t.inChannels}; d1 += 2) {\n `;for(let t=0;t<p;t++)b+=`\n xTexelC${2*t} = vec4(0.0);\n xTexelC${2*t}Ready = 0;\n xTexelC${2*t+1} = vec4(0.0);\n xTexelC${2*t+1}Ready = 0;\n xC${t} = vec4(0.0);`;b+="\n xR = xRCorner + r * dilations[0];\n if (xR >=0 && xR < inDims[0]) {\n ";for(let e=0;e<(f+1)/2;e++){const n=2*e;if(b+=`\n xC = xCCorner + ${n*l};\n `,1===u){if(n<p&&(c%2==1?(b+=`\n xCOffset = xC + 1;\n if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n}Ready == 0) {\n xTexelC${n} = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${n}.zw = vec2(0.0);\n }\n xTexelC${n}Ready = 1;\n }\n `,b+=1===l&&n>0?`\n xC${n} = vec4(xTexelC${n-2}.zw, xTexelC${n}.xy);\n `:`\n xCOffset = xC + 1 - 2;\n\n if (xCOffset >= 0 && xCOffset < inDims[1]) {\n previous = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xCOffset + 1 >= inDims[1]) {\n previous.zw = vec2(0.0);\n }\n\n xC${n} = vec4(previous.zw, xTexelC${n}.xy);\n } else {\n xC${n} = vec4(0.0, 0.0, xTexelC${n}.xy);\n }\n `):b+=`\n if (xC >= 0 && xC < inDims[1] && xTexelC${n}Ready == 0) {\n xTexelC${n} = getX(batch, xR, xC, d1);\n if (xC + 1 >= inDims[1]) {\n xTexelC${n}.zw = vec2(0.0);\n }\n xTexelC${n}Ready = 1;\n }\n\n xC${n} = xTexelC${n};\n `,n+1<p)){const t=c%2==0?a._408.nearestLargerEven(l):l;l%2==0&&c%2==1||l%2!=0&&c%2!=1?(b+=`\n xCOffset = xC + imod(pads[1], 2) + ${t};\n\n if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n+1}Ready == 0) {\n xTexelC${n+1} = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${n+1}.zw = vec2(0.0);\n }\n xTexelC${n+1}Ready = 1;\n }\n `,b+=l>1?`\n xCOffset -= 2;\n if (xCOffset >= 0 && xCOffset < inDims[1]) {\n previous = getX(batch, xR, xCOffset, d1);\n xC${n+1} = vec4(previous.zw, xTexelC${n+1}.xy);\n } else {\n xC${n+1} = vec4(0.0, 0.0, xTexelC${n+1}.xy);\n }\n `:`\n xC${n+1} = vec4(xTexelC${n}.zw, xTexelC${n+1}.xy);\n `):b+=1===t?`\n xC${n+1} = xTexelC${n};\n `:`\n xCOffset = xC + ${t};\n\n if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n+1}Ready == 0) {\n xTexelC${n+1} = getX(batch, xR, xCOffset, d1);\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${n+1}.zw = vec2(0.0);\n }\n xTexelC${n+1}Ready = 1;\n }\n\n xC${n+1} = xTexelC${n+1};\n `}}else n<p&&(c%2==1?(b+=`\n xCOffset = xC + 1 - strides[1];\n if(xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n}Ready == 0) {\n xTexelC${n} = getX(batch, xR, xCOffset, d1);\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${n}.zw = vec2(0.0);\n }\n xTexelC${n}Ready = 1;\n }\n\n if(xC + 1 >= 0 && xC + 1 < inDims[1] && xTexelC${n+1}Ready == 0) {\n xTexelC${n+1} = getX(batch, xR, xC + 1, d1);\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xC + 2 >= inDims[1]) {\n xTexelC${n+1}.zw = vec2(0.0);\n }\n xTexelC${n+1}Ready = 1;\n }\n\n xC${n} = vec4(xTexelC${n}.zw, xTexelC${n+1}.zw);\n `,n+1<p&&(b+=`\n final = vec4(0.0);\n xCOffset = xC + 1 + strides[1];\n if(xCOffset >= 0 && xCOffset < inDims[1]) {\n final = getX(batch, xR, xCOffset, d1);\n }\n xC${n+1} = vec4(xTexelC${n+1}.xy, final.xy);\n `)):(b+=`\n if(xC >= 0 && xC < inDims[1] && xTexelC${n}Ready == 0) {\n xTexelC${n} = getX(batch, xR, xC, d1);\n if (xC + 1 >= inDims[1]) {\n xTexelC${n}.zw = vec2(0.0);\n }\n xTexelC${n}Ready = 1;\n }\n\n xCOffset = xC + strides[1];\n if(xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${n+1}Ready == 0) {\n xTexelC${n+1} = getX(batch, xR, xCOffset, d1);\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${n+1}.zw = vec2(0.);\n }\n xTexelC${n+1}Ready = 1;\n }\n\n xC${n} = vec4(\n xTexelC${n}.xy, xTexelC${n+1}.xy);\n `,n+1<p&&(b+=`\n xC${n+1} = vec4(xTexelC${n}.zw, xTexelC${n+1}.zw);\n `)));n<p&&(b+=`\n wTexel = getW(r, ${n}, d1, d2);\n dotProd += xC${n}.xxzz * vec4(wTexel.xy, wTexel.xy);\n if(d1 + 1 < ${t.inChannels}) {\n dotProd += xC${n}.yyww * vec4(wTexel.zw, wTexel.zw);\n }\n `,n+1<p&&(b+=`\n wTexel = getW(r, ${n+1}, d1, d2);\n dotProd += xC${n+1}.xxzz * vec4(wTexel.xy, wTexel.xy);\n if(d1 + 1 < ${t.inChannels}) {\n dotProd += xC${n+1}.yyww * vec4(wTexel.zw, wTexel.zw);\n }\n `))}b+="\n }\n ",b+="\n }\n ",b+="\n }\n ";let m="",g="";n&&(m=i?`vec4 activation(vec4 a) {\n vec4 b = getPreluActivationWeightsAtOutCoords();\n ${n}\n }`:o?`vec4 activation(vec4 a) {\n vec4 b = getLeakyreluAlphaAtOutCoords();\n ${n}\n }`:`vec4 activation(vec4 x) {\n ${n}\n }`,g="result = activation(result);");const v=e?"result += getBiasAtOutCoords();":"";e&&this.variableNames.push("bias"),i&&this.variableNames.push("preluActivationWeights"),o&&this.variableNames.push("leakyreluAlpha"),this.userCode=`\n ${m}\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n ivec2 xRCCorner = coords.yz * strides - pads;\n int d2 = coords.w;\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n //intialize dotProd with a small epsilon seems to reduce GPU accuracy loss.\n vec4 dotProd = vec4(0.000000000000001);\n\n ${b}\n\n vec4 result = dotProd - vec4(0.000000000000001);\n ${v}\n ${g}\n setOutput(result);\n }\n `}}e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t){const length=shape.length;return length>=3?t?[...shape.slice(0,-3),shape[length-3]*shape[length-2],shape[length-1]]:[...shape.slice(0,-3),shape[length-3],shape[length-2]*shape[length-1]]:!t&&1===length&&shape[0]>1?[shape[0],1]:null}function s({x:t,filter:filter,convInfo:e,backend:n,bias:s=null,preluActivationWeights:i=null,leakyreluAlpha:c=0,activation:u=null}){const l=t.shape,m=n.texData.get(t.dataId),g=e.inChannels,v=l[0]*l[1]*l[2],w=e.outChannels,y="channelsLast"===e.dataFormat,O=false,x=false;let A;const I=[];if(null!=i){const t=a(i.shape,y);null!=t&&(i=Object(b.a)({inputs:{x:i},backend:n,attrs:{shape:t}}),I.push(i))}if(null!=s){const t=a(s.shape,y);null!=t&&(s=Object(b.a)({inputs:{x:s},backend:n,attrs:{shape:t}}),I.push(s))}const j=undefined,C=undefined;if(!((1===v||1===w)&&g>p.a)&&m.isPacked&&y&&null!=m.texture&&l[2]%2!=0&&o._408.arraysEqual(m.shape.slice(-3),l.slice(-3))){const a=l[0]*l[1]*(l[2]+1),g={dataId:t.dataId,shape:[1,a,e.inChannels],dtype:t.dtype},v=m.shape;m.shape=m.shape.slice(),m.shape[m.shape.length-2]++,o._408.assert(h.isReshapeFree(m.shape,g.shape),(()=>`packed reshape ${m.shape} to ${g.shape} isn't free`));const w=Object(b.a)({inputs:{x:filter},backend:n,attrs:{shape:[1,e.inChannels,e.outChannels]}});I.push(w);const y=Object(p.b)({a:g,b:w,backend:n,transposeA:O,transposeB:x,bias:s,activation:u,preluActivationWeights:i,leakyreluAlpha:c}),j=n.texData.get(y.dataId);o._408.assert(j.isPacked,(()=>"batchMatMul result is expected to be packed")),m.shape=v,j.shape=e.outShape,A=Object(f.a)({inputs:{x:y},backend:n}),A.shape=e.outShape,I.push(y)}else{const a=e.outHeight*e.outWidth,o=Object(b.a)({inputs:{x:t},backend:n,attrs:{shape:y?[e.batchSize,a,e.inChannels]:[e.batchSize,e.inChannels,a]}}),l=Object(b.a)({inputs:{x:filter},backend:n,attrs:{shape:[1,e.inChannels,e.outChannels]}}),h=Object(p.b)({a:y?o:l,b:y?l:o,transposeA:!y,transposeB:x,backend:n,bias:s,activation:u,preluActivationWeights:i,leakyreluAlpha:c});A=Object(b.a)({inputs:{x:h},backend:n,attrs:{shape:e.outShape}}),I.push(o),I.push(l),I.push(h)}for(const t of I)n.disposeIntermediateTensorInfo(t);return A}function i({x:t,filter:filter,convInfo:e,backend:n,bias:s=null,preluActivationWeights:i=null,leakyreluAlpha:h=0,activation:p=null}){const{filterWidth:f,filterHeight:m,inChannels:g,outWidth:v,outHeight:w,dataFormat:y}=e,O="channelsLast"===y,x=f*m*g,A=w*v,I=[e.batchSize,x,A],j=true,C=false,_=[];if(null!=i){const t=a(i.shape,O);null!=t&&(i=Object(b.a)({inputs:{x:i},backend:n,attrs:{shape:t}}),_.push(i))}if(null!=s){const t=a(s.shape,O);null!=t&&(s=Object(b.a)({inputs:{x:s},backend:n,attrs:{shape:t}}),_.push(s))}const k=Object(b.a)({inputs:{x:filter},backend:n,attrs:{shape:[1,x,o._408.sizeFromShape(filter.shape)/x]}});_.push(k);const S=new c.a(I,e),T=[t.shape,[e.padInfo.top,e.padInfo.left],[e.strideHeight,e.strideWidth],[e.dilationHeight,e.dilationWidth],[e.inChannels],[e.filterWidth*e.inChannels],[e.outWidth]],L=n.runWebGLProgram(S,[t],"float32",T),B=Object(b.a)({inputs:{x:L},backend:n,attrs:{shape:I}});_.push(L),_.push(B);const N=null!=s,E=null!=i,M="leakyrelu"===p,F=p?Object(u.c)(p,true):null,W=new l.a(O?B.shape:k.shape,O?k.shape:B.shape,O?[e.batchSize,A,e.outChannels]:[e.batchSize,e.outChannels,A],j,C,N,F,E,M),z=O?[B,k]:[k,B];if(s&&z.push(s),E&&z.push(i),M){const t=n.makeTensorInfo([],"float32",o._408.createScalarValue(h,"float32"));z.push(t),_.push(t)}const product=n.runWebGLProgram(W,z,"float32"),P=Object(b.a)({inputs:{x:product},backend:n,attrs:{shape:e.outShape}});_.push(product);for(const t of _)n.disposeIntermediateTensorInfo(t);return P}e.a=s,e.b=i;var o=n(0),c=n(1109),u=n(10),l=n(376),h=n(43),p=n(227),f=n(50),b=n(17)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,u,l){const h=e.shape.length,p=s._164.getAxesPermutation([a],h);let f=e;null!=p&&(f=Object(c.a)({inputs:{x:e},backend:n,attrs:{perm:p}}));const b=s._164.getInnerMostAxes(1,h)[0];if(b!==h-1)throw new Error(`WebGL cumprod shader expects an inner-most axis=${e.shape.length-1} but got axis=${a}`);const size=f.shape[b];let m=Object(o.a)({inputs:{x:f},backend:n});for(let e=0;e<=Math.ceil(Math.log2(size))-1;e++){const a=new i.b(t,f.shape,false,l),s=[[e]],o=m;m=n.runWebGLProgram(a,[m],m.dtype,s),n.disposeIntermediateTensorInfo(o)}if(u){const e=new i.b(t,f.shape,u,l),a=m;m=n.runWebGLProgram(e,[m],m.dtype),n.disposeIntermediateTensorInfo(a)}if(null!=p){const t=s._164.getUndoAxesPermutation(p),e=Object(c.a)({inputs:{x:m},backend:n,attrs:{perm:t}});return n.disposeIntermediateTensorInfo(m),n.disposeIntermediateTensorInfo(f),e}return m}e.a=a;var s=n(0),i=n(230),o=n(50),c=n(47)},function(t,e,n){"use strict";var a=n(38);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e=false,n=null,s=false,i=false){this.variableNames=["x","W"],this.customUniforms=[{name:"pads",type:"ivec2"},{name:"strides",type:"ivec2"},{name:"dilations",type:"ivec2"},{name:"inDims",type:"ivec2"}],this.outputShape=t.outShape,this.enableShapeUniforms=Object(a.e)(this.outputShape.length);const o=t.filterHeight,c=t.filterWidth,u=t.outChannels/t.inChannels;let l="",h="";n&&(l=s?`float activation(float a) {\n float b = getPreluActivationWeightsAtOutCoords();\n ${n}\n }`:i?`float activation(float a) {\n float b = getLeakyreluAlphaAtOutCoords();\n ${n}\n }`:`\n float activation(float x) {\n ${n}\n }\n `,h="result = activation(result);");const p=e?"result += getBiasAtOutCoords();":"";e&&this.variableNames.push("bias"),s&&this.variableNames.push("preluActivationWeights"),i&&this.variableNames.push("leakyreluAlpha"),this.userCode=`\n ${l}\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n ivec2 xRCCorner = coords.yz * strides - pads;\n int d2 = coords.w;\n int d1 = d2 / ${u};\n int q = d2 - d1 * ${u};\n\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n // Convolve x(?, ?, d1) with w(:, :, d1, q) to get y(yR, yC, d2).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n // TO DO(dsmilkov): Flatten the two for loops and vec4 the operations.\n for (int wR = 0; wR < ${o}; wR++) {\n int xR = xRCorner + wR * dilations[0];\n\n if (xR < 0 || xR >= inDims[0]) {\n continue;\n }\n\n for (int wC = 0; wC < ${c}; wC++) {\n int xC = xCCorner + wC * dilations[1];\n\n if (xC < 0 || xC >= inDims[1]) {\n continue;\n }\n\n float xVal = getX(batch, xR, xC, d1);\n float wVal = getW(wR, wC, d1, q);\n dotProd += xVal * wVal;\n }\n }\n\n float result = dotProd;\n ${p}\n ${h}\n setOutput(result);\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(0),s=n(38);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,e=false,n=null,i=false,o=false){this.variableNames=["x","W"],this.packedInputs=true,this.packedOutput=true,this.customUniforms=[{name:"pads",type:"ivec2"},{name:"strides",type:"ivec2"},{name:"dilations",type:"ivec2"},{name:"inDims",type:"ivec2"}],this.outputShape=t.outShape,this.enableShapeUniforms=Object(s.e)(this.outputShape.length);const c=t.outChannels/t.inChannels,u=t.padInfo.left,l=t.strideWidth,h=t.dilationWidth,p=t.filterHeight,f=t.filterWidth,b=f;let m="\n int xR; int xC; int xCOffset;\n vec4 wTexel; vec4 previous; vec4 final;";for(let t=0;t<f;t++)m+=`\n vec4 xTexelC${2*t};\n int xTexelC${2*t}Ready;\n vec4 xTexelC${2*t+1};\n int xTexelC${2*t+1}Ready;\n vec4 xC${t};`;m+=`\n for (int r = 0; r < ${p}; r++) {\n `;for(let t=0;t<f;t++)m+=`\n xTexelC${2*t} = vec4(0.0);\n xTexelC${2*t}Ready = 0;\n xTexelC${2*t+1} = vec4(0.0);\n xTexelC${2*t+1}Ready = 0;\n xC${t} = vec4(0.0);`;m+="\n xR = xRCorner + r * dilations[0];\n if (xR >=0 && xR < inDims[0]) {\n ";for(let t=0;t<(b+1)/2;t++){const e=2*t;if(m+=`\n xC = xCCorner + ${e*h};\n `,1===l){if(e<f&&(u%2==1?(m+=`\n xCOffset = xC + 1;\n if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${e}Ready == 0) {\n xTexelC${e} = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${e}.zw = vec2(0.0);\n }\n xTexelC${e}Ready = 1;\n }\n `,m+=1===h&&e>0?`\n xC${e} = vec4(xTexelC${e-2}.zw, xTexelC${e}.xy);\n `:`\n xCOffset = xC + 1 - 2;\n\n if (xCOffset >= 0 && xCOffset < inDims[1]) {\n previous = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xCOffset + 1 >= inDims[1]) {\n previous.zw = vec2(0.0);\n }\n\n xC${e} = vec4(previous.zw, xTexelC${e}.xy);\n } else {\n xC${e} = vec4(0.0, 0.0, xTexelC${e}.xy);\n }\n `):m+=`\n if (xC >= 0 && xC < inDims[1] && xTexelC${e}Ready == 0) {\n xTexelC${e} = getX(batch, xR, xC, d1);\n if (xC + 1 >= inDims[1]) {\n xTexelC${e}.zw = vec2(0.0);\n }\n xTexelC${e}Ready = 1;\n }\n\n xC${e} = xTexelC${e};\n `,e+1<f)){const t=u%2==0?a._408.nearestLargerEven(h):h;h%2==0&&u%2==1||h%2!=0&&u%2!=1?(m+=`\n xCOffset = xC + imod(pads[1], 2) + ${t};\n\n if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${e+1}Ready == 0) {\n xTexelC${e+1} = getX(batch, xR, xCOffset, d1);\n\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${e+1}.zw = vec2(0.0);\n }\n xTexelC${e+1}Ready = 1;\n }\n `,m+=h>1?`\n xCOffset -= 2;\n if (xCOffset >= 0 && xCOffset < inDims[1]) {\n previous = getX(batch, xR, xCOffset, d1);\n xC${e+1} = vec4(previous.zw, xTexelC${e+1}.xy);\n } else {\n xC${e+1} = vec4(0.0, 0.0, xTexelC${e+1}.xy);\n }\n `:`\n xC${e+1} = vec4(xTexelC${e}.zw, xTexelC${e+1}.xy);\n `):m+=1===t?`\n xC${e+1} = xTexelC${e};\n `:`\n xCOffset = xC + ${t};\n\n if (xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${e+1}Ready == 0) {\n xTexelC${e+1} = getX(batch, xR, xCOffset, d1);\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${e+1}.zw = vec2(0.0);\n }\n xTexelC${e+1}Ready = 1;\n }\n\n xC${e+1} = xTexelC${e+1};\n `}}else e<f&&(u%2==1?(m+=`\n xCOffset = xC + 1 - strides[1];\n if(xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${e}Ready == 0) {\n xTexelC${e} = getX(batch, xR, xCOffset, d1);\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${e}.zw = vec2(0.0);\n }\n xTexelC${e}Ready = 1;\n }\n\n if(xC + 1 >= 0 && xC + 1 < inDims[1] && xTexelC${e+1}Ready == 0) {\n xTexelC${e+1} = getX(batch, xR, xC + 1, d1);\n // Need to manually clear unused channels in case\n // we're reading from recycled texture.\n if (xC + 2 >= inDims[1]) {\n xTexelC${e+1}.zw = vec2(0.0);\n }\n xTexelC${e+1}Ready = 1;\n }\n\n xC${e} = vec4(xTexelC${e}.zw, xTexelC${e+1}.zw);\n `,e+1<f&&(m+=`\n final = vec4(0.0);\n xCOffset = xC + 1 + strides[1];\n if(xCOffset >= 0 && xCOffset < inDims[1]) {\n final = getX(batch, xR, xCOffset, d1);\n }\n xC${e+1} = vec4(xTexelC${e+1}.xy, final.xy);\n `)):(m+=`\n if(xC >= 0 && xC < inDims[1] && xTexelC${e}Ready == 0) {\n xTexelC${e} = getX(batch, xR, xC, d1);\n if (xC + 1 >= inDims[1]) {\n xTexelC${e}.zw = vec2(0.0);\n }\n xTexelC${e}Ready = 1;\n }\n\n xCOffset = xC + strides[1];\n if(xCOffset >= 0 && xCOffset < inDims[1] && xTexelC${e+1}Ready == 0) {\n xTexelC${e+1} = getX(batch, xR, xCOffset, d1);\n if (xCOffset + 1 >= inDims[1]) {\n xTexelC${e+1}.zw = vec2(0.);\n }\n xTexelC${e+1}Ready = 1;\n }\n\n xC${e} = vec4(\n xTexelC${e}.xy, xTexelC${e+1}.xy);\n `,e+1<f&&(m+=`\n xC${e+1} = vec4(xTexelC${e}.zw, xTexelC${e+1}.zw);\n `)));e<f&&(m+=`\n wTexel = getW(r, ${e}, d1, q);\n dotProd += xC${e} * vec4(wTexel.xz, wTexel.xz);\n `,e+1<f&&(m+=`\n wTexel = getW(r, ${e+1}, d1, q);\n dotProd += xC${e+1} * vec4(wTexel.xz, wTexel.xz);\n `))}m+="\n }\n ",m+="\n }\n ";let g="",v="";n&&(g=i?`vec4 activation(vec4 a) {\n vec4 b = getPreluActivationWeightsAtOutCoords();\n ${n}\n }`:o?`vec4 activation(vec4 a) {\n vec4 b = getLeakyreluAlphaAtOutCoords();\n ${n}\n }`:`vec4 activation(vec4 x) {\n ${n}\n }`,v="result = activation(result);");const w=e?"result += getBiasAtOutCoords();":"";e&&this.variableNames.push("bias"),i&&this.variableNames.push("preluActivationWeights"),o&&this.variableNames.push("leakyreluAlpha"),this.userCode=`\n ${g}\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n ivec2 xRCCorner = coords.yz * strides - pads;\n int d2 = coords.w;\n int d1 = d2 / ${c};\n int q = d2 - d1 * ${c};\n int xRCorner = xRCCorner.x;\n int xCCorner = xRCCorner.y;\n\n //intialize dotProd with a small epsilon seems to reduce GPU accuracy loss.\n vec4 dotProd = vec4(0.000000000000001);\n\n ${m}\n\n vec4 result = dotProd - vec4(0.000000000000001);\n ${w}\n ${v}\n setOutput(result);\n }\n `}}e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t){this.variableNames=["x","dy"],this.outputShape=t.filterShape;const e=t.strideHeight,n=t.strideWidth,a=t.padInfo.top,s=t.padInfo.left,i=t.outChannels/t.inChannels;this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int wR = coords.x;\n int wC = coords.y;\n int d1 = coords.z;\n int dm = coords.w;\n int d2 = d1 * ${i} + dm;\n\n float dotProd = 0.0;\n\n // TO DO: Vec4 over the batch size\n for (int b = 0; b < ${t.batchSize}; b++) {\n for (int yR = 0; yR < ${t.outHeight}; yR++) {\n int xR = wR + yR * ${e} - ${a};\n\n if (xR < 0 || xR >= ${t.inHeight}) {\n continue;\n }\n\n for (int yC = 0; yC < ${t.outWidth}; yC++) {\n int xC = wC + yC * ${n} - ${s};\n\n if (xC < 0 || xC >= ${t.inWidth}) {\n continue;\n }\n\n float dyValue = getDy(b, yR, yC, d2);\n float xValue = getX(b, xR, xC, d1);\n dotProd += (xValue * dyValue);\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.a=a;class s{constructor(t){this.variableNames=["dy","W"],this.outputShape=t.inShape;const e=t.filterHeight,n=t.filterWidth,a=t.strideHeight,s=t.strideWidth,i=e-1-t.padInfo.top,o=n-1-t.padInfo.left,c=t.outChannels/t.inChannels;this.userCode=`\n const ivec2 pads = ivec2(${i}, ${o});\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d1 = coords[3];\n ivec2 dyCorner = coords.yz - pads;\n int dyRCorner = dyCorner.x;\n int dyCCorner = dyCorner.y;\n\n float dotProd = 0.0;\n\n for (int wR = 0; wR < ${e}; wR++) {\n float dyR = float(dyRCorner + wR) / ${a}.0;\n\n if (dyR < 0.0 || dyR >= ${t.outHeight}.0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n int wRPerm = ${e} - 1 - wR;\n\n for (int wC = 0; wC < ${n}; wC++) {\n float dyC = float(dyCCorner + wC) / ${s}.0;\n\n if (dyC < 0.0 || dyC >= ${t.outWidth}.0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n int wCPerm = ${n} - 1 - wC;\n\n // TO DO: Vec4 over the channelMul\n for (int dm = 0; dm < ${c}; dm++) {\n int d2 = d1 * ${c} + dm;\n float xValue = getDy(batch, idyR, idyC, d2);\n float wValue = getW(wRPerm, wCPerm, d1, dm);\n dotProd += xValue * wValue;\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.b=s},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=s.a+"\n return exp(x);\n",c="\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",u=Object(s.d)({opSnippet:o,packedOpSnippet:c,cpuKernelImpl:i.i,dtype:"float32"});e.a=u;const l={kernelName:a._11,backendName:"webgl",kernelFunc:u};e.b=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,attrs:n,backend:a}=t,{dim:o}=n,{input:input}=e,c=input.shape.length,u=input.shape.slice();let l=o;return o<0&&(s._408.assert(-(c+1)<=o,(()=>`Axis must be in the interval [${-(c+1)}, ${c}]`)),l=c+o+1),u.splice(l,0,1),Object(i.a)({inputs:{x:input},backend:a,attrs:{shape:u}})}e.a=a;var s=n(0),i=n(17);const o={kernelName:s._12,backendName:"webgl",kernelFunc:a};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=n.texData.get(t.dataId),u=s._408.sizeFromShape(t.shape),l=t.shape[t.shape.length-1],h=u/l,p=Object(c.a)({inputs:{x:t},backend:n,attrs:{shape:[h,l]}}),f=p.shape,b=new i.a("real",f,e),m=new i.a("imag",f,e),g=[{dataId:a.complexTensorInfos.real.dataId,dtype:a.complexTensorInfos.real.dtype,shape:f},{dataId:a.complexTensorInfos.imag.dataId,dtype:a.complexTensorInfos.imag.dtype,shape:f}],v=n.runWebGLProgram(b,g,"float32"),w=n.runWebGLProgram(m,g,"float32"),y=Object(o.a)({inputs:{real:v,imag:w},backend:n});n.disposeIntermediateTensorInfo(v),n.disposeIntermediateTensorInfo(w);const O=Object(c.a)({inputs:{x:y},backend:n,attrs:{shape:t.shape}});return n.disposeIntermediateTensorInfo(p),n.disposeIntermediateTensorInfo(y),O}e.a=a;var s=n(0),i=n(1139),o=n(77),c=n(17)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u,indices:l}=e,{axis:h,batchDims:p}=a,f=s._408.parseAxisParam(h,u.shape)[0];if(Object(s._222)().get("DEBUG")){const t=n.readSync(l.dataId),e=u.shape[f];for(let n=0;n<t.length;++n){const index=t[n];s._408.assert(index<=e-1&&index>=0,(()=>`GatherV2: the index value ${index} is not in [0, ${e-1}]`))}}const b=s._164.segment_util.collectGatherOpShapeInfo(u,l,f,p),m=s._408.sizeFromShape(l.shape),g=[],v=Object(c.a)({inputs:{x:u},backend:n,attrs:{shape:[b.batchSize,b.outerSize,b.dimSize,b.sliceSize]}}),w=Object(c.a)({inputs:{x:l},backend:n,attrs:{shape:[b.batchSize,m/b.batchSize]}});g.push(v),g.push(w);const y=[b.batchSize,b.outerSize,m/b.batchSize,b.sliceSize];if(n.shouldExecuteOnCPU([u,l])||"string"===u.dtype){const t=n.bufferSync(w),e=n.bufferSync(v),a=Object(o.m)(e,t,y);return g.forEach((t=>n.disposeIntermediateTensorInfo(t))),n.makeTensorInfo(b.outputShape,a.dtype,a.values)}const O=new i.a(v.shape,y),x=n.runWebGLProgram(O,[v,w],v.dtype);g.push(x);const A=Object(c.a)({inputs:{x:x},backend:n,attrs:{shape:b.outputShape}});return g.forEach((t=>n.disposeIntermediateTensorInfo(t))),A}e.a=a;var s=n(0),i=n(1152),o=n(12),c=n(17);const u={kernelName:s._24,backendName:"webgl",kernelFunc:a};e.b=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e,{reductionIndices:l,keepDims:h}=a,p=u.shape.length,f=s._408.parseAxisParam(l,u.shape);let b=f;const m=s._164.getAxesPermutation(b,p),g=null!=m,v=n.shouldExecuteOnCPU([u]);let w=u;if(g){if(v){const t=undefined,e=n.texData.get(w.dataId).values,a=new Array(p);for(let t=0;t<a.length;t++)a[t]=u.shape[m[t]];const s=Object(c.b)(e,u.shape,u.dtype,m,a);w=n.makeTensorInfo(a,u.dtype);const i=undefined;n.texData.get(w.dataId).values=s}else w=Object(c.a)(u,m,n);b=s._164.getInnerMostAxes(b.length,p)}s._164.assertAxesAreInnerMostDims("max",b,p);const[y,O]=s._164.computeOutAndReduceShapes(w.shape,b);let x=y,A;if(h&&(x=s._164.expandShapeToKeepDim(y,f)),v){const t=undefined,e=n.texData.get(w.dataId).values,a=Object(i.t)(e,s._408.sizeFromShape(O),x,u.dtype);A=n.makeTensorInfo(x,u.dtype);const o=undefined;n.texData.get(A.dataId).values=a}else A=Object(o.a)(w,O,x,n);return g&&n.disposeIntermediateTensorInfo(w),A}e.a=a;var s=n(0),i=n(12),o=n(1172),c=n(129);const u={kernelName:s._49,backendName:"webgl",kernelFunc:a};e.b=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t){this.variableNames=["dy","maxPos"],this.outputShape=t.inShape;const e=t.strideHeight,n=t.strideWidth,a=t.dilationHeight,s=t.effectiveFilterHeight,i=t.effectiveFilterWidth,o=s-1-t.padInfo.top,c=i-1-t.padInfo.left,u=s*i-1;this.userCode=`\n const ivec2 pads = ivec2(${o}, ${c});\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n\n ivec2 dyRCCorner = coords.yz - pads;\n int dyRCorner = dyRCCorner.x;\n int dyCCorner = dyRCCorner.y;\n\n // Convolve dy(?, ?, d) with pos mask(:, :, d) to get dx(xR, xC, d).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n for (int wR = 0; wR < ${s};\n wR += ${a}) {\n float dyR = float(dyRCorner + wR) / ${e}.0;\n\n if (dyR < 0.0 || dyR >= ${t.outHeight}.0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < ${i}; wC++) {\n float dyC = float(dyCCorner + wC) / ${n}.0;\n\n if (dyC < 0.0 || dyC >= ${t.outWidth}.0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(b, idyR, idyC, d);\n int maxPosValue = ${u} - int(getMaxPos(b, idyR, idyC, d));\n\n // Get the current value, check it against the value from the\n // position matrix.\n int curPosValue = wR * ${i} + wC;\n float mask = float(maxPosValue == curPosValue ? 1.0 : 0.0);\n\n dotProd += dyValue * mask;\n }\n }\n setOutput(dotProd);\n }\n `}}e.a=a;class s{constructor(t){this.variableNames=["dy","maxPos"],this.outputShape=t.inShape;const e=t.strideDepth,n=t.strideHeight,a=t.strideWidth,s=t.dilationDepth,i=t.dilationHeight,o=t.dilationWidth,c=t.effectiveFilterDepth,u=t.effectiveFilterHeight,l=t.effectiveFilterWidth,h=c-1-t.padInfo.front,p=u-1-t.padInfo.top,f=l-1-t.padInfo.left,b=c*u*l-1;this.userCode=`\n const ivec3 pads = ivec3(${h}, ${p}, ${f});\n\n void main() {\n ivec5 coords = getOutputCoords();\n int batch = coords.x;\n int ch = coords.u;\n\n ivec3 dyCorner = ivec3(coords.y, coords.z, coords.w) - pads;\n int dyDCorner = dyCorner.x;\n int dyRCorner = dyCorner.y;\n int dyCCorner = dyCorner.z;\n\n // Convolve dy(?, ?, ?, ch) with pos mask(:, :, :, d) to get\n // dx(xD, xR, xC, ch).\n // ? = to be determined. : = across all values in that axis.\n float dotProd = 0.0;\n\n for (int wD = 0; wD < ${c};\n wD += ${s}) {\n float dyD = float(dyDCorner + wD) / ${e}.0;\n\n if (dyD < 0.0 || dyD >= ${t.outDepth}.0 || fract(dyD) > 0.0) {\n continue;\n }\n int idyD = int(dyD);\n\n for (int wR = 0; wR < ${u};\n wR += ${i}) {\n float dyR = float(dyRCorner + wR) / ${n}.0;\n\n if (dyR < 0.0 || dyR >= ${t.outHeight}.0 ||\n fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n\n for (int wC = 0; wC < ${l};\n wC += ${o}) {\n float dyC = float(dyCCorner + wC) / ${a}.0;\n\n if (dyC < 0.0 || dyC >= ${t.outWidth}.0 ||\n fract(dyC) > 0.0) {\n continue;\n }\n int idyC = int(dyC);\n\n float dyValue = getDy(batch, idyD, idyR, idyC, ch);\n int maxPosValue = ${b} -\n int(getMaxPos(batch, idyD, idyR, idyC, ch));\n\n // Get the current value, check it against the value from the\n // position matrix.\n int curPosValue =\n wD * ${u} * ${l} +\n wR * ${l} + wC;\n float mask = float(maxPosValue == curPosValue ? 1.0 : 0.0);\n\n dotProd += dyValue * mask;\n }\n }\n }\n setOutput(dotProd);\n }\n `}}e.b=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{logits:p}=e,{dim:f}=a,b=s._408.parseAxisParam([f],p.shape),m=Object(o.a)({inputs:{x:p},backend:n,attrs:{reductionIndices:b,keepDims:false}}),g=s._164.expandShapeToKeepDim(m.shape,b),v=Object(u.a)({inputs:{x:m},backend:n,attrs:{shape:g}}),w=Object(l.a)({inputs:{a:p,b:v},backend:n}),y=Object(i.a)({inputs:{x:w},backend:n}),O=Object(h.a)({inputs:{x:y},backend:n,attrs:{axis:b,keepDims:false}}),x=Object(u.a)({inputs:{x:O},backend:n,attrs:{shape:g}}),A=Object(c.a)({inputs:{a:y,b:x},backend:n});return n.disposeIntermediateTensorInfo(m),n.disposeIntermediateTensorInfo(v),n.disposeIntermediateTensorInfo(w),n.disposeIntermediateTensorInfo(y),n.disposeIntermediateTensorInfo(O),n.disposeIntermediateTensorInfo(x),A}e.a=a;var s=n(0),i=n(388),o=n(392),c=n(395),u=n(17),l=n(396),h=n(168);const p={kernelName:s._111,backendName:"webgl",kernelFunc:a};e.b=p},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\nif (a == b) {\n return 1.0;\n};\nreturn a / b;",o="\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",c=Object(s.b)({opSnippet:i,packedOpSnippet:o,checkOutOfBounds:true});e.a=c;const u={kernelName:a._87,backendName:"webgl",kernelFunc:c};e.b=u},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return a - b;",c=Object(s.b)({opSnippet:o,packedOpSnippet:o,supportsComplex:true,cpuKernelImpl:i.S});e.a=c;const u={kernelName:a._129,backendName:"webgl",kernelFunc:c};e.b=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{x:s}=e;if("complex64"===s.dtype){const t=Object(u.a)({inputs:{input:s},backend:n}),r=a({inputs:{x:t},backend:n}),e=Object(c.a)({inputs:{input:s},backend:n}),o=a({inputs:{x:e},backend:n}),l=Object(i.a)({inputs:{real:r,imag:o},backend:n});return n.disposeIntermediateTensorInfo(t),n.disposeIntermediateTensorInfo(r),n.disposeIntermediateTensorInfo(e),n.disposeIntermediateTensorInfo(o),l}return Object(o.a)({attrs:{shape:s.shape,dtype:s.dtype,value:"string"===s.dtype?"":0},backend:n})}e.a=a;var s=n(0),i=n(77),o=n(131),c=n(169),u=n(130);const l={kernelName:s._145,backendName:"webgl",kernelFunc:a};e.b=l},function(t,e,n){"use strict";var a=n(0),s=n(1198),i=n(1199),o=n(131);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c=t=>{const{inputs:e,backend:n,attrs:c}=t,{x:u}=e,{paddings:paddings,constantValue:l}=c;if(0===a._408.sizeFromShape(u.shape)){const t=paddings.map(((t,e)=>t[0]+u.shape[e]+t[1]));return Object(o.a)({backend:n,attrs:{shape:t,value:l,dtype:u.dtype}})}const h=Object(a._222)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new i.a(u.shape,paddings,l):new s.a(u.shape,paddings,l),p=[[l]];return n.runWebGLProgram(h,[u],u.dtype,p)};e.a=c;const u={kernelName:a._75,backendName:"webgl",kernelFunc:c};e.b=u},function(t,e,n){"use strict";var a=n(0),s=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=t=>{const{backend:e,attrs:n}=t,{start:a,stop:i,step:o,dtype:c}=n,u=Object(s.D)(a,i,o,c);return e.makeTensorInfo([u.length],c,u)};e.a=i;const o={kernelName:a._84,backendName:"webgl",kernelFunc:i};e.b=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{reps:u}=a;if("string"===c.dtype||c.shape.length>5){const data=n.readSync(c.dataId),t="string"===c.dtype?data.map((d=>s._408.decodeString(d))):data,e=Object(s._178)(c.shape,c.dtype,t),a=Object(i.T)(e,u);return n.makeTensorInfo(a.shape,a.dtype,a.values)}const l=new o.a(c.shape,u),h=undefined;return n.runWebGLProgram(l,[c],c.dtype)}e.a=a;var s=n(0),i=n(12),o=n(1257);const c={kernelName:s._136,backendName:"webgl",kernelFunc:a};e.b=c},function(t,e,n){"use strict";const a=n(402),s=n(403),fetchFunc=n(1267);let model,categoryNames;a.expose(e),e.loadModel=async function(){await s.setBackend("cpu");try{model=await s.loadLayersModel("./model_js/model.json",{fetchFunc:fetchFunc});const t=await fetchFunc("./model_js/category_names.json");return categoryNames=await t.json(),"Model, and category names loaded."}catch(t){return console.error("Error loading resources:",t),"Error loading model, or category names."}},e.predict=async function(input){if(!model||!categoryNames)return console.error("Model, or category names not loaded!",model,categoryNames),"Model, or category names not loaded!";const t=9;if(!input||9!==input.length)return console.error("Input values are not correct!"),"Input values are not correct!";const e=s.tensor2d([input]),n=performance.now(),a=await model.predict(e).data(),i=undefined,o=performance.now()-n,c=50,u=Array.from(a).map(((t,e)=>[t,e])).sort(((t,e)=>e[0]-t[0])).slice(0,c).map((t=>t[1])),l=u.map((t=>a[t])),h=u.map((t=>categoryNames[t])),p=[];return h.forEach(((t,index)=>{p.push({name:t,probability:parseFloat(l[index].toFixed(5))})})),{time:Math.ceil(o),sections:p}}},function(t,e,n){"use strict";function a(t,e){for(const n of t){if(e===n||"*"===n)return true;if(n instanceof RegExp&&n.test(e))return true}return false}function s(t,e=self,n=["*"]){e.addEventListener("message",(function i(c){if(!c||!c.data)return;if(!a(n,c.origin))return console.warn(`Invalid origin '${c.origin}' for comlink proxy`),void 0;const{id:id,type:type,path:u}=Object.assign({path:[]},c.data),l=(c.data.argumentList||[]).map(O);let h;try{const e=u.slice(0,-1).reduce(((t,e)=>t[e]),t),n=u.reduce(((t,e)=>t[e]),t);switch(type){case"GET":h=n;break;case"SET":e[u.slice(-1)[0]]=O(c.data.value),h=true;break;case"APPLY":h=n.apply(e,l);break;case"CONSTRUCT":{const t=undefined;h=v(new n(...l))}break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;s(t,n),h=g(e,[e])}break;case"RELEASE":h=void 0;break;default:return}}catch(t){h={value:t,[k]:0}}Promise.resolve(h).catch((t=>({value:t,[k]:0}))).then((n=>{const[a,s]=y(n);e.postMessage(Object.assign(Object.assign({},a),{id:id}),s),"RELEASE"===type&&(e.removeEventListener("message",i),o(e),_ in t&&"function"==typeof t[_]&&t[_]())})).catch((t=>{const[n,a]=y({value:new TypeError("Unserializable return value"),[k]:0});e.postMessage(Object.assign(Object.assign({},n),{id:id}),a)}))})),e.start&&e.start()}function i(t){return"MessagePort"===t.constructor.name}function o(t){i(t)&&t.close()}function c(t,e){return f(t,[],e)}function u(t){if(t)throw new Error("Proxy has been released and is not useable")}function l(t){return x(t,{type:"RELEASE"}).then((()=>{o(t)}))}function h(t,e){const n=(N.get(e)||0)+1;N.set(e,n),E&&E.register(t,e,t)}function p(t){E&&E.unregister(t)}function f(t,e=[],n=function(){}){let a=false;const s=new Proxy(n,{get(n,i){if(u(a),i===C)return()=>{p(s),l(t),a=true};if("then"===i){if(0===e.length)return{then:()=>s};const r=x(t,{type:"GET",path:e.map((t=>t.toString()))}).then(O);return r.then.bind(r)}return f(t,[...e,i])},set(n,s,i){u(a);const[o,c]=y(i);return x(t,{type:"SET",path:[...e,s].map((t=>t.toString())),value:o},c).then(O)},apply(n,s,i){u(a);const o=e[e.length-1];if(o===j)return x(t,{type:"ENDPOINT"}).then(O);if("bind"===o)return f(t,e.slice(0,-1));const[c,l]=m(i);return x(t,{type:"APPLY",path:e.map((t=>t.toString())),argumentList:c},l).then(O)},construct(n,s){u(a);const[i,o]=m(s);return x(t,{type:"CONSTRUCT",path:e.map((t=>t.toString())),argumentList:i},o).then(O)}});return h(s,t),s}function b(t){return Array.prototype.concat.apply([],t)}function m(t){const e=t.map(y);return[e.map((t=>t[0])),b(e.map((t=>t[1])))]}function g(t,e){return M.set(t,e),t}function v(t){return Object.assign(t,{[I]:true})}function w(t,e=self,n="*"){return{postMessage:(e,a)=>t.postMessage(e,n,a),addEventListener:e.addEventListener.bind(e),removeEventListener:e.removeEventListener.bind(e)}}function y(t){for(const[e,n]of B)if(n.canHandle(t)){const[a,s]=n.serialize(t);return[{type:"HANDLER",name:e,value:a},s]}return[{type:"RAW",value:t},M.get(t)||[]]}function O(t){switch(t.type){case"HANDLER":return B.get(t.name).deserialize(t.value);case"RAW":return t.value}}function x(t,e,n){return new Promise((a=>{const id=A();t.addEventListener("message",(function e(n){n.data&&n.data.id&&n.data.id===id&&(t.removeEventListener("message",e),a(n.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:id},e),n)}))}function A(){return new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-")}Object.defineProperty(e,"__esModule",{value:true}),n.d(e,"createEndpoint",(function(){return j})),n.d(e,"expose",(function(){return s})),n.d(e,"finalizer",(function(){return _})),n.d(e,"proxy",(function(){return v})),n.d(e,"proxyMarker",(function(){return I})),n.d(e,"releaseProxy",(function(){return C})),n.d(e,"transfer",(function(){return g})),n.d(e,"transferHandlers",(function(){return B})),n.d(e,"windowEndpoint",(function(){return w})),n.d(e,"wrap",(function(){return c}));
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
const I=Symbol("Comlink.proxy"),j=Symbol("Comlink.endpoint"),C=Symbol("Comlink.releaseProxy"),_=Symbol("Comlink.finalizer"),k=Symbol("Comlink.thrown"),S=t=>"object"==typeof t&&null!==t||"function"==typeof t,T=undefined,L=undefined,B=new Map([["proxy",{canHandle:t=>S(t)&&t[I],serialize(t){const{port1:e,port2:n}=new MessageChannel;return s(t,e),[n,[n]]},deserialize:t=>(t.start(),c(t))}],["throw",{canHandle:t=>S(t)&&k in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:true,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:false,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]),N=new WeakMap,E="FinalizationRegistry"in self&&new FinalizationRegistry((t=>{const e=(N.get(t)||0)-1;N.set(t,e),0===e&&l(t)})),M=new WeakMap},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(0),s=n(292),i=n(683);n.d(e,"AdadeltaOptimizer",(function(){return a.d})),n.d(e,"AdagradOptimizer",(function(){return a.e})),n.d(e,"AdamOptimizer",(function(){return a.f})),n.d(e,"AdamaxOptimizer",(function(){return a.g})),n.d(e,"MomentumOptimizer",(function(){return a._61})),n.d(e,"Optimizer",(function(){return a._72})),n.d(e,"OptimizerConstructors",(function(){return a._73})),n.d(e,"RMSPropOptimizer",(function(){return a._80})),n.d(e,"SGDOptimizer",(function(){return a._101})),n.d(e,"Tensor",(function(){return a._133})),n.d(e,"TensorBuffer",(function(){return a._134})),n.d(e,"Variable",(function(){return a._144})),n.d(e,"Rank",(function(){return a._85})),n.d(e,"sumOutType",(function(){return a._381})),n.d(e,"upcastType",(function(){return a._406})),n.d(e,"Reduction",(function(){return a._89})),n.d(e,"customGrad",(function(){return a._200})),n.d(e,"grad",(function(){return a._244})),n.d(e,"grads",(function(){return a._245})),n.d(e,"valueAndGrad",(function(){return a._409})),n.d(e,"valueAndGrads",(function(){return a._410})),n.d(e,"variableGrads",(function(){return a._412})),n.d(e,"Environment",(function(){return a._8})),n.d(e,"env",(function(){return a._222})),n.d(e,"ENV",(function(){return a._4})),n.d(e,"version_core",(function(){return a._413})),n.d(e,"nextFrame",(function(){return a._296})),n.d(e,"browser",(function(){return a._177})),n.d(e,"io",(function(){return a._252})),n.d(e,"math",(function(){return a._277})),n.d(e,"serialization",(function(){return a._349})),n.d(e,"test_util",(function(){return a._393})),n.d(e,"util",(function(){return a._408})),n.d(e,"backend_util",(function(){return a._164})),n.d(e,"broadcast_util",(function(){return a._176})),n.d(e,"tensor_util",(function(){return a._392})),n.d(e,"slice_util",(function(){return a._363})),n.d(e,"gather_util",(function(){return a._239})),n.d(e,"scatter_util",(function(){return a._345})),n.d(e,"device_util",(function(){return a._205})),n.d(e,"kernel_impls",(function(){return a._258})),n.d(e,"KernelBackend",(function(){return a._33})),n.d(e,"DataStorage",(function(){return a.T})),n.d(e,"abs",(function(){return a._147})),n.d(e,"acos",(function(){return a._148})),n.d(e,"acosh",(function(){return a._149})),n.d(e,"add",(function(){return a._150})),n.d(e,"addN",(function(){return a._151})),n.d(e,"all",(function(){return a._152})),n.d(e,"any",(function(){return a._153})),n.d(e,"argMax",(function(){return a._154})),n.d(e,"argMin",(function(){return a._155})),n.d(e,"asin",(function(){return a._156})),n.d(e,"asinh",(function(){return a._157})),n.d(e,"atan",(function(){return a._158})),n.d(e,"atan2",(function(){return a._159})),n.d(e,"atanh",(function(){return a._160})),n.d(e,"avgPool",(function(){return a._161})),n.d(e,"avgPool3d",(function(){return a._162})),n.d(e,"basicLSTMCell",(function(){return a._165})),n.d(e,"batchToSpaceND",(function(){return a._170})),n.d(e,"batchNorm",(function(){return a._166})),n.d(e,"batchNorm2d",(function(){return a._167})),n.d(e,"batchNorm3d",(function(){return a._168})),n.d(e,"batchNorm4d",(function(){return a._169})),n.d(e,"bincount",(function(){return a._171})),n.d(e,"bitwiseAnd",(function(){return a._172})),n.d(e,"broadcastArgs",(function(){return a._174})),n.d(e,"broadcastTo",(function(){return a._175})),n.d(e,"buffer",(function(){return a._178})),n.d(e,"cast",(function(){return a._179})),n.d(e,"ceil",(function(){return a._180})),n.d(e,"clipByValue",(function(){return a._181})),n.d(e,"clone",(function(){return a._182})),n.d(e,"complex",(function(){return a._183})),n.d(e,"concat",(function(){return a._184})),n.d(e,"concat1d",(function(){return a._185})),n.d(e,"concat2d",(function(){return a._186})),n.d(e,"concat3d",(function(){return a._187})),n.d(e,"concat4d",(function(){return a._188})),n.d(e,"conv1d",(function(){return a._189})),n.d(e,"conv2d",(function(){return a._190})),n.d(e,"conv2dTranspose",(function(){return a._191})),n.d(e,"conv3d",(function(){return a._192})),n.d(e,"conv3dTranspose",(function(){return a._193})),n.d(e,"cos",(function(){return a._195})),n.d(e,"cosh",(function(){return a._196})),n.d(e,"cumprod",(function(){return a._198})),n.d(e,"cumsum",(function(){return a._199})),n.d(e,"denseBincount",(function(){return a._201})),n.d(e,"depthToSpace",(function(){return a._203})),n.d(e,"depthwiseConv2d",(function(){return a._204})),n.d(e,"diag",(function(){return a._206})),n.d(e,"dilation2d",(function(){return a._207})),n.d(e,"div",(function(){return a._211})),n.d(e,"divNoNan",(function(){return a._212})),n.d(e,"dot",(function(){return a._213})),n.d(e,"einsum",(function(){return a._215})),n.d(e,"elu",(function(){return a._216})),n.d(e,"ensureShape",(function(){return a._221})),n.d(e,"equal",(function(){return a._223})),n.d(e,"erf",(function(){return a._224})),n.d(e,"euclideanNorm",(function(){return a._225})),n.d(e,"exp",(function(){return a._226})),n.d(e,"expandDims",(function(){return a._227})),n.d(e,"expm1",(function(){return a._228})),n.d(e,"eye",(function(){return a._229})),n.d(e,"fill",(function(){return a._231})),n.d(e,"floor",(function(){return a._234})),n.d(e,"floorDiv",(function(){return a._235})),n.d(e,"gather",(function(){return a._237})),n.d(e,"greater",(function(){return a._246})),n.d(e,"greaterEqual",(function(){return a._247})),n.d(e,"imag",(function(){return a._249})),n.d(e,"isFinite",(function(){return a._254})),n.d(e,"isInf",(function(){return a._255})),n.d(e,"isNaN",(function(){return a._256})),n.d(e,"leakyRelu",(function(){return a._259})),n.d(e,"less",(function(){return a._260})),n.d(e,"lessEqual",(function(){return a._261})),n.d(e,"linspace",(function(){return a._263})),n.d(e,"localResponseNormalization",(function(){return a._264})),n.d(e,"log",(function(){return a._265})),n.d(e,"log1p",(function(){return a._266})),n.d(e,"logSigmoid",(function(){return a._267})),n.d(e,"logSoftmax",(function(){return a._268})),n.d(e,"logSumExp",(function(){return a._269})),n.d(e,"logicalAnd",(function(){return a._270})),n.d(e,"logicalNot",(function(){return a._271})),n.d(e,"logicalOr",(function(){return a._272})),n.d(e,"logicalXor",(function(){return a._273})),n.d(e,"lowerBound",(function(){return a._275})),n.d(e,"matMul",(function(){return a._276})),n.d(e,"max",(function(){return a._278})),n.d(e,"maxPool",(function(){return a._279})),n.d(e,"maxPool3d",(function(){return a._280})),n.d(e,"maxPoolWithArgmax",(function(){return a._281})),n.d(e,"maximum",(function(){return a._282})),n.d(e,"mean",(function(){return a._283})),n.d(e,"meshgrid",(function(){return a._285})),n.d(e,"min",(function(){return a._286})),n.d(e,"minimum",(function(){return a._287})),n.d(e,"mirrorPad",(function(){return a._288})),n.d(e,"mod",(function(){return a._289})),n.d(e,"moments",(function(){return a._290})),n.d(e,"mul",(function(){return a._292})),n.d(e,"multiRNNCell",(function(){return a._293})),n.d(e,"multinomial",(function(){return a._294})),n.d(e,"neg",(function(){return a._295})),n.d(e,"notEqual",(function(){return a._298})),n.d(e,"oneHot",(function(){return a._299})),n.d(e,"ones",(function(){return a._300})),n.d(e,"onesLike",(function(){return a._301})),n.d(e,"outerProduct",(function(){return a._303})),n.d(e,"pad",(function(){return a._304})),n.d(e,"pad1d",(function(){return a._305})),n.d(e,"pad2d",(function(){return a._306})),n.d(e,"pad3d",(function(){return a._307})),n.d(e,"pad4d",(function(){return a._308})),n.d(e,"pool",(function(){return a._309})),n.d(e,"pow",(function(){return a._310})),n.d(e,"prelu",(function(){return a._311})),n.d(e,"print",(function(){return a._312})),n.d(e,"prod",(function(){return a._313})),n.d(e,"raggedGather",(function(){return a._315})),n.d(e,"raggedRange",(function(){return a._316})),n.d(e,"raggedTensorToTensor",(function(){return a._317})),n.d(e,"rand",(function(){return a._318})),n.d(e,"randomGamma",(function(){return a._319})),n.d(e,"randomNormal",(function(){return a._320})),n.d(e,"randomStandardNormal",(function(){return a._321})),n.d(e,"randomUniform",(function(){return a._322})),n.d(e,"randomUniformInt",(function(){return a._323})),n.d(e,"range",(function(){return a._324})),n.d(e,"real",(function(){return a._326})),n.d(e,"reciprocal",(function(){return a._327})),n.d(e,"relu",(function(){return a._331})),n.d(e,"relu6",(function(){return a._332})),n.d(e,"reshape",(function(){return a._334})),n.d(e,"reverse",(function(){return a._335})),n.d(e,"reverse1d",(function(){return a._336})),n.d(e,"reverse2d",(function(){return a._337})),n.d(e,"reverse3d",(function(){return a._338})),n.d(e,"reverse4d",(function(){return a._339})),n.d(e,"round",(function(){return a._341})),n.d(e,"rsqrt",(function(){return a._342})),n.d(e,"scalar",(function(){return a._343})),n.d(e,"selu",(function(){return a._347})),n.d(e,"separableConv2d",(function(){return a._348})),n.d(e,"setdiff1dAsync",(function(){return a._352})),n.d(e,"sigmoid",(function(){return a._353})),n.d(e,"sign",(function(){return a._354})),n.d(e,"sin",(function(){return a._356})),n.d(e,"sinh",(function(){return a._357})),n.d(e,"slice",(function(){return a._358})),n.d(e,"slice1d",(function(){return a._359})),n.d(e,"slice2d",(function(){return a._360})),n.d(e,"slice3d",(function(){return a._361})),n.d(e,"slice4d",(function(){return a._362})),n.d(e,"softmax",(function(){return a._364})),n.d(e,"softplus",(function(){return a._365})),n.d(e,"spaceToBatchND",(function(){return a._366})),n.d(e,"fft",(function(){return a._230})),n.d(e,"ifft",(function(){return a._248})),n.d(e,"irfft",(function(){return a._253})),n.d(e,"rfft",(function(){return a._340})),n.d(e,"split",(function(){return a._370})),n.d(e,"sqrt",(function(){return a._371})),n.d(e,"square",(function(){return a._372})),n.d(e,"squaredDifference",(function(){return a._373})),n.d(e,"squeeze",(function(){return a._374})),n.d(e,"stack",(function(){return a._375})),n.d(e,"step",(function(){return a._376})),n.d(e,"stridedSlice",(function(){return a._377})),n.d(e,"sub",(function(){return a._379})),n.d(e,"sum",(function(){return a._380})),n.d(e,"tan",(function(){return a._382})),n.d(e,"tanh",(function(){return a._383})),n.d(e,"tensor",(function(){return a._384})),n.d(e,"tensor1d",(function(){return a._385})),n.d(e,"tensor2d",(function(){return a._386})),n.d(e,"tensor3d",(function(){return a._387})),n.d(e,"tensor4d",(function(){return a._388})),n.d(e,"tensor5d",(function(){return a._389})),n.d(e,"tensor6d",(function(){return a._390})),n.d(e,"tensorScatterUpdate",(function(){return a._391})),n.d(e,"tile",(function(){return a._395})),n.d(e,"topk",(function(){return a._397})),n.d(e,"truncatedNormal",(function(){return a._400})),n.d(e,"unique",(function(){return a._401})),n.d(e,"unsortedSegmentSum",(function(){return a._404})),n.d(e,"unstack",(function(){return a._405})),n.d(e,"upperBound",(function(){return a._407})),n.d(e,"variable",(function(){return a._411})),n.d(e,"where",(function(){return a._414})),n.d(e,"whereAsync",(function(){return a._415})),n.d(e,"zeros",(function(){return a._416})),n.d(e,"zerosLike",(function(){return a._417})),n.d(e,"op",(function(){return a._302})),n.d(e,"OP_SCOPE_SUFFIX",(function(){return a._69})),n.d(e,"image",(function(){return a._250})),n.d(e,"linalg",(function(){return a._262})),n.d(e,"losses",(function(){return a._274})),n.d(e,"spectral",(function(){return a._369})),n.d(e,"fused",(function(){return a._236})),n.d(e,"signal",(function(){return a._355})),n.d(e,"sparse",(function(){return a._367})),n.d(e,"string",(function(){return a._378})),n.d(e,"train",(function(){return a._398})),n.d(e,"enableProdMode",(function(){return a._218})),n.d(e,"enableDebugMode",(function(){return a._217})),n.d(e,"disableDeprecationWarnings",(function(){return a._208})),n.d(e,"deprecationWarn",(function(){return a._202})),n.d(e,"disposeVariables",(function(){return a._210})),n.d(e,"engine",(function(){return a._220})),n.d(e,"memory",(function(){return a._284})),n.d(e,"profile",(function(){return a._314})),n.d(e,"tidy",(function(){return a._394})),n.d(e,"dispose",(function(){return a._209})),n.d(e,"keep",(function(){return a._257})),n.d(e,"time",(function(){return a._396})),n.d(e,"setBackend",(function(){return a._350})),n.d(e,"ready",(function(){return a._325})),n.d(e,"getBackend",(function(){return a._240})),n.d(e,"removeBackend",(function(){return a._333})),n.d(e,"findBackend",(function(){return a._232})),n.d(e,"findBackendFactory",(function(){return a._233})),n.d(e,"registerBackend",(function(){return a._328})),n.d(e,"backend",(function(){return a._163})),n.d(e,"setPlatform",(function(){return a._351})),n.d(e,"getKernel",(function(){return a._242})),n.d(e,"getGradient",(function(){return a._241})),n.d(e,"getKernelsForBackend",(function(){return a._243})),n.d(e,"registerKernel",(function(){return a._330})),n.d(e,"registerGradient",(function(){return a._329})),n.d(e,"unregisterKernel",(function(){return a._403})),n.d(e,"unregisterGradient",(function(){return a._402})),n.d(e,"copyRegisteredKernels",(function(){return a._194})),n.d(e,"Abs",(function(){return a.a})),n.d(e,"Acos",(function(){return a.b})),n.d(e,"Acosh",(function(){return a.c})),n.d(e,"Add",(function(){return a.h})),n.d(e,"AddN",(function(){return a.i})),n.d(e,"All",(function(){return a.j})),n.d(e,"Any",(function(){return a.k})),n.d(e,"ArgMax",(function(){return a.l})),n.d(e,"ArgMin",(function(){return a.m})),n.d(e,"Asin",(function(){return a.n})),n.d(e,"Asinh",(function(){return a.o})),n.d(e,"Atan",(function(){return a.p})),n.d(e,"Atanh",(function(){return a.r})),n.d(e,"Atan2",(function(){return a.q})),n.d(e,"AvgPool",(function(){return a.s})),n.d(e,"AvgPoolGrad",(function(){return a.v})),n.d(e,"AvgPool3D",(function(){return a.t})),n.d(e,"AvgPool3DGrad",(function(){return a.u})),n.d(e,"BatchMatMul",(function(){return a.w})),n.d(e,"BatchToSpaceND",(function(){return a.x})),n.d(e,"Bincount",(function(){return a.y})),n.d(e,"BitwiseAnd",(function(){return a.z})),n.d(e,"BroadcastTo",(function(){return a.B})),n.d(e,"BroadcastArgs",(function(){return a.A})),n.d(e,"Cast",(function(){return a.C})),n.d(e,"Ceil",(function(){return a.D})),n.d(e,"ClipByValue",(function(){return a.E})),n.d(e,"Complex",(function(){return a.F})),n.d(e,"ComplexAbs",(function(){return a.G})),n.d(e,"Concat",(function(){return a.H})),n.d(e,"Conv2D",(function(){return a.I})),n.d(e,"Conv2DBackpropFilter",(function(){return a.J})),n.d(e,"Conv2DBackpropInput",(function(){return a.K})),n.d(e,"Conv3D",(function(){return a.L})),n.d(e,"Conv3DBackpropFilterV2",(function(){return a.M})),n.d(e,"Conv3DBackpropInputV2",(function(){return a.N})),n.d(e,"Cos",(function(){return a.O})),n.d(e,"Cosh",(function(){return a.P})),n.d(e,"Cumprod",(function(){return a.R})),n.d(e,"Cumsum",(function(){return a.S})),n.d(e,"CropAndResize",(function(){return a.Q})),n.d(e,"DenseBincount",(function(){return a.U})),n.d(e,"DepthToSpace",(function(){return a.V})),n.d(e,"DepthwiseConv2dNative",(function(){return a.W})),n.d(e,"DepthwiseConv2dNativeBackpropFilter",(function(){return a.X})),n.d(e,"DepthwiseConv2dNativeBackpropInput",(function(){return a.Y})),n.d(e,"Diag",(function(){return a.Z})),n.d(e,"Dilation2D",(function(){return a._0})),n.d(e,"Dilation2DBackpropInput",(function(){return a._2})),n.d(e,"Dilation2DBackpropFilter",(function(){return a._1})),n.d(e,"Draw",(function(){return a._3})),n.d(e,"RealDiv",(function(){return a._87})),n.d(e,"Einsum",(function(){return a._5})),n.d(e,"Elu",(function(){return a._6})),n.d(e,"EluGrad",(function(){return a._7})),n.d(e,"Erf",(function(){return a._10})),n.d(e,"Equal",(function(){return a._9})),n.d(e,"Exp",(function(){return a._11})),n.d(e,"ExpandDims",(function(){return a._12})),n.d(e,"Expm1",(function(){return a._13})),n.d(e,"FFT",(function(){return a._14})),n.d(e,"Fill",(function(){return a._15})),n.d(e,"FlipLeftRight",(function(){return a._16})),n.d(e,"Floor",(function(){return a._17})),n.d(e,"FloorDiv",(function(){return a._18})),n.d(e,"FusedBatchNorm",(function(){return a._20})),n.d(e,"GatherV2",(function(){return a._24})),n.d(e,"GatherNd",(function(){return a._23})),n.d(e,"Greater",(function(){return a._25})),n.d(e,"GreaterEqual",(function(){return a._26})),n.d(e,"Identity",(function(){return a._28})),n.d(e,"IFFT",(function(){return a._27})),n.d(e,"Imag",(function(){return a._29})),n.d(e,"IsFinite",(function(){return a._30})),n.d(e,"IsInf",(function(){return a._31})),n.d(e,"IsNan",(function(){return a._32})),n.d(e,"LeakyRelu",(function(){return a._36})),n.d(e,"Less",(function(){return a._37})),n.d(e,"LessEqual",(function(){return a._38})),n.d(e,"LinSpace",(function(){return a._39})),n.d(e,"Log",(function(){return a._40})),n.d(e,"Log1p",(function(){return a._41})),n.d(e,"LogicalAnd",(function(){return a._43})),n.d(e,"LogicalNot",(function(){return a._44})),n.d(e,"LogicalOr",(function(){return a._45})),n.d(e,"LogicalXor",(function(){return a._46})),n.d(e,"LogSoftmax",(function(){return a._42})),n.d(e,"LowerBound",(function(){return a._47})),n.d(e,"LRN",(function(){return a._34})),n.d(e,"LRNGrad",(function(){return a._35})),n.d(e,"MatrixBandPart",(function(){return a._48})),n.d(e,"Max",(function(){return a._49})),n.d(e,"Maximum",(function(){return a._55})),n.d(e,"MaxPool",(function(){return a._50})),n.d(e,"MaxPoolGrad",(function(){return a._53})),n.d(e,"MaxPool3D",(function(){return a._51})),n.d(e,"MaxPool3DGrad",(function(){return a._52})),n.d(e,"MaxPoolWithArgmax",(function(){return a._54})),n.d(e,"Mean",(function(){return a._56})),n.d(e,"Min",(function(){return a._57})),n.d(e,"Minimum",(function(){return a._58})),n.d(e,"MirrorPad",(function(){return a._59})),n.d(e,"Mod",(function(){return a._60})),n.d(e,"Multinomial",(function(){return a._62})),n.d(e,"Multiply",(function(){return a._63})),n.d(e,"Neg",(function(){return a._64})),n.d(e,"NotEqual",(function(){return a._68})),n.d(e,"NonMaxSuppressionV3",(function(){return a._65})),n.d(e,"NonMaxSuppressionV4",(function(){return a._66})),n.d(e,"NonMaxSuppressionV5",(function(){return a._67})),n.d(e,"OnesLike",(function(){return a._71})),n.d(e,"OneHot",(function(){return a._70})),n.d(e,"Pack",(function(){return a._74})),n.d(e,"PadV2",(function(){return a._75})),n.d(e,"Pool",(function(){return a._76})),n.d(e,"Pow",(function(){return a._77})),n.d(e,"Prelu",(function(){return a._78})),n.d(e,"Prod",(function(){return a._79})),n.d(e,"RaggedGather",(function(){return a._81})),n.d(e,"RaggedRange",(function(){return a._82})),n.d(e,"RaggedTensorToTensor",(function(){return a._83})),n.d(e,"Range",(function(){return a._84})),n.d(e,"Real",(function(){return a._86})),n.d(e,"Reciprocal",(function(){return a._88})),n.d(e,"Relu",(function(){return a._90})),n.d(e,"Reshape",(function(){return a._92})),n.d(e,"ResizeNearestNeighbor",(function(){return a._95})),n.d(e,"ResizeNearestNeighborGrad",(function(){return a._96})),n.d(e,"ResizeBilinear",(function(){return a._93})),n.d(e,"ResizeBilinearGrad",(function(){return a._94})),n.d(e,"Relu6",(function(){return a._91})),n.d(e,"Reverse",(function(){return a._97})),n.d(e,"Round",(function(){return a._99})),n.d(e,"Rsqrt",(function(){return a._100})),n.d(e,"ScatterNd",(function(){return a._102})),n.d(e,"TensorScatterUpdate",(function(){return a._135})),n.d(e,"SearchSorted",(function(){return a._103})),n.d(e,"Select",(function(){return a._104})),n.d(e,"Selu",(function(){return a._105})),n.d(e,"Slice",(function(){return a._110})),n.d(e,"Sin",(function(){return a._108})),n.d(e,"Sinh",(function(){return a._109})),n.d(e,"Sign",(function(){return a._107})),n.d(e,"Sigmoid",(function(){return a._106})),n.d(e,"Softplus",(function(){return a._112})),n.d(e,"Sqrt",(function(){return a._120})),n.d(e,"Sum",(function(){return a._130})),n.d(e,"SpaceToBatchND",(function(){return a._113})),n.d(e,"SplitV",(function(){return a._119})),n.d(e,"Softmax",(function(){return a._111})),n.d(e,"SparseFillEmptyRows",(function(){return a._114})),n.d(e,"SparseReshape",(function(){return a._115})),n.d(e,"SparseSegmentMean",(function(){return a._116})),n.d(e,"SparseSegmentSum",(function(){return a._117})),n.d(e,"SparseToDense",(function(){return a._118})),n.d(e,"SquaredDifference",(function(){return a._122})),n.d(e,"Square",(function(){return a._121})),n.d(e,"StaticRegexReplace",(function(){return a._123})),n.d(e,"StridedSlice",(function(){return a._125})),n.d(e,"StringNGrams",(function(){return a._126})),n.d(e,"StringSplit",(function(){return a._127})),n.d(e,"StringToHashBucketFast",(function(){return a._128})),n.d(e,"Sub",(function(){return a._129})),n.d(e,"Tan",(function(){return a._131})),n.d(e,"Tanh",(function(){return a._132})),n.d(e,"Tile",(function(){return a._136})),n.d(e,"TopK",(function(){return a._137})),n.d(e,"Transform",(function(){return a._138})),n.d(e,"Transpose",(function(){return a._139})),n.d(e,"Unique",(function(){return a._140})),n.d(e,"Unpack",(function(){return a._141})),n.d(e,"UnsortedSegmentSum",(function(){return a._142})),n.d(e,"UpperBound",(function(){return a._143})),n.d(e,"ZerosLike",(function(){return a._145})),n.d(e,"Step",(function(){return a._124})),n.d(e,"FromPixels",(function(){return a._19})),n.d(e,"RotateWithOffset",(function(){return a._98})),n.d(e,"_FusedMatMul",(function(){return a._146})),n.d(e,"FusedConv2D",(function(){return a._21})),n.d(e,"FusedDepthwiseConv2D",(function(){return a._22})),n.d(e,"booleanMaskAsync",(function(){return a._173})),n.d(e,"transpose",(function(){return a._399})),n.d(e,"norm",(function(){return a._297})),n.d(e,"movingAverage",(function(){return a._291})),n.d(e,"scatterND",(function(){return a._344})),n.d(e,"searchSorted",(function(){return a._346})),n.d(e,"sparseToDense",(function(){return a._368})),n.d(e,"gatherND",(function(){return a._238})),n.d(e,"dropout",(function(){return a._214})),n.d(e,"enclosingPowerOfTwo",(function(){return a._219})),n.d(e,"cosineWindow",(function(){return a._197})),n.d(e,"inTopKAsync",(function(){return a._251}));var o=n(295);n.d(e,"CallbackList",(function(){return o.b})),n.d(e,"CustomCallback",(function(){return o.c})),n.d(e,"History",(function(){return o.e})),n.d(e,"Callback",(function(){return o.a})),n.d(e,"callbacks",(function(){return o.l})),n.d(e,"EarlyStopping",(function(){return o.d})),n.d(e,"InputSpec",(function(){return o.f})),n.d(e,"SymbolicTensor",(function(){return o.k})),n.d(e,"LayersModel",(function(){return o.h})),n.d(e,"input",(function(){return o.o})),n.d(e,"loadLayersModel",(function(){return o.q})),n.d(e,"model",(function(){return o.s})),n.d(e,"registerCallbackConstructor",(function(){return o.u})),n.d(e,"sequential",(function(){return o.w})),n.d(e,"RNN",(function(){return o.i})),n.d(e,"Sequential",(function(){return o.j})),n.d(e,"LayerVariable",(function(){return o.g})),n.d(e,"version_layers",(function(){return o.x})),n.d(e,"constraints",(function(){return o.m})),n.d(e,"initializers",(function(){return o.n})),n.d(e,"layers",(function(){return o.p})),n.d(e,"metrics",(function(){return o.r})),n.d(e,"models",(function(){return o.t})),n.d(e,"regularizers",(function(){return o.v}));var c=n(301);n.d(e,"GraphModel",(function(){return c.a})),n.d(e,"loadGraphModel",(function(){return c.c})),n.d(e,"loadGraphModelSync",(function(){return c.d})),n.d(e,"deregisterOp",(function(){return c.b})),n.d(e,"registerOp",(function(){return c.e})),n.d(e,"version_converter",(function(){return c.f}));var u=n(304);n.d(e,"data",(function(){return u}));var l=n(313);n.d(e,"MathBackendCPU",(function(){return l.a})),n.d(e,"version_cpu",(function(){return l.c})),n.d(e,"shared",(function(){return l.b}));var h=n(369);n.d(e,"version_webgl",(function(){return h.f})),n.d(e,"webgl",(function(){return h.g})),n.d(e,"MathBackendWebGL",(function(){return h.b})),n.d(e,"setWebGLContext",(function(){return h.e})),n.d(e,"GPGPUContext",(function(){return h.a})),n.d(e,"gpgpu_util",(function(){return h.d})),n.d(e,"webgl_util",(function(){return h.h})),n.d(e,"forceHalfFloat",(function(){return h.c}));var p=n(1266);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const f={"tfjs-core":a._413,"tfjs-backend-cpu":l.c,"tfjs-backend-webgl":h.f,"tfjs-data":u.version_data,"tfjs-layers":o.x,"tfjs-converter":c.f,tfjs:p.a};e.version=f},function(t,e,n){"use strict";var a=n(4),s=n(109),i=n(410),o=n(414),c=n(68),u=n(13),l=n(110),h=n(239),p=n(6);
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(a.b)();const f={buffer:c.a,cast:u.a,clone:l.a,print:h.a};Object(p.f)(f)},function(t,e,n){"use strict";function a(t,e,n){if("float32"!==e)return false;for(let e=0;e<t.length;e++){const a=t[e];if(isNaN(a)||!isFinite(a))return console.warn(`Found ${a} in the result of '${n}'`),true}return false}var s=n(39),i=n(5);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class o{constructor(t,logger){this.backendTimer=t,this.logger=logger,null==logger&&(this.logger=new Logger)}profileKernel(t,e,n){let o;const c=()=>{o=n()};let u;const l=i.now();if(this.backendTimer.timerAvailable())u=this.backendTimer.time(c);else{c();for(const t of o)t.dataSync();u=Promise.resolve({kernelMs:i.now()-l})}if(Object(s.c)().getBool("CHECK_COMPUTATION_FOR_ERRORS"))for(let e=0;e<o.length;e++){const n=o[e];n.data().then((e=>{a(e,n.dtype,t)}))}const h=undefined;return{kernelName:t,outputs:o,inputs:e,timeMs:u.then((t=>t.kernelMs)),extraInfo:u.then((t=>null!=t.getExtraProfileInfo?t.getExtraProfileInfo():""))}}logKernelProfile(t){const{kernelName:e,outputs:n,timeMs:a,inputs:s,extraInfo:i}=t;n.forEach((t=>{Promise.all([t.data(),a,i]).then((n=>{this.logger.logKernelProfile(e,t,n[0],n[1],s,n[2])}))}))}}e.a=o;class Logger{logKernelProfile(t,e,n,a,s,o){const c="number"==typeof a?i.rightPad(`${a}ms`,9):a.error,u=i.rightPad(t,25),l=e.rank,size=e.size,shape=i.rightPad(e.shape.toString(),14);let h="";for(const t in s){const input=s[t];if(null!=input){const n=input.shape||e.shape,a=n.length;h+=`${t}: ${a}D ${a>0?n:""} `}}console.log(`%c${u}\t%c${c}\t%c${l}D ${shape}\t%c${size}\t%c${h}\t%c${o}`,"font-weight:bold","color:red","color:blue","color: orange","color: green","color: steelblue")}}},function(t,e,n){"use strict";function a(t){return w.fromString(t,true,16)}function s(t){return t.xor(t.shru(47))}function fetch(t,e,n){const a=t.slice(e,e+n);return w.fromBytes(Array.from(a),true,true)}function i(t,e){return fetch(t,e,8)}function o(t,e){return fetch(t,e,4)}function c(t,shift){return 0===shift?t:t.shru(shift).or(t.shl(64-shift))}function u(t,e,n=a("9ddfea08eb382d69")){let s=t.xor(e).mul(n);s=s.xor(s.shru(47));let i=e.xor(s).mul(n);return i=i.xor(i.shru(47)),i=i.mul(n),i}function l(t,e,n,a,s,i){s=s.add(t),i=c(i.add(s).add(a),21);const o=s;return s=(s=s.add(e)).add(n),i=i.add(c(s,44)),[s.add(a),i.add(o)]}function h(t,e,n,a){return l(i(t,e),i(t,e+8),i(t,e+16),i(t,e+24),n,a)}function p(t,e=t.length){if(e>=8){const n=x.add(2*e),a=i(t,0).add(x),s=i(t,e-8),o=undefined,d=undefined;return u(c(s,37).mul(n).add(a),c(a,25).add(s).mul(n),n)}if(e>=4){const n=x.add(2*e),a=undefined;return u(o(t,0).shl(3).add(e),o(t,e-4),n)}if(e>0){const n=undefined,a=undefined,i=undefined,o=t[0]+(t[e>>1]<<8),c=e+(t[e-1]<<2);return s(x.mul(o).xor(y.mul(c))).mul(x)}return x}function f(t,e=t.length){const n=x.add(2*e),a=i(t,0).mul(O),s=i(t,8),o=i(t,e-8).mul(n),d=i(t,e-16).mul(x);return u(c(a.add(s),43).add(c(o,30)).add(d),a.add(c(s.add(x),18)).add(o),n)}function b(t,e=t.length){const n=x.add(2*e),a=i(t,0).mul(x),s=i(t,8),o=i(t,e-8).mul(n),d=i(t,e-16).mul(x),l=c(a.add(s),43).add(c(o,30)).add(d),h=u(l,a.add(c(s.add(x),18)).add(o),n),p=i(t,16).mul(n),f=i(t,24),b=l.add(i(t,e-32)).mul(n),m=h.add(i(t,e-24)).mul(n);return u(c(p.add(f),43).add(c(b,30)).add(m),p.add(c(f.add(a),18)).add(b),n)}function m(t,e=t.length){const n=w.fromNumber(81,true);if(e<=32)return e<=16?p(t,e):f(t,e);if(e<=64)return b(t,e);let a=n,o=n.mul(O).add(113),l=s(o.mul(x).add(113)).mul(x),m=[w.UZERO,w.UZERO],g=[w.UZERO,w.UZERO];a=a.mul(x).add(i(t,0));let v=0;const A=64*(e-1>>6),I=A+(e-1&63)-63;do{a=c(a.add(o).add(m[0]).add(i(t,v+8)),37).mul(O),o=c(o.add(m[1]).add(i(t,v+48)),42).mul(O),a=a.xor(g[1]),o=o.add(m[0]).add(i(t,v+40)),l=c(l.add(g[0]),33).mul(O),m=h(t,v,m[1].mul(O),a.add(g[0])),g=h(t,v+32,l.add(g[1]),o.add(i(t,v+16))),[l,a]=[a,l],v+=64}while(v!==A);const j=O.add(l.and(255).shl(1));return v=I,g[0]=g[0].add(e-1&63),m[0]=m[0].add(g[0]),g[0]=g[0].add(m[0]),a=c(a.add(o).add(m[0]).add(i(t,v+8)),37).mul(j),o=c(o.add(m[1]).add(i(t,v+48)),42).mul(j),a=a.xor(g[1].mul(9)),o=o.add(m[0].mul(9).add(i(t,v+40))),l=c(l.add(g[0]),33).mul(j),m=h(t,v,m[1].mul(j),a.add(g[0])),g=h(t,v+32,l.add(g[1]),o.add(i(t,v+16))),[l,a]=[a,l],u(u(m[0],g[0],j).add(s(o).mul(y)).add(l),u(m[1],g[1],j).add(a),j)}e.b=a,e.a=m;var g=n(407),v=n.n(g);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const w=g.default||g,y=a("c3a5c85c97cb3127"),O=a("b492b66fbe98f273"),x=a("9ae16a3b2f90404f")},function(t,e,n){"use strict";function a(t,e,n){this.low=0|t,this.high=0|e,this.unsigned=!!n}function s(t){return true===(t&&t.__isLong__)}function i(t,e){var n,a,cache;return e?(cache=0<=(t>>>=0)&&t<256)&&(a=f[t])?a:(n=c(t,(0|t)<0?-1:0,true),cache&&(f[t]=n),n):(cache=-128<=(t|=0)&&t<128)&&(a=p[t])?a:(n=c(t,t<0?-1:0,false),cache&&(p[t]=n),n)}function o(t,e){if(isNaN(t))return e?A:x;if(e){if(t<0)return A;if(t>=w)return k}else{if(t<=-y)return S;if(t+1>=y)return _}return t<0?o(-t,e).neg():c(t%v|0,t/v|0,e)}function c(t,e,n){return new a(t,e,n)}function u(t,e,n){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return x;if("number"==typeof e?(n=e,e=false):e=!!e,(n=n||10)<2||36<n)throw RangeError("radix");var a;if((a=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===a)return u(t.substring(1),e,n).neg();for(var s=o(b(n,8)),i=x,c=0;c<t.length;c+=8){var size=Math.min(8,t.length-c),l=parseInt(t.substring(c,c+size),n);if(size<8){var h=o(b(n,size));i=i.mul(h).add(o(l))}else i=(i=i.mul(s)).add(o(l))}return i.unsigned=e,i}function l(t,e){return"number"==typeof t?o(t,e):"string"==typeof t?u(t,e):c(t.low,t.high,"boolean"==typeof e?e:t.unsigned)}t.exports=a;var h=null;try{h=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(t){}a.prototype.__isLong__,Object.defineProperty(a.prototype,"__isLong__",{value:true}),a.isLong=s;var p={},f={};a.fromInt=i,a.fromNumber=o,a.fromBits=c;var b=Math.pow;a.fromString=u,a.fromValue=l;var m=65536,g,v=4294967296,w=v*v,y=w/2,O=i(1<<24),x=i(0);a.ZERO=x;var A=i(0,true);a.UZERO=A;var I=i(1);a.ONE=I;var j=i(1,true);a.UONE=j;var C=i(-1);a.NEG_ONE=C;var _=c(-1,2147483647,false);a.MAX_VALUE=_;var k=c(-1,-1,true);a.MAX_UNSIGNED_VALUE=k;var S=c(0,-2147483648,false);a.MIN_VALUE=S;var T=a.prototype;T.toInt=function t(){return this.unsigned?this.low>>>0:this.low},T.toNumber=function t(){return this.unsigned?(this.high>>>0)*v+(this.low>>>0):this.high*v+(this.low>>>0)},T.toString=function t(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(S)){var n=o(e),a=this.div(n),s=a.mul(n).sub(this);return a.toString(e)+s.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=o(b(e,6),this.unsigned),c=this,u="";;){var l=c.div(i),h,p=(c.sub(l.mul(i)).toInt()>>>0).toString(e);if((c=l).isZero())return p+u;for(;p.length<6;)p="0"+p;u=""+p+u}},T.getHighBits=function t(){return this.high},T.getHighBitsUnsigned=function t(){return this.high>>>0},T.getLowBits=function t(){return this.low},T.getLowBitsUnsigned=function t(){return this.low>>>0},T.getNumBitsAbs=function t(){if(this.isNegative())return this.eq(S)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,n=31;n>0&&0==(e&1<<n);n--);return 0!=this.high?n+33:n+1},T.isZero=function t(){return 0===this.high&&0===this.low},T.eqz=T.isZero,T.isNegative=function t(){return!this.unsigned&&this.high<0},T.isPositive=function t(){return this.unsigned||this.high>=0},T.isOdd=function t(){return 1==(1&this.low)},T.isEven=function t(){return 0==(1&this.low)},T.equals=function t(e){return s(e)||(e=l(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},T.eq=T.equals,T.notEquals=function t(e){return!this.eq(e)},T.neq=T.notEquals,T.ne=T.notEquals,T.lessThan=function t(e){return this.comp(e)<0},T.lt=T.lessThan,T.lessThanOrEqual=function t(e){return this.comp(e)<=0},T.lte=T.lessThanOrEqual,T.le=T.lessThanOrEqual,T.greaterThan=function t(e){return this.comp(e)>0},T.gt=T.greaterThan,T.greaterThanOrEqual=function t(e){return this.comp(e)>=0},T.gte=T.greaterThanOrEqual,T.ge=T.greaterThanOrEqual,T.compare=function compare(t){if(s(t)||(t=l(t)),this.eq(t))return 0;var e=this.isNegative(),n=t.isNegative();return e&&!n?-1:!e&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},T.comp=T.compare,T.negate=function t(){return!this.unsigned&&this.eq(S)?S:this.not().add(I)},T.neg=T.negate,T.add=function add(t){s(t)||(t=l(t));var e=this.high>>>16,n=65535&this.high,a=this.low>>>16,i=65535&this.low,o=t.high>>>16,u=65535&t.high,h=t.low>>>16,p,f=0,b=0,m=0,g=0;return m+=(g+=i+(65535&t.low))>>>16,b+=(m+=a+h)>>>16,f+=(b+=n+u)>>>16,f+=e+o,c((m&=65535)<<16|(g&=65535),(f&=65535)<<16|(b&=65535),this.unsigned)},T.subtract=function t(e){return s(e)||(e=l(e)),this.add(e.neg())},T.sub=T.subtract,T.multiply=function t(e){if(this.isZero())return x;var n;if(s(e)||(e=l(e)),h)return c(h.mul(this.low,this.high,e.low,e.high),h.get_high(),this.unsigned);if(e.isZero())return x;if(this.eq(S))return e.isOdd()?S:x;if(e.eq(S))return this.isOdd()?S:x;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(O)&&e.lt(O))return o(this.toNumber()*e.toNumber(),this.unsigned);var a=this.high>>>16,i=65535&this.high,u=this.low>>>16,p=65535&this.low,f=e.high>>>16,b=65535&e.high,m=e.low>>>16,g=65535&e.low,v=0,w=0,y=0,A=0;return y+=(A+=p*g)>>>16,w+=(y+=u*g)>>>16,y&=65535,w+=(y+=p*m)>>>16,v+=(w+=i*g)>>>16,w&=65535,v+=(w+=u*m)>>>16,w&=65535,v+=(w+=p*b)>>>16,v+=a*g+i*m+u*b+p*f,c((y&=65535)<<16|(A&=65535),(v&=65535)<<16|(w&=65535),this.unsigned)},T.mul=T.multiply,T.divide=function t(e){if(s(e)||(e=l(e)),e.isZero())throw Error("division by zero");var n,a,i,u;if(h)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?h.div_u:h.div_s)(this.low,this.high,e.low,e.high),h.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?A:x;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return A;if(e.gt(this.shru(1)))return j;u=A}else{var p;if(this.eq(S))return e.eq(I)||e.eq(C)?S:e.eq(S)?I:(a=this.shr(1).div(e).shl(1)).eq(x)?e.isNegative()?I:C:(i=this.sub(e.mul(a)),u=a.add(i.div(e)));if(e.eq(S))return this.unsigned?A:x;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();u=x}for(i=this;i.gte(e);){a=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var f=Math.ceil(Math.log(a)/Math.LN2),m=f<=48?1:b(2,f-48),g=o(a),v=g.mul(e);v.isNegative()||v.gt(i);)v=(g=o(a-=m,this.unsigned)).mul(e);g.isZero()&&(g=I),u=u.add(g),i=i.sub(v)}return u},T.div=T.divide,T.modulo=function t(e){var n;return s(e)||(e=l(e)),h?c((this.unsigned?h.rem_u:h.rem_s)(this.low,this.high,e.low,e.high),h.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},T.mod=T.modulo,T.rem=T.modulo,T.not=function t(){return c(~this.low,~this.high,this.unsigned)},T.and=function t(e){return s(e)||(e=l(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},T.or=function t(e){return s(e)||(e=l(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},T.xor=function t(e){return s(e)||(e=l(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},T.shiftLeft=function t(e){return s(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):c(0,this.low<<e-32,this.unsigned)},T.shl=T.shiftLeft,T.shiftRight=function t(e){return s(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},T.shr=T.shiftRight,T.shiftRightUnsigned=function t(e){if(s(e)&&(e=e.toInt()),0===(e&=63))return this;var n=this.high,a;return e<32?c(this.low>>>e|n<<32-e,n>>>e,this.unsigned):c(32===e?n:n>>>e-32,0,this.unsigned)},T.shru=T.shiftRightUnsigned,T.shr_u=T.shiftRightUnsigned,T.toSigned=function t(){return this.unsigned?c(this.low,this.high,false):this},T.toUnsigned=function t(){return this.unsigned?this:c(this.low,this.high,true)},T.toBytes=function t(e){return e?this.toBytesLE():this.toBytesBE()},T.toBytesLE=function t(){var e=this.high,n=this.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},T.toBytesBE=function t(){var e=this.high,n=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,n>>>24,n>>>16&255,n>>>8&255,255&n]},a.fromBytes=function t(e,n,s){return s?a.fromBytesLE(e,n):a.fromBytesBE(e,n)},a.fromBytesLE=function t(e,n){return new a(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)},a.fromBytesBE=function t(e,n){return new a(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a={},s={};for(let t=0;t<e.length;t++)a[e[t].id]=true;for(let n=0;n<t.length;n++){const i=t[n],o=i.inputs;for(const t in o){const input=o[t];let n=false;for(let t=0;t<e.length;t++)if(a[input.id]){i.outputs.forEach((t=>a[t.id]=true)),n=true,s[i.id]=true;break}if(n)break}}const i={};i[n.id]=true;const o={};for(let e=t.length-1;e>=0;e--){const n=t[e],a=n.inputs;for(let t=0;t<n.outputs.length;t++)if(i[n.outputs[t].id]){for(const t in a)i[a[t].id]=true,o[n.id]=true;break}}const c=[];for(let e=0;e<t.length;e++){const n=t[e];if(s[n.id]&&o[n.id]){const t={};for(const e in n.inputs){const s=n.inputs[e];a[s.id]&&(t[e]=s)}const e=Object.assign({},n);e.inputs=t,e.outputs=n.outputs,c.push(e)}}return c}function s(t,e,n,add){for(let a=e.length-1;a>=0;a--){const s=e[a],o=[];if(s.outputs.forEach((e=>{const n=t[e.id];null!=n?o.push(n):o.push(null)})),null==s.gradient)throw new Error(`Cannot compute gradient: gradient function not found for ${s.kernelName}.`);const c=s.gradient(o);for(const e in s.inputs){if(!(e in c))throw new Error(`Cannot backprop through input ${e}. Available gradients found: ${Object.keys(c)}.`);const a=n((()=>c[e]()));if("float32"!==a.dtype)throw new Error(`Error in gradient for op ${s.kernelName}. The gradient of input ${e} must have 'float32' dtype, but has '${a.dtype}'`);const o=s.inputs[e];if(!i.arraysEqual(a.shape,o.shape))throw new Error(`Error in gradient for op ${s.kernelName}. The gradient of input '${e}' has shape '${a.shape}', which does not match the shape of the input '${o.shape}'`);if(null==t[o.id])t[o.id]=a;else{const e=t[o.id];t[o.id]=add(e,a),e.dispose()}}}}e.b=a,e.a=s;var i=n(5)},function(t,e,n){"use strict";function a(t,shape,e,n){const a=Object(l.computeStrides)(shape),i=s(t,shape,e,a),o=shape.length,u=c(t,shape,e,a,i),h=["Tensor"];return n&&(h.push(` dtype: ${e}`),h.push(` rank: ${o}`),h.push(` shape: [${shape}]`),h.push(" values:")),h.push(u.map((t=>" "+t)).join("\n")),h.join("\n")}function s(t,shape,e,n){const a=Object(l.sizeFromShape)(shape),s=n[n.length-1],o=new Array(s).fill(0),c=shape.length,h="complex64"===e?u(t):t;if(c>1)for(let row=0;row<a/s;row++){const t=row*s;for(let n=0;n<s;n++)o[n]=Math.max(o[n],i(h[t+n],0,e).length)}return o}function i(t,e,n){let a;return a=Array.isArray(t)?`${parseFloat(t[0].toFixed(7))} + ${parseFloat(t[1].toFixed(7))}j`:Object(l.isString)(t)?`'${t}'`:"bool"===n?o(t):parseFloat(t.toFixed(7)).toString(),Object(l.rightPad)(a,e)}function o(t){return 0===t?"false":"true"}function c(t,shape,e,n,a,s=true){const l="complex64"===e?2:1,size=shape[0],p=shape.length;if(0===p){if("complex64"===e){const n=undefined;return[i(u(t)[0],0,e)]}return"bool"===e?[o(t[0])]:[t[0].toString()]}if(1===p){if(size>h){const n=3*l;let s=Array.from(t.slice(0,n)),o=Array.from(t.slice((size-3)*l,size*l));return"complex64"===e&&(s=u(s),o=u(o)),["["+s.map(((t,n)=>i(t,a[n],e))).join(", ")+", ..., "+o.map(((t,n)=>i(t,a[size-3+n],e))).join(", ")+"]"]}const n=undefined;return["["+("complex64"===e?u(t):Array.from(t)).map(((t,n)=>i(t,a[n],e))).join(", ")+"]"]}const f=shape.slice(1),b=n.slice(1),m=n[0]*l,g=[];if(size>h){for(let n=0;n<3;n++){const s=n*m,i=s+m;g.push(...c(t.slice(s,i),f,e,b,a,false))}g.push("...");for(let n=size-3;n<size;n++){const s=n*m,i=s+m;g.push(...c(t.slice(s,i),f,e,b,a,n===size-1))}}else for(let n=0;n<size;n++){const s=n*m,i=s+m;g.push(...c(t.slice(s,i),f,e,b,a,n===size-1))}const v=2===p?",":"";g[0]="["+(size>0?g[0]+v:"");for(let t=1;t<g.length-1;t++)g[t]=" "+g[t]+v;let w=",\n";for(let t=2;t<p;t++)w+="\n";return g[g.length-1]=" "+g[g.length-1]+"]"+(s?"":w),g}function u(t){const e=[];for(let n=0;n<t.length;n+=2)e.push([t[n],t[n+1]]);return e}e.a=a;var l=n(5);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const h=20,p=3,f=7},function(t,e,n){"use strict";var a=n(109),s=n(39),i=n(235),o=n(237),c=n(238),u=n(233);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class l{constructor(){this.messageName="setTimeoutCustom",this.functionRefs=[],this.handledMessageCount=0,this.hasEventListener=false}fetch(t,init){return fetch(t,init)}now(){return performance.now()}encode(text,t){if("utf-8"!==t&&"utf8"!==t)throw new Error(`Browser's encoder only supports utf-8, but got ${t}`);return null==this.textEncoder&&(this.textEncoder=new TextEncoder),this.textEncoder.encode(text)}decode(t,e){return new TextDecoder(e).decode(t)}setTimeoutCustom(t,e){if("undefined"==typeof window||!Object(s.c)().getBool("USE_SETTIMEOUTCUSTOM"))return setTimeout(t,e),void 0;this.functionRefs.push(t),setTimeout((()=>{window.postMessage({name:this.messageName,index:this.functionRefs.length-1},"*")}),e),this.hasEventListener||(this.hasEventListener=true,window.addEventListener("message",(t=>{if(t.source===window&&t.data.name===this.messageName){t.stopPropagation();const e=undefined;(0,this.functionRefs[t.data.index])(),this.handledMessageCount++,this.handledMessageCount===this.functionRefs.length&&(this.functionRefs=[],this.handledMessageCount=0)}}),true))}isTypedArray(t){return Object(u.a)(t)}}if(Object(s.c)().get("IS_BROWSER")){Object(s.c)().setPlatform("browser",new l);try{c.a.registerManager(o.a.URL_SCHEME,new o.b)}catch(t){}try{c.a.registerManager(i.a.URL_SCHEME,new i.b)}catch(t){}}},function(t,e,n){"use strict";function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("="),a;return-1===n&&(n=e),[n,n===e?0:4-n%4]}function s(t){var e=a(t),n=e[0],s=e[1];return 3*(n+s)/4-s}function i(t,e,n){return 3*(e+n)/4-n}function o(t){for(var e,n=a(t),s=n[0],o=n[1],c=new f(i(t,s,o)),u=0,l=o>0?s-4:s,h=0;h<l;h+=4)e=p[t.charCodeAt(h)]<<18|p[t.charCodeAt(h+1)]<<12|p[t.charCodeAt(h+2)]<<6|p[t.charCodeAt(h+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===o&&(e=p[t.charCodeAt(h)]<<2|p[t.charCodeAt(h+1)]>>4,c[u++]=255&e),1===o&&(e=p[t.charCodeAt(h)]<<10|p[t.charCodeAt(h+1)]<<4|p[t.charCodeAt(h+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c}function c(t){return h[t>>18&63]+h[t>>12&63]+h[t>>6&63]+h[63&t]}function u(t,e,n){for(var a,s=[],i=e;i<n;i+=3)a=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),s.push(c(a));return s.join("")}function l(t){for(var e,n=t.length,a=n%3,s=[],i=16383,o=0,c=n-a;o<c;o+=i)s.push(u(t,o,o+i>c?c:o+i));return 1===a?(e=t[n-1],s.push(h[e>>2]+h[e<<4&63]+"==")):2===a&&(e=(t[n-2]<<8)+t[n-1],s.push(h[e>>10]+h[e>>4&63]+h[e<<2&63]+"=")),s.join("")}e.byteLength=s,e.toByteArray=o,e.fromByteArray=l;for(var h=[],p=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,g=b.length;m<g;++m)h[m]=b[m],p[b.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".charCodeAt(0)]=63},function(t,e,n){"use strict";e.read=function(t,e,n,a,s){var i,o,c=8*s-a-1,u=(1<<c)-1,l=u>>1,h=-7,p=n?s-1:0,d=n?-1:1,f=t[e+p];for(p+=d,i=f&(1<<-h)-1,f>>=-h,h+=c;h>0;i=256*i+t[e+p],p+=d,h-=8);for(o=i&(1<<-h)-1,i>>=-h,h+=a;h>0;o=256*o+t[e+p],p+=d,h-=8);if(0===i)i=1-l;else{if(i===u)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,a),i-=l}return(f?-1:1)*o*Math.pow(2,i-a)},e.write=function(t,e,n,a,s,i){var o,c,u,l=8*i-s-1,h=(1<<l)-1,p=h>>1,f=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,b=a?0:i-1,d=a?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(o++,u/=2),o+p>=h?(c=0,o=h):o+p>=1?(c=(e*u-1)*Math.pow(2,s),o+=p):(c=e*Math.pow(2,p-1)*Math.pow(2,s),o=0));s>=8;t[n+b]=255&c,b+=d,c/=256,s-=8);for(o=o<<s|c,l+=s;l>0;t[n+b]=255&o,b+=d,o/=256,l-=8);t[n+b-d]|=128*m}},function(t,e,n){"use strict";var a={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==a.call(t)}},function(t,e,n){"use strict";(function(t){function e(){c=null}function a(t){c=t}function s(){return c}var i=n(39);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const o=()=>n(415);let c;class u{constructor(){this.util=n(416),this.textEncoder=new this.util.TextEncoder}fetch(t,e){return null!=Object(i.c)().global.fetch?Object(i.c)().global.fetch(t,e):(null==c&&(c=o()),c(t,e))}now(){const e=t.hrtime();return 1e3*e[0]+e[1]/1e6}encode(text,t){if("utf-8"!==t&&"utf8"!==t)throw new Error(`Node built-in encoder only supports utf-8, but got ${t}`);return this.textEncoder.encode(text)}decode(t,e){return 0===t.length?"":new this.util.TextDecoder(e).decode(t)}isTypedArray(t){return this.util.types.isFloat32Array(t)||this.util.types.isInt32Array(t)||this.util.types.isUint8Array(t)||this.util.types.isUint8ClampedArray(t)}}Object(i.c)().get("IS_NODE")&&!Object(i.c)().get("IS_BROWSER")&&Object(i.c)().setPlatform("node",new u)}).call(e,n(133))},function(t,e){},function(t,e){},function(t,e,n){"use strict";function a(){for(const t of f)Object(p.registerClass)(t)}e.a=a;var s=n(174),i=n(204),o=n(205),c=n(206),u=n(207),l=n(208),h=n(155),p=n(203);
/**
* @license
* Copyright 2022 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const f=[s.a,i.a,o.a,c.a,u.a,l.a,h.a]},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","acos")};return s.a.runKernel(i.b,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({acos_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","acosh")};return s.a.runKernel(i.c,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({acosh_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){c.assert(Array.isArray(t),(()=>"The argument passed to tf.addN() must be a list of tensors")),c.assert(t.length>=1,(()=>`Must pass at least one tensor to tf.addN(), but got ${t.length}`));const e=t.map(((t,e)=>Object(o.a)(t,`tensors${e}`,"addN"))),n=e[0];e.forEach((t=>{if(t.dtype!==n.dtype)throw new Error("All tensors passed to tf.addN() must have the same dtype")})),e.forEach((t=>{if(!c.arraysEqual(t.shape,n.shape))throw new Error("All tensors passed to tf.addN() must have the same shape")}));const a=e;return s.a.runKernel(i.e,a)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({addN_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","asin")};return s.a.runKernel(i.j,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({asin_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","asinh")};return s.a.runKernel(i.k,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({asinh_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","atan")};return s.a.runKernel(i.l,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({atan_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","atanh")};return s.a.runKernel(i.n,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({atanh_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,h,f="NDHWC"){const b=Object(o.a)(t,"x","avgPool3d","float32");let m=b,g=false;4===b.rank&&(g=true,m=Object(p.a)(b,[1,b.shape[0],b.shape[1],b.shape[2],b.shape[3]])),c.assert(5===m.rank,(()=>`Error in avgPool3d: x must be rank 5 but got rank ${m.rank}.`)),c.assert("NDHWC"===f,(()=>`Error in avgPool3d: Only NDHWC is currently supported, but got dataFormat of ${f}`)),c.assert("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(l.a)("avgPool3d",a,h);const v={x:m},w={filterSize:e,strides:n,pad:a,dimRoundingMode:h,dataFormat:f};let y=s.a.runKernel(i.p,v,w);return y=Object(u.a)(y,m.dtype),g?Object(p.a)(y,[y.shape[1],y.shape[2],y.shape[3],y.shape[4]]):y}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(13),l=n(33),h=n(2),p=n(7);const f=Object(h.b)({avgPool3d_:a});e.a=f},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,data,a,l){const b=Object(s.a)(t,"forgetBias","basicLSTMCell"),m=Object(s.a)(e,"lstmKernel","basicLSTMCell"),g=Object(s.a)(n,"lstmBias","basicLSTMCell"),v=Object(s.a)(data,"data","basicLSTMCell"),w=Object(s.a)(a,"c","basicLSTMCell"),y=Object(s.a)(l,"h","basicLSTMCell"),O=Object(o.a)([v,y],1),x=Object(c.a)(O,m),A=Object(i.a)(x,g),I=A.shape[0],j=A.shape[1]/4,C=[I,j],_=Object(p.a)(A,[0,0],C),k=Object(p.a)(A,[0,j],C),S=Object(p.a)(A,[0,2*j],C),T=Object(p.a)(A,[0,3*j],C),L=Object(i.a)(Object(u.a)(Object(h.a)(_),Object(f.a)(k)),Object(u.a)(w,Object(h.a)(Object(i.a)(b,S)))),B=undefined;return[L,Object(u.a)(Object(f.a)(L),Object(h.a)(T))]}var s=n(3),i=n(20),o=n(48),c=n(54),u=n(9),l=n(2),h=n(111),p=n(42),f=n(245);const b=Object(l.b)({basicLSTMCell_:a});e.a=b},function(t,e,n){"use strict";function a(t){let e;return e=0===t.rank||1===t.rank?Object(s.a)(t,[1,1,1,t.size]):2===t.rank?Object(s.a)(t,[1,1,t.shape[0],t.shape[1]]):3===t.rank?Object(s.a)(t,[1,t.shape[0],t.shape[1],t.shape[2]]):t,e}e.a=a;var s=n(7)},function(t,e,n){"use strict";function a(t,e,n,a,c,u){const l=Object(s.a)(t,"x","batchNorm"),h=Object(s.a)(e,"mean","batchNorm"),p=Object(s.a)(n,"variance","batchNorm");let f,b;return null!=c&&(f=Object(s.a)(c,"scale","batchNorm")),null!=a&&(b=Object(s.a)(a,"offset","batchNorm")),i.assert(2===l.rank,(()=>`Error in batchNorm2D: x must be rank 2 but got rank ${l.rank}.`)),i.assert(2===h.rank||1===h.rank,(()=>`Error in batchNorm2D: mean must be rank 2 or rank 1 but got rank ${h.rank}.`)),i.assert(2===p.rank||1===p.rank,(()=>`Error in batchNorm2D: variance must be rank 2 or rank 1 but got rank ${p.rank}.`)),null!=f&&i.assert(2===f.rank||1===f.rank,(()=>`Error in batchNorm2D: scale must be rank 2 or rank 1 but got rank ${f.rank}.`)),null!=b&&i.assert(2===b.rank||1===b.rank,(()=>`Error in batchNorm2D: offset must be rank 2 or rank 1 but got rank ${b.rank}.`)),Object(o.a)(l,h,p,b,f,u)}var s=n(3),i=n(5),o=n(112),c=n(2);const u=Object(c.b)({batchNorm2d_:a});e.a=u},function(t,e,n){"use strict";function a(t,e,n,a,c,u){const l=Object(s.a)(t,"x","batchNorm"),h=Object(s.a)(e,"mean","batchNorm"),p=Object(s.a)(n,"variance","batchNorm");let f,b;return null!=c&&(f=Object(s.a)(c,"scale","batchNorm")),null!=a&&(b=Object(s.a)(a,"offset","batchNorm")),i.assert(3===l.rank,(()=>`Error in batchNorm3D: x must be rank 3 but got rank ${l.rank}.`)),i.assert(3===h.rank||1===h.rank,(()=>`Error in batchNorm3D: mean must be rank 3 or rank 1 but got rank ${h.rank}.`)),i.assert(3===p.rank||1===p.rank,(()=>`Error in batchNorm3D: variance must be rank 3 or rank 1 but got rank ${p.rank}.`)),null!=f&&i.assert(3===f.rank||1===f.rank,(()=>`Error in batchNorm3D: scale must be rank 3 or rank 1 but got rank ${f.rank}.`)),null!=b&&i.assert(3===b.rank||1===b.rank,(()=>`Error in batchNorm3D: offset must be rank 3 or rank 1 but got rank ${b.rank}.`)),Object(o.a)(l,h,p,b,f,u)}var s=n(3),i=n(5),o=n(112),c=n(2);const u=Object(c.b)({batchNorm3d_:a});e.a=u},function(t,e,n){"use strict";function a(t,e,n,a,c,u){const l=Object(s.a)(t,"x","batchNorm"),h=Object(s.a)(e,"mean","batchNorm"),p=Object(s.a)(n,"variance","batchNorm");let f,b;return null!=c&&(f=Object(s.a)(c,"scale","batchNorm")),null!=a&&(b=Object(s.a)(a,"offset","batchNorm")),i.assert(4===l.rank,(()=>`Error in batchNorm4D: x must be rank 4 but got rank ${l.rank}.`)),i.assert(4===h.rank||1===h.rank,(()=>`Error in batchNorm4D: mean must be rank 4 or rank 1 but got rank ${h.rank}.`)),i.assert(4===p.rank||1===p.rank,(()=>`Error in batchNorm4D: variance must be rank 4 or rank 1 but got rank ${p.rank}.`)),null!=f&&i.assert(4===f.rank||1===f.rank,(()=>`Error in batchNorm4D: scale must be rank 4 or rank 1 but got rank ${f.rank}.`)),null!=b&&i.assert(4===b.rank||1===b.rank,(()=>`Error in batchNorm4D: offset must be rank 4 or rank 1 but got rank ${b.rank}.`)),Object(o.a)(l,h,p,b,f,u)}var s=n(3),i=n(5),o=n(112),c=n(2);const u=Object(c.b)({batchNorm4d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(o.a)(t,"x","bitwiseAnd"),a=Object(o.a)(e,"y","bitwiseAnd");if(!Object(c.a)(n.shape,a.shape))throw new Error(`BitwiseAnd: Tensors must have the same shape. x: ${n.shape}, y: ${a.shape}`);if("int32"!==n.dtype||"int32"!==a.dtype)throw new Error(`BitwiseAnd: Only supports 'int32' values in tensor, found type of x: ${n.dtype} and type of y: ${a.dtype}`);const u={a:n,b:a};return s.a.runKernel(i.v,u)}var s=n(4),i=n(1),o=n(3),c=n(35),u=n(2);const l=Object(u.b)({bitwiseAnd_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(o.a)(t,"s0","broadcastArgs","int32"),a=Object(o.a)(e,"s1","broadcastArgs","int32");if(1!==n.rank)throw new Error(`broadcastArgs(): first input must be a vector (rank=1). Has rank ${n.rank}`);if(1!==a.rank)throw new Error(`broadcastArgs(): second input must be a vector (rank=1). Has rank ${a.rank}`);const c={s0:n,s1:a};return s.a.runKernel(i.w,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({broadcastArgs_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","ceil","float32")};return s.a.runKernel(i.z,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({ceil_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(o.a)(t,"x","clipByValue");if(c.assert(e<=n,(()=>`Error in clip: min (${e}) must be less than or equal to max (${n}).`)),e===n)return Object(u.a)(a.shape,e,a.dtype);const l={x:a},h={clipValueMin:e,clipValueMax:n};return s.a.runKernel(i.A,l,h)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(113),l=n(2);const h=Object(l.b)({clipByValue_:a});e.a=h},function(t,e,n){"use strict";function a(t){return Object(s.a)(t,0)}var s=n(48),i=n(2);const o=Object(i.b)({concat1d_:a});e.a=o},function(t,e,n){"use strict";function a(t,e){return Object(s.a)(t,e)}var s=n(48),i=n(2);const o=Object(i.b)({concat2d_:a});e.a=o},function(t,e,n){"use strict";function a(t,e){return Object(s.a)(t,e)}var s=n(48),i=n(2);const o=Object(i.b)({concat3d_:a});e.a=o},function(t,e,n){"use strict";function a(t,e){return Object(s.a)(t,e)}var s=n(48),i=n(2);const o=Object(i.b)({concat4d_:a});e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,filter,e,n,a="NDHWC",l=[1,1,1]){const p=Object(o.a)(t,"x","conv3d"),f=Object(o.a)(filter,"filter","conv3d");let b=p,m=false;4===p.rank&&(m=true,b=Object(h.a)(p,[1,p.shape[0],p.shape[1],p.shape[2],p.shape[3]])),c.assert(5===b.rank,(()=>`Error in conv3d: input must be rank 5, but got rank ${b.rank}.`)),c.assert(5===f.rank,(()=>`Error in conv3d: filter must be rank 5, but got rank ${f.rank}.`)),c.assert(b.shape[4]===f.shape[3],(()=>`Error in conv3d: depth of input (${b.shape[4]}) must match input depth for filter ${f.shape[3]}.`)),c.assert(Object(u.i)(e,l),(()=>`Error in conv3D: Either strides or dilations must be 1. Got strides ${e} and dilations '${l}'`)),c.assert("NDHWC"===a,(()=>`Error in conv3d: got dataFormat of ${a} but only NDHWC is currently supported.`)),c.assert(Object(u.j)(l),(()=>"Error in conv3D: Dilated rates should be larger than 0.")),c.assert(Object(u.j)(e),(()=>"Error in conv3D: Strides should be larger than 0."));const g={x:b,filter:f},v={strides:e,pad:n,dataFormat:a,dilations:l},w=s.a.runKernel(i.H,g,v);return m?Object(h.a)(w,[w.shape[1],w.shape[2],w.shape[3],w.shape[4]]):w}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(33),l=n(2),h=n(7);const p=Object(l.b)({conv3d_:a});e.a=p},function(t,e,n){"use strict";function a(t,filter,e,n,a){const o=Object(s.a)(t,"x","conv3dTranspose"),c=Object(s.a)(filter,"filter","conv3dTranspose");return Object(i.a)(e,o,c,n,a)}var s=n(3),i=n(249),o=n(2);const c=Object(o.b)({conv3dTranspose_:a});e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size,n=false){const a=Object(o.a)(t,"x","denseBincount"),u=Object(o.a)(e,"weights","denseBincount");c.assert("int32"===a.dtype,(()=>`Error in denseBincount: input dtype must be int32, but got ${a.dtype}`)),c.assert(a.rank<=2,(()=>`Error in denseBincount: input must be at most rank 2, but got rank ${a.rank}.`)),c.assert(size>=0,(()=>`size must be non-negative, but got ${size}.`)),c.assert(u.size===a.size||0===u.size,(()=>`Error in denseBincount: weights must have the same shape as x or 0-length, but got x shape: ${a.shape}, weights shape: ${u.shape}.`));const l={x:a,weights:u},h={size:size,binaryOutput:n};return s.a.runKernel(i.P,l,h)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({denseBincount_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","diag")};return s.a.runKernel(i.U,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({diag_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape){const e=Object(s.a)(t,"x","ensureShape","string_or_numeric");if(!Object(i.b)(e.shape,shape))throw new Error(`EnsureShape: Shape of tensor ${e.shape} is not compatible with expected shape ${shape}`);return t}var s=n(3),i=n(35),o=n(2);const c=Object(o.b)({ensureShape_:a});e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){let e=Object(o.a)(t,"x","erf");c.assert("int32"===e.dtype||"float32"===e.dtype,(()=>"Input dtype must be `int32` or `float32`.")),"int32"===e.dtype&&(e=Object(u.a)(e,"float32"));const n={x:e};return s.a.runKernel(i._3,n)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(13),l=n(2);const h=Object(l.b)({erf_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","expm1")};return s.a.runKernel(i._6,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({expm1_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","isFinite")};return s.a.runKernel(i._23,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({isFinite_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","isInf")};return s.a.runKernel(i._24,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({isInf_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","isNaN")};return s.a.runKernel(i._25,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({isNaN_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){if(n<=0)throw new Error("The number of values should be positive.");const a={start:t,stop:e,num:n};return s.a.runKernel(i._31,{},a)}e.a=a;var s=n(4),i=n(1)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=Object(i.a)(t,"x","logSigmoid"),n=Object(s.a)((t=>{const e=undefined,n=undefined;return{value:Object(c.a)(Object(h.a)(Object(c.a)(t))),gradFunc:e=>{const n=undefined;return Object(o.a)(e,Object(l.a)(Object(c.a)(t)))}}}));return n(e)}var s=n(69),i=n(3),o=n(9),c=n(36),u=n(2),l=n(111),h=n(260);const p=Object(u.b)({logSigmoid_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=-1){const n=Object(i.a)(t,"logits","logSoftmax");if(-1===e&&(e=n.rank-1),e!==n.rank-1)throw Error(`Log Softmax along a non-last dimension is not yet supported. Logits was rank ${n.rank} and axis was ${e}`);const a=Object(s.a)(((t,save)=>{const n=true,a=Object(l.a)(t,e,true),s=Object(f.a)(t,a),i=Object(f.a)(Object(o.a)(s,"float32"),Object(u.a)(Object(b.a)(Object(c.a)(s),e,n)));save([i]);const p=(t,n)=>{const[a]=n,s=true,i=Object(c.a)(a);return Object(f.a)(t,Object(h.a)(Object(b.a)(t,e,s),i))};return{value:i,gradFunc:p}}));return a(n)}var s=n(69),i=n(3),o=n(13),c=n(61),u=n(117),l=n(114),h=n(9),p=n(2),f=n(18),b=n(26);const m=Object(p.b)({logSoftmax_:a});e.a=m},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){return Object(s.a)(t,e,"left")}e.a=a;var s=n(188)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=[1,1,1],n,a,l,p="NDHWC"){const f=Object(o.a)(t,"x","maxPool3d");let b=f,m=false;4===f.rank&&(m=true,b=Object(h.a)(f,[1,f.shape[0],f.shape[1],f.shape[2],f.shape[3]])),c.assert(5===b.rank,(()=>`Error in maxPool3d: x must be rank 5 but got rank ${b.rank}.`)),c.assert("NDHWC"===p,(()=>`Error in maxPool3d: Only NDHWC is currently supported, but got dataFormat of ${p}`)),Object(u.a)("maxPool3d",a,l);const g={x:b},v={filterSize:e,strides:n,pad:a,dimRoundingMode:l,dataFormat:p},w=s.a.runKernel(i._43,g,v);return m?Object(h.a)(w,[w.shape[1],w.shape[2],w.shape[3],w.shape[4]]):w}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(33),l=n(2),h=n(7);const p=Object(l.b)({maxPool3d_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,c=false){const u=undefined,l={x:Object(o.a)(t,"x","maxPoolWithArgmax")},h={filterSize:e,strides:n,pad:a,includeBatchInIndex:c},p=s.a.runKernel(i._46,l,h);return{result:p[0],indexes:p[1]}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({maxPoolWithArgmax_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,{indexing:n="xy"}={}){if("xy"!==n&&"ij"!==n)throw new TypeError(`${n} is not a valid third argument to meshgrid`);if(void 0===t)return[];let a=Object(u.a)(t,"x","meshgrid",t instanceof c.a?t.dtype:"float32");if(void 0===e)return[a];let h=Object(u.a)(e,"y","meshgrid",e instanceof c.a?e.dtype:"float32");const p=Object(l.O)(a.shape),f=Object(l.O)(h.shape);return"xy"===n?(a=Object(o.a)(a,[1,-1]),h=Object(o.a)(h,[-1,1]),[Object(s.a)(Object(i.a)([f,1],a.dtype),a),Object(s.a)(h,Object(i.a)([1,p],h.dtype))]):(a=Object(o.a)(a,[-1,1]),h=Object(o.a)(h,[1,-1]),[Object(s.a)(a,Object(i.a)([1,f],a.dtype)),Object(s.a)(Object(i.a)([p,1],h.dtype),h)])}e.a=a;var s=n(54),i=n(96),o=n(7),c=n(6),u=n(3),l=n(35)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=null,n=false){t=Object(s.a)(t,"x","moments");const a=Object(i.parseAxisParam)(e,t.shape),l=Object(u.a)(t,a,n);let b=l.shape;n||(b=Object(o.e)(l.shape,a));const m=Object(p.a)(Object(f.a)(Object(c.a)(t,"float32"),Object(h.a)(l,b))),g=undefined;return{mean:l,variance:Object(u.a)(m,a,n)}}var s=n(3),i=n(5),o=n(55),c=n(13),u=n(145),l=n(2),h=n(7),p=n(31),f=n(18);const b=Object(l.b)({moments_:a});e.a=b},function(t,e,n){"use strict";function a(t,data,e,n){const a=Object(s.a)(data,"data","multiRNNCell"),i=Object(s.b)(e,"c","multiRNNCell"),o=Object(s.b)(n,"h","multiRNNCell");let input=a;const c=[];for(let e=0;e<t.length;e++){const n=t[e](input,i[e],o[e]);c.push(n[0]),c.push(n[1]),input=n[1]}const u=[],l=[];for(let t=0;t<c.length;t+=2)u.push(c[t]),l.push(c[t+1]);return[u,l]}var s=n(3),i=n(2);const o=Object(i.b)({multiRNNCell_:a});e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=false){const c=Object(o.a)(t,"logits","multinomial"),l=c.size,h=c.rank;if(l<2)throw new Error(`Error in multinomial: you need at least 2 outcomes, but got ${l}.`);if(h>2)throw new Error(`Rank of probabilities must be 1 or 2, but is ${h}`);n=n||Math.random();const p=undefined,f={logits:1===h?Object(u.a)(c,[1,-1]):c},b={numSamples:e,seed:n,normalized:a},m=s.a.runKernel(i._53,f,b);return 1===h?Object(u.a)(m,[m.size]):m}var s=n(4),i=n(1),o=n(3),c=n(2),u=n(7);const l=Object(c.b)({multinomial_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","onesLike")};return s.a.runKernel(i._61,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({onesLike_:a});e.a=u},function(t,e,n){"use strict";function a(t,e){const n=Object(s.a)(t,"v1","outerProduct"),a=Object(s.a)(e,"v2","outerProduct");i.assert(1===n.rank&&1===a.rank,(()=>`Error in outerProduct: inputs must be rank 1, but got ranks ${n.rank} and ${a.rank}.`));const c=Object(u.a)(n,[-1,1]),l=Object(u.a)(a,[1,-1]);return Object(o.a)(c,l)}var s=n(3),i=n(5),o=n(54),c=n(2),u=n(7);const l=Object(c.b)({outerProduct_:a});e.a=l},function(t,e,n){"use strict";function a(t,paddings,e=0){return Object(s.assert)(2===paddings.length,(()=>"Invalid number of paddings. Must be length of 2.")),Object(o.a)(t,[paddings],e)}var s=n(5),i=n(2),o=n(83);const c=Object(i.b)({pad1d_:a});e.a=c},function(t,e,n){"use strict";function a(t,paddings,e=0){return Object(s.assert)(2===paddings.length&&2===paddings[0].length&&2===paddings[1].length,(()=>"Invalid number of paddings. Must be length of 2 each.")),Object(o.a)(t,paddings,e)}var s=n(5),i=n(2),o=n(83);const c=Object(i.b)({pad2d_:a});e.a=c},function(t,e,n){"use strict";function a(t,paddings,e=0){return Object(s.assert)(3===paddings.length&&2===paddings[0].length&&2===paddings[1].length&&2===paddings[2].length,(()=>"Invalid number of paddings. Must be length of 2 each.")),Object(o.a)(t,paddings,e)}var s=n(5),i=n(2),o=n(83);const c=Object(i.b)({pad3d_:a});e.a=c},function(t,e,n){"use strict";function a(t,paddings,e=0){return Object(s.assert)(4===paddings.length&&2===paddings[0].length&&2===paddings[1].length&&2===paddings[2].length&&2===paddings[3].length,(()=>"Invalid number of paddings. Must be length of 2 each.")),Object(o.a)(t,paddings,e)}var s=n(5),i=n(2),o=n(83);const c=Object(i.b)({pad4d_:a});e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const c=undefined,u=undefined,l=undefined,h={paramsNestedSplits:t.map(((t,e)=>Object(o.a)(t,`tensors${e}`,"raggedGather","int32"))),paramsDenseValues:Object(o.a)(e,"paramsDenseValues","raggedGather"),indices:Object(o.a)(n,"indices","raggedGather","int32")},p={outputRaggedRank:a},f=s.a.runKernel(i._68,h,p);return{outputNestedSplits:f.slice(0,f.length-1),outputDenseValues:f[f.length-1]}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({raggedGather_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(o.a)(t,"starts","raggedRange"),c=undefined,u=undefined,l={starts:a,limits:Object(o.a)(e,"limits","raggedRange",a.dtype),deltas:Object(o.a)(n,"deltas","raggedRange",a.dtype)},h=s.a.runKernel(i._69,l);return{rtNestedSplits:h[0],rtDenseValues:h[1]}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({raggedRange_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t,e,n,a){const c=Object(o.a)(shape,"shape","raggedTensorToTensor","int32"),u=Object(o.a)(t,"values","raggedTensorToTensor"),l=undefined,h=undefined,p={shape:c,values:u,defaultValue:Object(o.a)(e,"defaultValue","raggedTensorToTensor",u.dtype),rowPartitionTensors:n.map(((t,e)=>Object(o.a)(t,`tensors${e}`,"raggedTensorToTensor","int32")))},f={rowPartitionTypes:a};return s.a.runKernel(i._70,p,f)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({raggedTensorToTensor_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t,e){Object(o.d)(shape);const size=Object(i.sizeFromShape)(shape);let n=null;if(null==e||"float32"===e)n=new Float32Array(size);else if("int32"===e)n=new Int32Array(size);else{if("bool"!==e)throw new Error(`Unknown data type ${e}`);n=new Uint8Array(size)}for(let e=0;e<size;e++)n[e]=t();return s.a.makeTensor(n,shape,e)}var s=n(4),i=n(5),o=n(35),c=n(2);const u=Object(c.b)({rand_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t,e=1,n="float32",a){if(Object(s.d)(shape),null==e&&(e=1),null==n&&(n="float32"),"float32"!==n&&"int32"!==n)throw new Error(`Unsupported data type ${n}`);const o=new c.b(t,e,n,a),u=Object(i.a)(shape,n);for(let t=0;t<u.values.length;t++)u.values[t]=o.nextValue();return u.toTensor()}var s=n(35),i=n(68),o=n(2),c=n(148);const u=Object(o.b)({randomGamma_:a});e.a=u},function(t,e,n){"use strict";(function(t){!function(t,e,n){function a(t){var me=this,e=i();me.next=function(){var t=2091639*me.s0+2.3283064365386963e-10*me.c;return me.s0=me.s1,me.s1=me.s2,me.s2=t-(me.c=0|t)},me.c=1,me.s0=e(" "),me.s1=e(" "),me.s2=e(" "),me.s0-=e(t),me.s0<0&&(me.s0+=1),me.s1-=e(t),me.s1<0&&(me.s1+=1),me.s2-=e(t),me.s2<0&&(me.s2+=1),e=null}function copy(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function s(t,e){var n=new a(t),state=e&&e.state,s=n.next;return s.int32=function(){return 4294967296*n.next()|0},s.double=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.quick=s,state&&("object"==typeof state&©(state,n),s.state=function(){return copy(n,{})}),s}function i(){var t=4022871197,e;return function(data){data=String(data);for(var e=0;e<data.length;e++){var n=.02519603282416938*(t+=data.charCodeAt(e));n-=t=n>>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)}}e&&e.exports?e.exports=s:n&&n.amd?n((function(){return s})):this.alea=s}(this,"object"==typeof t&&t,"function"==typeof define&&define)}).call(e,n(97)(t))},function(t,e,n){"use strict";(function(t){!function(t,e,n){function a(t){var me=this,e="";me.x=0,me.y=0,me.z=0,me.w=0,me.next=function(){var t=me.x^me.x<<11;return me.x=me.y,me.y=me.z,me.z=me.w,me.w^=me.w>>>19^t^t>>>8},t===(0|t)?me.x=t:e+=t;for(var n=0;n<e.length+64;n++)me.x^=0|e.charCodeAt(n),me.next()}function copy(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e}function s(t,e){var n=new a(t),state=e&&e.state,s=function(){return(n.next()>>>0)/4294967296};return s.double=function(){do{var t,e,a=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===a);return a},s.int32=n.next,s.quick=s,state&&("object"==typeof state&©(state,n),s.state=function(){return copy(n,{})}),s}e&&e.exports?e.exports=s:n&&n.amd?n((function(){return s})):this.xor128=s}(this,"object"==typeof t&&t,"function"==typeof define&&define)}).call(e,n(97)(t))},function(t,e,n){"use strict";(function(t){!function(t,e,n){function a(t){var me=this,e="";me.next=function(){var t=me.x^me.x>>>2;return me.x=me.y,me.y=me.z,me.z=me.w,me.w=me.v,(me.d=me.d+362437|0)+(me.v=me.v^me.v<<4^t^t<<1)|0},me.x=0,me.y=0,me.z=0,me.w=0,me.v=0,t===(0|t)?me.x=t:e+=t;for(var n=0;n<e.length+64;n++)me.x^=0|e.charCodeAt(n),n==e.length&&(me.d=me.x<<10^me.x>>>4),me.next()}function copy(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function s(t,e){var n=new a(t),state=e&&e.state,s=function(){return(n.next()>>>0)/4294967296};return s.double=function(){do{var t,e,a=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===a);return a},s.int32=n.next,s.quick=s,state&&("object"==typeof state&©(state,n),s.state=function(){return copy(n,{})}),s}e&&e.exports?e.exports=s:n&&n.amd?n((function(){return s})):this.xorwow=s}(this,"object"==typeof t&&t,"function"==typeof define&&define)}).call(e,n(97)(t))},function(t,e,n){"use strict";(function(t){!function(t,e,n){function a(t){function init(me,t){var e,n,a=[];if(t===(0|t))n=a[0]=t;else for(t=""+t,e=0;e<t.length;++e)a[7&e]=a[7&e]<<15^t.charCodeAt(e)+a[e+1&7]<<13;for(;a.length<8;)a.push(0);for(e=0;e<8&&0===a[e];++e);for(n=8==e?a[7]=-1:a[e],me.x=a,me.i=0,e=256;e>0;--e)me.next()}var me=this;me.next=function(){var t=me.x,e=me.i,n,a,s;return n=t[e],a=(n^=n>>>7)^n<<24,a^=(n=t[e+1&7])^n>>>10,a^=(n=t[e+3&7])^n>>>3,a^=(n=t[e+4&7])^n<<7,n=t[e+7&7],a^=(n^=n<<13)^n<<9,t[e]=a,me.i=e+1&7,a},init(me,t)}function copy(t,e){return e.x=t.x.slice(),e.i=t.i,e}function s(t,e){null==t&&(t=+new Date);var n=new a(t),state=e&&e.state,s=function(){return(n.next()>>>0)/4294967296};return s.double=function(){do{var t,e,a=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===a);return a},s.int32=n.next,s.quick=s,state&&(state.x&©(state,n),s.state=function(){return copy(n,{})}),s}e&&e.exports?e.exports=s:n&&n.amd?n((function(){return s})):this.xorshift7=s}(this,"object"==typeof t&&t,"function"==typeof define&&define)}).call(e,n(97)(t))},function(t,e,n){"use strict";(function(t){!function(t,e,n){function a(t){function init(me,t){var e,n,a,s,i,o=[],c=128;for(t===(0|t)?(n=t,t=null):(t+="\0",n=0,c=Math.max(c,t.length)),a=0,s=-32;s<c;++s)t&&(n^=t.charCodeAt((s+32)%t.length)),0===s&&(i=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,s>=0&&(i=i+1640531527|0,a=0==(e=o[127&s]^=n+i)?a+1:0);for(a>=128&&(o[127&(t&&t.length||0)]=-1),a=127,s=512;s>0;--s)n=o[a+34&127],e=o[a=a+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,o[a]=n^e;me.w=i,me.X=o,me.i=a}var me=this;me.next=function(){var t=me.w,e=me.X,n=me.i,a,s;return me.w=t=t+1640531527|0,s=e[n+34&127],a=e[n=n+1&127],s^=s<<13,a^=a<<17,s^=s>>>15,a^=a>>>12,s=e[n]=s^a,me.i=n,s+(t^t>>>16)|0},init(me,t)}function copy(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function s(t,e){null==t&&(t=+new Date);var n=new a(t),state=e&&e.state,s=function(){return(n.next()>>>0)/4294967296};return s.double=function(){do{var t,e,a=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===a);return a},s.int32=n.next,s.quick=s,state&&(state.X&©(state,n),s.state=function(){return copy(n,{})}),s}e&&e.exports?e.exports=s:n&&n.amd?n((function(){return s})):this.xor4096=s}(this,"object"==typeof t&&t,"function"==typeof define&&define)}).call(e,n(97)(t))},function(t,e,n){"use strict";(function(t){!function(t,e,n){function a(t){var me=this,e="";me.next=function(){var t=me.b,e=me.c,d=me.d,n=me.a;return t=t<<25^t>>>7^e,e=e-d|0,d=d<<24^d>>>8^n,n=n-t|0,me.b=t=t<<20^t>>>12^e,me.c=e=e-d|0,me.d=d<<16^e>>>16^n,me.a=n-t|0},me.a=0,me.b=0,me.c=-1640531527,me.d=1367130551,t===Math.floor(t)?(me.a=t/4294967296|0,me.b=0|t):e+=t;for(var n=0;n<e.length+20;n++)me.b^=0|e.charCodeAt(n),me.next()}function copy(t,e){return e.a=t.a,e.b=t.b,e.c=t.c,e.d=t.d,e}function s(t,e){var n=new a(t),state=e&&e.state,s=function(){return(n.next()>>>0)/4294967296};return s.double=function(){do{var t,e,a=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===a);return a},s.int32=n.next,s.quick=s,state&&("object"==typeof state&©(state,n),s.state=function(){return copy(n,{})}),s}e&&e.exports?e.exports=s:n&&n.amd?n((function(){return s})):this.tychei=s}(this,"object"==typeof t&&t,"function"==typeof define&&define)}).call(e,n(97)(t))},function(t,e,n){"use strict";!function(e,a,s){function i(t,e,n){var i=[],f=u(c((e=true==e?{entropy:true}:e||{}).entropy?[t,h(a)]:null==t?l():t,3),i),b=new o(i),m=function(){for(var t=b.g(6),d=g,e=0;t<v;)t=(t+e)*p,d*=p,e=b.g(1);for(;t>=w;)t/=2,d/=2,e>>>=1;return(t+e)/d};return m.int32=function(){return 0|b.g(4)},m.quick=function(){return b.g(4)/4294967296},m.double=m,u(h(b.S),a),(e.pass||n||function(t,e,n,state){return state&&(state.S&©(state,b),t.state=function(){return copy(b,{})}),n?(s.random=t,e):t})(m,f,"global"in e?e.global:this==s,e.state)}function o(t){var e,n=t.length,me=this,a=0,s=me.i=me.j=0,i=me.S=[];for(n||(t=[n++]);a<p;)i[a]=a++;for(a=0;a<p;a++)i[a]=i[s=y&s+t[a%n]+(e=i[a])],i[s]=e;(me.g=function(t){for(var e,r=0,n=me.i,a=me.j,s=me.S;t--;)e=s[n=y&n+1],r=r*p+s[y&(s[n]=s[a=y&a+e])+(s[a]=e)];return me.i=n,me.j=a,r})(p)}function copy(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function c(t,e){var n=[],a=typeof t,s;if(e&&"object"==a)for(s in t)try{n.push(c(t[s],e-1))}catch(t){}return n.length?n:"string"==a?t:t+"\0"}function u(t,e){for(var n=t+"",a,s=0;s<n.length;)e[y&s]=y&(a^=19*e[y&s])+n.charCodeAt(s++);return h(e)}function l(){try{var t;return O&&(t=O.randomBytes)?t=t(p):(t=new Uint8Array(p),(e.crypto||e.msCrypto).getRandomValues(t)),h(t)}catch(t){var n=e.navigator,s=n&&n.plugins;return[+new Date,e,s,e.screen,h(a)]}}function h(t){return String.fromCharCode.apply(0,t)}var p=256,f=6,b=52,m="random",g=s.pow(p,6),v=s.pow(2,b),w=2*v,y=255,O;if(u(s.random(),a),"object"==typeof t&&t.exports){t.exports=i;try{O=n(477)}catch(t){}}else"function"==typeof define&&define.amd?define((function(){return i})):s.seedrandom=i}("undefined"!=typeof self?self:this,[],Math)},function(t,e){},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t,e){if(null!=t&&"bool"===t)throw new Error(`Unsupported data type ${t}`);return Object(i.a)(shape,0,1,t,e)}var s=n(2),i=n(267);const o=Object(s.b)({randomStandardNormal_:a});e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t,e,n){return Object(i.a)(shape,t,e,"int32",n)}var s=n(2),i=n(193);const o=Object(s.b)({randomUniformInt_:a});e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","reciprocal")};return s.a.runKernel(i._74,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({reciprocal_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=Object(s.a)(t,"x","reverse");return i.assert(1===e.rank,(()=>`Error in reverse1D: x must be rank 1 but got rank ${e.rank}.`)),Object(c.a)(e,0)}var s=n(3),i=n(5),o=n(2),c=n(70);const u=Object(o.b)({reverse1d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(s.a)(t,"x","reverse");return i.assert(2===n.rank,(()=>`Error in reverse2D: x must be rank 2 but got rank ${n.rank}.`)),Object(c.a)(n,e)}var s=n(3),i=n(5),o=n(2),c=n(70);const u=Object(o.b)({reverse2d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(s.a)(t,"x","reverse");return i.assert(3===n.rank,(()=>`Error in reverse3D: x must be rank 3 but got rank ${n.rank}.`)),Object(c.a)(n,e)}var s=n(3),i=n(5),o=n(2),c=n(70);const u=Object(o.b)({reverse3d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(s.a)(t,"x","reverse");return i.assert(4===n.rank,(()=>`Error in reverse4D: x must be rank 4 but got rank ${n.rank}.`)),Object(c.a)(n,e)}var s=n(3),i=n(5),o=n(2),c=n(70);const u=Object(o.b)({reverse4d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
async function a(t,e){const n=Object(i.a)(t,"x","setdiff1d"),a=Object(i.a)(e,"y","setdiff1d");o.assert(n.dtype===a.dtype,(()=>`x and y should have the same dtype, but got x (${n.dtype}) and y (${a.dtype}).`)),o.assert(1===n.rank,(()=>`x should be 1D tensor, but got x (${n.shape}).`)),o.assert(1===a.rank,(()=>`y should be 1D tensor, but got y (${a.shape}).`));const c=await n.data(),u=await a.data(),l=new Set(u);let h=0;for(let t=0;t<c.length;t++)l.has(c[t])||h++;const p=new s.b([h],n.dtype),f=new s.b([h],"int32");for(let t=0,e=0;t<c.length;t++)l.has(c[t])||(p.values[e]=c[t],f.values[e]=t,e++);return[p.toTensor(),f.toTensor()]}var s=n(6),i=n(3),o=n(5);const c=a;e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","sign")};return s.a.runKernel(i._91,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sign_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size){const n=Object(s.a)(t,"x","slice1d");return i.assert(1===n.rank,(()=>`slice1d expects a rank-1 tensor, but got a rank-${n.rank} tensor`)),Object(c.a)(n,[e],[size])}var s=n(3),i=n(5),o=n(2),c=n(42);const u=Object(o.b)({slice1d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size){const n=Object(s.a)(t,"x","slice2d");return i.assert(2===n.rank,(()=>`slice2d expects a rank-2 tensor, but got a rank-${n.rank} tensor`)),Object(c.a)(n,e,size)}var s=n(3),i=n(5),o=n(2),c=n(42);const u=Object(o.b)({slice2d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size){const n=Object(s.a)(t,"x","slice3d");return i.assert(3===n.rank,(()=>`slice3d expects a rank-3 tensor, but got a rank-${n.rank} tensor`)),Object(c.a)(n,e,size)}var s=n(3),i=n(5),o=n(2),c=n(42);const u=Object(o.b)({slice3d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,size){const n=Object(s.a)(t,"x","slice4d");return i.assert(4===n.rank,(()=>`slice4d expects a rank-4 tensor, but got a rank-${n.rank} tensor`)),Object(c.a)(n,e,size)}var s=n(3),i=n(5),o=n(2),c=n(42);const u=Object(o.b)({slice4d_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=-1){const n=Object(o.a)(t,"logits","softmax","float32");if(-1===e&&(e=n.rank-1),e!==n.rank-1)throw Error(`Softmax along a non-last dimension is not yet supported. Logits was rank ${n.rank} and dim was ${e}`);const a={logits:n},c={dim:e};return s.a.runKernel(i._95,a,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({softmax_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,c=0,u=0,l=0,h=0,p=0){const f=undefined,b={x:Object(o.a)(t,"x","stridedSlice","string_or_numeric")},m={begin:e,end:n,strides:a,beginMask:c,endMask:u,ellipsisMask:l,newAxisMask:h,shrinkAxisMask:p};return s.a.runKernel(i._109,b,m)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({stridedSlice_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const e=undefined,n={x:Object(o.a)(t,"x","tan","float32")};return s.a.runKernel(i._115,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({tan_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e){if(Object(i.assertNonNull)(t),null!=shape&&4!==shape.length)throw new Error("tensor4d() requires shape to have four numbers");const n=Object(s.c)(t,e);if(4!==n.length&&1!==n.length)throw new Error("tensor4d() requires values to be number[][][][] or flat/TypedArray");if(1===n.length&&null==shape)throw new Error("tensor4d() requires shape to be provided when `values` are a flat array");return Object(o.a)(t,shape,n,e)}e.a=a;var s=n(3),i=n(5),o=n(67)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e){if(Object(i.assertNonNull)(t),null!=shape&&5!==shape.length)throw new Error("tensor5d() requires shape to have five numbers");const n=Object(s.c)(t,e);if(5!==n.length&&1!==n.length)throw new Error("tensor5d() requires values to be number[][][][][] or flat/TypedArray");if(1===n.length&&null==shape)throw new Error("tensor5d() requires shape to be provided when `values` are a flat array");return Object(o.a)(t,shape,n,e)}e.a=a;var s=n(3),i=n(5),o=n(67)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,shape,e){if(Object(i.assertNonNull)(t),null!=shape&&6!==shape.length)throw new Error("tensor6d() requires shape to have six numbers");const n=Object(s.c)(t,e);if(6!==n.length&&1!==n.length)throw new Error("tensor6d() requires values to be number[][][][][][] or flat/TypedArray");if(1===n.length&&null==shape)throw new Error("tensor6d() requires shape to be provided when `values` are a flat array");return shape=shape||n,Object(o.a)(t,shape,n,e)}e.a=a;var s=n(3),i=n(5),o=n(67)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(o.a)(t,"tensor","tensorScatterupdate"),c=Object(o.a)(e,"indices","tensorScatterupdate","int32"),l=Object(o.a)(n,"updates","tensorScatterupdate");if(u.validateInput(l,c,a.shape),a.dtype!==l.dtype)throw new Error(`tensor and updates must have the same dtype, instead they are ${a.dtype} and ${l.dtype}.`);const h={tensor:a,indices:c,updates:l},p={};return s.a.runKernel(i._117,h,p)}var s=n(4),i=n(1),o=n(3),c=n(2),u=n(152);const l=Object(c.b)({tensorScatterUpdate_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(shape,t=0,e=1,n,a){if(Object(s.d)(shape),null!=n&&"bool"===n)throw new Error("Unsupported data type $ { dtype }");const o=new c.a(t,e,n,true,a),u=Object(i.a)(shape,n);for(let t=0;t<u.values.length;t++)u.values[t]=o.nextValue();return u.toTensor()}var s=n(35),i=n(68),o=n(2),c=n(148);const u=Object(o.b)({truncatedNormal_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){return Object(s.a)(t,e,"right")}e.a=a;var s=n(188)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=true,n,a){return s.a.makeVariable(t,e,n,a)}e.a=a;var s=n(4)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
async function a(t,e,n){const a=Object(s.a)(t,"tensor","boolMask"),h=Object(s.a)(e,"mask","boolMask","bool"),p=null==n?0:n,f=h.rank,b=a.shape;i.assert(f>0,(()=>"mask cannot be scalar")),i.assertShapesMatch(b.slice(p,p+f),h.shape,"mask's shape must match the first K dimensions of tensor's shape,");let m=1;for(let t=p;t<p+f;t++)m*=b[t];const g=b.slice(0,p).concat([m],b.slice(p+f)),v=Object(c.a)(a,g),w=Object(c.a)(h,[-1]),y=await Object(l.a)(w),O=Object(u.a)(y,[1]),x=Object(o.a)(v,O,p);return t!==a&&a.dispose(),e!==h&&h.dispose(),O.dispose(),v.dispose(),w.dispose(),y.dispose(),x}var s=n(3),i=n(5),o=n(140),c=n(7),u=n(151),l=n(278);const h=a;e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,h=true){const m=Object(i.a)(t,"v","movingAverage"),g=Object(i.a)(e,"x","movingAverage"),v=Object(i.a)(n,"decay","movingAverage");Object(s.assertTypesMatch)(m,g),o.assert(o.arraysEqual(m.shape,g.shape),(()=>"Shape mismatch in v and x"));const w=Object(f.a)(1),y=Object(b.a)(w,v);let update=Object(l.a)(Object(b.a)(g,m),y);if(h){o.assert(null!=a,(()=>"When using zeroDebias: true, step is required."));const t=Object(i.a)(a,"step","movingAverage");update=Object(u.a)(update,Object(b.a)(w,Object(p.a)(v,t)))}return Object(c.a)(m,update)}var s=n(23),i=n(3),o=n(5),c=n(20),u=n(16),l=n(9),h=n(2),p=n(81),f=n(22),b=n(18);const m=Object(h.b)({movingAverage_:a});e.a=m},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,shape){Object(c.d)(shape);const n=Object(o.a)(t,"indices","scatterND","int32"),a=Object(o.a)(e,"updates","scatterND");l.validateInput(a,n,shape);const u={indices:n,updates:a},h={shape:shape};return s.a.runKernel(i._86,u,h)}var s=n(4),i=n(1),o=n(3),c=n(35),u=n(2),l=n(152);const h=Object(u.b)({scatterND_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=0){Object(u.d)(n);const l=Object(c.a)(t,"sparseIndices","sparseToDense","int32"),h=Object(c.a)(e,"sparseValues","sparseToDense","string_or_numeric"),p=Object(c.a)(a,"defaultValue","sparseToDense",h.dtype);o.a(l,h,n,p);const f={sparseIndices:l,sparseValues:h,defaultValue:p},b={outputShape:n};return s.a.runKernel(i._102,f,b)}var s=n(4),i=n(1),o=n(505),c=n(3),u=n(35),l=n(2);const h=Object(l.b)({sparseToDense_:a});e.a=h},function(t,e,n){"use strict";function a(t,e,n,a){if("int32"!==t.dtype)throw new Error(`tf.sparseToDense() expects the indices to be int32 type, but the dtype was ${t.dtype}.`);if(t.rank>2)throw new Error(`sparseIndices should be a scalar, vector, or matrix, but got shape ${t.shape}.`);const s=t.rank>0?t.shape[0]:1,i=t.rank>1?t.shape[1]:1;if(n.length!==i)throw new Error(`outputShape has incorrect number of elements:, ${n.length}, should be: ${i}.`);const o=e.size;if(!(0===e.rank||1===e.rank&&o===s))throw new Error(`sparseValues has incorrect shape ${e.shape}, should be [] or [${s}]`);if(e.dtype!==a.dtype)throw new Error("sparseValues.dtype must match defaultValues.dtype")}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(o.a)(e,"indices","gatherND","int32"),a=undefined,c={params:Object(o.a)(t,"x","gatherND","string_or_numeric"),indices:n};return s.a.runKernel(i._16,c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({gatherND_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const f=Object(i.a)(t,"x","dropout");if(o.assert("float32"===f.dtype,(()=>`x has to be a floating point tensor since it's going to be scaled, but got a ${f.dtype} tensor instead.`)),o.assert(e>=0&&e<1,(()=>`rate must be a float in the range [0, 1), but got ${e}.`)),0===e)return t instanceof s.a?f.clone():f;const m=Object(l.a)(f,n),g=1-e,v=Object(u.a)(Object(h.a)(Object(c.a)(Object(b.a)(m,0,1,"float32",a),g)),g);return Object(p.a)(f,v)}var s=n(6),i=n(3),o=n(5),c=n(20),u=n(16),l=n(508),h=n(184),p=n(9),f=n(2),b=n(193);const m=Object(f.b)({dropout_:a});e.a=m},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){if(null==e)return t.shape.slice();if(s.arraysEqual(t.shape,e))return e;if(t.shape.length===e.length){const n=[];for(let a=0;a<t.shape.length;a++)null==e[a]&&null!=t.shape[a]?n.push(t.shape[a]):n.push(e[a]);return n}return e}e.a=a;var s=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
async function a(t,e,n=1){const a=Object(s.a)(t,"predictions","inTopK"),c=Object(s.a)(e,"targets","inTopK");Object(i.assert)(a.rank>1,(()=>`inTopK() expects the predictions to be of rank 2 or higher, but got ${a.rank}`)),Object(i.assert)(a.rank-1===c.rank,(()=>`predictions rank should be 1 larger than targets rank, but got predictions rank ${a.rank} and targets rank ${c.rank}`)),Object(i.assertShapesMatch)(a.shape.slice(0,a.shape.length-1),c.shape,"predictions's shape should be align with the targets' shape, except the last dimension.");const u=a.shape[a.shape.length-1];Object(i.assert)(n>0&&n<=u,(()=>`'k' passed to inTopK() must be > 0 && <= the predictions last dimension (${u}), but got ${n}`));const l=await a.data(),h=await c.data(),[p,size]=[l.length/u,u],f=Object(i.getTypedArrayFromDType)("bool",p);for(let t=0;t<p;t++){const e=t*size,a=l.subarray(e,e+size),s=[];for(let t=0;t<a.length;t++)s.push({value:a[t],index:t});s.sort(((t,e)=>e.value-t.value)),f[t]=0;for(let e=0;e<n;e++)if(s[e].index===h[t]){f[t]=1;break}}return t!==a&&a.dispose(),e!==c&&c.dispose(),Object(o.a)(f,c.shape,"bool")}var s=n(3),i=n(5),o=n(135);const c=a;e.a=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(511),s=n(512),i=n(513);n.d(e,"conv2d",(function(){return a.a})),n.d(e,"depthwiseConv2d",(function(){return s.a})),n.d(e,"matMul",(function(){return i.a}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a({x:t,filter:filter,strides:e,pad:n,dataFormat:a="NHWC",dilations:w=[1,1],dimRoundingMode:O,bias:x,activation:A="linear",preluActivationWeights:I,leakyreluAlpha:j}){if(A=A||"linear",false===Object(v.d)(s.a.state.gradientDepth,A)){l.assert("NHWC"===a,(()=>`Error in fused conv2d: got dataFormat of ${a} but only NHWC is currently supported for the case of gradient depth is 0 and the activation is not linear.`));let s=Object(f.a)(t,filter,e,n,a,w,O);return null!=x&&(s=Object(h.a)(s,x)),Object(v.a)(s,A,I,j)}const C=Object(u.a)(t,"x","conv2d","float32"),_=Object(u.a)(filter,"filter","conv2d","float32");let k=C,S=false;3===C.rank&&(S=true,k=Object(y.a)(C,[1,C.shape[0],C.shape[1],C.shape[2]])),l.assert(4===k.rank,(()=>`Error in fused conv2d: input must be rank 4, but got rank ${k.rank}.`)),l.assert(4===_.rank,(()=>`Error in fused conv2d: filter must be rank 4, but got rank ${_.rank}.`)),g.a("fused conv2d",n,O);const T="NHWC"===a?k.shape[3]:k.shape[1];l.assert(_.shape[2]===T,(()=>`Error in conv2d: depth of input (${T}) must match input depth for filter ${_.shape[2]}.`)),l.assert(g.i(e,w),(()=>`Error in conv2D: Either strides or dilations must be 1. Got strides ${e} and dilations '${w}'`));const L=g.b(k.shape,_.shape,e,w,n,O);let B,N;if(null!=x&&(B=Object(u.a)(x,"bias","fused conv2d"),[B]=Object(c.makeTypesMatch)(B,C),"NHWC"===a?p.assertAndGetBroadcastShape(L.outShape,B.shape):(l.assert(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}.`)),l.assert(0===B.shape.length||B.shape[0]===L.outChannels||1===B.shape[0],(()=>`Error in fused conv2d: bias shape (${B.shape}) is not compatible with the number of output channels (${L.outChannels})`)))),null!=I){const t=I.shape;if(l.assert(t.length<=1||3===t.length,(()=>`Error in fused conv2d: only supports scalar, 1-D Tensor or 3-D Tensor PReLU activation weights but got a tensor of rank-${t.length}.`)),1===t.length)l.assert(1===t[0]||t[0]===L.outChannels,(()=>`Error in fused conv2d: PReLU activation weights (${t}) is not compatible with the number of output channels (${L.outChannels}).`));else if(3===t.length)try{p.assertAndGetBroadcastShape(t,L.outShape)}catch(e){const n=`Error in fused conv2d: PReLU activation weights (${t}) is not compatible with the output shape of the conv2d (${L.outShape}).`;throw Error(n)}N=Object(u.a)(I,"prelu weights","fused conv2d")}const E=(t,s)=>{l.assert("NHWC"===a,(()=>`Error in gradient of fused conv2D: got dataFormat of ${a} but only NHWC is currently supported.`));const[i,o,c,u]=s,h=Object(v.c)(t,c,A);l.assert(g.k(w),(()=>`Error in gradient of fused conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '${w}'`));const p=undefined,f=undefined,y=[Object(m.a)(o.shape,h,i,e,n),Object(b.a)(o,h,i.shape,e,n)];if(null!=u){const t=Object(v.b)(u,h);y.push(t)}return y},M={x:k,filter:_,bias:B,preluActivationWeights:N},F={strides:e,pad:n,dataFormat:a,dilations:w,dimRoundingMode:O,activation:A,leakyreluAlpha:j};if(null==x){const t=Object(i.a)(((t,filter,save)=>{let e=s.a.runKernel(o._14,M,F);return save([filter,t,e]),S&&(e=Object(y.a)(e,[e.shape[1],e.shape[2],e.shape[3]])),{value:e,gradFunc:E}}));return t(k,_)}{const t=Object(i.a)(((t,filter,e,save)=>{let n=s.a.runKernel(o._14,M,F);return save([filter,t,n,e]),S&&(n=Object(y.a)(n,[n.shape[1],n.shape[2],n.shape[3]])),{value:n,gradFunc:E}}));return t(k,_,B)}}var s=n(4),i=n(69),o=n(1),c=n(23),u=n(3),l=n(5),h=n(20),p=n(19),f=n(93),b=n(202),m=n(178),g=n(33),v=n(122),w=n(2),y=n(7);const O=Object(w.b)({fusedConv2d_:a});e.a=O},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a({x:t,filter:filter,strides:e,pad:n,dataFormat:a="NHWC",dilations:w=[1,1],dimRoundingMode:O,bias:x,activation:A="linear",preluActivationWeights:I,leakyreluAlpha:j}){if(false===Object(v.d)(s.a.state.gradientDepth,A)){let s=Object(b.a)(t,filter,e,n,a,w,O);return null!=x&&(s=Object(h.a)(s,x)),Object(v.a)(s,A,I,j)}const C=Object(u.a)(t,"x","depthwiseConv2d","float32"),_=Object(u.a)(filter,"filter","depthwiseConv2d","float32");let k=C,S=false;3===C.rank&&(S=true,k=Object(y.a)(C,[1,C.shape[0],C.shape[1],C.shape[2]])),l.assert(4===k.rank,(()=>`Error in fused depthwiseConv2d: input must be rank 4, but got rank ${k.rank}.`)),l.assert(4===_.rank,(()=>`Error in fused depthwiseConv2d: filter must be rank 4, but got rank ${_.rank}.`)),l.assert(k.shape[3]===_.shape[2],(()=>`Error in fused depthwiseConv2d: number of input channels (${k.shape[3]}) must match the inChannels dimension in filter ${_.shape[2]}.`)),null==w&&(w=[1,1]),l.assert(f.i(e,w),(()=>`Error in fused depthwiseConv2d: Either strides or dilations must be 1. Got strides ${e} and dilations '${w}'`)),f.a("fused depthwiseConv2d",n,O);const T=f.b(k.shape,_.shape,e,w,n,O,true);let L,B;null!=x&&(L=Object(u.a)(x,"bias","fused conv2d"),[L]=Object(c.makeTypesMatch)(L,C),p.assertAndGetBroadcastShape(T.outShape,L.shape)),null!=I&&(B=Object(u.a)(I,"prelu weights","fused depthwiseConv2d"));const N=(t,a)=>{l.assert(f.k(w),(()=>`Error in gradient of fused depthwiseConv2d: dilation rates greater than 1 are not yet supported. Got dilations '${w}'`));const[s,i,o,c]=a,u=Object(v.c)(t,o,A),h=Object(g.a)(i.shape,u,s,e,n,w,O),p=Object(m.a)(i,u,s.shape,e,n,w,O);if(null!=c){const t=undefined;return[h,p,Object(v.b)(L,u)]}return[h,p]},E={x:k,filter:_,bias:L,preluActivationWeights:B},M={strides:e,pad:n,dataFormat:a,dilations:w,dimRoundingMode:O,activation:A,leakyreluAlpha:j};if(null==x){const t=Object(i.a)(((t,filter,save)=>{let e=s.a.runKernel(o._15,E,M);return save([filter,t,e]),S&&(e=Object(y.a)(e,[e.shape[1],e.shape[2],e.shape[3]])),{value:e,gradFunc:N}}));return t(k,_)}{const t=Object(i.a)(((t,filter,e,save)=>{let n=s.a.runKernel(o._15,E,M);return save([filter,t,n,e]),S&&(n=Object(y.a)(n,[n.shape[1],n.shape[2],n.shape[3]])),{value:n,gradFunc:N}}));return t(k,_,L)}}var s=n(4),i=n(69),o=n(1),c=n(23),u=n(3),l=n(5),h=n(20),p=n(19),f=n(33),b=n(137),m=n(280),g=n(281),v=n(122),w=n(2),y=n(7);const O=Object(w.b)({fusedDepthwiseConv2d_:a});e.a=O},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a({a:t,b:e,transposeA:n=false,transposeB:a=false,bias:m,activation:v="linear",preluActivationWeights:w,leakyreluAlpha:y=.2}){if(false===Object(f.d)(s.a.state.gradientDepth,v)){let s=Object(b.a)(t,e,n,a);return null!=m&&(s=Object(h.a)(s,m)),Object(f.a)(s,v,w,y)}let O=Object(u.a)(t,"a","fused matMul"),x=Object(u.a)(e,"b","fused matMul");[O,x]=Object(c.makeTypesMatch)(O,x);const A=n?O.shape[O.rank-2]:O.shape[O.rank-1],I=a?x.shape[x.rank-1]:x.shape[x.rank-2],j=n?O.shape[O.rank-1]:O.shape[O.rank-2],C=a?x.shape[x.rank-2]:x.shape[x.rank-1],_=O.shape.slice(0,-2),k=x.shape.slice(0,-2),S=l.sizeFromShape(_),T=l.sizeFromShape(k);l.assert(A===I,(()=>`Error in fused matMul: inner shapes (${A}) and (${I}) of Tensors with shapes ${O.shape} and ${x.shape} and transposeA=${n} and transposeB=${a} must match.`));const L=undefined,B=p.assertAndGetBroadcastShape(O.shape.slice(0,-2),x.shape.slice(0,-2)).concat([j,C]),N=n?Object(g.a)(O,[S,A,j]):Object(g.a)(O,[S,j,A]),E=a?Object(g.a)(x,[T,C,I]):Object(g.a)(x,[T,I,C]);let M,F;null!=m&&(M=Object(u.a)(m,"bias","fused matMul"),[M]=Object(c.makeTypesMatch)(M,O),p.assertAndGetBroadcastShape(B,M.shape)),null!=w&&(F=Object(u.a)(w,"prelu weights","fused matMul"));const W=(t,e)=>{const[s,i,o,c]=e,u=Object(f.c)(Object(g.a)(t,o.shape),o,v);let l,h;if(n||a?!n&&a?(l=Object(b.a)(u,i,false,false),h=Object(b.a)(u,s,true,false)):n&&!a?(l=Object(b.a)(i,u,false,true),h=Object(b.a)(s,u,false,false)):(l=Object(b.a)(i,u,true,true),h=Object(b.a)(u,s,true,true)):(l=Object(b.a)(u,i,false,true),h=Object(b.a)(s,u,true,false)),null!=m){const t=undefined;return[l,h,Object(f.b)(c,u)]}return[l,h]},z={a:N,b:E,bias:M,preluActivationWeights:F},P={transposeA:n,transposeB:a,activation:v,leakyreluAlpha:y};if(null==m){const t=Object(i.a)(((t,e,save)=>{const n=s.a.runKernel(o._127,z,P);return save([t,e,n]),{value:Object(g.a)(n,B),gradFunc:W}}));return t(N,E)}{const t=Object(i.a)(((t,e,n,save)=>{const a=s.a.runKernel(o._127,z,P);return save([t,e,a,n]),{value:Object(g.a)(a,B),gradFunc:W}}));return t(N,E,M)}}var s=n(4),i=n(69),o=n(1),c=n(23),u=n(3),l=n(5),h=n(20),p=n(19),f=n(122),b=n(54),m=n(2),g=n(7);const v=Object(m.b)({fusedMatMul_:a});e.a=v},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return Object(i.a)(t,.54,.46)}var s=n(2),i=n(153);const o=Object(s.b)({hammingWindow_:a});e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,i=l.a){null==a&&(a=Object(o.b)(e));const h=Object(u.a)(t,e,n),p=Object(s.a)(h,i(e));return Object(c.a)(p,a)}var s=n(9),i=n(2),o=n(153),c=n(198),u=n(283),l=n(282);const h=Object(i.b)({stft_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(image,t,e,n,a="bilinear",u=0){const l=Object(o.a)(image,"image","cropAndResize"),h=Object(o.a)(t,"boxes","cropAndResize","float32"),p=Object(o.a)(e,"boxInd","cropAndResize","int32"),f=h.shape[0];c.assert(4===l.rank,(()=>`Error in cropAndResize: image must be rank 4,but got rank ${l.rank}.`)),c.assert(2===h.rank&&4===h.shape[1],(()=>`Error in cropAndResize: boxes must be have size [${f},4] but had shape ${h.shape}.`)),c.assert(1===p.rank&&p.shape[0]===f,(()=>`Error in cropAndResize: boxInd must be have size [${f}] but had shape ${h.shape}.`)),c.assert(2===n.length,(()=>`Error in cropAndResize: cropSize must be of length 2, but got length ${n.length}.`)),c.assert(n[0]>=1&&n[1]>=1,(()=>`cropSize must be atleast [1,1], but was ${n}`)),c.assert("bilinear"===a||"nearest"===a,(()=>`method must be bilinear or nearest, but was ${a}`));const b={image:l,boxes:h,boxInd:p},m={method:a,extrapolationValue:u,cropSize:n},g=undefined;return s.a.runKernel(i.M,b,m)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({cropAndResize_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(image){const t=Object(o.a)(image,"image","flipLeftRight","float32");c.assert(4===t.rank,(()=>`Error in flipLeftRight: image must be rank 4,but got rank ${t.rank}.`));const e={image:t},n=undefined;return s.a.runKernel(i._9,e,{})}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({flipLeftRight_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(image){const t=Object(s.a)(image,"image","grayscaleToRGB"),e=t.rank-1,n=t.shape[e];i.assert(t.rank>=2,(()=>`Error in grayscaleToRGB: images must be at least rank 2, but got rank ${t.rank}.`)),i.assert(1===n,(()=>`Error in grayscaleToRGB: last dimension of a grayscale image should be size 1, but got size ${n}.`));const a=new Array(t.rank);return a.fill(1,0,e),a[e]=3,Object(c.a)(t,a)}var s=n(3),i=n(5),o=n(2),c=n(116);const u=Object(o.b)({grayscaleToRGB_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(image){const t=Object(s.a)(image,"image","RGBToGrayscale"),e=t.rank-1,n=t.shape[e];i.assert(t.rank>=2,(()=>`Error in RGBToGrayscale: images must be at least rank 2, but got rank ${t.rank}.`)),i.assert(3===n,(()=>`Error in RGBToGrayscale: last dimension of an RGB image should be size 3, but got size ${n}.`));const a=t.dtype,l=Object(o.a)(t,"float32"),p=Object(h.a)([.2989,.587,.114]);let f;switch(t.rank){case 2:f=Object(c.a)("ij,j->i",l,p);break;case 3:f=Object(c.a)("ijk,k->ij",l,p);break;case 4:f=Object(c.a)("ijkl,l->ijk",l,p);break;case 5:f=Object(c.a)("ijklm,m->ijkl",l,p);break;case 6:f=Object(c.a)("ijklmn,n->ijklm",l,p);break;default:throw new Error("Not a valid tensor rank.")}return f=Object(u.a)(f,-1),Object(o.a)(f,a)}var s=n(3),i=n(5),o=n(13),c=n(255),u=n(115),l=n(2),h=n(85);const p=Object(l.b)({rgbToGrayscale_:a});e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(image,t,e=0,n=.5){const a=Object(o.a)(image,"image","rotateWithOffset","float32");c.assert(4===a.rank,(()=>`Error in rotateWithOffset: image must be rank 4,but got rank ${a.rank}.`));const u={image:a},l={radians:t,fillValue:e,center:n},h=undefined;return s.a.runKernel(i._83,u,l)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const l=Object(u.b)({rotateWithOffset_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=.5,u=Number.NEGATIVE_INFINITY){const l=Object(o.a)(t,"boxes","nonMaxSuppression","float32"),h=Object(o.a)(e,"scores","nonMaxSuppression","float32"),p=Object(c.a)(l,h,n,a,u),f={maxOutputSize:n=p.maxOutputSize,iouThreshold:a=p.iouThreshold,scoreThreshold:u=p.scoreThreshold};return s.a.runKernel(i._56,{boxes:l,scores:h},f)}var s=n(4),i=n(1),o=n(3),c=n(99),u=n(2);const l=Object(u.b)({nonMaxSuppression_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
async function a(t,e,n,a=.5,u=Number.NEGATIVE_INFINITY){const l=Object(i.a)(t,"boxes","nonMaxSuppressionAsync"),h=Object(i.a)(e,"scores","nonMaxSuppressionAsync"),p=Object(o.a)(l,h,n,a,u);n=p.maxOutputSize,a=p.iouThreshold,u=p.scoreThreshold;const f=await Promise.all([l.data(),h.data()]),b=f[0],m=f[1],{selectedIndices:g}=Object(s.a)(b,m,n,a,u);return l!==t&&l.dispose(),h!==e&&h.dispose(),Object(c.a)(g,"int32")}var s=n(154),i=n(3),o=n(99),c=n(85);const u=a;e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const index=s(t,e,n),a=index<0?-(index+1):index;t.splice(a,0,e)}function s(t,e,n){return o(t,e,n||i)}function i(t,e){return t>e?1:t<e?-1:0}function o(t,e,n){let a=0,s=t.length,i=0,o=false;for(;a<s;){i=a+(s-a>>>1);const c=n(e,t[i]);c>0?a=i+1:(s=i,o=!c)}return o?a:-a-1}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=.5,u=Number.NEGATIVE_INFINITY,l=0){const h=Object(o.a)(t,"boxes","nonMaxSuppression"),p=Object(o.a)(e,"scores","nonMaxSuppression"),f=Object(c.a)(h,p,n,a,u,l),b={boxes:h,scores:p},m={maxOutputSize:n=f.maxOutputSize,iouThreshold:a=f.iouThreshold,scoreThreshold:u=f.scoreThreshold,softNmsSigma:l=f.softNmsSigma},g=s.a.runKernel(i._58,b,m);return{selectedIndices:g[0],selectedScores:g[1]}}var s=n(4),i=n(1),o=n(3),c=n(99),u=n(2);const l=Object(u.b)({nonMaxSuppressionWithScore_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
async function a(t,e,n,a=.5,u=Number.NEGATIVE_INFINITY,l=0){const h=Object(i.a)(t,"boxes","nonMaxSuppressionAsync"),p=Object(i.a)(e,"scores","nonMaxSuppressionAsync"),f=Object(o.a)(h,p,n,a,u,l);n=f.maxOutputSize,a=f.iouThreshold,u=f.scoreThreshold,l=f.softNmsSigma;const b=await Promise.all([h.data(),p.data()]),m=b[0],g=b[1],{selectedIndices:v,selectedScores:w}=Object(s.c)(m,g,n,a,u,l);return h!==t&&h.dispose(),p!==e&&p.dispose(),{selectedIndices:Object(c.a)(v,"int32"),selectedScores:Object(c.a)(w)}}var s=n(154),i=n(3),o=n(99),c=n(85);const u=a;e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=.5,u=Number.NEGATIVE_INFINITY,l=false){const h=Object(o.a)(t,"boxes","nonMaxSuppression"),p=Object(o.a)(e,"scores","nonMaxSuppression"),f=Object(c.a)(h,p,n,a,u,null),b=undefined,m=undefined,g=undefined,v={boxes:h,scores:p},w={maxOutputSize:f.maxOutputSize,iouThreshold:f.iouThreshold,scoreThreshold:f.scoreThreshold,padToMaxOutputSize:l},y=s.a.runKernel(i._57,v,w);return{selectedIndices:y[0],validOutputs:y[1]}}var s=n(4),i=n(1),o=n(3),c=n(99),u=n(2);const l=Object(u.b)({nonMaxSuppressionPadded_:a});e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
async function a(t,e,n,a=.5,l=Number.NEGATIVE_INFINITY,h=false){const p=Object(i.a)(t,"boxes","nonMaxSuppressionAsync"),f=Object(i.a)(e,"scores","nonMaxSuppressionAsync"),b=Object(o.a)(p,f,n,a,l,null),m=b.maxOutputSize,g=b.iouThreshold,v=b.scoreThreshold,[w,y]=await Promise.all([p.data(),f.data()]),{selectedIndices:O,validOutputs:x}=Object(s.b)(w,y,m,g,v,h);return p!==t&&p.dispose(),f!==e&&f.dispose(),{selectedIndices:Object(u.a)(O,"int32"),validOutputs:Object(c.a)(x,"int32")}}var s=n(154),i=n(3),o=n(99),c=n(22),u=n(85);const l=a;e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(image,t="binary",e=false,n=.5){const a=Object(C.a)(image,"image","threshold"),o=.2989,f=.587,g=.114,v=a.shape[0]*a.shape[1];let y=Object(m.a)(Object(i.a)([n]),255),r,O,x,A;if(j.assert(3===a.rank,(()=>`Error in threshold: image must be rank 3,but got rank ${a.rank}.`)),j.assert(3===a.shape[2]||1===a.shape[2],(()=>`Error in threshold: image color channel must be equal to 3 or 1but got ${a.shape[2]}.`)),j.assert("int32"===a.dtype||"float32"===a.dtype,(()=>`Error in dtype: image dtype must be int32 or float32,but got dtype ${a.dtype}.`)),j.assert("otsu"===t||"binary"===t,(()=>`Method must be binary or otsu, but was ${t}`)),3===a.shape[2]){[r,O,x]=Object(u.a)(a,[1,1,1],-1);const t=Object(m.a)(r,o),e=Object(m.a)(O,f),n=Object(m.a)(x,g);A=Object(b.a)(Object(b.a)(t,e),n)}else A=image;if("otsu"===t){const t=undefined;y=s(Object(l.a)(Object(c.a)(Object(w.a)(A),"int32"),Object(I.a)([]),256),v)}const _=e?Object(h.a)(A,y):Object(p.a)(A,y),k=undefined;return Object(c.a)(Object(m.a)(_,255),"int32")}function s(t,e){let n=Object(i.a)([-1]),a=Object(i.a)([0]),s=Object(i.a)([0]),o,c,u,l,h,w;for(let index=0;index<t.size-1;index++){o=Object(x.a)(t,0,index+1),c=Object(x.a)(t,index+1),h=Object(g.a)(Object(f.a)(o),e),w=Object(g.a)(Object(f.a)(c),e);const I=Object(f.a)(Object(m.a)(o,Object(A.a)(0,o.size)));u=Object(g.a)(I,Object(f.a)(o));const j=Object(O.a)(c.shape,o.size),C=Object(b.a)(Object(A.a)(0,c.size),j),_=Object(m.a)(c,C);l=Object(g.a)(Object(f.a)(_),Object(f.a)(c));const k=Object(v.a)(u,l),S=Object(v.a)(u,l),T=Object(m.a)(h,w);s=Object(m.a)(Object(m.a)(T,k),S);const L=Object(p.a)(s,a);a=Object(y.a)(L,s,a),n=Object(y.a)(L,Object(i.a)([index]),n)}return n}var i=n(85),o=n(2),c=n(13),u=n(98),l=n(246),h=n(82),p=n(62),f=n(26),b=n(20),m=n(9),g=n(16),v=n(18),w=n(268),y=n(49),O=n(113),x=n(42),A=n(194),I=n(135),j=n(5),C=n(3);const _=Object(o.b)({threshold_:a});e.a=_},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(image,t,e="nearest",n="constant",a=0,u){const l=Object(o.a)(image,"image","transform","float32"),h=Object(o.a)(t,"transforms","transform","float32");c.assert(4===l.rank,(()=>`Error in transform: image must be rank 4,but got rank ${l.rank}.`)),c.assert(2===h.rank&&(h.shape[0]===l.shape[0]||1===h.shape[0])&&8===h.shape[1],(()=>"Error in transform: Input transform should be batch x 8 or 1 x 8")),c.assert(null==u||2===u.length,(()=>`Error in transform: outputShape must be [height, width] or null, but got ${u}.`));const p={image:l,transforms:h},f={interpolation:e,fillMode:n,fillValue:a,outputShape:u};return s.a.runKernel(i._120,p,f)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2);const transform=Object(u.b)({transform_:a});e.a=transform},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(s.a)(t,"a","bandPart");Object(i.assert)(a.rank>=2,(()=>`bandPart(): Rank must be at least 2, got ${a.rank}.`));const shape=a.shape,[f,x]=a.shape.slice(-2);let A,I;"number"==typeof e?(Object(i.assert)(e%1==0,(()=>`bandPart(): numLower must be an integer, got ${e}.`)),Object(i.assert)(e<=f,(()=>`bandPart(): numLower (${e}) must not be greater than the number of rows (${f}).`)),A=Object(s.a)(e<0?f:e,"numLower","bandPart")):(Object(i.assert)("int32"===e.dtype,(()=>"bandPart(): numLower's dtype must be an int32.")),A=Object(y.a)(Object(c.a)(e,0),f,Object(h.a)(e,f))),"number"==typeof n?(Object(i.assert)(n%1==0,(()=>`bandPart(): numUpper must be an integer, got ${n}.`)),Object(i.assert)(n<=x,(()=>`bandPart(): numUpper (${n}) must not be greater than the number of columns (${x}).`)),I=Object(s.a)(n<0?x:n,"numUpper","bandPart")):(Object(i.assert)("int32"===n.dtype,(()=>"bandPart(): numUpper's dtype must be an int32.")),I=Object(y.a)(Object(c.a)(n,0),x,Object(h.a)(n,x)));const j=Object(m.a)(Object(b.a)(0,f,1,"int32"),[-1,1]),C=Object(b.a)(0,x,1,"int32"),_=Object(v.a)(j,C),k=Object(l.a)(Object(u.a)(_,A),Object(o.a)(_,Object(p.a)(I))),S=Object(O.a)([f,x],a.dtype);return Object(m.a)(Object(g.a)(Object(w.a)(Object(m.a)(a,[-1,f,x])).map((t=>Object(y.a)(k,t,S)))),shape)}var s=n(3),i=n(5),o=n(94),c=n(142),u=n(82),l=n(95),h=n(146),p=n(36),f=n(2),b=n(194),m=n(7),g=n(84),v=n(18),w=n(121),y=n(49),O=n(118);const x=Object(f.b)({bandPart_:a});e.a=x},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){let e;if(Array.isArray(t)){e=false,Object(i.assert)(null!=t&&t.length>0,(()=>"Gram-Schmidt process: input must not be null, undefined, or empty"));const n=t[0].shape[0];for(let e=1;e<t.length;++e)Object(i.assert)(t[e].shape[0]===n,(()=>`Gram-Schmidt: Non-unique lengths found in the input vectors: (${t[e].shape[0]} vs. ${n})`))}else e=true,t=Object(h.a)(t,t.shape[0],0).map((t=>Object(p.a)(t,[0])));Object(i.assert)(t.length<=t[0].shape[0],(()=>`Gram-Schmidt: Number of vectors (${t.length}) exceeds number of dimensions (${t[0].shape[0]}).`));const n=[],a=t;for(let e=0;e<t.length;++e)n.push(s.a.tidy((()=>{let t=a[e];if(e>0)for(let a=0;a<e;++a){const e=Object(c.a)(Object(m.a)(Object(c.a)(n[a],t)),n[a]);t=Object(b.a)(t,e)}return Object(o.a)(t,Object(u.a)(t,"euclidean"))})));return e?Object(f.a)(n,0):n}var s=n(4),i=n(5),o=n(16),c=n(9),u=n(139),l=n(2),h=n(98),p=n(151),f=n(84),b=n(18),m=n(26);const g=Object(l.b)({gramSchmidt_:a});e.a=g},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e=false){if(Object(c.assert)(t.rank>=2,(()=>`qr() requires input tensor to have a rank >= 2, but got rank ${t.rank}`)),2===t.rank)return s(t,e);{const n=t.shape.slice(0,t.shape.length-2).reduce(((t,e)=>t*e)),a=Object(C.a)(Object(y.a)(t,[n,t.shape[t.shape.length-2],t.shape[t.shape.length-1]]),0),i=[],o=[];a.forEach((t=>{const[n,a]=s(t,e);i.push(n),o.push(a)}));const q=undefined,r=undefined;return[Object(y.a)(Object(x.a)(i,0),t.shape),Object(y.a)(Object(x.a)(o,0),t.shape)]}}function s(t,e=false){return i.a.tidy((()=>{Object(c.assert)(2===t.shape.length,(()=>`qr2d() requires a 2D Tensor, but got a ${t.shape.length}D Tensor.`));const n=t.shape[0],a=t.shape[1];let q=Object(p.a)(n),r=Object(u.a)(t);const s=Object(I.a)([[1]],[1,1]);let w=Object(u.a)(s);const y=n>=a?a:n;for(let t=0;t<y;++t){const e=r,c=w,p=q;[w,r,q]=i.a.tidy((()=>{const e=Object(O.a)(r,[t,t],[n-t,1]),i=Object(v.a)(e),o=Object(O.a)(r,[t,t],[1,1]),c=Object(_.a)(Object(f.a)(o,0),Object(I.a)([[-1]]),Object(I.a)([[1]])),p=Object(A.a)(o,Object(m.a)(c,i)),y=Object(h.a)(e,p);w=1===y.shape[0]?Object(u.a)(s):Object(l.a)([s,Object(O.a)(y,[1,0],[y.shape[0]-1,y.shape[1]])],0);const x=Object(g.a)(Object(h.a)(Object(b.a)(c,p),i)),C=Object(O.a)(r,[t,0],[n-t,a]),k=Object(m.a)(x,w),S=Object(j.a)(w);if(0===t)r=Object(A.a)(C,Object(b.a)(k,Object(b.a)(S,C)));else{const e=Object(A.a)(C,Object(b.a)(k,Object(b.a)(S,C)));r=Object(l.a)([Object(O.a)(r,[0,0],[t,a]),e],0)}const T=Object(j.a)(k),L=Object(O.a)(q,[0,t],[n,q.shape[1]-t]);if(0===t)q=Object(A.a)(L,Object(b.a)(Object(b.a)(L,w),T));else{const e=Object(A.a)(L,Object(b.a)(Object(b.a)(L,w),T));q=Object(l.a)([Object(O.a)(q,[0,0],[n,t]),e],1)}return[w,r,q]})),Object(o.d)([e,c,p])}return!e&&n>a&&(q=Object(O.a)(q,[0,0],[n,a]),r=Object(O.a)(r,[0,0],[a,a])),[q,r]}))}var i=n(4),o=n(44),c=n(5),u=n(110),l=n(48),h=n(16),p=n(257),f=n(62),b=n(54),m=n(9),g=n(36),v=n(139),w=n(2),y=n(7),O=n(42),x=n(84),A=n(18),I=n(200),j=n(71),C=n(121),_=n(49);const k=Object(w.b)({qr_:a});e.a=k},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=c.a.SUM_BY_NONZERO_WEIGHTS){const u=Object(s.a)(t,"labels","absoluteDifference"),p=Object(s.a)(e,"predictions","absoluteDifference");let f=null;null!=n&&(f=Object(s.a)(n,"weights","absoluteDifference")),Object(i.assertShapesMatch)(u.shape,p.shape,"Error in absoluteDifference: ");const b=Object(o.a)(Object(l.a)(u,p));return Object(h.a)(b,f,a)}var s=n(3),i=n(5),o=n(92),c=n(57),u=n(2),l=n(18),h=n(63);const p=Object(u.b)({absoluteDifference_:a});e.a=p},function(t,e,n){"use strict";function a(t,e,n,a,u=o.a.SUM_BY_NONZERO_WEIGHTS){const b=Object(s.a)(t,"labels","cosineDistance"),m=Object(s.a)(e,"predictions","cosineDistance");let g=null;null!=a&&(g=Object(s.a)(a,"weights","cosineDistance")),Object(i.assertShapesMatch)(b.shape,m.shape,"Error in cosineDistance: ");const v=Object(l.a)(1),w=Object(h.a)(v,Object(p.a)(Object(c.a)(b,m),n,true));return Object(f.a)(w,g,u)}var s=n(3),i=n(5),o=n(57),c=n(9),u=n(2),l=n(22),h=n(18),p=n(26),f=n(63);const b=Object(u.b)({cosineDistance_:a});e.a=b},function(t,e,n){"use strict";function a(t,e,n,a=o.a.SUM_BY_NONZERO_WEIGHTS){let u=Object(s.a)(t,"labels","hingeLoss");const b=Object(s.a)(e,"predictions","hingeLoss");let m=null;null!=n&&(m=Object(s.a)(n,"weights","hingeLoss")),Object(i.assertShapesMatch)(u.shape,b.shape,"Error in hingeLoss: ");const g=Object(h.a)(1);u=Object(p.a)(Object(c.a)(Object(h.a)(2),u),g);const v=Object(l.a)(Object(p.a)(g,Object(c.a)(u,b)));return Object(f.a)(v,m,a)}var s=n(3),i=n(5),o=n(57),c=n(9),u=n(2),l=n(119),h=n(22),p=n(18),f=n(63);const b=Object(u.b)({hingeLoss_:a});e.a=b},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=1,p=u.a.SUM_BY_NONZERO_WEIGHTS){const v=Object(s.a)(t,"labels","huberLoss"),w=Object(s.a)(e,"predictions","huberLoss");let y=null;null!=n&&(y=Object(s.a)(n,"weights","huberLoss")),Object(i.assertShapesMatch)(v.shape,w.shape,"Error in huberLoss: ");const O=Object(f.a)(a),x=Object(o.a)(Object(m.a)(w,v)),A=Object(l.a)(x,O),I=Object(m.a)(x,A),j=Object(c.a)(Object(h.a)(Object(f.a)(.5),Object(b.a)(A)),Object(h.a)(O,I));return Object(g.a)(j,y,p)}var s=n(3),i=n(5),o=n(92),c=n(20),u=n(57),l=n(146),h=n(9),p=n(2),f=n(22),b=n(31),m=n(18),g=n(63);const v=Object(p.b)({huberLoss_:a});e.a=v},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=1e-7,p=u.a.SUM_BY_NONZERO_WEIGHTS){const g=Object(s.a)(t,"labels","logLoss"),v=Object(s.a)(e,"predictions","logLoss");let w=null;null!=n&&(w=Object(s.a)(n,"weights","logLoss")),Object(i.assertShapesMatch)(g.shape,v.shape,"Error in logLoss: ");const y=Object(f.a)(1),O=Object(f.a)(a),x=Object(h.a)(Object(l.a)(g,Object(c.a)(Object(o.a)(v,O)))),A=Object(l.a)(Object(b.a)(y,g),Object(c.a)(Object(o.a)(Object(b.a)(y,v),O))),I=Object(b.a)(x,A);return Object(m.a)(I,w,p)}var s=n(3),i=n(5),o=n(20),c=n(117),u=n(57),l=n(9),h=n(36),p=n(2),f=n(22),b=n(18),m=n(63);const g=Object(p.b)({logLoss_:a});e.a=g},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=o.a.SUM_BY_NONZERO_WEIGHTS){const c=Object(s.a)(t,"labels","meanSquaredError"),h=Object(s.a)(e,"predictions","meanSquaredError");let p=null;null!=n&&(p=Object(s.a)(n,"weights","meanSquaredError")),Object(i.assertShapesMatch)(c.shape,h.shape,"Error in meanSquaredError: ");const f=Object(u.a)(c,h);return Object(l.a)(f,p,a)}var s=n(3),i=n(5),o=n(57),c=n(2),u=n(199),l=n(63);const h=Object(c.b)({meanSquaredError_:a});e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=Object(i.a)(t,"labels","sigmoidCrossEntropyWithLogits"),a=Object(i.a)(e,"logits","sigmoidCrossEntropyWithLogits");Object(o.assertShapesMatch)(n.shape,a.shape,"Error in sigmoidCrossEntropyWithLogits: ");const s=Object(g.a)(a),p=Object(f.a)(a,n),m=Object(h.a)(Object(l.a)(Object(b.a)(Object(c.a)(a))));return Object(u.a)(Object(w.a)(s,p),m)}function s(t,e,n,s=0,c=p.a.SUM_BY_NONZERO_WEIGHTS){let l=Object(i.a)(t,"multiClassLabels","sigmoidCrossEntropy");const h=Object(i.a)(e,"logits","sigmoidCrossEntropy");let b=null;if(null!=n&&(b=Object(i.a)(n,"weights","sigmoidCrossEntropy")),Object(o.assertShapesMatch)(l.shape,h.shape,"Error in sigmoidCrossEntropy: "),s>0){const t=Object(v.a)(s),e=Object(v.a)(1),n=Object(v.a)(.5);l=Object(u.a)(Object(f.a)(l,Object(w.a)(e,t)),Object(f.a)(n,t))}const m=a(l,h);return Object(y.a)(m,b,c)}var i=n(3),o=n(5),c=n(92),u=n(20),l=n(61),h=n(259),p=n(57),f=n(9),b=n(36),m=n(2),g=n(119),v=n(22),w=n(18),y=n(63);const O=Object(m.b)({sigmoidCrossEntropy_:s});e.a=O},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n=-1){if(-1===n&&(n=e.rank-1),n!==e.rank-1)throw Error(`Softmax cross entropy along a non-last dimension is not yet supported. Labels / logits was rank ${e.rank} and dim was ${n}`);const a=Object(i.a)(((t,e,save)=>{const a=true,s=Object(b.a)(e,[n],a),i=Object(x.a)(Object(h.a)(e,"float32"),s);save([t,i]);const o=Object(v.a)(Object(g.a)(i,t)),c=undefined,u=(t,e)=>{const[a,s]=e,i=Object(l.e)(t.shape,[n]);return[Object(g.a)(Object(y.a)(t,i),Object(x.a)(Object(h.a)(a,"float32"),Object(f.a)(s))),Object(g.a)(Object(y.a)(t,i),Object(x.a)(Object(f.a)(s),Object(h.a)(a,"float32")))]};return{value:Object(A.a)(o,[n]),gradFunc:u}}));return a(t,e)}function s(t,e,n,s=0,i=m.a.SUM_BY_NONZERO_WEIGHTS){let l=Object(o.a)(t,"onehotLabels","softmaxCrossEntropy");const h=Object(o.a)(e,"logits","softmaxCrossEntropy");let f=null;if(null!=n&&(f=Object(o.a)(n,"weights","softmaxCrossEntropy")),Object(c.assertShapesMatch)(l.shape,h.shape,"Error in softmaxCrossEntropy: "),s>0){const t=Object(O.a)(s),e=Object(O.a)(1),n=Object(O.a)(l.shape[1]);l=Object(u.a)(Object(g.a)(l,Object(x.a)(e,t)),Object(p.a)(t,n))}const b=a(l,h);return Object(I.a)(b,f,i)}var i=n(69),o=n(3),c=n(5),u=n(20),l=n(55),h=n(13),p=n(16),f=n(61),b=n(186),m=n(57),g=n(9),v=n(36),w=n(2),y=n(7),O=n(22),x=n(18),A=n(26),I=n(63);const j=Object(w.b)({softmaxCrossEntropy_:s});e.a=j},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const c=Object(o.a)(t,"indices","sparseFillEmptyRows","int32"),u=Object(o.a)(e,"values","sparseFillEmptyRows"),l=Object(o.a)(n,"denseShape","sparseFillEmptyRows","int32"),h=Object(o.a)(a,"defaultValue","sparseFillEmptyRows",u.dtype);if(2!==c.rank)throw new Error(`Indices should be Tensor2D but received shape\n ${c.shape}`);if(1!==u.rank)throw new Error(`Values should be Tensor1D but received shape ${u.shape}`);if(1!==l.rank)throw new Error(`Dense shape should be Tensor1D but received shape ${l.shape}`);if(0!==h.rank)throw new Error(`Default value should be a scalar but received shape ${h.shape}`);const p={indices:c,values:u,denseShape:l,defaultValue:h},f=s.a.runKernel(i._98,p);return{outputIndices:f[0],outputValues:f[1],emptyRowIndicator:f[2],reverseIndexMap:f[3]}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sparseFillEmptyRows_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(o.a)(t,"inputIndices","sparseReshape","int32"),c=Object(o.a)(e,"inputShape","sparseReshape","int32"),u=Object(o.a)(n,"newShape","sparseReshape","int32");if(2!==a.rank)throw new Error(`Input indices should be Tensor2D but received shape\n ${a.shape}`);if(1!==c.rank)throw new Error(`Input shape should be Tensor1D but received shape ${c.shape}`);if(1!==u.rank)throw new Error(`New shape should be Tensor1D but received shape ${u.shape}`);const l={inputIndices:a,inputShape:c,newShape:u},h=s.a.runKernel(i._99,l);return{outputIndices:h[0],outputShape:h[1]}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sparseReshape_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(data,t,e){const n=Object(o.a)(data,"data","sparseSegmentMean"),a=Object(o.a)(t,"indices","sparseSegmentMean","int32"),c=Object(o.a)(e,"segmentIds","sparseSegmentMean","int32");if(n.rank<1)throw new Error("Data should be at least 1 dimensional but received scalar");if(1!==a.rank)throw new Error(`Indices should be Tensor1D but received shape\n ${a.shape}`);if(1!==c.rank)throw new Error(`Segment ids should be Tensor1D but received shape\n ${c.shape}`);const u={data:n,indices:a,segmentIds:c};return s.a.runKernel(i._100,u)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sparseSegmentMean_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(data,t,e){const n=Object(o.a)(data,"data","sparseSegmentSum"),a=Object(o.a)(t,"indices","sparseSegmentSum","int32"),c=Object(o.a)(e,"segmentIds","sparseSegmentSum","int32");if(n.rank<1)throw new Error("Data should be at least 1 dimensional but received scalar");if(1!==a.rank)throw new Error(`Indices should be Tensor1D but received shape\n ${a.shape}`);if(1!==c.rank)throw new Error(`Segment ids should be Tensor1D but received shape\n ${c.shape}`);const u={data:n,indices:a,segmentIds:c};return s.a.runKernel(i._101,u)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({sparseSegmentSum_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(data,t,e,n,a,c,u,l){const h=Object(o.a)(data,"data","stringNGrams","string");if("string"!==h.dtype)throw new Error("Data must be of datatype string");if(1!==h.shape.length)throw new Error(`Data must be a vector, saw: ${h.shape}`);const p=Object(o.a)(t,"dataSplits","stringNGrams");if("int32"!==p.dtype)throw new Error("Data splits must be of datatype int32");const f={separator:e,nGramWidths:n,leftPad:a,rightPad:c,padWidth:u,preserveShortSequences:l},b={data:h,dataSplits:p},m=s.a.runKernel(i._110,b,f);return{nGrams:m[0],nGramsSplits:m[1]}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({stringNGrams_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t,e=true){const n=Object(o.a)(input,"input","stringSplit","string"),a=Object(o.a)(t,"delimiter","stringSplit","string");if(1!==n.rank)throw new Error(`Input should be Tensor1D but received shape ${n.shape}`);if(0!==a.rank)throw new Error(`Delimiter should be a scalar but received shape ${a.shape}`);const c={skipEmpty:e},u={input:n,delimiter:a},l=s.a.runKernel(i._111,u,c);return{indices:l[0],values:l[1],shape:l[2]}}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({stringSplit_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t){const e=Object(o.a)(input,"input","stringToHashBucketFast","string"),n={numBuckets:t};if(t<=0)throw new Error("Number of buckets must be at least 1");const a={input:e};return s.a.runKernel(i._112,a,n)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({stringToHashBucketFast_:a});e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t,e,n=true){const a=Object(o.a)(input,"input","staticRegexReplace","string"),c={pattern:t,rewrite:e,replaceGlobal:n};return s.a.runKernel(i._107,{x:a},c)}var s=n(4),i=n(1),o=n(3),c=n(2);const u=Object(c.b)({staticRegexReplace_:a});e.a=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(235),s=n(237),i=n(550),o=n(551),c=n(78),u=n(553),l=n(91),h=n(287),p=n(80),f=n(238);n.d(e,"copyModel",(function(){return f.b})),n.d(e,"listModels",(function(){return f.c})),n.d(e,"moveModel",(function(){return f.d})),n.d(e,"removeModel",(function(){return f.e})),n.d(e,"browserFiles",(function(){return i.a})),n.d(e,"browserHTTPRequest",(function(){return o.a})),n.d(e,"CompositeArrayBuffer",(function(){return p.a})),n.d(e,"concatenateArrayBuffers",(function(){return c.d})),n.d(e,"decodeWeights",(function(){return c.e})),n.d(e,"decodeWeightsStream",(function(){return c.f})),n.d(e,"encodeWeights",(function(){return c.g})),n.d(e,"fromMemory",(function(){return u.a})),n.d(e,"fromMemorySync",(function(){return u.b})),n.d(e,"getLoadHandlers",(function(){return l.b})),n.d(e,"getModelArtifactsForJSON",(function(){return c.h})),n.d(e,"getModelArtifactsForJSONSync",(function(){return c.i})),n.d(e,"getModelArtifactsInfoForJSON",(function(){return c.j})),n.d(e,"getSaveHandlers",(function(){return l.c})),n.d(e,"getWeightSpecs",(function(){return c.l})),n.d(e,"http",(function(){return o.b})),n.d(e,"isHTTPScheme",(function(){return o.c})),n.d(e,"loadWeights",(function(){return h.a})),n.d(e,"registerLoadRouter",(function(){return l.d})),n.d(e,"registerSaveRouter",(function(){return l.e})),n.d(e,"weightsLoaderFactory",(function(){return h.d})),n.d(e,"withSaveHandler",(function(){return u.c})),n.d(e,"withSaveHandlerSync",(function(){return u.d}))},function(t,e,n){"use strict";function a(t){return new Promise((t=>setTimeout(t))).then(t)}function s(t="model"){return new m(t)}function i(t){return new g(t)}e.a=i;var o=n(109),c=n(39),u=n(78),l=n(91),h=n(80);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p="model",f=".json",b=".weights.bin";class m{constructor(t){if(!Object(c.c)().getBool("IS_BROWSER"))throw new Error("browserDownloads() cannot proceed because the current environment is not a browser.");t.startsWith(m.URL_SCHEME)&&(t=t.slice(m.URL_SCHEME.length)),null!=t&&0!==t.length||(t=p),this.modelJsonFileName=t+f,this.weightDataFileName=t+b}async save(t){if("undefined"==typeof document)throw new Error("Browser downloads are not supported in this environment since `document` is not present");const e=h.a.join(t.weightData),n=window.URL.createObjectURL(new Blob([e],{type:"application/octet-stream"}));if(t.modelTopology instanceof ArrayBuffer)throw new Error("BrowserDownloads.save() does not support saving model topology in binary formats yet.");{const e=[{paths:["./"+this.weightDataFileName],weights:t.weightSpecs}],s=Object(u.k)(t,e),i=window.URL.createObjectURL(new Blob([JSON.stringify(s)],{type:"application/json"})),o=null==this.modelJsonAnchor?document.createElement("a"):this.modelJsonAnchor;if(o.download=this.modelJsonFileName,o.href=i,await a((()=>o.dispatchEvent(new MouseEvent("click")))),null!=t.weightData){const t=null==this.weightDataAnchor?document.createElement("a"):this.weightDataAnchor;t.download=this.weightDataFileName,t.href=n,await a((()=>t.dispatchEvent(new MouseEvent("click"))))}return{modelArtifactsInfo:Object(u.j)(t)}}}}m.URL_SCHEME="downloads://";class g{constructor(t){if(null==t||t.length<1)throw new Error(`When calling browserFiles, at least 1 file is required, but received ${t}`);this.jsonFile=t[0],this.weightsFiles=t.slice(1)}async load(){return new Promise(((t,e)=>{const n=new FileReader;n.onload=n=>{const a=JSON.parse(n.target.result),s=a.modelTopology;if(null==s)return e(new Error(`modelTopology field is missing from file ${this.jsonFile.name}`)),void 0;const i=undefined;if(null==a.weightsManifest)return e(new Error(`weightManifest field is missing from file ${this.jsonFile.name}`)),void 0;if(0===this.weightsFiles.length)return t({modelTopology:s}),void 0;const o=Object(u.h)(a,(t=>this.loadWeights(t)));t(o)},n.onerror=t=>e(`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(t){const e=[],n=[];for(const a of t)e.push(...a.weights),n.push(...a.paths);const a=this.checkManifestAndWeightFiles(t),s=n.map((t=>this.loadWeightsFile(t,a[t])));return Promise.all(s).then((t=>[e,t]))}loadWeightsFile(t,file){return new Promise(((e,n)=>{const a=new FileReader;a.onload=t=>{const n=t.target.result;e(n)},a.onerror=e=>n(`Failed to weights data from file of path '${t}'.`),a.readAsArrayBuffer(file)}))}checkManifestAndWeightFiles(t){const e=[],n=this.weightsFiles.map((file=>Object(u.c)(file.name))),a={};for(const group of t)group.paths.forEach((t=>{const s=Object(u.c)(t);if(-1!==e.indexOf(s))throw new Error(`Duplicate file basename found in weights manifest: '${s}'`);if(e.push(s),-1===n.indexOf(s))throw new Error(`Weight file with basename '${s}' is not provided.`);a[t]=this.weightsFiles[n.indexOf(s)]}));if(e.length!==this.weightsFiles.length)throw new Error(`Mismatch in the number of files in weights manifest (${e.length}) and the number of weight files provided (${this.weightsFiles.length}).`);return a}}const v=url=>Object(c.c)().getBool("IS_BROWSER")&&!Array.isArray(url)&&url.startsWith(m.URL_SCHEME)?s(url.slice(m.URL_SCHEME.length)):null;l.a.registerSaveRouter(v)},function(t,e,n){"use strict";function parseUrl(url){const t=url.lastIndexOf("/"),e=url.lastIndexOf("?"),n=undefined,a=undefined;return[url.substring(0,t)+"/",e>t?url.substring(e):""]}function a(url){return null!=url.match(b.URL_SCHEME_REGEX)}function http(t,e){return new b(t,e)}function s(t,e){return http(t,e)}e.c=a,e.b=http,e.a=s;var i=n(39),o=n(5),c=n(78),u=n(80),l=n(91),h=n(287);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p="application/octet-stream",f="application/json";class b{constructor(t,e){if(this.DEFAULT_METHOD="POST",null==e&&(e={}),this.weightPathPrefix=e.weightPathPrefix,this.weightUrlConverter=e.weightUrlConverter,null!=e.fetchFunc?(Object(o.assert)("function"==typeof e.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=e.fetchFunc):this.fetch=Object(i.c)().platform.fetch,Object(o.assert)(null!=t&&t.length>0,(()=>"URL path for http must not be null, undefined or empty.")),Array.isArray(t)&&Object(o.assert)(2===t.length,(()=>`URL paths for http must have a length of 2, (actual length is ${t.length}).`)),this.path=t,null!=e.requestInit&&null!=e.requestInit.body)throw new Error("requestInit is expected to have no pre-existing body, but has one.");this.requestInit=e.requestInit||{},this.loadOptions=e}async save(t){if(t.modelTopology instanceof ArrayBuffer)throw new Error("BrowserHTTPRequest.save() does not support saving model topology in binary formats yet.");const init=Object.assign({method:this.DEFAULT_METHOD},this.requestInit);init.body=new FormData;const e=[{paths:["./model.weights.bin"],weights:t.weightSpecs}],n=Object(c.k)(t,e);if(init.body.append("model.json",new Blob([JSON.stringify(n)],{type:f}),"model.json"),null!=t.weightData){const e=u.a.join(t.weightData);init.body.append("model.weights.bin",new Blob([e],{type:p}),"model.weights.bin")}const a=await this.fetch(this.path,init);if(a.ok)return{modelArtifactsInfo:Object(c.j)(t),responses:[a]};throw new Error(`BrowserHTTPRequest.save() failed due to HTTP response status ${a.status}.`)}async loadModelJSON(){const t=await this.fetch(this.path,this.requestInit);if(!t.ok)throw new 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.`);let e;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.",new Error(e)}const n=e.modelTopology,a=e.weightsManifest;if(null==n&&null==a)throw new Error(`The JSON from HTTP path ${this.path} contains neither model topology or manifest for weights.`);return e}async load(){if(this.loadOptions.streamWeights)return this.loadStream();const t=await this.loadModelJSON();return Object(c.h)(t,(t=>this.loadWeights(t)))}async loadStream(){const t=await this.loadModelJSON(),e=await this.getWeightUrls(t.weightsManifest),n=Object(c.l)(t.weightsManifest),a=()=>Object(h.c)(e,this.loadOptions);return Object.assign(Object.assign({},t),{weightSpecs:n,getWeightStream:a})}async getWeightUrls(t){const e=Array.isArray(this.path)?this.path[1]:this.path,[n,a]=parseUrl(e),s=this.weightPathPrefix||n,i=[],o=[];for(const e of t)for(const t of e.paths)null!=this.weightUrlConverter?o.push(this.weightUrlConverter(t)):i.push(s+t+a);return this.weightUrlConverter&&i.push(...await Promise.all(o)),i}async loadWeights(t){const e=await this.getWeightUrls(t),n=undefined,a=undefined;return[Object(c.l)(t),await Object(h.b)(e,this.loadOptions)]}}b.URL_SCHEME_REGEX=/^https?:\/\//;const m=(url,t)=>{if("undefined"==typeof fetch&&(null==t||null==t.fetchFunc))return null;{let e=true;if(e=Array.isArray(url)?url.every((t=>a(t))):a(url),e)return http(url,t)}return null};l.a.registerSaveRouter(m),l.a.registerLoadRouter(m)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){function i(t){Object(s.assert)(null!=t&&Array.isArray(t)&&t.length>0,(()=>"promises must be a none empty array"))}function o(t,e){Object(s.assert)(t>=0&&t<=1,(()=>`Progress fraction must be in range [0, 1], but got startFraction ${t}`)),Object(s.assert)(e>=0&&e<=1,(()=>`Progress fraction must be in range [0, 1], but got endFraction ${e}`)),Object(s.assert)(e>=t,(()=>`startFraction must be no more than endFraction, but got startFraction ${t} and endFraction ${e}`))}i(t),o(n=null==n?0:n,a=null==a?1:a);let c=0;const u=s=>(s.then((s=>{const i=n+ ++c/t.length*(a-n);return e(i),s})),s);return Promise.all(t.map(u))}e.a=a;var s=n(5)},function(t,e,n){"use strict";function a(t,e,n,a){const i=arguments;return new l(s(...i))}function s(t,e,n,a){if(1===arguments.length){const e=undefined;return null!=t.modelTopology||null!=t.weightSpecs?new c(t):(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 c({modelTopology:t}))}return 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 c({modelTopology:t,weightSpecs:e,weightData:n,trainingConfig:a})}function i(t){return new u(t)}function o(t){return new u(t)}e.a=a,e.b=s,e.c=i,e.d=o;
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class c{constructor(t){this.modelArtifacts=t}load(){return this.modelArtifacts}}class u{constructor(t){this.saveHandler=t}save(t){return this.saveHandler(t)}}class l{constructor(t){t.load&&(this.load=()=>Promise.resolve(t.load())),t.save&&(this.save=e=>Promise.resolve(t.save(e)))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(555);n.d(e,"confusionMatrix",(function(){return a.a}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=Object(s.a)(t,"labels","confusionMatrix"),l=Object(s.a)(e,"predictions","confusionMatrix");i.assert(null==n||n>0&&Number.isInteger(n),(()=>`If provided, numClasses must be a positive integer, but got ${n}`)),i.assert(1===a.rank,(()=>`Expected the rank of labels to be 1, but got ${a.rank}`)),i.assert(1===l.rank,(()=>`Expected the rank of predictions to be 1, but got ${l.rank}`)),i.assert(a.shape[0]===l.shape[0],(()=>`Mismatch in the number of examples: ${a.shape[0]} vs. ${l.shape[0]}. Labels and predictions should have the same number of elements.`)),i.assert(n>0&&Number.isInteger(n),(()=>`numClasses is required to be a positive integer, but got ${n}`));const p=Object(u.a)(Object(o.a)(a,"int32"),n),f=Object(u.a)(Object(o.a)(l,"int32"),n),b=Object(h.a)(p),product=Object(c.a)(b,f);return Object(o.a)(product,"int32")}var s=n(3),i=n(5),o=n(13),c=n(54),u=n(191),l=n(2),h=n(71);const p=Object(l.b)({confusionMatrix_:a});e.a=p},function(t,e,n){"use strict";function a(t,e=3){if(e>4)throw new Error("Cannot construct Tensor with more than 4 channels from pixels.");if(null==t)throw new Error("pixels passed to tf.browser.fromPixels() can not be null");let n=false,a=false,s=false,i=false,o=false,c=false;if(t.data instanceof Uint8Array)n=true;else if("undefined"!=typeof ImageData&&t instanceof ImageData)a=true;else if("undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement)s=true;else if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement)i=true;else if(null!=t.getContext)o=true;else{if(!("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap))throw new 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 ${t.constructor.name}`);c=true}const u=undefined;if(null!=Object(v.c)(g._12,b.a.backendName)){const n={pixels:t},a={numChannels:e};return b.a.runKernel(g._12,n,a)}const[l,h]=s?[t.videoWidth,t.videoHeight]:[t.width,t.height];let p,f;if(o)p=t.getContext("2d").getImageData(0,0,l,h).data;else if(a||n)p=t.data;else if(i||s||c){if(null==I)if("undefined"==typeof document){if("undefined"==typeof OffscreenCanvas||"undefined"==typeof OffscreenCanvasRenderingContext2D)throw new Error("Cannot parse input in current context. Reason: OffscreenCanvas Context2D rendering is not supported.");I=new OffscreenCanvas(1,1).getContext("2d")}else I=document.createElement("canvas").getContext("2d",{willReadFrequently:true});I.canvas.width=l,I.canvas.height=h,I.drawImage(t,0,0,l,h),p=I.getImageData(0,0,l,h).data}if(4===e)f=new Int32Array(p);else{const t=l*h;f=new Int32Array(t*e);for(let n=0;n<t;n++)for(let t=0;t<e;++t)f[n*e+t]=p[4*n+t]}const m=[h,l,e];return Object(A.a)(f,m,"int32")}function s(t){return null!=t&&t.data instanceof Uint8Array}function i(){return"undefined"!=typeof window&&"undefined"!=typeof ImageBitmap&&window.hasOwnProperty("createImageBitmap")}function o(t){return null!=t&&0!==t.width&&0!==t.height}function c(t){return i()&&!(t instanceof ImageBitmap)&&o(t)&&!s(t)}async function u(t,e=3){let n=null;if(Object(m.c)().getBool("WRAP_TO_IMAGEBITMAP")&&c(t)){let e;try{e=await createImageBitmap(t,{premultiplyAlpha:"none"})}catch(t){e=null}n=null!=e&&e.width===t.width&&e.height===t.height?e:t}else n=t;return a(n,e)}function l(t){if(2!==t.rank&&3!==t.rank)throw new Error(`toPixels only supports rank 2 or 3 tensors, got rank ${t.rank}.`);const e=2===t.rank?1:t.shape[2];if(e>4||2===e)throw new Error(`toPixels only supports depth of size 1, 3 or 4 but got ${e}`);if("float32"!==t.dtype&&"int32"!==t.dtype)throw new Error(`Unsupported type for toPixels: ${t.dtype}. Please use float32 or int32 tensors.`)}function h(t){const e=(null==t?void 0:t.alpha)||1;if(e>1||e<0)throw new Error(`Alpha value ${e} is suppoed to be in range [0 - 1].`)}async function p(t,e){let n=Object(y.a)(t,"img","toPixels");if(!(t instanceof w.a)){const t=n;n=Object(O.a)(t,"int32"),t.dispose()}l(n);const[a,s]=n.shape.slice(0,2),i=2===n.rank?1:n.shape[2],data=await n.data(),o="float32"===n.dtype?255:1,c=new Uint8ClampedArray(s*a*4);for(let t=0;t<a*s;++t){const e=[0,0,0,255];for(let d=0;d<i;d++){const a=data[t*i+d];if("float32"===n.dtype){if(a<0||a>1)throw new Error(`Tensor values for a float32 Tensor must be in the range [0 - 1] but encountered ${a}.`)}else if("int32"===n.dtype&&(a<0||a>255))throw new Error(`Tensor values for a int32 Tensor must be in the range [0 - 255] but encountered ${a}.`);1===i?(e[0]=a*o,e[1]=a*o,e[2]=a*o):e[d]=a*o}const a=4*t;c[a+0]=Math.round(e[0]),c[a+1]=Math.round(e[1]),c[a+2]=Math.round(e[2]),c[a+3]=Math.round(e[3])}if(null!=e){if(!j){const t=undefined;null!=Object(v.c)(g.Y,b.a.backendName)&&(console.warn("tf.browser.toPixels is not efficient to draw tensor on canvas. Please try tf.browser.draw instead."),j=true)}e.width=s,e.height=a;const t=e.getContext("2d"),n=new ImageData(c,s,a);t.putImageData(n,0,0)}return n!==t&&n.dispose(),c}function f(image,t,e){let n=Object(y.a)(image,"img","draw");if(!(image instanceof w.a)){const t=n;n=Object(O.a)(t,"int32"),t.dispose()}l(n),h(null==e?void 0:e.imageOptions);const a={image:n},s={canvas:t,options:e};b.a.runKernel(g.Y,a,s)}Object.defineProperty(e,"__esModule",{value:true}),e.fromPixelsAsync=u,e.toPixels=p,e.draw=f;var b=n(4),m=n(39),g=n(1),v=n(134),w=n(6),y=n(3),O=n(13),x=n(2),A=n(275);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
let I,j=false;const C=Object(x.b)({fromPixels_:a});e.fromPixels=C},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));
/** @license See the LICENSE file. */
const a="4.15.0"},function(t,e,n){"use strict";var a;
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s=n(289).a;e.a=s},function(t,e,n){"use strict";(function(t){function a(){return new Promise((t=>s((()=>t()))))}n.d(e,"a",(function(){return a}));
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const s="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:void 0!==t?t:t=>t()}).call(e,n(560).setImmediate)},function(t,e,n){"use strict";(function(t){function a(id,t){this._id=id,this._clearFn=t}var s=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;e.setTimeout=function(){return new a(i.call(setTimeout,s,arguments),clearTimeout)},e.setInterval=function(){return new a(i.call(setInterval,s,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(s,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function e(){t._onTimeout&&t._onTimeout()}),e))},n(561),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(132))},function(t,e,n){"use strict";(function(t,e){!function(t,n){function a(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return m[b]=a,w(b),b++}function s(t){delete m[t]}function i(t){var e=t.callback,a=t.args;switch(a.length){case 0:e();break;case 1:e(a[0]);break;case 2:e(a[0],a[1]);break;case 3:e(a[0],a[1],a[2]);break;default:e.apply(n,a)}}function o(t){if(g)setTimeout(o,0,t);else{var e=m[t];if(e){g=true;try{i(e)}finally{s(t),g=false}}}}function c(){w=function(t){e.nextTick((function(){o(t)}))}}function u(){if(t.postMessage&&!t.importScripts){var e=true,n=t.onmessage;return t.onmessage=function(){e=false},t.postMessage("","*"),t.onmessage=n,e}}function l(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&o(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,false):t.attachEvent("onmessage",n),w=function(n){t.postMessage(e+n,"*")}}function h(){var t=new MessageChannel;t.port1.onmessage=function(t){var e;o(t.data)},w=function(e){t.port2.postMessage(e)}}function p(){var html=v.documentElement;w=function(t){var e=v.createElement("script");e.onreadystatechange=function(){o(t),e.onreadystatechange=null,html.removeChild(e),e=null},html.appendChild(e)}}function f(){w=function(t){setTimeout(o,0,t)}}if(!t.setImmediate){var b=1,m={},g=false,v=t.document,w,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?c():u()?l():t.MessageChannel?h():v&&"onreadystatechange"in v.createElement("script")?p():f(),y.setImmediate=a,y.clearImmediate=s}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(132),n(133))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){try{return t.map((t=>Object(i.decodeString)(t)))}catch(t){throw new Error(`Failed to decode encoded string bytes into utf-8, error: ${t}`)}}function s(t){return t.map((t=>Object(i.encodeString)(t)))}Object.defineProperty(e,"__esModule",{value:true}),e.fromUint8ToStringArray=a,e.fromStringArrayToUint8=s;var i=n(5),o=n(55);n.d(e,"axesAreInnerMostDims",(function(){return o.b})),n.d(e,"combineLocations",(function(){return o.c})),n.d(e,"computeOutAndReduceShapes",(function(){return o.d})),n.d(e,"expandShapeToKeepDim",(function(){return o.e})),n.d(e,"assertAxesAreInnerMostDims",(function(){return o.a})),n.d(e,"getAxesPermutation",(function(){return o.f})),n.d(e,"getUndoAxesPermutation",(function(){return o.h})),n.d(e,"getInnerMostAxes",(function(){return o.g}));var c=n(19);n.d(e,"getBroadcastDims",(function(){return c.getBroadcastDims})),n.d(e,"getReductionAxes",(function(){return c.getReductionAxes})),n.d(e,"assertAndGetBroadcastShape",(function(){return c.assertAndGetBroadcastShape}));var u=n(563);n.d(e,"assertParamsConsistent",(function(){return u.a})),n.d(e,"computeOutShape",(function(){return u.b}));var l=n(33);n.d(e,"computeDilation2DInfo",(function(){return l.e})),n.d(e,"computePool2DInfo",(function(){return l.f})),n.d(e,"computePool3DInfo",(function(){return l.g})),n.d(e,"computeConv2DInfo",(function(){return l.b})),n.d(e,"computeConv3DInfo",(function(){return l.c})),n.d(e,"computeDefaultPad",(function(){return l.d})),n.d(e,"tupleValuesAreOne",(function(){return l.k})),n.d(e,"eitherStridesOrDilationsAreOne",(function(){return l.i})),n.d(e,"stridesOrDilationsArePositive",(function(){return l.j})),n.d(e,"convertConv2DDataFormat",(function(){return l.h})),n.d(e,"checkPadOnDimRoundingMode",(function(){return l.a}));var h=n(122);n.d(e,"getFusedDyActivation",(function(){return h.c})),n.d(e,"getFusedBiasGradient",(function(){return h.b})),n.d(e,"applyActivation",(function(){return h.a})),n.d(e,"shouldFuse",(function(){return h.d}));var p=n(564),f=n(565);n.d(e,"RowPartitionType",(function(){return f.a})),n.d(e,"combineRaggedTensorToTensorShapes",(function(){return f.b})),n.d(e,"getRowPartitionTypesHelper",(function(){return f.d})),n.d(e,"getRaggedRank",(function(){return f.c})),n.d(e,"validateDefaultValueShape",(function(){return f.e}));var b=n(290);n.d(e,"PARALLELIZE_THRESHOLD",(function(){return b.a})),n.d(e,"computeOptimalWindowSize",(function(){return b.b}));var m=n(209);n.d(e,"slice_util",(function(){return m}));var g=n(108);n.d(e,"upcastType",(function(){return g.e}));var v=n(566);n.d(e,"getImageCenter",(function(){return v.a}));var w=n(567);n.d(e,"getReshaped",(function(){return w.b})),n.d(e,"getPermuted",(function(){return w.a})),n.d(e,"getReshapedPermuted",(function(){return w.c})),n.d(e,"getSliceBeginCoords",(function(){return w.d})),n.d(e,"getSliceSize",(function(){return w.e}));var y=n(288);n.d(e,"prepareAndValidate",(function(){return y.prepareAndValidate}));var O=n(152);n.d(e,"validateUpdateShape",(function(){return O.validateUpdateShape})),n.d(e,"validateInput",(function(){return O.validateInput})),n.d(e,"calculateShapes",(function(){return O.calculateShapes}));var x=n(291);n.d(e,"SELU_SCALEALPHA",(function(){return x.b})),n.d(e,"SELU_SCALE",(function(){return x.a}));var A=n(568);n.d(e,"ERF_P",(function(){return A.f})),n.d(e,"ERF_A1",(function(){return A.a})),n.d(e,"ERF_A2",(function(){return A.b})),n.d(e,"ERF_A3",(function(){return A.c})),n.d(e,"ERF_A4",(function(){return A.d})),n.d(e,"ERF_A5",(function(){return A.e}));var I=n(172);n.d(e,"warn",(function(){return I.b})),n.d(e,"log",(function(){return I.a}));var j=n(569);n.d(e,"mergeRealAndImagArrays",(function(){return j.g})),n.d(e,"splitRealAndImagArrays",(function(){return j.h})),n.d(e,"complexWithEvenIndex",(function(){return j.b})),n.d(e,"complexWithOddIndex",(function(){return j.c})),n.d(e,"getComplexWithIndex",(function(){return j.f})),n.d(e,"assignToTypedArray",(function(){return j.a})),n.d(e,"exponents",(function(){return j.e})),n.d(e,"exponent",(function(){return j.d}));var C=n(570);n.d(e,"decodeEinsumEquation",(function(){return C.b})),n.d(e,"getEinsumPermutation",(function(){return C.d})),n.d(e,"checkEinsumDimSizes",(function(){return C.a})),n.d(e,"getEinsumComputePath",(function(){return C.c})),n.d(e,"isIdentityPermutation",(function(){return C.e}));var _=n(571);n.d(e,"prepareSplitSize",(function(){return _.a}));var k=n(572);n.d(e,"getSparseFillEmptyRowsIndicesDenseShapeMismatch",(function(){return k.a})),n.d(e,"getSparseFillEmptyRowsNegativeIndexErrorMessage",(function(){return k.b})),n.d(e,"getSparseFillEmptyRowsOutOfRangeIndexErrorMessage",(function(){return k.c}));var S=n(573);n.d(e,"getSparseReshapeMultipleNegativeOneOutputDimErrorMessage",(function(){return S.d})),n.d(e,"getSparseReshapeNegativeOutputDimErrorMessage",(function(){return S.e})),n.d(e,"getSparseReshapeEmptyTensorZeroOutputDimErrorMessage",(function(){return S.a})),n.d(e,"getSparseReshapeInputOutputMultipleErrorMessage",(function(){return S.c})),n.d(e,"getSparseReshapeInputOutputMismatchErrorMessage",(function(){return S.b}));var T=n(574);n.d(e,"getSparseSegmentReductionNegativeSegmentIdsErrorMessage",(function(){return T.b})),n.d(e,"getSparseSegmentReductionNonIncreasingSegmentIdsErrorMessage",(function(){return T.c})),n.d(e,"getSparseSegmentReductionSegmentIdOutOfRangeErrorMessage",(function(){return T.d})),n.d(e,"getSparseSegmentReductionIndicesOutOfRangeErrorMessage",(function(){return T.a}));var L=n(575);n.d(e,"segment_util",(function(){return L}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){const n=t[0].length;t.forEach(((shape,t)=>{i.assert(shape.length===n,(()=>`Error in concat${n}D: rank of tensors[${t}] must be the same as the rank of the rest (${n})`))})),i.assert(e>=0&&e<n,(()=>`Error in concat${n}D: axis must be between 0 and ${n-1}.`));const a=t[0];t.forEach(((shape,t)=>{for(let r=0;r<n;r++)i.assert(r===e||shape[r]===a[r],(()=>`Error in concat${n}D: Shape of tensors[${t}] (${shape}) does not match the shape of the rest (${a}) along the non-concatenated axis ${t}.`))}))}function s(t,e){const n=t[0].slice();for(let a=1;a<t.length;a++)n[e]+=t[a][e];return n}e.a=a,e.b=s;var i=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/},function(t,e,n){"use strict";function a(t,shape,e){let n=new Array;if(null==e&&null==shape)return n;if(null==shape)for(;n.length<t+e.length;)n.push(-1);else n=shape.slice();if(null==e)return n;if(t+e.length!==n.length)throw new Error(`rt input.shape and shape=${shape} are incompatible: rt input.rank = ${t+e.length}, but shape.rank = ${n.length}`);for(let a=1;a<e.length;++a){const s=e[a],i=n[n.length-e.length+a],o=n[i];if(s>=0)if(o>=0){if(o!==s)throw new Error(`rt input.shape and shape=${shape} are incompatible: rt input.shape[${a+t}] = ${s} but shape[${a+t}] = ${o}`)}else n[i]=s}return n}function s(t){const e={FIRST_DIM_SIZE:c.FIRST_DIM_SIZE,VALUE_ROWIDS:c.VALUE_ROWIDS,ROW_LENGTHS:c.ROW_LENGTHS,ROW_SPLITS:c.ROW_SPLITS,ROW_LIMITS:c.ROW_LIMITS,ROW_STARTS:c.ROW_STARTS},n=[];for(const a of t){if(!(a in e))break;n.push(e[a])}return n}function i(t){return 0===t.length?0:t[0]===c.FIRST_DIM_SIZE?t.length-1:t.length}function o(t,e){if(null==t||null==e)return;const n=t.length,a=e.length;if(n>=a)throw new Error(`defaultValue.shape=${t} and ragged tensor flatValues.shape=${e}, are incompatible: defaultValue.rank = ${n} must be less than ragged tensor input flatValues.rank = ${a})`);for(let s=0;s<Math.min(n,a-1);++s){const n=t[s],a=e[s+1];if(n>=0&&a>=0&&1!==n&&n!==a)throw new Error(`defaultValue.shape=${t}, and ragged tensor input flatValues.shape=${e} are incompatible: defaultValue.shape[${s-t.length}] = ${n} but ragged tensor input.flatValues.shape[${s-t.length}] = ${a}`)}}
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
var c;n.d(e,"a",(function(){return c})),e.b=a,e.d=s,e.c=i,e.e=o,function(t){t[t.FIRST_DIM_SIZE=0]="FIRST_DIM_SIZE",t[t.VALUE_ROWIDS=1]="VALUE_ROWIDS",t[t.ROW_LENGTHS=2]="ROW_LENGTHS",t[t.ROW_SPLITS=3]="ROW_SPLITS",t[t.ROW_LIMITS=4]="ROW_LIMITS",t[t.ROW_STARTS=5]="ROW_STARTS"}(c||(c={}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=undefined,s=undefined;return[n*("number"==typeof t?t:t[0]),e*("number"==typeof t?t:t[1])]}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,blockShape,e,n=true){let a=[];if(n)a=a.concat(blockShape.slice(0)),a.push(t[0]/e),a=a.concat(t.slice(1));else{a=a.concat(t[0]);const e=blockShape.length;for(let n=0;n<e;++n)a=a.concat([t[n+1]/blockShape[n],blockShape[n]]);a=a.concat(t.slice(e+1))}return a}function s(t,e,n=true){const a=[];if(n){a.push(e);for(let n=e+1;n<t;++n)n<=2*e?(a.push(n),a.push(n-(e+1))):a.push(n)}else{const n=[],s=[];for(let a=1;a<t;++a)a>=2*e+1||a%2==1?s.push(a):n.push(a);a.push(...n),a.push(0),a.push(...s)}return a}function i(t,blockShape,e,n=true){const a=[];n?a.push(t[0]/e):a.push(t[0]*e);for(let e=1;e<t.length;++e)e<=blockShape.length?n?a.push(blockShape[e-1]*t[e]):a.push(t[e]/blockShape[e-1]):a.push(t[e]);return a}function o(t,blockShape){const e=[0];for(let n=0;n<blockShape;++n)e.push(t[n][0]);return e}function c(t,e,blockShape){const n=t.slice(0,1);for(let a=0;a<blockShape;++a)n.push(t[a+1]-e[a][0]-e[a][1]);return n}e.b=a,e.a=s,e.c=i,e.d=o,e.e=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const a=.3275911;e.f=a;const s=.254829592;e.a=s;const i=-.284496736;e.b=i;const o=1.421413741;e.c=o;const c=-1.453152027;e.d=c;const u=1.061405429;e.e=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){if(t.length!==e.length)throw new Error(`Cannot merge real and imag arrays of different lengths. real:${t.length}, imag: ${e.length}.`);const n=new Float32Array(2*t.length);for(let a=0;a<n.length;a+=2)n[a]=t[a/2],n[a+1]=e[a/2];return n}function s(t){const e=new Float32Array(t.length/2),n=new Float32Array(t.length/2);for(let a=0;a<t.length;a+=2)e[a/2]=t[a],n[a/2]=t[a+1];return{real:e,imag:n}}function i(t){const e=Math.ceil(t.length/4),n=new Float32Array(e),a=new Float32Array(e);for(let e=0;e<t.length;e+=4)n[Math.floor(e/4)]=t[e],a[Math.floor(e/4)]=t[e+1];return{real:n,imag:a}}function o(t){const e=Math.floor(t.length/4),n=new Float32Array(e),a=new Float32Array(e);for(let e=2;e<t.length;e+=4)n[Math.floor(e/4)]=t[e],a[Math.floor(e/4)]=t[e+1];return{real:n,imag:a}}function c(t,index){const e=undefined,n=undefined;return{real:t[2*index],imag:t[2*index+1]}}function u(data,t,e,index){data[2*index]=t,data[2*index+1]=e}function l(t,e){const n=new Float32Array(t/2),a=new Float32Array(t/2);for(let s=0;s<Math.ceil(t/2);s++){const i=(e?2:-2)*Math.PI*(s/t);n[s]=Math.cos(i),a[s]=Math.sin(i)}return{real:n,imag:a}}function h(t,e,n){const a=(n?2:-2)*Math.PI*(t/e),s=undefined,i=undefined;return{real:Math.cos(a),imag:Math.sin(a)}}e.g=a,e.h=s,e.b=i,e.c=o,e.f=c,e.a=u,e.e=l,e.d=h},function(t,e,n){"use strict";function a(t,e){const n=((t=t.replace(/\s/g,"")).length-t.replace(p,"").length)/h.length;if(n<1)throw new Error("Equations without an arrow are not supported.");if(n>1)throw new Error('Equation must contain exactly one arrow ("->").');const[a,s]=t.split(h);Object(l.c)(-1===a.indexOf(b),(()=>'The ellipsis notation ("...") is not supported yet.'));const i=a.split(f),o=i.length;if(e!==o)throw new Error(`Expected ${o} input tensors, received ${e}`);if(o>2)throw new Error("Support for more than 2 input tensors is not implemented yet.");const c=[];for(let t=0;t<s.length;++t){const e=s[t];if(!i.some((t=>-1!==t.indexOf(e))))throw new Error(`Output subscripts contain the label ${e} not present in the input subscripts.`);-1===c.indexOf(e)&&c.push(e)}for(let t=0;t<a.length;++t){const e=a[t];-1===c.indexOf(e)&&e!==f&&c.push(e)}const u=new Array(i.length);for(let t=0;t<o;++t){if(new Set(i[t].split("")).size!==i[t].length)throw new Error(`Found duplicate axes in input component ${i[t]}. Support for duplicate axes in input is not implemented yet.`);u[t]=[];for(let e=0;e<i[t].length;++e)u[t].push(c.indexOf(i[t][e]))}const m=c.length,g=undefined,v=[];for(let t=s.length;t<m;++t)v.push(t);return{allDims:c,summedDims:v,idDims:u}}function s(t,e){let n=new Array(t);n.fill(-1);for(let t=0;t<e.length;++t)n[e[t]]=t;const a=[];for(let e=0;e<t;++e)-1===n[e]&&a.push(e);return n=n.filter((d=>-1!==d)),{permutationIndices:n,expandDims:a}}function i(t,e,n){const a=new Array(t);for(let t=0;t<n.length;++t){const shape=n[t].shape;for(let n=0;n<e[t].length;++n)void 0===a[e[t][n]]?a[e[t][n]]=shape[n]:Object(l.c)(a[e[t][n]]===shape[n],(()=>`Expected dimension ${a[e[t][n]]} at axis ${n} of input shaped ${JSON.stringify(shape)}, but got dimension ${shape[n]}`))}}function o(t,e){const n=t,a=[];let s=0;0===t.length&&n.push(-1),s=t.length+1;for(let t=0;t<s;++t)a.push([]);const i=[];for(let t=0;t<n.length;++t){const s=undefined,o=u(e,n[t]);for(const e of o)-1===i.indexOf(e)&&(a[t].push(e),i.push(e))}return{path:n,steps:a}}function c(t){return t.every(((t,index)=>t===index))}function u(t,e){const n=[];for(let a=0;a<t.length;++a)0!==t[a].length&&-1===t[a].indexOf(e)&&-1!==e||n.push(a);return n}e.b=a,e.d=s,e.a=i,e.c=o,e.e=c;var l=n(35);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const h="->",p=/->/g,f=",",b="..."},function(t,e,n){"use strict";function a(t,e,n=0){let a=[];if("number"==typeof e)Object(s.assert)(t.shape[n]%e==0,(()=>"Number of splits must evenly divide the axis.")),a=new Array(e).fill(t.shape[n]/e);else{const i=e.reduce(((t,e)=>(-1===e&&(t+=1),t)),0);Object(s.assert)(i<=1,(()=>"There should be only one negative value in split array."));const o=e.indexOf(-1);if(-1!==o){const a=e.reduce(((t,e)=>e>0?t+e:t));e[o]=t.shape[n]-a}Object(s.assert)(t.shape[n]===e.reduce(((t,e)=>t+e)),(()=>"The sum of sizes must match the size of the axis dimension.")),a=e}return a}e.a=a;var s=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){return`Received SparseTensor with denseShape[0] = 0 but\n indices.shape[0] = ${t}`}function s(index,t){return`indices(${index}, 0) is invalid: ${t} < 0`}function i(index,t,e){return`indices(${index}, 0) is invalid: ${t} >= ${e}`}e.a=a,e.b=s,e.c=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){return`only one output dimension may be -1, not both ${t} and ${e}`}function s(t,e){return`size ${t} must be non-negative, not ${e}`}function i(){return"reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero"}function o(t,e){const n=undefined,a=undefined;return`Input to reshape is a SparseTensor with ${Object(u.sizeFromShape)(t)}\n dense values, but the requested shape requires a multiple of ${Object(u.sizeFromShape)(e)}. inputShape=${t} outputShape= ${e}`}function c(t,e){const n=undefined,a=undefined;return`Input to reshape is a tensor with ${Object(u.sizeFromShape)(t)} dense values, but the requested shape has ${Object(u.sizeFromShape)(e)}. inputShape=${t} outputShape=${e}`}e.d=a,e.e=s,e.a=i,e.c=o,e.b=c;var u=n(5)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(){return"segment ids must be >= 0"}function s(){return"segment ids are not increasing"}function i(t,e){return`Segment id ${t} out of range [0, ${e}), possibly because segmentIds input is not sorted.`}function o(index,t,e){return`Bad: indices[${index}] == ${t} out of range [0, ${e})`}e.b=a,e.c=s,e.d=i,e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=false,a;for(t<=c.a?(a=t,n=true):a=Object(o.nearestDivisor)(t,Math.floor(Math.sqrt(t)));!n;)a>e||a===t?n=true:a=Object(o.nearestDivisor)(t,a+1);return a}function s(t,e,n){const a=[],s=t.length;for(let i=0;i<s;i++)i!==e?a.push(t[i]):a.push(n);return a}function i(t,e,n,a){const s=e.shape.length,i=t.shape.length;if(0!==a&&(a<-s||a>s))throw new Error(`Expect batchDims in the range of [-${s}, ${s}], but got ${a}`);if(a<0&&(a+=s),a>i)throw new Error(`batchDims (${a}) must be less than rank(x) (\n ${i}).`);if(n<a)throw new Error(`batchDims (${a}) must be less than or equal to axis (${n}).`);for(let n=0;n<a;++n)if(t.shape[n]!==e.shape[n])throw new Error(`x.shape[${n}]: ${t.shape[n]} should be equal to indices.shape[${n}]: ${e.shape[n]}.`);const o=t.shape[n],c=[];let u=1,l=1,h=1;for(let e=0;e<a;++e)c.push(t.shape[e]),u*=t.shape[e];for(let e=a;e<n;e++)c.push(t.shape[e]),l*=t.shape[e];for(let t=a;t<s;t++)c.push(e.shape[t]);for(let e=n+1;e<i;e++)c.push(t.shape[e]),h*=t.shape[e];return{batchSize:u,sliceSize:h,outerSize:l,dimSize:o,outputShape:c}}Object.defineProperty(e,"__esModule",{value:true}),e.segOpComputeOptimalWindowSize=a,e.computeOutShape=s,e.collectGatherOpShapeInfo=i;var o=n(5),c=n(290)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(154);n.d(e,"nonMaxSuppressionV3Impl",(function(){return a.a})),n.d(e,"nonMaxSuppressionV4Impl",(function(){return a.b})),n.d(e,"nonMaxSuppressionV5Impl",(function(){return a.c}));var s=n(279);n.d(e,"whereImpl",(function(){return s.a}))},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(16),o=n(36),c=n(22),u=n(56),l=n(31),h=n(18);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p={kernelName:a.b,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>{const e=Object(l.a)(Object(s.a)(n,"float32")),a=Object(u.a)(Object(h.a)(Object(c.a)(1),e));return Object(o.a)(Object(i.a)(t,a))}}}};e.a=p},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(16),o=n(56),c=n(31),u=n(18);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const l={kernelName:a.c,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>{const e=Object(o.a)(Object(u.a)(Object(c.a)(Object(s.a)(n,"float32")),1));return Object(i.a)(t,e)}}}};e.a=l},function(t,e,n){"use strict";var a=n(1),s=n(19),i=n(7),o=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a.d,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,c=s.assertAndGetBroadcastShape(n.shape,a.shape),u=undefined,l=undefined;return{a:()=>{let e=t;const a=s.getReductionAxes(n.shape,c);return a.length>0&&(e=Object(o.a)(e,a)),Object(i.a)(e,n.shape)},b:()=>{let e=t;const n=s.getReductionAxes(a.shape,c);return n.length>0&&(e=Object(o.a)(e,n)),Object(i.a)(e,a.shape)}}}};e.a=c},function(t,e,n){"use strict";var a;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s={kernelName:n(1).e,saveAllInputs:true,gradFunc:(t,e)=>{const n={};return e.forEach(((e,a)=>{n[a]=()=>t.clone()})),n}};e.a=s},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.h,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(s.a)(n)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.i,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(s.a)(n)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(16),o=n(22),c=n(56),u=n(31),l=n(18);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const h={kernelName:a.j,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(c.a)(Object(l.a)(Object(o.a)(1),Object(u.a)(Object(s.a)(n,"float32")))))}}};e.a=h},function(t,e,n){"use strict";var a=n(1),s=n(20),i=n(13),o=n(16),c=n(22),u=n(56),l=n(31);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const h={kernelName:a.k,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>{const e=Object(u.a)(Object(s.a)(Object(c.a)(1),Object(l.a)(Object(i.a)(n,"float32"))));return Object(o.a)(t,e)}}}};e.a=h},function(t,e,n){"use strict";var a=n(1),s=n(20),i=n(19),o=n(16),c=n(9),u=n(36),l=n(7),h=n(31),p=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const f={kernelName:a.m,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,f=Object(i.assertAndGetBroadcastShape)(n.shape,a.shape),b=undefined,m=undefined;return{a:()=>{const d=Object(s.a)(Object(h.a)(n),Object(h.a)(a));let e=Object(c.a)(t,Object(o.a)(a,d));const u=Object(i.getReductionAxes)(n.shape,f);return u.length>0&&(e=Object(p.a)(e,u)),Object(l.a)(e,n.shape)},b:()=>{const d=Object(s.a)(Object(h.a)(n),Object(h.a)(a));let e=Object(u.a)(Object(c.a)(t,Object(o.a)(n,d)));const b=Object(i.getReductionAxes)(a.shape,f);return b.length>0&&(e=Object(p.a)(e,b)),Object(l.a)(e,a.shape)}}}};e.a=f},function(t,e,n){"use strict";var a=n(1),s=n(20),i=n(13),o=n(16),c=n(31);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a.l,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(o.a)(t,Object(s.a)(Object(c.a)(Object(i.a)(n,"float32")),1))}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(16),o=n(31),c=n(18),u=n(22);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const l={kernelName:a.n,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(c.a)(Object(u.a)(1),Object(o.a)(Object(s.a)(n,"float32"))))}}};e.a=l},function(t,e,n){"use strict";var a=n(1),s=n(589);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.p,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{filterSize:i,strides:o,pad:c,dimRoundingMode:u}=n;return{x:()=>Object(s.a)(t,a,i,o,c,u)}}};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,input,e,n,a,l){const p=Object(o.a)(t,"dy","avgPool3dGrad"),f=Object(o.a)(input,"input","avgPool3dGrad");let b=p,m=f,g=false;4===f.rank&&(g=true,b=Object(h.a)(p,[1,p.shape[0],p.shape[1],p.shape[2],p.shape[3]]),m=Object(h.a)(f,[1,f.shape[0],f.shape[1],f.shape[2],f.shape[3]])),c.assert(5===b.rank,(()=>`Error in avgPool3dGrad: dy must be rank 5 but got rank ${b.rank}.`)),c.assert(5===m.rank,(()=>`Error in avgPool3dGrad: input must be rank 5 but got rank ${m.rank}.`)),Object(u.a)("avgPool3dGrad",a,l);const v={dy:b,input:m},w={filterSize:e,strides:n,pad:a,dimRoundingMode:l},y=s.a.runKernel(i.q,v,w);return g?Object(h.a)(y,[y.shape[1],y.shape[2],y.shape[3],y.shape[4]]):y}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(33),l=n(2),h=n(7);const p=Object(l.b)({avgPool3dGrad_:a});e.a=p},function(t,e,n){"use strict";var a=n(1),s=n(591);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.o,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{filterSize:i,strides:o,pad:c}=n;return{x:()=>Object(s.a)(t,a,i,o,c)}}};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,input,e,n,a){const u=Object(o.a)(t,"dy","avgPoolGrad"),h=Object(o.a)(input,"input","avgPoolGrad");c.assert(h.rank===u.rank,(()=>`Rank of input (${h.rank}) does not match rank of dy (${u.rank})`));let p=h,f=u,b=false;3===h.rank&&(b=true,p=Object(l.a)(h,[1,h.shape[0],h.shape[1],h.shape[2]]),f=Object(l.a)(u,[1,u.shape[0],u.shape[1],u.shape[2]])),c.assert(4===f.rank,(()=>`Error in avgPoolGrad: dy must be rank 4 but got rank ${f.rank}.`)),c.assert(4===p.rank,(()=>`Error in avgPoolGrad: input must be rank 4 but got rank ${p.rank}.`));const m={dy:f,input:p},g={filterSize:e,strides:n,pad:a},v=s.a.runKernel(i.r,m,g);return b?Object(l.a)(v,[v.shape[1],v.shape[2],v.shape[3]]):v}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(2),l=n(7);const h=Object(u.b)({avgPoolGrad_:a});e.a=h},function(t,e,n){"use strict";var a=n(1),s=n(54);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.s,inputsToSave:["a","b"],gradFunc:(t,e,n)=>{const[a,i]=e,{transposeA:o,transposeB:c}=n;return o||c?!o&&c?{a:()=>Object(s.a)(t,i,false,false),b:()=>Object(s.a)(t,a,true,false)}:o&&!c?{a:()=>Object(s.a)(i,t,false,true),b:()=>Object(s.a)(a,t,false,false)}:{a:()=>Object(s.a)(i,t,true,true),b:()=>Object(s.a)(t,a,true,true)}:{a:()=>Object(s.a)(t,i,false,true),b:()=>Object(s.a)(a,t,true,false)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(147);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.t,gradFunc:(t,e,n)=>{const{blockShape:blockShape,crops:a}=n;return{x:()=>Object(s.a)(t,blockShape,a)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.x,gradFunc:(t,e,n)=>{const a=n,i=a.inputShape,o=a.shape,c=Array.from(o);for(let t=i.length-1;t>=0;t--)if(i[t]===o[t])c[t]=1;else if(1!==i[t])throw new Error(`broadcastTo(): [${i}] cannot be broadcast to [${o}].`);const u=[];for(let t=0;t<c.length;t++)c[t]>1&&u.push(t);return{x:()=>Object(s.a)(t,u,true)}}};e.a=i},function(t,e,n){"use strict";var a;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s={kernelName:n(1).y,gradFunc:t=>({x:()=>t.clone()})};e.a=s},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.z,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(94),i=n(82),o=n(95),c=n(49),u=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const l={kernelName:a.A,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{clipValueMin:l,clipValueMax:h}=n;return{x:()=>Object(c.a)(Object(o.a)(Object(s.a)(a,l),Object(i.a)(a,h)),t,Object(u.a)(t))}}};e.a=l},function(t,e,n){"use strict";var a=n(1),s=n(293);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a.C,inputsToSave:["x"],gradFunc:s.a.gradFunc};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(98),i=n(5);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a.D,saveAllInputs:true,gradFunc:(t,e,n)=>{const a=e.map((t=>t.shape)),{axis:o}=n,c=Object(i.parseAxisParam)(o,e[0].shape)[0],u=a.map((t=>t[c])),l=undefined;return Object(s.a)(t,u,c).map((t=>()=>t))}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(202),i=n(178),o=n(33),c=n(5);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a.E,inputsToSave:["x","filter"],gradFunc:(t,e,n)=>{const[a,u]=e,{dilations:l,strides:h,pad:p,dataFormat:f}=n;return c.assert(o.k(l),(()=>`Error in gradient of conv2D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '${l}'`)),{x:()=>Object(i.a)(a.shape,t,u,h,p,f),filter:()=>Object(s.a)(a,t,u.shape,h,p,f)}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(93),i=n(202);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a.G,inputsToSave:["dy","filter"],gradFunc:(t,e,n)=>{const[a,filter]=e,{strides:o,pad:c,dataFormat:u,dimRoundingMode:l}=n;return{dy:()=>Object(s.a)(t,filter,o,c,u,1,l),filter:()=>Object(i.a)(t,a,filter.shape,o,c,u,l)}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(603),i=n(249),o=n(33),c=n(5);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a.H,inputsToSave:["x","filter"],gradFunc:(t,e,n)=>{const{dilations:a,strides:u,pad:l}=n;c.assert(Object(o.k)(a),(()=>`Error in gradient of conv3D: dilation rates greater than 1 are not yet supported in gradients. Got dilations '${a}'`));const[h,p]=e;return{x:()=>Object(i.a)(h.shape,t,p,u,l),filter:()=>Object(s.a)(h,t,p.shape,u,l)}}};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,c){let l=t;4===t.rank&&(l=Object(u.a)(t,[1,t.shape[0],t.shape[1],t.shape[2],t.shape[3]]));let h=e;4===h.rank&&(h=Object(u.a)(e,[1,e.shape[0],e.shape[1],e.shape[2],e.shape[3]])),o.assert(5===l.rank,(()=>`Error in conv3dDerFilter: input must be rank 5, but got shape ${l.shape}.`)),o.assert(5===h.rank,(()=>`Error in conv3dDerFilter: dy must be rank 5, but got shape ${h.shape}.`)),o.assert(5===n.length,(()=>`Error in conv3dDerFilter: filterShape must be length 5, but got ${n}.`)),o.assert(l.shape[4]===n[3],(()=>`Error in conv3dDerFilter: depth of input ${l.shape[4]}) must match input depth in filter (${n[3]}.`)),o.assert(h.shape[4]===n[4],(()=>`Error in conv3dDerFilter: depth of dy (${h.shape[4]}) must match output depth for filter (${n[4]}).`));const p={x:l,dy:h},f={strides:a,pad:c,filterShape:n};return s.a.runKernel(i.I,p,f)}var s=n(4),i=n(1),o=n(5),c=n(2),u=n(7);const l=Object(c.b)({conv3DBackpropFilter_:a});e.a=l},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(9),o=n(36),c=n(272);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a.K,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(Object(o.a)(Object(c.a)(Object(s.a)(n,"float32"))),t)}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(9),o=n(273);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a.L,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(Object(o.a)(Object(s.a)(n,"float32")),t)}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(55),i=n(181),o=n(71);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a.O,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{axis:c,exclusive:u,reverse:l}=n;return{x:()=>{const e=Object(s.f)([c],a.rank);let n=Object(i.a)(t,c,u,!l);return null!=e&&(n=Object(o.a)(n,e)),n}}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(33),i=n(280),o=n(281),c=n(5);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a.R,inputsToSave:["x","filter"],gradFunc:(t,e,n)=>{const{dilations:a,strides:u,pad:l,dimRoundingMode:h}=n,p=null==a?[1,1]:a;c.assert(s.k(p),(()=>`Error in gradient of depthwiseConv2dNative: dilation rates greater than 1 are not yet supported. Got dilations '${p}'`));const[f,filter]=e;return c.assert(4===f.rank,(()=>`Error in gradient of depthwiseConv2dNative: input must be rank 4, but got rank ${f.rank}.`)),c.assert(4===filter.rank,(()=>`Error in gradient of depthwiseConv2dNative: filter must be rank 4, but got rank ${filter.rank}.`)),c.assert(f.shape[3]===filter.shape[2],(()=>`Error in gradient of depthwiseConv2d: number of input channels (${f.shape[3]}) must match the inChannels dimension in filter ${filter.shape[2]}.`)),c.assert(s.i(u,p),(()=>`Error in gradient of depthwiseConv2d: Either strides or dilations must be 1. Got strides ${u} and dilations '${p}'.`)),s.a("depthwiseConv2d",l,h),{x:()=>Object(o.a)(f.shape,t,filter,u,l,p,h),filter:()=>Object(i.a)(f,t,filter.shape,u,l,p,h)}}};e.a=u},function(t,e,n){"use strict";var a=n(4),s=n(1);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:s.V,inputsToSave:["x","filter"],gradFunc:(t,e,n)=>{const[i,filter]=e,o={x:i,filter:filter,dy:t},c={x:i,filter:filter,dy:t};return{x:()=>a.a.runKernel(s.X,o,n),filter:()=>a.a.runKernel(s.W,c,n)}}};e.a=i},function(t,e,n){"use strict";var a=n(4),s=n(1);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:s._0,outputsToSave:[true],gradFunc:(t,e)=>{const[n]=e,i={dy:t,y:n};return{x:()=>a.a.runKernel(s._1,i)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(61),i=n(9),o=n(36),c=n(31);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._3,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e,a=Object(i.a)(Object(s.a)(Object(o.a)(Object(c.a)(n))),2/Math.sqrt(Math.PI));return{x:()=>Object(i.a)(t,a)}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(9);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._4,outputsToSave:[true],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(s.a)(t,n)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(7);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._5,inputsToSave:["input"],gradFunc:(t,e)=>{const[input]=e;return{input:()=>Object(s.a)(t,input.shape)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(61),i=n(9);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._6,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(s.a)(n))}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._10,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(19),i=n(13),o=n(16),c=n(9),u=n(36),l=n(7),h=n(31),p=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const f={kernelName:a._11,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,f=Object(s.assertAndGetBroadcastShape)(n.shape,a.shape),b=undefined,m=undefined;return{a:()=>{const e=Object(o.a)(t,Object(i.a)(a,"float32")),c=Object(s.getReductionAxes)(n.shape,f);return c.length>0?Object(l.a)(Object(p.a)(e,c),n.shape):e},b:()=>{let e=Object(c.a)(t,Object(i.a)(n,"float32"));const b=Object(s.getReductionAxes)(a.shape,f);b.length>0&&(e=Object(l.a)(Object(p.a)(e,b),a.shape));const m=Object(h.a)(a);return Object(u.a)(Object(o.a)(e,Object(i.a)(m,"float32")))}}}};e.a=f},function(t,e,n){"use strict";var a=n(1),s=n(20),i=n(19),o=n(9),c=n(7),u=n(269),l=n(22),h=n(18),p=n(26),f=n(116);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const b={kernelName:a._13,inputsToSave:["x","mean","variance","scale"],gradFunc:(t,e,n)=>{const{varianceEpsilon:a}=n,[b,m,g,v]=e,w=null==v?Object(l.a)(1):v,y=Object(i.getReductionAxes)(m.shape,b.shape),O=[];if(1===m.rank){for(let t=0;t<b.shape.length-1;++t)O.push(b.shape[t]);O.push(1)}const x=Object(h.a)(b,m),A=Object(o.a)(t,w),I=Object(u.a)(Object(s.a)(g,Object(l.a)(a))),j=Object(o.a)(Object(o.a)(Object(o.a)(I,I),I),Object(l.a)(-.5)),C=undefined,_=undefined,k=undefined,S=undefined,T=undefined;return{x:()=>1===m.rank?Object(c.a)(Object(o.a)(Object(o.a)(t,Object(f.a)(Object(c.a)(I,[1,1,1,m.shape[0]]),O)),w),b.shape):Object(c.a)(Object(o.a)(Object(o.a)(t,I),w),b.shape),mean:()=>{let t=Object(o.a)(Object(o.a)(I,Object(l.a)(-1)),A);return 1===m.rank&&(t=Object(p.a)(t,y)),Object(c.a)(t,m.shape)},variance:()=>{let t=Object(o.a)(Object(o.a)(j,x),A);return 1===m.rank&&(t=Object(p.a)(t,y)),Object(c.a)(t,m.shape)},scale:()=>{const e=Object(o.a)(x,I);let n=Object(o.a)(t,e);return 1===m.rank&&(n=Object(p.a)(n,y)),Object(c.a)(n,m.shape)},offset:()=>{let e=t;return 1===m.rank&&(e=Object(p.a)(e,y)),Object(c.a)(e,m.shape)}}}};e.a=b},function(t,e,n){"use strict";function a(t,e){const n=[];for(let a=t;a<e;++a)n.push(a);return n}function s(t){const e=[];for(let n=0;n<t.length;++n)for(let a=0;a<t[n].length;++a)e.push(t[n][a]);return e}var i=n(1),o=n(55),c=n(7),u=n(84),l=n(71),h=n(201),p=n(5);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const f={kernelName:i._17,inputsToSave:["x","indices"],gradFunc:(t,e,n)=>{const[i,f]=e,{axis:b,batchDims:m}=n,g=Object(p.parseAxisParam)(b,i.shape)[0],v=(t,e,n)=>()=>{const i=t.shape,u=e.size,p=i.slice(0,g),f=p.length,m=i.slice(b,i.length).slice(1),v=m.length,w=a(0,f),y=a(f+1,f+1+v),O=s([p,[u],m]),x=Object(c.a)(n,O),A=Object(c.a)(e,[u]),I=s([[f],w,y]),j=Object(l.a)(x,I);let C=Object(h.a)(j,A,t.shape[g]);const _=Object(o.h)(I);return C=Object(l.a)(C,_),C};if(1===m){const e=i.shape[0],n=i.split(e,0),a=undefined;return{x:()=>{const e=Object(u.a)(n.map(((e,n)=>v(e,f.slice(n,1),t.slice(n,1))())));return e.reshape(i.shape)},indices:()=>f}}return{x:v(i,f,t),indices:()=>f}}};e.a=f},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._19,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e;return{a:()=>Object(s.a)(n),b:()=>Object(s.a)(a)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(13);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._21,gradFunc:t=>({x:()=>Object(s.a)(t,"float32")})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._23,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._24,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._25,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(62),i=n(9),o=n(49);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._28,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{alpha:c}=n,u=Object(s.a)(a,0);return{x:()=>Object(o.a)(u,t,Object(i.a)(t,c))}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(20),i=n(16);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._33,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(s.a)(n,1))}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(16);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._32,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(s.a)(n,"float32"))}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(61),i=n(9),o=n(18),c=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._34,inputsToSave:[],outputsToSave:[true],gradFunc:(t,e,n)=>{const[a]=e,{axis:u}=n;return{logits:()=>{const e=true,n=Object(s.a)(a);return Object(o.a)(t,Object(i.a)(Object(c.a)(t,u,e),n))}}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(628);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._26,inputsToSave:["x"],outputsToSave:[true],gradFunc:(t,e,n)=>{const[a,i]=e,{depthRadius:o,bias:c,alpha:u,beta:l}=n;return{x:()=>Object(s.a)(a,i,t,o,c,u,l)}}};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a=5,o=1,c=1,u=.5){const l={x:t,y:e,dy:n},h={depthRadius:a,bias:o,alpha:c,beta:u};return s.a.runKernel(i._27,l,h)}var s=n(4),i=n(1),o=n(2);const c=Object(o.b)({localResponseNormalizationBackprop_:a});e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(5),i=n(294);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._41,inputsToSave:["x"],outputsToSave:[true],gradFunc:(t,e,n)=>{const a=n,{reductionIndices:o}=a,c=e[0],u=e[1],l=s.parseAxisParam(o,c.shape),h=Object(i.a)(t,u,c,l);return{x:()=>h.x()}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(94),o=n(142),c=n(9);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._47,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,u=undefined,l=undefined;return{a:()=>Object(c.a)(t,Object(s.a)(Object(i.a)(n,a),"float32")),b:()=>Object(c.a)(t,Object(s.a)(Object(o.a)(n,a),"float32"))}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(632);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._43,inputsToSave:["x"],outputsToSave:[true],gradFunc:(t,e,n)=>{const[a,i]=e,{filterSize:o,strides:c,pad:u,dimRoundingMode:l}=n;return{x:()=>Object(s.a)(t,a,i,o,c,u,l)}}};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,input,e,n,a,l,p){const f=Object(o.a)(t,"dy","maxPool3dGrad"),b=Object(o.a)(input,"input","maxPool3dGrad"),m=Object(o.a)(e,"output","maxPool3dGrad");let g=f,v=b,w=m,y=false;4===b.rank&&(y=true,g=Object(h.a)(f,[1,f.shape[0],f.shape[1],f.shape[2],f.shape[3]]),v=Object(h.a)(b,[1,b.shape[0],b.shape[1],b.shape[2],b.shape[3]]),w=Object(h.a)(m,[1,m.shape[0],m.shape[1],m.shape[2],m.shape[3]])),c.assert(5===g.rank,(()=>`Error in maxPool3dGrad: dy must be rank 5 but got rank ${g.rank}.`)),c.assert(5===v.rank,(()=>`Error in maxPool3dGrad: input must be rank 5 but got rank ${v.rank}.`)),c.assert(5===w.rank,(()=>`Error in maxPool3dGrad: output must be rank 5 but got rank ${w.rank}.`)),Object(u.a)("maxPool3dGrad",l,p);const O={dy:g,input:v,output:w},x={filterSize:n,strides:a,pad:l,dimRoundingMode:p},A=s.a.runKernel(i._44,O,x);return y?Object(h.a)(A,[A.shape[1],A.shape[2],A.shape[3],A.shape[4]]):A}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(33),l=n(2),h=n(7);const p=Object(l.b)({maxPool3dGrad_:a});e.a=p},function(t,e,n){"use strict";var a=n(1),s=n(634);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._42,inputsToSave:["x"],outputsToSave:[true],gradFunc:(t,e,n)=>{const[a,i]=e,{filterSize:o,strides:c,pad:u}=n;return{x:()=>Object(s.a)(t,a,i,o,c,u)}}};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,input,e,n,a,l,h){const p=Object(o.a)(t,"dy","maxPoolGrad"),f=Object(o.a)(input,"input","maxPoolGrad"),b=Object(o.a)(e,"output","maxPoolGrad");c.assert(f.rank===p.rank,(()=>`Rank of input (${f.rank}) does not match rank of dy (${p.rank})`)),c.assert(4===p.rank,(()=>`Error in maxPoolGrad: dy must be rank 4 but got rank ${p.rank}.`)),c.assert(4===f.rank,(()=>`Error in maxPoolGrad: input must be rank 4 but got rank ${f.rank}.`)),u.a("maxPoolGrad",l,h);const m={dy:p,input:f,output:b},g={filterSize:n,strides:a,pad:l,dimRoundingMode:h};return s.a.runKernel(i._45,m,g)}var s=n(4),i=n(1),o=n(3),c=n(5),u=n(33),l=n(2);const h=Object(l.b)({maxPoolGrad_:a});e.a=h},function(t,e,n){"use strict";var a=n(1),s=n(55),i=n(16),o=n(9),c=n(96),u=n(7),l=n(5);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const h={kernelName:a._48,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{axis:h}=n,p=l.parseAxisParam(h,a.shape),f=undefined,b=Object(s.d)(a.shape,p)[1],m=l.sizeFromShape(b),g=()=>{const e=a.shape.slice();p.forEach((t=>{e[t]=1}));const n=Object(u.a)(t,e),s=undefined;return Object(i.a)(Object(o.a)(n,Object(c.a)(a.shape,"float32")),m)};return{x:g}}};e.a=h},function(t,e,n){"use strict";var a=n(1),s=n(5),i=n(294);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._49,inputsToSave:["x"],outputsToSave:[true],gradFunc:(t,e,n)=>{const a=n,{axis:o}=a,[c,u]=e,l=s.parseAxisParam(o,c.shape),h=Object(i.a)(t,u,c,l);return{x:()=>h.x()}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(62),o=n(82),c=n(9);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._50,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,u=undefined,l=undefined;return{a:()=>Object(c.a)(t,Object(s.a)(Object(o.a)(n,a),"float32")),b:()=>Object(c.a)(t,Object(s.a)(Object(i.a)(n,a),"float32"))}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(42);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._51,inputsToSave:["x"],gradFunc:(t,e,n)=>{const a=e[0],{paddings:paddings}=n,i=paddings.map((t=>t[0]));return{x:()=>Object(s.a)(t,i,a.shape)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(19),i=n(16),o=n(184),c=n(9),u=n(36),l=n(7),h=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p={kernelName:a._52,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,p=Object(s.assertAndGetBroadcastShape)(n.shape,a.shape),f=undefined,b=undefined;return{a:()=>{const e=Object(s.getReductionAxes)(n.shape,p);return e.length>0?Object(l.a)(Object(h.a)(t,e),n.shape):t},b:()=>{const e=Object(c.a)(t,Object(u.a)(Object(o.a)(Object(i.a)(n,a)))),f=Object(s.getReductionAxes)(a.shape,p);return f.length>0?Object(l.a)(Object(h.a)(e,f),a.shape):e}}}};e.a=p},function(t,e,n){"use strict";var a=n(1),s=n(19),i=n(13),o=n(9),c=n(7),u=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const l={kernelName:a._54,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,l=Object(s.assertAndGetBroadcastShape)(n.shape,a.shape),h=undefined,p=undefined;return{a:()=>{const e=Object(o.a)(t,Object(i.a)(a,"float32")),h=Object(s.getReductionAxes)(n.shape,l);return h.length>0?Object(c.a)(Object(u.a)(e,h),n.shape):e},b:()=>{const e=Object(o.a)(t,Object(i.a)(n,"float32")),h=Object(s.getReductionAxes)(a.shape,l);return h.length>0?Object(c.a)(Object(u.a)(e,h),a.shape):e}}}};e.a=l},function(t,e,n){"use strict";var a=n(1),s=n(36);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._55,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(118);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._60,inputsToSave:["indices"],gradFunc:(t,e)=>{const n=e[0];return{indices:()=>Object(s.a)(n.shape,"float32")}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._61,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(121);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._62,saveAllInputs:true,gradFunc:(t,e,n)=>{const{axis:a}=n,i=undefined;return Object(s.a)(t,a).map((t=>()=>t))}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(42);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._63,inputsToSave:["x"],gradFunc:(t,e,n)=>{const a=e[0],{paddings:paddings}=n,i=paddings.map((t=>t[0]));return{x:()=>Object(s.a)(t,i,a.shape)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(19),i=n(13),o=n(62),c=n(117),u=n(9),l=n(81),h=n(7),p=n(22),f=n(18),b=n(26),m=n(49),g=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const v={kernelName:a._65,inputsToSave:["a","b"],outputsToSave:[true],gradFunc:(t,e)=>{const[n,a,v]=e,base=n,w=a,y=s.assertAndGetBroadcastShape(base.shape,w.shape),O=undefined,x=undefined;return{a:()=>{const e=Object(i.a)(w,"float32");let n=Object(u.a)(t,Object(u.a)(e,Object(l.a)(base,Object(f.a)(e,Object(p.a)(1)))));const a=s.getReductionAxes(base.shape,y);return a.length>0&&(n=Object(b.a)(n,a)),Object(h.a)(n,base.shape)},b:()=>{const e=Object(o.a)(base,0),n=Object(m.a)(e,Object(c.a)(base),Object(g.a)(base));let a=Object(u.a)(t,Object(u.a)(v,n));const i=s.getReductionAxes(w.shape,y);return i.length>0&&(a=Object(b.a)(a,i)),Object(h.a)(a,w.shape)}}}};e.a=v},function(t,e,n){"use strict";var a=n(1),s=n(19),i=n(62),o=n(9),c=n(7),u=n(26),l=n(49),h=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p={kernelName:a._66,inputsToSave:["x","alpha"],gradFunc:(t,e)=>{const[n,a]=e,p=Object(i.a)(n,0);return{x:()=>Object(l.a)(p,t,Object(o.a)(t,a)),alpha:()=>{let e=Object(l.a)(p,Object(h.a)(t),Object(o.a)(t,n));const i=Object(s.getReductionAxes)(a.shape,t.shape);return i.length>0&&(e=Object(u.a)(e,i)),Object(c.a)(e,a.shape)}}}};e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=t.shape.slice();a[n]=1;const s=Object(l.a)(e,a),i=Object(c.a)(t,n,true,false),o=Object(c.a)(t,n,true,true),h=Object(u.a)(i,o);return Object(u.a)(s,h)}function s(t,e,n){const s=t.shape.length,o=s-n.length,c=i._164.getAxesPermutation(n,s);let u=t;null!=c&&(u=Object(h.a)(t,c));const l=u.shape.slice(),p=undefined,f=l.splice(s-n.length,n.length).reduce(((t,e)=>t*e),1);l.push(f);const b=undefined;let m=a(u.reshape(l),e,o);if(m=m.reshape(u.shape),null!=c){const t=i._164.getUndoAxesPermutation(c);m=Object(h.a)(m,t)}return m}var i=n(286),o=n(1),c=n(180),u=n(9),l=n(7),h=n(71);const p={kernelName:o._67,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{axis:i}=n;let o=[];return o=null==i?a.shape.map(((t,e)=>e)):"number"==typeof i?[i]:i,{x:()=>s(a,t,o)}}};e.a=p},function(t,e,n){"use strict";var a=n(1),s=n(19),i=n(13),o=n(16),c=n(9),u=n(36),l=n(7),h=n(31),p=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const f={kernelName:a._73,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,f=s.assertAndGetBroadcastShape(n.shape,a.shape),b=undefined,m=undefined;return{a:()=>{const e=Object(o.a)(t,Object(i.a)(a,"float32")),c=s.getReductionAxes(n.shape,f);return c.length>0?Object(l.a)(Object(p.a)(e,c),n.shape):e},b:()=>{let e=Object(c.a)(t,Object(i.a)(n,"float32"));const b=s.getReductionAxes(a.shape,f);b.length>0&&(e=Object(l.a)(Object(p.a)(e,b),a.shape));const m=Object(h.a)(a);return Object(u.a)(Object(o.a)(e,Object(i.a)(m,"float32")))}}}};e.a=f},function(t,e,n){"use strict";var a=n(1),s=n(16),i=n(36),o=n(31);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._74,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(s.a)(t,Object(i.a)(Object(o.a)(n)))}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(82),o=n(9),c=n(120);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._76,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e,a=Object(o.a)(Object(i.a)(n,6),Object(c.a)(n));return{x:()=>Object(o.a)(t,Object(s.a)(a,"float32"))}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(9),o=n(120);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._75,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(s.a)(Object(o.a)(n),"float32"))}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(7);
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._77,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(s.a)(t,n.shape)}}};e.a=i},function(t,e,n){"use strict";var a=n(4),s=n(1);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:s._78,inputsToSave:["images"],gradFunc:(t,e,n)=>{const[i]=e,o={dy:t,images:i},c=undefined;return{images:()=>a.a.runKernel(s._79,o,n)}}};e.a=i},function(t,e,n){"use strict";var a=n(4),s=n(1);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:s._80,inputsToSave:["images"],gradFunc:(t,e,n)=>{const[i]=e,o={dy:t,images:i},c=undefined;return{images:()=>a.a.runKernel(s._81,o,n)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(70),i=n(5);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._82,gradFunc:(t,e,n)=>{const{dims:a}=n,o=Object(i.parseAxisParam)(a,t.shape);return{x:()=>Object(s.a)(t,o)}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._84,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(16),i=n(9),o=n(36),c=n(81);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._85,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(o.a)(Object(s.a)(t,Object(i.a)(Object(c.a)(n,1.5),2)))}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(143),o=n(9),c=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._88,inputsToSave:["condition"],gradFunc:(t,e)=>{const[n]=e;return{condition:()=>Object(s.a)(Object(c.a)(n),"float32"),t:()=>Object(o.a)(t,Object(s.a)(n,t.dtype)),e:()=>Object(o.a)(t,Object(s.a)(Object(i.a)(n),t.dtype))}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(61),o=n(62),c=n(9),u=n(22),l=n(291),h=n(49);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p={kernelName:a._89,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>{const e=Object(o.a)(n,Object(u.a)(0)),a=Object(u.a)(l.b),p=Object(u.a)(l.a),f=Object(c.a)(t,p),b=Object(c.a)(Object(c.a)(t,a),Object(i.a)(Object(s.a)(n,"float32")));return Object(h.a)(e,f,b)}}}};e.a=p},function(t,e,n){"use strict";var a=n(1),s=n(9),i=n(22),o=n(18);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._90,outputsToSave:[true],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(s.a)(t,Object(s.a)(n,Object(o.a)(Object(i.a)(1),n)))}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._91,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(179),o=n(9);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._92,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(o.a)(Object(i.a)(Object(s.a)(n,"float32")),t)}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(250),o=n(9);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._93,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(o.a)(Object(i.a)(Object(s.a)(n,"float32")),t)}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(83),i=n(209);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._94,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{begin:o,size:size}=n,c=a.shape,[u,l]=Object(i.parseSliceParams)(a,o,size),paddings=[];for(let e=0;e<t.rank;e++)paddings.push([u[e],c[e]-u[e]-l[e]]);return{x:()=>Object(s.a)(t,paddings)}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(9),i=n(18),o=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._95,outputsToSave:[true],gradFunc:(t,e,n)=>{const[a]=e,{dim:c}=n,u=true,l=Object(s.a)(t,a);return{logits:()=>Object(i.a)(l,Object(s.a)(Object(o.a)(l,[c],u),a))}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(9),i=n(111);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._96,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(s.a)(t,Object(i.a)(n))}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(136);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._97,gradFunc:(t,e,n)=>{const{blockShape:blockShape,paddings:paddings}=n;return{x:()=>Object(s.a)(t,blockShape,paddings)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(48);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._103,gradFunc:(t,e,n)=>{const{axis:a}=n;return{x:()=>Object(s.a)(t,a)}}};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(16),o=n(9),c=n(56);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._104,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(o.a)(Object(c.a)(Object(s.a)(n,"float32")),2))}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(13),i=n(9);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._105,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(i.a)(Object(s.a)(n,"float32"),2))}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(9),i=n(22),o=n(18);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._106,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,c=Object(i.a)(2),u=undefined,l=undefined;return{a:()=>Object(s.a)(t,Object(s.a)(c,Object(o.a)(n,a))),b:()=>Object(s.a)(t,Object(s.a)(c,Object(o.a)(a,n)))}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._108,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(1),s=n(19),i=n(36),o=n(7),c=n(26);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._113,inputsToSave:["a","b"],gradFunc:(t,e)=>{const[n,a]=e,u=s.assertAndGetBroadcastShape(n.shape,a.shape),l=undefined,h=undefined;return{a:()=>{let e=t;const a=s.getReductionAxes(n.shape,u);return a.length>0&&(e=Object(c.a)(e,a)),Object(o.a)(e,n.shape)},b:()=>{let e=t;const n=s.getReductionAxes(a.shape,u);return n.length>0&&(e=Object(c.a)(e,n)),Object(o.a)(Object(i.a)(e),a.shape)}}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(9),i=n(96),o=n(7),c=n(5);
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._114,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,u=a.shape.slice(),{axis:l}=n,h=undefined;Object(c.parseAxisParam)(l,a.shape).forEach((t=>{u[t]=1}));const p=Object(o.a)(t,u),f=Object(s.a)(p,Object(i.a)(a.shape,"float32"));return{x:()=>f}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(179),i=n(16),o=n(31);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._115,inputsToSave:["x"],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(i.a)(t,Object(o.a)(Object(s.a)(n)))}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(9),i=n(22),o=n(31),c=n(18);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:a._116,outputsToSave:[true],gradFunc:(t,e)=>{const[n]=e;return{x:()=>Object(s.a)(Object(c.a)(Object(i.a)(1),Object(o.a)(n)),t)}}};e.a=u},function(t,e,n){"use strict";var a=n(1),s=n(20),i=n(42),o=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c={kernelName:a._118,inputsToSave:["x"],gradFunc:(t,e,n)=>{const[a]=e,{reps:c}=n,u=undefined;return{x:()=>{let e=Object(o.a)(a);if(1===a.rank)for(let n=0;n<c[0];++n)e=Object(s.a)(e,Object(i.a)(t,[n*a.shape[0]],[a.shape[0]]));else if(2===a.rank)for(let n=0;n<c[0];++n)for(let o=0;o<c[1];++o)e=Object(s.a)(e,Object(i.a)(t,[n*a.shape[0],o*a.shape[1]],[a.shape[0],a.shape[1]]));else if(3===a.rank)for(let n=0;n<c[0];++n)for(let o=0;o<c[1];++o)for(let u=0;u<c[2];++u)e=Object(s.a)(e,Object(i.a)(t,[n*a.shape[0],o*a.shape[1],u*a.shape[2]],[a.shape[0],a.shape[1],a.shape[2]]));else{if(4!==a.rank)throw new Error(`Gradient for tile operation is not implemented for rank-${a.rank} tensors yet.`);for(let n=0;n<c[0];++n)for(let o=0;o<c[1];++o)for(let u=0;u<c[2];++u)for(let l=0;l<c[3];++l)e=Object(s.a)(e,Object(i.a)(t,[n*a.shape[0],o*a.shape[1],u*a.shape[2],l*a.shape[3]],[a.shape[0],a.shape[1],a.shape[2],a.shape[3]]))}return e}}}};e.a=c},function(t,e,n){"use strict";var a=n(1),s=n(55),i=n(71);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._121,gradFunc:(t,e,n)=>{const a=n,{perm:o}=a,c=s.h(o);return{x:()=>Object(i.a)(t,c)}}};e.a=o},function(t,e,n){"use strict";var a=n(1),s=n(84);
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._123,gradFunc:(t,e,n)=>{const a=n,{axis:i}=a;return{value:()=>Object(s.a)(t,i)}}};e.a=i},function(t,e,n){"use strict";function a(t,e){const n=Object(l.a)(e,Object(b.a)(e)),a=Object(o.a)(t,n);let s=Object(c.a)(e,Object(p.a)(0,"int32"));const m=a.rank-s.rank;for(let t=0;t<m;++t)s=Object(i.a)(s,t+1);s=Object(u.a)(s,Object(h.a)(a.shape,"bool"));const g=Object(b.a)(a);return Object(f.a)(s,a,g)}var s=n(1),i=n(115),o=n(140),c=n(94),u=n(95),l=n(144),h=n(96),p=n(22),f=n(49),b=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const m={kernelName:s._124,inputsToSave:["segmentIds"],gradFunc:(t,e)=>{const[n]=e,s=undefined;return{x:()=>a(t,n)}}};e.a=m},function(t,e,n){"use strict";var a=n(1),s=n(21);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._126,gradFunc:t=>({x:()=>Object(s.a)(t)})};e.a=i},function(t,e,n){"use strict";var a=n(684),s=n(685),i=n(686),o=n(687),c=n(688),u=n(689),l=n(690),h=n(691),p=n(692),f=n(693),b=n(694),m=n(695),g=n(696),v=n(697),w=n(698),y=n(699),O=n(700),x=n(701),A=n(702),I=n(703),j=n(704),C=n(705),_=n(706),k=n(707),S=n(708),T=n(709),L=n(710),B=n(711),N=n(712),E=n(713),M=n(714),F=n(715),W=n(716),z=n(717),P=n(718),G=n(719),V=n(720),H=n(721),Z=n(722),X=n(723),U=n(724),$=n(725),Y=n(726),J=n(727),K=n(728),tt=n(729),nt=n(730),rt=n(731),at=n(732),st=n(733),ot=n(734),ct=n(735),ut=n(736),lt=n(737),dt=n(738),ht=n(739),pt=n(740),ft=n(741),bt=n(742),mt=n(743),gt=n(744),vt=n(745),wt=n(746),yt=n(747),Ot=n(748),xt=n(749),At=n(750),jt=n(751),Ct=n(752),_t=n(753),kt=n(754),St=n(755),Tt=n(756),Lt=n(757),Bt=n(758),Nt=n(759),Mt=n(760),Dt=n(761),Ft=n(762),Rt=n(763),Wt=n(764),zt=n(765),Pt=n(766),Gt=n(767),Vt=n(768),Ht=n(769),Zt=n(770),Xt=n(771),Ut=n(772),$t=n(773),Yt=n(774),Jt=n(775),qt=n(776),Kt=n(777),Qt=n(778),te=n(779),ee=n(780),ne=n(781),re=n(782),ae=n(783),se=n(784),ie=n(785),oe=n(786),ce=n(787),ue=n(788),le=n(789),pe=n(790),fe=n(791),be=n(792),ge=n(793),ve=n(794),we=n(795),ye=n(796),Oe=n(797),xe=n(798),Ae=n(799),Ie=n(800),je=n(801),Ce=n(802),_e=n(803),ke=n(804),Se=n(805),Te=n(806),Le=n(807),Be=n(808),Ne=n(809),Ee=n(810),Fe=n(811),Re=n(812),We=n(813),ze=n(814),Pe=n(815),Ge=n(816),Ve=n(817),Ze=n(818),Xe=n(819),Ue=n(820)},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.abs=function(){return this.throwIfDisposed(),Object(a.b)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.acos=function(){return this.throwIfDisposed(),Object(a.c)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.acosh=function(){return this.throwIfDisposed(),Object(a.d)(this)}},function(t,e,n){"use strict";var a=n(20),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.add=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(240),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.all=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(241),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.any=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(242),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.argMax=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(243),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.argMin=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(7),s=n(6),i=n(5);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.asScalar=function(){return this.throwIfDisposed(),Object(i.assert)(1===this.size,(()=>"The array must have only 1 element.")),Object(a.a)(this,[])}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.asType=function(t){return this.throwIfDisposed(),Object(a.D)(this,t)}},function(t,e,n){"use strict";var a=n(7),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.as1D=function(){return this.throwIfDisposed(),Object(a.a)(this,[this.size])}},function(t,e,n){"use strict";var a=n(7),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.as2D=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,[t,e])}},function(t,e,n){"use strict";var a=n(7),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.as3D=function(t,e,n){return this.throwIfDisposed(),Object(a.a)(this,[t,e,n])}},function(t,e,n){"use strict";var a=n(7),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.as4D=function(t,e,n,s){return this.throwIfDisposed(),Object(a.a)(this,[t,e,n,s])}},function(t,e,n){"use strict";var a=n(7),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.as5D=function(t,e,n,s,i){return this.throwIfDisposed(),Object(a.a)(this,[t,e,n,s,i])}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.asin=function(){return this.throwIfDisposed(),Object(a.k)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.asinh=function(){return this.throwIfDisposed(),Object(a.l)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.atan=function(){return this.throwIfDisposed(),Object(a.m)(this)}},function(t,e,n){"use strict";var a=n(244),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.atan2=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.atanh=function(){return this.throwIfDisposed(),Object(a.o)(this)}},function(t,e,n){"use strict";var a=n(176),s=n(6);Object(s.d)().prototype.avgPool=function(t,e,n,s){return this.throwIfDisposed(),Object(a.a)(this,t,e,n,s)}},function(t,e,n){"use strict";var a=n(136),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.batchToSpaceND=function(blockShape,t){return this.throwIfDisposed(),Object(a.a)(this,blockShape,t)}},function(t,e,n){"use strict";var a=n(112),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.batchNorm=function(t,e,n,s,i){return this.throwIfDisposed(),Object(a.a)(this,t,e,n,s,i)}},function(t,e,n){"use strict";var a=n(177),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.broadcastTo=function(shape){return this.throwIfDisposed(),Object(a.a)(this,shape)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.cast=function(t){return this.throwIfDisposed(),Object(a.D)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.ceil=function(){return this.throwIfDisposed(),Object(a.E)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.clipByValue=function(t,e){return this.throwIfDisposed(),Object(a.F)(this,t,e)}},function(t,e,n){"use strict";var a=n(48),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.concat=function(t,e){return this.throwIfDisposed(),t instanceof s.a&&(t=[t]),Object(a.a)([this,...t],e)}},function(t,e,n){"use strict";var a=n(247),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.conv1d=function(filter,t,e,n,s,i){return this.throwIfDisposed(),Object(a.a)(this,filter,t,e,n,s,i)}},function(t,e,n){"use strict";var a=n(248),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.conv2dTranspose=function(filter,t,e,n,s){return this.throwIfDisposed(),Object(a.a)(this,filter,t,e,n,s)}},function(t,e,n){"use strict";var a=n(93),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.conv2d=function(filter,t,e,n,s,i){return this.throwIfDisposed(),Object(a.a)(this,filter,t,e,n,s,i)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.cos=function(){return this.throwIfDisposed(),Object(a.S)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.cosh=function(){return this.throwIfDisposed(),Object(a.T)(this)}},function(t,e,n){"use strict";var a=n(180),s=n(6);
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.cumprod=function(t,e,n){return this.throwIfDisposed(),Object(a.a)(this,t,e,n)}},function(t,e,n){"use strict";var a=n(181),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.cumsum=function(t,e,n){return this.throwIfDisposed(),Object(a.a)(this,t,e,n)}},function(t,e,n){"use strict";var a=n(251),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.depthToSpace=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(137),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.depthwiseConv2d=function(filter,t,e,n,s,i){return this.throwIfDisposed(),Object(a.a)(this,filter,t,e,n,s,i)}},function(t,e,n){"use strict";var a=n(252),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.dilation2d=function(filter,t,e,n,s){return this.throwIfDisposed(),Object(a.a)(this,filter,t,e,n,s)}},function(t,e,n){"use strict";var a=n(253),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.divNoNan=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(16),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.div=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(254),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.dot=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(182),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.elu=function(){return this.throwIfDisposed(),Object(a.a)(this)}},function(t,e,n){"use strict";var a=n(138),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.equal=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.erf=function(){return this.throwIfDisposed(),Object(a._11)(this)}},function(t,e,n){"use strict";var a=n(256),s=n(6);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.euclideanNorm=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.exp=function(){return this.throwIfDisposed(),Object(a._13)(this)}},function(t,e,n){"use strict";var a=n(115),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.expandDims=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.expm1=function(){return this.throwIfDisposed(),Object(a._15)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.fft=function(){return this.throwIfDisposed(),Object(a._17)(this)}},function(t,e,n){"use strict";var a=n(7),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.flatten=function(){return this.throwIfDisposed(),Object(a.a)(this,[this.size])}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.floor=function(){return this.throwIfDisposed(),Object(a._19)(this)}},function(t,e,n){"use strict";var a=n(175),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.floorDiv=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(140),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.gather=function(t,e,n){return this.throwIfDisposed(),Object(a.a)(this,t,e,n)}},function(t,e,n){"use strict";var a=n(94),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.greaterEqual=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(62),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.greater=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.ifft=function(){return this.throwIfDisposed(),Object(a._26)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.irfft=function(){return this.throwIfDisposed(),Object(a._30)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.isFinite=function(){return this.throwIfDisposed(),Object(a._31)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.isInf=function(){return this.throwIfDisposed(),Object(a._32)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.isNaN=function(){return this.throwIfDisposed(),Object(a._33)(this)}},function(t,e,n){"use strict";var a=n(185),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.leakyRelu=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(82),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.lessEqual=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(142),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.less=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(258),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.localResponseNormalization=function(t,e,n,s){return this.throwIfDisposed(),Object(a.a)(this,t,e,n,s)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.logSigmoid=function(){return this.throwIfDisposed(),Object(a._42)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.logSoftmax=function(t){return this.throwIfDisposed(),Object(a._43)(this,t)}},function(t,e,n){"use strict";var a=n(186),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.logSumExp=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.log=function(){return this.throwIfDisposed(),Object(a._40)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.log1p=function(){return this.throwIfDisposed(),Object(a._41)(this)}},function(t,e,n){"use strict";var a=n(95),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.logicalAnd=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(143),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.logicalNot=function(){return this.throwIfDisposed(),Object(a.a)(this)}},function(t,e,n){"use strict";var a=n(187),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.logicalOr=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(261),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.logicalXor=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(54),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.matMul=function(t,e,n){return this.throwIfDisposed(),Object(a.a)(this,t,e,n)}},function(t,e,n){"use strict";var a=n(189),s=n(6);Object(s.d)().prototype.maxPool=function(t,e,n,s){return this.throwIfDisposed(),Object(a.a)(this,t,e,n,s)}},function(t,e,n){"use strict";var a=n(114),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.max=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(144),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.maximum=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(145),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.mean=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(183),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.min=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(146),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.minimum=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(262),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.mirrorPad=function(paddings,t){return this.throwIfDisposed(),Object(a.a)(this,paddings,t)}},function(t,e,n){"use strict";var a=n(263),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.mod=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(9),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.mul=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.neg=function(){return this.throwIfDisposed(),Object(a._68)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.norm=function(t,e,n){return this.throwIfDisposed(),Object(a._69)(this,t,e,n)}},function(t,e,n){"use strict";var a=n(190),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.notEqual=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(191),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.oneHot=function(t,e=1,n=0){return this.throwIfDisposed(),Object(a.a)(this,t,e,n)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.onesLike=function(){return this.throwIfDisposed(),Object(a._73)(this)}},function(t,e,n){"use strict";var a=n(83),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.pad=function(paddings,t){return this.throwIfDisposed(),Object(a.a)(this,paddings,t)}},function(t,e,n){"use strict";var a=n(264),s=n(6);Object(s.d)().prototype.pool=function(t,e,n,s,i,o){return this.throwIfDisposed(),Object(a.a)(this,t,e,n,s,i,o)}},function(t,e,n){"use strict";var a=n(81),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.pow=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(192),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.prelu=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(265),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.prod=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.reciprocal=function(){return this.throwIfDisposed(),Object(a._97)(this)}},function(t,e,n){"use strict";var a=n(119),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.relu=function(){return this.throwIfDisposed(),Object(a.a)(this)}},function(t,e,n){"use strict";var a=n(195),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.relu6=function(){return this.throwIfDisposed(),Object(a.a)(this)}},function(t,e,n){"use strict";var a=n(7),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.reshapeAs=function(t){return this.throwIfDisposed(),Object(a.a)(this,t.shape)}},function(t,e,n){"use strict";var a=n(7),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.reshape=function(shape){return this.throwIfDisposed(),Object(a.a)(this,shape)}},function(t,e,n){"use strict";var a=n(284),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.resizeBilinear=function(t,e,n){return this.throwIfDisposed(),Object(a.a)(this,t,e,n)}},function(t,e,n){"use strict";var a=n(285),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.resizeNearestNeighbor=function(t,e,n){return this.throwIfDisposed(),Object(a.a)(this,t,e,n)}},function(t,e,n){"use strict";var a=n(70),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.reverse=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.rfft=function(){return this.throwIfDisposed(),Object(a._106)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.round=function(){return this.throwIfDisposed(),Object(a._107)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.rsqrt=function(){return this.throwIfDisposed(),Object(a._108)(this)}},function(t,e,n){"use strict";var a=n(270),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.selu=function(){return this.throwIfDisposed(),Object(a.a)(this)}},function(t,e,n){"use strict";var a=n(271),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.separableConv2d=function(t,e,n,s,i,o){return this.throwIfDisposed(),Object(a.a)(this,t,e,n,s,i,o)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.sigmoid=function(){return this.throwIfDisposed(),Object(a._115)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.sign=function(){return this.throwIfDisposed(),Object(a._116)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.sin=function(){return this.throwIfDisposed(),Object(a._118)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.sinh=function(){return this.throwIfDisposed(),Object(a._119)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.slice=function(t,size){return this.throwIfDisposed(),Object(a._120)(this,t,size)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.softmax=function(t){return this.throwIfDisposed(),Object(a._125)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.softplus=function(){return this.throwIfDisposed(),Object(a._126)(this)}},function(t,e,n){"use strict";var a=n(147),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.spaceToBatchND=function(blockShape,paddings){return this.throwIfDisposed(),Object(a.a)(this,blockShape,paddings)}},function(t,e,n){"use strict";var a=n(98),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.split=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.sqrt=function(){return this.throwIfDisposed(),Object(a._132)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.square=function(){return this.throwIfDisposed(),Object(a._133)(this)}},function(t,e,n){"use strict";var a=n(199),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.squaredDifference=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(151),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.squeeze=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(84),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.stack=function(t,e){this.throwIfDisposed();const n=t instanceof s.a?[this,t]:[this,...t];return Object(a.a)(n,e)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.step=function(t){return this.throwIfDisposed(),Object(a._137)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.stridedSlice=function(t,e,n,s,i,o,c,u){return this.throwIfDisposed(),Object(a._138)(this,t,e,n,s,i,o,c,u)}},function(t,e,n){"use strict";var a=n(18),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.sub=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(26),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.sum=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.tan=function(){return this.throwIfDisposed(),Object(a._142)(this)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.tanh=function(){return this.throwIfDisposed(),Object(a._143)(this)}},function(t,e,n){"use strict";var a=n(116),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.tile=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.toBool=function(){return this.throwIfDisposed(),Object(a.D)(this,"bool")}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.toFloat=function(){return this.throwIfDisposed(),Object(a.D)(this,"float32")}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.toInt=function(){return this.throwIfDisposed(),Object(a.D)(this,"int32")}},function(t,e,n){"use strict";var a=n(276),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.topk=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(71),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.transpose=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(277),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.unique=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(201),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.unsortedSegmentSum=function(t,e){return this.throwIfDisposed(),Object(a.a)(this,t,e)}},function(t,e,n){"use strict";var a=n(121),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.unstack=function(t){return this.throwIfDisposed(),Object(a.a)(this,t)}},function(t,e,n){"use strict";var a=n(49),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.where=function(t,e){return this.throwIfDisposed(),Object(a.a)(t,this,e)}},function(t,e,n){"use strict";var a=n(11),s=n(6);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(s.d)().prototype.zerosLike=function(){return this.throwIfDisposed(),Object(a._164)(this)}},function(t,e,n){"use strict";var a=n(0),s=n(210);
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=undefined;Object(a._222)().registerFlag("TOPOLOGICAL_SORT_CACHE_MAX_ENTRIES",(()=>100),s.c)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/class a{constructor(t){this.maxEntries=t||100,this.cache=new Map}get(t){let e;return this.cache.has(t)&&(e=this.cache.get(t),this.cache.delete(t),this.cache.set(t,e)),e}put(t,e){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxEntries){const t=this.cache.keys().next().value;this.cache.delete(t)}this.cache.set(t,e)}getMaxEntries(){return this.maxEntries}setMaxEntries(t){if(t<0)throw new Error(`The maxEntries of LRU caches must be at least 0, but got ${t}.`);if(this.maxEntries>t)for(let e=0;e<this.maxEntries-t;e++){const t=this.cache.keys().next().value;this.cache.delete(t)}this.maxEntries=t}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/const a=["fanIn","fanOut","fanAvg"];e.b=a;const s=["normal","uniform","truncatedNormal"];e.a=s;const i=["Zeros","Ones","Constant","RandomNormal","RandomUniform","TruncatedNormal","VarianceScaling","Orthogonal","Identity"]},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){return new c.a(t)}function s(t){return new c.d(t)}function i(){return new c.c}function o(t){return new c.b(t)}Object.defineProperty(e,"__esModule",{value:true}),e.maxNorm=a,e.unitNorm=s,e.nonNeg=i,e.minMaxNorm=o;var c=n(74)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(){return new y.p}function s(){return new y.j}function i(t){return new y.a(t)}function o(t){return new y.m(t)}function c(t){return new y.l(t)}function u(t){return new y.n(t)}function l(t){return new y.f(t)}function h(t){return new y.o(t)}function p(t){return new y.c(t)}function f(t){return new y.b(t)}function b(t){return new y.d(t)}function m(t){return new y.e(t)}function g(t){return new y.h(t)}function v(t){return new y.i(t)}function w(t){return new y.k(t)}Object.defineProperty(e,"__esModule",{value:true}),e.zeros=a,e.ones=s,e.constant=i,e.randomUniform=o,e.randomNormal=c,e.truncatedNormal=u,e.identity=l,e.varianceScaling=h,e.glorotUniform=p,e.glorotNormal=f,e.heNormal=b,e.heUniform=m,e.leCunNormal=g,e.leCunUniform=v,e.orthogonal=w;var y=n(58)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){return new St.b(t)}function s(t){return new Bt.a(t)}function i(t){return new Bt.d(t)}function o(t){return new Bt.b(t)}function c(t){return new Bt.c(t)}function u(t){return new Bt.e(t)}function l(t){return new Bt.f(t)}function h(t){return new Nt.b(t)}function p(t){return new Nt.c(t)}function f(t){return new Nt.d(t)}function b(t){return new Nt.e(t)}function m(t){return new Nt.f(t)}function g(t){return new Nt.h(t)}function v(t){return new Nt.g(t)}function w(t){return new Nt.i(t)}function y(t){return new Mt.a(t)}function O(t){return new Ft.a(t)}function x(t){return new Ft.b(t)}function A(t){return new Ft.c(t)}function I(t){return new Ft.i(t)}function j(t){return new Ft.d(t)}function C(t){return new Ft.g(t)}function _(t){return new Ft.h(t)}function k(t){return new Ft.f(t)}function S(t){return new Rt.a(t)}function add(t){return new Wt.a(t)}function T(t){return new Wt.b(t)}function L(t){return new Wt.c(t)}function B(t){return new Wt.e(t)}function N(t){return new Wt.f(t)}function E(t){return new Wt.g(t)}function M(t){return new Wt.d(t)}function F(t){return new Pt.a(t)}function W(t){return new Pt.b(t)}function z(t){return new Gt.a(t)}function P(t){return new Vt.a(t)}function G(t){return P(t)}function V(t){return P(t)}function H(t){return new Vt.b(t)}function Z(t){return H(t)}function X(t){return H(t)}function U(t){return new Vt.c(t)}function $(t){return U(t)}function Y(t){return U(t)}function J(t){return new Vt.d(t)}function K(t){return new Vt.e(t)}function tt(t){return new Vt.f(t)}function nt(t){return new Vt.g(t)}function rt(t){return new Vt.h(t)}function at(t){return new Vt.i(t)}function st(t){return new Vt.j(t)}function ot(t){return new Ht.a(t)}function ct(t){return new Ht.b(t)}function ut(t){return new Ht.c(t)}function lt(t){return new Ht.d(t)}function dt(t){return new Ht.g(t)}function ht(t){return new Ht.h(t)}function pt(t){return new Dt.a(t)}function ft(t){return new Dt.b(t)}function bt(t){return new Ht.e(t)}function mt(t){return new Ht.i(t)}function gt(t){return new Zt.a(t)}function vt(t){return new Zt.b(t)}function wt(t){return new zt.c(t)}function yt(t){return new zt.b(t)}function Ot(t){return new zt.a(t)}function xt(t){return new Ft.e(t)}function At(t){return new Xt.a(t)}function jt(t){return new Ut.a(t)}function Ct(t){return new Yt.a(t)}function _t(t){return new $t.a(t)}function kt(t){return new Jt.a(t)}Object.defineProperty(e,"__esModule",{value:true}),e.inputLayer=a,e.elu=s,e.reLU=i,e.leakyReLU=o,e.prelu=c,e.softmax=u,e.thresholdedReLU=l,e.conv1d=h,e.conv2d=p,e.conv2dTranspose=f,e.conv3d=b,e.conv3dTranspose=m,e.separableConv2d=g,e.cropping2D=v,e.upSampling2d=w,e.depthwiseConv2d=y,e.activation=O,e.dense=x,e.dropout=A,e.spatialDropout1d=I,e.flatten=j,e.repeatVector=C,e.reshape=_,e.permute=k,e.embedding=S,e.add=add,e.average=T,e.concatenate=L,e.maximum=B,e.minimum=N,e.multiply=E,e.dot=M,e.batchNormalization=F,e.layerNormalization=W,e.zeroPadding2d=z,e.averagePooling1d=P,e.avgPool1d=G,e.avgPooling1d=V,e.averagePooling2d=H,e.avgPool2d=Z,e.avgPooling2d=X,e.averagePooling3d=U,e.avgPool3d=$,e.avgPooling3d=Y,e.globalAveragePooling1d=J,e.globalAveragePooling2d=K,e.globalMaxPooling1d=tt,e.globalMaxPooling2d=nt,e.maxPooling1d=rt,e.maxPooling2d=at,e.maxPooling3d=st,e.gru=ot,e.gruCell=ct,e.lstm=ut,e.lstmCell=lt,e.simpleRNN=dt,e.simpleRNNCell=ht,e.convLstm2d=pt,e.convLstm2dCell=ft,e.rnn=bt,e.stackedRNNCells=mt,e.bidirectional=gt,e.timeDistributed=vt,e.gaussianNoise=wt,e.gaussianDropout=yt,e.alphaDropout=Ot,e.masking=xt,e.rescaling=At,e.centerCrop=jt,e.resizing=Ct,e.categoryEncoding=_t,e.randomWidth=kt;var St=n(123),Tt=n(25),Lt=n(298),Bt=n(833),Nt=n(213),Mt=n(834),Dt=n(835),Ft=n(836),Rt=n(837),Wt=n(838),zt=n(839),Pt=n(840),Gt=n(841),Vt=n(842),Ht=n(162),Zt=n(843),Xt=n(844),Ut=n(845),$t=n(846),Yt=n(848),Jt=n(849);n.d(e,"Layer",(function(){return Tt.b})),n.d(e,"RNN",(function(){return Ht.e})),n.d(e,"RNNCell",(function(){return Ht.f})),n.d(e,"input",(function(){return Lt.a}));const qt=tt;e.globalMaxPool1d=qt;const Kt=nt;e.globalMaxPool2d=Kt;const Qt=rt;e.maxPool1d=Qt;const te=at;e.maxPool2d=te},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){const e={Adagrad:()=>s._398.adagrad(.01),Adadelta:()=>s._398.adadelta(1,.95,Object(i.a)()),Adam:()=>s._398.adam(.001,.9,.999,Object(i.a)()),Adamax:()=>s._398.adamax(.002,.9,.999,Object(i.a)(),0),RMSProp:()=>s._398.rmsprop(.001,.9,0,Object(i.a)()),SGD:()=>s._398.sgd(.01)};if(e.adagrad=e.Adagrad,e.adadelta=e.Adadelta,e.adam=e.Adam,e.adamax=e.Adamax,e.rmsprop=e.RMSProp,e.sgd=e.SGD,t in e)return e[t]();throw new o.e(`Unknown Optimizer ${t}`)}e.a=a;var s=n(0),i=n(73),o=n(15)},function(t,e,n){"use strict";function a(t,e,n=false){if(null==t||"object"!=typeof t||Object.getPrototypeOf(t)!==Object.prototype||!s(t))throw new Error("User-defined metadata is expected to be a JSON object, but is not.");if(n){const n=JSON.stringify(t);n.length>i&&console.warn(`User-defined metadata of model "${e}" 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 s(t){if(null===t)return true;if("object"==typeof t){if(Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);for(const n of e){if("string"!=typeof n)return false;if(!s(t[n]))return false}return true}if(Array.isArray(t)){for(const e of t)if(!s(e))return false;return true}return false}{const e=typeof t;return"string"===e||"number"===e||"boolean"===e}}e.a=a;
/**
* @license
* Copyright 2019 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
const i=1048576},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(model,t,e,n=console.log){const a=i(model),h=["Layer (type)","Input Shape","Output shape","Param #"];let p;if(a?(t=t||90,e=e||[.32,.61,.89,1]):(t=t||115,e=e||[.24,.48,.7,.8,1]),e[e.length-1]<=1&&(e=e.map((e=>Math.floor(t*e)))),!a){h.push("Receives inputs"),p=[];for(const t in model.nodesByDepth)p.push(...model.nodesByDepth[t])}n("_".repeat(t)),o(h,e,n),n("=".repeat(t));const f=model.layers;for(let s=0;s<f.length;++s)a?c(f[s],e,n):u(f[s],e,p,n),n((s===f.length-1?"=":"_").repeat(t));model.checkTrainableWeightsConsistency();const b=s(model),m=Object(l.a)(model.nonTrainableWeights);n(`Total params: ${b+m}`),n(`Trainable params: ${b}`),n(`Non-trainable params: ${m}`),n("_".repeat(t))}function s(model){let t;return t=null!=model.collectedTrainableWeights?Object(l.a)(model.collectedTrainableWeights):Object(l.a)(model.trainableWeights),t}function i(model){let t=true;const e=[],n=[];for(const t in model.nodesByDepth)e.push(model.nodesByDepth[t]);for(const a of e){if(a.length>1||1===a.length&&a[0].inboundLayers.length>1){t=false;break}n.push(...a)}if(t)for(const e of model.layers){let a=false;for(const s of e.inboundNodes)if(-1!==n.indexOf(s)){if(a){t=false;break}a=true}if(!t)break}return t}function o(fields,t,e=console.log){let line="";for(let e=0;e<fields.length;++e)e>0&&(line=line.slice(0,line.length-1)+" "),line+=fields[e],line=line.slice(0,t[e]),line+=" ".repeat(t[e]-line.length);e(line)}function c(t,e,n){let a,s;try{s=t.inboundNodes.map((t=>JSON.stringify(t.inputShapes))).join(",")}catch(t){s="multiple"}try{a=JSON.stringify(t.outputShape)}catch(t){a="multiple"}const i=undefined,c=undefined,fields=undefined;o([`${t.name} (${t.getClassName()})`,s,a,t.countParams().toString()],e,n)}function u(t,e,n,a){let s,i;try{i=t.inboundNodes.map((t=>JSON.stringify(t.inputShapes))).join(",")}catch(t){i="multiple"}try{s=JSON.stringify(t.outputShape)}catch(t){s="multiple"}const c=[];for(const e of t.inboundNodes)if(!(null!=n&&n.length>0&&-1===n.indexOf(e)))for(let t=0;t<e.inboundLayers.length;++t){const n=e.inboundLayers[t].name,a=e.nodeIndices[t],s=e.tensorIndices[t];c.push(`${n}[${a}][${s}]`)}const u=t.name,l=t.getClassName(),h=0===c.length?"":c[0],fields=undefined;o([`${u} (${l})`,i,s,t.countParams().toString(),h],e,a);for(let t=1;t<c.length;++t)o(["","","","",c[t]],e,a)}e.a=a;var l=n(297)},function(t,e,n){"use strict";var a=n(0),s=n(124),i=n(15),o=n(126),c=n(24),u=n(211),l=n(29),h=n(156),p=n(212),f=n(210),b=n(123),m=n(25);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
const g=t=>{const e=Object.keys(t);if(0===e.length)return false;const n=e[0].split("/");return!isNaN(parseInt(n[n.length-1],10))};class Container extends m.b{constructor(t){if(super({}),this.containerNodes=new Set,this.name=t.name,null==this.name){const t=this.getClassName().toLowerCase();this.name=Object(s.b)(t)}if(this.supportsMasking=false,this.trainable_=true,Array.isArray(t.inputs)?this.inputs=t.inputs.slice():this.inputs=[t.inputs],Array.isArray(t.outputs)?this.outputs=t.outputs.slice():this.outputs=[t.outputs],c.q(this.inputs).length!==this.inputs.length)throw new i.e(`The list of inputs passed to the model is redundant. All inputs should only appear once. Found: ${this.inputs.map((t=>t.name))}`);c.q(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((t=>t.name))}`),this.inputLayers=[],this.inputLayersNodeIndices=[],this.inputLayersTensorIndices=[],this.outputLayers=[],this.outputLayersNodeIndices=[],this.outputLayersTensorIndices=[],this.layers=[],this.internalContainerRefs=[];for(const t of this.outputs){const e=t.sourceLayer,n=t.nodeIndex,a=t.tensorIndex;this.outputLayers.push(e),this.outputLayersNodeIndices.push(n),this.outputLayersTensorIndices.push(a)}for(const t of this.inputs){const e=t.sourceLayer,n=t.nodeIndex,a=t.tensorIndex;c.a(0===n,"input layer has >1 nodes"),c.a(0===a,"input layer has >1 tensors"),this.inputLayers.push(e),this.inputLayersNodeIndices.push(n),this.inputLayersTensorIndices.push(a)}this.inputNames=[],this.outputNames=[],this.feedInputShapes=[],this.feedInputNames=[],this.feedOutputNames=[];for(let e=0;e<this.inputLayers.length;e++){const n=this.inputLayers[e];if(!(n instanceof b.b))throw new TypeError(`Input layers to a LayersModel must be InputLayer objects. Received inputs: ${t.inputs}. Input ${e} (0-based) originates from layer type ${n.getClassName()}.`);this.inputNames.push(n.name),this.feedInputShapes.push(n.batchInputShape),this.feedInputNames.push(n.name)}for(const t of this.outputLayers)this.outputNames.push(t.name);this.internalInputShapes=this.inputs.map((t=>t.shape)),this.internalOutputShapes=this.outputs.map((t=>t.shape));const e={},n={},a={},o={},u={},l=[],h=(t,e,n,a,s,o)=>{null!=a&&null!=s&&null!=o||(a=t.sourceLayer,s=t.nodeIndex,o=t.tensorIndex);const c=a.inboundNodes[s];if(-1!==n.indexOf(c))throw new i.d(`The tensor ${t.name} at layer "${a.name}" is part of a cycle.`);if(-1!==e.indexOf(c))return;this.containerNodes.add(Container.nodeKey(a,s)),a.id in u||(u[a.id]=Object.keys(u).length),-1===n.indexOf(c)&&n.push(c);const p=c.inboundLayers.length;for(let t=0;t<p;t++){const a=c.inputTensors[t],s=c.inboundLayers[t],i=c.nodeIndices[t],o=c.tensorIndices[t];h(a,e,n,s,i,o)}for(e.push(c);n.indexOf(c)>=0;)n.splice(n.indexOf(c),1);l.push(c)},p=[],f=[];for(const t of this.outputs)h(t,p,f);const g=l.slice().reverse();for(const t of g){n[t.id]=t,t.id in e||(e[t.id]=0);let s=e[t.id];const i=null==a[t.outboundLayer.id]?0:a[t.outboundLayer.id];s=Math.max(s,i),a[t.outboundLayer.id]=s,o[t.outboundLayer.id]=t.outboundLayer,e[t.id]=s;for(let a=0;a<t.inboundLayers.length;a++){const i=t.inboundLayers[a],o=t.nodeIndices[a],c=i.inboundNodes[o],u=null==e[c.id]?0:e[c.id];e[c.id]=Math.max(s+1,u),n[c.id]=c}}const v={};for(const t in e){const a=e[t];a in v||(v[a]=[]),v[a].push(n[t])}const w={};for(const t in a){const e=a[t];e in w||(w[e]=[]),w[e].push(o[t])}let y=Object.keys(w).map((t=>parseInt(t,10))).sort(c.k);this.layers=[];for(const t of y){const e=w[t];e.sort(((t,e)=>{const n=u[t.id],a=u[e.id];return n<a?-1:n>a?1:0}));for(const t of e)t instanceof Container&&this.internalContainerRefs.push(t),this.layers.push(t)}this.layersByDepth=w,y=Object.keys(v).map((t=>parseInt(t,10))).sort(c.k);const O=this.inputs.slice(),x=[];for(const t of y)for(const e of v[t]){const t=e.outboundLayer;if(null!=t){for(const n of e.inputTensors)if(-1===O.indexOf(n))throw new i.d(`Graph disconnected: cannot obtain value for tensor ${n} at layer "${t.name}". The following previous layers were accessed without issue: ${x}`);for(const t of e.outputTensors)O.push(t);x.push(t.name)}}this.nodesByDepth=v;const A=this.layers.map((t=>t.name));for(const t of A){const e=A.filter((e=>e===t)).length;if(1!==e)throw new i.d(`The name "${t}" is used ${e} times in the model. All layer names should be unique. Layer names: `+JSON.stringify(A))}this.outboundNodes=[],this.inboundNodes=[],new m.c({outboundLayer:this,inboundLayers:[],nodeIndices:[],tensorIndices:[],inputTensors:this.inputs,outputTensors:this.outputs,inputMasks:this.inputs.map((t=>null)),outputMasks:this.outputs.map((t=>null)),inputShapes:this.inputs.map((t=>t.shape)),outputShapes:this.outputs.map((t=>t.shape))}),this.built=true,this._refCount=1}assertNotDisposed(){if(0===this._refCount)throw new Error(`Container '${this.name}' is already disposed.`)}dispose(){this.assertNotDisposed();const t={refCountAfterDispose:null,numDisposedVariables:0};if(0==--this._refCount){for(const e of this.layers)t.numDisposedVariables+=e.dispose().numDisposedVariables;for(const container of this.internalContainerRefs)t.numDisposedVariables+=container.dispose().numDisposedVariables}return t.refCountAfterDispose=this._refCount,t}get trainable(){return this.trainable_}set trainable(t){this.layers.forEach((e=>{e._trainableWeights.forEach((e=>e.trainable=t))})),this.trainable_=t}get trainableWeights(){if(this._trainableWeights.length>0)throw new i.e("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 t=[];for(const e of this.layers)t=t.concat(e.trainableWeights);return t}get nonTrainableWeights(){const t=[];for(const e of this.layers)t.push(...e.nonTrainableWeights);if(!this.trainable){const e=[];for(const t of this.layers)e.push(...t.trainableWeights);return e.concat(t)}return t}get weights(){return this.trainableWeights.concat(this.nonTrainableWeights)}loadWeights(t,e=true){const n={};let a=0;const s=g(t);s&&this.parseWeights(t);for(const t of this.layers)for(const[index,e]of t.weights.entries()){const t=s?`${e.name.split("/").slice(0,-1).join("/")+"/"}${index}`:e.originalName;if(null!=n[t])throw new i.e(`Duplicate weight name: ${t}`);n[t]=e,a++}const o=[];for(const a in t){let s=a;if(null==n[a]){const t=a.split("/"),e=undefined;s=t.slice(0,-2).concat([t[t.length-1]]).join("/")}if(null!=n[s])o.push([n[s],t[a]]);else if(e)throw new i.e(`Provided weight data has no target variable: ${a}`);delete n[s]}if(e){const t=[];for(const e in n)t.push(e);if(t.length>0)throw new i.e(`${t.length} of ${a} weights are not set: ${t}`)}Object(h.c)(o)}parseWeights(t){for(const e in Object.keys(t)){const n=e.split("/"),list=["vars","layer_checkpoint_dependencies"],a=n.map((t=>t.startsWith("_")?t.slice(1):t)).filter((t=>!list.includes(t))).join("/");a!==e&&(t[a]=t[e],delete t[e])}}updatedConfig(){const t=this.getConfig(),e={};return e.className=this.getClassName(),e.config=t,e.kerasVersion=`tfjs-layers ${p.a}`,e.backend="TensorFlow.js",e}toJSON(t,e=true){const n=Object(u.b)(this.updatedConfig());return e?JSON.stringify(n):n}call(t,e){return Object(a._394)((()=>{t=c.o(t);const n=new f.a;for(let e=0;e<this.inputs.length;++e)n.add(this.inputs[e],t[e]);return Object(f.b)(this.outputs,n,e)}))}computeMask(t,e){return Object(a._394)((()=>{let n;return t=c.o(t),n=null==e?c.j(null,t.length):c.o(e),this.runInternalGraph(t,n)[1]}))}computeOutputShape(t){const e=l.d(t);if(e.length!==this.inputLayers.length)throw new i.e(`Invalid inputShape argument ${t}: model has ${this.inputLayers.length} tensor inputs.`);const n={};for(let t=0;t<e.length;t++){const a=this.inputLayers[t],s=e[t],i=undefined;n[a.name+"_0_0"]=s}const a=Object.keys(this.nodesByDepth).map((t=>parseInt(t,10))).sort(c.k);if(a.length>1)for(const t of a){const e=this.nodesByDepth[t];for(const t of e){const e=t.outboundLayer;if(-1!==this.inputLayers.map((t=>t.id)).indexOf(e.id))continue;const a=[];for(let e=0;e<t.inboundLayers.length;e++){const s=t.inboundLayers[e],i=t.nodeIndices[e],o=t.tensorIndices[e],c=undefined,u=n[`${s.name}_${i}_${o}`];a.push(u)}const s=e.computeOutputShape(c.m(a)),i=l.d(s),o=e.inboundNodes.indexOf(t);for(let t=0;t<i.length;t++){const a=undefined;n[`${e.name}_${o}_${t}`]=i[t]}}}const s=[],o=[];for(let t=0;t<this.outputLayers.length;t++){const e=this.outputLayers[t],n=this.outputLayersNodeIndices[t],a=this.outputLayersTensorIndices[t],s=`${e.name}_${n}_${a}`;o.push(s)}for(let t=0;t<o.length;t++){const e=o[t];c.a(e in n),s.push(n[e])}return c.m(s)}runInternalGraph(t,e){null==e&&(e=c.j(null,t.length));const n={};for(let a=0;a<this.inputs.length;++a){const s=this.inputs[a],i=t[a],o=e[a];n[s.id]=[i,o]}const a=Object.keys(this.nodesByDepth).map((t=>parseInt(t,10))).sort(c.k);for(const t of a){const e=this.nodesByDepth[t];for(const t of e){const e=t.outboundLayer,a=t.inputTensors,s=t.outputTensors,o=new Array;for(const t of a)t.id in n&&o.push(n[t.id]);if(o.length===a.length){let a={},u,l,h,p;if(null!=t.callArgs&&(a=t.callArgs),1===o.length){const[t,n]=o[0];null==a.mask&&(a.mask=n),h=c.o(e.call(t,a)),p=c.o(e.computeMask(t,n)),u=[t],l=[n]}else u=o.map((t=>t[0])),l=o.map((t=>t[1])),null==a.mask&&(a.mask=l),h=c.o(e.call(u,a)),p=c.o(e.computeMask(u,l));if(e.activityRegularizer)throw new i.c("LayersModel invocation with concrete Tensor value(s) in the presence of activity regularizer(s) is not supported yet.");for(let t=0;t<s.length;++t){const e=s[t],a=h[t],i=p[t];n[e.id]=[a,i]}}}}const s=[],o=[],u=[];for(const t of this.outputs){c.a(t.id in n,`Could not compute output ${t.name} : ${t.id}`);const[e,a]=n[t.id];u.push(e.shape),s.push(e),o.push(a)}return[s,o,u]}buildNodeConversionMap(t){const e={};let n;for(const t of this.layers){n=t instanceof Container?1:0;for(let a=0;a<t.inboundNodes.length;a++){const s=Container.nodeKey(t,a);this.containerNodes.has(s)&&(e[s]=n,n+=1)}}return e}getLayer(t,index){if(null!=index)return this.findLayer(index);if(null==t)throw new i.e("Provide either a layer name or layer index");if("number"==typeof t)return this.findLayer(t);for(const e of this.layers)if(e.name===t)return e;throw new i.e(`No such layer: ${t}`)}findLayer(index){if(this.layers.length<=index)throw new i.e(`Was asked to retrieve layer at index ${index}, but model only has ${this.layers.length} layer(s).`);return this.layers[index]}calculateLosses(){return Object(a._394)((()=>{const t=[];for(const e of this.layers)for(let n=0;n<e.inboundNodes.length;++n){const a=Container.nodeKey(e,n);this.containerNodes.has(a)&&t.push(...e.calculateLosses())}return t}))}getConfig(){const t={name:this.name},e=this.buildNodeConversionMap(this.layers),n=[];for(const t of this.layers){const a=t.getClassName(),s=t.getConfig(),i=[];for(let n=0;n<t.inboundNodes.length;n++){const a=t.inboundNodes[n],s=Container.nodeKey(t,n);let o={};if(this.containerNodes.has(s)){if(a.callArgs)try{JSON.stringify(a.callArgs),o=a.callArgs}catch(e){console.warn(`Layer ${t.name} was passed non-serializable keyword arguments: ${a.callArgs}. They will not be included in the serialized model (and thus will be missing at deserialization time).`),o={}}if(a.inboundLayers.length>0){const t=[];for(let n=0;n<a.inboundLayers.length;n++){const s=a.inboundLayers[n],i=a.nodeIndices[n],c=a.tensorIndices[n],u=undefined;let l=e[Container.nodeKey(s,i)];null==l&&(l=0),t.push([s.name,l,c,o])}i.push(t)}}}const o={};o.name=t.name,o.className=a,o.config=s,o.inboundNodes=i,n.push(o)}t.layers=n;const a=[];for(let t=0;t<this.inputLayers.length;t++){const n=this.inputLayers[t],s=this.inputLayersNodeIndices[t],i=Container.nodeKey(n,s);if(!this.containerNodes.has(i))continue;let o=e[i];null==o&&(o=0);const c=this.inputLayersTensorIndices[t];a.push([n.name,o,c])}t.inputLayers=a;const s=[];for(let t=0;t<this.outputLayers.length;t++){const n=this.outputLayers[t],a=this.outputLayersNodeIndices[t],i=Container.nodeKey(n,a);if(!this.containerNodes.has(i))continue;let o=e[i];null==o&&(o=0);const c=this.outputLayersTensorIndices[t];s.push([n.name,o,c])}return t.outputLayers=s,t}static fromConfig(t,e,n={},a=false){function s(t,e){t.name in p?p[t.name].push(e):p[t.name]=[e]}function u(t,e){const n=[];let a;for(const i of e){const o=i[0],c=i[1],u=i[2];if(a=null==i[3]?{}:i[3],!(o in h))return s(t,e),void 0;const l=h[o];if(l.inboundNodes.length<=c)return s(t,e),void 0;const p=l.inboundNodes[c];n.push(p.outputTensors[u])}n.length>0&&t.apply(c.m(n),a)}function l(t){const n=t.name,c=Object(o.a)(t,null!=e.customObjects?e.customObjects:{});c.setFastWeightInitDuringBuild(a),h[n]=c;const u=undefined;t.inboundNodes.forEach((t=>{if(!(t instanceof Array))throw new i.e(`Corrupted configuration, expected array for nodeData: ${t}`);s(c,t)}))}const h={},p={},f=e.name,b=e.layers;for(const t of b)l(t);for(;!c.h(p);)for(const t of b){const e=h[t.name];if(e.name in p){const t=p[e.name];delete p[e.name];for(const n of t)u(e,n)}}const m=[],g=[],v=e.inputLayers;for(const t of v){const e=t[0],n=t[1],a=t[2];c.a(e in h);const s=undefined,i=h[e].inboundNodes[n].outputTensors;m.push(i[a])}const w=e.outputLayers;for(const t of w){const e=t[0],n=t[1],a=t[2];c.a(e in h);const s=undefined,i=h[e].inboundNodes[n].outputTensors;g.push(i[a])}return new t({inputs:m,outputs:g,name:f})}get stateful(){if(this._stateful)throw new i.e("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(const t of this.layers)if(t.stateful)return true;return false}resetStates(){Object(a._394)((()=>{this.layers.forEach((t=>{t.stateful&&t.resetStates()}))}))}}e.a=Container},function(t,e,n){"use strict";function a(model,t){let e,n;const a=t;e=a.xs,n=a.ys,p._408.assert(null!=e&&null!=n,(()=>`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}`));const i=s("input",model.inputNames,e),o=s("output",model.outputNames,n),c=i[0].shape[0];p._408.assert(i.length===model.inputs.length,(()=>`LayersModel has ${model.inputs.length} inputs, but the dataset provides ${i.length} inputs. (Expected input keys: ${JSON.stringify(model.inputNames)})`)),p._408.assert(o.length===model.outputs.length,(()=>`LayersModel has ${model.outputs.length} outputs, but the dataset provides ${o.length} outputs. (Expected output keys: ${JSON.stringify(model.outputNames)})`));for(let t=0;t<i.length;t++)p._408.assert(i[t].shape[0]===c,(()=>`Batch size mismatch: input ${model.inputNames[t]} has ${i[t].shape[0]}; expected ${c} based on input ${model.inputNames[0]}.`));for(let t=0;t<o.length;t++)p._408.assert(o[t].shape[0]===c,(()=>`Batch size mismatch: output ${model.outputNames[t]} has ${o[t].shape[0]}; expected ${c} based on input ${model.inputNames[0]}.`));return{xs:i,ys:o}}function s(t,names,e){if(e instanceof p._133)return[e];if(Array.isArray(e))return p._408.assert(e.length===names.length,(()=>`Received an array of ${e.length} Tensors, but expected ${names.length} to match the ${t} keys ${names}.`)),e;{const n=[];for(const a of names){if(null==e[a])throw new b.e(`The feature data generated by the dataset lacks the required ${t} key '${a}'.`);n.push(e[a])}return n}}function i(data){if(3===data.length)throw new b.c("Validation with sample weights is not implemented yet.");return{xs:data[0],ys:data[1]}}async function o(model,t,e){const n=null!=e.batchesPerEpoch;if(p._408.assert(null!=model.optimizer,(()=>"You must compile a model before training/testing. Use LayersModel.compile(modelCompileConfig).")),p._408.assert(null!=e,(()=>"For fitDataset(), the 2nd argument (config) is required, but it is not provided in this call.")),p._408.assert(null!=e.epochs&&e.epochs>0&&Number.isInteger(e.epochs),(()=>`For fitDataset(), config.epochs is expected to be a positive integer, but got ${e.epochs}`)),p._408.assert(!n||e.batchesPerEpoch>0&&Number.isInteger(e.batchesPerEpoch),(()=>`For fitDataset(), config.batchesPerEpoch is expected to be a positive integer if specified, but got ${e.batchesPerEpoch}`)),p._408.assert(null==e.validationSplit,(()=>"`validationSplit` is not supported by `fitDataset()`. Use validationData instead.")),model.isTraining)throw new Error("Cannot start training because another fit() call is ongoing.");model.isTraining=true;try{const s=null!=e.validationData;let o,l;if(s)if(u(e.validationData))p._408.assert(null==e.validationBatches||e.validationBatches>0&&Number.isInteger(e.validationBatches),(()=>`For fitDataset() with dataset-based validation, config.validationBatches is expected not to be provided, or to be a positive integer, but got ${e.validationBatches}`));else{const t=i(e.validationData);o=t.xs,l=t.ys}const h=model.makeTrainFunction(),b=model.getDedupedMetricsNames();let y;y=s?b.slice().concat(b.map((t=>"val_"+t))):b.slice();const O=Object(f.g)(e.callbacks,e.yieldEvery),x=null==e.verbose?1:e.verbose,{callbackList:A,history:I}=Object(f.f)(O,x,e.epochs,null,null,c(t,e),null,s,y);A.setModel(model),model.history=I,await A.onTrainBegin(),model.stopTraining_=false;let j=null==e.initialEpoch?0:e.initialEpoch,C=await t.iterator();for(;j<e.epochs;){const i={};await A.onEpochBegin(j);let c=0,f=0;for(n||(C=await t.iterator());!n||c<e.batchesPerEpoch;){const t=await C.next();if(n&&t.done){console.warn(`You provided \`batchesPerEpoch\` as ${e.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, `+e.batchesPerEpoch*e.epochs+" batches). You may need to use the repeat() function when building your dataset.");break}if(null!=t.value){const{xs:n,ys:s}=a(model,t.value),i={};i.batch=f,i.size=n[0].shape[0],await A.onBatchBegin(f,i);const o=[];if(null!=e.classWeight){const t=Object(v.b)(e.classWeight,model.outputNames);for(let e=0;e<t.length;++e)o.push(await Object(v.c)(s[e],null,t[e]))}const u=n.concat(s).concat(o),l=h(u);p._209(u);for(let t=0;t<b.length;++t){const e=b[t],n=l[t];i[e]=n,p._257(n)}await A.onBatchEnd(f,i),Object(m.a)(i),f++,c++}if(n?c>=e.batchesPerEpoch:t.done){if(s){let t;t=u(e.validationData)?Object(g.o)(await model.evaluateDataset(e.validationData,{batches:e.validationBatches})):Object(g.o)(model.evaluate(o,l,{batchSize:null==e.validationBatchSize?w:e.validationBatchSize,verbose:0}));for(let e=0;e<model.metricsNames.length;++e)i[`val_${model.metricsNames[e]}`]=t[e]}break}if(model.stopTraining_)break}if(await A.onEpochEnd(j,i),j++,model.stopTraining_)break}return await A.onTrainEnd(),await model.history.syncData(),model.history}finally{model.isTraining=false}}function c(t,e){let n=null;return null!=e.batchesPerEpoch?n=e.batchesPerEpoch:Number.isFinite(t.size)&&(n=t.size),n}function u(t){return"function"==typeof t.iterator}function l(t){return"function"==typeof t.next}async function h(model,t,e){const n=null!=(e=e||{}).batches,s=model.testFunction;let i=[];if(e.verbose>0)throw new b.c("Verbose mode is not implemented yet.");p._408.assert(!n||e.batches>0&&Number.isInteger(e.batches),(()=>`Test loop expects \`batches\` to be a positive integer, but received ${JSON.stringify(e.batches)}`));const o=l(t)?t:await t.iterator();let c=0,u=0;for(;!n||u<e.batches;){const t=await o.next();if(i=p._394((()=>{if(t.value){const{xs:e,ys:n}=a(model,t.value),o=e.concat(n),l=p._394((()=>s(o)));if(p._209(o),0===u)for(let t=0;t<l.length;++t)i.push(Object(p._343)(0));const h=o[0].shape[0];for(let t=0;t<l.length;++t){const e=l[t],n=i[t];i[t]=p._394((()=>p._150(i[t],p._292(h,e)))),u>0&&p._209(n)}p._209(l),c+=h,++u}return i})),t.done){n&&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, ${e.batches} batches). You may need to use the repeat() function when building your dataset.`);break}}for(let t=0;t<i.length;++t){const e=i[t];i[t]=p._211(i[t],c),p._209(e)}return Object(g.m)(i)}e.b=o,e.a=h;var p=n(0),f=n(125),b=n(15),m=n(157),g=n(24),v=n(300);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
const w=32},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){l._408.assert(t>0&&Number.isInteger(t),(()=>`batchSize is required to be a positive integer, but got ${t}`))}function s(t,e,n){return null==t?[null]:Array.isArray(t)?t.map((t=>Object(h.q)(t,e,n-e))):Object(h.q)(t,e,n-e)}function i(t,e){return l._394((()=>null==t?null:Array.isArray(t)?t.map((t=>i(t,e))):Object(h.k)(t,"int32"===e.dtype?e:l._179(e,"int32"))))}function o(size,t){const e=[];let n=0,a=null;for(;n<size;)a=n+t,a>=size&&(a=size),e.push([n,a]),n=a;return e}function c(t){const e=[];t instanceof l._133&&(t=[t]);for(let n=0;n<t.length;++n){const a=t[n];if(1===a.rank)e.push(Object(h.i)(a,1));else{if(0===a.rank)throw new Error("Expected tensor to be at least 1D, but received a 0D tensor (scalar).");e.push(a)}}return e}function u(t,e){if(null==t)return;const n=[];if(e instanceof l._133)n.push(e.id);else if(Array.isArray(e))e.forEach((t=>n.push(t.id)));else if(null!=e)for(const t in e){const a=e[t];n.push(a.id)}const a=[];if(t instanceof l._133)-1===n.indexOf(t.id)&&a.push(t);else if(Array.isArray(t))t.forEach((t=>{-1===n.indexOf(t.id)&&a.push(t)}));else if(null!=t)for(const e in t){const s=t[e];-1===n.indexOf(s.id)&&a.push(s)}a.forEach((t=>{t.isDisposed||t.dispose()}))}e.a=a,e.e=s,e.f=i,e.d=o,e.c=c,e.b=u;var l=n(0),h=n(32)},function(t,e,n){"use strict";n.d(e,"d",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return b})),n.d(e,"a",(function(){return m})),n.d(e,"f",(function(){return g})),n.d(e,"e",(function(){return v}));var a=n(0),s=n(160),i=n(74),o=n(25),c=n(15),u=n(58),l=n(64),h=n(29);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class p extends o.b{constructor(t){super(null==t?{}:t),this.supportsMasking=true,null!=t&&(this.maxValue=t.maxValue)}call(t,e){t=Object(h.b)(t);let n=Object(a._331)(t);return null!=this.maxValue&&(n=Object(a._181)(n,0,this.maxValue)),n}computeOutputShape(t){return t}getConfig(){const t={maxValue:this.maxValue},e=super.getConfig();return Object.assign(t,e),t}}p.className="ReLU",a._349.registerClass(p);class f extends o.b{constructor(t){super(null==t?{}:t),this.DEFAULT_ALPHA=.3,null==t&&(t={}),this.alpha=null==t.alpha?this.DEFAULT_ALPHA:t.alpha}call(t,e){const n=Object(h.b)(t);return Object(a._259)(n,this.alpha)}computeOutputShape(t){return t}getConfig(){const t={alpha:this.alpha},e=super.getConfig();return Object.assign(t,e),t}}f.className="LeakyReLU",a._349.registerClass(f);class b extends o.b{constructor(t){if(super(null==t?{}:t),this.DEFAULT_ALPHA_INITIALIZER="zeros",null==t&&(t={}),this.supportsMasking=true,this.alphaInitializer=Object(u.q)(t.alphaInitializer||this.DEFAULT_ALPHA_INITIALIZER),this.alphaRegularizer=Object(l.b)(t.alphaRegularizer),this.alphaConstraint=Object(i.e)(t.alphaConstraint),null==t.sharedAxes)this.sharedAxes=null;else if(Array.isArray(t.sharedAxes))this.sharedAxes=t.sharedAxes;else{if("number"!=typeof t.sharedAxes)throw new c.e(`Expected sharedAxes to be a number or an array of numbers, but got ${t.sharedAxes}`);this.sharedAxes=[t.sharedAxes]}}build(t){const e=(t=Object(h.a)(t)).slice(1);if(null!=this.sharedAxes)for(const t of this.sharedAxes)e[t-1]=1;this.alpha=this.addWeight("alpha",e,"float32",this.alphaInitializer,this.alphaRegularizer,true,this.alphaConstraint);const n={};if(null!=this.sharedAxes)for(let e=1;e<t.length;++e)n[e]=t[e];this.inputSpec=[new o.a({ndim:t.length,axes:n})],this.built=true}call(t,e){return t=Object(h.b)(t),Object(a._311)(t,this.alpha.read())}getConfig(){const t={alphaInitializer:Object(u.r)(this.alphaInitializer),alphaRegularizer:Object(l.e)(this.alphaRegularizer),alphaConstraint:Object(i.f)(this.alphaConstraint),sharedAxes:this.sharedAxes},e=super.getConfig();return Object.assign(t,e),t}}b.className="PReLU",a._349.registerClass(b);class m extends o.b{constructor(t){if(super(null==t?{}:t),this.DEFAULT_ALPHA=1,null==t&&(t={}),null!=t.alpha&&t.alpha!==this.DEFAULT_ALPHA)throw new c.c(`Non-default alpha value (${t.alpha}) is not supported by the ELU layer yet.`);this.alpha=null==t.alpha?this.DEFAULT_ALPHA:t.alpha}call(t,e){const n=Object(h.b)(t);return Object(a._216)(n)}computeOutputShape(t){return t}getConfig(){const t={alpha:this.alpha},e=super.getConfig();return Object.assign(t,e),t}}m.className="ELU",a._349.registerClass(m);class g extends o.b{constructor(t){super(null==t?{}:t),this.DEFAULT_THETA=1,null==t&&(t={}),this.theta=null==t.theta?this.DEFAULT_THETA:t.theta}call(t,e){const n=Object(h.b)(t);return Object(a._292)(n,Object(a._179)(Object(a._246)(n,this.theta),"float32"))}computeOutputShape(t){return t}getConfig(){const t={theta:this.theta},e=super.getConfig();return Object.assign(t,e),t}}g.className="ThresholdedReLU",a._349.registerClass(g);class v extends o.b{constructor(t){super(null==t?{}:t),this.DEFAULT_AXIS=1,null==t&&(t={}),this.softmax=(new s.a).apply,this.axis=null==t.axis?this.DEFAULT_AXIS:t.axis}call(t,e){return Object(a._394)((()=>{let n=Object(h.b)(t);const s=e.mask;if(null!=s){const t=Object(a._292)(Object(a._379)(Object(a._300)(n.shape),Object(a._179)(s,n.dtype)),Object(a._343)(-1e9));n=Object(a._150)(n,t)}return this.axis instanceof Array?this.axis.length>1?Object(a._226)(Object(a._379)(n,Object(a._269)(n,this.axis,true))):this.softmax(n,this.axis[0]):this.softmax(n,this.axis)}))}computeOutputShape(t){return t}getConfig(){const t={axis:this.axis},e=super.getConfig();return Object.assign(t,e),t}}v.className="Softmax",a._349.registerClass(v)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e,n=[1,1],a="valid",o,u){return Object(s._394)((()=>{null==o&&(o=Object(i.b)()),Object(c.a)(o);let h=Object(m.j)(t,o);if(4!==t.rank)throw new l.e(`Input for depthwiseConv2d is required to be 4-D, but is instead ${t.rank}-D`);if(4!==e.rank)throw new l.e(`depthwiseKernel is required to be 4-D, but is instead ${e.rank}-D`);return h=s._204(h,e,n,"same"===a?"same":"valid","NHWC",u),"channelsFirst"===o&&(h=s._399(h,[0,3,1,2])),h}))}n.d(e,"a",(function(){return g}));var s=n(0),i=n(73),o=n(32),c=n(51),u=n(74),l=n(15),h=n(58),p=n(64),f=n(161),b=n(29),m=n(213);class g extends m.a{constructor(t){super(2,t),this.depthwiseKernel=null,this.depthMultiplier=null==t.depthMultiplier?1:t.depthMultiplier,this.depthwiseInitializer=Object(h.q)(t.depthwiseInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.depthwiseConstraint=Object(u.e)(t.depthwiseConstraint),this.depthwiseRegularizer=Object(p.b)(t.depthwiseRegularizer)}build(t){if((t=Object(b.a)(t)).length<4)throw new l.e(`Inputs to DepthwiseConv2D should have rank 4. Received input shape: ${JSON.stringify(t)}.`);const e="channelsFirst"===this.dataFormat?1:3;if(null==t[e]||t[e]<0)throw new l.e(`The channel dimension of the inputs to DepthwiseConv2D should be defined, but is not (${t[e]}).`);const n=t[e],a=[this.kernelSize[0],this.kernelSize[1],n,this.depthMultiplier];this.depthwiseKernel=this.addWeight("depthwise_kernel",a,null,this.depthwiseInitializer,this.depthwiseRegularizer,true,this.depthwiseConstraint),this.useBias?this.bias=this.addWeight("bias",[n*this.depthMultiplier],null,this.biasInitializer,this.biasRegularizer,true,this.biasConstraint):this.bias=null,this.built=true}call(t,e){return Object(s._394)((()=>{let e=a(t=Object(b.b)(t),this.depthwiseKernel.read(),this.strides,this.padding,this.dataFormat,null);return this.useBias&&(e=o.b(e,this.bias.read(),this.dataFormat)),null!=this.activation&&(e=this.activation.apply(e)),e}))}computeOutputShape(t){t=Object(b.a)(t);const e="channelsFirst"===this.dataFormat?t[2]:t[1],n="channelsFirst"===this.dataFormat?t[3]:t[2],a="channelsFirst"===this.dataFormat?t[1]*this.depthMultiplier:t[3]*this.depthMultiplier,s=Object(f.a)(e,this.kernelSize[0],this.padding,this.strides[0]),i=Object(f.a)(n,this.kernelSize[1],this.padding,this.strides[1]);return"channelsFirst"===this.dataFormat?[t[0],a,s,i]:[t[0],s,i,a]}getConfig(){const t=super.getConfig();return t.depthMultiplier=this.depthMultiplier,t.depthwiseInitializer=Object(h.r)(this.depthwiseInitializer),t.depthwiseRegularizer=Object(p.e)(this.depthwiseRegularizer),t.depthwiseConstraint=Object(u.f)(this.depthwiseRegularizer),t}}g.className="DepthwiseConv2D",s._349.registerClass(g)},function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return w}));var a=n(0),s=n(32),i=n(51),o=n(25),c=n(15),u=n(58),l=n(161),h=n(24),p=n(29),f=n(162),b=this&&this.__rest||function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,a=Object.getOwnPropertySymbols(t);s<a.length;s++)e.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(t,a[s])&&(n[a[s]]=t[a[s]]);return n};class m extends f.f{}class g extends f.e{constructor(t){if(t.unroll)throw new c.c("Unrolling is not possible with convolutional RNNs.");if(Array.isArray(t.cell))throw new c.c("It is not possible at the moment to stack convolutional cells.");super(t),this.inputSpec=[new o.a({ndim:5})]}call(t,e){return a._394((()=>{if(null!=this.cell.dropoutMask&&(a._209(this.cell.dropoutMask),this.cell.dropoutMask=null),null!=this.cell.recurrentDropoutMask&&(a._209(this.cell.recurrentDropoutMask),this.cell.recurrentDropoutMask=null),e&&e.constants)throw new c.e("ConvRNN2D cell does not support constants");const n=null==e?null:e.mask,s=null==e?null:e.training,i=null==e?null:e.initialState;return super.call(t,{mask:n,training:s,initialState:i})}))}computeOutputShape(t){let e=this.computeSingleOutputShape(t);return this.returnSequences||(e=[e[0],...e.slice(2)]),this.returnState&&(e=[e,...Array(2).fill([t[0],...e.slice(-3)])]),e}getInitialState(t){return a._394((()=>{const{stateSize:e}=this.cell,n=t.shape,s=this.computeSingleOutputShape(n),i=[s[0],...s.slice(2)],o=a._416(i);return Array.isArray(e)?Array(e.length).fill(o):[o]}))}resetStates(t,e=false){a._394((()=>{if(!this.stateful)throw new c.b("Cannot call resetStates() on an RNN Layer that is not stateful.");const n=this.inputSpec[0].shape,s=this.computeSingleOutputShape(n),i=[s[0],...s.slice(2)],o=undefined;if(null==n[0])throw new c.e("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((()=>a._416(i))):this.states_=[a._416(i)];else if(null==t)a._209(this.states_),null!=this.keptStates&&(a._209(this.keptStates),this.keptStates=[]),Array.isArray(this.cell.stateSize)?this.states_=this.cell.stateSize.map((()=>a._416(i))):this.states_[0]=a._416(i);else{if(Array.isArray(t)||(t=[t]),t.length!==this.states_.length)throw new c.e(`Layer ${this.name} expects ${this.states_.length} state(s), but it received ${t.length} state value(s). Input received: ${t}`);e?this.keptStates.push(this.states_.slice()):a._209(this.states_);for(let index=0;index<this.states_.length;++index){const e=t[index],n=i;if(!a._408.arraysEqual(e.shape,n))throw new c.e(`State ${index} is incompatible with layer ${this.name}: expected shape=${n}, received shape=${e.shape}`);this.states_[index]=e}}this.states_=this.states_.map((state=>a._257(state.clone())))}))}computeSingleOutputShape(t){const{dataFormat:e,filters:filters,kernelSize:n,padding:a,strides:s,dilationRate:i}=this.cell,o="channelsFirst"===e,c=t[o?3:2],u=t[o?4:3],h=Object(l.a)(c,n[0],a,s[0],i[0]),p=Object(l.a)(u,n[1],a,s[1],i[1]),f=undefined;return[...t.slice(0,2),...o?[filters,h,p]:[h,p,filters]]}}g.className="ConvRNN2D";class v extends f.d{constructor(t){const{filters:filters,kernelSize:e,strides:n,padding:a,dataFormat:s,dilationRate:o}=t;super(Object.assign(Object.assign({},t),{units:filters})),this.filters=filters,Object(h.b)(this.filters,"filters"),this.kernelSize=Object(l.c)(e,2,"kernelSize"),this.kernelSize.forEach((size=>Object(h.b)(size,"kernelSize"))),this.strides=Object(l.c)(n||1,2,"strides"),this.strides.forEach((t=>Object(h.b)(t,"strides"))),this.padding=a||"valid",Object(i.c)(this.padding),this.dataFormat=s||"channelsLast",Object(i.a)(this.dataFormat),this.dilationRate=Object(l.c)(o||1,2,"dilationRate"),this.dilationRate.forEach((t=>Object(h.b)(t,"dilationRate")))}build(t){var e;t=Object(p.a)(t);const n="channelsFirst"===this.dataFormat?1:t.length-1;if(null==t[n])throw new c.e(`The channel dimension of the input should be defined. Found ${t[n]}`);const i=t[n],o=4,l=this.kernelSize.concat([i,4*this.filters]);this.kernel=this.addWeight("kernel",l,null,this.kernelInitializer,this.kernelRegularizer,true,this.kernelConstraint);const h=this.kernelSize.concat([this.filters,4*this.filters]);if(this.recurrentKernel=this.addWeight("recurrent_kernel",h,null,this.recurrentInitializer,this.recurrentRegularizer,true,this.recurrentConstraint),this.useBias){let t;if(this.unitForgetBias){const init=this.biasInitializer,filters=this.filters;t=new((e=class t extends u.g{apply(shape,t){const e=init.apply([filters]),n=a._300([filters]),i=init.apply([2*filters]);return s.e([e,n,i])}}).className="CustomInit",e)}else t=this.biasInitializer;this.bias=this.addWeight("bias",[4*this.filters],null,t,this.biasRegularizer,true,this.biasConstraint)}this.built=true}call(t,e){return a._394((()=>{if(3!==t.length)throw new c.e(`ConvLSTM2DCell expects 3 input Tensors (inputs, h, c), got ${t.length}.`);const n=e.training||false,s=t[0],i=t[1],o=t[2],u=4;0<this.dropout&&this.dropout<1&&null==this.dropoutMask&&(this.dropoutMask=Object(f.j)({ones:()=>a._301(s),rate:this.dropout,training:n,count:4,dropoutFunc:this.dropoutFunc}));const l=this.dropoutMask,h=(t,e,index)=>e&&e[index]?a._292(e[index],t):t;let p=h(s,l,0),b=h(s,l,1),m=h(s,l,2),g=h(s,l,3);0<this.recurrentDropout&&this.recurrentDropout<1&&null==this.recurrentDropoutMask&&(this.recurrentDropoutMask=Object(f.j)({ones:()=>a._301(i),rate:this.recurrentDropout,training:n,count:4,dropoutFunc:this.dropoutFunc}));const v=this.recurrentDropoutMask;let w=h(i,v,0),y=h(i,v,1),O=h(i,v,2),x=h(i,v,3);const A=3,[I,j,C,_]=a._370(this.kernel.read(),4,3),[k,S,T,L]=this.useBias?a._370(this.bias.read(),4):[null,null,null,null];p=this.inputConv(p,I,k,this.padding),b=this.inputConv(b,j,S,this.padding),m=this.inputConv(m,C,T,this.padding),g=this.inputConv(g,_,L,this.padding);const[B,N,E,M]=a._370(this.recurrentKernel.read(),4,3);w=this.recurrentConv(w,B),y=this.recurrentConv(y,N),O=this.recurrentConv(O,E),x=this.recurrentConv(x,M);const F=this.recurrentActivation.apply(a._150(p,w)),W=this.recurrentActivation.apply(a._150(b,y)),z=a._150(a._292(W,o),a._292(F,this.activation.apply(a._150(m,O)))),P=a._292(this.recurrentActivation.apply(a._150(g,x)),this.activation.apply(z));return[P,P,z]}))}getConfig(){const t=super.getConfig(),{units:e}=t,n=b(t,["units"]),a={filters:this.filters,kernelSize:this.kernelSize,padding:this.padding,dataFormat:this.dataFormat,dilationRate:this.dilationRate,strides:this.strides};return Object.assign(Object.assign({},n),a)}inputConv(t,e,n,i){const o=a._190(t,e,this.strides,i||"valid","channelsFirst"===this.dataFormat?"NCHW":"NHWC",this.dilationRate);return n?s.b(o,n,this.dataFormat):o}recurrentConv(t,e){const n=1;return a._190(t,e,1,"same","channelsFirst"===this.dataFormat?"NCHW":"NHWC")}}v.className="ConvLSTM2DCell",a._349.registerClass(v);class w extends g{constructor(t){const cell=new v(t);super(Object.assign(Object.assign({},t),{cell:cell}))}static fromConfig(t,e){return new t(e)}}w.className="ConvLSTM2D",a._349.registerClass(w)},function(t,e,n){"use strict";n.d(e,"c",(function(){return m})),n.d(e,"i",(function(){return g})),n.d(e,"b",(function(){return v})),n.d(e,"d",(function(){return w})),n.d(e,"a",(function(){return y})),n.d(e,"g",(function(){return O})),n.d(e,"h",(function(){return x})),n.d(e,"f",(function(){return A})),n.d(e,"e",(function(){return I}));var a=n(0),s=n(160),i=n(32),o=n(74),c=n(25),u=n(15),l=n(58),h=n(64),p=n(24),f=n(72),b=n(29);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class m extends c.b{constructor(t){super(t),this.rate=Math.max(Math.min(t.rate,1),0),this.noiseShape=t.noiseShape,this.seed=t.seed,this.supportsMasking=true}getNoiseShape(input){if(null==this.noiseShape)return this.noiseShape;const t=input.shape,e=[];for(let n=0;n<this.noiseShape.length;++n)e.push(null==this.noiseShape[n]?t[n]:this.noiseShape[n]);return e}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);const input=Object(b.b)(t);if(0<this.rate&&this.rate<1){const t=null!=e.training&&e.training,n=this.getNoiseShape(input),a=undefined;return i.m((()=>i.g(input,this.rate,n,this.seed)),(()=>input),t)}return t}))}getConfig(){const t={rate:this.rate,noiseShape:this.noiseShape,seed:this.seed},e=super.getConfig();return Object.assign(t,e),t}dispose(){return super.dispose()}}m.className="Dropout",a._349.registerClass(m);class g extends m{constructor(t){super(t),this.inputSpec=[{ndim:3}]}getNoiseShape(input){const t=input.shape;return[t[0],1,t[2]]}}g.className="SpatialDropout1D",a._349.registerClass(g);class v extends c.b{constructor(t){if(super(t),this.activation=null,this.useBias=true,this.kernel=null,this.bias=null,this.DEFAULT_KERNEL_INITIALIZER="glorotNormal",this.DEFAULT_BIAS_INITIALIZER="zeros",null==t.batchInputShape&&null==t.inputShape&&null!=t.inputDim){let e=null;null!=t.batchSize&&(e=t.batchSize),this.batchInputShape=[e,t.inputDim]}this.units=t.units,Object(p.b)(this.units,"units"),this.activation=Object(s.b)(t.activation),null!=t.useBias&&(this.useBias=t.useBias),this.kernelInitializer=Object(l.q)(t.kernelInitializer||this.DEFAULT_KERNEL_INITIALIZER),this.biasInitializer=Object(l.q)(t.biasInitializer||this.DEFAULT_BIAS_INITIALIZER),this.kernelConstraint=Object(o.e)(t.kernelConstraint),this.biasConstraint=Object(o.e)(t.biasConstraint),this.kernelRegularizer=Object(h.b)(t.kernelRegularizer),this.biasRegularizer=Object(h.b)(t.biasRegularizer),this.activityRegularizer=Object(h.b)(t.activityRegularizer),this.supportsMasking=true,this.inputSpec=[{minNDim:2}]}build(t){const e=(t=Object(b.a)(t))[t.length-1];null==this.kernel&&(this.kernel=this.addWeight("kernel",[e,this.units],null,this.kernelInitializer,this.kernelRegularizer,true,this.kernelConstraint),this.useBias&&(this.bias=this.addWeight("bias",[this.units],null,this.biasInitializer,this.biasRegularizer,true,this.biasConstraint))),this.inputSpec=[{minNDim:2,axes:{[-1]:e}}],this.built=true}computeOutputShape(t){const e=(t=Object(b.a)(t)).slice();return e[e.length-1]=this.units,e}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);const input=Object(b.b)(t),n=Object(p.i)(this.activation.getClassName());let a;return null!=n?a=i.f(input,this.kernel.read(),n,this.bias?this.bias.read():null):(a=i.f(input,this.kernel.read()),null!=this.bias&&(a=i.b(a,this.bias.read())),null!=this.activation&&(a=this.activation.apply(a))),a}))}getConfig(){const t={units:this.units,activation:Object(s.c)(this.activation),useBias:this.useBias,kernelInitializer:Object(l.r)(this.kernelInitializer),biasInitializer:Object(l.r)(this.biasInitializer),kernelRegularizer:Object(h.e)(this.kernelRegularizer),biasRegularizer:Object(h.e)(this.biasRegularizer),activityRegularizer:Object(h.e)(this.activityRegularizer),kernelConstraint:Object(o.f)(this.kernelConstraint),biasConstraint:Object(o.f)(this.biasConstraint)},e=super.getConfig();return Object.assign(t,e),t}}v.className="Dense",a._349.registerClass(v);class w extends c.b{constructor(t){super(t=t||{}),this.inputSpec=[{minNDim:3}],this.dataFormat=t.dataFormat}computeOutputShape(t){t=Object(b.a)(t);for(const e of t.slice(1))if(null==e)throw new u.e(`The shape of the input to "Flatten" is not fully defined (got ${t.slice(1)}). Make sure to pass a complete "input_shape" or "batch_input_shape" argument to the first layer in your model.`);return[t[0],Object(f.a)(t,1)]}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);let input=Object(b.b)(t);if("channelsFirst"===this.dataFormat&&input.rank>1){const t=[0];for(let e=2;e<input.rank;++e)t.push(e);t.push(1),input=Object(a._399)(input,t)}return i.a(input)}))}getConfig(){const t={};null!=this.dataFormat&&(t.dataFormat=this.dataFormat);const e=super.getConfig();return Object.assign(t,e),t}}w.className="Flatten",a._349.registerClass(w);class y extends c.b{constructor(t){super(t),this.supportsMasking=true,this.activation=Object(s.b)(t.activation)}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);const input=Object(b.b)(t);return this.activation.apply(input)}))}getConfig(){const t={activation:Object(s.c)(this.activation)},e=super.getConfig();return Object.assign(t,e),t}}y.className="Activation",a._349.registerClass(y);class O extends c.b{constructor(t){super(t),this.n=t.n,this.inputSpec=[{ndim:2}]}computeOutputShape(t){return[t[0],this.n,t[1]]}call(t,e){return Object(a._394)((()=>(t=Object(b.b)(t),i.o(t,this.n))))}getConfig(){const t={n:this.n},e=super.getConfig();return Object.assign(t,e),t}}O.className="RepeatVector",a._349.registerClass(O);class x extends c.b{constructor(t){super(t),this.targetShape=t.targetShape;for(let t=0;t<this.targetShape.length;++t)this.isUnknown(this.targetShape[t])&&(this.targetShape[t]=null)}isUnknown(t){return t<0||null==t}fixUnknownDimension(t,e){const n="Total size of new array must be unchanged.",a=e.slice();let s=1,i=null;for(let t=0;t<a.length;++t){const e=a[t];if(this.isUnknown(e)){if(null!==i)throw new u.e("Can only specifiy one unknown dimension.");i=t}else s*=e}const o=Object(f.a)(t);if(null!==i){if(0===s||o%s!=0)throw new u.e(n);a[i]=o/s}else if(o!==s)throw new u.e(n);return a}computeOutputShape(t){let e=false;for(let n=0;n<t.length;++n)if(this.isUnknown(t[n])){e=true;break}return e?t.slice(0,1).concat(this.targetShape):t.slice(0,1).concat(this.fixUnknownDimension(t.slice(1),this.targetShape))}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);const input=Object(b.b)(t),n=input.shape,s=n.slice(0,1).concat(this.fixUnknownDimension(n.slice(1),this.targetShape));return Object(a._334)(input,s)}))}getConfig(){const t={targetShape:this.targetShape},e=super.getConfig();return Object.assign(t,e),t}}x.className="Reshape",a._349.registerClass(x);class A extends c.b{constructor(t){if(super(t),null==t.dims)throw new Error("Required configuration field `dims` is missing during Permute constructor call.");if(!Array.isArray(t.dims))throw new Error(`Permute constructor requires \`dims\` to be an Array, but received ${t.dims} instead.`);const e=Object(f.e)(1,t.dims.length+1);if(!a._408.arraysEqual(t.dims.slice().sort(),e))throw new Error("Invalid permutation `dims`: "+JSON.stringify(t.dims)+" `dims` must contain consecutive integers starting from 1.");this.dims=t.dims,this.dimsIncludingBatch=[0].concat(this.dims),this.inputSpec=[new c.a({ndim:this.dims.length+1})]}computeOutputShape(t){const e=(t=Object(b.a)(t)).slice();return this.dims.forEach(((n,a)=>{e[a+1]=t[n]})),e}call(t,e){return Object(a._399)(Object(b.b)(t),this.dimsIncludingBatch)}getConfig(){const t={dims:this.dims},e=super.getConfig();return Object.assign(t,e),t}}A.className="Permute",a._349.registerClass(A);class I extends c.b{constructor(t){super(null==t?{}:t),this.supportsMasking=true,this.maskValue=null!=t?null==t.maskValue?0:t.maskValue:0}computeOutputShape(t){return t}getConfig(){const t=super.getConfig(),e={maskValue:this.maskValue};return Object.assign(e,t),e}computeMask(t,e){const input=Object(b.b)(t),n=-1;return Object(a._153)(Object(a._298)(input,this.maskValue),n)}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);const input=Object(b.b)(t),n=-1,s=true,i=Object(a._153)(Object(a._298)(input,this.maskValue),n,s),o=undefined;return Object(a._292)(input,Object(a._179)(i,input.dtype))}))}}I.className="Masking",a._349.registerClass(I)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(0),s=n(32),i=n(74),o=n(25),c=n(15),u=n(58),l=n(64),h=n(24),p=n(29);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class f extends o.b{constructor(t){if(super(t),this.embeddings=null,this.DEFAULT_EMBEDDINGS_INITIALIZER="randomUniform",null==t.batchInputShape&&null==t.inputShape){let e=null;null!=t.batchSize&&(e=t.batchSize),null==t.inputLength?this.batchInputShape=[e,null]:this.batchInputShape=[e].concat(h.o(t.inputLength))}this.inputDim=t.inputDim,h.b(this.inputDim,"inputDim"),this.outputDim=t.outputDim,h.b(this.outputDim,"outputDim"),this.embeddingsInitializer=Object(u.q)(t.embeddingsInitializer||this.DEFAULT_EMBEDDINGS_INITIALIZER),this.embeddingsRegularizer=Object(l.b)(t.embeddingsRegularizer),this.activityRegularizer=Object(l.b)(t.activityRegularizer),this.embeddingsConstraint=Object(i.e)(t.embeddingsConstraint),this.maskZero=t.maskZero,this.supportsMasking=t.maskZero,this.inputLength=t.inputLength}build(t){this.embeddings=this.addWeight("embeddings",[this.inputDim,this.outputDim],this.dtype,this.embeddingsInitializer,this.embeddingsRegularizer,true,this.embeddingsConstraint),this.built=true}warnOnIncompatibleInputShape(t){}computeMask(t,e){return Object(a._394)((()=>this.maskZero?(t=Object(p.b)(t),Object(a._298)(t,Object(a._417)(t))):null))}computeOutputShape(t){if(t=Object(p.a)(t),null==this.inputLength)return[...t,this.outputDim];const e=h.o(this.inputLength);if(e.length!==t.length-1)throw new c.e(`"inputLength" is ${this.inputLength}, but received input shape has shape ${t}`);{let n=0;for(let a=0;a<e.length;++a){const s=e[a],i=t[a+1];if(null!=s&&null!=i&&s!==i)throw new c.e(`"inputLength" is ${this.inputLength}, but received input shape has shape ${t}`);null==s&&(e[n]=i),n++}}return[t[0],...e,this.outputDim]}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);let input=Object(p.b)(t);"int32"!==input.dtype&&(input=s.c(input,"int32"));const n=s.k(this.embeddings.read(),Object(a._334)(input,[input.size]));return Object(a._334)(n,Object(p.a)(this.computeOutputShape(input.shape)))}))}getConfig(){const t={inputDim:this.inputDim,outputDim:this.outputDim,embeddingsInitializer:Object(u.r)(this.embeddingsInitializer),embeddingsRegularizer:Object(l.e)(this.embeddingsRegularizer),activityRegularizer:Object(l.e)(this.activityRegularizer),embeddingsConstraint:Object(i.f)(this.embeddingsConstraint),maskZero:this.maskZero,inputLength:this.inputLength},e=super.getConfig();return Object.assign(t,e),t}}f.className="Embedding",a._349.registerClass(f)},function(t,e,n){"use strict";function add(t){if(Array.isArray(t)){const e=undefined;return new Add({}).apply(t)}return new Add(t)}function a(t){if(Array.isArray(t)){const e=undefined;return new y({}).apply(t)}return new y(t)}function s(t){if(Array.isArray(t)){const e=undefined;return new O({}).apply(t)}return new O(t)}function i(t){if(Array.isArray(t)){const e=undefined;return new x({}).apply(t)}return new x(t)}function o(t){if(Array.isArray(t)){const e=undefined;return new A({}).apply(t)}return new A(t)}function c(t){if(Array.isArray(t)){const e=undefined;return new I({}).apply(t)}return new I(t)}function u(t,e){for(;t<0;)t+=e;return t}function l(t,e,n){if(t.shape.length>3||e.shape.length>3)throw new b.c("batchDot is not implemented for tensors of 4D or higher rank yet");if(h._408.assert(t.shape.length>=2,(()=>`batchDot requires the rank of x to be >= 2, but got ${t.shape.length}`)),h._408.assert(t.shape.length>=2,(()=>`batchDot requires the rank of y to be >= 2, but got ${e.shape.length}`)),"number"==typeof n&&(n=[n,n]),"complex64"===t.dtype||"complex64"===e.dtype)throw new b.c("batchDot is not implemented for complex64-type Tensors yet.");const a=t.shape.length,s=e.shape.length;null==n&&(n=[a-1,s-2]);const i=n;return h._394((()=>{let diff,n;if(a>s){diff=a-s;const t=[];for(let e=0;e<diff;++e)t.push(1);e=h._334(e,e.shape.concat(t))}else if(s>a){diff=s-a;const e=[];for(let t=0;t<diff;++t)e.push(1);t=h._334(t,t.shape.concat(e))}else diff=0;if(2===t.shape.length&&2===e.shape.length)n=i[0]===i[1]?h._380(h._292(t,e),i[0]):h._380(h._292(h._399(t,[1,0]),e),i[1]);else{const a=i[0]!==t.shape.length-1,s=i[1]===e.shape.length-1;n=h._276(t,e,a,s)}if(diff>0){let t;t=a>s?a+s-3:a-1;const e=[];for(let n=t;n<t+diff;++n)e.push(n);n=h._374(n,e)}return 1===n.shape.length&&(n=h._227(n,1)),n}))}n.d(e,"a",(function(){return Add})),n.d(e,"g",(function(){return y})),n.d(e,"b",(function(){return O})),n.d(e,"e",(function(){return x})),n.d(e,"f",(function(){return A})),n.d(e,"c",(function(){return I})),n.d(e,"d",(function(){return j}));var h=n(0),p=n(32),f=n(25),b=n(15),m=n(100),g=n(24),v=n(72),w=n(29);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class Merge extends f.b{constructor(t){super(t||{}),this.supportsMasking=true}mergeFunction(t){throw new b.c}computeElementwiseOpOutputShape(t,e){if(null==t||null==e)return null;if(t.length<e.length)return this.computeElementwiseOpOutputShape(e,t);if(0===e.length)return t;const n=t.slice(0,t.length-e.length);for(let a=0;a<e.length;++a){const s=t[t.length-e.length+a],i=e[a];if(null==s||null==i||s<0||i<0)n.push(null);else if(1===s)n.push(i);else if(1===i)n.push(s);else{if(s!==i)throw new b.e("Operands could not be broadcast together with shapes "+JSON.stringify(t)+" "+JSON.stringify(e));n.push(s)}}return n}build(t){if(Array.isArray(t)&&!Array.isArray(t[0])&&(t=[Object(w.a)(t)]),(t=t).length<2)throw new b.e(`A merge layer should be called on an Array of at least 2 inputs. Got ${t.length} input(s).`);let e=[];for(const shape of t)null!=shape&&null!==shape[0]&&e.push(shape[0]);if(e=g.q(e),e.length>1)throw new b.e(`Can not merge tensors with different batch sizes. Got tensors with shapes: ${JSON.stringify(t)}.`);let n=null==t[0]?null:t[0].slice(1);for(let e=1;e<t.length;++e){const shape=null==t[e]?null:t[e].slice(1);n=this.computeElementwiseOpOutputShape(n,shape)}const a=t.map((shape=>shape.length));-1===t.indexOf(null)&&1===g.q(a).length?this.reshapeRequired=false:this.reshapeRequired=true}call(t,e){return Object(h._394)((()=>{if(t=t,this.reshapeRequired){const e=[],n=t.map((input=>input.rank));if(-1===n.indexOf(null)){const a=v.c(n);for(let n of t){const t=n.rank;for(let e=0;e<a-t;++e)n=p.i(n,1);e.push(n)}return this.mergeFunction(e)}{let n=false;for(const a of t){const t=a.rank;if(null==t){const t=a.shape,s=t[0],i=t.slice(1).concat([s]);let o=h._334(a,[s].concat(v.a(t.slice(1))));o=h._399(o,[1,0]),o=h._334(o,i),e.push(o),n=true}else if(t>1){const s=v.e(1,t).concat([0]);e.push(h._399(a,s)),n=true}else e.push(a)}let a=this.mergeFunction(e);const s=a.rank;if(n)if(null==s){const t=a.shape,e=undefined,n=t[t.length-1],s=[n].concat(t.slice(0,t.length-1));a=h._334(h._399(h._334(a,[-1,n]),[1,0]),s)}else if(s>1){const t=[s-1].concat(v.e(0,s-1));a=h._399(a,t)}return a}}return this.mergeFunction(t)}))}computeOutputShape(t){let e;e=null==(t=t)[0]?null:t[0].slice(1);for(let n=1;n<t.length;++n){const shape=null==t[n]?null:t[n].slice(1);e=this.computeElementwiseOpOutputShape(e,shape)}let n=[];for(const shape of t)null!=shape&&null!==shape[0]&&n.push(shape[0]);return n=g.q(n),e=1===n.length?n.concat(e):[null].concat(e),e}computeMask(t,e){return h._394((()=>{if(null==e)return null;if(!Array.isArray(e))throw new b.e("`mask` should be an Array");if(!Array.isArray(t))throw new b.e("`inputs` should be an Array");if(e.length!==t.length)throw new b.e(`The Array 'inputs' and 'mask' are expected to have the same length, but have different lengths (${t.length} vs ${e.length})`);if(e.every((t=>null==t)))return null;let n=(e=e.map((t=>null==t?t:h._227(t,0))))[0];for(let t=1;t<e.length-1;++t)n=h._270(n,e[t]);return n}))}}class Add extends Merge{constructor(t){super(t)}mergeFunction(t){return Object(h._394)((()=>{let e=t[0].clone();for(let n=1;n<t.length;++n)e=h._150(e,t[n]);return e}))}}Add.className="Add",h._349.registerClass(Add);class y extends Merge{constructor(t){super(t)}mergeFunction(t){return Object(h._394)((()=>{let e=t[0].clone();for(let n=1;n<t.length;++n)e=h._292(e,t[n]);return e}))}}y.className="Multiply",h._349.registerClass(y);class O extends Merge{constructor(t){super(t)}mergeFunction(t){return Object(h._394)((()=>{let e=t[0].clone();for(let n=1;n<t.length;++n)e=h._150(e,t[n]);return h._292(1/t.length,e)}))}}O.className="Average",h._349.registerClass(O);class x extends Merge{constructor(t){super(t)}mergeFunction(t){return Object(h._394)((()=>{let e=t[0];for(let n=1;n<t.length;++n)e=h._282(e,t[n]);return e}))}}x.className="Maximum",h._349.registerClass(x);class A extends Merge{constructor(t){super(t)}mergeFunction(t){return Object(h._394)((()=>{let e=t[0];for(let n=1;n<t.length;++n)e=h._287(e,t[n]);return e}))}}A.className="Minimum",h._349.registerClass(A);class I extends Merge{constructor(t){super(t),this.DEFAULT_AXIS=-1,null==t&&(t={}),this.axis=null==t.axis?this.DEFAULT_AXIS:t.axis,this.supportsMasking=true,this.reshapeRequired=false}build(t){if(!(Array.isArray(t)&&Array.isArray(t[0]))||1===t.length)throw new b.e("A `Concatenate` layer should be called on a list of at least 2 inputs");t=t;let e=true;for(const shape of t)if(null!=shape){e=false;break}if(e)return;const n=[];for(let e=0;e<t.length;++e){const a=t[e].slice();a.splice(this.axis,1);let s=false;for(const shape of n)if(h._408.arraysEqual(shape,a)){s=true;break}s||n.push(a)}if(n.length>1)throw new b.e("A `Concatenate` layer requires inputs with matching shapes except for the concat axis. Got input shapes: "+JSON.stringify(t))}mergeFunction(t){return Object(h._394)((()=>p.e(t,this.axis)))}computeOutputShape(t){if(!(Array.isArray(t)&&Array.isArray(t[0])))throw new b.e("A `Concatenate` layer should be called on a list of inputs.");const e=t,n=e[0].slice(),a=this.axis<0?n.length+this.axis:this.axis;for(const shape of e.slice(1)){if(null==n[a]||null==shape[a]){n[a]=null;break}n[a]+=shape[a]}return n}computeMask(t,e){if(null==e)return null;if(!Array.isArray(e))throw new b.e("`mask` should be an array for Concatenate");if(!Array.isArray(t))throw new b.e("`inputs` should be an array for Concatenate");if(e.length!==t.length)throw new b.e(`Mismatch in the length of mask (${e.length}) and the legnth of inputs (${t.length})`);return h._394((()=>{let n=true;if(e.forEach((t=>{if(null!=t)return n=false,void 0})),n)return null;const a=[];for(let n=0;n<t.length;++n)null==e[n]?a.push(h._179(h._301(t[n]),"bool")):e[n].rank<t[n].rank?a.push(h._227(e[n],-1)):a.push(e[n]);const s=h._184(a,this.axis);return h._152(s,-1,false)}))}getConfig(){const t={axis:this.axis},e=super.getConfig();return Object.assign(t,e),t}}I.className="Concatenate",h._349.registerClass(I);class j extends Merge{constructor(t){super(t),this.axes=t.axes,this.normalize=null!=t.normalize&&t.normalize,this.supportsMasking=true,this.reshapeRequired=false}build(t){h._408.assert(Array.isArray(t)&&2===t.length&&Array.isArray(t[0])&&Array.isArray(t[1]),(()=>"A `Dot` layer should be called on a list of exactly 2 inputs."));const e=t[0],n=t[1];if(e.length>3||n.length>3)throw new b.c("Dot layer does not support tensors of 4D or higher rank yet.");const a=this.interpretAxes(e,n);if(e[a[0]]!==n[a[1]])throw new b.e(`Dimension incompatibility: ${e[a[0]]} !== ${n[a[1]]}`)}mergeFunction(t){if(2!==t.length)throw new b.e(`A \`Dot\` layer must be called on exactly 2 inputs, but received ${t.length} input(s).`);let e=t[0],n=t[1],a;return a=Array.isArray(this.axes)?this.axes.map(((e,n)=>u(e,t[n].shape.length))):[u(this.axes,e.shape.length),u(this.axes,n.shape.length)],this.normalize&&(e=Object(m.e)(e,a[0]),n=Object(m.e)(n,a[1])),l(e,n,a)}interpretAxes(t,e){let n;return n=Array.isArray(this.axes)?this.axes:[u(this.axes,t.length),u(this.axes,e.length)],n}computeOutputShape(t){h._408.assert(Array.isArray(t)&&2===t.length&&Array.isArray(t[0])&&Array.isArray(t[1]),(()=>"A `Dot` layer should be called on a list of exactly 2 inputs."));const e=t[0].slice(),n=t[1].slice();if(e.length>3||n.length>3)throw new b.c("Dot layer does not support tensors of 4D or higher rank yet.");const a=this.interpretAxes(e,n);e.splice(a[0],1),n.splice(a[1],1),n.splice(0,1);const s=e.concat(n);return 1===s.length&&s.push(1),s}computeMask(t,e){return null}getConfig(){const t={axes:this.axes,normalize:this.normalize},e=super.getConfig();return Object.assign(t,e),t}}j.className="Dot",h._349.registerClass(j)},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return l}));var a=n(0),s=n(32),i=n(25),o=n(29);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class c extends i.b{constructor(t){super(t),this.supportsMasking=true,this.stddev=t.stddev}computeOutputShape(t){return t}getConfig(){const t=super.getConfig(),e={stddev:this.stddev};return Object.assign(e,t),e}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);const input=Object(o.b)(t),n=()=>Object(a._150)(s.n(input.shape,0,this.stddev),input),i=undefined;return s.m(n,(()=>input),e.training||false)}))}}c.className="GaussianNoise",a._349.registerClass(c);class u extends i.b{constructor(t){super(t),this.supportsMasking=true,this.rate=t.rate}computeOutputShape(t){return t}getConfig(){const t=super.getConfig(),e={rate:this.rate};return Object.assign(e,t),e}call(t,e){return Object(a._394)((()=>{this.invokeCallHook(t,e);const input=Object(o.b)(t);if(this.rate>0&&this.rate<1){const t=()=>{const t=Math.sqrt(this.rate/(1-this.rate));return Object(a._292)(input,s.n(input.shape,1,t))};return s.m(t,(()=>input),e.training||false)}return input}))}}u.className="GaussianDropout",a._349.registerClass(u);class l extends i.b{constructor(t){super(t),this.supportsMasking=true,this.rate=t.rate,this.noiseShape=t.noiseShape}_getNoiseShape(t){return this.noiseShape||Object(o.b)(t).shape}computeOutputShape(t){return t}getConfig(){const t=super.getConfig(),e={rate:this.rate};return Object.assign(e,t),e}call(t,e){return Object(a._394)((()=>{if(this.rate<1&&this.rate>0){const n=this._getNoiseShape(t),i=()=>{const input=Object(o.b)(t),e=undefined,i=undefined,c=-1.6732632423543772*1.0507009873554805;let u=Object(a._247)(Object(a._322)(n),this.rate);u=s.c(u,"float32");const l=((1-this.rate)*(1+this.rate*c**2))**-.5,h=-l*c*this.rate,p=Object(a._150)(Object(a._292)(input,u),Object(a._292)(Object(a._150)(u,-1),c));return Object(a._150)(Object(a._292)(p,l),h)};return s.m(i,(()=>Object(o.b)(t)),e.training||false)}return t}))}}l.className="AlphaDropout",a._349.registerClass(l)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e,n,a,s,i=.001){let o;if(2===t.rank)o=c._167(t,e,n,a,s,i);else if(3===t.rank)o=c._168(t,e,n,a,s,i);else{if(4!==t.rank)throw new h.c(`batchNormalization is not implemented for array of rank ${t.rank} yet`);o=c._169(t,e,n,a,s,i)}return o}function s(t,e,n,s,i=.001){return Object(c._394)((()=>{const o=c._290(t,s),u=o.mean,l=o.variance,h=undefined;return[a(t,u,l,n,e,i),u,l]}))}function i(t,e,n,s,i=.001){return Object(c._394)((()=>{const o=c._290(t,s),u=o.mean,l=o.variance,h=[];for(const e of m.e(0,t.rank))-1!==s.indexOf(e)?h.push(1):h.push(t.shape[e]);const p=Object(c._334)(u,h),f=Object(c._334)(l,h),b=null==e?null:Object(c._334)(e,h),g=null==n?null:Object(c._334)(n,h),v=undefined;return[a(t,p,f,g,b,i),u,l]}))}function o(t,e,n,a,o=.001){return c._408.arraysEqual(a.slice().sort(),m.e(0,t.rank-1))?s(t,e,n,a,o):i(t,e,n,a,o)}n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return w}));var c=n(0),u=n(74),l=n(25),h=n(15),p=n(58),f=n(64),b=n(24),m=n(72),g=n(29);class v extends l.b{constructor(t){null==t&&(t={}),super(t),this.supportsMasking=true,this.axis=null==t.axis?-1:t.axis,this.momentum=null==t.momentum?.99:t.momentum,this.epsilon=null==t.epsilon?.001:t.epsilon,this.center=null==t.center||t.center,this.scale=null==t.scale||t.scale,this.betaInitializer=Object(p.q)(t.betaInitializer||"zeros"),this.gammaInitializer=Object(p.q)(t.gammaInitializer||"ones"),this.movingMeanInitializer=Object(p.q)(t.movingMeanInitializer||"zeros"),this.movingVarianceInitializer=Object(p.q)(t.movingVarianceInitializer||"ones"),this.betaConstraint=Object(u.e)(t.betaConstraint),this.gammaConstraint=Object(u.e)(t.gammaConstraint),this.betaRegularizer=Object(f.b)(t.betaRegularizer),this.gammaRegularizer=Object(f.b)(t.gammaRegularizer)}build(t){t=Object(g.a)(t);const e=this.axis>=0?this.axis:this.axis+t.length,n=t[e];if(null==n)throw new h.e(`Axis ${e} of input tensor should have a defined dimension but the layer received an input with shape ${JSON.stringify(t)}.`);this.inputSpec=[new l.a({ndim:t.length,axes:{[e]:n}})];const shape=[n];this.scale&&(this.gamma=this.addWeight("gamma",shape,null,this.gammaInitializer,this.gammaRegularizer,true,this.gammaConstraint)),this.center&&(this.beta=this.addWeight("beta",shape,null,this.betaInitializer,this.betaRegularizer,true,this.betaConstraint)),this.movingMean=this.addWeight("moving_mean",shape,null,this.movingMeanInitializer,null,false),this.movingVariance=this.addWeight("moving_variance",shape,null,this.movingVarianceInitializer,null,false),this.built=true}call(t,e){return Object(c._394)((()=>{const n=null!=e.training&&e.training,input=Object(g.b)(t),s=input.shape,i=s.length,u=m.e(0,i),l=this.axis>=0?this.axis:this.axis+i;u.splice(l,1);const h=b.j(1,i);h[l]=s[l];const p=u.slice();p.sort();const f=!c._408.arraysEqual(p,m.e(0,i).slice(0,i-1)),v=undefined;if(!n)return(()=>{if(f){const t=Object(c._334)(this.movingMean.read(),h),e=Object(c._334)(this.movingVariance.read(),h),n=this.center?Object(c._334)(this.beta.read(),h):null,s=this.scale?Object(c._334)(this.gamma.read(),h):null;return a(input,t,e,n,s,this.epsilon)}return a(input,this.movingMean.read(),this.movingVariance.read(),null==this.beta?null:this.beta.read(),null==this.gamma?null:this.gamma.read(),this.epsilon)})();const[w,y,O]=o(input,this.gamma.read(),this.beta.read(),u,this.epsilon),x=(t,e,n)=>{c._394((()=>{const a=1-n,s=t.read(),i=c._292(c._379(s,e),a);t.write(c._379(s,i))}))},A=undefined;return(()=>{x(this.movingMean,y,this.momentum),x(this.movingVariance,O,this.momentum)})(),w}))}getConfig(){const t={axis:this.axis,momentum:this.momentum,epsilon:this.epsilon,center:this.center,scale:this.scale,betaInitializer:Object(p.r)(this.betaInitializer),gammaInitializer:Object(p.r)(this.gammaInitializer),movingMeanInitializer:Object(p.r)(this.movingMeanInitializer),movingVarianceInitializer:Object(p.r)(this.movingVarianceInitializer),betaRegularizer:Object(f.e)(this.betaRegularizer),gammaRegularizer:Object(f.e)(this.gammaRegularizer),betaConstraint:Object(u.f)(this.betaConstraint),gammaConstraint:Object(u.f)(this.gammaConstraint)},e=super.getConfig();return Object.assign(t,e),t}}v.className="BatchNormalization",c._349.registerClass(v);class w extends l.b{constructor(t){if(null==t&&(t={}),super(t),this.axis=null==t.axis?-1:t.axis,"number"==typeof this.axis){if(!Number.isInteger(this.axis))throw new Error(`Expected axis to be an integer, but received ${this.axis}`)}else{if(!Array.isArray(this.axis))throw new Error(`Expected axis to be an integer or an array of integers, but received ${JSON.stringify(this.axis)}`);for(const t of this.axis)if(!Number.isInteger(t))throw new Error(`Expected axis to be an array of integers, but received ${JSON.stringify(this.axis)}`)}this.epsilon=null==t.epsilon?.001:t.epsilon,this.center=null==t.center||t.center,this.scale=null==t.scale||t.scale,this.betaInitializer=Object(p.q)(t.betaInitializer||"zeros"),this.gammaInitializer=Object(p.q)(t.gammaInitializer||"ones"),this.betaRegularizer=Object(f.b)(t.betaRegularizer),this.gammaRegularizer=Object(f.b)(t.gammaRegularizer),this.supportsMasking=true}build(t){const e=(t=Object(g.a)(t)).length;"number"==typeof this.axis&&(this.axis=[this.axis]);for(let t=0;t<this.axis.length;++t)this.axis[t]<0&&(this.axis[t]+=e);for(const t of this.axis)if(t<0||t>=e)throw new Error(`Invalid axis: ${t}`);if(this.axis.length!==b.q(this.axis).length)throw new Error(`Found duplicate axes in: ${this.axis}`);const n=this.axis.map((e=>t[e])),a=true;this.scale?this.gamma=this.addWeight("gamma",n,"float32",this.gammaInitializer,this.gammaRegularizer,a):this.gamma=null,this.center?this.beta=this.addWeight("beta",n,"float32",this.betaInitializer,this.betaRegularizer,a):this.beta=null,this.built=true}call(t,e){const input=Object(g.b)(t),n=input.shape,s=n.length;return Object(c._394)((()=>{const t=true;let{mean:e,variance:i}=Object(c._290)(input,this.axis,t);const o=b.j(1,s);for(const t of this.axis)o[t]=n[t];const u=t=>null!=t&&t.shape.length!==s?c._334(t,o):t;let l=this.scale?u(this.gamma.read()):null,h=this.center?u(this.beta.read()):null;const p=[],f=[];for(let t=0;t<s;++t)-1!==this.axis.indexOf(t)?(p.push(n[t]),f.push(1)):(p.push(1),f.push(n[t]));return e=c._395(e,p),i=c._395(i,p),null!=l&&(l=c._395(l,f)),null!=h&&(h=c._395(h,f)),a(input,e,i,h,l,this.epsilon)}))}getConfig(){const t={axis:this.axis,epsilon:this.epsilon,center:this.center,scale:this.scale,betaInitializer:Object(p.r)(this.betaInitializer),gammaInitializer:Object(p.r)(this.gammaInitializer),betaRegularizer:Object(f.e)(this.betaRegularizer),gammaRegularizer:Object(f.e)(this.gammaRegularizer)},e=super.getConfig();return Object.assign(t,e),t}}w.className="LayerNormalization",c._349.registerClass(w)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e){return Object(i._394)((()=>{if(3!==t.rank)throw new u.e(`temporalPadding expects input tensor to be 3-D, but received a ${t.rank}-D tensor.`);if(null==e&&(e=[1,1]),2!==e.length)throw new u.e(`temporalPadding expects input padding pattern to be a length-2 array, but received a length-${e.length} array.`);const n=[[0,0],e,[0,0]];return i._304(t,n)}))}function s(t,e,n){return Object(i._394)((()=>{if(4!==t.rank)throw new u.e(`temporalPadding expects input tensor to be 4-D, but received a ${t.rank}-D tensor.`);if(null==e&&(e=[[1,1],[1,1]]),2!==e.length||2!==e[0].length||2!==e[1].length)throw new u.e("spatial2dPadding expects `padding` to be an Array of two Arrays, each of which is an Array of two integers.");if(null==n&&(n=Object(o.b)()),"channelsLast"!==n&&"channelsFirst"!==n)throw new u.e(`Unknown data format: ${n}. Supported data formats are 'channelsLast' and 'channelsFirst.`);let a;return a="channelsFirst"===n?[[0,0],[0,0],e[0],e[1]]:[[0,0],e[0],e[1],[0,0]],i._304(t,a)}))}n.d(e,"a",(function(){return h}));var i=n(0),o=n(73),c=n(25),u=n(15),l=n(29);class h extends c.b{constructor(t){if(null==t&&(t={}),super(t),this.dataFormat=null==t.dataFormat?Object(o.b)():t.dataFormat,null==t.padding)this.padding=[[1,1],[1,1]];else if("number"==typeof t.padding)this.padding=[[t.padding,t.padding],[t.padding,t.padding]];else{if(t.padding=t.padding,2!==t.padding.length)throw new u.e(`ZeroPadding2D expects padding to be a length-2 array, but received a length-${t.padding.length} array.`);let e,n;if("number"==typeof t.padding[0])e=[t.padding[0],t.padding[0]],n=[t.padding[1],t.padding[1]];else{if(t.padding=t.padding,2!==t.padding[0].length)throw new u.e(`ZeroPadding2D expects height padding to be a length-2 array, but received a length-${t.padding[0].length} array.`);if(e=t.padding[0],2!==t.padding[1].length)throw new u.e(`ZeroPadding2D expects width padding to be a length-2 array, but received a length-${t.padding[1].length} array.`);n=t.padding[1]}this.padding=[e,n]}this.inputSpec=[new c.a({ndim:4})]}computeOutputShape(t){let e,n;return t=Object(l.a)(t),"channelsFirst"===this.dataFormat?(e=null!=t[2]&&t[2]>=0?t[2]+this.padding[0][0]+this.padding[0][1]:null,n=null!=t[3]&&t[3]>=0?t[3]+this.padding[1][0]+this.padding[1][1]:null,[t[0],t[1],e,n]):(e=null!=t[1]&&t[1]>=0?t[1]+this.padding[0][0]+this.padding[0][1]:null,n=null!=t[2]&&t[2]>=0?t[2]+this.padding[1][0]+this.padding[1][1]:null,[t[0],e,n,t[3]])}call(t,e){return Object(i._394)((()=>s(Object(l.b)(t),this.padding,this.dataFormat)))}getConfig(){const t={padding:this.padding,dataFormat:this.dataFormat},e=super.getConfig();return Object.assign(t,e),t}}h.className="ZeroPadding2D",i._349.registerClass(h)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e,n,a,s,c){return Object(i._394)((()=>{let l;Object(u.a)(s),Object(u.d)(c),Object(u.c)(a),null==n&&(n=[1,1]),null==a&&(a="valid"),null==s&&(s=Object(o.b)()),null==c&&(c="max"),t=Object(m.j)(t,s);const h="same"===a?"same":"valid";return l="max"===c?i._279(t,e,n,h):i._161(t,e,n,h),"channelsFirst"===s&&(l=i._399(l,[0,3,1,2])),l}))}function s(t,e,n,a,s,c){return Object(i._394)((()=>{let l;Object(u.a)(s),Object(u.d)(c),Object(u.c)(a),null==n&&(n=[1,1,1]),null==a&&(a="valid"),null==s&&(s=Object(o.b)()),null==c&&(c="max"),t=Object(m.k)(t,s);const h="same"===a?"same":"valid";return l="max"===c?i._280(t,e,n,h):i._162(t,e,n,h),"channelsFirst"===s&&(l=i._399(l,[0,4,1,2,3])),l}))}n.d(e,"h",(function(){return v})),n.d(e,"a",(function(){return w})),n.d(e,"i",(function(){return O})),n.d(e,"b",(function(){return x})),n.d(e,"j",(function(){return I})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return _})),n.d(e,"f",(function(){return k})),n.d(e,"e",(function(){return T})),n.d(e,"g",(function(){return L}));var i=n(0),o=n(73),c=n(32),u=n(51),l=n(25),h=n(15),p=n(161),f=n(24),b=n(29),m=n(213);class g extends l.b{constructor(t){if(null==t.poolSize&&(t.poolSize=2),super(t),"number"==typeof t.poolSize)this.poolSize=[t.poolSize];else{if(!Array.isArray(t.poolSize)||1!==t.poolSize.length||"number"!=typeof t.poolSize[0])throw new h.e(`poolSize for 1D convolutional layer must be a number or an Array of a single number, but received ${JSON.stringify(t.poolSize)}`);this.poolSize=t.poolSize}if(Object(f.b)(this.poolSize,"poolSize"),null==t.strides)this.strides=this.poolSize;else if("number"==typeof t.strides)this.strides=[t.strides];else{if(!Array.isArray(t.strides)||1!==t.strides.length||"number"!=typeof t.strides[0])throw new h.e(`strides for 1D convolutional layer must be a number or an Array of a single number, but received ${JSON.stringify(t.strides)}`);this.strides=t.strides}Object(f.b)(this.strides,"strides"),this.padding=null==t.padding?"valid":t.padding,Object(u.c)(this.padding),this.inputSpec=[new l.a({ndim:3})]}computeOutputShape(t){t=Object(b.a)(t);const length=Object(p.a)(t[1],this.poolSize[0],this.padding,this.strides[0]);return[t[0],length,t[2]]}call(t,e){return Object(i._394)((()=>{this.invokeCallHook(t,e),t=c.i(Object(b.b)(t),2);const n=this.poolingFunction(Object(b.b)(t),[this.poolSize[0],1],[this.strides[0],1],this.padding,"channelsLast");return i._374(n,[2])}))}getConfig(){const t={poolSize:this.poolSize,padding:this.padding,strides:this.strides},e=super.getConfig();return Object.assign(t,e),t}}class v extends g{constructor(t){super(t)}poolingFunction(t,e,n,s,i){return Object(u.a)(i),Object(u.c)(s),a(t,e,n,s,i,"max")}}v.className="MaxPooling1D",i._349.registerClass(v);class w extends g{constructor(t){super(t)}poolingFunction(t,e,n,s,i){return Object(u.a)(i),Object(u.c)(s),a(t,e,n,s,i,"avg")}}w.className="AveragePooling1D",i._349.registerClass(w);class y extends l.b{constructor(t){if(null==t.poolSize&&(t.poolSize=[2,2]),super(t),this.poolSize=Array.isArray(t.poolSize)?t.poolSize:[t.poolSize,t.poolSize],null==t.strides)this.strides=this.poolSize;else if(Array.isArray(t.strides)){if(2!==t.strides.length)throw new h.e(`If the strides property of a 2D pooling layer is an Array, it is expected to have a length of 2, but received length ${t.strides.length}.`);this.strides=t.strides}else this.strides=[t.strides,t.strides];Object(f.b)(this.poolSize,"poolSize"),Object(f.b)(this.strides,"strides"),this.padding=null==t.padding?"valid":t.padding,this.dataFormat=null==t.dataFormat?"channelsLast":t.dataFormat,Object(u.a)(this.dataFormat),Object(u.c)(this.padding),this.inputSpec=[new l.a({ndim:4})]}computeOutputShape(t){t=Object(b.a)(t);let e="channelsFirst"===this.dataFormat?t[2]:t[1],n="channelsFirst"===this.dataFormat?t[3]:t[2];return e=Object(p.a)(e,this.poolSize[0],this.padding,this.strides[0]),n=Object(p.a)(n,this.poolSize[1],this.padding,this.strides[1]),"channelsFirst"===this.dataFormat?[t[0],t[1],e,n]:[t[0],e,n,t[3]]}call(t,e){return Object(i._394)((()=>(this.invokeCallHook(t,e),this.poolingFunction(Object(b.b)(t),this.poolSize,this.strides,this.padding,this.dataFormat))))}getConfig(){const t={poolSize:this.poolSize,padding:this.padding,strides:this.strides,dataFormat:this.dataFormat},e=super.getConfig();return Object.assign(t,e),t}}class O extends y{constructor(t){super(t)}poolingFunction(t,e,n,s,i){return Object(u.a)(i),Object(u.c)(s),a(t,e,n,s,i,"max")}}O.className="MaxPooling2D",i._349.registerClass(O);class x extends y{constructor(t){super(t)}poolingFunction(t,e,n,s,i){return Object(u.a)(i),Object(u.c)(s),a(t,e,n,s,i,"avg")}}x.className="AveragePooling2D",i._349.registerClass(x);class A extends l.b{constructor(t){if(null==t.poolSize&&(t.poolSize=[2,2,2]),super(t),this.poolSize=Array.isArray(t.poolSize)?t.poolSize:[t.poolSize,t.poolSize,t.poolSize],null==t.strides)this.strides=this.poolSize;else if(Array.isArray(t.strides)){if(3!==t.strides.length)throw new h.e(`If the strides property of a 3D pooling layer is an Array, it is expected to have a length of 3, but received length ${t.strides.length}.`);this.strides=t.strides}else this.strides=[t.strides,t.strides,t.strides];Object(f.b)(this.poolSize,"poolSize"),Object(f.b)(this.strides,"strides"),this.padding=null==t.padding?"valid":t.padding,this.dataFormat=null==t.dataFormat?"channelsLast":t.dataFormat,Object(u.a)(this.dataFormat),Object(u.c)(this.padding),this.inputSpec=[new l.a({ndim:5})]}computeOutputShape(t){t=Object(b.a)(t);let e="channelsFirst"===this.dataFormat?t[2]:t[1],n="channelsFirst"===this.dataFormat?t[3]:t[2],a="channelsFirst"===this.dataFormat?t[4]:t[3];return e=Object(p.a)(e,this.poolSize[0],this.padding,this.strides[0]),n=Object(p.a)(n,this.poolSize[1],this.padding,this.strides[1]),a=Object(p.a)(a,this.poolSize[2],this.padding,this.strides[2]),"channelsFirst"===this.dataFormat?[t[0],t[1],e,n,a]:[t[0],e,n,a,t[4]]}call(t,e){return Object(i._394)((()=>(this.invokeCallHook(t,e),this.poolingFunction(Object(b.b)(t),this.poolSize,this.strides,this.padding,this.dataFormat))))}getConfig(){const t={poolSize:this.poolSize,padding:this.padding,strides:this.strides,dataFormat:this.dataFormat},e=super.getConfig();return Object.assign(t,e),t}}class I extends A{constructor(t){super(t)}poolingFunction(t,e,n,a,i){return Object(u.a)(i),Object(u.c)(a),s(t,e,n,a,i,"max")}}I.className="MaxPooling3D",i._349.registerClass(I);class j extends A{constructor(t){super(t)}poolingFunction(t,e,n,a,i){return Object(u.a)(i),Object(u.c)(a),s(t,e,n,a,i,"avg")}}j.className="AveragePooling3D",i._349.registerClass(j);class C extends l.b{constructor(t){super(t),this.inputSpec=[new l.a({ndim:3})]}computeOutputShape(t){return[t[0],t[2]]}call(t,e){throw new h.c}}class _ extends C{constructor(t){super(t||{})}call(t,e){return Object(i._394)((()=>{const input=Object(b.b)(t);return i._283(input,1)}))}}_.className="GlobalAveragePooling1D",i._349.registerClass(_);class k extends C{constructor(t){super(t||{})}call(t,e){return Object(i._394)((()=>{const input=Object(b.b)(t);return i._278(input,1)}))}}k.className="GlobalMaxPooling1D",i._349.registerClass(k);class S extends l.b{constructor(t){super(t),this.dataFormat=null==t.dataFormat?"channelsLast":t.dataFormat,Object(u.a)(this.dataFormat),this.inputSpec=[new l.a({ndim:4})]}computeOutputShape(t){return t=t,"channelsLast"===this.dataFormat?[t[0],t[3]]:[t[0],t[1]]}call(t,e){throw new h.c}getConfig(){const t={dataFormat:this.dataFormat},e=super.getConfig();return Object.assign(t,e),t}}class T extends S{call(t,e){return Object(i._394)((()=>{const input=Object(b.b)(t);return"channelsLast"===this.dataFormat?i._283(input,[1,2]):i._283(input,[2,3])}))}}T.className="GlobalAveragePooling2D",i._349.registerClass(T);class L extends S{call(t,e){return Object(i._394)((()=>{const input=Object(b.b)(t);return"channelsLast"===this.dataFormat?i._278(input,[1,2]):i._278(input,[2,3])}))}}L.className="GlobalMaxPooling2D",i._349.registerClass(L)},function(t,e,n){"use strict";function a(t){h.d(l.a,"BidirectionalMergeMode",t)}n.d(e,"b",(function(){return g})),n.d(e,"a",(function(){return w}));var s=n(0),i=n(32),o=n(51),c=n(25),u=n(15),l=n(296),h=n(24),p=n(29),f=n(162),b=n(126);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class m extends c.b{constructor(t){super(t),this.layer=t.layer}build(t){this.built=true}get trainable(){return null!=this.layer&&this.layer.trainable}set trainable(t){null!=this.layer&&(this.layer.trainable=t)}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(t){this.layer.setWeights(t)}getConfig(){const t={layer:{className:this.layer.getClassName(),config:this.layer.getConfig()}},e=super.getConfig();return Object.assign(t,e),t}setFastWeightInitDuringBuild(t){super.setFastWeightInitDuringBuild(t),null!=this.layer&&this.layer.setFastWeightInitDuringBuild(t)}static fromConfig(t,e,n={}){const a=e.layer,s=Object(b.a)(a,n);delete e.layer;const i={layer:s};return Object.assign(i,e),new t(i)}}class g extends m{constructor(t){super(t),this.supportsMasking=true}build(t){if((t=Object(p.a)(t)).length<3)throw new u.e(`TimeDistributed layer expects an input shape >= 3D, but received input shape ${JSON.stringify(t)}`);this.inputSpec=[{shape:t}];const e=[t[0]].concat(t.slice(2));this.layer.built||(this.layer.build(e),this.layer.built=true),super.build(t)}computeOutputShape(t){const e=[(t=Object(p.a)(t))[0]].concat(t.slice(2)),n=this.layer.computeOutputShape(e),a=t[1];return[n[0],a].concat(n.slice(1))}call(t,e){return Object(s._394)((()=>{t=Object(p.b)(t);const n=(t,n)=>{const a=undefined;return[Object(p.b)(this.layer.call(t,e)),[]]},a=undefined,s=undefined;return Object(f.k)(n,t,[],false,null,null,false,true)[1]}))}}g.className="TimeDistributed",s._349.registerClass(g);const v="concat";class w extends m{constructor(t){super(t);const e=t.layer.getConfig(),n={};n.className=t.layer.getClassName(),n.config=e,this.forwardLayer=Object(b.a)(n),e.goBackwards=true!==e.goBackwards;const s={};if(s.className=t.layer.getClassName(),s.config=e,this.backwardLayer=Object(b.a)(s),this.forwardLayer.name="forward_"+this.forwardLayer.name,this.backwardLayer.name="backward_"+this.backwardLayer.name,this.mergeMode=void 0===t.mergeMode?v:t.mergeMode,a(this.mergeMode),t.weights)throw new u.c("weights support is not implemented for Bidirectional layer yet.");this._stateful=t.layer.stateful,this.returnSequences=t.layer.returnSequences,this.returnState=t.layer.returnState,this.supportsMasking=true,this._trainable=true,this.inputSpec=t.layer.inputSpec,this.numConstants=null}get trainable(){return this._trainable}set trainable(t){this._trainable=t,null!=this.forwardLayer&&(this.forwardLayer.trainable=t),null!=this.backwardLayer&&(this.backwardLayer.trainable=t)}getWeights(){return this.forwardLayer.getWeights().concat(this.backwardLayer.getWeights())}setWeights(t){const e=t.length,n=Math.floor(e/2);this.forwardLayer.setWeights(t.slice(0,n)),this.backwardLayer.setWeights(t.slice(n))}computeOutputShape(t){let e=this.forwardLayer.computeOutputShape(t),n,a,s;return Array.isArray(e)&&Array.isArray(e[0])||(e=[e]),e=e,this.returnState?(s=e.slice(1),n=e[0]):n=e[0],n=n,"concat"===this.mergeMode?(n[n.length-1]*=2,a=[n]):a=null==this.mergeMode?[n,n.slice()]:[n],this.returnState?null==this.mergeMode?a.concat(s).concat(s.slice()):[n].concat(s).concat(s.slice()):h.m(a)}apply(t,e){let n=null==e?null:e.initialState,a=null==e?null:e.constants;null==e&&(e={});const s=Object(f.l)(t,n,a,this.numConstants);if(t=s.inputs,n=s.initialState,a=s.constants,Array.isArray(t)&&(n=t.slice(1),t=t[0]),(null==n||0===n.length)&&null==a)return super.apply(t,e);const i=[],o=[];if(null!=n){const t=n.length;if(t%2>0)throw new u.e("When passing `initialState` to a Bidrectional RNN, the state should be an Array containing the states of the underlying RNNs.");e.initialState=n,i.push(...n);const a=n.map((state=>new c.a({shape:state.shape})));this.forwardLayer.stateSpec=a.slice(0,t/2),this.backwardLayer.stateSpec=a.slice(t/2),o.push(...a)}if(null!=a)throw new u.c("Support for constants in Bidirectional layers is not implemented yet.");const l=i[0]instanceof c.d;for(const t of i)if(t instanceof c.d!==l)throw new u.e("The initial state of a Bidirectional layer cannot be specified as a mix of symbolic and non-symbolic tensors");if(l){const n=[t].concat(i),a=this.inputSpec.concat(o),s=this.inputSpec;this.inputSpec=a;const c=super.apply(n,e);return this.inputSpec=s,c}return super.apply(t,e)}call(t,e){return Object(s._394)((()=>{const n=e.initialState;let a,o,c,u;if(null==n)a=this.forwardLayer.call(t,e),o=this.backwardLayer.call(t,e);else{const s=n.slice(0,n.length/2),i=n.slice(n.length/2);a=this.forwardLayer.call(t,Object.assign(e,{initialState:s})),o=this.backwardLayer.call(t,Object.assign(e,{initialState:i}))}return this.returnState&&(Array.isArray(a)&&(c=a.slice(1).concat(o.slice(1))),a=a[0],o=o[0]),this.returnSequences&&(o=s._335(o,1)),"concat"===this.mergeMode?u=i.e([a,o]):"sum"===this.mergeMode?u=s._150(a,o):"ave"===this.mergeMode?u=s._292(.5,s._150(a,o)):"mul"===this.mergeMode?u=s._292(a,o):null==this.mergeMode&&(u=[a,o]),this.returnState?null==this.mergeMode?u.concat(c):[u].concat(c):u}))}resetStates(t){this.forwardLayer.resetStates(),this.backwardLayer.resetStates()}build(t){Object(o.g)(this.forwardLayer.name,(()=>{this.forwardLayer.build(t)})),Object(o.g)(this.backwardLayer.name,(()=>{this.backwardLayer.build(t)})),this.built=true}computeMask(t,e){let n;if(Array.isArray(e)&&(e=e[0]),n=this.returnSequences?null==this.mergeMode?[e,e]:e:null==this.mergeMode?[null,null]:null,this.returnState){const t=undefined,e=this.forwardLayer.states.map((state=>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(t){super.setFastWeightInitDuringBuild(t),null!=this.forwardLayer&&this.forwardLayer.setFastWeightInitDuringBuild(t),null!=this.backwardLayer&&this.backwardLayer.setFastWeightInitDuringBuild(t)}getConfig(){const t={mergeMode:this.mergeMode},e=super.getConfig();return Object.assign(t,e),t}static fromConfig(t,e){const n=Object(b.a)(e.layer);if(delete e.layer,null!=e.numConstants)throw new u.c("Deserialization of a Bidirectional layer with numConstants present is not supported yet.");const a=e;return a.layer=n,new t(a)}}w.className="Bidirectional",s._349.registerClass(w)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var a=n(25),s=n(0),i=n(29),o=n(32);
/**
* @license
* Copyright 2022 CodeSmith LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class c extends a.b{constructor(t){super(t),this.scale=t.scale,t.offset?this.offset=t.offset:this.offset=0}getConfig(){const t={scale:this.scale,offset:this.offset},e=super.getConfig();return Object.assign(t,e),t}call(t,e){return Object(s._394)((()=>("float32"!==(t=Object(i.b)(t)).dtype&&(t=o.c(t,"float32")),Object(s._150)(Object(s._292)(t,this.scale),this.offset))))}}c.className="Rescaling",s._349.registerClass(c)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),s=n(29),i=n(25),o=n(32);
/**
* @license
* Copyright 2022 CodeSmith LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
const{resizeBilinear:c,cropAndResize:u}=a._250;class l extends i.b{constructor(t){super(t),this.height=t.height,this.width=t.width}centerCrop(t,e,n,i,c,l,h,p){return Object(a._394)((()=>{let input,f=false;const b=undefined,m=undefined,g=undefined,v=undefined,w=[e/l,n/h,(i+e)/l,(c+n)/h],y=[];3===t.rank?(f=true,input=Object(a._375)([t])):input=t;for(let t=0;t<input.shape[0];t++)y.push(w);const O=Object(a._384)(y,[y.length,4]),x=Object(a._324)(0,y.length,1,"int32"),A=undefined,I=u(input,O,x,[i,c],"nearest");return f?o.c(Object(s.b)(Object(a._405)(I)),p):o.c(I,p)}))}upsize(t,e,n,s){return Object(a._394)((()=>{const a=c(t,[e,n]);return o.c(a,s)}))}call(t,e){return Object(a._394)((()=>{const e=Object(s.b)(t),n=e.dtype,a=e.shape,i=a[a.length-3],o=a[a.length-2];let c=0;i!==this.height&&(c=Math.floor((i-this.height)/2));let u=0;return o!==this.width&&(u=Math.floor((o-this.width)/2),0===u&&(u=1)),c>=0&&u>=0?this.centerCrop(e,c,u,this.height,this.width,i,o,n):this.upsize(t,this.height,this.width,n)}))}getConfig(){const t={height:this.height,width:this.width},e=super.getConfig();return Object.assign(t,e),t}computeOutputShape(t){const e=(t=Object(s.a)(t)).length-3,n=t.length-2;return t[e]=this.height,t[n]=this.width,t}}l.className="CenterCrop",a._349.registerClass(l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(25),s=n(0),i=n(29),o=n(15),c=n(32),u=n(847);
/**
* @license
* Copyright 2022 CodeSmith LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class l extends a.b{constructor(t){super(t),this.numTokens=t.numTokens,t.outputMode?this.outputMode=t.outputMode:this.outputMode="multiHot"}getConfig(){const t={numTokens:this.numTokens,outputMode:this.outputMode},e=super.getConfig();return Object.assign(t,e),t}computeOutputShape(t){return null==(t=Object(i.a)(t))?[this.numTokens]:"oneHot"===this.outputMode&&1!==t[t.length-1]?(t.push(this.numTokens),t):(t[t.length-1]=this.numTokens,t)}call(t,e){return Object(s._394)((()=>{let n;if("int32"!==(t=Object(i.b)(t)).dtype&&(t=c.c(t,"int32")),void 0!==e.countWeights){if("count"!==this.outputMode)throw new o.e(`countWeights is not used when outputMode !== count.\n Received countWeights=${e.countWeights}`);n=Object(i.b)(e.countWeights)}const a=Object(s._278)(t),l=Object(s._286)(t),h=Object(s._246)(this.numTokens,a).bufferSync().get(0),p=Object(s._247)(l,0).bufferSync().get(0);if(!(h&&p))throw new o.e(`Input values must be between 0 < values <= numTokens with numTokens=${this.numTokens}`);return u.a(t,this.outputMode,this.numTokens,n)}))}}l.className="CategoryEncoding",s._349.registerClass(l)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 CodeSmith LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t,e,n,a){let input=Object(i.b)(t);if("int32"!==input.dtype&&(input=c.c(input,"int32")),"int"===e)return input;const u=input.shape;if(0===input.rank&&(input=Object(s._227)(input,-1)),"oneHot"===e&&1!==input.shape[input.shape.length-1]&&(input=Object(s._227)(input,-1)),input.rank>2)throw new o.e(`When outputMode is not int, maximum output rank is 2 Received outputMode ${e} and input shape ${u} which would result in output rank ${input.rank}.`);const l=["multiHot","oneHot"].includes(e),h=input;let p;if(p=void 0!==a&&"count"===e?Object(s._201)(h,a,n,l):Object(s._201)(h,[],n,l),"tfIdf"!==e)return p;if(a)return Object(s._292)(p,a);throw new o.e("When outputMode is 'tfIdf', weights must be provided.")}e.a=a;var s=n(0),i=n(29),o=n(15),c=n(32)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),s=n(25),i=n(15),o=n(29);
/**
* @license
* Copyright 2022 CodeSmith LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
const c=undefined,u=new Set(["bilinear","nearest"]);class l extends s.b{constructor(t){if(super(t),this.height=t.height,this.width=t.width,t.interpolation){if(!u.has(t.interpolation))throw new i.e(`Invalid interpolation parameter: ${t.interpolation} is not implemented`);this.interpolation=t.interpolation}else this.interpolation="bilinear";this.cropToAspectRatio=Boolean(t.cropToAspectRatio)}computeOutputShape(t){const e=(t=Object(o.a)(t))[2];return[this.height,this.width,e]}getConfig(){const t={height:this.height,width:this.width,interpolation:this.interpolation,cropToAspectRatio:this.cropToAspectRatio},e=super.getConfig();return Object.assign(t,e),t}call(t,e){return Object(a._394)((()=>{const size=[this.height,this.width];if("bilinear"===this.interpolation)return a._250.resizeBilinear(t,size,!this.cropToAspectRatio);if("nearest"===this.interpolation)return a._250.resizeNearestNeighbor(t,size,!this.cropToAspectRatio);throw new Error(`Interpolation is ${this.interpolation} but only ${[...u]} are supported`)}))}}l.className="Resizing",a._349.registerClass(l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var a=n(0),s=n(29),i=n(15),o=n(850);
/**
* @license
* Copyright 2023 CodeSmith LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
const c=undefined,u=new Set(["bilinear","nearest"]);class l extends o.a{constructor(t){super(t);const{factor:factor,interpolation:e="bilinear"}=t;if(this.factor=factor,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 i.e(`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 i.e(`factor must have values larger than -1. Got: ${this.factor}`);if(this.widthUpper<this.widthLower)throw new i.e(`factor cannot have upper bound less than lower bound.\n Got upper bound: ${this.widthUpper}.\n Got lower bound: ${this.widthLower}\n `);if(e){if(!u.has(e))throw new i.e(`Invalid interpolation parameter: ${e} is not implemented`);this.interpolation=e}}getConfig(){const t={factor:this.factor,interpolation:this.interpolation},e=super.getConfig();return Object.assign(t,e),t}computeOutputShape(t){const e=(t=Object(s.a)(t))[2];return[this.imgHeight,-1,e]}call(t,e){return Object(a._394)((()=>{const input=Object(s.b)(t);this.imgHeight=input.shape[input.shape.length-3];const e=input.shape[input.shape.length-2];this.widthFactor=Object(a._322)([1],1+this.widthLower,1+this.widthUpper,"float32",this.randomGenerator.next());let n=this.widthFactor.dataSync()[0]*e;n=Math.round(n);const size=[this.imgHeight,n];switch(this.interpolation){case"bilinear":return a._250.resizeBilinear(t,size);case"nearest":return a._250.resizeNearestNeighbor(t,size);default:throw new Error(`Interpolation is ${this.interpolation}\n but only ${[...u]} are supported`)}}))}}l.className="RandomWidth",a._349.registerClass(l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(25),s=n(851);
/**
* @license
* Copyright 2023 CodeSmith LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class i extends a.b{constructor(t){super(t),this.randomGenerator=new s.a(t.seed)}getConfig(){const t={seed:this.randomGenerator.seed},e=super.getConfig();return Object.assign(t,e),t}}i.className="BaseRandomLayer"},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));
/**
* @license
* Copyright 2023 CodeSmith LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class a{constructor(t){this.seed=t}next(){if(void 0!==this.seed)return this.seed++}}a.className="RandomSeed"},function(t,e,n){"use strict";function a(t,e){return O.a(t,e)}function s(t,e){return O.b(t,e)}function i(t,e){return O.i(t,e)}function o(t,e){return O.c(t,e)}function c(t,e){return O.d(t,e)}function u(t,e){return O.g(t,e)}function l(t,e){return O.h(t,e)}function h(t,e){return y.c(t,e)}function p(t,e){return y.g(t,e)}function f(t,e){return y.h(t,e)}function b(t,e){return y.h(t,e)}function m(t,e){return y.h(t,e)}function g(t,e){return y.i(t,e)}function v(t,e){return y.i(t,e)}function w(t,e){return y.i(t,e)}Object.defineProperty(e,"__esModule",{value:true}),e.binaryAccuracy=a,e.binaryCrossentropy=s,e.sparseCategoricalAccuracy=i,e.categoricalAccuracy=o,e.categoricalCrossentropy=c,e.precision=u,e.recall=l,e.cosineProximity=h,e.meanAbsoluteError=p,e.meanAbsolutePercentageError=f,e.MAPE=b,e.mape=m,e.meanSquaredError=g,e.MSE=v,e.mse=w;var y=n(100),O=n(299)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});var a=n(159);n.d(e,"modelFromJSON",(function(){return a.c}))},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
function a(t){return new o.a(t)}function s(t){return o.c(t)}function i(t){return o.d(t)}Object.defineProperty(e,"__esModule",{value:true}),e.l1l2=a,e.l1=s,e.l2=i;var o=n(64)},function(t,e,n){"use strict";function a(t,e){return t<e}function s(t,e){return t>e}function i(t){return new p(t)}var o=n(125),c=n(158),u=n(15),l=n(157);
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
class h extends o.a{constructor(){super(...arguments),this.model=null}setModel(model){if(!(model instanceof c.a))throw new Error("model must be a LayersModel, not some other Container");this.model=model}}e.a=h;class p extends h{constructor(t){if(super(),null==t&&(t={}),t.restoreBestWeights)throw new u.c("restoreBestWeights = True is not implemented in EarlyStopping yet.");this.monitor=t.monitor||"val_loss",this.minDelta=Math.abs(t.minDelta||0),this.patience=t.patience||0,this.verbose=t.verbose||0,this.mode=t.mode||"auto",this.baseline=t.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=a:"max"===this.mode||-1!==this.monitor.indexOf("acc")?this.monitorFunc=s:this.monitorFunc=a,this.monitorFunc===a&&(this.minDelta*=-1)}async onTrainBegin(t){this.wait=0,this.stoppedEpoch=0,null!=this.baseline?this.best=this.baseline:this.best=this.monitorFunc===a?1/0:-1/0}async onEpochEnd(t,e){await Object(l.b)(e);const n=this.getMonitorValue(e);null!=n&&(this.monitorFunc(n-this.minDelta,this.best)?(this.best=n,this.wait=0):(this.wait++,this.wait>=this.patience&&(this.stoppedEpoch=t,this.model.stopTraining=true)))}async onTrainEnd(t){this.stoppedEpoch>0&&this.verbose&&console.log(`Epoch ${this.stoppedEpoch}: early stopping.`)}getMonitorValue(t){null==t&&(t={});const e=t[this.monitor];return null==e&&console.warn(`Metric for EarlyStopping ${this.monitor} is not available. Available metrics are: ${Object.keys(t)}`),e}}e.b=p;const f={earlyStopping:i};e.c=f},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s=undefined;Object(a._222)().registerFlag("KEEP_INTERMEDIATE_TENSORS",(()=>false),(t=>{t&&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.")}))},function(t,e,n){"use strict";async function a(t,e={},n=o._252){if(null==t)throw new Error("modelUrl in loadGraphModel() cannot be null. Please provide a url or an IOHandler that loads the model");null==e&&(e={}),e.fromTFHub&&"string"==typeof t&&(t=i(t));const model=new b(t,e,n);return await model.load(),model}function s(t){if(null==t)throw new Error("modelUrl in loadGraphModelSync() cannot be null. Please provide model artifacts or an IOHandler that loads the model");let e;if(t instanceof Array){const[n,a]=t;if(!n)throw new Error("modelJSON must be the first element of the array");if(!(a&&a instanceof ArrayBuffer))throw new Error("An ArrayBuffer of weights must be the second element of the array");if(!("modelTopology"in n))throw new Error("Model JSON is missing 'modelTopology'");if(!("weightsManifest"in n))throw new Error("Model JSON is missing 'weightsManifest'");const s=o._252.getWeightSpecs(n.weightsManifest),i=o._252.getModelArtifactsForJSONSync(n,s,a);e=o._252.fromMemorySync(i)}else if("load"in t)e=t;else{if(!("modelTopology"in t&&"weightSpecs"in t&&"weightData"in t))throw new Error("Unknown model format");e=o._252.fromMemorySync(t)}const model=new b(e);return model.load(),model}function i(t){return t.endsWith("/")||(t+="/"),`${t}model.json?tfjs-format=file`}e.b=a,e.c=s;var o=n(0),c=n(302),u=n(878),l=n(906),h=n(78);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const p="?tfjs-format=file",f="model.json";class b{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(t,e={},n=o._252){this.modelUrl=t,this.loadOptions=e,this.version="n/a",this.io=n,null==e&&(this.loadOptions={}),this.resourceManager=new l.a}findIOHandler(){const t=this.modelUrl;if(null!=t.load)this.handler=t;else if(null!=this.loadOptions.requestInit)this.handler=this.io.browserHTTPRequest(t,this.loadOptions);else{const handlers=this.io.getLoadHandlers(t,this.loadOptions);if(0===handlers.length)handlers.push(this.io.browserHTTPRequest(t,this.loadOptions));else if(handlers.length>1)throw new Error(`Found more than one (${handlers.length}) load handlers for URL '${[t]}'`);this.handler=handlers[0]}}load(){if(this.findIOHandler(),null==this.handler.load)throw new Error("Cannot proceed with model loading because the IOHandler provided does not have the `load` method implemented.");const t=this.handler.load();return o._408.isPromise(t)?t.then((t=>null==t.getWeightStream?this.loadSync(t):this.loadStreaming(t))):this.loadSync(t)}loadSync(t){const e=this.io.decodeWeights(t.weightData,t.weightSpecs);return this.loadWithWeightMap(t,e)}async loadStreaming(t){if(null==t.getWeightStream)throw new Error("Model artifacts missing streamWeights function");const e=await Object(h.f)(t.getWeightStream(),t.weightSpecs);return this.loadWithWeightMap(t,e)}loadWithWeightMap(t,e){this.artifacts=t;const n=this.artifacts.modelTopology;let a=this.artifacts.signature;if(null!=this.artifacts.userDefinedMetadata){const metadata=this.artifacts.userDefinedMetadata;null!=metadata.signature&&(a=metadata.signature),null!=metadata.structuredOutputKeys&&(this.structuredOutputKeys=metadata.structuredOutputKeys)}if(this.signature=a,this.version=`${n.versions.producer}.${n.versions.minConsumer}`,this.executor=new u.a(c.a.Instance.transformGraph(n,this.signature)),this.executor.weightMap=this.convertTensorMapToTensorsMap(e),this.executor.resourceManager=this.resourceManager,null!=t.modelInitializer&&null!=t.modelInitializer.node){const e=c.a.Instance.transformGraph(t.modelInitializer);this.initializer=new u.a(e),this.initializer.weightMap=this.executor.weightMap,this.initializer.resourceManager=this.resourceManager,this.initializerSignature=t.initializerSignature}return true}async save(t,e){if("string"==typeof t){const handlers=this.io.getSaveHandlers(t);if(0===handlers.length)throw new Error(`Cannot find any save handlers for URL '${t}'`);if(handlers.length>1)throw new Error(`Found more than one (${handlers.length}) save handlers for URL '${t}'`);t=handlers[0]}if(null==t.save)throw new Error("GraphModel.save() cannot proceed because the IOHandler provided does not have the `save` attribute defined.");return t.save(this.artifacts)}addStructuredOutputNames(t){if(this.structuredOutputKeys){const e=t instanceof o._133?[t]:t,n={};return e.forEach(((t,e)=>n[this.structuredOutputKeys[e]]=t)),n}return t}predict(t,e){const n=this.execute(t,this.outputNodes);return this.addStructuredOutputNames(n)}async predictAsync(t,e){const n=await this.executeAsync(t,this.outputNodes);return this.addStructuredOutputNames(n)}normalizeInputs(t){var e;if(!(t instanceof o._133||Array.isArray(t))){const n=null===(e=this.signature)||void 0===e?void 0:e.inputs;if(null!=n)for(const input in n){const e=n[input];null!=e.resourceId&&(t[input]=this.resourceIdToCapturedInput[e.resourceId])}return t}t=Array.isArray(t)?t:[t];const n=Object.keys(this.resourceIdToCapturedInput).length;if(t.length+n!==this.inputNodes.length)throw new Error(`Input tensor count mismatch, the graph model has ${this.inputNodes.length-n} non-resource placeholders, while there are ${t.length} input tensors provided.`);let a=0;return this.inputNodes.reduce(((map,e)=>{var n,s,i;const o=null===(i=null===(s=null===(n=this.signature)||void 0===n?void 0:n.inputs)||void 0===s?void 0:s[e])||void 0===i?void 0:i.resourceId;return map[e]=null!=o?this.resourceIdToCapturedInput[o]:t[a++],map}),{})}normalizeOutputs(t){return t=t||this.outputNodes,Array.isArray(t)?t:[t]}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(t){if(this.resourceIdToCapturedInput={},this.initializerSignature){const e=this.initializerSignature.outputs,n=Object.keys(e);for(let a=0;a<n.length;a++){const s=undefined,i=e[n[a]];this.resourceIdToCapturedInput[i.resourceId]=t[a]}}}execute(t,e){null==this.resourceIdToCapturedInput&&this.setResourceIdToCapturedInput(this.executeInitializerGraph()),t=this.normalizeInputs(t),e=this.normalizeOutputs(e);const n=this.executor.execute(t,e);return n.length>1?n:n[0]}async executeAsync(t,e){null==this.resourceIdToCapturedInput&&this.setResourceIdToCapturedInput(await this.executeInitializerGraphAsync()),t=this.normalizeInputs(t),e=this.normalizeOutputs(e);const n=await this.executor.executeAsync(t,e);return n.length>1?n:n[0]}getIntermediateTensors(){return this.executor.getIntermediateTensors()}disposeIntermediateTensors(){this.executor.disposeIntermediateTensors()}convertTensorMapToTensorsMap(map){return Object.keys(map).reduce(((t,e)=>(t[e]=[map[e]],t)),{})}dispose(){this.executor.dispose(),this.initializer&&(this.initializer.dispose(),this.resourceIdToCapturedInput&&Object(o._209)(this.resourceIdToCapturedInput)),this.resourceManager.dispose()}}e.a=b},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
var a,s;n.d(e,"a",(function(){return a})),function(t){t[t.DT_INVALID=0]="DT_INVALID",t[t.DT_FLOAT=1]="DT_FLOAT",t[t.DT_DOUBLE=2]="DT_DOUBLE",t[t.DT_INT32=3]="DT_INT32",t[t.DT_UINT8=4]="DT_UINT8",t[t.DT_INT16=5]="DT_INT16",t[t.DT_INT8=6]="DT_INT8",t[t.DT_STRING=7]="DT_STRING",t[t.DT_COMPLEX64=8]="DT_COMPLEX64",t[t.DT_INT64=9]="DT_INT64",t[t.DT_BOOL=10]="DT_BOOL",t[t.DT_QINT8=11]="DT_QINT8",t[t.DT_QUINT8=12]="DT_QUINT8",t[t.DT_QINT32=13]="DT_QINT32",t[t.DT_BFLOAT16=14]="DT_BFLOAT16",t[t.DT_QINT16=15]="DT_QINT16",t[t.DT_QUINT16=16]="DT_QUINT16",t[t.DT_UINT16=17]="DT_UINT16",t[t.DT_COMPLEX128=18]="DT_COMPLEX128",t[t.DT_HALF=19]="DT_HALF",t[t.DT_RESOURCE=20]="DT_RESOURCE",t[t.DT_VARIANT=21]="DT_VARIANT",t[t.DT_UINT32=22]="DT_UINT32",t[t.DT_UINT64=23]="DT_UINT64",t[t.DT_FLOAT_REF=101]="DT_FLOAT_REF",t[t.DT_DOUBLE_REF=102]="DT_DOUBLE_REF",t[t.DT_INT32_REF=103]="DT_INT32_REF",t[t.DT_UINT8_REF=104]="DT_UINT8_REF",t[t.DT_INT16_REF=105]="DT_INT16_REF",t[t.DT_INT8_REF=106]="DT_INT8_REF",t[t.DT_STRING_REF=107]="DT_STRING_REF",t[t.DT_COMPLEX64_REF=108]="DT_COMPLEX64_REF",t[t.DT_INT64_REF=109]="DT_INT64_REF",t[t.DT_BOOL_REF=110]="DT_BOOL_REF",t[t.DT_QINT8_REF=111]="DT_QINT8_REF",t[t.DT_QUINT8_REF=112]="DT_QUINT8_REF",t[t.DT_QINT32_REF=113]="DT_QINT32_REF",t[t.DT_BFLOAT16_REF=114]="DT_BFLOAT16_REF",t[t.DT_QINT16_REF=115]="DT_QINT16_REF",t[t.DT_QUINT16_REF=116]="DT_QUINT16_REF",t[t.DT_UINT16_REF=117]="DT_UINT16_REF",t[t.DT_COMPLEX128_REF=118]="DT_COMPLEX128_REF",t[t.DT_HALF_REF=119]="DT_HALF_REF",t[t.DT_RESOURCE_REF=120]="DT_RESOURCE_REF",t[t.DT_VARIANT_REF=121]="DT_VARIANT_REF",t[t.DT_UINT32_REF=122]="DT_UINT32_REF",t[t.DT_UINT64_REF=123]="DT_UINT64_REF"}(a||(a={})),function(t){let e;!function(t){t[t.LEGACY=0]="LEGACY",t[t.V1=1]="V1",t[t.V2=2]="V2"}(e=t.CheckpointFormatVersion||(t.CheckpointFormatVersion={}))}(s||(s={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true}]},{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:true}]},{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:true},{tfName:"data_format",name:"dataFormat",type:"string",notSupported:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{tfOpName:"Abs",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Acos",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Asin",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Atan",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true}]},{tfOpName:"Ceil",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true}]},{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:true}]},{tfOpName:"ComplexAbs",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Cos",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Cosh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Elu",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Exp",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Floor",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Log",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Imag",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true},{tfName:"Tout",name:"outputType",type:"dtype",notSupported:true}]},{tfOpName:"Neg",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Real",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true},{tfName:"Tout",name:"outputType",type:"dtype",notSupported:true}]},{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:true}]},{tfOpName:"Relu",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Relu6",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Selu",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Sigmoid",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Sin",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Sinh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Sqrt",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Rsqrt",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Square",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Tan",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Tanh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Sign",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Round",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Expm1",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Log1p",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Reciprocal",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Softplus",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Asinh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Acosh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Atanh",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"Erf",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true}]},{tfOpName:"IsNan",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"IsFinite",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{tfOpName:"IsInf",category:"basic_math",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true},{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:true}]},{tfOpName:"NextIteration",category:"control",inputs:[{start:0,name:"tensor",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true}]},{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:true}]},{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:true}]},{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"}]},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[],notSupported:true},{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true}]},{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:true},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true},{tfName:"ksize",name:"kernelSize",type:"number[]"},{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true},{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:true},{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:true},{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:true},{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},{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:true},{tfName:"explicit_paddings",name:"explicitPaddings",type:"number[]",defaultValue:[]},{tfName:"dilations",name:"dilations",type:"number[]",notSupported:true}]},{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:true},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true}]},{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:true},{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:true},{tfName:"dtype",name:"dtype",type:"dtype"},{tfName:"T",name:"T",type:"number",notSupported:true}]},{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:true},{tfName:"T",name:"T",type:"number",notSupported:true}]},{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:true}]},{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:true},{tfName:"dtype",name:"dtype",type:"dtype"},{tfName:"T",name:"T",type:"number",notSupported:true}]},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true},{tfName:"T_threshold",name:"threshold",type:"dtype",notSupported:true},{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:true}]},{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:true}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true},{tfName:"Tout",name:"tOut",type:"dtype",notSupported:true}]},{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:true},{tfName:"Tout",name:"tOut",type:"dtype",notSupported:true}]},{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:true},{tfName:"Tout",name:"tOut",type:"dtype",notSupported:true}]},{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:true},{tfName:"Tout",name:"tOut",type:"dtype",notSupported:true}]},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true}]},{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:true}]},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{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:true}]},{tfOpName:"LogicalNot",category:"logical",inputs:[{start:0,name:"a",type:"tensor"}],attrs:[{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true}]},{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:true}]},{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:true}]},{tfOpName:"BitwiseAnd",category:"logical",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"y",type:"tensor"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:false},{tfName:"transpose_b",name:"transposeB",type:"bool",defaultValue:false},{tfName:"leakyrelu_alpha",name:"leakyreluAlpha",type:"number",defaultValue:.2},{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:false},{tfName:"transpose_b",name:"transposeB",type:"bool",defaultValue:false},{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:false},{tfName:"adj_y",name:"transposeB",type:"bool",defaultValue:false},{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:false},{tfName:"adj_y",name:"transposeB",type:"bool",defaultValue:false},{tfName:"T",name:"dtype",type:"dtype",notSupported:true}]},{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:true}]},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:false}]},{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:true}]},{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:true}]},{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:true}]},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true}]},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true}]},{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:true}]},{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:false,notSupported:true}]},{tfOpName:"TensorScatterUpdate",category:"slice_join",inputs:[{start:0,name:"tensor",type:"tensor"},{start:1,name:"indices",type:"tensor"},{start:2,name:"values",type:"tensor"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true}]},{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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:true}]},{tfOpName:"IRFFT",category:"spectral",inputs:[{start:0,name:"x",type:"tensor"},{start:1,name:"fft_length",type:"number",notSupported:true}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{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"}]}];e.json=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:true});
/**
* @license
* Copyright 2023 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const a=[{tfOpName:"Cast",category:"transformation",inputs:[{start:0,name:"x",type:"tensor"}],attrs:[{tfName:"SrcT",name:"sdtype",type:"dtype",notSupported:true},{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:[]}];e.json=a},function(t,e,n){"use strict";var a=n(0),s=n(27),i=n(879),o=n(904),c=n(905);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class u{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(t){const e=Object.keys(t).map((e=>t[e].map((t=>t.id))));this._weightIds=[].concat(...e),this._weightMap=t}set resourceManager(t){this._resourceManager=t}get inputs(){return this._inputs.map((t=>({name:t.name,shape:t.attrParams.shape?t.attrParams.shape.value:void 0,dtype:t.attrParams.dtype?t.attrParams.dtype.value:void 0})))}get outputs(){return this._outputs.map((t=>({name:t.name,shape:t.attrParams.shape?t.attrParams.shape.value:void 0,dtype:t.attrParams.dtype?t.attrParams.dtype.value:void 0})))}get inputNodes(){return this._inputs.map((t=>t.signatureKey||t.name))}get outputNodes(){return this._outputs.map((t=>{const e=t.signatureKey||t.name;return t.defaultOutput?`${e}:${t.defaultOutput}`:e}))}get functions(){return Object.keys(this._functions).reduce(((map,t)=>(map[t]=this._functions[t].signature,map)),{})}constructor(t,e){this.graph=t,this.parent=e,this.compiledMap=new Map,this.parseNodeNameCache=new Map,this._weightMap={},this.SEPARATOR=",",this._functions={},this._functionExecutorMap={},this.keepIntermediateTensors=false,this._outputs=t.outputs,this._inputs=t.inputs,this._initNodes=t.initNodes,this._signature=t.signature,this._functions=t.functions,null!=t.functions&&Object.keys(t.functions).forEach((e=>{this._functionExecutorMap[e]=new u(t.functions[e],this)}))}getCompilationKey(t,e){const n=t.map((t=>t.name)).sort(),a=e.map((t=>t.name)).sort();return n.join(this.SEPARATOR)+"--"+a.join(this.SEPARATOR)}compile(t,e){const n=Object(c.a)(t,e,this.weightMap,this._initNodes),{missingInputs:a,dynamicNode:s,syncInputs:i}=n;if(null!=s)throw new Error(`This execution contains the node '${s.name}', which has the dynamic op '${s.op}'. Please use model.executeAsync() instead. Alternatively, to avoid the dynamic ops, specify the inputs [${i}]`);if(a.length>0){const n=e.map((t=>t.name)),s=Object.keys(t);throw new Error(`Cannot compute the outputs [${n}] from the provided inputs [${s}]. Missing the following inputs: [${a}]`)}const o=Object(c.c)(this.graph,n),u=undefined;return{orderedNodes:o,nodeLiveUntilMap:Object(c.b)(o)}}cloneAndKeepTensor(t){if(null==t)return null;const clone=t.clone();return Object(a._257)(clone),clone}cloneTensorList(t){if(!t)return null;const e=undefined;return t.map((t=>this.cloneAndKeepTensor(t)))}cloneTensorMap(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,this.cloneTensorList(e)])))}execute(t,e){this.disposeIntermediateTensors(),t=this.mapInputs(t);const names=Object.keys(t).sort();this.checkInputs(t),this.checkInputShapeAndType(t),e=this.mapOutputs(e),this.checkOutputs(e);const n=names.map((t=>this.graph.nodes[Object(s.g)(t)[0]])),c=e.map((t=>Object(s.g)(t)[0])),u=new Set(c);let l=c.map((t=>this.graph.nodes[t]));0===l.length&&(l=this._outputs);const h=this.getCompilationKey(n,l);let p=this.compiledMap.get(h);null==p&&(p=this.compile(t,l),this.compiledMap.set(h,p));try{this.keepIntermediateTensors=Object(a._222)().getBool("KEEP_INTERMEDIATE_TENSORS")}catch(t){this.keepIntermediateTensors=false,console.warn(t.message)}const f={},b={};return Object(a._394)((()=>{const n=new o.a(this.weightMap,f,b,this.functionExecutorMap,this.parseNodeNameCache),c=Object.assign({},this.weightMap);this.keepIntermediateTensors&&(this.clonedTensorsMap=this.cloneTensorMap(this.weightMap)),Object.keys(t).forEach((e=>{const[a,index]=Object(s.g)(e,n),i=[];i[index]=t[e],c[a]=i,this.keepIntermediateTensors&&(this.clonedTensorsMap[a]=this.cloneTensorList(i))}));const l=this.getFrozenTensorIds(c),{orderedNodes:h,nodeLiveUntilMap:m}=p;for(const t of h){if(c[t.name])continue;const e=Object(i.a)(t,c,n,this._resourceManager);if(a._408.isPromise(e))throw new Error(`The execution of the op '${t.op}' returned a promise. Please use model.executeAsync() instead.`);c[t.name]=e,this.keepIntermediateTensors&&(this.clonedTensorsMap[t.name]=this.cloneTensorList(e)),this.checkTensorForDisposalWithNodeLiveUntilInfo(t,c,n,l,u,m.get(t.name))}return null==this.parent&&n.dispose(l),e.map((t=>Object(s.e)(t,c,n)))}))}getFrozenTensorIds(t){const e=[].concat.apply([],Object.keys(t).map((e=>t[e])).map((t=>t.map((t=>t.id)))));return new Set(e)}checkTensorForDisposal(t,e,n,a,i,o,u){if(!Object(c.d)(e)&&!o.has(t)){for(const a of n[t])null!=a&&(u[a.id]=(u[a.id]||0)+e.children.length);for(const input of e.inputs){if(Object(c.d)(input))continue;const t=Object(s.f)(input.name,n,a);if(null!=t)for(const e of t){if(!e||e.kept||i.has(e.id))continue;const t=u[e.id];1===t?(e.dispose(),delete u[e.id]):null!=t&&u[e.id]--}}}}checkTensorForDisposalWithNodeLiveUntilInfo(t,e,n,a,i,o){function u(t){return Object(c.d)(t)||i.has(t.name)}if(!Object(c.d)(t)&&null!=o)for(const t of o){if(u(t))continue;const i=Object(s.f)(t.name,e,n);for(const t of i)!t||t.kept||a.has(t.id)||t.dispose()}}async executeAsync(t,e){return this._executeAsync(t,e)}disposeIntermediateTensors(){this.clonedTensorsMap&&(Object.values(this.clonedTensorsMap).forEach((t=>{for(const e of t)e&&!e.isDisposed&&e.dispose()})),this.clonedTensorsMap=null)}getIntermediateTensors(){return this.clonedTensorsMap}async _executeAsync(t,e,n=false,i={},c={}){this.disposeIntermediateTensors(),n||(t=this.mapInputs(t),this.checkInputs(t),this.checkInputShapeAndType(t),e=this.mapOutputs(e),this.checkOutputs(e));try{this.keepIntermediateTensors=Object(a._222)().getBool("KEEP_INTERMEDIATE_TENSORS")}catch(t){this.keepIntermediateTensors=false,console.warn(t.message)}const u=new o.a(this.weightMap,i,c,this.functionExecutorMap,this.parseNodeNameCache);this.keepIntermediateTensors&&(this.clonedTensorsMap=this.cloneTensorMap(this.weightMap));const l=await this.executeWithControlFlow(t,u,e,n),h=e.map((t=>Object(s.e)(t,l,u))),p=h.map((t=>t.id)),f=Object.keys(t).map((e=>t[e].id)),b=new Set([...p,...f,...this.weightIds]);return Object.values(l).forEach((t=>{t.forEach((t=>{!t||t.isDisposed||b.has(t.id)||t.dispose()}))})),null==this.parent&&u.dispose(b),h}async executeFunctionAsync(t,e,n){const a=t.reduce(((map,t,index)=>(map[this.inputs[index].name]=t,map)),{});return this._executeAsync(a,this.outputNodes,true,e,n)}async executeWithControlFlow(t,e,n,a){const names=Object.keys(t),i=names.map((t=>this.graph.nodes[Object(s.g)(t)[0]])),o=n.map((t=>Object(s.g)(t)[0])),u=new Set(o);let l=o.map((t=>this.graph.nodes[t]));0===l.length&&(l=this._outputs);const{usedNodes:h,missingInputs:p,dynamicNode:f,syncInputs:b}=Object(c.a)(t,l,this.weightMap,this._initNodes),m=[...i,...this.graph.weights,...this._initNodes||[]].map((t=>({node:t,contexts:e.currentContext}))),g=Object.assign({},this.weightMap);Object.keys(t).forEach((e=>{const[n,index]=Object(s.g)(e),a=[];a[index]=t[e],g[n]=a}));const v={},w=this.getFrozenTensorIds(g),y={};for(;m.length>0;){const t=this.processStack(i,m,e,g,y,w,u,v,h);await Promise.all(t)}null!=f||a||console.warn("This model execution did not contain any nodes with control flow or dynamic output shapes. You can use model.execute() instead.");const O=l.filter((t=>!Object(c.d)(t)&&!Object(s.e)(t.name,g,e))).map((t=>t.name));if(O.length>0){let t="";throw null!=f&&(t=`Alternatively, to avoid the dynamic ops, use model.execute() and specify the inputs [${b}]`),new Error(`Cannot compute the outputs [${O}] from the provided inputs [${names}]. Consider providing the following inputs: [${p}]. ${t}`)}return g}processStack(t,e,n,o,c,u,l,h,p){const f=[];for(;e.length>0;){const t=e.pop();n.currentContext=t.contexts;let b="";if("Enter"===t.node.op&&Object(s.d)("isConstant",t.node,o,n)&&([b]=Object(s.b)(t.node.name,n)),null==o[t.node.name]){const m=Object(i.a)(t.node,o,n,this._resourceManager);b||([b]=Object(s.b)(t.node.name,n));const g=n.currentContext;a._408.isPromise(m)?f.push(m.then((a=>(o[b]=a,this.keepIntermediateTensors&&(this.clonedTensorsMap[b]=this.cloneTensorList(a)),n.currentContext=g,this.checkTensorForDisposal(b,t.node,o,n,u,l,h),this.processChildNodes(t.node,e,n,o,c,p),a)))):(o[b]=m,this.keepIntermediateTensors&&(this.clonedTensorsMap[b]=this.cloneTensorList(m)),this.checkTensorForDisposal(b,t.node,o,n,u,l,h),this.processChildNodes(t.node,e,n,o,c,p))}else this.processChildNodes(t.node,e,n,o,c,p)}return f}processChildNodes(t,e,n,a,i,o){t.children.forEach((t=>{const[c]=Object(s.b)(t.name,n);!i[c]&&o.has(t.name)&&("Merge"===t.op?t.inputNames.some((t=>!!Object(s.e)(t,a,n)))&&(i[c]=true,e.push({contexts:n.currentContext,node:t})):t.inputNames.every((t=>!!Object(s.e)(t,a,n)))&&(i[c]=true,e.push({contexts:n.currentContext,node:t})))}))}dispose(){Object.keys(this.weightMap).forEach((t=>this.weightMap[t].forEach((t=>t.dispose()))))}checkInputShapeAndType(t){Object.keys(t).forEach((e=>{const input=t[e],[n]=Object(s.g)(e),i=this.graph.nodes[n];if(i.attrParams.shape&&i.attrParams.shape.value){const shape=i.attrParams.shape.value,t=shape.length===input.shape.length&&input.shape.every(((t,index)=>-1===shape[index]||shape[index]===t));a._408.assert(t,(()=>`The shape of dict['${i.name}'] provided in model.execute(dict) must be [${shape}], but was [${input.shape}]`))}i.attrParams.dtype&&i.attrParams.dtype.value&&a._408.assert(input.dtype===i.attrParams.dtype.value,(()=>`The dtype of dict['${i.name}'] provided in model.execute(dict) must be ${i.attrParams.dtype.value}, but was ${input.dtype}`))}))}mapInputs(t){var e,n;const a={};for(const s in t){const i=null===(n=null===(e=this._signature)||void 0===e?void 0:e.inputs)||void 0===n?void 0:n[s];null!=i?a[i.name]=t[s]:a[s]=t[s]}return a}checkInputs(t){const e=Object.keys(t).filter((t=>{const[e]=Object(s.g)(t);return null==this.graph.nodes[e]}));if(e.length>0)throw new Error(`The dict provided in model.execute(dict) has keys: [${e}] that are not part of graph`)}mapOutputs(t){return t.map((t=>{var e,n;const a=null===(n=null===(e=this._signature)||void 0===e?void 0:e.outputs)||void 0===n?void 0:n[t];return null!=a?a.name:t}),{})}checkOutputs(t){t.forEach((t=>{const[e]=Object(s.g)(t);if(!this.graph.nodes[e])throw new Error(`The output '${t}' is not found in the graph`)}))}}e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,S=s._394){const T=((t,e,n)=>{switch(t.category){case"arithmetic":return S((()=>c.a(t,e,n)));case"basic_math":return S((()=>u.a(t,e,n)));case"control":return l.a(t,e,n);case"convolution":return S((()=>h.a(t,e,n)));case"creation":return S((()=>p.a(t,e,n)));case"dynamic":return f.a(t,e,n);case"evaluation":return S((()=>b.a(t,e,n)));case"image":return S((()=>v.a(t,e,n)));case"graph":return S((()=>m.a(t,e,n)));case"logical":return S((()=>w.a(t,e,n)));case"matrices":return S((()=>y.a(t,e,n)));case"normalization":return S((()=>O.a(t,e,n)));case"ragged":return S((()=>x.a(t,e,n)));case"reduction":return S((()=>A.a(t,e,n)));case"slice_join":return S((()=>I.a(t,e,n)));case"sparse":return S((()=>j.a(t,e,n)));case"spectral":return S((()=>C.a(t,e,n)));case"string":return S((()=>_.a(t,e,n)));case"transformation":return S((()=>k.a(t,e,n)));case"hash_table":return g.a(t,e,n,a);case"custom":const s=Object(o.b)(t.op);if(s&&s.customExecutor)return s.customExecutor(new i.a(t,e,n));throw TypeError(`Custom op ${t.op} is not registered.`);default:throw TypeError(`Unknown op '${t.op}'. File an issue at https://github.com/tensorflow/tfjs/issues so we can add it, or register a custom execution with tf.registerOp()`)}})(t,e,n);return s._408.isPromise(T)?T.then((data=>[].concat(data))):[].concat(T)}e.a=a;var s=n(0),i=n(880),o=n(214),c=n(881),u=n(882),l=n(883),h=n(886),p=n(887),f=n(888),b=n(889),m=n(890),g=n(891),v=n(893),w=n(894),y=n(895),O=n(896),x=n(897),A=n(898),I=n(899),j=n(900),C=n(901),_=n(902),k=n(903)},function(t,e,n){"use strict";var a=n(27),s=n(302);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,e,n){this.node=t,this.tensorMap=e,this.context=n,this.inputs=[],this.attrs={},this.inputs=t.inputNames.map((t=>this.getInput(t))),null!=t.rawAttrs&&(this.attrs=Object.keys(t.rawAttrs).reduce(((t,e)=>(t[e]=this.getAttr(e),t)),{}))}getInput(t){return Object(a.e)(t,this.tensorMap,this.context)}getAttr(t,e){const n=this.node.rawAttrs[t];if(null!=n.tensor)return Object(a.e)(t,this.tensorMap,this.context);if(null!=n.i||null!=n.f)return Object(s.f)(this.node.rawAttrs,t,e);if(null!=n.s)return Object(s.i)(this.node.rawAttrs,t,e);if(null!=n.b)return Object(s.c)(this.node.rawAttrs,t,e);if(null!=n.shape)return Object(s.k)(this.node.rawAttrs,t,e);if(null!=n.type)return Object(s.e)(this.node.rawAttrs,t,e);if(null!=n.list){if(null!=n.list.i||null!=n.list.f)return Object(s.g)(this.node.rawAttrs,t,e);if(null!=n.list.s)return Object(s.h)(this.node.rawAttrs,t,e);if(null!=n.list.shape)return Object(s.j)(this.node.rawAttrs,t,e);if(null!=n.list.b)return Object(s.b)(this.node.rawAttrs,t,e);if(null!=n.list.type)return Object(s.d)(this.node.rawAttrs,t,e)}return e}}e.a=i},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"BiasAdd":case"AddV2":case"Add":return[i.add(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"AddN":return[i.addN(Object(s.d)("tensors",t,e,n))];case"FloorMod":case"Mod":return[i.mod(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"Mul":return[i.mul(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"RealDiv":case"Div":return[i.div(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"DivNoNan":return[i.divNoNan(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"FloorDiv":return[i.floorDiv(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"Sub":return[i.sub(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"Minimum":return[i.minimum(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"Maximum":return[i.maximum(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"Pow":return[i.pow(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"SquaredDifference":return[i.squaredDifference(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="arithmetic"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"Abs":case"ComplexAbs":return[i.abs(Object(s.d)("x",t,e,n))];case"Acos":return[i.acos(Object(s.d)("x",t,e,n))];case"Acosh":return[i.acosh(Object(s.d)("x",t,e,n))];case"Asin":return[i.asin(Object(s.d)("x",t,e,n))];case"Asinh":return[i.asinh(Object(s.d)("x",t,e,n))];case"Atan":return[i.atan(Object(s.d)("x",t,e,n))];case"Atan2":return[i.atan2(Object(s.d)("x",t,e,n),Object(s.d)("y",t,e,n))];case"Atanh":return[i.atanh(Object(s.d)("x",t,e,n))];case"Ceil":return[i.ceil(Object(s.d)("x",t,e,n))];case"Complex":return[i.complex(Object(s.d)("real",t,e,n),Object(s.d)("imag",t,e,n))];case"Cos":return[i.cos(Object(s.d)("x",t,e,n))];case"Cosh":return[i.cosh(Object(s.d)("x",t,e,n))];case"Elu":return[i.elu(Object(s.d)("x",t,e,n))];case"Erf":return[i.erf(Object(s.d)("x",t,e,n))];case"Exp":return[i.exp(Object(s.d)("x",t,e,n))];case"Expm1":return[i.expm1(Object(s.d)("x",t,e,n))];case"Floor":return[i.floor(Object(s.d)("x",t,e,n))];case"Log":return[i.log(Object(s.d)("x",t,e,n))];case"Log1p":return[i.log1p(Object(s.d)("x",t,e,n))];case"Imag":return[i.imag(Object(s.d)("x",t,e,n))];case"Neg":return[i.neg(Object(s.d)("x",t,e,n))];case"Reciprocal":return[i.reciprocal(Object(s.d)("x",t,e,n))];case"Real":return[i.real(Object(s.d)("x",t,e,n))];case"Relu":return[i.relu(Object(s.d)("x",t,e,n))];case"Round":return[i.round(Object(s.d)("x",t,e,n))];case"Selu":return[i.selu(Object(s.d)("x",t,e,n))];case"Sigmoid":return[i.sigmoid(Object(s.d)("x",t,e,n))];case"Sin":return[i.sin(Object(s.d)("x",t,e,n))];case"Sign":return[i.sign(Object(s.d)("x",t,e,n))];case"Sinh":return[i.sinh(Object(s.d)("x",t,e,n))];case"Softplus":return[i.softplus(Object(s.d)("x",t,e,n))];case"Sqrt":return[i.sqrt(Object(s.d)("x",t,e,n))];case"Square":return[i.square(Object(s.d)("x",t,e,n))];case"Tanh":return[i.tanh(Object(s.d)("x",t,e,n))];case"Tan":return[i.tan(Object(s.d)("x",t,e,n))];case"ClipByValue":return[i.clipByValue(Object(s.d)("x",t,e,n),Object(s.d)("clipValueMin",t,e,n),Object(s.d)("clipValueMax",t,e,n))];case"Relu6":return[i.relu6(Object(s.d)("x",t,e,n))];case"Rsqrt":return[i.rsqrt(Object(s.e)(t.inputNames[0],e,n))];case"LeakyRelu":return[i.leakyRelu(Object(s.d)("x",t,e,n),Object(s.d)("alpha",t,e,n))];case"Prelu":return[i.prelu(Object(s.d)("x",t,e,n),Object(s.d)("alpha",t,e,n))];case"IsNan":return[i.isNaN(Object(s.e)(t.inputNames[0],e,n))];case"IsInf":return[i.isInf(Object(s.e)(t.inputNames[0],e,n))];case"IsFinite":return[i.isFinite(Object(s.e)(t.inputNames[0],e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="basic_math"},function(t,e,n){"use strict";var a=n(0),s=n(884),i=n(885),o=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c=async(t,e,n)=>{switch(t.op){case"If":case"StatelessIf":{const a=Object(o.d)("thenBranch",t,e,n),s=Object(o.d)("elseBranch",t,e,n),i=Object(o.d)("cond",t,e,n),c=Object(o.d)("args",t,e,n),u=undefined;return(await i.data())[0]?n.functionMap[a].executeFunctionAsync(c,n.tensorArrayMap,n.tensorListMap):n.functionMap[s].executeFunctionAsync(c,n.tensorArrayMap,n.tensorListMap)}case"While":case"StatelessWhile":{const a=Object(o.d)("body",t,e,n),s=Object(o.d)("cond",t,e,n),i=Object(o.d)("args",t,e,n),c=await n.functionMap[s].executeFunctionAsync(i,n.tensorArrayMap,n.tensorListMap),u=i.map((t=>t.id));let l=await c[0].data();c.forEach((t=>{t.kept||-1!==u.indexOf(t.id)||t.dispose()}));let h=i;for(;l[0];){const t=h;h=await n.functionMap[a].executeFunctionAsync(h,n.tensorArrayMap,n.tensorListMap);const e=h.map((t=>t.id));t.forEach((t=>{t.kept||-1!==u.indexOf(t.id)||-1!==e.indexOf(t.id)||t.dispose()}));const i=await n.functionMap[s].executeFunctionAsync(h,n.tensorArrayMap,n.tensorListMap);l=await i[0].data(),i.forEach((t=>{t.kept||-1!==u.indexOf(t.id)||-1!==e.indexOf(t.id)||t.dispose()}))}return h}case"LoopCond":{const a=Object(o.d)("pred",t,e,n);return[Object(o.a)(a)]}case"Switch":{const a=Object(o.d)("pred",t,e,n);let data=Object(o.d)("data",t,e,n);return data.kept||(data=Object(o.a)(data)),(await a.data())[0]?[void 0,data]:[data,void 0]}case"Merge":{const a=t.inputNames.find((t=>void 0!==Object(o.e)(t,e,n)));if(a){const data=Object(o.e)(a,e,n);return[Object(o.a)(data)]}return}case"Enter":{const a=Object(o.d)("frameName",t,e,n),data=Object(o.d)("tensor",t,e,n);return n.enterFrame(a),[Object(o.a)(data)]}case"Exit":{const data=Object(o.d)("tensor",t,e,n);return n.exitFrame(),[Object(o.a)(data)]}case"NextIteration":{const data=Object(o.d)("tensor",t,e,n);return n.nextIteration(),[Object(o.a)(data)]}case"TensorArrayV3":{const size=Object(o.d)("size",t,e,n),i=Object(o.d)("dtype",t,e,n),c=Object(o.d)("elementShape",t,e,n),u=Object(o.d)("dynamicSize",t,e,n),l=Object(o.d)("clearAfterRead",t,e,n),h=Object(o.d)("identicalElementShapes",t,e,n),p=Object(o.d)("name",t,e,n),f=new s.a(p,i,size,c,h,u,l);return n.addTensorArray(f),[f.idTensor,Object(a._343)(1)]}case"TensorArrayWriteV3":{const id=Object(o.d)("tensorArrayId",t,e,n),index=Object(o.d)("index",t,e,n),a=Object(o.d)("tensor",t,e,n),s=n.getTensorArray(id.id);return s.write(index,a),[s.idTensor]}case"TensorArrayReadV3":{const a=Object(o.d)("tensorArrayId",t,e,n),s=Object(o.d)("index",t,e,n),i=undefined;return[n.getTensorArray(a.id).read(s)]}case"TensorArrayGatherV3":{const a=Object(o.d)("tensorArrayId",t,e,n),s=Object(o.d)("indices",t,e,n),i=Object(o.d)("dtype",t,e,n),c=undefined;return[n.getTensorArray(a.id).gather(s,i)]}case"TensorArrayScatterV3":{const a=Object(o.d)("tensorArrayId",t,e,n),s=Object(o.d)("indices",t,e,n),i=Object(o.d)("tensor",t,e,n),c=n.getTensorArray(a.id);return c.scatter(s,i),[c.idTensor]}case"TensorArrayConcatV3":{const a=Object(o.d)("tensorArrayId",t,e,n),s=n.getTensorArray(a.id),i=Object(o.d)("dtype",t,e,n);return[s.concat(i)]}case"TensorArraySplitV3":{const a=Object(o.d)("tensorArrayId",t,e,n),s=Object(o.d)("tensor",t,e,n),i=Object(o.d)("lengths",t,e,n),c=n.getTensorArray(a.id);return c.split(i,s),[c.idTensor]}case"TensorArraySizeV3":{const s=Object(o.d)("tensorArrayId",t,e,n),i=n.getTensorArray(s.id);return[Object(a._343)(i.size(),"int32")]}case"TensorArrayCloseV3":{const a=Object(o.d)("tensorArrayId",t,e,n),s=n.getTensorArray(a.id);return s.clearAndClose(),[s.idTensor]}case"TensorListSetItem":{const a=Object(o.d)("tensorListId",t,e,n),index=Object(o.d)("index",t,e,n),s=Object(o.d)("tensor",t,e,n),i=n.getTensorList(a.id);return i.setItem(index,s),[i.idTensor]}case"TensorListGetItem":{const a=Object(o.d)("tensorListId",t,e,n),s=Object(o.d)("index",t,e,n),i=Object(o.d)("elementShape",t,e,n),c=Object(o.d)("elementDType",t,e,n),u=undefined;return[n.getTensorList(a.id).getItem(s,i,c)]}case"TensorListScatterV2":case"TensorListScatter":{const a=Object(o.d)("indices",t,e,n),s=Object(o.d)("tensor",t,e,n),c=Object(o.d)("elementShape",t,e,n),u=Object(o.d)("numElements",t,e,n),l=Object(i.c)(s,a,c,u);return n.addTensorList(l),[l.idTensor]}case"TensorListReserve":case"EmptyTensorList":{const a=Object(o.d)("elementShape",t,e,n),s=Object(o.d)("elementDType",t,e,n);let c;c="TensorListReserve"===t.op?"numElements":"maxNumElements";const u=Object(o.d)(c,t,e,n),l="TensorListReserve"===t.op?-1:u,h=Object(i.b)(a,s,u,l);return n.addTensorList(h),[h.idTensor]}case"TensorListGather":{const a=Object(o.d)("tensorListId",t,e,n),s=Object(o.d)("indices",t,e,n),i=Object(o.d)("elementShape",t,e,n),c=Object(o.d)("elementDType",t,e,n),u=undefined;return[n.getTensorList(a.id).gather(s,c,i)]}case"TensorListStack":{const a=Object(o.d)("tensorListId",t,e,n),s=Object(o.d)("elementShape",t,e,n),i=Object(o.d)("elementDType",t,e,n),c=Object(o.d)("numElements",t,e,n),u=undefined;return[n.getTensorList(a.id).stack(s,i,c)]}case"TensorListFromTensor":{const a=Object(o.d)("tensor",t,e,n),s=Object(o.d)("elementShape",t,e,n),c=Object(o.d)("elementDType",t,e,n),u=Object(i.a)(a,s,c);return n.addTensorList(u),[u.idTensor]}case"TensorListConcat":case"TensorListConcatV2":{const a=Object(o.d)("tensorListId",t,e,n),s=n.getTensorList(a.id),i=Object(o.d)("dtype",t,e,n),c=Object(o.d)("elementShape",t,e,n);return[s.concat(i,c)]}case"TensorListPushBack":{const a=Object(o.d)("tensorListId",t,e,n),s=Object(o.d)("tensor",t,e,n),i=n.getTensorList(a.id);return i.pushBack(s),[i.idTensor]}case"TensorListPopBack":{const a=Object(o.d)("tensorListId",t,e,n),s=Object(o.d)("elementShape",t,e,n),i=Object(o.d)("elementDType",t,e,n),c=undefined;return[n.getTensorList(a.id).popBack(s,i)]}case"TensorListSplit":{const a=Object(o.d)("tensor",t,e,n),s=Object(o.d)("elementShape",t,e,n),c=Object(o.d)("lengths",t,e,n),u=Object(i.d)(a,c,s);return n.addTensorList(u),[u.idTensor]}case"TensorListLength":{const s=Object(o.d)("tensorListId",t,e,n),i=n.getTensorList(s.id);return[Object(a._343)(i.size(),"int32")]}case"TensorListResize":{const a=Object(o.d)("tensorListId",t,e,n),size=Object(o.d)("size",t,e,n),s=undefined,i=n.getTensorList(a.id).resize(size);return n.addTensorList(i),[i.idTensor]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=c;const u="control"},function(t,e,n){"use strict";var a=n(0),s=n(303);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,e,n,s,i,o,c){this.name=t,this.dtype=e,this.maxSize=n,this.elementShape=s,this.identicalElementShapes=i,this.dynamicSize=o,this.clearAfterRead=c,this.tensors=[],this.closed_=false,this.idTensor=Object(a._343)(0),Object(a._257)(this.idTensor)}get id(){return this.idTensor.id}get closed(){return this.closed_}clearAndClose(t){this.tensors.forEach((e=>{null!=t&&t.has(e.tensor.id)||e.tensor.dispose()})),this.tensors=[],this.closed_=true,this.idTensor.dispose()}size(){return this.tensors.length}read(index){if(this.closed_)throw new Error(`TensorArray ${this.name} has already been closed.`);if(index<0||index>=this.size())throw new Error(`Tried to read from index ${index}, but array size is: ${this.size()}`);const t=this.tensors[index];if(t.cleared)throw new Error(`TensorArray ${this.name}: Could not read index ${index} twice because it was cleared after a previous read (perhaps try setting clear_after_read = false?).`);return this.clearAfterRead&&(t.cleared=true),t.read=true,t.tensor}readMany(t){return t.map((index=>this.read(index)))}write(index,t){if(this.closed_)throw new Error(`TensorArray ${this.name} has already been closed.`);if(index<0||!this.dynamicSize&&index>=this.maxSize)throw new Error(`Tried to write to index ${index}, but array is not resizeable and size is: ${this.maxSize}`);const e=this.tensors[index]||{};if(t.dtype!==this.dtype)throw new Error(`TensorArray ${this.name}: Could not write to TensorArray index ${index},\n 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),Object(s.a)(this.elementShape,t.shape,`TensorArray ${this.name}: Could not write to TensorArray index ${index}.`),e.read)throw new Error(`TensorArray ${this.name}: Could not write to TensorArray index ${index}, because it has already been read.`);if(e.written)throw new Error(`TensorArray ${this.name}: Could not write to TensorArray index ${index}, because it has already been written.`);e.tensor=t,Object(a._257)(t),e.written=true,this.tensors[index]=e}writeMany(t,e){if(t.length!==e.length)throw new Error(`TensorArray ${this.name}: could not write multiple tensors,because the index size: ${t.length} is not the same as tensors size: ${e.length}.`);t.forEach(((t,index)=>this.write(t,e[index])))}gather(t,e){if(!!e&&e!==this.dtype)throw new Error(`TensorArray dtype is ${this.dtype} but gather requested dtype ${e}`);if(t)t=t.slice(0,this.size());else{t=[];for(let e=0;e<this.size();e++)t.push(e)}if(0===t.length)return Object(a._384)([],[0].concat(this.elementShape));const n=this.readMany(t);return Object(s.a)(this.elementShape,n[0].shape,"TensorArray shape mismatch: "),Object(a._375)(n,0)}concat(t){if(!!t&&t!==this.dtype)throw new Error(`TensorArray dtype is ${this.dtype} but concat requested dtype ${t}`);if(0===this.size())return Object(a._384)([],[0].concat(this.elementShape));const e=[];for(let t=0;t<this.size();t++)e.push(t);const n=this.readMany(e);return Object(s.a)(this.elementShape,n[0].shape,`TensorArray shape mismatch: tensor array shape (${this.elementShape}) vs first tensor shape (${n[0].shape})`),Object(a._184)(n,0)}scatter(t,e){if(e.dtype!==this.dtype)throw new Error(`TensorArray dtype is ${this.dtype} but tensor has dtype ${e.dtype}`);if(t.length!==e.shape[0])throw new Error(`Expected len(indices) == tensor.shape[0], but saw: ${t.length} vs. ${e.shape[0]}`);const n=Math.max(...t);if(!this.dynamicSize&&n>=this.maxSize)throw new Error(`Max index must be < array size (${n} vs. ${this.maxSize})`);this.writeMany(t,Object(a._405)(e,0))}split(length,t){if(t.dtype!==this.dtype)throw new Error(`TensorArray dtype is ${this.dtype} but tensor has dtype ${t.dtype}`);let e=0;const n=length.map((t=>(e+=t,e)));if(e!==t.shape[0])throw new Error(`Expected sum of lengths to be equal to\n tensor.shape[0], but sum of lengths is\n ${e}, and tensor's shape is: ${t.shape}`);if(!this.dynamicSize&&length.length!==this.maxSize)throw new Error(`TensorArray's size is not equal to the size of lengths (${this.maxSize} vs. ${length.length}), and the TensorArray is not marked as dynamically resizeable`);const s=0===e?0:t.size/e,i=[];Object(a._394)((()=>{t=Object(a._334)(t,[1,e,s]);for(let e=0;e<length.length;++e){const o=undefined,c=[0,0===e?0:n[e-1],0],u=[1,length[e],s];i[e]=Object(a._334)(Object(a._358)(t,c,u),this.elementShape)}return i}));const o=[];for(let t=0;t<length.length;t++)o[t]=t;this.writeMany(o,i)}}e.a=i},function(t,e,n){"use strict";function a(t,e,n){const a=t.dtype;if(t.shape.length<1)throw new Error(`Tensor must be at least a vector, but saw shape: ${t.shape}`);if(t.dtype!==n)throw new Error(`Invalid data types; op elements ${t.dtype}, but list elements ${n}`);const s=t.shape.slice(1);Object(u.a)(s,e,"TensorList shape mismatch: ");const i=Object(c._405)(t);return new l(i,e,a)}function s(t,e,n,a){return new l([],t,e,a)}function i(t,e,n,a){if(e.length!==t.shape[0])throw new Error(`Expected len(indices) == tensor.shape[0], but saw: ${e.length} vs. ${t.shape[0]}`);const s=Math.max(...e);if(null!=a&&-1!==a&&s>=a)throw new Error(`Max index must be < array size (${s} vs. ${a})`);const list=new l([],n,t.dtype,a),i=Object(c._405)(t,0);return e.forEach(((t,index)=>{list.setItem(t,i[index])})),list}function o(t,length,e){let n=0;const a=length.map((t=>(n+=t,n)));if(n!==t.shape[0])throw new Error(`Expected sum of lengths to be equal to\n tensor.shape[0], but sum of lengths is\n ${n}, and tensor's shape is: ${t.shape}`);const s=t.shape.slice(1),i=Object(u.c)(s,e),o=0===n?0:t.size/n,h=Object(c._394)((()=>{const e=[];t=Object(c._334)(t,[1,n,o]);for(let n=0;n<length.length;++n){const s=undefined,u=[0,0===n?0:a[n-1],0],l=[1,length[n],o];e[n]=Object(c._334)(Object(c._358)(t,u,l),i)}return t.dispose(),e})),list=new l([],e,t.dtype,length.length);for(let t=0;t<h.length;t++)list.setItem(t,h[t]);return list}e.a=a,e.b=s,e.c=i,e.d=o;var c=n(0),u=n(303);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class l{get id(){return this.idTensor.id}constructor(t,e,n,a=-1){this.tensors=t,this.elementShape=e,this.elementDtype=n,null!=t&&t.forEach((t=>{if(n!==t.dtype)throw new Error(`Invalid data types; op elements ${n}, but list elements ${t.dtype}`);Object(u.a)(e,t.shape,"TensorList shape mismatch: "),Object(c._257)(t)})),this.idTensor=Object(c._343)(0),this.maxNumElements=a,Object(c._257)(this.idTensor)}copy(){return new l([...this.tensors],this.elementShape,this.elementDtype)}clearAndClose(t){this.tensors.forEach((e=>{null!=t&&t.has(e.id)||e.dispose()})),this.tensors.length=0,this.idTensor.dispose()}size(){return this.tensors.length}stack(t,e,n=-1){if(e!==this.elementDtype)throw new Error(`Invalid data types; op elements ${e}, but list elements ${this.elementDtype}`);if(-1!==n&&this.tensors.length!==n)throw new Error(`Operation expected a list with ${n} elements but got a list with ${this.tensors.length} elements.`);Object(u.a)(t,this.elementShape,"TensorList shape mismatch: ");const a=Object(u.b)(this.elementShape,this.tensors,t);return Object(c._394)((()=>{const t=this.tensors.map((t=>Object(c._334)(t,a)));return Object(c._375)(t,0)}))}popBack(t,e){if(e!==this.elementDtype)throw new Error(`Invalid data types; op elements ${e}, but list elements ${this.elementDtype}`);if(0===this.size())throw new Error("Trying to pop from an empty list.");const n=Object(u.b)(this.elementShape,this.tensors,t),a=this.tensors.pop();return a.kept=false,Object(u.a)(a.shape,t,"TensorList shape mismatch: "),Object(c._334)(a,n)}pushBack(t){if(t.dtype!==this.elementDtype)throw new Error(`Invalid data types; op elements ${t.dtype}, but list elements ${this.elementDtype}`);if(Object(u.a)(t.shape,this.elementShape,"TensorList shape mismatch: "),this.maxNumElements===this.size())throw new Error("Trying to push element into a full list.");Object(c._257)(t),this.tensors.push(t)}resize(size){if(size<0)throw new Error(`TensorListResize expects size to be non-negative. Got: ${size}`);if(-1!==this.maxNumElements&&size>this.maxNumElements)throw new Error(`TensorListResize input size ${size} is greater maxNumElement ${this.maxNumElements}.`);const t=new l([],this.elementShape,this.elementDtype,this.maxNumElements);t.tensors.length=size;for(let e=0;e<Math.min(this.tensors.length,size);++e)t.tensors[e]=this.tensors[e];return t}getItem(t,e,n){if(n!==this.elementDtype)throw new Error(`Invalid data types; op elements ${n}, but list elements ${this.elementDtype}`);if(t<0||t>this.tensors.length)throw new Error(`Trying to access element ${t} in a list with ${this.tensors.length} elements.`);if(null==this.tensors[t])throw new Error(`element at index ${t} is null.`);Object(u.a)(this.tensors[t].shape,e,"TensorList shape mismatch: ");const a=Object(u.b)(this.elementShape,this.tensors,e);return Object(c._334)(this.tensors[t],a)}setItem(t,e){if(e.dtype!==this.elementDtype)throw new Error(`Invalid data types; op elements ${e.dtype}, but list elements ${this.elementDtype}`);if(t<0||-1!==this.maxNumElements&&t>=this.maxNumElements)throw new Error(`Trying to set element ${t} in a list with max ${this.maxNumElements} elements.`);Object(u.a)(this.elementShape,e.shape,"TensorList shape mismatch: "),Object(c._257)(e),null!=this.tensors[t]&&(this.tensors[t].kept=false),this.tensors[t]=e}gather(t,e,n){if(e!==this.elementDtype)throw new Error(`Invalid data types; op elements ${e}, but list elements ${this.elementDtype}`);Object(u.a)(this.elementShape,n,"TensorList shape mismatch: "),t=t.slice(0,this.size());const a=Object(u.b)(this.elementShape,this.tensors,n);return 0===t.length?Object(c._384)([],[0].concat(a)):Object(c._394)((()=>{const e=t.map((t=>Object(c._334)(this.tensors[t],a)));return Object(c._375)(e,0)}))}concat(t,e){if(!!t&&t!==this.elementDtype)throw new Error(`TensorList dtype is ${this.elementDtype} but concat requested dtype ${t}`);Object(u.a)(this.elementShape,e,"TensorList shape mismatch: ");const n=Object(u.b)(this.elementShape,this.tensors,e);return 0===this.size()?Object(c._384)([],[0].concat(n)):Object(c._394)((()=>{const t=this.tensors.map((t=>Object(c._334)(t,n)));return Object(c._184)(t,0)}))}}},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const[a,s]=Object(i.d)("fusedOps",t,e,n),o="biasadd"===a,c=!o,u="prelu"===s,l="fusedbatchnorm"===a,h=Object(i.d)("numArgs",t,e,n);if(o){if(u&&2!==h)throw new Error("FusedConv2d and DepthwiseConv2d with BiasAdd and Prelu must have two extra arguments: bias and alpha.");if(!u&&o&&1!==h)throw new Error("FusedConv2d and DepthwiseConv2d with BiasAdd must have one extra argument: bias.")}if(l)throw new Error("FusedConv2d and DepthwiseConv2d with FusedBatchNorm is not supported");const p=Object(i.d)("strides",t,e,n),f=Object(i.c)(t,e,n),b=Object(i.d)("dataFormat",t,e,n).toUpperCase(),m=Object(i.d)("dilations",t,e,n);let[g,v]=Object(i.d)("args",t,e,n);c&&(v=g,g=void 0);const w=undefined;return{stride:p,pad:f,dataFormat:b,dilations:m,biasArg:g,preluArg:v,activationFunc:s,leakyreluAlpha:Object(i.d)("leakyreluAlpha",t,e,n)}}var s=n(37),i=n(27);const o=(t,e,n,o=s)=>{switch(t.op){case"Conv1D":{const a=Object(i.d)("stride",t,e,n),s=Object(i.d)("pad",t,e,n),c=Object(i.d)("dataFormat",t,e,n).toUpperCase(),u=Object(i.d)("dilation",t,e,n);return[o.conv1d(Object(i.d)("x",t,e,n),Object(i.d)("filter",t,e,n),a,s,c,u)]}case"Conv2D":{const a=Object(i.d)("strides",t,e,n),s=Object(i.c)(t,e,n),c=Object(i.d)("dataFormat",t,e,n).toUpperCase(),u=Object(i.d)("dilations",t,e,n);return[o.conv2d(Object(i.d)("x",t,e,n),Object(i.d)("filter",t,e,n),[a[1],a[2]],s,c,[u[1],u[2]])]}case"_FusedConv2D":{const{stride:s,pad:c,dataFormat:u,dilations:l,biasArg:h,preluArg:p,activationFunc:f,leakyreluAlpha:b}=a(t,e,n);return[o.fused.conv2d({x:Object(i.d)("x",t,e,n),filter:Object(i.d)("filter",t,e,n),strides:[s[1],s[2]],pad:c,dataFormat:u,dilations:[l[1],l[2]],bias:h,activation:f,preluActivationWeights:p,leakyreluAlpha:b})]}case"FusedDepthwiseConv2dNative":{const{stride:s,pad:c,dataFormat:u,dilations:l,biasArg:h,preluArg:p,activationFunc:f,leakyreluAlpha:b}=a(t,e,n);return[o.fused.depthwiseConv2d({x:Object(i.d)("x",t,e,n),filter:Object(i.d)("filter",t,e,n),strides:[s[1],s[2]],pad:c,dataFormat:u,dilations:[l[1],l[2]],bias:h,activation:f,preluActivationWeights:p,leakyreluAlpha:b})]}case"Conv2DBackpropInput":case"Conv2dTranspose":{const shape=Object(i.d)("outputShape",t,e,n),a=Object(i.d)("strides",t,e,n),s=Object(i.c)(t,e,n);return[o.conv2dTranspose(Object(i.d)("x",t,e,n),Object(i.d)("filter",t,e,n),shape,[a[1],a[2]],s)]}case"DepthwiseConv2dNative":case"DepthwiseConv2d":{const a=Object(i.d)("strides",t,e,n),s=Object(i.c)(t,e,n),c=Object(i.d)("dilations",t,e,n),u=Object(i.d)("dataFormat",t,e,n).toUpperCase();return[o.depthwiseConv2d(Object(i.d)("input",t,e,n),Object(i.d)("filter",t,e,n),[a[1],a[2]],s,u,[c[1],c[2]])]}case"Conv3D":{const a=Object(i.d)("strides",t,e,n),s=Object(i.d)("pad",t,e,n),c=Object(i.d)("dataFormat",t,e,n).toUpperCase(),u=Object(i.d)("dilations",t,e,n);return[o.conv3d(Object(i.d)("x",t,e,n),Object(i.d)("filter",t,e,n),[a[1],a[2],a[3]],s,c,[u[1],u[2],u[3]])]}case"AvgPool":{const a=Object(i.d)("strides",t,e,n),s=Object(i.d)("pad",t,e,n),c=Object(i.d)("kernelSize",t,e,n);return[o.avgPool(Object(i.d)("x",t,e,n),[c[1],c[2]],[a[1],a[2]],s)]}case"MaxPool":{const a=Object(i.d)("strides",t,e,n),s=Object(i.d)("pad",t,e,n),c=Object(i.d)("kernelSize",t,e,n);return[o.maxPool(Object(i.d)("x",t,e,n),[c[1],c[2]],[a[1],a[2]],s)]}case"MaxPoolWithArgmax":{const a=Object(i.d)("strides",t,e,n),s=Object(i.d)("pad",t,e,n),c=Object(i.d)("kernelSize",t,e,n),u=Object(i.d)("includeBatchInIndex",t,e,n),{result:l,indexes:h}=o.maxPoolWithArgmax(Object(i.d)("x",t,e,n),[c[1],c[2]],[a[1],a[2]],s,u);return[l,h]}case"AvgPool3D":{const a=Object(i.d)("strides",t,e,n),s=Object(i.d)("pad",t,e,n),c=Object(i.d)("kernelSize",t,e,n);return[o.avgPool3d(Object(i.d)("x",t,e,n),[c[1],c[2],c[3]],[a[1],a[2],a[3]],s)]}case"MaxPool3D":{const a=Object(i.d)("strides",t,e,n),s=Object(i.d)("pad",t,e,n),c=Object(i.d)("kernelSize",t,e,n);return[o.maxPool3d(Object(i.d)("x",t,e,n),[c[1],c[2],c[3]],[a[1],a[2],a[3]],s)]}case"Dilation2D":{const a=Object(i.d)("strides",t,e,n),s=Object(i.d)("pad",t,e,n),c=Object(i.d)("dilations",t,e,n),u=a[1],l=a[2],h=c[1],p=c[2];return[o.dilation2d(Object(i.d)("x",t,e,n),Object(i.d)("filter",t,e,n),[u,l],s,[h,p],"NHWC")]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=o;const c="convolution"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"Fill":{const shape=Object(s.d)("shape",t,e,n),a=Object(s.d)("dtype",t,e,n),o=Object(s.d)("value",t,e,n);return[i.fill(shape,o,a)]}case"LinSpace":{const a=Object(s.d)("start",t,e,n),o=Object(s.d)("stop",t,e,n),c=Object(s.d)("num",t,e,n);return[i.linspace(a,o,c)]}case"Multinomial":{const a=Object(s.d)("logits",t,e,n),o=Object(s.d)("numSamples",t,e,n),c=Object(s.d)("seed",t,e,n);return[i.multinomial(a,o,c)]}case"OneHot":{const a=Object(s.d)("indices",t,e,n),o=Object(s.d)("depth",t,e,n),c=Object(s.d)("onValue",t,e,n),u=Object(s.d)("offValue",t,e,n),l=Object(s.d)("dtype",t,e,n);return[i.oneHot(a,o,c,u,l)]}case"Ones":return[i.ones(Object(s.d)("shape",t,e,n),Object(s.d)("dtype",t,e,n))];case"OnesLike":return[i.onesLike(Object(s.d)("x",t,e,n))];case"RandomStandardNormal":return[i.randomStandardNormal(Object(s.d)("shape",t,e,n),Object(s.d)("dtype",t,e,n),Object(s.d)("seed",t,e,n))];case"RandomUniform":return[i.randomUniform(Object(s.d)("shape",t,e,n),Object(s.d)("minval",t,e,n),Object(s.d)("maxval",t,e,n),Object(s.d)("dtype",t,e,n))];case"RandomUniformInt":return[i.randomUniformInt(Object(s.d)("shape",t,e,n),Object(s.d)("minval",t,e,n),Object(s.d)("maxval",t,e,n),Object(s.d)("seed",t,e,n))];case"Range":{const a=Object(s.d)("start",t,e,n),o=Object(s.d)("stop",t,e,n),c=Object(s.d)("step",t,e,n);return[i.range(a,o,c,Object(s.d)("dtype",t,e,n))]}case"TruncatedNormal":{const shape=Object(s.d)("shape",t,e,n),a=Object(s.d)("mean",t,e,n),o=Object(s.d)("stdDev",t,e,n),c=Object(s.d)("seed",t,e,n);return[i.truncatedNormal(shape,a,o,Object(s.d)("dtype",t,e,n),c)]}case"Zeros":return[i.zeros(Object(s.d)("shape",t,e,n),Object(s.d)("dtype",t,e,n))];case"ZerosLike":return[i.zerosLike(Object(s.d)("x",t,e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="creation"},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const a=undefined,s=undefined,o=undefined,c=undefined,u=undefined,l=undefined;return{boxes:Object(i.d)("boxes",t,e,n),scores:Object(i.d)("scores",t,e,n),maxOutputSize:Object(i.d)("maxOutputSize",t,e,n),iouThreshold:Object(i.d)("iouThreshold",t,e,n),scoreThreshold:Object(i.d)("scoreThreshold",t,e,n),softNmsSigma:Object(i.d)("softNmsSigma",t,e,n)}}var s=n(37),i=n(27);const o=async(t,e,n,o,c=s)=>{switch(t.op){case"NonMaxSuppressionV5":{const{boxes:s,scores:i,maxOutputSize:o,iouThreshold:u,scoreThreshold:l,softNmsSigma:h}=a(t,e,n),p=await c.image.nonMaxSuppressionWithScoreAsync(s,i,o,u,l,h);return[p.selectedIndices,p.selectedScores]}case"NonMaxSuppressionV4":{const{boxes:s,scores:o,maxOutputSize:u,iouThreshold:l,scoreThreshold:h}=a(t,e,n),p=Object(i.d)("padToMaxOutputSize",t,e,n),f=await c.image.nonMaxSuppressionPaddedAsync(s,o,u,l,h,p);return[f.selectedIndices,f.validOutputs]}case"NonMaxSuppressionV3":case"NonMaxSuppressionV2":{const{boxes:s,scores:i,maxOutputSize:o,iouThreshold:u,scoreThreshold:l}=a(t,e,n);return[await c.image.nonMaxSuppressionAsync(s,i,o,u,l)]}case"Where":{const a=c.cast(Object(i.d)("condition",t,e,n),"bool"),s=[await c.whereAsync(a)];return a.dispose(),s}case"ListDiff":return c.setdiff1dAsync(Object(i.d)("x",t,e,n),Object(i.d)("y",t,e,n));default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=o;const c="dynamic"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"LowerBound":{const a=Object(s.d)("sortedSequence",t,e,n),o=Object(s.d)("values",t,e,n);return[i.lowerBound(a,o)]}case"TopKV2":{const a=Object(s.d)("x",t,e,n),o=Object(s.d)("k",t,e,n),c=Object(s.d)("sorted",t,e,n),u=i.topk(a,o,c);return[u.values,u.indices]}case"UpperBound":{const a=Object(s.d)("sortedSequence",t,e,n),o=Object(s.d)("values",t,e,n);return[i.upperBound(a,o)]}case"Unique":{const a=Object(s.d)("x",t,e,n),o=i.unique(a);return[o.values,o.indices]}case"UniqueV2":{const a=Object(s.d)("x",t,e,n),o=Object(s.d)("axis",t,e,n),c=i.unique(a,o);return[c.values,c.indices]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="evaluation"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"Const":return e[t.name];case"PlaceholderWithDefault":const a=Object(s.d)("default",t,e,n);return[Object(s.e)(t.name,e,n)||a];case"Placeholder":return[Object(s.e)(t.name,e,n)];case"Identity":case"StopGradient":case"FakeQuantWithMinMaxVars":{const data=Object(s.d)("x",t,e,n);return[Object(s.a)(data)]}case"IdentityN":return Object(s.d)("x",t,e,n).map((t=>Object(s.a)(t)));case"Snapshot":const o=Object(s.d)("x",t,e,n);return[Object(s.a)(o)];case"Shape":return[i.tensor1d(Object(s.d)("x",t,e,n).shape,"int32")];case"ShapeN":return Object(s.d)("x",t,e,n).map((t=>i.tensor1d(t.shape)));case"Size":return[i.scalar(Object(s.d)("x",t,e,n).size,"int32")];case"Rank":return[i.scalar(Object(s.d)("x",t,e,n).rank,"int32")];case"NoOp":return[i.scalar(1)];case"Print":const input=Object(s.d)("x",t,e,n),data=Object(s.d)("data",t,e,n),c=Object(s.d)("message",t,e,n),u=Object(s.d)("summarize",t,e,n);console.warn("The graph has a tf.print() operation,usually used for debugging, which slows down performance."),console.log(c);for(let t=0;t<data.length;t++)console.log(Array.prototype.slice.call(data[t].dataSync()).slice(0,u));return[input];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="graph"},function(t,e,n){"use strict";var a=n(892),s=n(27);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=async(t,e,n,i)=>{switch(t.op){case"HashTable":case"HashTableV2":{const o=i.getHashTableHandleByName(t.name);if(null!=o)return[o];{const o=Object(s.d)("keyDType",t,e,n),c=Object(s.d)("valueDType",t,e,n),u=new a.a(o,c);return i.addHashTable(t.name,u),[u.handle]}}case"InitializeTable":case"InitializeTableV2":case"LookupTableImport":case"LookupTableImportV2":{const a=Object(s.d)("tableHandle",t,e,n,i),o=Object(s.d)("keys",t,e,n),c=Object(s.d)("values",t,e,n),u=i.getHashTableById(a.id);return[await u.import(o,c)]}case"LookupTableFind":case"LookupTableFindV2":{const a=Object(s.d)("tableHandle",t,e,n,i),o=Object(s.d)("keys",t,e,n),c=Object(s.d)("defaultValue",t,e,n),u=i.getHashTableById(a.id);return[await u.find(o,c)]}case"LookupTableSize":case"LookupTableSizeV2":{const a=Object(s.d)("tableHandle",t,e,n,i),o=undefined;return[i.getHashTableById(a.id).tensorSize()]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="hash_table"},function(t,e,n){"use strict";var a=n(0),s=n(37);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{get id(){return this.handle.id}constructor(t,e){this.keyDType=t,this.valueDType=e,this.handle=Object(a._343)(0),this.tensorMap=new Map,Object(a._257)(this.handle)}clearAndClose(){this.tensorMap.forEach((t=>t.dispose())),this.tensorMap.clear(),this.handle.dispose()}size(){return this.tensorMap.size}tensorSize(){return s.scalar(this.size(),"int32")}async import(t,e){this.checkKeyAndValueTensor(t,e);const n=await t.data();return this.tensorMap.forEach((t=>t.dispose())),this.tensorMap.clear(),Object(a._394)((()=>{const t=Object(a._405)(e),s=n.length,i=t.length;a._408.assert(s===i,(()=>`The number of elements doesn't match, keys has ${s} elements, the values has ${i} elements.`));for(let e=0;e<s;e++){const s=n[e],i=t[e];Object(a._257)(i),this.tensorMap.set(s,i)}return this.handle}))}async find(t,e){this.checkKeyAndValueTensor(t,e);const n=await t.data();return Object(a._394)((()=>{const t=[];for(let a=0;a<n.length;a++){const s=n[a],i=this.findWithDefault(s,e);t.push(i)}return Object(a._375)(t)}))}findWithDefault(t,e){const n=this.tensorMap.get(t);return null!=n?n:e}checkKeyAndValueTensor(t,e){if(t.dtype!==this.keyDType)throw new Error(`Expect key dtype ${this.keyDType}, but got ${t.dtype}`);if(e.dtype!==this.valueDType)throw new Error(`Expect value dtype ${this.valueDType}, but got ${e.dtype}`)}}e.a=i},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"ResizeBilinear":{const a=Object(s.d)("images",t,e,n),size=Object(s.d)("size",t,e,n),o=Object(s.d)("alignCorners",t,e,n),c=Object(s.d)("halfPixelCenters",t,e,n);return[i.image.resizeBilinear(a,[size[0],size[1]],o,c)]}case"ResizeNearestNeighbor":{const a=Object(s.d)("images",t,e,n),size=Object(s.d)("size",t,e,n),o=Object(s.d)("alignCorners",t,e,n),c=Object(s.d)("halfPixelCenters",t,e,n);return[i.image.resizeNearestNeighbor(a,[size[0],size[1]],o,c)]}case"CropAndResize":{const image=Object(s.d)("image",t,e,n),a=Object(s.d)("boxes",t,e,n),o=Object(s.d)("boxInd",t,e,n),c=Object(s.d)("cropSize",t,e,n),u=Object(s.d)("method",t,e,n),l=Object(s.d)("extrapolationValue",t,e,n);return[i.image.cropAndResize(image,a,o,c,u,l)]}case"ImageProjectiveTransformV3":{const a=Object(s.d)("images",t,e,n),o=Object(s.d)("transforms",t,e,n),c=Object(s.d)("outputShape",t,e,n),u=Object(s.d)("fillValue",t,e,n),l=Object(s.d)("interpolation",t,e,n),h=Object(s.d)("fillMode",t,e,n);return[i.image.transform(a,o,l.toLowerCase(),h.toLowerCase(),u,c)]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="image"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"Equal":return[i.equal(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"NotEqual":return[i.notEqual(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"Greater":return[i.greater(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"GreaterEqual":return[i.greaterEqual(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"Less":return[i.less(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"LessEqual":return[i.lessEqual(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"LogicalAnd":return[i.logicalAnd(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"LogicalNot":return[i.logicalNot(Object(s.d)("a",t,e,n))];case"LogicalOr":return[i.logicalOr(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"Select":case"SelectV2":return[i.where(Object(s.d)("condition",t,e,n),Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];case"BitwiseAnd":return[i.bitwiseAnd(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="logical"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"BatchMatMul":case"BatchMatMulV2":case"MatMul":return[i.matMul(Object(s.d)("a",t,e,n),Object(s.d)("b",t,e,n),Object(s.d)("transposeA",t,e,n),Object(s.d)("transposeB",t,e,n))];case"Einsum":return[i.einsum(Object(s.d)("equation",t,e,n),...Object(s.d)("tensors",t,e,n))];case"Transpose":return[i.transpose(Object(s.d)("x",t,e,n),Object(s.d)("perm",t,e,n))];case"_FusedMatMul":const[a,o]=Object(s.d)("fusedOps",t,e,n),c="biasadd"===a,u="prelu"===o,l=Object(s.d)("numArgs",t,e,n),h=Object(s.d)("leakyreluAlpha",t,e,n);if(c){if(u&&2!==l)throw new Error("Fused MatMul with BiasAdd and Prelu must have two extra arguments: bias and alpha.");if(!u&&1!==l)throw new Error("Fused MatMul with BiasAdd must have one extra argument: bias.")}const[p,f]=Object(s.d)("args",t,e,n);return[i.fused.matMul({a:Object(s.d)("a",t,e,n),b:Object(s.d)("b",t,e,n),transposeA:Object(s.d)("transposeA",t,e,n),transposeB:Object(s.d)("transposeB",t,e,n),bias:p,activation:o,preluActivationWeights:f,leakyreluAlpha:h})];case"MatrixBandPart":return[i.linalg.bandPart(Object(s.d)("a",t,e,n),Object(s.d)("numLower",t,e,n),Object(s.d)("numUpper",t,e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="matrices"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"EuclideanNorm":return[i.euclideanNorm(Object(s.d)("x",t,e,n),Object(s.d)("axis",t,e,n),Object(s.d)("keepDims",t,e,n))];case"FusedBatchNorm":case"FusedBatchNormV2":case"FusedBatchNormV3":return[i.batchNorm(Object(s.d)("x",t,e,n),Object(s.d)("mean",t,e,n),Object(s.d)("variance",t,e,n),Object(s.d)("offset",t,e,n),Object(s.d)("scale",t,e,n),Object(s.d)("epsilon",t,e,n))];case"LRN":return[i.localResponseNormalization(Object(s.d)("x",t,e,n),Object(s.d)("radius",t,e,n),Object(s.d)("bias",t,e,n),Object(s.d)("alpha",t,e,n),Object(s.d)("beta",t,e,n))];case"Softmax":return[i.softmax(Object(s.d)("x",t,e,n))];case"LogSoftmax":return[i.logSoftmax(Object(s.d)("x",t,e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="normalization"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"RaggedGather":{const{outputNestedSplits:a,outputDenseValues:o}=i.raggedGather(Object(s.d)("paramsNestedSplits",t,e,n),Object(s.d)("paramsDenseValues",t,e,n),Object(s.d)("indices",t,e,n),Object(s.d)("outputRaggedRank",t,e,n));return a.concat(o)}case"RaggedRange":{const{rtNestedSplits:a,rtDenseValues:o}=i.raggedRange(Object(s.d)("starts",t,e,n),Object(s.d)("limits",t,e,n),Object(s.d)("splits",t,e,n));return[a,o]}case"RaggedTensorToTensor":return[i.raggedTensorToTensor(Object(s.d)("shape",t,e,n),Object(s.d)("values",t,e,n),Object(s.d)("defaultValue",t,e,n),Object(s.d)("rowPartitionTensors",t,e,n),Object(s.d)("rowPartitionTypes",t,e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="ragged"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"Max":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("keepDims",t,e,n);return[i.max(Object(s.d)("x",t,e,n),a,o)]}case"Mean":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("keepDims",t,e,n);return[i.mean(Object(s.d)("x",t,e,n),a,o)]}case"Min":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("keepDims",t,e,n);return[i.min(Object(s.d)("x",t,e,n),a,o)]}case"Sum":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("keepDims",t,e,n);return[i.sum(Object(s.d)("x",t,e,n),a,o)]}case"All":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("keepDims",t,e,n);return[i.all(Object(s.d)("x",t,e,n),a,o)]}case"Any":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("keepDims",t,e,n);return[i.any(Object(s.d)("x",t,e,n),a,o)]}case"ArgMax":{const a=Object(s.d)("axis",t,e,n);return[i.argMax(Object(s.d)("x",t,e,n),a)]}case"ArgMin":{const a=Object(s.d)("axis",t,e,n);return[i.argMin(Object(s.d)("x",t,e,n),a)]}case"Prod":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("keepDims",t,e,n);return[i.prod(Object(s.d)("x",t,e,n),a,o)]}case"Cumprod":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("exclusive",t,e,n),c=Object(s.d)("reverse",t,e,n);return[i.cumprod(Object(s.d)("x",t,e,n),a,o,c)]}case"Cumsum":{const a=Object(s.d)("axis",t,e,n),o=Object(s.d)("exclusive",t,e,n),c=Object(s.d)("reverse",t,e,n);return[i.cumsum(Object(s.d)("x",t,e,n),a,o,c)]}case"Bincount":const a=Object(s.d)("x",t,e,n),o=Object(s.d)("weights",t,e,n),size=Object(s.d)("size",t,e,n);return[i.bincount(a,o,size)];case"DenseBincount":{const a=Object(s.d)("x",t,e,n),o=Object(s.d)("weights",t,e,n),size=Object(s.d)("size",t,e,n),c=Object(s.d)("binaryOutput",t,e,n);return[i.denseBincount(a,o,size,c)]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="reduction"},function(t,e,n){"use strict";var a=n(0),s=n(37),i=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=(t,e,n,o=s)=>{switch(t.op){case"ConcatV2":case"Concat":{const a=Object(i.d)("n",t,e,n),s=Object(i.d)("axis",t,e,n);let c=Object(i.d)("tensors",t,e,n);return c=c.slice(0,a),[o.concat(c,s)]}case"Gather":{const input=Object(i.d)("x",t,e,n),a=Object(i.d)("indices",t,e,n);return[o.gather(input,o.cast(a,"int32"),0)]}case"GatherV2":{const a=Object(i.d)("axis",t,e,n),s=Object(i.d)("batchDims",t,e,n),input=Object(i.d)("x",t,e,n),c=Object(i.d)("indices",t,e,n);return[o.gather(input,o.cast(c,"int32"),a,s)]}case"Reverse":{const a=Object(i.d)("dims",t,e,n),s=[];for(let t=0;t<a.length;t++)a[t]&&s.push(t);const input=Object(i.d)("x",t,e,n);return[o.reverse(input,s)]}case"ReverseV2":{const a=Object(i.d)("axis",t,e,n),input=Object(i.d)("x",t,e,n);return[o.reverse(input,a)]}case"Slice":{const a=Object(i.d)("begin",t,e,n),size=Object(i.d)("size",t,e,n);return[o.slice(Object(i.d)("x",t,e,n),a,size)]}case"StridedSlice":{const a=Object(i.d)("begin",t,e,n),s=Object(i.d)("end",t,e,n),c=Object(i.d)("strides",t,e,n),u=Object(i.d)("beginMask",t,e,n),l=Object(i.d)("endMask",t,e,n),h=Object(i.d)("ellipsisMask",t,e,n),p=Object(i.d)("newAxisMask",t,e,n),f=Object(i.d)("shrinkAxisMask",t,e,n),b=Object(i.d)("x",t,e,n);return[o.stridedSlice(b,a,s,c,u,l,h,p,f)]}case"Pack":return Object(a._394)((()=>{const s=Object(i.d)("axis",t,e,n),c=Object(i.d)("tensors",t,e,n),shape=c[0].shape,u=o.squeeze(c[0]).shape,l=c.map((t=>{const e=a._408.arraysEqual(t.shape,shape);if(!e&&!a._408.arraysEqual(o.squeeze(t).shape,u))throw new Error("the input tensors shape does not match");return e?t:o.reshape(t,shape)}));return[o.stack(l,s)]}));case"Unpack":{const a=Object(i.d)("axis",t,e,n),s=Object(i.d)("tensor",t,e,n);return o.unstack(s,a)}case"Tile":{const a=Object(i.d)("reps",t,e,n);return[o.tile(Object(i.d)("x",t,e,n),a)]}case"Split":case"SplitV":{const a=Object(i.d)("axis",t,e,n),s=Object(i.d)("numOrSizeSplits",t,e,n),c=Object(i.d)("x",t,e,n);return o.split(c,s,a)}case"ScatterNd":{const a=Object(i.d)("indices",t,e,n),s=Object(i.d)("values",t,e,n),shape=Object(i.d)("shape",t,e,n);return[o.scatterND(a,s,shape)]}case"GatherNd":{const a=Object(i.d)("x",t,e,n),s=Object(i.d)("indices",t,e,n);return[o.gatherND(a,s)]}case"SparseToDense":{const a=Object(i.d)("sparseIndices",t,e,n),shape=Object(i.d)("outputShape",t,e,n),s=Object(i.d)("sparseValues",t,e,n),c=Object(i.d)("defaultValue",t,e,n);return[o.sparseToDense(a,s,shape,s.dtype===c.dtype?c:o.cast(c,s.dtype))]}case"TensorScatterUpdate":{const a=Object(i.d)("indices",t,e,n),s=Object(i.d)("values",t,e,n),c=Object(i.d)("tensor",t,e,n);return[o.tensorScatterUpdate(c,a,s)]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=o;const c="slice_join"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"SparseFillEmptyRows":{const{outputIndices:a,outputValues:o,emptyRowIndicator:c,reverseIndexMap:u}=i.sparse.sparseFillEmptyRows(Object(s.d)("indices",t,e,n),Object(s.d)("values",t,e,n),Object(s.d)("denseShape",t,e,n),Object(s.d)("defaultValue",t,e,n));return[a,o,c,u]}case"SparseReshape":{const{outputIndices:a,outputShape:o}=i.sparse.sparseReshape(Object(s.d)("inputIndices",t,e,n),Object(s.d)("inputShape",t,e,n),Object(s.d)("newShape",t,e,n));return[a,o]}case"SparseSegmentMean":{const a=undefined;return[i.sparse.sparseSegmentMean(Object(s.d)("data",t,e,n),Object(s.d)("indices",t,e,n),Object(s.d)("segmentIds",t,e,n))]}case"SparseSegmentSum":{const a=undefined;return[i.sparse.sparseSegmentSum(Object(s.d)("data",t,e,n),Object(s.d)("indices",t,e,n),Object(s.d)("segmentIds",t,e,n))]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="sparse"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"FFT":return[i.fft(Object(s.d)("x",t,e,n))];case"IFFT":return[i.ifft(Object(s.d)("x",t,e,n))];case"RFFT":return[i.rfft(Object(s.d)("x",t,e,n))];case"IRFFT":return[i.irfft(Object(s.d)("x",t,e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="spectral"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"StaticRegexReplace":return[i.string.staticRegexReplace(Object(s.d)("input",t,e,n),Object(s.d)("pattern",t,e,n),Object(s.d)("rewrite",t,e,n),Object(s.d)("replaceGlobal",t,e,n))];case"StringNGrams":{const{nGrams:a,nGramsSplits:o}=i.string.stringNGrams(Object(s.d)("data",t,e,n),Object(s.d)("dataSplits",t,e,n),Object(s.d)("separator",t,e,n),Object(s.d)("nGramWidths",t,e,n),Object(s.d)("leftPad",t,e,n),Object(s.d)("rightPad",t,e,n),Object(s.d)("padWidth",t,e,n),Object(s.d)("preserveShortSequences",t,e,n));return[a,o]}case"StringSplit":{const{indices:a,values:o,shape:shape}=i.string.stringSplit(Object(s.d)("input",t,e,n),Object(s.d)("delimiter",t,e,n),Object(s.d)("skipEmpty",t,e,n));return[a,o,shape]}case"StringToHashBucketFast":{const a=undefined;return[i.string.stringToHashBucketFast(Object(s.d)("input",t,e,n),Object(s.d)("numBuckets",t,e,n))]}default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="string"},function(t,e,n){"use strict";var a=n(37),s=n(27);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=(t,e,n,i=a)=>{switch(t.op){case"Cast":return[i.cast(Object(s.d)("x",t,e,n),Object(s.d)("dtype",t,e,n))];case"ExpandDims":{const a=Object(s.d)("axis",t,e,n);return[i.expandDims(Object(s.d)("x",t,e,n),a)]}case"Squeeze":{const a=Object(s.d)("axis",t,e,n);return[i.squeeze(Object(s.d)("x",t,e,n),a)]}case"Reshape":return[i.reshape(Object(s.d)("x",t,e,n),Object(s.d)("shape",t,e,n))];case"EnsureShape":return[i.ensureShape(Object(s.d)("x",t,e,n),Object(s.d)("shape",t,e,n))];case"MirrorPad":return[i.mirrorPad(Object(s.d)("x",t,e,n),Object(s.d)("padding",t,e,n),Object(s.d)("mode",t,e,n))];case"PadV2":case"Pad":return[i.pad(Object(s.d)("x",t,e,n),Object(s.d)("padding",t,e,n),Object(s.d)("constantValue",t,e,n))];case"SpaceToBatchND":{const blockShape=Object(s.d)("blockShape",t,e,n),paddings=Object(s.d)("paddings",t,e,n);return[i.spaceToBatchND(Object(s.d)("x",t,e,n),blockShape,paddings)]}case"BatchToSpaceND":{const blockShape=Object(s.d)("blockShape",t,e,n),a=Object(s.d)("crops",t,e,n);return[i.batchToSpaceND(Object(s.d)("x",t,e,n),blockShape,a)]}case"DepthToSpace":{const a=Object(s.d)("blockSize",t,e,n),o=Object(s.d)("dataFormat",t,e,n).toUpperCase();return[i.depthToSpace(Object(s.d)("x",t,e,n),a,o)]}case"BroadcastTo":return[i.broadcastTo(Object(s.d)("x",t,e,n),Object(s.d)("shape",t,e,n))];case"BroadcastArgs":return[i.broadcastArgs(Object(s.d)("s0",t,e,n),Object(s.d)("s1",t,e,n))];default:throw TypeError(`Node type ${t.op} is not implemented`)}};e.a=i;const o="transformation"},function(t,e,n){"use strict";class a{constructor(t={},e={},n={},a={},s){this.weightMap=t,this.tensorArrayMap=e,this.tensorListMap=n,this.functionMap=a,this.parseNodeNameCache=s,this.rootContext={id:0,frameName:"",iterationId:0},this.contexts=[this.rootContext],this.lastId=0,this.generateCurrentContextIds()}newFrame(id,t){return{id:id,frameName:t,iterationId:0}}set currentContext(t){this.contexts!==t&&(this.contexts=t,this.generateCurrentContextIds())}get currentContext(){return this.contexts}get currentContextId(){return this._currentContextIds[0]}get currentContextIds(){return this._currentContextIds}generateCurrentContextIds(){const names=[];for(let t=0;t<this.contexts.length-1;t++){const e=this.contexts.slice(0,this.contexts.length-t);names.push(this.contextIdforContexts(e))}names.push(""),this._currentContextIds=names}contextIdforContexts(t){return t?t.map((t=>0===t.id&&0===t.iterationId?"":`${t.frameName}-${t.iterationId}`)).join("/"):""}enterFrame(t){this.contexts&&(this.lastId++,this.contexts=this.contexts.slice(),this.contexts.push(this.newFrame(this.lastId,t)),this._currentContextIds.unshift(this.contextIdforContexts(this.contexts)))}exitFrame(){if(!(this.contexts&&this.contexts.length>1))throw new 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 new Error("Cannot increase frame iteration, the context is empty");{this.contexts=this.contexts.slice(),this.lastId++;const t=Object.assign({},this.contexts[this.contexts.length-1]);t.iterationId+=1,t.id=this.lastId,this.contexts.splice(-1,1,t),this._currentContextIds.splice(0,1,this.contextIdforContexts(this.contexts))}}getWeight(t){return this.weightMap[t]}addTensorArray(t){this.tensorArrayMap[t.id]=t}getTensorArray(id){return this.tensorArrayMap[id]}addTensorList(t){this.tensorListMap[t.id]=t}getTensorList(id){return this.tensorListMap[id]}dispose(t){for(const e in this.tensorArrayMap)this.tensorArrayMap[e].clearAndClose(t);for(const e in this.tensorListMap)this.tensorListMap[e].clearAndClose(t)}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const s=new Set,i=[];let o=null,c=null;const f=new Set,b=new Set(Object.keys(t).map((t=>Object(p.g)(t)[0])));a=a||[];const m=new Set(a.map((t=>Object(p.g)(t.name)[0]))),g=[...e];for(;g.length>0;){const t=g.pop();(u(t)||l(t)||h(t))&&null==o&&(o=t,c=o.children.map((t=>t.name)).filter((t=>s.has(t)))),s.add(t.name),null==n[t.name]&&(b.has(t.name)||m.has(t.name)||(0!==t.inputs.length?t.inputs.forEach((input=>{f.has(input.name)||(f.add(input.name),g.push(input))})):i.push(t.name)))}return{inputs:t,outputs:e,usedNodes:s,missingInputs:i,dynamicNode:o,syncInputs:c}}function s(t,e){function n(t){return[...new Map(t.map((t=>[t.name,t]))).values()]}const{usedNodes:a,inputs:s}=e,c=Object.keys(s).map((t=>Object(p.g)(t)[0])).map((e=>t.nodes[e])),u=t.initNodes||[],l=t=>a.has("string"==typeof t?t:t.name),h=n([...c,...t.weights,...u]).filter(l),f=n([...h,...Object.values(t.nodes)]).filter(l),b=new Map(f.map((t=>[t.name,t]))),m={};for(const t of f){m[t.name]=m[t.name]||0;for(const e of t.children)l(e)||(m[e.name]=Number.POSITIVE_INFINITY),m[e.name]=(m[e.name]||0)+1}const g=Object.entries(m).filter((([,t])=>0===t)).map((([t])=>t)),v=[...g];for(;g.length>0;){const t=g.pop(),e=b.get(t);for(const t of e.children.filter(l))0==--m[t.name]&&(v.push(t.name),g.push(t.name))}const w=undefined,y=i(v.map((t=>b.get(t))),h);return o(y,h),y}function i(t,e){const n=new Map(t.map((t=>[t.name,t]))),a=e.map((t=>t.name)),s=new Set(a);for(;a.length>0;){const t=a.pop(),e=n.get(t);for(const t of e.children)n.has(t.name)&&!s.has(t.name)&&(s.add(t.name),a.push(t.name))}const i=undefined;return t.filter((t=>s.has(t.name)))}function o(t,e){const n=new Map(t.map(((t,e)=>[t.name,e]))),a=new Set(e.map((t=>t.name))),s=t=>a.has("string"==typeof t?t:t.name),i=new Set(t.map((t=>t.name))),o=t=>i.has("string"==typeof t?t:t.name);for(const e of t){for(const t of e.children.filter(o)){if(!n.has(t.name))throw new f(`Child ${t.name} of node ${e.name} is unreachable.`);if(n.get(e.name)>n.get(t.name))throw new f(`Node ${e.name} is scheduled to run after its child ${t.name}.`)}if(!s(e))for(const input of e.inputs){if(!n.has(input.name))throw new f(`Input ${input.name} of node ${e.name} is unreachable.`);if(n.get(input.name)>n.get(e.name))throw new f(`Node ${e.name} is scheduled to run before its input ${input.name}.`)}}}function c(t){const e=new Map(t.map(((t,e)=>[t.name,e]))),n=Number.MAX_SAFE_INTEGER,a=t.map(((t,e)=>u(t)?n:e)),s=t=>{const n=a[e.get(t.name)];return null==n?-1:n},i=t.map(((t,e)=>t.children.map(s).reduce(((t,e)=>Math.max(t,e)),a[e]))),o=new Map;for(let e=0;e<t.length;++e){const a=i[e];if(a===n)continue;const s=t[e],c=t[a];o.has(c.name)||o.set(c.name,[]),o.get(c.name).push(s)}return o}function u(t){return b.has(t.op)}function l(t){return m.has(t.op)}function h(t){return g.has(t.op)}e.a=a,e.c=s,e.b=c,e.d=u;var p=n(27);class f extends Error{constructor(t){super(`NodesExecutionOrderError: ${t}`)}}const b=new Set(["Switch","Merge","Enter","Exit","NextIteration","StatelessIf","StatelessWhile","if","While"]),m=new Set(["NonMaxSuppressionV2","NonMaxSuppressionV3","NonMaxSuppressionV5","Where"]),g=new Set(["HashTable","HashTableV2","LookupTableImport","LookupTableImportV2","LookupTableFind","LookupTableFindV2","LookupTableSize","LookupTableSizeV2"])},function(t,e,n){"use strict";class a{constructor(t={},e={}){this.hashTableNameToHandle=t,this.hashTableMap=e}addHashTable(t,e){this.hashTableNameToHandle[t]=e.handle,this.hashTableMap[e.id]=e}getHashTableHandleByName(t){return this.hashTableNameToHandle[t]}getHashTableById(id){return this.hashTableMap[id]}dispose(){for(const t in this.hashTableMap)this.hashTableMap[t].clearAndClose(),delete this.hashTableMap[t];for(const t in this.hashTableNameToHandle)this.hashTableNameToHandle[t].dispose(),delete this.hashTableNameToHandle[t]}}e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));
/** @license See the LICENSE file. */
const a="4.15.0"},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
function a(container){return Object(o.b)(container,s)}function s(t){return t instanceof i._133?{value:t.clone(),recurse:false}:Object(o.e)(t)?{value:null,recurse:true}:{value:t,recurse:false}}e.a=a;var i=n(0),o=n(215)},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n(305);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/class s extends a.a{constructor(){super(s.INITIAL_CAPACITY)}isFull(){return false}push(t){super.isFull()&&this.expand(),super.push(t)}unshift(t){super.isFull()&&this.expand(),super.unshift(t)}expand(){const t=2*this.capacity,e=new Array(t),n=this.length();for(let t=0;t<n;t++)e[t]=this.get(this.wrap(this.begin+t));this.data=e,this.capacity=t,this.doubledCapacity=2*this.capacity,this.begin=0,this.end=n}}s.INITIAL_CAPACITY=32},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
function a(t,e={}){return new l.a(new b.a(t),e)}function s(t){const e=Object(h.e)(t);return Object(u.c)((async()=>e))}function i(t){return Object(u.c)((async()=>{const e=await t();return Object(h.e)((()=>e.next()))}))}async function o(t,e){return f.a.create(t,e)}async function c(t){return p.a.create(t)}e.a=a,e.b=s,e.c=i,e.e=o,e.d=c;var u=n(163),l=n(306),h=n(101),p=n(912),f=n(913),b=n(308)},function(t,e,n){"use strict";var a=n(0),s=n(101);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
class i extends s.a{constructor(t){super(),this.microphoneConfig=t,this.isClosed=false,this.fftSize=t.fftSize||1024;const e=Math.log2(this.fftSize);if(this.fftSize<0||e<4||e>14||!Number.isInteger(e))throw new 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=t.numFramesPerSpectrogram||43,this.sampleRateHz=t.sampleRateHz,this.columnTruncateLength=t.columnTruncateLength||this.fftSize,this.audioTrackConstraints=t.audioTrackConstraints,this.smoothingTimeConstant=t.smoothingTimeConstant||0,this.includeSpectrogram=false!==t.includeSpectrogram,this.includeWaveform=true===t.includeWaveform,!this.includeSpectrogram&&!this.includeWaveform)throw new Error("Both includeSpectrogram and includeWaveform are false. At least one type of data should be returned.")}summary(){return"microphone"}static async create(t={}){if(!Object(a._222)().get("IS_BROWSER"))throw new Error("microphone API is only supported in browser environment.");const e=new i(t);return await e.start(),e}async start(){try{this.stream=await navigator.mediaDevices.getUserMedia({audio:null==this.audioTrackConstraints||this.audioTrackConstraints,video:false})}catch(t){throw new Error(`Error thrown while initializing video stream: ${t.message}`)}if(!this.stream)throw new Error("Could not obtain audio from microphone.");const t=window.AudioContext||window.webkitAudioContext;if(this.audioContext=new t,this.sampleRateHz){if(this.audioContext.sampleRate!==this.sampleRateHz)throw new Error(`Mismatch in sampling rate: Expected: ${this.sampleRateHz}; Actual: ${this.audioContext.sampleRate}`)}else this.sampleRateHz=this.audioContext.sampleRate;const e=this.audioContext.createMediaStreamSource(this.stream);this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=2*this.fftSize,this.analyser.smoothingTimeConstant=this.smoothingTimeConstant,e.connect(this.analyser),this.freqData=new Float32Array(this.fftSize),this.timeData=new Float32Array(this.fftSize)}async next(){if(this.isClosed)return{value:null,done:true};let t,e;const n=await this.getAudioData();if(this.includeSpectrogram){const e=this.flattenQueue(n.freqDataQueue);t=this.getTensorFromAudioDataArray(e,[this.numFrames,this.columnTruncateLength,1])}if(this.includeWaveform){const t=this.flattenQueue(n.timeDataQueue);e=this.getTensorFromAudioDataArray(t,[this.numFrames*this.fftSize,1])}return{value:{spectrogram:t,waveform:e},done:false}}async capture(){return(await this.next()).value}async getAudioData(){const t=[],e=[];let n=0;return new Promise((a=>{const s=setInterval((()=>{this.includeSpectrogram&&(this.analyser.getFloatFrequencyData(this.freqData),this.freqData[0]===-1/0&&a({freqDataQueue:t,timeDataQueue:e}),t.push(this.freqData.slice(0,this.columnTruncateLength))),this.includeWaveform&&(this.analyser.getFloatTimeDomainData(this.timeData),e.push(this.timeData.slice())),++n===this.numFrames&&(clearInterval(s),a({freqDataQueue:t,timeDataQueue:e}))}),this.fftSize/this.sampleRateHz*1e3)}))}stop(){this.isClosed||(this.isClosed=true,this.analyser.disconnect(),this.audioContext.close(),null!=this.stream&&this.stream.getTracks().length>0&&this.stream.getTracks()[0].stop())}toArray(){throw new Error("Can not convert infinite audio stream to array.")}getSampleRate(){return this.sampleRateHz}flattenQueue(t){const frameSize=t[0].length,e=new Float32Array(t.length*frameSize);return t.forEach(((data,t)=>e.set(data,t*frameSize))),e}getTensorFromAudioDataArray(t,shape){const e=new Float32Array(a._408.sizeFromShape(shape));return e.set(t,e.length-t.length),Object(a._384)(e,shape)}}e.a=i},function(t,e,n){"use strict";var a=n(0),s=n(101);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
class i extends s.a{constructor(t,e){if(super(),this.webcamVideoElement=t,this.webcamConfig=e,this.isClosed=true,this.resize=false,this.needToResize())if(this.resize=true,this.cropSize=[this.webcamConfig.resizeHeight,this.webcamConfig.resizeWidth],this.cropBoxInd=Object(a._385)([0],"int32"),this.webcamConfig.centerCrop){const t=1*this.webcamConfig.resizeWidth/this.webcamVideoElement.width,e=1*this.webcamConfig.resizeHeight/this.webcamVideoElement.height,n=(1-t)/2,s=(1-e)/2,i=n+t,o=e+s;this.cropBox=Object(a._386)([s,n,o,i],[1,4])}else this.cropBox=Object(a._386)([0,0,1,1],[1,4])}summary(){return"webcam"}static async create(t,e={}){if(!Object(a._222)().get("IS_BROWSER"))throw new Error("tf.data.webcam is only supported in browser environment.");if(!t){if(t=document.createElement("video"),!e.resizeWidth||!e.resizeHeight)throw new Error("Please provide webcam video element, or resizeWidth and resizeHeight to create a hidden video element.");t.width=e.resizeWidth,t.height=e.resizeHeight}const n=new i(t,e);return await n.start(),n}async start(){this.webcamConfig.facingMode&&a._408.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(t){throw t.message=`Error thrown while initializing video stream: ${t.message}`,t}if(!this.stream)throw new Error("Could not obtain video from webcam.");try{this.webcamVideoElement.srcObject=this.stream}catch(t){console.log(t),this.webcamVideoElement.src=window.URL.createObjectURL(this.stream)}return this.webcamVideoElement.play(),this.isClosed=false,new Promise((t=>{this.webcamVideoElement.onloadedmetadata=()=>{t()}}))}async next(){if(this.isClosed)return{value:null,done:true};let t;try{t=a._177.fromPixels(this.webcamVideoElement)}catch(t){throw new Error(`Error thrown converting video to pixels: ${JSON.stringify(t)}`)}if(!this.resize)return{value:t,done:false};try{return{value:this.cropAndResizeFrame(t),done:false}}catch(t){throw new Error(`Error thrown cropping the video: ${t.message}`)}finally{t.dispose()}}needToResize(){return!(!this.webcamConfig.resizeWidth||!this.webcamConfig.resizeHeight||this.webcamVideoElement.width===this.webcamConfig.resizeWidth&&this.webcamVideoElement.height===this.webcamConfig.resizeHeight)}cropAndResizeFrame(t){return Object(a._394)((()=>{const e=Object(a._227)(Object(a._179)(t,"float32"),0);let n;n=a._250.cropAndResize(e,this.cropBox,this.cropBoxInd,this.cropSize,"bilinear");const shape=n.shape;return Object(a._334)(n,shape.slice(1))}))}async capture(){return(await this.next()).value}stop(){const t=undefined;this.stream.getTracks().forEach((t=>t.stop()));try{this.webcamVideoElement.srcObject=null}catch(t){console.log(t),this.webcamVideoElement.src=null}this.isClosed=true}toArray(){throw new Error("Can not convert infinite video stream to array.")}}e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
async function a(url,t={},fetchFunc){let e,n;"string"==typeof url?e=url:(e=url.url,n=o(url));const a=await(fetchFunc||s._408.fetch)(e,n);if(a.ok){const e=new Uint8Array(await a.arrayBuffer());return new i.a(e,t)}throw new Error(a.statusText)}e.a=a;var s=n(0),i=n(310);const o=t=>{const init=undefined;return{method:t.method,headers:t.headers,body:t.body,mode:t.mode,credentials:t.credentials,cache:t.cache,redirect:t.redirect,referrer:t.referrer,integrity:t.integrity}}},function(t,e,n){"use strict";(function(t){var a=n(0),s=n(101),i=n(916);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/
class o extends s.a{decodeUTF8(){return new c(this)}}e.a=o;class c extends i.a{constructor(t){super(),this.upstream=t,this.impl=new u(t)}summary(){return this.impl.summary()}async next(){return this.impl.next()}}class u extends s.b{constructor(t){if(super(),this.upstream=t,Object(a._222)().get("IS_BROWSER"))this.decoder=new TextDecoder("utf-8");else{const{StringDecoder:t}=n(917);this.decoder=new t("utf8")}}summary(){return`${this.upstream.summary()} -> Utf8`}async pump(){const e=await this.upstream.next();let n,text;return!e.done&&(n=e.value,text=Object(a._222)().get("IS_BROWSER")?this.decoder.decode(n,{stream:true}):this.decoder.write(t.from(n.buffer)),this.outputQueue.push(text),true)}}}).call(e,n(173).Buffer)},function(t,e,n){"use strict";var a=n(101);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* =============================================================================
*/class s extends a.a{split(t){return new i(this,t)}}e.a=s;class i extends s{constructor(t,e){super(),this.upstream=t,this.impl=new o(t,e)}summary(){return this.impl.summary()}async next(){return this.impl.next()}}class o extends a.b{constructor(t,e){super(),this.upstream=t,this.separator=e,this.carryover=""}summary(){return`${this.upstream.summary()} -> Split('${this.separator}')`}async pump(){const t=await this.upstream.next();if(t.done)return""!==this.carryover&&(this.outputQueue.push(this.carryover),this.carryover="",true);const e=t.value.split(this.separator);e[0]=this.carryover+e[0];for(const line of e.slice(0,-1))this.outputQueue.push(line);return this.carryover=e[e.length-1],true}}},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));
/** @license See the LICENSE file. */
const a="4.15.0"},function(t,e,n){"use strict";var a=n(0),s=n(314),i=n(315);n.d(e,"a",(function(){return s.a}));var o=n(921);n.d(e,"c",(function(){return o.a})),n.d(e,"b",(function(){return i})),
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
Object(a._328)("cpu",(()=>new s.a),1)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));
/** @license See the LICENSE file. */
const a="4.15.0"},function(t,e,n){"use strict";var a=n(0),s=n(923),i=n(316),o=n(924),c=n(925),u=n(102),l=n(926),h=n(927),p=n(928),f=n(929),b=n(930),m=n(931),g=n(932),v=n(933),w=n(934),y=n(935),O=n(936),x=n(937),A=n(938),I=n(939),j=n(360),C=n(940),_=n(941),k=n(942),S=n(318),T=n(943),L=n(103),B=n(319),N=n(944),E=n(75),M=n(945),F=n(223),W=n(361),z=n(946),P=n(947),G=n(948),V=n(949),H=n(950),Z=n(951),X=n(952),U=n(953),$=n(954),Y=n(955),J=n(956),K=n(957),tt=n(362),nt=n(958),rt=n(959),at=n(960),st=n(961),ot=n(962),ct=n(963),ut=n(964),lt=n(965),dt=n(355),ht=n(966),pt=n(217),ft=n(967),bt=n(218),mt=n(224),gt=n(321),vt=n(968),wt=n(225),yt=n(969),Ot=n(322),xt=n(323),At=n(970),jt=n(971),Ct=n(972),_t=n(973),kt=n(326),St=n(327),Tt=n(65),Lt=n(974),Bt=n(127),Nt=n(975),Mt=n(976),Dt=n(977),Ft=n(356),Rt=n(328),Wt=n(329),zt=n(978),Pt=n(331),Gt=n(979),Vt=n(980),Ht=n(981),Zt=n(982),Xt=n(983),Ut=n(984),$t=n(364),Yt=n(333),Jt=n(985),qt=n(986),Kt=n(987),Qt=n(988),te=n(989),ee=n(991),ne=n(992),re=n(334),ae=n(993),se=n(994),ie=n(995),oe=n(105),ce=n(335),ue=n(996),le=n(997),pe=n(998),fe=n(336),be=n(999),ge=n(1e3),ve=n(367),we=n(368),ye=n(1001),Oe=n(357),xe=n(337),Ae=n(1002),Ie=n(1003),je=n(1004),Ce=n(1005),_e=n(104),ke=n(166),Se=n(1006),Te=n(358),Le=n(359),Be=n(40),Ne=n(1007),Ee=n(1008),Fe=n(1009),Re=n(1010),We=n(1011),ze=n(1012),Pe=n(1013),Ge=n(342),Ve=n(1014),Ze=n(1015),Xe=n(1017),Ue=n(1018),$e=n(220),Ye=n(1019),Je=n(1020),qe=n(1021),Ke=n(87),Qe=n(365),tn=n(1022),en=n(1023),nn=n(1024),rn=n(1025),an=n(1026),sn=n(1027),on=n(1028),cn=n(1029),un=n(345),ln=n(1030),dn=n(346),hn=n(347),pn=n(1031),fn=n(1032),bn=n(1033),mn=n(1034),gn=n(1035),vn=n(165),wn=n(128),yn=n(1036),On=n(1037),xn=n(1038),An=n(1039),In=n(1040),jn=n(1041),Cn=n(45),_n=n(1042),kn=n(1043),Sn=n(1044),Tn=n(366);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const Ln=[s.a,i.a,o.a,c.a,u.b,l.a,h.a,p.a,f.a,b.a,m.a,g.a,v.a,w.a,y.a,O.a,x.a,A.a,I.a,j.b,C.a,_.a,k.a,S.a,T.a,L.b,B.a,N.a,E.b,M.a,F.b,W.b,z.a,P.a,G.a,V.a,H.a,Z.a,X.a,U.a,$.a,Y.a,J.a,K.a,tt.b,nt.a,rt.a,at.a,st.a,ot.a,ct.a,ut.a,lt.a,dt.b,ht.a,pt.b,ft.a,bt.b,mt.b,gt.a,vt.a,wt.b,yt.a,Ot.a,xt.a,At.a,jt.a,Ct.a,_t.a,kt.a,St.a,Tt.b,Lt.a,Bt.b,Nt.a,Mt.a,Dt.a,Ft.b,Rt.a,Wt.a,zt.a,Pt.a,Gt.a,Vt.a,Ht.a,Zt.a,Xt.a,Ut.a,$t.b,Yt.a,Jt.a,qt.a,Kt.a,Qt.a,te.a,ee.a,ne.a,re.a,ae.a,se.a,ie.a,oe.b,ce.a,ue.a,le.a,pe.a,fe.a,be.a,ge.a,ve.b,we.a,ye.a,Oe.b,xe.a,Ae.a,Ie.a,je.a,Ce.a,_e.b,ke.b,Se.a,Te.b,Le.b,Be.b,Ne.a,Ee.a,Fe.a,Re.a,We.a,ze.a,Pe.a,Ge.a,Ve.a,Ze.a,Xe.a,Ue.a,$e.b,Ye.a,Je.a,qe.a,Ke.b,Qe.b,tn.a,en.a,nn.a,rn.a,an.a,sn.a,on.a,cn.a,un.a,ln.a,dn.a,hn.a,pn.a,fn.a,bn.a,mn.a,gn.a,vn.b,wn.b,yn.a,On.a,xn.a,An.a,In.a,jn.a,Cn.b,_n.a,kn.a,Sn.a,Tn.b];for(const t of Ln)Object(a._330)(t)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{a:s,b:u,bias:l,preluActivationWeights:h}=e,{transposeA:p,transposeB:f,activation:b,leakyreluAlpha:m}=a;let g,v,w;const y=[],O=undefined;g=Object(c.a)({inputs:{a:s,b:u},attrs:{transposeA:p,transposeB:f},backend:n}),l&&(v=Object(o.a)({inputs:{a:g,b:l},backend:n}),y.push(g),g=v),b&&(w=Object(i.a)(n,g,b,h,m),y.push(g),g=w);for(const t of y)n.disposeIntermediateTensorInfo(t);return g}var s=n(0),i=n(222),o=n(102),c=n(360);const u={kernelName:s._146,backendName:"cpu",kernelFunc:a};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.b,(t=>Math.acos(t))),o={kernelName:a.b,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.c,(t=>Math.acosh(t))),o={kernelName:a.c,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,a=e;Object(i.a)(e,"addN");const o=a.map((t=>n.data.get(t.dataId).values)),c=Object(s._178)(a[0].shape,a[0].dtype),u=c.values;for(let t=0;t<a.length;t++){const e=o[t];for(let t=0;t<u.length;t++)u[t]+=e[t]}return n.makeTensorInfo(c.shape,c.dtype,c.values)}var s=n(0),i=n(8);const o={kernelName:s.i,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function all(t){const{inputs:e,backend:n,attrs:c}=t,{x:u}=e,{axis:l,keepDims:h}=c;Object(s.a)(u,"all");const p=a._408.parseAxisParam(l,u.shape);let f=p;const b=a._164.getAxesPermutation(f,u.shape.length);let m=u;null!=b&&(m=Object(o.a)({inputs:{x:u},backend:n,attrs:{perm:b}}),f=a._164.getInnerMostAxes(f.length,u.shape.length)),a._164.assertAxesAreInnerMostDims("all",f,m.shape.length);const[g,v]=a._164.computeOutAndReduceShapes(m.shape,f),w=a._408.sizeFromShape(v),y=a._408.makeZerosTypedArray(a._408.sizeFromShape(g),m.dtype),O=n.data.get(m.dataId).values;for(let t=0;t<y.length;++t){const e=t*w;let all=O[e];for(let t=0;t<w;++t){const n=O[e+t];all=all&&n}y[t]=all}null!=b&&n.disposeIntermediateTensorInfo(m);const x=n.makeTensorInfo(g,m.dtype,y);if(h){const t=a._164.expandShapeToKeepDim(g,p),e=Object(i.a)({inputs:{x:x},backend:n,attrs:{shape:t}});return n.disposeIntermediateTensorInfo(x),e}return x}var a=n(0),s=n(8),i=n(40),o=n(45);const c={kernelName:a.j,backendName:"cpu",kernelFunc:all};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e,{axis:l,keepDims:h}=a;Object(i.a)(u,"any");const p=s._408.parseAxisParam(l,u.shape);let f=p;const b=s._164.getAxesPermutation(f,u.shape.length);let m=u;null!=b&&(m=Object(c.a)({inputs:{x:u},backend:n,attrs:{perm:b}}),f=s._164.getInnerMostAxes(f.length,u.shape.length)),s._164.assertAxesAreInnerMostDims("any",f,m.shape.length);const[g,v]=s._164.computeOutAndReduceShapes(m.shape,f),w=s._408.sizeFromShape(v),y=s._408.makeZerosTypedArray(s._408.sizeFromShape(g),m.dtype),O=n.data.get(m.dataId).values;for(let t=0;t<y.length;++t){const e=t*w;let n=O[e];for(let t=0;t<w;++t){const a=O[e+t];n=n||a}y[t]=n}null!=b&&n.disposeIntermediateTensorInfo(m);const x=n.makeTensorInfo(g,m.dtype,y);if(h){const t=s._164.expandShapeToKeepDim(g,p),e=Object(o.a)({inputs:{x:x},backend:n,attrs:{shape:t}});return n.disposeIntermediateTensorInfo(x),e}return x}var s=n(0),i=n(8),o=n(40),c=n(45);const u={kernelName:s.k,backendName:"cpu",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{axis:u}=a;Object(i.a)(c,"argMax");let l=s._408.parseAxisParam(u,c.shape);const h=s._164.getAxesPermutation(l,c.shape.length);let p=c;const f=[];null!=h&&(p=Object(o.a)({inputs:{x:c},backend:n,attrs:{perm:h}}),f.push(p),l=s._164.getInnerMostAxes(l.length,p.shape.length)),l=[l[0]],s._164.assertAxesAreInnerMostDims("argMax",l,p.shape.length);const[b,m]=s._164.computeOutAndReduceShapes(p.shape,l),g=s._408.sizeFromShape(b),v=s._408.makeZerosTypedArray(g,"int32"),w=s._408.sizeFromShape(m),y=n.data.get(p.dataId).values;for(let t=0;t<v.length;++t){const e=t*w;let n=y[e],a=0;for(let t=0;t<w;++t){const s=y[e+t];s>n&&(n=s,a=t)}v[t]=a}return f.forEach((t=>n.disposeIntermediateTensorInfo(t))),n.makeTensorInfo(b,"int32",v)}var s=n(0),i=n(8),o=n(45);const c={kernelName:s.l,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{axis:u}=a;Object(i.a)(c,"argMin");let l=s._408.parseAxisParam(u,c.shape);const h=s._164.getAxesPermutation(l,c.shape.length);let p=c;const f=[];null!=h&&(p=Object(o.a)({inputs:{x:c},backend:n,attrs:{perm:h}}),f.push(p),l=s._164.getInnerMostAxes(l.length,p.shape.length)),l=[l[0]],s._164.assertAxesAreInnerMostDims("argMin",l,p.shape.length);const[b,m]=s._164.computeOutAndReduceShapes(p.shape,l),g=s._408.sizeFromShape(b),v=s._408.makeZerosTypedArray(g,"int32"),w=s._408.sizeFromShape(m),y=n.data.get(p.dataId).values;for(let t=0;t<v.length;++t){const e=t*w;let n=y[e],a=0;for(let t=0;t<w;++t){const s=y[e+t];s<n&&(n=s,a=t)}v[t]=a}return f.forEach((t=>n.disposeIntermediateTensorInfo(t))),n.makeTensorInfo(b,"int32",v)}var s=n(0),i=n(8),o=n(45);const c={kernelName:s.m,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.n,(t=>Math.asin(t))),o={kernelName:a.n,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.o,(t=>Math.asinh(t))),o={kernelName:a.o,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.p,(t=>Math.atan(t))),o={kernelName:a.p,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>Math.atan2(t,e))),c=Object(i.a)(a.q,o),u={kernelName:a.q,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.r,(t=>Math.atanh(t))),o={kernelName:a.r,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e;Object(i.a)(u,"avgPool");const{filterSize:l,strides:h,pad:p,dimRoundingMode:f}=a,b=1;s._408.assert(s._164.eitherStridesOrDilationsAreOne(h,1),(()=>`Error in avgPool: Either strides or dilations must be 1. Got strides ${h} and dilations '1'`));const m=s._164.computePool2DInfo(u.shape,l,h,1,p,f);let g;if(1===m.filterWidth&&1===m.filterHeight&&s._408.arraysEqual(m.inShape,m.outShape))g=Object(c.a)({inputs:{x:u},backend:n});else{const t=n.data.get(u.dataId).values,e=s._408.computeStrides(u.shape),a=Object(o.c)(t,u.shape,u.dtype,e,m,"avg");g=n.makeTensorInfo(m.outShape,u.dtype,a.values)}return g}var s=n(0),i=n(8),o=n(88),c=n(65);const u={kernelName:s.s,backendName:"cpu",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{filterSize:u,strides:l,pad:h,dimRoundingMode:p,dataFormat:f}=a;Object(i.a)(c,"avgPool3d");const b=s._164.computePool3DInfo(c.shape,u,l,1,h,p,f),m=n.data.get(c.dataId).values,g=Object(o.d)(m,c.shape,c.dtype,s._408.computeStrides(c.shape),b,"avg");return n.makeTensorInfo(g.shape,"float32",g.values)}var s=n(0),i=n(8),o=n(88);const c={kernelName:s.t,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:o,input:input}=e,{filterSize:c,strides:u,pad:l,dimRoundingMode:h}=a;Object(i.a)([o,input],"avgPool3DGrad");const p=s._164.computePool3DInfo(input.shape,c,u,1,l,h),f=p.strideDepth,b=p.strideHeight,m=p.strideWidth,g=p.filterDepth,v=p.filterHeight,w=p.filterWidth,y=p.dilationDepth,O=p.dilationHeight,x=p.dilationWidth,A=p.effectiveFilterDepth,I=p.effectiveFilterHeight,j=p.effectiveFilterWidth,C=A-1-p.padInfo.front,_=j-1-p.padInfo.left,k=I-1-p.padInfo.top,S=Object(s._178)(input.shape,"float32"),T=1/(g*v*w),L=n.bufferSync(o);for(let t=0;t<p.batchSize;++t)for(let e=0;e<p.inChannels;++e)for(let n=0;n<p.inDepth;++n)for(let a=0;a<p.inHeight;++a)for(let s=0;s<p.inWidth;++s){const i=n-C,o=a-k,c=s-_;let u=0;for(let n=0;n<A;n+=y){const a=(i+n)/f;if(!(a<0||a>=p.outDepth||Math.floor(a)!==a))for(let n=0;n<I;n+=O){const s=(o+n)/b;if(!(s<0||s>=p.outHeight||Math.floor(s)!==s))for(let n=0;n<j;n+=x){const i=(c+n)/m;if(i<0||i>=p.outWidth||Math.floor(i)!==i)continue;const o=undefined;u+=L.get(t,a,s,i,e)}}}S.set(u*T,t,n,a,s,e)}return n.makeTensorInfo(S.shape,S.dtype,S.values)}var s=n(0),i=n(8);const o={kernelName:s.u,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:o,input:input}=e,c=input;Object(i.a)([o,input],"avgPoolGrad");const{filterSize:u,strides:l,pad:h}=a,p=s._164.computePool2DInfo(c.shape,u,l,1,h),f=p.strideHeight,b=p.strideWidth,m=p.filterHeight,g=p.filterWidth,v=p.dilationHeight,w=p.dilationWidth,y=p.effectiveFilterHeight,O=p.effectiveFilterWidth,x=O-1-p.padInfo.left,A=y-1-p.padInfo.top,I=Object(s._178)(c.shape,"float32"),j=1/(m*g),C=n.data.get(o.dataId).values,_=Object(s._178)(o.shape,"float32",C);for(let t=0;t<p.batchSize;++t)for(let d=0;d<p.inChannels;++d)for(let e=0;e<p.inHeight;++e)for(let n=0;n<p.inWidth;++n){const a=e-A,s=n-x;let i=0;for(let e=0;e<y;e+=v){const n=(a+e)/f;if(!(n<0||n>=p.outHeight||Math.floor(n)!==n))for(let e=0;e<O;e+=w){const a=(s+e)/b;if(a<0||a>=p.outWidth||Math.floor(a)!==a)continue;const o=undefined;i+=_.get(t,n,a,d)}}I.set(i*j,t,e,n,d)}return n.makeTensorInfo(I.shape,I.dtype,I.values)}var s=n(0),i=n(8);const o={kernelName:s.v,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,scale:c,offset:u,mean:l,variance:h}=e;s._408.assert(l.shape.length===h.shape.length,(()=>"Batch normalization gradient requires mean and variance to have equal ranks.")),s._408.assert(null==u||l.shape.length===u.shape.length,(()=>"Batch normalization gradient requires mean and offset to have equal ranks.")),s._408.assert(null==c||l.shape.length===c.shape.length,(()=>"Batch normalization gradient requires mean and scale to have equal ranks.")),Object(i.a)([o,l,h,c,u],"batchNorm");let{varianceEpsilon:p}=a;null==p&&(p=.001);const f=n.data.get(o.dataId).values,b=n.data.get(l.dataId).values,m=n.data.get(h.dataId).values,g=c?n.data.get(c.dataId).values:new Float32Array([1]),v=u?n.data.get(u.dataId).values:new Float32Array([0]),w=new Float32Array(f.length),y=v.length,O=g.length,x=m.length,A=b.length;let I=0,j=0,C=0,vi=0;for(let t=0;t<f.length;++t)w[t]=v[I++]+(f[t]-b[j++])*g[C++]/Math.sqrt(m[vi++]+p),I>=y&&(I=0),j>=A&&(j=0),C>=O&&(C=0),vi>=x&&(vi=0);return n.makeTensorInfo(o.shape,o.dtype,w)}var s=n(0),i=n(8);const o={kernelName:s._20,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:l}=e,{blockShape:blockShape,crops:h}=a;Object(i.a)([l],"batchToSpaceND");const p=blockShape.reduce(((t,e)=>t*e)),f=s._164.getReshaped(l.shape,blockShape,p),b=s._164.getPermuted(f.length,blockShape.length),m=s._164.getReshapedPermuted(l.shape,blockShape,p),g=s._164.getSliceBeginCoords(h,blockShape.length),v=s._164.getSliceSize(m,h,blockShape.length),w=Object(o.a)({inputs:{x:l},backend:n,attrs:{shape:f}}),y=Object(u.a)({inputs:{x:w},backend:n,attrs:{perm:b}}),O=Object(o.a)({inputs:{x:y},backend:n,attrs:{shape:m}}),x=Object(c.a)({inputs:{x:O},backend:n,attrs:{begin:g,size:v}});return n.disposeIntermediateTensorInfo(w),n.disposeIntermediateTensorInfo(y),n.disposeIntermediateTensorInfo(O),x}var s=n(0),i=n(8),o=n(40),c=n(87),u=n(45);const l={kernelName:s.x,backendName:"cpu",kernelFunc:a};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s,weights:o}=e,{size:size}=a,c=n.data.get(s.dataId).values,u=n.data.get(o.dataId).values,l=Object(i.a)(c,u,o.dtype,o.shape,size);return n.makeTensorInfo([size],o.dtype,l)}var s=n(0),i=n(216);const o={kernelName:s.y,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{s0:a,s1:i}=e,o=n.data.get(a.dataId).values,c=n.data.get(i.dataId).values,u=s._164.assertAndGetBroadcastShape(Array.from(o),Array.from(c));return n.makeTensorInfo([u.length],"int32",Int32Array.from(u))}var s=n(0);const i={kernelName:s.A,backendName:"cpu",kernelFunc:a};e.a=i},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.E,((t,e)=>{const n=e;return t>n.clipValueMax?n.clipValueMax:t<n.clipValueMin?n.clipValueMin:t})),o={kernelName:a.E,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s=t=>{const{x:e}=t.inputs,n=t.backend,s=new Float32Array(a._408.sizeFromShape(e.shape)),i=n.data.get(e.dataId),o=i.complexTensorInfos.real,c=i.complexTensorInfos.imag,u=n.data.get(o.dataId).values,l=n.data.get(c.dataId).values;for(let t=0;t<u.length;t++){const e=u[t],n=l[t];s[t]=Math.hypot(e,n)}return n.makeOutput(s,e.shape,"float32")},i={kernelName:a.G,backendName:"cpu",kernelFunc:s};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,dy:c}=e,{strides:u,pad:l,dataFormat:h,dimRoundingMode:p,filterShape:f}=a;Object(i.a)([o,c],"conv2dBackpropFilter");const b=s._164.convertConv2DDataFormat(h),m=s._164.computeConv2DInfo(o.shape,f,u,1,l,p,false,b),{strideHeight:g,strideWidth:v,filterHeight:w,filterWidth:y}=m,O="channelsLast"===m.dataFormat,x=new s._134(m.filterShape,"float32"),A=m.padInfo.left,I=m.padInfo.top,j=n.data.get(o.dataId).values,C=n.data.get(c.dataId).values,_=new s._134(o.shape,o.dtype,j),k=new s._134(c.shape,c.dtype,C);for(let t=0;t<w;++t){const e=Math.max(0,Math.ceil((I-t)/g)),n=Math.min(m.outHeight,(m.inHeight+I-t)/g);for(let a=0;a<y;++a){const s=Math.max(0,Math.ceil((A-a)/v)),i=Math.min(m.outWidth,(m.inWidth+A-a)/v);for(let o=0;o<m.inChannels;++o)for(let c=0;c<m.outChannels;++c){let u=0;for(let l=0;l<m.batchSize;++l)for(let h=e;h<n;++h){const e=t+h*g-I;for(let t=s;t<i;++t){const n=a+t*v-A;u+=O?_.get(l,e,n,o)*k.get(l,h,t,c):_.get(l,o,e,n)*k.get(l,c,h,t)}}x.set(u,t,a,o,c)}}}return n.makeTensorInfo(x.shape,x.dtype,x.values)}var s=n(0),i=n(8);const o={kernelName:s.J,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:o,filter:filter}=e,{inputShape:c,strides:u,pad:l,dataFormat:h,dimRoundingMode:p}=a;Object(i.a)([o,filter],"conv2dBackpropInput");const f=s._408.computeStrides(filter.shape),b=s._408.computeStrides(o.shape);let m=s._164.convertConv2DDataFormat(h);const g=s._164.computeConv2DInfo(c,filter.shape,u,1,l,p,false,m),v=new s._134(g.inShape,"float32"),w=v.values,y=n.data.get(o.dataId).values,O=n.data.get(filter.dataId).values,[x,A,I]=f,{batchSize:j,filterHeight:C,filterWidth:_,inChannels:k,inHeight:S,inWidth:T,outChannels:L,outHeight:B,outWidth:N,strideHeight:E,strideWidth:M}=g;m=g.dataFormat;const F=C-1-g.padInfo.top,W=_-1-g.padInfo.left,z="channelsLast"===m,P=v.strides[0],G=z?v.strides[1]:v.strides[2],V=z?v.strides[2]:1,H=z?1:v.strides[1],Z=b[0],X=z?b[1]:b[2],U=z?b[2]:1,$=z?1:b[1];for(let t=0;t<j;++t)for(let e=0;e<k;++e)for(let n=0;n<S;++n){const a=n-F,s=Math.max(0,Math.ceil(a/E)),i=Math.min(B,(C+a)/E);for(let o=0;o<T;++o){const c=o-W,u=Math.max(0,Math.ceil(c/M)),l=Math.min(N,(_+c)/M);let h=0;for(let n=s;n<i;++n){const s=n*E-a;for(let a=u;a<l;++a){const i=undefined,o=Z*t+X*n+U*a,u=x*(C-1-s)+A*(_-1-(a*M-c))+I*e;for(let t=0;t<L;++t){const e=undefined,n=undefined;h+=y[o+$*t]*O[u+t]}}}const p=undefined;w[P*t+G*n+V*o+H*e]=h}}return n.makeTensorInfo(v.shape,v.dtype,v.values)}var s=n(0),i=n(8);const o={kernelName:s.K,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,filter:filter}=e,{strides:c,pad:u,dilations:l}=a;Object(i.a)([o,filter],"conv3d");const h=s._164.computeConv3DInfo(o.shape,filter.shape,c,l,u),{filterDepth:p,filterHeight:f,filterWidth:b,dilationDepth:m,dilationHeight:g,dilationWidth:v,padInfo:w}=h,y=w.front,O=w.left,x=w.top,A=new s._134(h.outShape,o.dtype),I=n.data.get(o.dataId).values,j=n.data.get(filter.dataId).values,C=A.values,_=s._408.computeStrides(o.shape),k=s._408.computeStrides(filter.shape);for(let t=0;t<h.batchSize;++t){const e=t*_[0],n=t*A.strides[0];for(let t=0;t<h.outDepth;++t){const a=n+t*A.strides[1],s=t*h.strideDepth-y;for(let t=0;t<p;++t){const n=s+t*m;if(n<0||n>=h.inDepth)continue;const i=t*k[0],o=e+n*_[1];for(let t=0;t<h.outHeight;++t){const e=a+t*A.strides[2],n=t*h.strideHeight-x;for(let t=0;t<f;++t){const a=n+t*g;if(a<0||a>=h.inHeight)continue;const s=i+t*k[1],c=o+a*_[2];for(let t=0;t<h.outWidth;++t){const n=e+t*h.outChannels,a=t*h.strideWidth-O;for(let t=0;t<b;++t){const e=a+t*v;if(e<0||e>=h.inWidth)continue;const i=s+t*k[2],o=c+e*h.inChannels;let u=i;for(let t=0;t<h.inChannels;++t){const e=I[o+t];for(let t=0;t<h.outChannels;++t)C[n+t]+=e*j[u+t];u+=h.outChannels}}}}}}}}return n.makeTensorInfo(A.shape,A.dtype,A.values)}var s=n(0),i=n(8);const o={kernelName:s.L,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,dy:c}=e,{strides:u,pad:l,filterShape:h}=a;Object(i.a)([o,c],"conv3dBackpropFilterV2");const p=s._408.computeStrides(o.shape),f=s._408.computeStrides(c.shape),b=s._164.computeConv3DInfo(o.shape,h,u,1,l),m=b.strideDepth,g=b.strideHeight,v=b.strideWidth,w=b.filterDepth,y=b.filterHeight,O=b.filterWidth,x=new s._134(b.filterShape,"float32"),A=x.values,[I,j,C,_]=x.strides,k=n.data.get(c.dataId).values,[S,T,L,B]=f,N=n.data.get(o.dataId).values,[E,M,F,W]=p,z=b.padInfo.front,P=b.padInfo.left,G=b.padInfo.top;for(let t=0;t<w;++t){const e=Math.max(0,Math.ceil((z-t)/m)),n=Math.min(b.outDepth,(b.inDepth+z-t)/m),a=t*I;for(let s=0;s<y;++s){const i=Math.max(0,Math.ceil((G-s)/g)),o=Math.min(b.outHeight,(b.inHeight+G-s)/g),c=s*j+a;for(let a=0;a<O;++a){const u=Math.max(0,Math.ceil((P-a)/v)),l=Math.min(b.outWidth,(b.inWidth+P-a)/v),h=a*C+c;for(let c=0;c<b.inChannels;++c){const p=c*_+h;for(let h=0;h<b.outChannels;++h){let f=0;for(let p=0;p<b.batchSize;++p){const b=p*E,w=p*S;for(let p=e;p<n;++p){const e=undefined,n=(t+p*m-z)*M+b,y=p*T+w;for(let t=i;t<o;++t){const e=undefined,i=(s+t*g-G)*F+n,o=t*L+y;for(let t=u;t<l;++t){const e=undefined,n=undefined,s=t*B+o;f+=N[(a+t*v-P)*W+i+c]*k[s+h]}}}}A[p+h]=f}}}}}return n.makeTensorInfo(x.shape,x.dtype,x.values)}var s=n(0),i=n(8);const o={kernelName:s.M,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:o,filter:filter}=e,{pad:c,strides:u,inputShape:l}=a;Object(i.a)([o],"conv3dBackpropInputV2");const h=s._408.computeStrides(o.shape),p=s._408.computeStrides(filter.shape),f=s._164.computeConv3DInfo(l,filter.shape,u,1,c),b=new s._134(f.inShape,"float32"),m=b.values,[g,v,w,y]=b.strides,O=n.data.get(o.dataId).values,[x,A,I,j]=h,C=n.data.get(filter.dataId).values,[_,k,S,T]=p,{batchSize:L,filterDepth:B,filterHeight:N,filterWidth:E,inChannels:M,inDepth:F,inHeight:W,inWidth:z,outChannels:P,outDepth:G,outHeight:V,outWidth:H,strideDepth:Z,strideHeight:X,strideWidth:U}=f,$=B-1-f.padInfo.front,Y=N-1-f.padInfo.top,J=E-1-f.padInfo.left;for(let t=0;t<L;++t)for(let e=0;e<M;++e)for(let n=0;n<F;++n){const a=n-$,s=Math.max(0,Math.ceil(a/Z)),i=Math.min(G,(B+a)/Z);for(let o=0;o<W;++o){const c=o-Y,u=Math.max(0,Math.ceil(c/X)),l=Math.min(V,(N+c)/X);for(let h=0;h<z;++h){const p=h-J,f=Math.max(0,Math.ceil(p/U)),b=Math.min(H,(E+p)/U);let L=0;for(let n=s;n<i;++n){const s=n*Z-a;for(let a=u;a<l;++a){const i=a*X-c;for(let o=f;o<b;++o){const c=undefined,u=x*t+A*n+I*a+j*o,l=_*(B-1-s)+k*(N-1-i)+S*(E-1-(o*U-p))+T*e;for(let t=0;t<P;++t){const e=undefined,n=undefined;L+=O[u+t]*C[l+t]}}}}m[g*t+v*n+w*o+y*h+e]=L}}}return n.makeTensorInfo(b.shape,b.dtype,b.values)}var s=n(0),i=n(8);const o={kernelName:s.N,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.O,(t=>Math.cos(t))),o={kernelName:a.O,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a.P,(t=>Math.cosh(t))),o={kernelName:a.P,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{image:image,boxes:i,boxInd:o}=e,{cropSize:c,method:u,extrapolationValue:l}=a,[h,p,f,b]=image.shape,m=i.shape[0],[g,v]=c,w=Object(s._178)([m,g,v,b],"float32"),y=n.data.get(i.dataId).values,O=n.data.get(o.dataId).values,x=n.data.get(image.dataId).values,A=s._408.computeStrides(image.shape),I=s._408.computeStrides(w.shape);for(let t=0;t<m;t++){const e=4*t,n=y[e],a=y[e+1],s=y[e+2],i=y[e+3],o=O[t];if(o>=h)continue;const c=g>1?(s-n)*(p-1)/(g-1):0,m=v>1?(i-a)*(f-1)/(v-1):0;for(let e=0;e<g;e++){const h=g>1?n*(p-1)+e*c:.5*(n+s)*(p-1);if(h<0||h>p-1)for(let n=0;n<v;n++)for(let a=0;a<b;a++){const s=a+n*I[2]+e*I[1]+t*I[0];w.values[s]=l}else if("bilinear"===u){const n=Math.floor(h),s=Math.ceil(h),c=h-n;for(let u=0;u<v;u++){const h=v>1?a*(f-1)+u*m:.5*(a+i)*(f-1);if(h<0||h>f-1){for(let n=0;n<b;n++){const a=n+u*I[2]+e*I[1]+t*I[0];w.values[a]=l}continue}const p=Math.floor(h),g=Math.ceil(h),y=h-p;for(let a=0;a<b;a++){let i=a+p*A[2]+n*A[1]+o*A[0];const l=x[i];i=a+g*A[2]+n*A[1]+o*A[0];const h=x[i];i=a+p*A[2]+s*A[1]+o*A[0];const f=x[i];i=a+g*A[2]+s*A[1]+o*A[0];const b=undefined,m=l+(h-l)*y,v=f+(x[i]-f)*y;i=a+u*I[2]+e*I[1]+t*I[0],w.values[i]=m+(v-m)*c}}}else for(let n=0;n<v;++n){const s=v>1?a*(f-1)+n*m:.5*(a+i)*(f-1);if(s<0||s>f-1){for(let a=0;a<b;a++){const s=a+n*I[2]+e*I[1]+t*I[0];w.values[s]=l}continue}const c=Math.round(s),u=Math.round(h);for(let a=0;a<b;a++){const s=a+c*A[2]+u*A[1]+o*A[0],i=a+n*I[2]+e*I[1]+t*I[0];w.values[i]=x[s]}}}}return n.makeTensorInfo(w.shape,w.dtype,w.values)}var s=n(0);const i={kernelName:s.Q,backendName:"cpu",kernelFunc:a};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{axis:u,exclusive:l,reverse:h}=a;Object(i.a)(c,"cumprod");const p=s._164.getAxesPermutation([u],c.shape.length);let f=c;null!=p&&(f=Object(o.a)({inputs:{x:c},backend:n,attrs:{perm:p}}));const b=s._164.getInnerMostAxes(1,c.shape.length)[0];if(b!==f.shape.length-1)throw new Error(`backend.cumprod in CPU expects an inner-most axis=${f.shape.length-1} but got axis=${b}`);const m=Object(s._406)(f.dtype,"int32"),g=s._408.makeOnesTypedArray(s._408.sizeFromShape(f.shape),m),v=n.data.get(f.dataId).values,w=f.shape[f.shape.length-1],y=h?(t,e)=>t+w-e-1:(t,e)=>t+e;for(let t=0;t<v.length;t+=w)for(let e=0;e<w;e++){const n=y(t,e);if(0===e)g[n]=l?1:v[n];else{const a=y(t,e-1);g[n]=l?v[a]*g[a]:v[n]*g[a]}}const O=n.makeTensorInfo(f.shape,m,g);if(null!=p){const t=s._164.getUndoAxesPermutation(p),e=Object(o.a)({inputs:{x:O},backend:n,attrs:{perm:t}});return n.disposeIntermediateTensorInfo(O),n.disposeIntermediateTensorInfo(f),e}return O}var s=n(0),i=n(8),o=n(45);const c={kernelName:s.R,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{axis:u,exclusive:l,reverse:h}=a;Object(i.a)(c,"cumsum");const p=s._164.getAxesPermutation([u],c.shape.length);let f=c;null!=p&&(f=Object(o.a)({inputs:{x:c},backend:n,attrs:{perm:p}}));const b=s._164.getInnerMostAxes(1,c.shape.length)[0];if(b!==f.shape.length-1)throw new Error(`backend.cumsum in CPU expects an inner-most axis=${f.shape.length-1} but got axis=${b}`);const m=Object(s._406)(f.dtype,"int32"),g=s._408.makeZerosTypedArray(s._408.sizeFromShape(f.shape),m),v=n.data.get(f.dataId).values,w=f.shape[f.shape.length-1],y=h?(t,e)=>t+w-e-1:(t,e)=>t+e;for(let t=0;t<v.length;t+=w)for(let e=0;e<w;e++){const n=y(t,e);if(0===e)g[n]=l?0:v[n];else{const a=y(t,e-1);g[n]=l?v[a]+g[a]:v[n]+g[a]}}const O=n.makeTensorInfo(f.shape,m,g);if(null!=p){const t=s._164.getUndoAxesPermutation(p),e=Object(o.a)({inputs:{x:O},backend:n,attrs:{perm:t}});return n.disposeIntermediateTensorInfo(O),n.disposeIntermediateTensorInfo(f),e}return O}var s=n(0),i=n(8),o=n(45);const c={kernelName:s.S,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s,weights:o}=e,{size:size,binaryOutput:c}=a;if(1===s.shape.length){const t=n.data.get(s.dataId).values,e=n.data.get(o.dataId).values,a=Object(i.a)(t,e,o.dtype,o.shape,size);return n.makeTensorInfo([size],o.dtype,a)}if(2===s.shape.length){const t=n.bufferSync(s),e=n.bufferSync(o),a=Object(i.b)(t,e,size,c);return n.makeTensorInfo(a.shape,o.dtype,a.values)}throw new Error(`Error in denseBincount: input must be at most rank 2, but got rank${s.shape.length}.`)}var s=n(0),i=n(216);const o={kernelName:s.U,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:i}=e,{blockSize:o,dataFormat:c}=a;s._408.assert("NHWC"===c,(()=>`Only NHWC dataFormat supported on CPU for depthToSpace. Got ${c}`));const u=i.shape[0],l=i.shape[1],h=i.shape[2],p=i.shape[3],f=l*o,b=h*o,m=p/(o*o),g=n.data.get(i.dataId).values,v=new Float32Array(u*f*b*m);let w=0;for(let t=0;t<u;++t)for(let e=0;e<f;++e){const n=Math.floor(e/o),a=e%o;for(let e=0;e<b;++e){const s=Math.floor(e/o),i=undefined,c=(a*o+e%o)*m;for(let d=0;d<m;++d){const e=undefined,a=d+c+p*(s+h*(n+l*t));v[w++]=g[a]}}}return n.makeTensorInfo([u,f,b,m],i.dtype,v)}var s=n(0);const i={kernelName:s.V,backendName:"cpu",kernelFunc:a};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,dy:c}=e,{strides:u,dilations:l,pad:h,dimRoundingMode:p,filterShape:f}=a;Object(i.a)([o,c],"depthwiseConv2dNativeBackpropFilter");const b=s._164.computeConv2DInfo(o.shape,f,u,l,h,p,true),{strideHeight:m,strideWidth:g,filterHeight:v,filterWidth:w}=b,y=new s._134(b.filterShape,"float32"),O=b.padInfo.left,x=b.padInfo.top,A=b.outChannels/b.inChannels,I=n.data.get(o.dataId).values,j=new s._134(o.shape,o.dtype,I),C=n.data.get(c.dataId).values,_=new s._134(c.shape,c.dtype,C);for(let t=0;t<v;++t){const e=Math.max(0,Math.ceil((x-t)/m)),n=Math.min(b.outHeight,(b.inHeight+x-t)/m);for(let a=0;a<w;++a){const s=Math.max(0,Math.ceil((O-a)/g)),i=Math.min(b.outWidth,(b.inWidth+O-a)/g);for(let o=0;o<b.outChannels;++o){const c=Math.trunc(o/A),u=o%A;let l=0;for(let u=0;u<b.batchSize;++u)for(let h=e;h<n;++h){const e=t+h*m-x;for(let t=s;t<i;++t){const n=a+t*g-O;l+=j.get(u,e,n,c)*_.get(u,h,t,o)}}y.set(l,t,a,c,u)}}}return n.makeTensorInfo(y.shape,y.dtype,y.values)}var s=n(0),i=n(8);const o={kernelName:s.X,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:o,filter:filter}=e,{strides:c,dilations:u,pad:l,dimRoundingMode:h,inputShape:p}=a;Object(i.a)([o,filter],"depthwiseConv2DNativeBackpropInput");const f=s._408.computeStrides(o.shape),b=s._408.computeStrides(filter.shape),m=s._164.computeConv2DInfo(p,filter.shape,c,u,l,h,true),g=new s._134(m.inShape,"float32"),v=g.values,[w,y,O]=g.strides,x=n.data.get(o.dataId).values,[A,I,j]=f,C=n.data.get(filter.dataId).values,[_,k,S]=b,{batchSize:T,filterHeight:L,filterWidth:B,inChannels:N,inHeight:E,inWidth:M,outChannels:F,outHeight:W,outWidth:z,strideHeight:P,strideWidth:G}=m,V=L-1-m.padInfo.top,H=B-1-m.padInfo.left,Z=F/N;for(let t=0;t<T;++t)for(let e=0;e<N;++e)for(let n=0;n<E;++n){const a=n-V,s=Math.max(0,Math.ceil(a/P)),i=Math.min(W,(L+a)/P);for(let o=0;o<M;++o){const c=o-H,u=Math.max(0,Math.ceil(c/G)),l=Math.min(z,(B+c)/G);let h=0;for(let n=s;n<i;++n){const s=n*P-a;for(let a=u;a<l;++a){const i=undefined,o=A*t+I*n+j*a,u=_*(L-1-s)+k*(B-1-(a*G-c))+S*e;for(let t=0;t<Z;++t){const n=undefined,a=undefined,s=undefined;h+=x[o+(e*Z+t)]*C[u+t]}}}v[w*t+y*n+O*o+e]=h}}return n.makeTensorInfo(g.shape,g.dtype,g.values)}var s=n(0),i=n(8);const o={kernelName:s.Y,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{x:a}=e,i=s._408.sizeFromShape(a.shape),o=n.data.get(a.dataId).values,c=Object(s._178)([i,i],a.dtype),u=c.values;for(let t=0;t<o.length;t++)u[t*i+t]=o[t];const l=[...a.shape,...a.shape];return n.makeTensorInfo(l,c.dtype,c.values)}var s=n(0);const i={kernelName:s.Z,backendName:"cpu",kernelFunc:a};e.a=i},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s={kernelName:a._0,backendName:"cpu",kernelFunc:({inputs:t,backend:e,attrs:n})=>{const{x:s,filter:filter}=t,{strides:i,pad:o,dilations:c}=n,u=e,l=u.data.get(s.dataId).values,h=s.shape.length,p=u.data.get(filter.dataId).values,f=filter.shape.length,{batchSize:b,inHeight:m,inWidth:g,inChannels:v,outHeight:w,outWidth:y,padInfo:O,strideHeight:x,strideWidth:A,filterHeight:I,filterWidth:j,dilationHeight:C,dilationWidth:_,outShape:k}=a._164.computeDilation2DInfo(s.shape,filter.shape,i,o,"NHWC",c),S=a._408.sizeFromShape(k),T=k.length,L=a._408.getArrayFromDType(s.dtype,S);for(let t=0;t<b;++t)for(let e=0;e<w;++e){const n=e*x-O.top;for(let i=0;i<y;++i){const o=i*A-O.left;for(let d=0;d<v;++d){let c=Number.MIN_SAFE_INTEGER;for(let e=0;e<I;++e){const i=n+e*C;if(i>=0&&i<m)for(let n=0;n<j;++n){const u=o+n*_;if(u>=0&&u<g){const o=a._408.locToIndex([t,i,u,d],h,a._408.computeStrides(s.shape)),b=a._408.locToIndex([e,n,d],f,a._408.computeStrides(filter.shape)),m=l[o]+p[b];m>c&&(c=m)}}}const u=undefined;L[a._408.locToIndex([t,e,i,d],T,a._408.computeStrides(k))]=c}}}const B=undefined;return{dataId:u.write(a._408.toTypedArray(L,s.dtype),k,s.dtype),shape:k,dtype:s.dtype}}};e.a=s},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s={kernelName:a._1,backendName:"cpu",kernelFunc:({inputs:t,backend:e,attrs:n})=>{const{x:s,filter:filter,dy:i}=t,{strides:o,pad:c,dilations:u}=n,l=e,h=a._408.toNestedArray(s.shape,l.data.get(s.dataId).values),p=a._408.toNestedArray(filter.shape,l.data.get(filter.dataId).values),{batchSize:f,inHeight:b,inWidth:m,inChannels:g,outHeight:v,outWidth:w,padInfo:y,strideHeight:O,strideWidth:x,filterHeight:A,filterWidth:I,dilationHeight:j,dilationWidth:C,outShape:_}=a._164.computeDilation2DInfo(s.shape,filter.shape,o,c,"NHWC",u);a._408.assert(i.rank===_.length,(()=>`Error in ${a._1}, dy must have the same rank as output ${_.length}, but got ${i.rank}`));const k=a._408.toNestedArray(_,l.data.get(i.dataId).values),S=a._408.makeZerosNestedTypedArray(filter.shape,filter.dtype);for(let t=0;t<f;++t)for(let e=0;e<v;++e){const n=e*O-y.top;for(let a=0;a<w;++a){const s=a*x-y.left;for(let d=0;d<g;++d){let i=Number.MIN_SAFE_INTEGER,o=0,c=0;for(let e=0;e<A;++e){const a=n+e*j;if(a>=0&&a<b)for(let n=0;n<I;++n){const u=s+n*C;if(u>=0&&u<m){const s=h[t][a][u][d]+p[e][n][d];s>i&&(i=s,o=e,c=n)}}}S[o][c][d]+=k[t][e][a][d]}}}const T=undefined;return{dataId:l.write(a._408.toTypedArray(S,s.dtype),filter.shape,filter.dtype),shape:filter.shape,dtype:filter.dtype}}};e.a=s},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s={kernelName:a._2,backendName:"cpu",kernelFunc:({inputs:t,backend:e,attrs:n})=>{const{x:s,filter:filter,dy:i}=t,{strides:o,pad:c,dilations:u}=n,l=e,h=a._408.toNestedArray(s.shape,l.data.get(s.dataId).values),p=a._408.toNestedArray(filter.shape,l.data.get(filter.dataId).values),{batchSize:f,inHeight:b,inWidth:m,inChannels:g,outHeight:v,outWidth:w,padInfo:y,strideHeight:O,strideWidth:x,filterHeight:A,filterWidth:I,dilationHeight:j,dilationWidth:C,outShape:_}=a._164.computeDilation2DInfo(s.shape,filter.shape,o,c,"NHWC",u);a._408.assert(i.rank===_.length,(()=>`Error in ${a._2}, dy must have the same rank as output ${_.length}, but got ${i.rank}`));const k=a._408.toNestedArray(_,l.data.get(i.dataId).values),S=a._408.makeZerosNestedTypedArray(s.shape,s.dtype);for(let t=0;t<f;++t)for(let e=0;e<v;++e){const n=e*O-y.top;for(let a=0;a<w;++a){const s=a*x-y.left;for(let d=0;d<g;++d){let i=Number.MIN_SAFE_INTEGER,o=n<0?0:n,c=s<0?0:s;for(let e=0;e<A;++e){const a=n+e*j;if(a>=0&&a<b)for(let n=0;n<I;++n){const u=s+n*C;if(u>=0&&u<m){const s=h[t][a][u][d]+p[e][n][d];s>i&&(i=s,o=a,c=u)}}}S[t][o][c][d]+=k[t][e][a][d]}}}const T=undefined;return{dataId:l.write(a._408.toTypedArray(S,s.dtype),s.shape,s.dtype),shape:s.shape,dtype:s.dtype}}};e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{image:image}=e,{canvas:s,options:i}=a,{contextOptions:o,imageOptions:c}=i||{},u=(null==c?void 0:c.alpha)||1,l=(null==o?void 0:o.contextType)||"2d";if("2d"!==l)throw new Error(`Context type ${o.contextType} is not supported by the CPU backend.`);const h=s.getContext(l,(null==o?void 0:o.contextAttributes)||{});if(null==h)throw new Error(`Could not get the context with ${l} type.`);const[p,f]=image.shape.slice(0,2),b=2===image.shape.length?1:image.shape[2],data=n.data.get(image.dataId).values,m="float32"===image.dtype?255:1,g=new Uint8ClampedArray(f*p*4);for(let t=0;t<p*f;++t){const e=[0,0,0,255*u];for(let d=0;d<b;d++){const n=data[t*b+d];if("float32"===image.dtype){if(n<0||n>1)throw new Error(`Tensor values for a float32 Tensor must be in the range [0 - 1] but encountered ${n}.`)}else if("int32"===image.dtype&&(n<0||n>255))throw new Error(`Tensor values for a int32 Tensor must be in the range [0 - 255] but encountered ${n}.`);1===b?(e[0]=n*m,e[1]=n*m,e[2]=n*m):e[d]=n*m}const n=4*t;g[n+0]=Math.round(e[0]),g[n+1]=Math.round(e[1]),g[n+2]=Math.round(e[2]),g[n+3]=Math.round(e[3])}s.width=f,s.height=p;const v=new ImageData(g,f,p);return h.putImageData(v,0,0),image}var s;const i={kernelName:n(0)._3,backendName:"cpu",kernelFunc:a};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{equation:l}=a,h=e,{allDims:p,summedDims:f,idDims:b}=s._164.decodeEinsumEquation(l,h.length);s._164.checkEinsumDimSizes(p.length,b,h);const{path:m,steps:g}=s._164.getEinsumComputePath(f,b),v=g.length;let w=null,y=p.length;const O=[];for(let t=0;t<v;++t){for(const e of g[t]){const{permutationIndices:t,expandDims:a}=s._164.getEinsumPermutation(y,b[e]);let c;s._164.isIdentityPermutation(t)?c=h[e]:(c=Object(u.a)({inputs:{x:h[e]},backend:n,attrs:{perm:t}}),O.push(c));const l=c.shape.slice();for(let t=0;t<a.length;++t)l.splice(a[t],0,1);s._408.arraysEqual(c.shape,l)||(c=Object(o.a)({inputs:{x:c},backend:n,attrs:{shape:l}}),O.push(c)),null===w?w=c:(w=Object(i.a)({inputs:{a:c,b:w},backend:n}),O.push(w))}t<v-1&&(m[t]>=0&&(w=Object(c.a)({inputs:{x:w},backend:n,attrs:{axis:m[t]-(p.length-y),keepDims:false}}),O.push(w)),y--)}for(const t of O)t!==w&&n.disposeIntermediateTensorInfo(t);return w}var s=n(0),i=n(105),o=n(40),c=n(128),u=n(45);const l={kernelName:s._5,backendName:"cpu",kernelFunc:a};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{dy:a,y:o}=e;Object(i.a)([a,o],"eluGrad");const c=new Float32Array(s._408.sizeFromShape(o.shape)),u=n.data.get(o.dataId).values,l=n.data.get(a.dataId).values;for(let t=0;t<u.length;++t){const e=u[t];c[t]=e>=0?l[t]:l[t]*(e+1)}return n.makeTensorInfo(o.shape,"float32",c)}var s=n(0),i=n(8);const o={kernelName:s._7,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=a._164.ERF_P,o=a._164.ERF_A1,c=a._164.ERF_A2,u=a._164.ERF_A3,l=a._164.ERF_A4,h=a._164.ERF_A5,p=Object(s.a)(a._10,(t=>{const e=Math.sign(t),n=Math.abs(t),a=1/(1+i*n);return e*(1-((((h*a+l)*a+u)*a+c)*a+o)*a*Math.exp(-n*n))})),f={kernelName:a._10,backendName:"cpu",kernelFunc:p};e.a=f},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{input:input}=e,a=s._408.sizeFromShape(input.shape),c=input.shape[input.shape.length-1],u=a/c,l=Object(o.a)({inputs:{x:input},backend:n,attrs:{shape:[u,c]}}),h=Object(i.a)(l,false,n),p=Object(o.a)({inputs:{x:h},backend:n,attrs:{shape:input.shape}});return n.disposeIntermediateTensorInfo(l),n.disposeIntermediateTensorInfo(h),p}var s=n(0),i=n(363),o=n(40);const c={kernelName:s._14,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s={kernelName:a._16,backendName:"cpu",kernelFunc:({inputs:t,attrs:e,backend:n})=>{const{image:image}=t,s=n,i=a._408.getTypedArrayFromDType(image.dtype,a._408.sizeFromShape(image.shape)),[o,c,u,l]=image.shape,h=s.data.get(image.dataId).values;for(let t=0;t<o;t++){const e=t*u*c*l;for(let row=0;row<c;row++){const t=row*(u*l);for(let n=0;n<u;n++){const a=n*l;for(let s=0;s<l;s++){const o=Math.round(u-n-1),c=e+t+a+s;let p=h[c];if(o>=0&&o<u){const n=undefined,a=undefined;p=h[e+t+o*l+s]}i[c]=p}}}}const p=undefined;return{dataId:s.write(i,image.shape,image.dtype),shape:image.shape,dtype:image.dtype}}};e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s,filter:filter,bias:l,preluActivationWeights:h}=e,{strides:p,pad:f,dataFormat:b,dilations:m,dimRoundingMode:g,activation:v,leakyreluAlpha:w}=a;let y=Object(c.a)({inputs:{x:s,filter:filter},backend:n,attrs:{strides:p,pad:f,dataFormat:b,dilations:m,dimRoundingMode:g}});if(l){const t=y;if("NCHW"===b&&1===l.shape.length&&1!==l.shape[0]){const t=Object(u.a)({inputs:{x:l},backend:n,attrs:{shape:[l.shape[0],1,1]}});y=Object(o.a)({inputs:{a:y,b:t},backend:n}),n.disposeIntermediateTensorInfo(t)}else y=Object(o.a)({inputs:{a:y,b:l},backend:n});n.disposeIntermediateTensorInfo(t)}if(v){const t=y;if("NCHW"===b&&"prelu"===v&&1===h.shape.length&&1!==h.shape[0]){const t=Object(u.a)({inputs:{x:h},backend:n,attrs:{shape:[h.shape[0],1,1]}});y=Object(i.a)(n,y,v,t,w),n.disposeIntermediateTensorInfo(t)}else y=Object(i.a)(n,y,v,h,w);n.disposeIntermediateTensorInfo(t)}return y}var s=n(0),i=n(222),o=n(102),c=n(361),u=n(40);const l={kernelName:s._21,backendName:"cpu",kernelFunc:a};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s,filter:filter,bias:u,preluActivationWeights:l}=e,{strides:h,pad:p,dataFormat:f,dilations:b,dimRoundingMode:m,activation:g,leakyreluAlpha:v}=a;let w=Object(c.a)({inputs:{x:s,filter:filter},backend:n,attrs:{strides:h,pad:p,dataFormat:f,dilations:b,dimRoundingMode:m}});if(u){const t=w;w=Object(o.a)({inputs:{a:w,b:u},backend:n}),n.disposeIntermediateTensorInfo(t)}if(g){const t=w;w=Object(i.a)(n,w,g,l,v),n.disposeIntermediateTensorInfo(t)}return w}var s=n(0),i=n(222),o=n(102),c=n(362);const u={kernelName:s._22,backendName:"cpu",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{params:a,indices:o}=e,c=s._408.sizeFromShape(a.shape),u=o.shape,l=u[u.length-1],[h,p,f,b]=s._164.prepareAndValidate(a,o);if(0===p)return n.makeTensorInfo(h,a.dtype,[]);const m=n.data.get(o.dataId).values,g=n.bufferSync(a),v=Object(i.a)(m,g,a.dtype,p,l,f,b,a.shape,c);return n.makeTensorInfo(h,a.dtype,v.values)}var s=n(0),i=n(324);const o={kernelName:s._23,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u,indices:l}=e,{axis:h,batchDims:p}=a;Object(i.a)([u,l],"gatherV2");const f=s._408.parseAxisParam(h,u.shape)[0],b=n.data.get(l.dataId).values,m=u.shape[f];for(let t=0;t<b.length;++t){const index=b[t];s._408.assert(index<=m-1&&index>=0,(()=>`GatherV2: the index value ${index} is not in [0, ${m-1}]`))}let g=p;null==p&&(g=0);const v=s._408.sizeFromShape(l.shape),w=s._164.segment_util.collectGatherOpShapeInfo(u,l,f,g),y=Object(c.a)({inputs:{x:u},backend:n,attrs:{shape:[w.batchSize,w.outerSize,w.dimSize,w.sliceSize]}}),O=Object(c.a)({inputs:{x:l},backend:n,attrs:{shape:[w.batchSize,v/w.batchSize]}}),x=[w.batchSize,w.outerSize,v/w.batchSize,w.sliceSize],A=n.bufferSync(O),I=n.bufferSync(y),j=Object(o.a)(I,A,x);return n.disposeIntermediateTensorInfo(y),n.disposeIntermediateTensorInfo(O),n.makeTensorInfo(w.outputShape,j.dtype,j.values)}var s=n(0),i=n(8),o=n(325),c=n(40);const u={kernelName:s._24,backendName:"cpu",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{input:input}=e,a=s._408.sizeFromShape(input.shape),c=input.shape[input.shape.length-1],u=a/c,l=Object(o.a)({inputs:{x:input},backend:n,attrs:{shape:[u,c]}}),h=Object(i.a)(l,true,n),p=Object(o.a)({inputs:{x:h},backend:n,attrs:{shape:input.shape}});return n.disposeIntermediateTensorInfo(l),n.disposeIntermediateTensorInfo(h),p}var s=n(0),i=n(363),o=n(40);const c={kernelName:s._27,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._30,(t=>Number.isFinite(t)?1:0),"bool"),o={kernelName:a._30,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._31,(t=>Math.abs(t)===1/0?1:0),"bool"),o={kernelName:a._31,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._32,(t=>Number.isNaN(t)?1:0),"bool"),o={kernelName:a._32,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{backend:e,attrs:n}=t,{start:a,stop:s,num:o}=n,c=Object(i.a)(a,s,o);return e.makeTensorInfo([c.length],"float32",c)}var s=n(0),i=n(330);const o={kernelName:s._39,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._41,(t=>Math.log1p(t))),o={kernelName:a._41,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t&&e)),c=Object(i.a)(a._43,o,null,"bool"),u={kernelName:a._43,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._44,(t=>t?0:1),"bool"),o={kernelName:a._44,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>t||e)),c=Object(i.a)(a._45,o,null,"bool"),u={kernelName:a._45,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){function e(t){const e=t%f;let n=t-e+Math.max(0,e-u);const a=t-e+Math.min(e+u,b);let s=0;for(;n<=a;n++){const t=m[n];s+=t*t}return s}const{inputs:n,backend:a,attrs:o}=t,{x:c}=n,{depthRadius:u,bias:l,alpha:h,beta:p}=o;Object(i.a)(c,"LRN");const f=c.shape[3],b=f-1,m=a.data.get(c.dataId).values,size=s._408.sizeFromShape(c.shape),g=new Float32Array(size);for(let t=0;t<size;t++){const n=e(t),a=m[t]*Math.pow(l+h*n,-p);g[t]=a}return a.makeTensorInfo(c.shape,c.dtype,g)}var s=n(0),i=n(8);const o={kernelName:s._34,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,y:c,dy:u}=e,{depthRadius:l,bias:h,alpha:p,beta:f}=a;Object(i.a)(u,"LRNGrad");const b=s._408.sizeFromShape(u.shape),m=u.shape[3],g=n.data.get(u.dataId).values,v=n.data.get(o.dataId).values,w=n.data.get(c.dataId).values,y=new Float32Array(b),size=b;for(let t=0;t<size;t++){const e=t%m,n=t-e+Math.max(0,e-l),a=t-e+Math.min(m,e+l+1);let s=0;for(let t=n;t<a;t++)s+=Math.pow(v[t],2);s=p*s+h;for(let e=n;e<a;e++){let n=-2*p*f*v[e]*w[t]/s;t===e&&(n+=Math.pow(s,-f)),n*=g[t],y[e]+=n}}return n.makeTensorInfo(u.shape,o.dtype,y)}var s=n(0),i=n(8);const o={kernelName:s._35,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e;Object(i.a)(u,"maxPool");const{filterSize:l,strides:h,pad:p,dimRoundingMode:f}=a,b=1;s._408.assert(s._164.eitherStridesOrDilationsAreOne(h,1),(()=>`Error in maxPool: Either strides or dilations must be 1. Got strides ${h} and dilations '1'`));const m=s._164.computePool2DInfo(u.shape,l,h,1,p,f);let g;if(1===m.filterWidth&&1===m.filterHeight&&s._408.arraysEqual(m.inShape,m.outShape))g=Object(c.a)({inputs:{x:u},backend:n});else{const t=n.data.get(u.dataId).values,e=s._408.computeStrides(u.shape),a=Object(o.c)(t,u.shape,u.dtype,e,m,"max");g=n.makeTensorInfo(m.outShape,u.dtype,a.values)}return g}var s=n(0),i=n(8),o=n(88),c=n(65);const u={kernelName:s._50,backendName:"cpu",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{filterSize:u,strides:l,pad:h,dimRoundingMode:p,dataFormat:f}=a;Object(i.a)(c,"maxPool3d");const b=s._164.computePool3DInfo(c.shape,u,l,1,h,p,f),m=n.data.get(c.dataId).values,g=Object(o.d)(m,c.shape,c.dtype,s._408.computeStrides(c.shape),b,"max");return n.makeTensorInfo(g.shape,"float32",g.values)}var s=n(0),i=n(8),o=n(88);const c={kernelName:s._51,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:c,input:input}=e,{filterSize:u,strides:l,pad:h,dimRoundingMode:p}=a;Object(i.a)([c,input],"maxPool3DGrad");const f=s._164.computePool3DInfo(input.shape,u,l,1,h,p),b=n.bufferSync(input),m=Object(o.a)(b,f),g=f.strideDepth,v=f.strideHeight,w=f.strideWidth,y=f.dilationDepth,O=f.dilationHeight,x=f.dilationWidth,A=f.effectiveFilterDepth,I=f.effectiveFilterHeight,j=f.effectiveFilterWidth,C=A-1-f.padInfo.front,_=j-1-f.padInfo.left,k=I-1-f.padInfo.top,S=Object(s._178)(input.shape,"float32"),T=n.bufferSync(c);for(let t=0;t<f.batchSize;++t)for(let e=0;e<f.inChannels;++e)for(let n=0;n<f.inDepth;++n)for(let a=0;a<f.inHeight;++a)for(let s=0;s<f.inWidth;++s){const i=n-C,o=a-k,c=s-_;let u=0;for(let n=0;n<A;n+=y){const a=(i+n)/g;if(!(a<0||a>=f.outDepth||Math.floor(a)!==a))for(let s=0;s<I;s+=O){const i=(o+s)/v;if(!(i<0||i>=f.outHeight||Math.floor(i)!==i))for(let o=0;o<j;o+=x){const l=(c+o)/w;if(l<0||l>=f.outWidth||Math.floor(l)!==l)continue;const h=undefined,p=undefined,b=A*I*j-1-m.get(t,a,i,l,e)===n*I*j+s*j+o?1:0;if(0===b)continue;const g=undefined;u+=T.get(t,a,i,l,e)*b}}}S.set(u,t,n,a,s,e)}return n.makeTensorInfo(S.shape,S.dtype,S.values)}var s=n(0),i=n(8),o=n(88);const c={kernelName:s._52,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:c,input:input,output:u}=e,l=input;Object(i.a)([input,u],"maxPoolGrad");const{filterSize:h,strides:p,pad:f,dimRoundingMode:b}=a,m=s._164.computePool2DInfo(l.shape,h,p,1,f,b),g=n.data.get(l.dataId).values,v=Object(s._178)(m.outShape,l.dtype,Object(o.b)(g,l.shape,l.dtype,m).values),w=m.strideHeight,y=m.strideWidth,O=m.dilationHeight,x=m.dilationWidth,A=m.effectiveFilterHeight,I=m.effectiveFilterWidth,j=I-1-m.padInfo.left,C=A-1-m.padInfo.top,_=Object(s._178)(l.shape,"float32"),k=n.data.get(c.dataId).values,S=Object(s._178)(c.shape,"float32",k);for(let t=0;t<m.batchSize;++t)for(let d=0;d<m.inChannels;++d)for(let e=0;e<m.inHeight;++e)for(let n=0;n<m.inWidth;++n){const a=e-C,s=n-j;let i=0;for(let e=0;e<A;e+=O){const n=(a+e)/w;if(!(n<0||n>=m.outHeight||Math.floor(n)!==n))for(let a=0;a<I;a+=x){const o=(s+a)/y;if(o<0||o>=m.outWidth||Math.floor(o)!==o)continue;const c=undefined,u=undefined,l=A*I-1-v.get(t,n,o,d)===e*I+a?1:0;if(0===l)continue;const h=undefined;i+=S.get(t,n,o,d)*l}}_.set(i,t,e,n,d)}return n.makeTensorInfo(_.shape,_.dtype,_.values)}var s=n(0),i=n(8),o=n(88);const c={kernelName:s._53,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(8),i=n(990);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._54,backendName:"cpu",kernelFunc:({inputs:t,attrs:e,backend:n})=>{const{x:o}=t,{filterSize:c,strides:u,pad:l,includeBatchInIndex:h}=e,p=n;Object(s.a)(o,"MaxPoolWithArgmax");const f=p.data.get(o.dataId).values,b=a._164.computePool2DInfo(o.shape,c,u,[1,1],l),[m,g]=Object(i.a)(f,o.shape,o.dtype,h,b),v=p.write(m,b.outShape,o.dtype),w=p.write(g,b.outShape,o.dtype);return[{dataId:v,shape:b.outShape,dtype:o.dtype},{dataId:w,shape:b.outShape,dtype:"int32"}]}};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a,o){const c=s._408.computeStrides(e),u=Object(i.c)(t,e,n,c,o,"max"),l=Object(i.b)(t,e,n,o,true,a);return[u.values,l.values]}e.a=a;var s=n(0),i=n(88)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e,{axis:l,keepDims:h}=a,p=s._408.parseAxisParam(l,u.shape),f=undefined,b=s._164.computeOutAndReduceShapes(u.shape,p)[1],m=s._408.sizeFromShape(b),g=[],v=n.makeTensorInfo([],"float32",new Float32Array([m]));g.push(v);const w=Object(i.a)({inputs:{x:u},backend:n,attrs:{dtype:"float32"}});g.push(w);const y=Object(o.a)({inputs:{a:w,b:v},backend:n});g.push(y);const O=Object(c.a)({inputs:{x:y},backend:n,attrs:{axis:l,keepDims:h}});return g.forEach((t=>n.disposeIntermediateTensorInfo(t))),O}var s=n(0),i=n(103),o=n(166),c=n(128);const u={kernelName:s._56,backendName:"cpu",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e,{axis:l,keepDims:h}=a;Object(i.a)(u,"min");const p=s._408.parseAxisParam(l,u.shape);let f=p;const b=s._164.getAxesPermutation(f,u.shape.length);let m=u;null!=b&&(m=Object(c.a)({inputs:{x:u},backend:n,attrs:{perm:b}}),f=s._164.getInnerMostAxes(f.length,u.shape.length)),s._164.assertAxesAreInnerMostDims("min",f,m.shape.length);const[g,v]=s._164.computeOutAndReduceShapes(m.shape,f),w=s._408.sizeFromShape(v),y=s._408.makeZerosTypedArray(s._408.sizeFromShape(g),m.dtype),O=n.data.get(m.dataId).values;for(let t=0;t<y.length;++t){const e=t*w;let n=O[e];for(let t=0;t<w;++t){const a=O[e+t];(Number.isNaN(a)||a<n)&&(n=a)}y[t]=n}null!=b&&n.disposeIntermediateTensorInfo(m);const x=n.makeTensorInfo(g,m.dtype,y);if(h){const t=s._164.expandShapeToKeepDim(g,p),e=Object(o.a)({inputs:{x:x},backend:n,attrs:{shape:t}});return n.disposeIntermediateTensorInfo(x),e}return x}var s=n(0),i=n(8),o=n(40),c=n(45);const u={kernelName:s._57,backendName:"cpu",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o}=e,{paddings:paddings,mode:c}=a;Object(i.a)(o,"mirrorPad");const u=paddings.map(((t,e)=>t[0]+o.shape[e]+t[1])),l=paddings.map((t=>t[0])),h=paddings.map(((t,e)=>t[0]+o.shape[e])),p="reflect"===c?0:1,f=n.data.get(o.dataId).values,b=o.shape.length,m=s._408.computeStrides(o.shape),g=s._408.sizeFromShape(u),v=u.length,w=s._408.computeStrides(u),y=s._408.getTypedArrayFromDType(o.dtype,g);for(let t=0;t<g;t++){let e=s._408.indexToLoc(t,v,w);for(let t=0;t<v;t++)e[t]<l[t]?e[t]=2*l[t]-e[t]-p:e[t]>=h[t]&&(e[t]=2*(h[t]-1)-e[t]+p);e=e.map(((t,e)=>t-l[e]));const n=s._408.locToIndex(e,b,m);y[t]=f[n]}const O=undefined;return{dataId:n.write(y,u,o.dtype),shape:u,dtype:o.dtype}}var s=n(0),i=n(8);const o={kernelName:s._59,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>{const n=t%e;return t<0&&e<0||t>=0&&e>=0?n:(n+e)%e})),c=Object(i.a)(a._60,o),u={kernelName:a._60,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{logits:o}=e,{numSamples:l,seed:h,normalized:p}=a;Object(c.a)(o,"multinomial");const f=p?o:Object(u.a)({inputs:{logits:o},backend:n,attrs:{dim:-1}}),b=f.shape[0],m=f.shape[1],g=n.data.get(f.dataId).values,v=[b,l],w=s._408.makeZerosTypedArray(s._408.sizeFromShape(v),"int32");for(let t=0;t<b;++t){const e=t*m,n=new Float32Array(m-1);n[0]=g[e];for(let t=1;t<n.length;++t)n[t]=n[t-1]+g[e+t];const a=i.alea(h.toString()),s=t*l;for(let t=0;t<l;++t){const r=a();w[s+t]=n.length;for(let e=0;e<n.length;e++)if(r<n[e]){w[s+t]=e;break}}}return p||n.disposeIntermediateTensorInfo(f),n.makeTensorInfo(v,"int32",w)}var s=n(0),i=n(149),o=n.n(i),c=n(8),u=n(365);const l={kernelName:s._62,backendName:"cpu",kernelFunc:a};e.a=l},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n,attrs:a}=t,{boxes:s,scores:c}=e,{maxOutputSize:u,iouThreshold:l,scoreThreshold:h}=a;Object(i.a)(s,"NonMaxSuppression");const p=n.data.get(s.dataId).values,f=n.data.get(c.dataId).values,{selectedIndices:b}=o(p,f,u,l,h);return n.makeTensorInfo([b.length],"int32",new Int32Array(b))}var s=n(0),i=n(8);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=s._258.nonMaxSuppressionV3Impl,c={kernelName:s._65,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n,attrs:a}=t,{boxes:s,scores:c}=e,{maxOutputSize:u,iouThreshold:l,scoreThreshold:h,padToMaxOutputSize:p}=a;Object(i.a)(s,"NonMaxSuppressionPadded");const f=n.data.get(s.dataId).values,b=n.data.get(c.dataId).values,{selectedIndices:m,validOutputs:g}=o(f,b,u,l,h,p);return[n.makeTensorInfo([m.length],"int32",new Int32Array(m)),n.makeTensorInfo([],"int32",new Int32Array([g]))]}var s=n(0),i=n(8);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=s._258.nonMaxSuppressionV4Impl,c={kernelName:s._66,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n,attrs:a}=t,{boxes:s,scores:c}=e,{maxOutputSize:u,iouThreshold:l,scoreThreshold:h,softNmsSigma:p}=a;Object(i.a)(s,"NonMaxSuppressionWithScore");const f=n.data.get(s.dataId).values,b=n.data.get(c.dataId).values,m=u,g=l,v=h,w=p,{selectedIndices:y,selectedScores:O}=o(f,b,m,g,v,w);return[n.makeTensorInfo([y.length],"int32",new Int32Array(y)),n.makeTensorInfo([O.length],"float32",new Float32Array(O))]}var s=n(0),i=n(8);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=s._258.nonMaxSuppressionV5Impl,c={kernelName:s._67,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{indices:o}=e,{dtype:c,depth:u,onValue:l,offValue:h}=a;Object(i.a)(o,"oneHot");const p=s._408.sizeFromShape(o.shape),f=new Float32Array(p*u);f.fill(h);const b=n.data.get(o.dataId).values;for(let t=0;t<p;++t)b[t]>=0&&b[t]<u&&(f[t*u+b[t]]=l);return n.makeTensorInfo([...o.shape,u],c,f)}var s=n(0),i=n(8);const o={kernelName:s._70,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{x:s}=e;if("string"===s.dtype)throw new Error("onesLike is not supported for string tensors");if("complex64"===s.dtype){const t=Object(u.a)({inputs:{input:s},backend:n}),r=a({inputs:{x:t},backend:n}),e=Object(c.a)({inputs:{input:s},backend:n}),o=Object(l.a)({inputs:{x:e},backend:n}),h=Object(i.a)({inputs:{real:r,imag:o},backend:n});return n.disposeIntermediateTensorInfo(t),n.disposeIntermediateTensorInfo(r),n.disposeIntermediateTensorInfo(e),n.disposeIntermediateTensorInfo(o),h}return Object(o.a)({backend:n,attrs:{shape:s.shape,value:1,dtype:s.dtype}})}var s=n(0),i=n(75),o=n(225),c=n(127),u=n(104),l=n(366);const h={kernelName:s._71,backendName:"cpu",kernelFunc:a};e.a=h},function(t,e,n){"use strict";var a=n(0),s=n(30),i=n(34);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=Object(s.a)(((t,e)=>Math.pow(t,e))),c=Object(i.a)(a._77,o),u={kernelName:a._77,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{paramsNestedSplits:s,paramsDenseValues:o,indices:c}=e,{outputRaggedRank:u}=a,l=s.map((t=>n.data.get(t.dataId).values)),h=s.map((t=>t.shape)),p=n.data.get(o.dataId).values,f=n.data.get(c.dataId).values,[b,m,g]=Object(i.a)(l,h,p,o.shape,o.dtype,f,c.shape,u),v=b.map((t=>n.makeTensorInfo([t.length],"int32",t))),w=n.makeTensorInfo(g,o.dtype,m);return v.concat([w])}var s=n(0),i=n(338);const o={kernelName:s._81,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{starts:a,limits:s,deltas:o}=e,c=n.data.get(a.dataId).values,u=n.data.get(s.dataId).values,l=n.data.get(o.dataId).values,[h,p]=Object(i.a)(c,a.shape,a.dtype,u,s.shape,l,o.shape),f=undefined,b=undefined;return[n.makeTensorInfo([h.length],"int32",h),n.makeTensorInfo([p.length],a.dtype,p)]}var s=n(0),i=n(339);const o={kernelName:s._82,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{shape:shape,values:s,defaultValue:o,rowPartitionTensors:c}=e,{rowPartitionTypes:u}=a,l=n.data.get(shape.dataId).values,h=n.data.get(s.dataId).values,p=n.data.get(o.dataId).values,f=c.map((t=>n.data.get(t.dataId).values)),b=c.map((t=>t.shape)),[m,g]=Object(i.a)(l,shape.shape,h,s.shape,s.dtype,p,o.shape,f,b,u);return n.makeTensorInfo(m,s.dtype,g)}var s=n(0),i=n(340);const o={kernelName:s._83,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{backend:e,attrs:n}=t,{start:a,stop:s,dtype:o,step:c}=n,u=Object(i.a)(a,s,c,o);return e.makeTensorInfo([u.length],o,u)}var s=n(0),i=n(341);const o={kernelName:s._84,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._88,(t=>1/t)),o={kernelName:a._88,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{images:o}=e,{alignCorners:c,halfPixelCenters:u,size:size}=a;Object(i.a)(o,"resizeBilinear");const l=s._408.computeStrides(o.shape),[h,p]=size,[f,b,m,g]=o.shape,v=n.data.get(o.dataId).values,w=new Float32Array(s._408.sizeFromShape([f,h,p,g])),y=[c&&h>1?b-1:b,c&&p>1?m-1:m],O=[c&&h>1?h-1:h,c&&p>1?p-1:p];let x=0;const A=y[0]/O[0],I=y[1]/O[1];for(let t=0;t<f;t++)for(let r=0;r<h;r++){let e;e=u?A*(r+.5)-.5:A*r;const n=Math.max(0,Math.floor(e)),a=e-n,s=Math.min(b-1,Math.ceil(e)),i=t*l[0]+n*l[1],o=t*l[0]+s*l[1];for(let t=0;t<p;t++){let e;e=u?I*(t+.5)-.5:I*t;const n=Math.max(0,Math.floor(e)),s=e-n,c=Math.min(m-1,Math.ceil(e)),h=i+n*l[2],p=o+n*l[2],f=i+c*l[2],b=o+c*l[2];for(let d=0;d<g;d++){const t=v[h+d],e=v[p+d],n=undefined,i=undefined,o=t+(v[f+d]-t)*s,c=undefined,u=o+(e+(v[b+d]-e)*s-o)*a;w[x++]=u}}}return n.makeTensorInfo([f,h,p,g],"float32",w)}var s=n(0),i=n(8);const o={kernelName:s._93,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{images:o,dy:c}=e,{alignCorners:u}=a;Object(i.a)([c,o],"resizeBilinearGrad");const l=s._408.computeStrides(o.shape),[h,p,f,b]=o.shape,[,m,g]=c.shape,v=new Float32Array(h*p*f*b),w=[u&&m>1?p-1:p,u&&g>1?f-1:f],y=[u&&m>1?m-1:m,u&&g>1?g-1:g],O=w[0]/y[0],x=w[1]/y[1],A=n.data.get(c.dataId).values;let I=0;for(let t=0;t<h;t++){const e=t*l[0];for(let r=0;r<m;r++){const t=r*O,n=Math.floor(t),a=Math.min(Math.ceil(t),p-1),s=e+n*l[1],i=e+a*l[1],o=t-n,c=1-o;for(let t=0;t<g;t++){const e=t*x,n=Math.floor(e),a=Math.min(Math.ceil(e),f-1),u=e-n,h=1-u,p=s+n*l[2],m=s+a*l[2],g=i+n*l[2],w=i+a*l[2],y=c*h,O=c*u,j=o*h,C=o*u;for(let d=0;d<b;d++){const t=A[I++];v[p+d]+=t*y,v[m+d]+=t*O,v[g+d]+=t*j,v[w+d]+=t*C}}}}return n.makeTensorInfo([h,f,p,b],"float32",v)}var s=n(0),i=n(8);const o={kernelName:s._94,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{images:o}=e,{alignCorners:c,halfPixelCenters:u,size:size}=a;Object(i.a)(o,"resizeNearestNeighbor");const l=s._408.computeStrides(o.shape),[h,p]=size,[f,b,m,g]=o.shape,v=n.data.get(o.dataId).values,w=new Float32Array(f*h*p*g),y=[c&&h>1?b-1:b,c&&p>1?m-1:m],O=[c&&h>1?h-1:h,c&&p>1?p-1:p],x=y[0]/O[0],A=y[1]/O[1];let I=0;for(let t=0;t<f;t++){const e=t*l[0];for(let r=0;r<h;r++){const t=u?x*(r+.5):x*r;let n=Math.min(b-1,c?Math.round(t):Math.floor(t));u&&(n=Math.max(0,n));const a=e+n*l[1];for(let t=0;t<p;t++){const e=u?A*(t+.5):A*t;let n=Math.min(m-1,c?Math.round(e):Math.floor(e));u&&(n=Math.max(0,n));const s=a+n*l[2];for(let d=0;d<g;d++){const t=v[s+d];w[I++]=t}}}}return n.makeTensorInfo([f,h,p,g],o.dtype,w)}var s=n(0),i=n(8);const o={kernelName:s._95,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{images:o,dy:c}=e,{alignCorners:u}=a;Object(i.a)([c,o],"resizeNearestNeighborGrad");const l=s._408.computeStrides(o.shape),h=s._408.computeStrides(c.shape),[p,f,b,m]=o.shape,[,g,v]=c.shape,w=new Float32Array(p*f*b*m),y=n.data.get(c.dataId).values,O=[u&&g>1?f-1:f,u&&v>1?b-1:b],x=[u&&g>1?g-1:g,u&&v>1?v-1:v],A=O[0]/x[0],I=O[1]/x[1],j=1/A,C=1/I,_=2*Math.ceil(j)+2,k=2*Math.ceil(C)+2;for(let t=0;t<p;t++){const e=t*l[0];for(let r=0;r<f;r++){const t=e+r*l[1],n=Math.floor(r*j),a=Math.floor(n-_/2);for(let n=0;n<b;n++){const s=t+n*l[2],i=Math.floor(n*C),o=Math.floor(i-k/2);for(let d=0;d<m;d++){let t=0;for(let s=0;s<_;s++){const i=s+a;if(i<0||i>=g)continue;const c=e+i*h[1],l=i*A,p=undefined;if(r===Math.min(f-1,u?Math.round(l):Math.floor(l)))for(let e=0;e<k;e++){const a=e+o;if(a<0||a>=v)continue;const s=c+a*h[2],i=a*I,l=undefined;n===Math.min(b-1,u?Math.round(i):Math.floor(i))&&(t+=y[s+d])}}w[s+d]=t}}}}return n.makeTensorInfo(o.shape,o.dtype,w)}var s=n(0),i=n(8);const o={kernelName:s._96,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{dims:u}=a;Object(i.a)(c,"reverse");const l=c.shape.length,h=s._408.parseAxisParam(u,c.shape);if(0===l)return Object(o.a)({inputs:{x:c},backend:n});const p=new s._134(c.shape,c.dtype),f=n.bufferSync(c);for(let t=0;t<p.size;t++){const e=p.indexToLoc(t),n=e.slice();h.forEach((d=>n[d]=c.shape[d]-1-n[d])),p.set(f.get(...n),...e)}return n.makeTensorInfo(p.shape,p.dtype,p.values)}var s=n(0),i=n(8),o=n(65);const c={kernelName:s._97,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const s={kernelName:a._98,backendName:"cpu",kernelFunc:({inputs:t,attrs:e,backend:n})=>{const{image:image}=t,{radians:s,fillValue:i,center:o}=e,c=n,u=a._408.getTypedArrayFromDType(image.dtype,a._408.sizeFromShape(image.shape)),[l,h,p,f]=image.shape,[b,m]=a._164.getImageCenter(o,h,p),g=255,v=Math.sin(s),w=Math.cos(s),y=c.data.get(image.dataId).values;for(let t=0;t<l;t++){const e=t*p*h*f;for(let row=0;row<h;row++){const t=row*(p*f);for(let n=0;n<p;n++){const a=n*f;for(let s=0;s<f;s++){const o=[l,row,n,s],c=o[2],O=o[1];let x=(c-b)*w-(O-m)*v,A=(c-b)*v+(O-m)*w;x=Math.round(x+b),A=Math.round(A+m);let I=i;if("number"!=typeof i&&(I=3===s?g:i[s]),x>=0&&x<p&&A>=0&&A<h){const t=undefined,n=undefined,a=undefined;I=y[e+A*(p*f)+x*f+s]}const j=undefined;u[e+t+a+s]=I}}}}const O=undefined;return{dataId:c.write(u,image.shape,image.dtype),shape:image.shape,dtype:image.dtype}}};e.a=s},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._99,(t=>{const base=Math.floor(t);return t-base<.5?Math.floor(t):t-base>.5?Math.ceil(t):base%2==0?base:base+1})),o={kernelName:a._99,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{indices:o,updates:c}=e,{shape:shape}=a,{sliceRank:u,numUpdates:l,sliceSize:h,strides:p,outputSize:f}=s._164.calculateShapes(c,o,shape),b=true,m=n.bufferSync(o),g=n.bufferSync(c),v=Object(i.a)(m,g,shape,f,h,l,u,p,0,b);return n.makeTensorInfo(shape,v.dtype,v.values)}var s=n(0),i=n(164);const o={kernelName:s._102,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{sortedSequence:s,values:o}=e,{side:c}=a,u=n.data.get(s.dataId).values,l=n.data.get(o.dataId).values,h=Object(i.a)(u,l,s.shape[0],s.shape[1],o.shape[1],c);return n.makeTensorInfo(o.shape,"int32",h)}var s=n(0),i=n(1016);const o={kernelName:s._103,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){let n=0,a=t.length,s=0;for(;n<a;)s=Math.floor((n+a)/2),t[s]<e?n=s+1:a=s;return a}function s(t,e){let n=0,a=t.length,s=0;for(;n<a;)s=Math.floor((n+a)/2),t[s]<=e?n=s+1:a=s;return a}function i(t,e,n,i,c,u){const l=o._408.getArrayFromDType("int32",n*c);for(let o=0;o<n;++o){const n=t.slice(o*i,(o+1)*i),h=o*c;for(let t=0;t<c;++t)l[h+t]="left"===u?a(n,e[t+h]):s(n,e[t+h])}return l}e.a=i;var o=n(0)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function select(t){const{inputs:e,backend:n}=t,{condition:i,t:o,e:c}=e;Object(s.a)([i,o,c],"select");const u=i.shape.length,l=n.data.get(i.dataId).values,h=n.data.get(o.dataId).values,p=n.data.get(c.dataId).values,f=Object(a._406)(o.dtype,c.dtype),b=a._408.makeZerosTypedArray(a._408.sizeFromShape(o.shape),f);let index=0;const m=0===u||u>1||1===o.shape.length?1:a._408.sizeFromShape(o.shape.slice(1));for(let t=0;t<l.length;t++)for(let e=0;e<m;e++)1===l[t]?b[index++]=h[t]:b[index++]=p[t];return n.makeTensorInfo(o.shape,f,b)}var a=n(0),s=n(8);const i={kernelName:a._104,backendName:"cpu",kernelFunc:select};e.a=i},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=a._164.SELU_SCALEALPHA,o=a._164.SELU_SCALE,c=Object(s.a)(a._105,(t=>t>=0?o*t:i*(Math.exp(t)-1))),u={kernelName:a._105,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._107,(t=>t<0?-1:t>0?1:0)),o={kernelName:a._107,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._108,(t=>Math.sin(t))),o={kernelName:a._108,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._109,(t=>Math.sinh(t))),o={kernelName:a._109,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=1.1920928955078125e-7,o=Math.log(i)+2,c=Object(s.a)(a._112,(t=>{const e=t>-o,n=t<o,a=Math.exp(t);let s;return s=n?a:e?t:Math.log(1+a),s})),u={kernelName:a._112,backendName:"cpu",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:l}=e,{blockShape:blockShape,paddings:paddings}=a;Object(i.a)([l],"spaceToBatchND");const h=s._408.sizeFromShape(blockShape),p=[[0,0]];p.push(...paddings);for(let t=1+blockShape.length;t<l.shape.length;++t)p.push([0,0]);const f=o.a.kernelFunc({inputs:{x:l},backend:n,attrs:{paddings:p,constantValue:0}}),b=s._164.getReshaped(f.shape,blockShape,h,false),m=s._164.getPermuted(b.length,blockShape.length,false),g=s._164.getReshapedPermuted(f.shape,blockShape,h,false),v={x:f},w={shape:b},y=Object(c.a)({inputs:v,backend:n,attrs:w}),O={x:y},x={perm:m},A=Object(u.a)({inputs:O,backend:n,attrs:x}),I={x:A},j={shape:g},C=Object(c.a)({inputs:I,backend:n,attrs:j});return n.disposeIntermediateTensorInfo(f),n.disposeIntermediateTensorInfo(y),n.disposeIntermediateTensorInfo(A),C}var s=n(0),i=n(8),o=n(368),c=n(40),u=n(45);const l={kernelName:s._113,backendName:"cpu",kernelFunc:a};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{indices:a,values:s,denseShape:o,defaultValue:c}=e;if(1!==o.shape.length)throw new Error(`Dense shape must be a vector, saw:\n ${o.shape}`);if(2!==a.shape.length)throw new Error(`Indices must be a matrix, saw:\n ${a.shape}`);if(1!==s.shape.length)throw new Error(`Values must be a vector, saw:\n ${s.shape}`);if(0!==c.shape.length)throw new Error(`Default value must be a scalar, saw:\n ${c.shape}`);const u=n.data.get(a.dataId).values,l=n.data.get(s.dataId).values,h=n.data.get(o.dataId).values,p=n.data.get(c.dataId).values[0],[f,b,m,g,v]=Object(i.a)(u,a.shape,a.dtype,l,s.dtype,h,p);return[n.makeTensorInfo(b,a.dtype,f),n.makeTensorInfo([b[0]],s.dtype,m),n.makeTensorInfo([g.length],"bool",new Uint8Array(g.map((t=>Number(t))))),n.makeTensorInfo([v.length],a.dtype,new Int32Array(v))]}var s=n(0),i=n(343);const o={kernelName:s._114,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{inputIndices:a,inputShape:s,newShape:o}=e;if(2!==a.shape.length)throw new Error(`Input indices should be a matrix but received shape\n ${a.shape}`);if(1!==s.shape.length)throw new Error(`Input shape should be a vector but received shape\n ${s.shape}`);if(1!==o.shape.length)throw new Error(`Target shape should be a vector but received shape ${o.shape}`);const c=Array.from(n.data.get(s.dataId).values),u=n.data.get(a.dataId).values,l=Array.from(n.data.get(o.dataId).values),[h,p,f]=Object(i.a)(u,a.shape,a.dtype,c,l);return[n.makeTensorInfo(p,a.dtype,h),n.makeTensorInfo([f.length],o.dtype,new Int32Array(f))]}var s=n(0),i=n(344);const o={kernelName:s._115,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{data:data,indices:a,segmentIds:s}=e;if(data.shape.length<1)throw new Error("Data should be at least 1 dimensional but received scalar");if(1!==a.shape.length)throw new Error(`Indices should be a vector but received shape\n ${a.shape}`);if(1!==s.shape.length)throw new Error(`Segment ids should be a vector but received shape\n ${s.shape}`);if(a.shape[0]!==s.shape[0])throw new Error("segmentIds and indices should have same size.");const o=n.data.get(data.dataId).values,c=n.data.get(a.dataId).values,u=n.data.get(s.dataId).values,[l,h]=Object(i.a)(o,data.shape,data.dtype,c,u,true);return n.makeTensorInfo(h,data.dtype,l)}var s=n(0),i=n(221);const o={kernelName:s._116,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{data:data,indices:a,segmentIds:s}=e;if(data.shape.length<1)throw new Error("Data should be at least 1 dimensional but received scalar");if(1!==a.shape.length)throw new Error(`Indices should be a vector but received shape\n ${a.shape}`);if(1!==s.shape.length)throw new Error(`Segment ids should be a vector but received shape\n ${s.shape}`);if(a.shape[0]!==s.shape[0])throw new Error("segmentIds and indices should have same size.");const o=n.data.get(data.dataId).values,c=n.data.get(a.dataId).values,u=n.data.get(s.dataId).values,[l,h]=Object(i.a)(o,data.shape,data.dtype,c,u);return n.makeTensorInfo(h,data.dtype,l)}var s=n(0),i=n(221);const o={kernelName:s._117,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{sparseIndices:o,sparseValues:c,defaultValue:u}=e,{outputShape:l}=a,{sliceRank:h,numUpdates:p,sliceSize:f,strides:b,outputSize:m}=s._164.calculateShapes(c,o,l),g=false,v=n.bufferSync(o);let w;switch(c.dtype){case"bool":{const t=n.bufferSync(c),e=Boolean(n.data.get(u.dataId).values[0]);w=Object(i.a)(v,t,l,m,f,p,h,b,e,g);break}case"float32":{const t=n.bufferSync(c),e=n.data.get(u.dataId).values[0];w=Object(i.a)(v,t,l,m,f,p,h,b,e,g);break}case"int32":{const t=n.bufferSync(c),e=n.data.get(u.dataId).values[0];w=Object(i.a)(v,t,l,m,f,p,h,b,e,g);break}case"string":{const t=n.bufferSync(c),e=s._408.decodeString(n.data.get(u.dataId).values[0]);w=Object(i.a)(v,t,l,m,f,p,h,b,e,g);break}default:throw new Error(`Unsupported type ${c.dtype}`)}return n.makeTensorInfo(l,w.dtype,w.values)}var s=n(0),i=n(164);const o={kernelName:s._118,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o}=e,{numOrSizeSplits:c,axis:u}=a,l=s._408.parseAxisParam(u,o.shape)[0],h=s._164.prepareSplitSize(o,c,l),p=new Array(o.shape.length).fill(0),size=o.shape.slice();return h.map((t=>{const e=[...size];e[l]=t;const a=Object(i.a)({inputs:{x:o},backend:n,attrs:{begin:p,size:e}});return p[l]+=t,a}))}var s=n(0),i=n(87);const o={kernelName:s._119,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(8);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._121,backendName:"cpu",kernelFunc:({inputs:t,backend:e})=>{const{x:n}=t,a=e;Object(s.a)(n,"square");const i=a.data.get(n.dataId).values,o=new Float32Array(i.length);for(let t=0;t<i.length;++t){const e=i[t];o[t]=e*e}const c=undefined;return{dataId:a.write(o,n.shape,n.dtype),shape:n.shape,dtype:n.dtype}}};e.a=i},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._124,((t,e)=>{const n=e;return isNaN(t)?NaN:t>0?1:n.alpha})),o={kernelName:a._124,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:l}=e,{begin:h,end:p,strides:f,beginMask:b,endMask:m,ellipsisMask:g,newAxisMask:v,shrinkAxisMask:w}=a;Object(i.a)(l,"stridedSlice");const{finalShapeSparse:y,finalShape:O,isIdentity:x,sliceDim0:A,isSimpleSlice:I,begin:j,end:C,strides:_}=s._363.sliceInfo(l.shape,h,p,f,b,m,g,v,w);let k;if(x)k=Object(o.a)({inputs:{x:l},backend:n,attrs:{shape:O}});else if(A||I){s._408.assert(l.shape.length>=1,(()=>`Input must have rank at least 1, got: ${l.shape.length}`));const size=s._363.computeOutShape(j,C,_),t=Object(c.a)({inputs:{x:l},backend:n,attrs:{begin:j,size:size}});k=Object(o.a)({inputs:{x:t},backend:n,attrs:{shape:O}}),n.disposeIntermediateTensorInfo(t)}else{const t=n.bufferSync(l),e=Object(u.a)(y,t,_,j);k=n.makeTensorInfo(O,e.dtype,e.values)}return k}var s=n(0),i=n(8),o=n(40),c=n(87),u=n(348);const l={kernelName:s._125,backendName:"cpu",kernelFunc:a};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{separator:s,nGramWidths:o,leftPad:c,rightPad:u,padWidth:l,preserveShortSequences:h}=a,{data:data,dataSplits:p}=e,f=n.data.get(data.dataId).values,b=n.data.get(p.dataId).values,[m,g]=Object(i.a)(f,b,s,o,c,u,l,h);return[n.makeTensorInfo([m.length],"string",m),n.makeTensorInfo(p.shape,"int32",g)]}var s=n(0),i=n(349);const o={kernelName:s._126,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{skipEmpty:s}=a,{input:input,delimiter:o}=e;if("string"!==input.dtype)throw new Error("Input must be of datatype string");if(1!==input.shape.length)throw new Error(`Input must be a vector, got shape: ${input.shape}`);if(0!==o.shape.length)throw new Error(`Delimiter must be a scalar, got shape: ${o.shape}`);const c=n.data.get(input.dataId).values,u=n.data.get(o.dataId).values[0],[l,h,shape]=Object(i.a)(c,u,s),p=h.length;return[n.makeTensorInfo([p,2],"int32",l),n.makeTensorInfo([p],"string",h),n.makeTensorInfo([2],"int32",new Int32Array(shape))]}var s=n(0),i=n(350);const o={kernelName:s._127,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{numBuckets:s}=a,{input:input}=e;if("string"!==input.dtype)throw new Error("Input must be of datatype string");if(s<=0)throw new Error("Number of buckets must be at least 1");const o=n.data.get(input.dataId).values,c=Object(i.a)(o,s);return n.makeTensorInfo(input.shape,"int32",c)}var s=n(0),i=n(351);const o={kernelName:s._128,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._131,(t=>Math.tan(t))),o={kernelName:a._131,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(14);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(s.a)(a._132,(t=>Math.tanh(t))),o={kernelName:a._132,backendName:"cpu",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{tensor:a,indices:o,updates:c}=e,{sliceRank:u,numUpdates:l,sliceSize:h,strides:p,outputSize:f}=s._164.calculateShapes(c,o,a.shape),b=false,m=n.bufferSync(o),g=n.bufferSync(c),v=n.bufferSync(a),w=Object(i.a)(m,g,a.shape,f,h,l,u,p,v,b);return n.makeTensorInfo(a.shape,w.dtype,w.values)}var s=n(0),i=n(164);const o={kernelName:s._135,backendName:"cpu",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s}=e,{reps:c}=a;Object(i.a)(s,"tile");const u=Object(o.a)(n.bufferSync(s),c);return n.makeTensorInfo(u.shape,u.dtype,u.values)}var s=n(0),i=n(8),o=n(352);const c={kernelName:s._136,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s}=e,{k:c,sorted:u}=a;Object(i.a)(s,"topk");const l=n.data.get(s.dataId).values,[h,p]=Object(o.a)(l,s.shape,s.dtype,c,u);return[n.makeTensorInfo(h.shape,h.dtype,h.values),n.makeTensorInfo(p.shape,p.dtype,p.values)]}var s=n(0),i=n(8),o=n(353);const c={kernelName:s._137,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function transform(t){const{inputs:e,attrs:n,backend:s}=t,{image:image,transforms:i}=e,{interpolation:o,fillMode:c,fillValue:u,outputShape:f}=n,[b,m,g,v]=image.shape,[w,y]=null!=f?f:[m,g],O=[b,w,y,v],x=p._408.computeStrides(image.shape),A=x[0],I=x[1],j=x[2],C=p._408.computeStrides(O),_=C[0],k=C[1],S=C[2],T=p._408.getTypedArrayFromDType(image.dtype,p._408.sizeFromShape(O));T.fill(u);const L=s.data.get(image.dataId).values,B=s.data.get(i.dataId).values;for(let t=0;t<b;++t){const transform=1===i.shape[0]?B:B.subarray(8*t,8*t+8);for(let e=0;e<w;++e)for(let n=0;n<y;++n)for(let s=0;s<v;++s){let i;const p=transform[6]*n+transform[7]*e+1;if(0===p)continue;const f=(transform[0]*n+transform[1]*e+transform[2])/p,b=(transform[3]*n+transform[4]*e+transform[5])/p,v=a(f,g,c),w=a(b,m,c);switch(o){case"nearest":i=l(L,m,g,A,I,j,t,w,v,s,u);break;case"bilinear":i=h(L,m,g,A,I,j,t,w,v,s,u);break;default:throw new Error(`Error in Transform: Expect 'nearest' or 'bilinear', but got ${o}`)}const y=undefined;T[t*_+e*k+n*S+s]=i}return s.makeTensorInfo(O,image.dtype,T)}const N=undefined;return{dataId:s.write(T,O,image.dtype),shape:image.shape,dtype:image.dtype}}function a(t,e,n){switch(n){case"reflect":return s(t,e);case"wrap":return i(t,e);case"nearest":return c(t,e);default:return o(t,e)}}function s(t,e){let n=t;if(n<0)if(e<=1)n=0;else{const t=2*e;n<t&&(n=t*Math.trunc(-n/t)+n),n=n<-e?n+t:-n-1}else if(n>e-1)if(e<=1)n=0;else{const t=2*e;n-=t*Math.trunc(n/t),n>=e&&(n=t-n-1)}return p._408.clamp(0,n,e-1)}function i(t,e){let n=t;if(n<0)if(e<=1)n=0;else{const t=e-1;n+=e*(Math.trunc(-n/t)+1)}else if(n>e-1)if(e<=1)n=0;else{const t=e-1;n-=e*Math.trunc(n/t)}return p._408.clamp(0,n,e-1)}function o(t,e){return t}function c(t,e){return p._408.clamp(0,t,e-1)}function u(t,e,n,a,s,i,o,c,u,l,h){const p=undefined;return 0<=c&&c<e&&0<=u&&u<n?t[o*a+c*s+u*i+l]:h}function l(t,e,n,a,s,i,o,c,l,h,p){const f=undefined,b=undefined;return u(t,e,n,a,s,i,o,Math.round(c),Math.round(l),h,p)}function h(t,e,n,a,s,i,o,c,l,h,p){const f=Math.floor(c),b=Math.floor(l),m=f+1,g=b+1,v=undefined,w=undefined;return(m-c)*((g-l)*u(t,e,n,a,s,i,o,f,b,h,p)+(l-b)*u(t,e,n,a,s,i,o,f,g,h,p))+(c-f)*((g-l)*u(t,e,n,a,s,i,o,m,b,h,p)+(l-b)*u(t,e,n,a,s,i,o,m,g,h,p))}var p=n(0);const f={kernelName:p._138,backendName:"cpu",kernelFunc:transform};e.a=f},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,attrs:n,backend:a}=t,{axis:s}=n,{x:c}=e;Object(i.a)(c,"unique");const u=a.data.get(c.dataId).values,{outputValues:l,outputShape:h,indices:p}=Object(o.a)(u,s,c.shape,c.dtype);return[a.makeTensorInfo(h,c.dtype,l),a.makeTensorInfo([p.length],"int32",p)]}var s=n(0),i=n(8),o=n(354);const c={kernelName:s._140,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{value:s}=e;let{axis:c}=a;c<0&&(c+=s.shape.length);const u=s.shape.length,l=s.shape[c],h=new Array(u-1);let p=0;for(let t=0;t<u;t++)t!==c&&(h[p++]=s.shape[t]);const f=new Array(u).fill(0),size=s.shape.slice();size[c]=1;const b=new Array(l);for(let t=0;t<b.length;t++){f[c]=t;const e=Object(o.a)({inputs:{x:s},backend:n,attrs:{begin:f,size:size}});b[t]=Object(i.a)({inputs:{x:e},backend:n,attrs:{shape:h}}),n.disposeIntermediateTensorInfo(e)}return b}var s=n(0),i=n(40),o=n(87);const c={kernelName:s._141,backendName:"cpu",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:f,segmentIds:b}=e,{numSegments:m}=a;Object(i.a)(f,"unsortedSegmentSum");const g=undefined,v=undefined,w=[],y=[],O=f.shape.length-b.shape.length;let x=b;for(let t=0;t<O;++t){const expanded=Object(u.a)({inputs:{input:x},backend:n,attrs:{dim:t+1}});x=expanded,y.push(expanded)}for(let t=0;t<m;++t){const e=s._408.createScalarValue(t,"int32"),a=n.makeTensorInfo([],"int32",e),i=Object(c.a)({inputs:{a:a,b:x},backend:n}),u=Object(o.a)({inputs:{x:i},backend:n,attrs:{dtype:"float32"}}),h=Object(l.a)({inputs:{a:u,b:f},backend:n}),b=Object(p.a)({inputs:{x:h},backend:n,attrs:{axis:0,keepDims:false}});w.push(b),y.push(a),y.push(i),y.push(u),y.push(h),y.push(b)}const A=Object(h.a)({inputs:w,backend:n,attrs:{axis:0}});return y.forEach((t=>n.disposeIntermediateTensorInfo(t))),A}var s=n(0),i=n(8),o=n(103),c=n(217),u=n(224),l=n(105),h=n(367),p=n(128);const f={kernelName:s._142,backendName:"cpu",kernelFunc:a};e.a=f},function(t,e,n){"use strict";var a=n(0),s=n(370),i=n(1056);n.d(e,"f",(function(){return i.a}));var o=n(373);n.d(e,"a",(function(){return o.a})),n.d(e,"b",(function(){return o.b})),n.d(e,"c",(function(){return o.c})),n.d(e,"d",(function(){return o.d})),n.d(e,"e",(function(){return o.e})),n.d(e,"h",(function(){return o.f})),
/**
* @license
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
a._205.isBrowser()&&Object(a._328)("webgl",(()=>new s.a),2);const c={forceHalfFloat:o.c};e.g=c},function(t,e,n){"use strict";var a=n(0),s=n(43);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=Object(a._222)();i.registerFlag("HAS_WEBGL",(()=>i.getNumber("WEBGL_VERSION")>0)),i.registerFlag("WEBGL_VERSION",(()=>Object(s.isWebGLVersionEnabled)(2)?2:Object(s.isWebGLVersionEnabled)(1)?1:0)),i.registerFlag("WEBGL_CHECK_NUMERICAL_PROBLEMS",(()=>false)),i.registerFlag("WEBGL_BUFFER_SUPPORTED",(()=>2===i.get("WEBGL_VERSION"))),i.registerFlag("WEBGL_CPU_FORWARD",(()=>true)),i.registerFlag("WEBGL_FORCE_F16_TEXTURES",(()=>false)),i.registerFlag("WEBGL_PACK",(()=>i.getBool("HAS_WEBGL"))),i.registerFlag("WEBGL_PACK_NORMALIZATION",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_PACK_CLIP",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_PACK_DEPTHWISECONV",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_PACK_BINARY_OPERATIONS",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_PACK_UNARY_OPERATIONS",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_PACK_ARRAY_OPERATIONS",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_PACK_IMAGE_OPERATIONS",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_PACK_REDUCE",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_LAZILY_UNPACK",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_CONV_IM2COL",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_PACK_CONV2DTRANSPOSE",(()=>i.getBool("WEBGL_PACK"))),i.registerFlag("WEBGL_MAX_TEXTURE_SIZE",(()=>Object(s.getWebGLMaxTextureSize)(i.getNumber("WEBGL_VERSION")))),i.registerFlag("WEBGL_MAX_TEXTURES_IN_SHADER",(()=>Object(s.getMaxTexturesInShader)(i.getNumber("WEBGL_VERSION")))),i.registerFlag("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION",(()=>{const t=i.getNumber("WEBGL_VERSION");return 0===t?0:Object(s.getWebGLDisjointQueryTimerVersion)(t)})),i.registerFlag("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE",(()=>i.getNumber("WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_VERSION")>0&&!a._205.isMobile())),i.registerFlag("WEBGL_RENDER_FLOAT32_CAPABLE",(()=>Object(s.isCapableOfRenderingToFloatTexture)(i.getNumber("WEBGL_VERSION")))),i.registerFlag("WEBGL_RENDER_FLOAT32_ENABLED",(()=>!i.getBool("WEBGL_FORCE_F16_TEXTURES")&&i.getBool("WEBGL_RENDER_FLOAT32_CAPABLE"))),i.registerFlag("WEBGL_DOWNLOAD_FLOAT_ENABLED",(()=>Object(s.isDownloadFloatTextureEnabled)(i.getNumber("WEBGL_VERSION")))),i.registerFlag("WEBGL_FENCE_API_ENABLED",(()=>Object(s.isWebGLFenceEnabled)(i.getNumber("WEBGL_VERSION")))),i.registerFlag("WEBGL_SIZE_UPLOAD_UNIFORM",(()=>{const t=undefined;return i.getBool("WEBGL_RENDER_FLOAT32_ENABLED")?4:0})),i.registerFlag("WEBGL_DELETE_TEXTURE_THRESHOLD",(()=>-1),(t=>{if(!("number"==typeof t))throw new Error(`WEBGL_DELETE_TEXTURE_THRESHOLD must be a number but got ${t}.`);if(t<0&&-1!==t)throw new Error(`WEBGL_DELETE_TEXTURE_THRESHOLD must be -1 (indicating never delete) or at least 0, but got ${t}.`)})),i.registerFlag("WEBGL_FLUSH_THRESHOLD",(()=>a._205.isMobile()?1:-1),(t=>{if(!("number"==typeof t))throw new Error(`WEBGL_FLUSH_THRESHOLD must be a number but got ${t}.`);if(t<0&&-1!==t)throw new Error(`WEBGL_FLUSH_THRESHOLD must be -1 (indicating never manual flush) or at least 0, but got ${t}.`)})),i.registerFlag("CPU_HANDOFF_SIZE_THRESHOLD",(()=>128)),i.registerFlag("WEBGL_USE_SHAPES_UNIFORMS",(()=>false)),i.registerFlag("TOPK_LAST_DIM_CPU_HANDOFF_SIZE_THRESHOLD",(()=>1e5)),i.registerFlag("TOPK_K_CPU_HANDOFF_THRESHOLD",(()=>128)),i.registerFlag("WEBGL_EXP_CONV",(()=>false)),i.registerFlag("SOFTWARE_WEBGL_ENABLED",(()=>i.getBool("IS_TEST"))),i.registerFlag("WEBGL_MAX_SIZE_FOR_NARROW_TEXTURE",(()=>1/0)),i.registerFlag("WEBGL_AUTO_SQUARIFY_NARROW_TEXTURE_SHAPE",(()=>false)),i.registerFlag("WEBGL2_ISNAN_CUSTOM",(()=>false)),i.registerFlag("ENGINE_COMPILE_ONLY",(()=>false))},function(t,e,n){"use strict";var a=n(53),s=n(38),i=n(76),o=n(52);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class c{constructor(t){this.variableNames=["A"],this.packedInputs=false,this.packedOutput=true,this.outPackingScheme=o.a.DENSE,this.customUniforms=[{name:"texShape",type:"ivec2"}];const e=Object(a.a)();this.outputShape=t,this.enableShapeUniforms=Object(s.e)(this.outputShape.length),this.userCode=`\n ivec3 outCoordsFromFlatIndex(int index) {\n ${this.enableShapeUniforms?i.f(["r","c","d"],t):i.d(["r","c","d"],t)}\n return ivec3(r, c, d);\n }\n\n void main() {\n ivec2 resTexRC = ivec2(resultUV.yx * vec2(texShape[0], texShape[1]));\n int index = 4 * (resTexRC.x * texShape[1] + resTexRC.y);\n\n vec4 result = vec4(0.);\n\n for (int i=0; i<4; i++) {\n int flatIndex = index + i;\n ivec3 rc = outCoordsFromFlatIndex(flatIndex);\n result[i] = getA(rc.x, rc.y, rc.z);\n }\n\n ${e.output} = result;\n }\n `}}e.a=c},function(t,e,n){"use strict";var a=n(53),s=n(38),i=n(76),o=n(52);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class c{constructor(t){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true,this.outPackingScheme=o.a.DENSE,this.customUniforms=[{name:"texShape",type:"ivec2"}];const e=Object(a.a)();this.outputShape=t,this.enableShapeUniforms=Object(s.e)(this.outputShape.length),this.userCode=`\n ivec3 outCoordsFromFlatIndex(int index) {\n ${this.enableShapeUniforms?i.f(["r","c","d"],t):i.d(["r","c","d"],t)}\n return ivec3(r, c, d);\n }\n\n void main() {\n ivec2 resTexRC = ivec2(resultUV.yx * vec2(texShape[0], texShape[1]));\n int index = 4 * (resTexRC.x * texShape[1] + resTexRC.y);\n\n vec4 result = vec4(0.);\n\n for (int i=0; i<4; i++) {\n int flatIndex = index + i;\n ivec3 rc = outCoordsFromFlatIndex(flatIndex);\n result[i] = getChannel(getA(rc.x, rc.y, rc.z), vec2(rc.y, rc.z));\n }\n\n ${e.output} = result;\n }\n `}}e.a=c},function(t,e,n){"use strict";var a=n(53),s=n(76),i=n(52);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class o{constructor(t){this.variableNames=["A"],this.outTexUsage=i.c.DOWNLOAD;const e=Object(a.a)();this.outputShape=t,this.userCode=`\n ${s.a}\n\n void main() {\n float x = getAAtOutCoords();\n ${e.output} = encode_float(x);\n }\n `}}e.a=o},function(t,e,n){"use strict";var a=n(53),s=n(76),i=n(52);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class o{constructor(t){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=false,this.outTexUsage=i.c.DOWNLOAD;const e=Object(a.a)();this.outputShape=t,this.userCode=`\n ${s.a}\n\n void main() {\n ivec3 coords = getOutputCoords();\n float x = getChannel(getAAtOutCoords(), vec2(coords.y, coords.z));\n ${e.output} = encode_float(x);\n }\n `}}e.a=o},function(t,e,n){"use strict";var a=n(53),s=n(38),i=n(76);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={R:0,G:1,B:2,A:3};class c{constructor(t,e=false,n="RGBA"){this.variableNames=["A"],this.customUniforms=[{name:"texShape",type:"ivec2"}];const c=Object(a.a)();this.outputShape=t,this.enableShapeUniforms=Object(s.e)(this.outputShape.length);let u="result";e&&(u="floor(result * 255. + 0.5)");let l="";for(let t=0;t<n.length;t++){const e=n[t];l+=`\n if(offset == ${t}) {\n result = values[${o[e]}];\n }`}this.userCode=`\n ${this.enableShapeUniforms?i.c():i.b(t)}\n\n void main() {\n ivec3 coords = getOutputCoords();\n int flatIndex = getFlatIndex(coords);\n float result = 0.;\n int offset = imod(flatIndex, ${n.length});\n\n flatIndex = idiv(flatIndex, ${n.length}, 1.);\n\n int r = flatIndex / texShape[1];\n if (r < texShape[0]) {\n int c = imod(flatIndex, texShape[1]);\n vec2 uv = (vec2(c, r) + halfCR) / vec2(texShape[1], texShape[0]);\n vec4 values = ${c.texture2D}(A, uv);\n ${l}\n }\n ${c.output} = vec4(${u}, 0., 0., 0.);\n }\n `}}e.a=c},function(t,e,n){"use strict";var a=n(53),s=n(38),i=n(76);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class o{constructor(t,e=false){this.variableNames=["A"],this.packedInputs=false,this.packedOutput=true,this.customUniforms=[{name:"texShape",type:"ivec2"}];const n=Object(a.a)();this.outputShape=t,this.enableShapeUniforms=Object(s.e)(this.outputShape.length);let o="",c="result";e&&(c="floor(result * 255. + 0.5)");for(let row=0;row<=1;row++)for(let e=0;e<=1;e++){const a=2*row+e;o+=`\n localCoords = coords;\n if(localCoords[2] + ${e} < ${this.enableShapeUniforms?"outShape[2]":`${t[2]}`}) {\n localCoords[2] += ${e};\n if (localCoords[1] + ${row} < ${this.enableShapeUniforms?"outShape[1]":`${t[1]}`}) {\n localCoords[1] += ${row};\n\n flatIndex = getFlatIndex(localCoords);\n offset = imod(flatIndex, 4);\n\n flatIndex = idiv(flatIndex, 4, 1.);\n\n int r = flatIndex / texShape[1];\n int c = imod(flatIndex, texShape[1]);\n vec2 uv = (vec2(c, r) + halfCR) / vec2(texShape[1], texShape[0]);\n values = ${n.texture2D}(A, uv);\n\n if (offset == 0) {\n result[${a}] = values[0];\n } else if (offset == 1) {\n result[${a}] = values[1];\n } else if (offset == 2) {\n result[${a}] = values[2];\n } else {\n result[${a}] = values[3];\n }\n }\n }\n `}this.userCode=`\n ${this.enableShapeUniforms?i.c():i.b(t)}\n\n void main() {\n ivec3 coords = getOutputCoords();\n\n vec4 result = vec4(0.);\n int flatIndex, r, c, offset;\n ivec3 localCoords;\n vec2 uv;\n vec4 values;\n\n ${o}\n\n ${n.output} = ${c};\n }\n `}}e.a=o},function(t,e,n){"use strict";var a=n(38),s=n(60),i=n(28);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class o{constructor(t){if(this.variableNames=["A"],this.packedInputs=false,this.packedOutput=true,this.outputShape=t,this.rank=t.length,this.enableShapeUniforms=Object(a.e)(this.outputShape.length),0===this.rank)this.userCode="\n void main() {\n setOutput(vec4(getA(), 0., 0., 0.));\n }\n ";else{const t=Object(s.a)("rc",this.rank),e=Object(i.a)(this.rank),n=this.getOutOfBoundsCondition(t),a=this.getSetup(t),o=this.getOutput(t);this.userCode=`\n void main() {\n ${e} rc = getOutputCoords();\n\n if(${n}) {\n setOutput(vec4(0));\n } else {\n ${a}\n\n setOutput(vec4(${o}));\n }\n }\n `}}getSourceCoordsArr(t){const e=[];for(let row=0;row<=1;row++)for(let n=0;n<=1;n++){let a=`${0===row?"r":"rp1"}, ${0===n?"c":"cp1"}`;for(let d=2;d<this.rank;d++)a=`${t[t.length-1-d]},`+a;e.push(a)}return e}getOutOfBoundsCondition(t){if(1===this.rank)return`rc > ${this.enableShapeUniforms?"outShape":this.outputShape[0]}`;let e="";for(let n=this.rank-2;n<this.rank;n++)e+=`${t[n]} >= ${this.enableShapeUniforms?`outShape[${n}]`:this.outputShape[n]}`,n<this.rank-1&&(e+="||");return e}getSetup(t){if(1===this.rank)return"";const e=t.slice(-2),n=this.enableShapeUniforms?`outShape[${this.rank} - 1]`:this.outputShape[this.rank-1],row=this.enableShapeUniforms?`outShape[${this.rank} - 2]`:this.outputShape[this.rank-2];return`\n int r = ${e[0]};\n int c = ${e[1]};\n int rp1 = r + 1;\n int cp1 = c + 1;\n\n bool cEdge = cp1 >= ${n};\n bool rEdge = rp1 >= ${row};\n `}getOutput(t){const e=this.getSourceCoordsArr(t);if(1===this.rank){const t=undefined;return`getA(rc), (rc + 1 >= ${this.enableShapeUniforms?"outShape":this.outputShape[0]} ? 0. : getA(rc + 1)), 0, 0`}return`getA(${e[0]}),\n cEdge ? 0. : getA(${e[1]}),\n rEdge ? 0. : getA(${e[2]}),\n rEdge || cEdge ? 0. : getA(${e[3]})`}}e.a=o},function(t,e,n){"use strict";function a(t,e){const n=t;if(e===n.R32F)return 4;if(e===n.R16F)return 2;if(e===n.RGBA32F)return 16;if(e===t.RGBA)return 16;if(e===n.RGBA16F)return 8;if(e===n.RGBA8)return 4;throw new Error(`Unknown internal format ${e}`)}function s(shape,t,e,n,s){const o=i(t,n);let c;if(s){const[t,e]=Object(p.e)(shape[0],shape[1]);c=t*e}else{const[t,e]=Object(p.i)(shape[0],shape[1]);c=t*e}const u=undefined;return c*a(e,o)}function i(t,e){switch(t){case p.b.PACKED_2X2_FLOAT32:return Object(h.getInternalFormatForPackedMatrixTexture)(e);case p.b.PACKED_2X2_FLOAT16:return Object(h.getInternalFormatForFloat16PackedMatrixTexture)(e);case p.b.UNPACKED_FLOAT32:return Object(h.getInternalFormatForFloat32MatrixTexture)(e);case p.b.UNPACKED_FLOAT16:return Object(h.getInternalFormatForFloat16MatrixTexture)(e);case p.b.PACKED_4X1_UNSIGNED_BYTE:return Object(h.getInternalFormatForUnsignedBytesMatrixTexture)(e);default:throw new Error(`Unknown physical texture type ${t}`)}}function o(t){return Object(l._222)().getBool("WEBGL_RENDER_FLOAT32_ENABLED")?t?p.b.PACKED_2X2_FLOAT32:p.b.UNPACKED_FLOAT32:t?p.b.PACKED_2X2_FLOAT16:p.b.UNPACKED_FLOAT16}function c(t,e){if(t===p.c.UPLOAD)return p.b.PACKED_2X2_FLOAT32;if(t===p.c.RENDER||null==t)return o(e);if(t===p.c.DOWNLOAD||t===p.c.PIXELS)return p.b.PACKED_4X1_UNSIGNED_BYTE;throw new Error(`Unknown logical texture type ${t}`)}function u(t,e,n){return`${t[0]}_${t[1]}_${e}_${n}`}var l=n(0),h=n(226),p=n(52);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class f{constructor(t){this.gpgpu=t,this.numUsedTextures=0,this.numFreeTextures=0,this._numBytesAllocated=0,this._numBytesFree=0,this.freeTextures={},this.usedTextures={},this.logEnabled=false}acquireTexture(t,e,n){const a=c(e,n),i=u(t,a,n);i in this.freeTextures||(this.freeTextures[i]=[]),i in this.usedTextures||(this.usedTextures[i]=[]);const o=s(t,a,this.gpgpu.gl,this.gpgpu.textureConfig,n);if(this.freeTextures[i].length>0){this.numFreeTextures--,this.numUsedTextures++,this._numBytesFree-=o,this.log();const t=this.freeTextures[i].pop();return this.usedTextures[i].push(t),t}let l;return a===p.b.PACKED_2X2_FLOAT32?l=this.gpgpu.createPackedMatrixTexture(t[0],t[1]):a===p.b.PACKED_2X2_FLOAT16?l=this.gpgpu.createFloat16PackedMatrixTexture(t[0],t[1]):a===p.b.UNPACKED_FLOAT32?l=this.gpgpu.createFloat32MatrixTexture(t[0],t[1]):a===p.b.UNPACKED_FLOAT16?l=this.gpgpu.createFloat16MatrixTexture(t[0],t[1]):a===p.b.PACKED_4X1_UNSIGNED_BYTE&&(l=this.gpgpu.createUnsignedBytesMatrixTexture(t[0],t[1])),this.usedTextures[i].push(l),this.numUsedTextures++,this._numBytesAllocated+=o,this.log(),l}releaseTexture(t,shape,e,n){if(null==this.freeTextures)return;const a=c(e,n),i=u(shape,a,n);i in this.freeTextures||(this.freeTextures[i]=[]);const o=s(shape,a,this.gpgpu.gl,this.gpgpu.textureConfig,n),h=Object(l._222)().getNumber("WEBGL_DELETE_TEXTURE_THRESHOLD");-1!==h&&this._numBytesAllocated>h?(this.gpgpu.deleteMatrixTexture(t.texture),this._numBytesAllocated-=o):(this.freeTextures[i].push(t),this.numFreeTextures++,this._numBytesFree+=o),this.numUsedTextures--;const p=this.usedTextures[i],f=p&&p.indexOf(t);if(null==f||f<0)throw new Error("Cannot release a texture that was never provided by this texture manager");p[f]=p[p.length-1],p.pop(),this.log()}log(){if(!this.logEnabled)return;const t=this.numFreeTextures+this.numUsedTextures;console.log("Free/Used",`${this.numFreeTextures} / ${this.numUsedTextures}`,`(${t})`);const e=this._numBytesFree/this._numBytesAllocated;console.log(`Bytes allocated: ${this._numBytesAllocated}`),console.log(`Bytes unused: ${this._numBytesFree} (${Math.round(100*e)}%)`)}get numBytesAllocated(){return this._numBytesAllocated}get numBytesFree(){return this._numBytesFree}getNumUsedTextures(){return this.numUsedTextures}getNumFreeTextures(){return this.numFreeTextures}dispose(){if(null!=this.freeTextures){for(const t in this.freeTextures)this.freeTextures[t].forEach((t=>{this.gpgpu.deleteMatrixTexture(t.texture)}));for(const t in this.usedTextures)this.usedTextures[t].forEach((t=>{this.gpgpu.deleteMatrixTexture(t.texture)}));this.freeTextures=null,this.usedTextures=null,this.numUsedTextures=0,this.numFreeTextures=0,this._numBytesAllocated=0,this._numBytesFree=0}}}e.a=f},function(t,e,n){"use strict";var a=n(38),s=n(60),i=n(28);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class o{constructor(t){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=false,this.outputShape=t,this.enableShapeUniforms=Object(a.e)(this.outputShape.length);const e=t.length,n=Object(s.a)("rc",e),o=Object(i.a)(e),c=Object(s.b)(e,n),u=n.slice(-2),l=e<=1?"rc":`vec2(${u.join(",")})`;this.userCode=`\n void main() {\n ${o} rc = getOutputCoords();\n vec4 packedInput = getA(${c});\n\n setOutput(getChannel(packedInput, ${l}));\n }\n `}}e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));
/** @license See the LICENSE file. */
const a="4.15.0"},function(t,e,n){"use strict";var a=n(0),s=n(1058),i=n(1065),o=n(1066),c=n(1067),u=n(1068),l=n(1069),h=n(1072),p=n(1073),f=n(1074),b=n(1077),m=n(1078),g=n(1079),v=n(1080),w=n(1081),y=n(1082),O=n(1083),x=n(1084),A=n(1085),I=n(1086),j=n(1087),C=n(1088),_=n(1091),k=n(1094),S=n(1095),T=n(1096),L=n(1097),B=n(1099),N=n(1100),E=n(77),M=n(1103),F=n(381),W=n(1108),z=n(1110),P=n(1111),G=n(1113),V=n(1114),H=n(1115),Z=n(1116),X=n(1117),U=n(1118),$=n(1120),Y=n(1121),J=n(1122),K=n(1123),tt=n(1125),nt=n(1126),rt=n(1127),at=n(1128),st=n(1130),ot=n(1132),ct=n(1133),ut=n(1134),lt=n(1135),dt=n(1136),ht=n(388),pt=n(389),ft=n(1137),bt=n(1138),mt=n(131),gt=n(1141),vt=n(1143),wt=n(1144),yt=n(1145),Ot=n(1148),xt=n(1149),At=n(1150),jt=n(391),Ct=n(1153),_t=n(1154),kt=n(50),St=n(1155),Tt=n(169),Lt=n(1156),Bt=n(1157),Nt=n(1158),Mt=n(374),Dt=n(1159),Ft=n(1160),Rt=n(1161),Wt=n(1162),zt=n(1163),Pt=n(1164),Gt=n(1165),Vt=n(1166),Ht=n(1167),Zt=n(1170),Xt=n(392),Ut=n(1173),$t=n(1174),Yt=n(1175),Jt=n(1176),qt=n(1177),Kt=n(1178),Qt=n(1180),te=n(1182),ee=n(1183),ne=n(1184),re=n(1187),ae=n(1188),se=n(228),ie=n(1190),oe=n(1191),ce=n(1192),ue=n(1193),le=n(380),pe=n(1194),fe=n(1196),be=n(1197),ge=n(398),ve=n(1200),we=n(375),ye=n(1201),Oe=n(1202),xe=n(1203),Ae=n(1204),Ie=n(399),je=n(130),Ce=n(395),_e=n(1205),ke=n(1206),Se=n(1207),Te=n(17),Le=n(1208),Be=n(1211),Ne=n(1213),Ee=n(1216),Fe=n(1218),Re=n(1221),We=n(1223),ze=n(1224),Pe=n(1225),Ge=n(1227),Ve=n(1229),Ze=n(1231),Xe=n(1232),Ue=n(1233),$e=n(1234),Ye=n(1235),Je=n(107),qe=n(394),Ke=n(1236),Qe=n(1237),tn=n(1238),en=n(1239),nn=n(1240),rn=n(1241),an=n(1242),sn=n(1243),on=n(1244),cn=n(1245),un=n(1246),ln=n(1247),dn=n(1248),hn=n(1249),pn=n(1251),fn=n(1252),bn=n(1253),mn=n(396),gn=n(168),vn=n(1254),wn=n(1255),yn=n(1256),On=n(400),xn=n(1258),An=n(1260),In=n(47),jn=n(1262),Cn=n(1263),_n=n(1264),kn=n(397);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const Sn=[s.a,i.a,o.a,c.a,u.a,l.a,h.a,p.a,f.a,b.a,m.a,g.a,v.a,w.a,y.a,O.a,x.a,A.a,I.a,j.a,C.a,_.a,k.a,S.a,T.a,L.a,B.a,N.a,E.b,M.a,F.b,W.a,z.a,P.a,G.a,V.a,H.a,Z.a,X.a,U.a,$.a,Y.a,J.a,K.a,tt.a,nt.a,rt.a,at.a,st.a,ot.a,ct.a,ut.a,lt.a,dt.a,ht.b,pt.b,ft.a,bt.a,mt.b,gt.a,vt.a,wt.a,yt.a,Ot.a,xt.a,At.a,jt.b,Ct.a,_t.a,kt.b,St.a,Tt.b,Lt.a,Bt.a,Nt.a,Mt.c,Dt.a,Ft.a,Rt.a,Wt.a,zt.a,Pt.a,Gt.a,Vt.a,Ht.a,Zt.a,Xt.b,Ut.a,$t.a,Yt.a,Jt.a,qt.a,Kt.a,Qt.a,te.a,ee.a,ne.a,re.a,ae.a,se.b,ie.a,oe.a,ce.a,ue.a,le.b,pe.a,fe.a,be.a,ge.b,ve.a,we.c,ye.a,Oe.a,xe.a,Ae.a,Ie.b,je.b,Ce.b,_e.a,ke.a,Se.a,Te.b,Le.a,Be.a,Ne.a,Ee.a,Fe.a,Re.a,We.a,ze.a,Pe.a,Ge.a,Ve.a,Ze.a,Xe.a,Ue.a,$e.a,Ye.a,Je.b,qe.b,Ke.a,Qe.a,tn.a,en.a,nn.a,rn.a,an.a,sn.a,on.a,cn.a,un.a,ln.a,dn.a,hn.a,pn.a,fn.a,bn.a,mn.b,gn.b,vn.a,wn.a,yn.a,On.b,xn.a,An.a,In.b,jn.a,Cn.a,_n.a,kn.b];for(const t of Sn)Object(a._330)(t)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{a:s,b:o,bias:c,preluActivationWeights:u}=e,{transposeA:l,transposeB:h,activation:p,leakyreluAlpha:f}=a;return Object(i.b)({a:s,b:o,transposeA:l,transposeB:h,backend:n,bias:c,preluActivationWeights:u,leakyreluAlpha:f,activation:p})}var s=n(0),i=n(227);const o={kernelName:s._146,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(input,t,e){const n=[Object(i.getBatchDim)(input.shape),...Object(i.getRowsCols)(input.shape)],a={dtype:input.dtype,shape:n,dataId:input.dataId},o=[Object(i.getBatchDim)(t),...Object(i.getRowsCols)(t)],c=new s.a(o,n),u=true,l=[n],h=e.runWebGLProgram(c,[a],input.dtype,l,u);return{dataId:h.dataId,shape:t,dtype:h.dtype}}e.a=a;var s=n(372),i=n(43)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const u=e,l=t.shape.length,h=s._408.parseAxisParam(u,t.shape);let p=h;const f=s._164.getAxesPermutation(p,l),b=null!=f;let m=t;b&&(m=Object(c.a)(t,f,a),p=s._164.getInnerMostAxes(p.length,l)),s._164.assertAxesAreInnerMostDims("sum",p,l);const[g,v]=s._164.computeOutAndReduceShapes(m.shape,p);let w=g;n&&(w=s._164.expandShapeToKeepDim(g,h));const y=s._408.sizeFromShape(v),O=undefined,x=s._408.sizeFromShape(t.shape)/y,A=Object(o.a)({inputs:{x:m},attrs:{shape:[x,y]},backend:a}),I=Object(s._381)(t.dtype),j=Object(i.a)(A,I,"sum",a),C=Object(o.a)({inputs:{x:j},attrs:{shape:w},backend:a});return a.disposeIntermediateTensorInfo(A),a.disposeIntermediateTensorInfo(j),b&&a.disposeIntermediateTensorInfo(m),C}e.a=a;var s=n(0),i=n(89),o=n(17),c=n(129)},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e){this.variableNames=["x"];const{windowSize:n,batchSize:s,inSize:i,outSize:o}=t;this.outputShape=[s,o];const c=4*Math.floor(n/4),u=n%4;let l="sumValue += dot(values, ones);";if(null!=e){const t=1/e;l=`sumValue += dot(values * ${a._408.isInt(t)?t.toPrecision(2):t}, ones);`}let h="";i%n>0&&(h=`\n if (inIdx < 0 || inIdx >= ${i}) {\n return 0.0;\n }\n `),this.userCode=`\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float getValue(int batch, int inIdx) {\n ${h}\n return getX(batch, inIdx);\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = outIdx * ${n};\n\n float sumValue = 0.0;\n\n for (int i = 0; i < ${c}; i += 4) {\n int inIdx = inOffset + i;\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n getValue(batch, inIdx + 3)\n );\n\n ${l}\n }\n\n int inIdx = inOffset + ${c};\n if (${1===u}) {\n vec4 values = vec4(getValue(batch, inIdx), 0.0, 0.0, 0.0);\n\n ${l}\n } else if (${2===u}) {\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1), 0.0, 0.0);\n\n ${l}\n } else if (${3===u}) {\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2), 0.0);\n\n ${l}\n }\n setOutput(sumValue);\n }\n `}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e){this.variableNames=["x"];const{windowSize:n,batchSize:a,inSize:s,outSize:i}=t;this.outputShape=[a,i];let o="0.0",c="";"prod"===e?o="1.0":"min"===e?(o="1.0 / 1e-20",c="min"):"max"===e&&(o="-1.0 / 1e-20",c="max");let u=`${e}(${e}(${e}(minMaxValue[0], minMaxValue[1]), minMaxValue[2]), minMaxValue[3])`;"sum"===e?u="sumValue":"prod"===e?u="prodValue":"all"===e?u="allValue":"any"===e&&(u="anyValue");const l=4*Math.floor(n/4),h=n%4;let p=`\n if (${"sum"===e}) {\n sumValue += dot(values, ones);\n } else if (${"prod"===e}) {\n vec2 tmp = vec2(values[0], values[1]) * vec2(values[2], values[3]);\n prodValue *= tmp[0] * tmp[1];\n } else {\n minMaxValue = ${c}(values, minMaxValue);\n if (${"min"===e} || ${"max"===e}) {\n minMaxValue = ${c}(values, minMaxValue);\n bvec4 isNaN = isnan(values);\n if (isNaN.r || isNaN.g || isNaN.b || isNaN.a) {\n minMaxValue = vec4(NAN);\n }\n }\n }\n `,f="vec4";"all"===e?(o="1.0",p="\n bool reducedAllValue = all(values);\n float floatedReducedAllValue = float(reducedAllValue);\n allValue = float(allValue >= 1.0 && floatedReducedAllValue >= 1.0);\n ",f="bvec4"):"any"===e&&(o="0.0",p="\n bool reducedAnyValue = any(values);\n float floatedReducedAnyValue = float(reducedAnyValue);\n anyValue = float(anyValue >= 1.0 || floatedReducedAnyValue >= 1.0);\n ",f="bvec4");let b="";s%n>0&&(b=`\n if (inIdx < 0 || inIdx >= ${s}) {\n return initializationValue;\n }\n `),this.userCode=`\n const float initializationValue = ${o};\n const vec4 ones = vec4(1.0, 1.0, 1.0, 1.0);\n\n float getValue(int batch, int inIdx) {\n ${b}\n return getX(batch, inIdx);\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = outIdx * ${n};\n\n vec4 minMaxValue = vec4(${o});\n float prodValue = 1.0;\n float sumValue = 0.0;\n float allValue = 1.0;\n float anyValue = 0.0;\n\n for (int i = 0; i < ${l}; i += 4) {\n int inIdx = inOffset + i;\n ${f} values = ${f}(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n getValue(batch, inIdx + 3)\n );\n\n ${p}\n }\n\n int inIdx = inOffset + ${l};\n if (${1===h}) {\n ${f} values = ${f}(\n getValue(batch, inIdx),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n ${p}\n } else if (${2===h}) {\n ${f} values = ${f}(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n initializationValue,\n initializationValue\n );\n\n ${p}\n } else if (${3===h}) {\n ${f} values = ${f}(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n initializationValue\n );\n\n ${p}\n }\n setOutput(${u});\n }\n `}}e.a=a},function(t,e,n){"use strict";function a(t){const e=t.length;if(e>6)throw Error(`Transpose for rank ${e} is not yet supported`);const n=["resRC.x","resRC.y","resRC.z","resRC.w","resRC.u","resRC.v"],a=new Array(e);for(let e=0;e<t.length;e++)a[t[e]]=n[e];return a.join()}var s=n(28);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class i{constructor(t,e){this.variableNames=["A"];const n=new Array(t.length);for(let a=0;a<n.length;a++)n[a]=t[e[a]];this.outputShape=n,this.rank=n.length;const i=Object(s.a)(this.rank),o=a(e);this.userCode=`\n void main() {\n ${i} resRC = getOutputCoords();\n setOutput(getA(${o}));\n }\n `}}e.a=i},function(t,e,n){"use strict";var a=n(60),s=n(28);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,e){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true;const n=new Array(t.length);for(let a=0;a<n.length;a++)n[a]=t[e[a]];if(this.outputShape=n,this.rank=n.length,this.rank>6)throw Error(`Packed transpose for rank ${this.rank} is not yet supported.`);const i=Object(s.a)(this.rank),o=Object(a.c)("rc",this.rank),c=new Array(this.rank);for(let t=0;t<e.length;t++)c[e[t]]=o[t];const u=`vec2(${c.slice(-2).join()})`,l=`++${o[this.rank-1]} < ${n[this.rank-1]}`,h=`getChannel(getA(${c.join()}), ${u})`;this.userCode=`\n void main() {\n ${i} rc = getOutputCoords();\n vec4 result = vec4(0.);\n result[0] = ${h};\n if(${l}) {\n result[1] = ${h};\n }\n --${o[this.rank-1]};\n if(++${o[this.rank-2]} < ${n[this.rank-2]}) {\n result[2] = ${h};\n if(${l}) {\n result[3] = ${h};\n }\n }\n setOutput(result);\n }\n `}}e.a=i},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n}=t,{x:a}=e;if(n.shouldExecuteOnCPU([a])&&"complex64"!==a.dtype){const t=n.texData.get(a.dataId),e=Object(i.H)(t.values);return n.makeTensorInfo(a.shape,a.dtype,e)}let l;return l=Object(s._222)().getBool("WEBGL_PACK_UNARY_OPERATIONS")?new c.f(a.shape,u):new o.i(a.shape,u),n.runWebGLProgram(l,[a],a.dtype)}var s=n(0),i=n(12),o=n(41),c=n(106);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u="return abs(x);",l={kernelName:s.a,backendName:"webgl",kernelFunc:a};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10),i;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=n(41).b+"\n if (abs(x) > 1.) {\n return NAN;\n }\n return acos(x);\n",c=Object(s.d)({opSnippet:o}),u={kernelName:a.b,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(10),i;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=n(41).b+"\n if (x < 1.0) return NAN;\nreturn log(x + sqrt(x * x - 1.0));",c=Object(s.d)({opSnippet:o}),u={kernelName:a.c,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return a + b;",c=Object(s.b)({opSnippet:o,packedOpSnippet:o,supportsComplex:true,cpuKernelImpl:i.a}),u={kernelName:a.h,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,u=e;if(1===u.length)return Object(c.a)({inputs:{x:u[0]},backend:n});if(u.length>Object(s._222)().getNumber("WEBGL_MAX_TEXTURES_IN_SHADER")){const t=Math.floor(u.length/2),e=a({inputs:u.slice(0,t),backend:n}),s=a({inputs:u.slice(t),backend:n});return a({inputs:[e,s],backend:n})}const l=u.map((t=>t.dtype)).reduce(((t,e)=>Object(s._406)(t,e))),h=u.map((t=>t.shape)),p=undefined,f=Object(s._222)().getBool("WEBGL_PACK")?new o.a(u[0].shape,h):new i.a(u[0].shape,h);return n.runWebGLProgram(f,u,l)}var s=n(0),i=n(1070),o=n(1071),c=n(50);const u={kernelName:s.i,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e){this.outputShape=[],this.outputShape=t,this.variableNames=e.map(((t,e)=>`T${e}`));const n=[];this.variableNames.forEach((t=>{n.push(`float v${t} = get${t}AtOutCoords();`)}));const a=this.variableNames.map((t=>`v${t}`)).join(" + ");this.userCode=`\n void main() {\n ${n.join("\n ")}\n\n float result = ${a};\n setOutput(result);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e){this.outputShape=[],this.packedInputs=true,this.packedOutput=true,this.outputShape=t,this.variableNames=e.map(((t,e)=>`T${e}`));const n=[];this.variableNames.forEach((t=>{n.push(`vec4 v${t} = get${t}AtOutCoords();`)}));const a=this.variableNames.map((t=>`v${t}`)).join(" + ");this.userCode=`\n void main() {\n ${n.join("\n ")}\n\n vec4 result = ${a};\n setOutput(result);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function all(t){const{inputs:e,backend:n,attrs:c}=t,{x:u}=e,{axis:l,keepDims:h}=c,p=u.shape.length,f=a._408.parseAxisParam(l,u.shape);let b=f;const m=a._164.getAxesPermutation(b,p);let g=u;null!=m&&(g=Object(o.a)({inputs:{x:u},backend:n,attrs:{perm:m}}),b=a._164.getInnerMostAxes(b.length,p)),a._164.assertAxesAreInnerMostDims("all",b,p);const[v,w]=a._164.computeOutAndReduceShapes(g.shape,b),y=a._408.sizeFromShape(w),O=Object(i.a)({inputs:{x:g},backend:n,attrs:{shape:[-1,y]}}),x=Object(s.a)(O,O.dtype,"all",n);let A;if(h){const t=a._164.expandShapeToKeepDim(v,f);A=Object(i.a)({inputs:{x:x},backend:n,attrs:{shape:t}})}else A=Object(i.a)({inputs:{x:x},backend:n,attrs:{shape:v}});return n.disposeIntermediateTensorInfo(O),n.disposeIntermediateTensorInfo(x),null!=m&&n.disposeIntermediateTensorInfo(g),A}var a=n(0),s=n(89),i=n(17),o=n(47);const c={kernelName:a.j,backendName:"webgl",kernelFunc:all};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e,{axis:l,keepDims:h}=a,p=u.shape.length,f=s._408.parseAxisParam(l,u.shape);let b=f;const m=s._164.getAxesPermutation(b,p);let g=u;null!=m&&(g=Object(c.a)({inputs:{x:u},backend:n,attrs:{perm:m}}),b=s._164.getInnerMostAxes(b.length,p)),s._164.assertAxesAreInnerMostDims("any",b,p);const[v,w]=s._164.computeOutAndReduceShapes(g.shape,b),y=s._408.sizeFromShape(w),O=Object(o.a)({inputs:{x:g},backend:n,attrs:{shape:[-1,y]}}),x=Object(i.a)(O,O.dtype,"any",n);let A;if(h){const t=s._164.expandShapeToKeepDim(v,f);A=Object(o.a)({inputs:{x:x},backend:n,attrs:{shape:t}})}else A=Object(o.a)({inputs:{x:x},backend:n,attrs:{shape:v}});return n.disposeIntermediateTensorInfo(O),n.disposeIntermediateTensorInfo(x),null!=m&&n.disposeIntermediateTensorInfo(g),A}var s=n(0),i=n(89),o=n(17),c=n(47);const u={kernelName:s.k,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{axis:u}=a;let l=s._408.parseAxisParam(u,c.shape);const h=s._164.getAxesPermutation(l,c.shape.length);let p=c;const f=[];null!=h&&(p=Object(o.a)({inputs:{x:c},backend:n,attrs:{perm:h}}),f.push(p),l=s._164.getInnerMostAxes(l.length,p.shape.length)),s._164.assertAxesAreInnerMostDims("argMax",[l[0]],p.shape.length);const b=Object(i.a)(n,p,l[0],"max");return f.forEach((t=>n.disposeIntermediateTensorInfo(t))),b}var s=n(0),i=n(378),o=n(47);const c={kernelName:s.l,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n){this.variableNames=["A"];const{windowSize:a,batchSize:s,outSize:i}=t;n||this.variableNames.push("bestIndicesA"),this.outputShape=[s,i];const o="max"===e?">":"<",c=n?"inOffset + i;":"round(getBestIndicesA(batch, inOffset + i));";this.userCode=`\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = outIdx * ${a};\n\n int bestIndex = inOffset;\n float bestValue = getA(batch, bestIndex);\n\n for (int i = 0; i < ${a}; i++) {\n int inIdx = ${c};\n float candidate = getA(batch, inIdx);\n if (candidate ${o} bestValue) {\n bestValue = candidate;\n bestIndex = inIdx;\n }\n }\n setOutput(float(bestIndex));\n }\n `}}e.a=a},function(t,e,n){"use strict";var a=n(0),s=n(60),i=n(28);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class o{constructor(shape,t,e,n){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true,a._408.assert(shape.length>2,(()=>`Packed arg${e.charAt(0).toUpperCase()+e.slice(1)} supports only inputs with rank above 2.`));const o=shape[shape.length-1],c=Math.ceil(o/t);this.outputShape=shape.slice(0,-1),c>1&&this.outputShape.push(c),n||this.variableNames.push("bestIndicesA");const u=this.outputShape,l=u.length,h=Object(i.a)(l),p=Object(s.a)("coords",l);let f,b;if(1===c){b=l+1;const t=Object(i.a)(b);f=`\n ${t} sourceLocR = ${t}(${p.join()}, 0);\n ++${p[l-1]};\n ${t} sourceLocG = ${t}(${p.join()}, 0);\n ++${p[l-2]};\n ${t} sourceLocA = ${t}(${p.join()}, 0);\n --${p[l-1]};\n ${t} sourceLocB = ${t}(${p.join()}, 0);\n --${p[l-2]};`}else b=l,f=`\n ${h} sourceLocR = coords;\n ++${p[l-1]};\n ${h} sourceLocG = coords;\n ++${p[l-2]};\n ${h} sourceLocA = coords;\n --${p[l-1]};\n ${h} sourceLocB = coords;\n --${p[l-2]};`;const m=["x","y","z","w","u","v"].slice(0,b),g="."+m[b-1],v=m.map((t=>"int "+t)),w=Object(s.a)("sourceLocR",b-1).concat("inIdx.r"),y=Object(s.a)("sourceLocG",b-1).concat("inIdx.g"),O=Object(s.a)("sourceLocB",b-1).concat("inIdx.b"),x=Object(s.a)("sourceLocA",b-1).concat("inIdx.a"),A="max"===e?"greaterThan":"lessThan",I=n?"":`\n inIdx = round(vec4(getBestIndicesAChannel(${w.join()}),\n getBestIndicesAChannel(${y.join()}),\n getBestIndicesAChannel(${O.join()}),\n getBestIndicesAChannel(${x.join()})));`,j=`vec4(\n getAChannel(${w.join()}),\n hasNextCol ? getAChannel(${y.join()}) : 0.,\n hasNextRow ? getAChannel(${O.join()}) : 0.,\n hasNextRow && hasNextCol ? getAChannel(${x.join()}) : 0.)`,C=n?"":`\n float getBestIndicesAChannel(${v.join()}) {\n return getChannel(getBestIndicesA(${m.join()}),\n vec2(${m.slice(-2).join()}));\n }`;this.userCode=`\n float getAChannel(${v.join()}) {\n return getChannel(getA(${m.join()}),\n vec2(${m.slice(-2).join()}));\n }\n ${C}\n void main() {\n ${h} coords = getOutputCoords();\n bool hasNextCol = ${p[l-1]} < ${u[l-1]-1};\n bool hasNextRow = ${p[l-2]} < ${u[l-2]-1};\n ${f}\n ivec4 srcIdx = ivec4(sourceLocR${g}, sourceLocG${g},\n sourceLocB${g}, sourceLocA${g}) * ${t};\n ivec4 inIdx = srcIdx;\n vec4 bestIndex = vec4(inIdx);\n vec4 bestValue = ${j};\n\n for (int i = 0; i < ${t}; i++) {\n inIdx = srcIdx;\n ${I}\n vec4 candidate = ${j};\n bvec4 nan = isnan(candidate);\n bvec4 replace = bvec4(\n vec4(${A}(candidate, bestValue)) * (vec4(1.0) - vec4(nan)));\n\n bestValue = vec4(replace.x ? candidate.x : bestValue.x,\n replace.y ? candidate.y : bestValue.y,\n replace.z ? candidate.z : bestValue.z,\n replace.w ? candidate.w : bestValue.w);\n bestIndex = mix(bestIndex, vec4(inIdx), vec4(replace));\n srcIdx++;\n }\n setOutput(bestIndex);\n }\n `}}e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{axis:u}=a;let l=s._408.parseAxisParam(u,c.shape);const h=s._164.getAxesPermutation(l,c.shape.length);let p=c;const f=[];null!=h&&(p=Object(o.a)({inputs:{x:c},backend:n,attrs:{perm:h}}),f.push(p),l=s._164.getInnerMostAxes(l.length,p.shape.length)),s._164.assertAxesAreInnerMostDims("argMin",[l[0]],p.shape.length);const b=Object(i.a)(n,p,l[0],"min");return f.forEach((t=>n.disposeIntermediateTensorInfo(t))),b}var s=n(0),i=n(378),o=n(47);const c={kernelName:s.m,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10),i;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=n(41).b+"\n if (abs(x) > 1.) {\n return NAN;\n }\n return asin(x);\n",c=Object(s.d)({opSnippet:o}),u={kernelName:a.n,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(10),i;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=n(41).b+"return log(x + sqrt(x * x + 1.0));",c=Object(s.d)({opSnippet:o}),u={kernelName:a.o,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(10),i;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=n(41).b+"\n return atan(x);\n",c=Object(s.d)({opSnippet:o}),u={kernelName:a.p,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(66),i=n(46),o=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c=s.b+"\n return atan(a, b);\n",u="\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 "+i.b+"\n return result;\n",l=Object(o.b)({opSnippet:c,packedOpSnippet:u}),h={kernelName:a.q,backendName:"webgl",kernelFunc:l};e.a=h},function(t,e,n){"use strict";var a=n(0),s=n(10),i;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=n(41).b+"\n if ((x < -1.0) || (x > 1.0)) return NAN;\nreturn (log(1.0 + x) - log(1.0 - x)) / 2.0;",c=Object(s.d)({opSnippet:o}),u={kernelName:a.r,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e;Object(o.assertNotComplex)(u,"avgPool");const{filterSize:l,strides:h,pad:p,dimRoundingMode:f}=a,b=1;s._408.assert(s._164.eitherStridesOrDilationsAreOne(h,1),(()=>`Error in avgPool: Either strides or dilations must be 1. Got strides ${h} and dilations '1'`));const m=s._164.computePool2DInfo(u.shape,l,h,1,p,f);if(1===m.filterWidth&&1===m.filterHeight&&s._408.arraysEqual(m.inShape,m.outShape))return Object(c.a)({inputs:{x:u},backend:n});const g=new i.a(m,"avg",false);return n.runWebGLProgram(g,[u],"float32")}var s=n(0),i=n(90),o=n(43),c=n(50);const u={kernelName:s.s,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o}=e,{filterSize:c,strides:u,pad:l,dimRoundingMode:h,dataFormat:p}=a,f=[1,1,1],b=s._164.computePool3DInfo(o.shape,c,u,f,l,h,p),m=new i.b(b,"avg",false);return n.runWebGLProgram(m,[o],"float32")}var s=n(0),i=n(90);const o={kernelName:s.t,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:o,input:input}=e,c=input,{filterSize:u,strides:l,pad:h,dimRoundingMode:p}=a,f=[1,1,1],b=s._164.computePool3DInfo(c.shape,u,l,f,h,p),m=new i.b(b);return n.runWebGLProgram(m,[o],c.dtype)}var s=n(0),i=n(379);const o={kernelName:s.u,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:c,input:input}=e,u=input;Object(o.assertNotComplex)([c,input],"avgPoolGrad");const{filterSize:l,strides:h,pad:p}=a,f=s._164.computePool2DInfo(u.shape,l,h,1,p),b=new i.a(f);return n.runWebGLProgram(b,[c],u.dtype)}var s=n(0),i=n(379),o=n(43);const c={kernelName:s.v,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{a:s,b:o}=e,{transposeA:c,transposeB:u}=a;return Object(i.b)({a:s,b:o,transposeA:c,transposeB:u,backend:n})}var s=n(0),i=n(227);const o={kernelName:s.w,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(1089),i=n(1090);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=({inputs:t,backend:e,attrs:n})=>{const{x:o,mean:c,variance:u,offset:l,scale:h}=t;a._408.assert(c.shape.length===u.shape.length,(()=>"Batch normalization gradient requires mean and variance to have equal ranks.")),a._408.assert(null==l||c.shape.length===l.shape.length,(()=>"Batch normalization gradient requires mean and offset to have equal ranks.")),a._408.assert(null==h||c.shape.length===h.shape.length,(()=>"Batch normalization gradient requires mean and scale to have equal ranks."));let{varianceEpsilon:p}=n;null==p&&(p=.001);const f=[o,c,u];let b=null;null!=l&&(b=l.shape,f.push(l));let m=null;null!=h&&(m=h.shape,f.push(h));const g=Object(a._222)().getBool("WEBGL_PACK_NORMALIZATION")?new i.a(o.shape,c.shape,u.shape,b,m,p):new s.a(o.shape,c.shape,u.shape,b,m,p),v=undefined;return e.runWebGLProgram(g,f,f[0].dtype)},c={kernelName:a._20,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e,n,s,i,o){this.outputShape=[],this.variableNames=["x","mean","variance"],a._164.assertAndGetBroadcastShape(t,e),a._164.assertAndGetBroadcastShape(t,n);let c="0.0";null!=s&&(a._164.assertAndGetBroadcastShape(t,s),this.variableNames.push("offset"),c="getOffsetAtOutCoords()");let u="1.0";null!=i&&(a._164.assertAndGetBroadcastShape(t,i),this.variableNames.push("scale"),u="getScaleAtOutCoords()"),this.outputShape=t,this.userCode=`\n void main() {\n float x = getXAtOutCoords();\n float mean = getMeanAtOutCoords();\n float variance = getVarianceAtOutCoords();\n float offset = ${c};\n float scale = ${u};\n float inv = scale * inversesqrt(variance + float(${o}));\n setOutput(dot(vec3(x, -mean, offset), vec3(inv, inv, 1)));\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e,n,s,i,o){this.packedInputs=true,this.packedOutput=true,this.variableNames=["x","mean","variance"],a._164.assertAndGetBroadcastShape(t,e),a._164.assertAndGetBroadcastShape(t,n);let c="vec4(0.0)";null!=s&&(a._164.assertAndGetBroadcastShape(t,s),this.variableNames.push("offset"),c="getOffsetAtOutCoords()");let u="vec4(1.0)";null!=i&&(a._164.assertAndGetBroadcastShape(t,i),this.variableNames.push("scale"),u="getScaleAtOutCoords()"),this.outputShape=t,this.userCode=`\n void main() {\n vec4 offset = ${c};\n vec4 scale = ${u};\n\n vec4 x = getXAtOutCoords();\n vec4 mean = getMeanAtOutCoords();\n vec4 variance = getVarianceAtOutCoords();\n\n vec4 inv = scale * inversesqrt(variance + vec4(${o}));\n\n setOutput((x - mean) * inv + offset);\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(0),s=n(17),i=n(107),o=n(47);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c=t=>{const{inputs:e,backend:n,attrs:c}=t,{x:u}=e,{blockShape:blockShape,crops:l}=c;a._408.assert(u.shape.length<=4,(()=>"batchToSpaceND for rank > 4 with a WebGL backend not implemented yet"));const h=blockShape.reduce(((t,e)=>t*e)),p=a._164.getReshaped(u.shape,blockShape,h),f=a._164.getPermuted(p.length,blockShape.length),b=a._164.getReshapedPermuted(u.shape,blockShape,h),m=a._164.getSliceBeginCoords(l,blockShape.length),g=a._164.getSliceSize(b,l,blockShape.length),v=[],w=Object(s.a)({inputs:{x:u},backend:n,attrs:{shape:p}}),y=Object(o.a)({inputs:{x:w},backend:n,attrs:{perm:f}}),O=Object(s.a)({inputs:{x:y},backend:n,attrs:{shape:b}}),x=Object(i.a)({inputs:{x:O},backend:n,attrs:{begin:m,size:g}});return v.push(w),v.push(y),v.push(O),v.forEach((t=>n.disposeIntermediateTensorInfo(t))),x},u={kernelName:a.x,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";function a(t){if(1===t)return"sourceLoc";if(t<=6)return o.slice(0,t).map((t=>"sourceLoc."+t)).join(",");throw Error(`Slicing for rank ${t} is not yet supported`)}var s=n(28);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class i{constructor(t){this.variableNames=["source"],this.outputShape=t,this.rank=t.length;const e=Object(s.a)(this.rank);this.customUniforms=[{name:"start",arrayIndex:this.rank,type:"int"}];const n=a(this.rank);let i;const c=undefined;i=`\n ${e} sourceLoc;\n ${e} coords = getOutputCoords();\n ${t.map(((t,e)=>`sourceLoc.${o[e]} = start[${e}] + coords.${o[e]};`)).join("\n")}\n `,this.userCode=`\n void main() {\n ${i}\n setOutput(getSource(${n}));\n }\n `}}e.a=i;const o=["x","y","z","w","u","v"]},function(t,e,n){"use strict";var a=n(60),s=n(28);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t){this.variableNames=["source"],this.packedInputs=true,this.packedOutput=true,this.outputShape=t,this.rank=t.length,this.customUniforms=[{name:"start",arrayIndex:this.rank,type:"int"}];const e=Object(s.a)(this.rank),n=Object(a.a)("coords",this.rank),i=Object(a.a)("sourceLoc",this.rank),o=1===this.rank?"sourceLoc":`vec2(${i.slice(-2).join()})`,c=`getChannel(getSource(${i.join()}), ${o})`,u=`\n result.x = ${c};\n if (++${n[this.rank-1]} < ${t[this.rank-1]}) {\n ++${i[this.rank-1]};\n result.y = ${c};\n --${i[this.rank-1]};\n }\n `,l=1===this.rank?"":`\n --${n[this.rank-1]};\n if (++${n[this.rank-2]} < ${t[this.rank-2]}) {\n ++${i[this.rank-2]};\n result.z = ${c};\n if (++${n[this.rank-1]} < ${t[this.rank-1]}) {\n ++${i[this.rank-1]};\n result.w = ${c};\n }\n }\n `,h=this.rank<=4?`sourceLoc = coords +\n ${e}(${t.map(((t,e)=>`start[${e}]`)).join()});`:t.map(((t,e)=>`${i[e]} = ${n[e]} + start[${e}];`)).join("\n");this.userCode=`\n void main() {\n ${e} coords = getOutputCoords();\n ${e} sourceLoc;\n ${h}\n vec4 result = vec4(0.);\n ${u}\n ${l}\n setOutput(result);\n }\n `}}e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s,weights:o}=e,{size:size}=a,c=n.readSync(s.dataId),u=n.readSync(o.dataId),l=Object(i.b)(c,u,o.dtype,o.shape,size);return n.makeTensorInfo([size],o.dtype,l)}var s=n(0),i=n(12);const o={kernelName:s.y,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n}=t,{a:a,b:h}=e,p=Object(s._222)().getBool("WEBGL_PACK_BINARY_OPERATIONS"),f=Object(s._222)().getNumber("WEBGL_VERSION");if(n.shouldExecuteOnCPU([a,h])||1===f){const t=n.texData.get(a.dataId).values,e=n.texData.get(h.dataId).values,[s,i]=Object(c.d)(a.shape,h.shape,t,e,a.dtype),o=n.makeTensorInfo(i,a.dtype),u=undefined;return n.texData.get(o.dataId).values=s,o}let b;return b=p?new o.a(u,a.shape,h.shape,false):new i.a(l,a.shape,h.shape),n.runWebGLProgram(b,[a,h],a.dtype)}var s=n(0),i=n(66),o=n(46),c=n(12);
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u="\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",l="\n return float(int(a.r) & int(b.r));\n",h={kernelName:s.z,backendName:"webgl",kernelFunc:a};e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{s0:a,s1:i}=e,o=n.readSync(a.dataId),c=n.readSync(i.dataId),u=s._164.assertAndGetBroadcastShape(Array.from(o),Array.from(c));return n.makeTensorInfo([u.length],"int32",Int32Array.from(u))}var s=n(0);const i={kernelName:s.A,backendName:"webgl",kernelFunc:a};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:p}=t,{x:f}=e,{dtype:b}=p;if("complex64"===b){if("complex64"===f.dtype)return Object(c.a)({inputs:{x:f},backend:n});const t=s._416(f.shape),e=a({inputs:{x:f},backend:n,attrs:{dtype:"float32"}}),i=Object(o.a)({inputs:{real:e,imag:t},backend:n});return t.dispose(),n.disposeIntermediateTensorInfo(e),i}if("complex64"===f.dtype){const t=Object(l.a)({inputs:{input:f},backend:n}),e=a({inputs:{x:t},backend:n,attrs:{dtype:b}});return n.disposeIntermediateTensorInfo(t),e}if(!s._408.hasEncodingLoss(f.dtype,b)){const t=Object(c.a)({inputs:{x:f},backend:n});return{dataId:t.dataId,shape:t.shape,dtype:b}}if(n.shouldExecuteOnCPU([f])){const t=n.texData.get(f.dataId).values,[e,a,s]=Object(i.e)(t,f.shape,f.dtype,b);return n.makeTensorInfo(e,a,s)}if("int32"===b)return Object(h.a)(f,n);if("bool"===b){const t=n.makeTensorInfo([],"bool",s._408.getTypedArrayFromDType("bool",1)),e={a:f,b:t},a=Object(u.a)({inputs:e,backend:n});return n.disposeIntermediateTensorInfo(t),a}throw new Error(`Error in Cast: failed to cast ${f.dtype} to ${b}`)}var s=n(0),i=n(12),o=n(77),c=n(50),u=n(380),l=n(130),h=n(1098);const p={kernelName:s.C,backendName:"webgl",kernelFunc:a};e.a=p},function(t,e,n){"use strict";function a(input,t){const e=new s.i(input.shape,i),n=t.runWebGLProgram(e,[input],"int32");return{dataId:n.dataId,shape:n.shape,dtype:n.dtype}}e.a=a;var s=n(41);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const i="return float(int(x));"},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return ceil(x);",c=Object(s.d)({opSnippet:o,packedOpSnippet:o,cpuKernelImpl:i.f}),u={kernelName:a.D,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c}=e,{clipValueMin:u,clipValueMax:l}=a;let h;h=Object(s._222)().getBool("WEBGL_PACK_CLIP")?new o.a(c.shape):new i.a(c.shape);const p=[[u],[l]];return n.runWebGLProgram(h,[c],c.dtype,p)}var s=n(0),i=n(1101),o=n(1102);const c={kernelName:s.E,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t){this.variableNames=["A"],this.customUniforms=[{name:"minVal",type:"float"},{name:"maxVal",type:"float"}],this.outputShape=t,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 "}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true,this.customUniforms=[{name:"minVal",type:"float"},{name:"maxVal",type:"float"}],this.outputShape=t,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 "}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){return{dataId:e.dataId,dtype:e.dtype,shape:t.shape}}function s(t){const{inputs:e,backend:n}=t,{x:s}=e,i=n.texData.get(s.dataId),c=new o.a(s.shape),u=[a(s,i.complexTensorInfos.real),a(s,i.complexTensorInfos.imag)];return n.runWebGLProgram(c,u,u[0].dtype)}var i=n(0),o=n(1104);const c={kernelName:i.G,backendName:"webgl",kernelFunc:s};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(shape){this.variableNames=["real","imag"],this.outputShape=shape,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 "}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n){const g=t[0].dtype;if("complex64"===g){const s=t.map((t=>Object(b.a)({inputs:{input:t},backend:n}))),i=t.map((t=>Object(f.a)({inputs:{input:t},backend:n}))),o=a(s,e,n),c=a(i,e,n),u=Object(p.a)({inputs:{real:o,imag:c},backend:n});return s.forEach((r=>n.disposeIntermediateTensorInfo(r))),i.forEach((t=>n.disposeIntermediateTensorInfo(t))),n.disposeIntermediateTensorInfo(o),n.disposeIntermediateTensorInfo(c),u}let v=n.shouldExecuteOnCPU(t);if("string"===g&&(v=true),v){const a=t.map((t=>{const a=undefined,shape=[-1,i._408.sizeFromShape(t.shape.slice(e))];return Object(m.a)({inputs:{x:t},backend:n,attrs:{shape:shape}})})),s=a.map((t=>({vals:n.readSync(t.dataId),shape:t.shape}))),o=i._164.computeOutShape(a.map((t=>t.shape)),1),c=1===a[0].shape[0],l=Object(u.g)(s,o,g,c),h=i._164.computeOutShape(t.map((t=>t.shape)),e),p=n.makeTensorInfo(h,g,l);return a.forEach((t=>n.disposeIntermediateTensorInfo(t))),p}const w=t.filter((t=>i._408.sizeFromShape(t.shape)>0)),y=Object(i._222)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")&&w[0].shape.length>1;if(1===w.length){const e=y?new l.i(t[0].shape,l.c):new h.f(t[0].shape,l.c);return n.runWebGLProgram(e,t,g)}const O=Object(i._222)().getNumber("WEBGL_MAX_TEXTURES_IN_SHADER");if(w.length>O){const t=[];for(let s=0;s<w.length;s+=O){const i=w.slice(s,s+O);t.push(a(i,e,n))}const s=a(t,e,n);for(const e of t)n.disposeIntermediateTensorInfo(e);return s}if(y){const t=new c.a(w.map((t=>t.shape)),e);return n.runWebGLProgram(t,w,g)}const{tensors2D:x,outShape:A}=s(w,e,n),I=new o.a(x.map((t=>t.shape))),j=n.runWebGLProgram(I,x,g);x.forEach((r=>n.disposeIntermediateTensorInfo(r)));const C=Object(m.a)({inputs:{x:j},attrs:{shape:A},backend:n});return n.disposeIntermediateTensorInfo(j),C}function s(t,e,n){const a=i._164.computeOutShape(t.map((t=>t.shape)),e),s=undefined;return{tensors2D:t.map((t=>Object(m.a)({inputs:{x:t},attrs:{shape:[-1,i._408.sizeFromShape(t.shape.slice(e))]},backend:n}))),outShape:a}}e.a=a;var i=n(0),o=n(1106),c=n(1107),u=n(12),l=n(41),h=n(106),p=n(77),f=n(169),b=n(130),m=n(17)},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t){this.outputShape=[],this.outputShape=a._164.computeOutShape(t,1),this.variableNames=t.map(((t,e)=>`T${e}`));const e=new Array(t.length-1);e[0]=t[0][1];for(let n=1;n<e.length;n++)e[n]=e[n-1]+t[n][1];const n=[`if (yC < ${e[0]}) setOutput(getT0(yR, yC));`];for(let t=1;t<e.length;t++){const shift=e[t-1];n.push(`else if (yC < ${e[t]}) setOutput(getT${t}(yR, yC-${shift}));`)}const s=e.length,i=e[e.length-1];n.push(`else setOutput(getT${s}(yR, yC-${i}));`),this.userCode=`\n void main() {\n ivec2 coords = getOutputCoords();\n int yR = coords.x;\n int yC = coords.y;\n\n ${n.join("\n ")}\n }\n `}}e.a=s},function(t,e,n){"use strict";function a(t,e,shift){const n=t.indexOf(e),a=undefined;return t.map(((t,e)=>e===n?`${t} - ${shift}`:t)).join()}var s=n(0),i=n(60),o=n(28);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class c{constructor(t,e){this.packedInputs=true,this.packedOutput=true,this.outputShape=[],this.outputShape=s._164.computeOutShape(t,e);const shape=this.outputShape,n=shape.length,c=Object(o.a)(n),u=Object(i.a)("coords",n),l=["x","y","z","w","u","v"].slice(0,n);this.variableNames=t.map(((t,e)=>`T${e}`));const h=new Array(t.length-1);h[0]=t[0][e];for(let n=1;n<h.length;n++)h[n]=h[n-1]+t[n][e];const p=l[e],f=l.slice(-2),b=l.join();let m=`if (${p} < ${h[0]}) {\n return getChannel(\n getT0(${b}), vec2(${f.join()}));\n }`;for(let t=1;t<h.length;t++){const shift=h[t-1];m+=`\n if (${p} < ${h[t]} && ${p} >= ${h[t-1]}) {\n return getChannel(\n getT${t}(${a(l,p,shift)}),\n vec2(${a(f,p,shift)}));\n }`}const g=h.length,shift=h[h.length-1];m+=`\n return getChannel(\n getT${g}(${a(l,p,shift)}),\n vec2(${a(f,p,shift)}));`,this.userCode=`\n float getValue(${l.map((t=>"int "+t))}) {\n ${m}\n }\n\n void main() {\n ${c} coords = getOutputCoords();\n vec4 result = vec4(getValue(${u}), 0., 0., 0.);\n\n ${u[n-1]} = ${u[n-1]} + 1;\n if (${u[n-1]} < ${shape[n-1]}) {\n result.g = getValue(${u});\n }\n\n ${u[n-2]} = ${u[n-2]} + 1;\n if (${u[n-2]} < ${shape[n-2]}) {\n result.a = getValue(${u});\n }\n\n ${u[n-1]} = ${u[n-1]} - 1;\n if (${u[n-2]} < ${shape[n-2]} &&\n ${u[n-1]} < ${shape[n-1]}) {\n result.b = getValue(${u});\n }\n setOutput(result);\n }\n `}}e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:l,filter:filter}=e,{strides:h,pad:p,dataFormat:f,dilations:b,dimRoundingMode:m}=a,g=s._164.convertConv2DDataFormat(f),v=s._164.computeConv2DInfo(l.shape,filter.shape,h,b,p,m,false,g);let w;if(1!==v.filterHeight||1!==v.filterWidth||1!==v.dilationHeight||1!==v.dilationWidth||1!==v.strideHeight||1!==v.strideWidth||"SAME"!==v.padInfo.type&&"VALID"!==v.padInfo.type)if(v.strideWidth<=2&&"channelsLast"===g&&Object(s._222)().getBool("WEBGL_EXP_CONV")){const t=new o.a(v),e=[[v.padInfo.top,v.padInfo.left],[v.strideHeight,v.strideWidth],[v.dilationHeight,v.dilationWidth],[v.inHeight,v.inWidth]];w=n.runWebGLProgram(t,[l,filter],"float32",e)}else if(Object(s._222)().getBool("WEBGL_CONV_IM2COL"))w=Object(c.b)({x:l,filter:filter,convInfo:v,backend:n});else{const t=new i.a(v);w=n.runWebGLProgram(t,[l,filter],"float32")}else w=Object(c.a)({x:l,filter:filter,convInfo:v,backend:n});const y=Object(u.a)({inputs:{x:w},backend:n,attrs:{shape:v.outShape}});return n.disposeIntermediateTensorInfo(w),y}var s=n(0),i=n(229),o=n(382),c=n(383),u=n(17);const l={kernelName:s.I,backendName:"webgl",kernelFunc:a};e.a=l},function(t,e,n){"use strict";var a=n(53),s=n(38);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,e){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true,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=t,this.enableShapeUniforms=Object(s.e)(this.outputShape.length);const{dataFormat:n}=e,i=Object(a.a)(),o="channelsLast"===n,c=o?1:2,u=o?2:3,l=this.enableShapeUniforms?"if(blockIndex < outShape[2] && pos < outShape[1]) {":`if(blockIndex < ${t[2]} && pos < ${t[1]}) {`;let h="";for(let row=0;row<=1;row++)for(let t=0;t<=1;t++)h+=`\n blockIndex = rc.z + ${t};\n pos = rc.y + ${row};\n\n ${l}\n offsetY = int(blockIndex / outWidth) * stride[0] - pad[0];\n d0 = offsetY + dilation[0] * (pos / itemsPerBlockRow);\n\n if(d0 < inputShape[${c}] && d0 >= 0) {\n // Use custom imod instead mod. On Intel GPU, mod may generate\n // unexpected value.\n // https://github.com/tensorflow/tfjs/issues/5447\n offsetX = imod(blockIndex, outWidth) * stride[1] - pad[1];\n d1 = offsetX + dilation[1] * (imod(pos, itemsPerBlockRow) /\n inChannels);\n\n if(d1 < inputShape[${u}] && d1 >= 0) {\n\n ch = imod(pos, inChannels);\n\n if (${o}) {\n innerDims = vec2(d1, ch);\n result[${2*row+t}] = getChannel(\n getA(rc.x, d0, int(innerDims.x),\n int(innerDims.y)), innerDims);\n } else {\n innerDims = vec2(d0, d1);\n result[${2*row+t}] = getChannel(\n getA(rc.x, ch, int(innerDims.x),\n int(innerDims.y)), innerDims);\n }\n }\n }\n }\n `;this.userCode=`\n void main() {\n ivec3 rc = getOutputCoords();\n\n vec4 result = vec4(0);\n\n int blockIndex, pos, offsetY, d0, offsetX, d1, ch;\n vec2 innerDims;\n\n ${h}\n\n ${i.output} = result;\n }\n `}}e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,dy:c}=e,{strides:u,pad:l,dataFormat:h,dimRoundingMode:p,filterShape:f}=a,b=s._164.convertConv2DDataFormat(h),m=s._164.computeConv2DInfo(o.shape,f,u,1,l,p,false,b),g=new i.a(m);return n.runWebGLProgram(g,[o,c],"float32")}var s=n(0),i=n(170);const o={kernelName:s.J,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:c,filter:filter}=e,{inputShape:u,strides:l,pad:h,dataFormat:p,dimRoundingMode:f}=a,b=s._164.convertConv2DDataFormat(p),m=s._164.computeConv2DInfo(u,filter.shape,l,1,h,f,false,b);if(Object(s._222)().getBool("WEBGL_PACK_CONV2DTRANSPOSE")&&"channelsLast"===b){const t=[[m.strideHeight,m.strideWidth]],e=new o.a(m);return n.runWebGLProgram(e,[c,filter],"float32",t)}{const t=new i.b(m);return n.runWebGLProgram(t,[c,filter],"float32")}}var s=n(0),i=n(170),o=n(1112);const c={kernelName:s.K,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";var a=n(38);
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t){this.variableNames=["dy","W"],this.packedInputs=true,this.packedOutput=true,this.customUniforms=[{name:"strides",type:"vec2"}],this.outputShape=t.inShape,this.enableShapeUniforms=Object(a.e)(this.outputShape.length);const e=t.filterHeight,n=t.filterWidth,s=e-1-t.padInfo.top,i=n-1-t.padInfo.left;this.userCode=`\n const ivec2 pads = ivec2(${s}, ${i});\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords[0];\n int d1 = coords[3];\n\n ivec2 dyCorner = ivec2(coords[1], coords[2]) - pads;\n int dyRCorner = dyCorner.x;\n int dyCCorner = dyCorner.y;\n\n vec4 result = vec4(0.);\n for (int wR = 0; wR < ${e}; wR++) {\n float dyR = float(dyRCorner + wR) / strides[0];\n if (dyR < 0.0 || dyR >= ${t.outHeight}.0 || fract(dyR) > 0.0) {\n continue;\n }\n int idyR = int(dyR);\n int wRPerm = ${e} - 1 - wR;\n\n for (int wC = 0; wC < ${n}; wC++) {\n int wCPerm = ${n} - 1 - wC;\n\n float dyC = float(dyCCorner + wC) / strides[1];\n bool idyCVal = (dyC >= 0.0) && (dyC < ${t.outWidth}.0)\n && (fract(dyC) == 0.0);\n int idyC = int(dyC);\n\n float dyC2 = float(dyCCorner + wC + 1) / strides[1];\n bool idyCVal2 = (dyC2 >= 0.0) && (dyC2 < ${t.outWidth}.0)\n && (fract(dyC2) == 0.0);\n int idyC2 = int(dyC2);\n\n if (idyCVal && idyCVal2) {\n for (int d2 = 0; d2 < ${t.outChannels}; d2 += 2) {\n vec4 wValue = getW(wRPerm, wCPerm, d1, d2);\n vec4 dySample = getDy(batch, idyR, idyC, d2);\n vec4 dySample2 = (idyC / 2 == idyC2 / 2) ?\n dySample : getDy(batch, idyR, idyC2, d2);\n\n vec2 dyValue = mod(float(idyC), 2.) == 0. ?\n dySample.xy : dySample.zw;\n result.xy += vec2(dot(dyValue, wValue.xy),\n dot(dyValue, wValue.zw));\n\n dyValue = mod(float(idyC2), 2.) == 0. ?\n dySample2.xy : dySample2.zw;\n result.zw += vec2(dot(dyValue, wValue.xy),\n dot(dyValue, wValue.zw));\n }\n } else if (idyCVal) {\n for (int d2 = 0; d2 < ${t.outChannels}; d2 += 2) {\n vec4 wValue = getW(wRPerm, wCPerm, d1, d2);\n vec4 dySample = getDy(batch, idyR, idyC, d2);\n vec2 dyValue = mod(float(idyC), 2.) == 0. ?\n dySample.xy : dySample.zw;\n result.xy += vec2(dot(dyValue, wValue.xy),\n dot(dyValue, wValue.zw));\n }\n } else if (idyCVal2) {\n for (int d2 = 0; d2 < ${t.outChannels}; d2 += 2) {\n vec4 wValue = getW(wRPerm, wCPerm, d1, d2);\n vec4 dySample = getDy(batch, idyR, idyC2, d2);\n vec2 dyValue = mod(float(idyC2), 2.) == 0. ?\n dySample.xy : dySample.zw;\n result.zw += vec2(dot(dyValue, wValue.xy),\n dot(dyValue, wValue.zw));\n }\n }\n }\n }\n setOutput(result);\n }\n `}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,filter:filter}=e,{strides:c,pad:u,dilations:l}=a,h=s._164.computeConv3DInfo(o.shape,filter.shape,c,l,u),p=new i.b(h);return n.runWebGLProgram(p,[o,filter],"float32")}var s=n(0),i=n(229);const o={kernelName:s.L,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,dy:c}=e,{strides:u,pad:l,filterShape:h}=a,p=s._164.computeConv3DInfo(o.shape,h,u,1,l),f=new i.c(p);return n.runWebGLProgram(f,[o,c],"float32")}var s=n(0),i=n(170);const o={kernelName:s.M,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:o,filter:filter}=e,{pad:c,strides:u,inputShape:l}=a,h=s._164.computeConv3DInfo(l,filter.shape,u,1,c),p=new i.d(h);return n.runWebGLProgram(p,[o,filter],"float32")}var s=n(0),i=n(170);const o={kernelName:s.N,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(46),i=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=i.a+"\n return cos(x);\n",c=`\n vec4 result = cos(x);\n bvec4 isNaN = isnan(x);\n ${s.b}\n return result;\n`,u=Object(i.d)({opSnippet:o,packedOpSnippet:c}),l={kernelName:a.O,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\n float e2x = exp(-x);\n return (e2x + 1.0 / e2x) / 2.0;\n",o=Object(s.d)({opSnippet:i}),c={kernelName:a.P,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(1119);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=t=>{const{inputs:e,backend:n,attrs:a}=t,{image:image,boxes:i,boxInd:o}=e,{cropSize:c,method:u,extrapolationValue:l}=a,h=new s.a(image.shape,i.shape,c,u,l);return n.runWebGLProgram(h,[image,i,o],"float32")},o={kernelName:a.Q,backendName:"webgl",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s){this.variableNames=["Image","Boxes","BoxInd"],this.outputShape=[];const[i,o,c,u]=t,[l]=e,[h,p]=n;this.outputShape=[l,h,p,u];const f="bilinear"===a?1:0,[b,m]=[o-1+".0",c-1+".0"],[g,v,w]=h>1?[""+(o-1)/(h-1),"(y2-y1) * height_ratio",`y1*${b} + float(y)*(height_scale)`]:["0.0","0.0",`0.5 * (y1+y2) * ${b}`],[y,O,x]=p>1?[""+(c-1)/(p-1),"(x2-x1) * width_ratio",`x1*${m} + float(x)*(width_scale)`]:["0.0","0.0",`0.5 * (x1+x2) * ${m}`];this.userCode=`\n const float height_ratio = float(${g});\n const float width_ratio = float(${y});\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int y = coords[1];\n int x = coords[2];\n int d = coords[3];\n\n // get box vals\n float y1 = getBoxes(b,0);\n float x1 = getBoxes(b,1);\n float y2 = getBoxes(b,2);\n float x2 = getBoxes(b,3);\n\n // get image in batch index\n int bInd = round(getBoxInd(b));\n if(bInd < 0 || bInd >= ${i}) {\n return;\n }\n\n float height_scale = ${v};\n float width_scale = ${O};\n\n float in_y = ${w};\n if( in_y < 0.0 || in_y > ${b} ) {\n setOutput(float(${s}));\n return;\n }\n float in_x = ${x};\n if( in_x < 0.0 || in_x > ${m} ) {\n setOutput(float(${s}));\n return;\n }\n\n vec2 sourceFracIndexCR = vec2(in_x,in_y);\n if(${f} == 1) {\n // Compute the four integer indices.\n ivec2 sourceFloorCR = ivec2(sourceFracIndexCR);\n ivec2 sourceCeilCR = ivec2(ceil(sourceFracIndexCR));\n\n float topLeft = getImage(b, sourceFloorCR.y, sourceFloorCR.x, d);\n float bottomLeft = getImage(b, sourceCeilCR.y, sourceFloorCR.x, d);\n float topRight = getImage(b, sourceFloorCR.y, sourceCeilCR.x, d);\n float bottomRight = getImage(b, sourceCeilCR.y, sourceCeilCR.x, d);\n\n vec2 fracCR = sourceFracIndexCR - vec2(sourceFloorCR);\n\n float top = topLeft + (topRight - topLeft) * fracCR.x;\n float bottom = bottomLeft + (bottomRight - bottomLeft) * fracCR.x;\n float newValue = top + (bottom - top) * fracCR.y;\n setOutput(newValue);\n } else {\n // Compute the coordinators of nearest neighbor point.\n ivec2 sourceNearestCR = ivec2(floor(\n sourceFracIndexCR + vec2(0.5,0.5)));\n float newValue = getImage(b, sourceNearestCR.y, sourceNearestCR.x, d);\n setOutput(newValue);\n }\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s}=e,{axis:c,exclusive:u,reverse:l}=a;return Object(o.a)(i.a.Prod,s,n,c,u,l)}var s=n(0),i=n(230),o=n(384);const c={kernelName:s.R,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s}=e,{axis:c,exclusive:u,reverse:l}=a;return Object(o.a)(i.a.Sum,s,n,c,u,l)}var s=n(0),i=n(230),o=n(384);const c={kernelName:s.S,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s,weights:o}=e,{size:size,binaryOutput:c}=a;if(1===s.shape.length){const t=n.readSync(s.dataId),e=n.readSync(o.dataId),a=Object(i.b)(t,e,o.dtype,o.shape,size);return n.makeTensorInfo([size],o.dtype,a)}if(2===s.shape.length){const t=n.bufferSync(s),e=n.bufferSync(o),a=Object(i.c)(t,e,size,c);return n.makeTensorInfo(a.shape,o.dtype,a.values)}throw new Error(`Error in denseBincount: input must be at most rank 2, but got rank${s.shape.length}.`)}var s=n(0),i=n(12);const o={kernelName:s.U,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:s}=e,{blockSize:o,dataFormat:c}=a,u=s.shape[0],l=undefined,h=undefined,p=undefined,f=("NHWC"===c?s.shape[1]:s.shape[2])*o,b=("NHWC"===c?s.shape[2]:s.shape[3])*o,m=("NHWC"===c?s.shape[3]:s.shape[1])/(o*o),g="NHWC"===c?[u,f,b,m]:[u,m,f,b],v=new i.a(g,o,c);return n.runWebGLProgram(v,[s],s.dtype)}var s=n(0),i=n(1124);const o={kernelName:s.V,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n){this.variableNames=["x"],this.outputShape=[],this.outputShape=t,this.blockSize=e,this.dataFormat=n,this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int h = ${this.getHeightCoordString()};\n int w = ${this.getWidthCoordString()};\n int d = ${this.getDepthCoordString()};\n\n int in_h = h / ${e};\n int offset_h = imod(h, ${e});\n int in_w = w / ${e};\n int offset_w = imod(w, ${e});\n int offset_d = (offset_h * ${e} + offset_w) *\n ${this.getOutputDepthSize()};\n int in_d = d + offset_d;\n\n float result = ${this.getInputSamplingString()};\n setOutput(result);\n }\n `}getHeightCoordString(){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)"}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c,filter:filter}=e,{strides:u,pad:l,dilations:h,dimRoundingMode:p}=a;let f=h;null==f&&(f=[1,1]),s._408.assert(s._164.eitherStridesOrDilationsAreOne(u,f),(()=>`Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides ${u} and dilations '${f}'`));const b=s._164.computeConv2DInfo(c.shape,filter.shape,u,f,l,p,true);let m;m=Object(s._222)().getBool("WEBGL_PACK_DEPTHWISECONV")&&b.strideWidth<=2&&b.outChannels/b.inChannels==1?new o.a(b):new i.a(b);const g=[[b.padInfo.top,b.padInfo.left],[b.strideHeight,b.strideWidth],[b.dilationHeight,b.dilationWidth],[b.inHeight,b.inWidth]];return n.runWebGLProgram(m,[c,filter],"float32",g)}var s=n(0),i=n(385),o=n(386);const c={kernelName:s.W,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o,dy:c}=e,{strides:u,dilations:l,pad:h,dimRoundingMode:p,filterShape:f}=a,b=s._164.computeConv2DInfo(o.shape,f,u,l,h,p,true),m=new i.a(b);return n.runWebGLProgram(m,[o,c],"float32")}var s=n(0),i=n(387);const o={kernelName:s.X,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:o,filter:filter}=e,{strides:c,dilations:u,pad:l,dimRoundingMode:h,inputShape:p}=a,f=s._164.computeConv2DInfo(p,filter.shape,c,u,l,h,true),b=new i.b(f);return n.runWebGLProgram(b,[o,filter],"float32")}var s=n(0),i=n(387);const o={kernelName:s.Y,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{x:a}=e,c=[...a.shape,...a.shape],u=s._408.sizeFromShape(a.shape),l=Object(o.a)({inputs:{x:a},backend:n,attrs:{shape:[u]}}),h=new i.a(u),p=n.runWebGLProgram(h,[l],l.dtype),f=Object(o.a)({inputs:{x:p},backend:n,attrs:{shape:c}});return n.disposeIntermediateTensorInfo(l),n.disposeIntermediateTensorInfo(p),f}var s=n(0),i=n(1129),o=n(17);const c={kernelName:s.Z,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(size){this.variableNames=["X"],this.outputShape=[size,size],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 "}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:c,filter:filter}=e,{strides:u,pad:l,dilations:h}=a,p=s._164.computeDilation2DInfo(c.shape,filter.shape,u,l,"NHWC",h);let f;const b=new i.a(p);f=n.runWebGLProgram(b,[c,filter],"float32");const m=Object(o.a)({inputs:{x:f},backend:n,attrs:{shape:p.outShape}});return n.disposeIntermediateTensorInfo(f),m}var s=n(0),i=n(1131),o=n(17);const c={kernelName:s._0,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t){this.variableNames=["x","W"],this.outputShape=t.outShape;const{inHeight:e,inWidth:n,padInfo:a,strideHeight:s,strideWidth:i,filterHeight:o,filterWidth:c,dilationHeight:u,dilationWidth:l}=t,{top:h,left:p}=a;this.userCode=`\n const ivec2 strides = ivec2(${s}, ${i});\n const ivec2 pads = ivec2(${h}, ${p});\n const float neg_infinity = -3.4e38;\n\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n int d1 = coords.w;\n ivec2 outTopLeftCorner =\n coords.yz * strides - pads;\n int hBeg = outTopLeftCorner.x;\n int wBeg = outTopLeftCorner.y;\n\n float curVal = neg_infinity;\n for (int h = 0; h < ${o}; h++) {\n int hIn = hBeg + h * ${u};\n\n if (hIn >= 0 && hIn < ${e}) {\n for (int w = 0; w < ${c}; w++) {\n int wIn = wBeg + w * ${l};\n\n if (wIn >= 0 && wIn < ${n}) {\n float xVal = getX(batch, hIn, wIn, d1);\n float wVal = getW(h, w, d1);\n\n float val = xVal + wVal;\n if (val > curVal) {\n curVal = val;\n }\n }\n }\n }\n }\n\n float result = curVal;\n setOutput(result);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{equation:l}=a,h=e,{allDims:p,summedDims:f,idDims:b}=s._164.decodeEinsumEquation(l,h.length);s._164.checkEinsumDimSizes(p.length,b,h);const{path:m,steps:g}=s._164.getEinsumComputePath(f,b),v=g.length;let w=null,y=p.length;const O=[];for(let t=0;t<v;++t){for(const e of g[t]){const{permutationIndices:t,expandDims:a}=s._164.getEinsumPermutation(y,b[e]);let c;s._164.isIdentityPermutation(t)?c=h[e]:(c=Object(u.a)({inputs:{x:h[e]},backend:n,attrs:{perm:t}}),O.push(c));const l=c.shape.slice();for(let t=0;t<a.length;++t)l.splice(a[t],0,1);s._408.arraysEqual(c.shape,l)||(c=Object(o.a)({inputs:{x:c},backend:n,attrs:{shape:l}}),O.push(c)),null===w?w=c:(w=Object(i.a)({inputs:{a:c,b:w},backend:n}),O.push(w))}t<v-1&&(m[t]>=0&&(w=Object(c.a)({inputs:{x:w},backend:n,attrs:{axis:m[t]-(p.length-y),keepDims:false}}),O.push(w)),y--)}for(const t of O)t!==w&&n.disposeIntermediateTensorInfo(t);return w}var s=n(0),i=n(228),o=n(17),c=n(168),u=n(47);const l={kernelName:s._5,backendName:"webgl",kernelFunc:a};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return (x >= 0.0) ? x : (exp(x) - 1.0);",o="\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",c=Object(s.d)({opSnippet:i,packedOpSnippet:o}),u={kernelName:a._6,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(66),i=n(46);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return (b >= 0.0) ? a : a * (b + 1.0);",c="\n vec4 bGTEZero = vec4(greaterThanEqual(b, vec4(0.)));\n return (bGTEZero * a) + ((vec4(1.0) - bGTEZero) * (a * (b + vec4(1.0))));\n",u=t=>{const{inputs:e,backend:n}=t,{dy:u,y:l}=e,h=Object(a._222)().getBool("WEBGL_PACK_BINARY_OPERATIONS")?new i.a(c,u.shape,l.shape):new s.a(o,u.shape,l.shape);return n.runWebGLProgram(h,[u,l],u.dtype)},l={kernelName:a._7,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="\n return vec4(equal(a, b));\n",c="return float(a == b);",u=Object(s.b)({opSnippet:c,packedOpSnippet:o,dtype:"bool",cpuKernelImpl:i.h}),l={kernelName:a._9,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=`\n // Error function is calculated approximately with elementary function.\n // See "Handbook of Mathematical Functions with Formulas,\n // Graphs, and Mathematical Tables", Abramowitz and Stegun.\n float p = ${a._164.ERF_P};\n float a1 = ${a._164.ERF_A1};\n float a2 = ${a._164.ERF_A2};\n float a3 = ${a._164.ERF_A3};\n float a4 = ${a._164.ERF_A4};\n float a5 = ${a._164.ERF_A5};\n\n float sign = sign(x);\n x = abs(x);\n float t = 1.0 / (1.0 + p * x);\n return sign * (1.0 - (((((a5*t + a4)*t) + a3)*t + a2)*t + a1)*t*exp(-x*x));\n`,o=Object(s.d)({opSnippet:i}),c={kernelName:a._10,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return exp(x) - 1.0;",c=Object(s.d)({opSnippet:o,packedOpSnippet:o,cpuKernelImpl:i.j}),u={kernelName:a._13,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{input:input}=e;return Object(i.a)(input,false,n)}var s=n(0),i=n(390);const o={kernelName:s._14,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n){this.variableNames=["real","imag"];const a=e[1];this.outputShape=e;const s=n?`2.0 * ${Math.PI}`:`-2.0 * ${Math.PI}`,i=n?`${a}.0`:"1.0";let o;if("real"===t)o="return real * expR - imag * expI;";else{if("imag"!==t)throw new Error(`FFT component must be either "real" or "imag", got ${t}.`);o="return real * expI + imag * expR;"}this.userCode=`\n const float exponentMultiplier = ${s};\n\n float unaryOpComplex(float real, float expR, float imag, float expI) {\n ${o}\n }\n\n float mulMatDFT(int batch, int index) {\n float indexRatio = float(index) / float(${a});\n float exponentMultiplierTimesIndexRatio =\n exponentMultiplier * indexRatio;\n\n float result = 0.0;\n\n for (int i = 0; i < ${a}; i++) {\n // x = (-2|2 * PI / N) * index * i;\n float x = exponentMultiplierTimesIndexRatio * float(i);\n float expR = cos(x);\n float expI = sin(x);\n float real = getReal(batch, i);\n float imag = getImag(batch, i);\n\n result +=\n unaryOpComplex(real, expR, imag, expI) / ${i};\n }\n\n return result;\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n setOutput(mulMatDFT(coords[0], coords[1]));\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(shape,t){this.outputShape=[],this.customUniforms=[{name:"value",type:"float"}],this.variableNames=["x"],this.outputShape=shape,this.userCode="\n void main() {\n // Input can be obtained from uniform value.\n setOutput(value);\n }\n "}}e.a=a},function(t,e,n){"use strict";var a=n(0),s=n(1142);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._16,backendName:"webgl",kernelFunc:({inputs:t,backend:e})=>{const{image:image}=t,n=e,a=new s.a(image.shape),i=undefined;return n.runWebGLProgram(a,[image],image.dtype)}};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t){this.variableNames=["Image"],this.outputShape=[];const e=t[2];this.outputShape=t,this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int x = coords[2];\n\n int coordX = ${e} - x - 1;\n float outputValue;\n if(coordX >= 0 && coordX < ${e}) {\n outputValue = getImage(coords[0], coords[1], coordX, coords[3]);\n } else {\n outputValue = getImage(coords[0], coords[1], coords[2], coords[3]);\n }\n setOutput(outputValue);\n }\n `}}e.a=a},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return floor(x);",c=Object(s.d)({opSnippet:o,packedOpSnippet:o,cpuKernelImpl:i.k}),u={kernelName:a._17,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\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",o="\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",c=Object(s.b)({opSnippet:i,packedOpSnippet:o,dtype:"int32"}),u={kernelName:a._18,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n,attrs:a}=t;let{pixels:u}=e;const{numChannels:p}=a,f="undefined"!=typeof HTMLVideoElement&&u instanceof HTMLVideoElement,b="undefined"!=typeof HTMLImageElement&&u instanceof HTMLImageElement,[m,g]=f?[u.videoWidth,u.videoHeight]:[u.width,u.height],v=[g,m],w=[g,m,p];if(b||f){const t=Object(s._222)().getBool("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU");null!=l&&t===h||(h=t,l=document.createElement("canvas").getContext("2d",{willReadFrequently:h})),l.canvas.width=m,l.canvas.height=g,l.drawImage(u,0,0,m,g),u=l.canvas}const y=n.makeTensorInfo(v,"int32");n.texData.get(y.dataId).usage=i.c.PIXELS,n.gpgpu.uploadPixelDataToTexture(n.getTexture(y.dataId),u);const O=Object(s._222)().getBool("WEBGL_PACK")?new c.a(w):new o.a(w),x=n.runWebGLProgram(O,[y],"int32");return n.disposeData(y.dataId),x}var s=n(0),i=n(52),o=n(1146),c=n(1147);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u={kernelName:s._19,backendName:"webgl",kernelFunc:a};let l;e.a=u;let h=Object(s._222)().getBool("CANVAS2D_WILL_READ_FREQUENTLY_FOR_GPU")},function(t,e,n){"use strict";var a=n(53);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t){this.variableNames=["A"];const e=Object(a.a)(),[n,s]=t;this.outputShape=t,this.userCode=`\n void main() {\n ivec3 coords = getOutputCoords();\n int texR = coords[0];\n int texC = coords[1];\n int depth = coords[2];\n vec2 uv = (vec2(texC, texR) + halfCR) / vec2(${s}.0, ${n}.0);\n\n vec4 values = ${e.texture2D}(A, uv);\n float value;\n if (depth == 0) {\n value = values.r;\n } else if (depth == 1) {\n value = values.g;\n } else if (depth == 2) {\n value = values.b;\n } else if (depth == 3) {\n value = values.a;\n }\n\n setOutput(floor(value * 255.0 + 0.5));\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(53);
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t){this.variableNames=["A"],this.packedInputs=false,this.packedOutput=true;const e=Object(a.a)(),[n,s]=t;this.outputShape=t,this.userCode=`\n void main() {\n ivec3 coords = getOutputCoords();\n int texR = coords[0];\n int texC = coords[1];\n int depth = coords[2];\n\n vec4 result = vec4(0.);\n\n for(int row=0; row<=1; row++) {\n for(int col=0; col<=1; col++) {\n texC = coords[1] + row;\n depth = coords[2] + col;\n\n vec2 uv = (vec2(texC, texR) + halfCR) /\n vec2(${s}.0, ${n}.0);\n vec4 values = ${e.texture2D}(A, uv);\n float value;\n if (depth == 0) {\n value = values.r;\n } else if (depth == 1) {\n value = values.g;\n } else if (depth == 2) {\n value = values.b;\n } else if (depth == 3) {\n value = values.a;\n }\n\n result[row * 2 + col] = floor(value * 255.0 + 0.5);\n }\n }\n\n ${e.output} = result;\n }\n `}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:h,filter:filter,bias:p,preluActivationWeights:f}=e,{strides:b,pad:m,dataFormat:g,dilations:v,dimRoundingMode:w,activation:y,leakyreluAlpha:O}=a,x=s._164.convertConv2DDataFormat(g),A=s._164.computeConv2DInfo(h.shape,filter.shape,b,v,m,w,false,x);let I;const j=[],C=null!=p,_=null!=f,k="leakyrelu"===y,S=()=>{const t=[h,filter],e=(input,t)=>{if("NCHW"===t&&1===input.shape.length&&1!==input.shape[0]){const t=Object(l.a)({inputs:{x:input},backend:n,attrs:{shape:[input.shape[0],1,1]}});return j.push(t),t}return input};if(C&&t.push(e(p,g)),_&&t.push(e(f,g)),k){const e=n.makeTensorInfo([],"float32",s._408.createScalarValue(O,"float32"));t.push(e),j.push(e)}return t};if(1!==A.filterHeight||1!==A.filterWidth||1!==A.dilationHeight||1!==A.dilationWidth||1!==A.strideHeight||1!==A.strideWidth||"SAME"!==A.padInfo.type&&"VALID"!==A.padInfo.type)if(A.strideWidth<=2&&"channelsLast"===x&&Object(s._222)().getBool("WEBGL_EXP_CONV")){const t=y?Object(c.c)(y,true):null,e=new o.a(A,C,t,_,k),a=[[A.padInfo.top,A.padInfo.left],[A.strideHeight,A.strideWidth],[A.dilationHeight,A.dilationWidth],[A.inHeight,A.inWidth]],s=S();I=n.runWebGLProgram(e,s,"float32",a)}else if(Object(s._222)().getBool("WEBGL_CONV_IM2COL"))I=Object(u.b)({x:h,filter:filter,convInfo:A,backend:n,bias:p,activation:y,preluActivationWeights:f,leakyreluAlpha:O});else{const t=y?Object(c.c)(y,false):null,e=new i.a(A,C,t,_,k),a=S();I=n.runWebGLProgram(e,a,"float32")}else I=Object(u.a)({x:h,filter:filter,convInfo:A,backend:n,bias:p,activation:y,preluActivationWeights:f,leakyreluAlpha:O});const T=Object(l.a)({inputs:{x:I},backend:n,attrs:{shape:A.outShape}});return j.push(I),j.forEach((t=>n.disposeIntermediateTensorInfo(t))),T}var s=n(0),i=n(229),o=n(382),c=n(10),u=n(383),l=n(17);const h={kernelName:s._21,backendName:"webgl",kernelFunc:a};e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u,filter:filter,bias:l,preluActivationWeights:h}=e,{strides:p,pad:f,dilations:b,dimRoundingMode:m,activation:g,leakyreluAlpha:v}=a,w=[];let y=b;null==y&&(y=[1,1]),s._408.assert(s._164.eitherStridesOrDilationsAreOne(p,y),(()=>`Error in depthwiseConv2d: Either strides or dilations must be 1. Got strides ${p} and dilations '${y}'`));const O=s._164.computeConv2DInfo(u.shape,filter.shape,p,y,f,m,true),x=Object(s._222)().getBool("WEBGL_PACK_DEPTHWISECONV")&&O.strideWidth<=2&&O.outChannels/O.inChannels==1,A=g?Object(c.c)(g,x):null,I=[u,filter],j=null!=l,C=null!=h,_="leakyrelu"===g;if(j&&I.push(l),C&&I.push(h),_){const t=n.makeTensorInfo([],"float32",s._408.createScalarValue(v,"float32"));I.push(t),w.push(t)}let k;k=x?new o.a(O,j,A,C,_):new i.a(O,j,A,C,_);const S=[[O.padInfo.top,O.padInfo.left],[O.strideHeight,O.strideWidth],[O.dilationHeight,O.dilationWidth],[O.inHeight,O.inWidth]],T=n.runWebGLProgram(k,I,"float32",S);return w.forEach((t=>n.disposeIntermediateTensorInfo(t))),T}var s=n(0),i=n(385),o=n(386),c=n(10);const u={kernelName:s._22,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{params:a,indices:u}=e,l=u.shape,h=l[l.length-1],p=s._408.sizeFromShape(a.shape),[f,b,m,g]=s._164.prepareAndValidate(a,u),v=Object(c.a)({inputs:{x:u},backend:n,attrs:{shape:[b,h]}}),w=Object(c.a)({inputs:{x:a},backend:n,attrs:{shape:[s._408.sizeFromShape(a.shape)/m,m]}});if(n.shouldExecuteOnCPU([a,u])||"string"===a.dtype){const t=n.readSync(u.dataId),e=n.bufferSync(a),s=Object(o.l)(t,e,a.dtype,b,h,m,g,a.shape,p);return n.makeTensorInfo(f,a.dtype,s.values)}const y=new i.a(h,g,[b,m],a.shape),O=n.runWebGLProgram(y,[w,v],w.dtype),x=Object(c.a)({inputs:{x:O},backend:n,attrs:{shape:f}});return n.disposeIntermediateTensorInfo(v),n.disposeIntermediateTensorInfo(w),n.disposeIntermediateTensorInfo(O),x}var s=n(0),i=n(1151),o=n(12),c=n(17);const u={kernelName:s._23,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";var a=n(28);class s{constructor(t,e,shape,n){this.sliceDim=t,this.strides=e,this.paramsShape=n,this.variableNames=["x","indices"],this.outputShape=shape;const s=Object(a.a)(shape.length);let i="\n int index;";for(let t=0;t<this.sliceDim;t++)i+=`\n index = round(getIndices(coords[0], ${t}));\n out_of_bounds = out_of_bounds || index < 0;\n out_of_bounds = out_of_bounds || index >= ${this.paramsShape[t]};\n flattenIndex += index * ${this.strides[t]};`;this.userCode=`\n void main() {\n ${s} coords = getOutputCoords();\n int flattenIndex = 0;\n bool out_of_bounds = false;\n\n ${i}\n\n setOutput(out_of_bounds ? 0.0 : getX(flattenIndex, coords[1]));\n }\n `}}e.a=s},function(t,e,n){"use strict";function a(t,e){const n=["resRC.x","resRC.y","resRC.z","resRC.w"],a=[];for(let e=0;e<t.length;e++)2===e?a.push("index"):a.push(`${n[e]}`);return a.join()}var s=n(28);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class i{constructor(t,e){this.variableNames=["A","indices"],this.outputShape=e,this.rank=e.length;const n=Object(s.a)(this.rank),i=a(t,2);this.userCode=`\n void main() {\n ${n} resRC = getOutputCoords();\n int index = int(getIndices(resRC.x, resRC.z));\n float inBounds = (index >= 0) && (index < ${t[2]}) ? 1.0 : 0.0;\n setOutput(inBounds * getA(${i}));\n }\n `}}e.a=i},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return float(a > b);",c="\n return vec4(greaterThan(a, b));\n",u=Object(s.b)({opSnippet:o,packedOpSnippet:c,cpuKernelImpl:i.o,dtype:"bool"}),l={kernelName:a._25,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return float(a >= b);",c="\n return vec4(greaterThanEqual(a, b));\n",u=Object(s.b)({opSnippet:o,packedOpSnippet:c,dtype:"bool",cpuKernelImpl:i.n}),l={kernelName:a._26,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{input:input}=e;return Object(i.a)(input,true,n)}var s=n(0),i=n(390);const o={kernelName:s._27,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return float(!isnan(x) && !isinf(x));",o=Object(s.d)({opSnippet:i,dtype:"bool"}),c={kernelName:a._30,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return float(isinf(x));",o=Object(s.d)({opSnippet:i,dtype:"bool"}),c={kernelName:a._31,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return float(isnan(x));",o=Object(s.d)({opSnippet:i,dtype:"bool"}),c={kernelName:a._32,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return float(a < b);",c="\n return vec4(lessThan(a, b));\n",u=Object(s.b)({opSnippet:o,packedOpSnippet:c,cpuKernelImpl:i.q,dtype:"bool"}),l={kernelName:a._37,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return float(a <= b);",c="\n return vec4(lessThanEqual(a, b));\n",u=Object(s.b)({opSnippet:o,packedOpSnippet:c,cpuKernelImpl:i.p,dtype:"bool"}),l={kernelName:a._38,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{backend:e,attrs:n}=t,{start:a,stop:s,num:o}=n,c=Object(i.r)(a,s,o);return e.makeTensorInfo([c.length],"float32",c)}var s=n(0),i=n(12);const o={kernelName:s._39,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=s.a+"\n return x < 0.0 ? 0./0. : log(x);\n",c="\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",u=Object(s.d)({opSnippet:o,packedOpSnippet:c,cpuKernelImpl:i.s}),l={kernelName:a._40,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=s.a+"\n return log(1.0 + x);\n",o=Object(s.d)({opSnippet:i}),c={kernelName:a._41,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return float(a >= 1.0 && b >= 1.0);",o="\n return vec4(\n vec4(greaterThanEqual(a, vec4(1.0))) *\n vec4(greaterThanEqual(b, vec4(1.0))));\n",c=Object(s.b)({opSnippet:i,packedOpSnippet:o,dtype:"bool"}),u={kernelName:a._43,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return float(!(x >= 1.0));",o=Object(s.d)({opSnippet:i}),c={kernelName:a._44,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return float(a >= 1.0 || b >= 1.0);",o="\n return min(\n vec4(greaterThanEqual(a, vec4(1.0))) +\n vec4(greaterThanEqual(b, vec4(1.0))),\n vec4(1.0));\n",c=Object(s.b)({opSnippet:i,packedOpSnippet:o,dtype:"bool"}),u={kernelName:a._45,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(1168),i=n(1169);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=t=>{const{inputs:e,backend:n,attrs:o}=t,{x:c}=e,{depthRadius:u,bias:l,alpha:h,beta:p}=o,f=Object(a._222)().getBool("WEBGL_PACK_NORMALIZATION")?new i.a(c.shape,u,l,h,p):new s.a(c.shape,u,l,h,p);return n.runWebGLProgram(f,[c],c.dtype)},c={kernelName:a._34,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s){this.variableNames=["x"],this.outputShape=[];const i=e,o=t[3]-1;let c;this.outputShape=t;const u=`float(${n}) + float(${a}) * sum`;c=.5===s?`inversesqrt(${u})`:1===s?`1.0/(${u})`:`exp(log(${u}) * float(-${s}));`,this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int r = coords[1];\n int c = coords[2];\n int d = coords[3];\n float x = getX(b, r, c, d);\n float sum = 0.0;\n for (int j = -${i}; j <= ${i}; j++) {\n int idx = d + j;\n if (idx >= 0 && idx <= ${o}) {\n float z = getX(b, r, c, idx);\n sum += z * z;\n }\n }\n float val = x * ${c};\n setOutput(val);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s){this.variableNames=["x"],this.outputShape=[],this.packedInputs=true,this.packedOutput=true;const i=e,o=t[3]-1;let c;this.outputShape=t;const u=`float(${n}) + float(${a}) * sum`;c=.5===s?`inversesqrt(${u})`:1===s?`1.0/(${u})`:`exp(log(${u}) * float(-${s}));`,this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords.x;\n int r = coords.y;\n int c = coords.z;\n int d = coords.w;\n\n bool hasNextCol = d < ${this.outputShape[3]};\n bool hasNextRow = c < ${this.outputShape[2]};\n\n vec4 sum = vec4(0.);\n vec4 xFragAtOutputCoords = getX(b, r, c, d);\n\n vec4 xAtOutputCoords = vec4(\n getChannel(xFragAtOutputCoords, vec2(c, d)),\n hasNextCol ?\n getChannel(xFragAtOutputCoords, vec2(c, d + 1)) : 0.0,\n hasNextRow ?\n getChannel(xFragAtOutputCoords , vec2(c + 1, d)) : 0.0,\n (hasNextRow && hasNextCol) ?\n getChannel(xFragAtOutputCoords, vec2(c + 1, d + 1)) : 0.0\n );\n\n int firstChannel = d - ${i};\n vec2 cache = vec2(0.);\n if(firstChannel >= 0){\n vec4 firstChannelFrag = getX(b, r, c, firstChannel);\n cache.x = getChannel(firstChannelFrag, vec2(c, firstChannel));\n if(hasNextRow){\n cache.y = getChannel(firstChannelFrag, vec2(c + 1, firstChannel));\n }\n }\n\n ivec2 depth = ivec2(d, d + 1);\n for (int j = - ${i}; j <= ${i}; j++) {\n ivec2 idx = depth + j;\n bvec2 aboveLowerBound = greaterThanEqual(idx, ivec2(0));\n bvec2 belowUpperBound = lessThanEqual(idx, ivec2(${o}));\n\n bool depthInRange = aboveLowerBound.x && belowUpperBound.x;\n bool depthPlusOneInRange = aboveLowerBound.y && belowUpperBound.y;\n\n if(depthInRange || depthPlusOneInRange){\n vec4 z = vec4(0.);\n vec4 xFragAtCurrentDepth;\n z.xz = cache.xy;\n if(depthPlusOneInRange && hasNextCol){\n xFragAtCurrentDepth = idx.y != d ?\n getX(b, r, c, idx.y) : xFragAtOutputCoords;\n z.y = getChannel(xFragAtCurrentDepth, vec2(c, idx.y));\n if(hasNextRow){\n z.w = getChannel(xFragAtCurrentDepth, vec2(c + 1, idx.y));\n }\n }\n cache.xy = z.yw;\n sum += z * z;\n }\n }\n vec4 result = xAtOutputCoords * ${c};\n setOutput(result);\n }\n `}}e.a=a},function(t,e,n){"use strict";var a=n(0),s=n(1171);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=t=>{const{inputs:e,backend:n,attrs:a}=t,{x:i,y:o,dy:c}=e,{depthRadius:u,bias:l,alpha:h,beta:p}=a,f=new s.a(i.shape,u,l,h,p);return n.runWebGLProgram(f,[i,o,c],i.dtype)},o={kernelName:a._35,backendName:"webgl",kernelFunc:i};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s){this.variableNames=["inputImage","outputImage","dy"],this.outputShape=[],this.outputShape=t,this.depth=t[3],this.depthRadius=e,this.bias=n,this.alpha=a,this.beta=s,this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int r = coords[1];\n int c = coords[2];\n\n float result = 0.0;\n for (int d = 0; d < ${this.depth}; ++d) {\n int depthBegin = int(max(0.0, float(d - ${e})));\n int depthEnd = int(min(float(${this.depth}),\n float(d + ${e} + 1)));\n\n const int MIN_DEPTH_BEGIN = 0;\n const int MAX_DEPTH_END = ${this.depth};\n\n float norm = 0.0;\n for (int k = MIN_DEPTH_BEGIN; k < MAX_DEPTH_END; ++k) {\n if (k < depthBegin){\n continue;\n }\n else if (k >= depthBegin && k < depthEnd) {\n norm += getInputImage(b, r, c, k) * getInputImage(b, r, c, k);\n }\n else {\n break;\n }\n }\n\n norm = float(${a}) * norm + float(${n});\n\n for(int k = MIN_DEPTH_BEGIN; k < MAX_DEPTH_END; ++k){\n if (k < depthBegin){\n continue;\n }\n else if (k >= depthBegin && k < depthEnd){\n float dyi = -2.0 * float(${a})\n * float(${s})\n * getInputImage(b, r, c, k) * getOutputImage(b, r, c, d)\n / norm;\n if (k == d) {\n dyi += pow(norm, -1.0 * ${s});\n }\n if (k == coords[3]) {\n dyi *= getDy(b, r, c, d);\n result += dyi;\n }\n }\n else {\n break;\n }\n }\n }\n setOutput(result);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const c=s._408.sizeFromShape(e),u=undefined,l=s._408.sizeFromShape(t.shape)/c,h=Object(o.a)({inputs:{x:t},attrs:{shape:[l,c]},backend:a}),p=Object(i.a)(h,t.dtype,"max",a),f=Object(o.a)({inputs:{x:p},attrs:{shape:n},backend:a});return a.disposeIntermediateTensorInfo(h),a.disposeIntermediateTensorInfo(p),f}e.a=a;var s=n(0),i=n(89),o=n(17)},function(t,e,n){"use strict";var a=n(0),s=n(66),i=n(46),o=n(10),c=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u=s.b+"\n return max(a, b);\n",l="\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 "+i.b+"\n return result;\n",h=Object(o.b)({opSnippet:u,packedOpSnippet:l,cpuKernelImpl:c.u}),p={kernelName:a._55,backendName:"webgl",kernelFunc:h};e.a=p},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e;Object(o.assertNotComplex)(u,"maxPool");const{filterSize:l,strides:h,pad:p,dimRoundingMode:f}=a,b=1;s._408.assert(s._164.eitherStridesOrDilationsAreOne(h,1),(()=>`Error in maxPool: Either strides or dilations must be 1. Got strides ${h} and dilations '1'`));const m=s._164.computePool2DInfo(u.shape,l,h,1,p,f);if(1===m.filterWidth&&1===m.filterHeight&&s._408.arraysEqual(m.inShape,m.outShape))return Object(c.a)({inputs:{x:u},backend:n});const g=new i.a(m,"max",false);return n.runWebGLProgram(g,[u],u.dtype)}var s=n(0),i=n(90),o=n(43),c=n(50);const u={kernelName:s._50,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o}=e,{filterSize:c,strides:u,pad:l,dataFormat:h,dimRoundingMode:p}=a,f=[1,1,1],b=s._164.computePool3DInfo(o.shape,c,u,f,l,p,h),m=new i.b(b,"max",false);return n.runWebGLProgram(m,[o],o.dtype)}var s=n(0),i=n(90);const o={kernelName:s._51,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:c,input:input}=e,u=input,{filterSize:l,strides:h,pad:p,dimRoundingMode:f}=a,b=[1,1,1],m=s._164.computePool3DInfo(u.shape,l,h,b,p,f),g=new o.b(m,"max",true),v=n.runWebGLProgram(g,[u],u.dtype),w=new i.b(m),y=n.runWebGLProgram(w,[c,v],u.dtype);return n.disposeIntermediateTensorInfo(v),y}var s=n(0),i=n(393),o=n(90);const c={kernelName:s._52,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{dy:u,input:input,output:l}=e,h=input;Object(c.assertNotComplex)([input,l],"maxPoolGrad");const{filterSize:p,strides:f,pad:b,dimRoundingMode:m}=a,g=s._164.computePool2DInfo(h.shape,p,f,1,b,m),v=true,w=new o.a(g,"max",v),y=n.runWebGLProgram(w,[h],h.dtype),O=new i.a(g),x=n.runWebGLProgram(O,[u,y],h.dtype);return n.disposeIntermediateTensorInfo(y),x}var s=n(0),i=n(393),o=n(90),c=n(43);const u={kernelName:s._53,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(1179);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._54,backendName:"webgl",kernelFunc:({inputs:t,attrs:e,backend:n})=>{const{x:i}=t,{filterSize:o,strides:c,pad:u,includeBatchInIndex:l}=e,h=n;a._408.assert(4===i.shape.length,(()=>`Error in maxPool: input must be rank 4 but got rank ${i.shape.length}.`));const p=[1,1];a._408.assert(a._164.eitherStridesOrDilationsAreOne(c,p),(()=>`Error in maxPool: Either strides or dilations must be 1. Got strides ${c} and dilations '${p}'`));const f=a._164.computePool2DInfo(i.shape,o,c,p,u),[b,m]=Object(s.a)(i,l,f,h);return[b,m]}};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){let i=new s.a(n,"max",false);const o=a.runWebGLProgram(i,[t],"float32");i=new s.a(n,"max",true,true,e);const c=undefined;return[o,a.runWebGLProgram(i,[t],"float32")]}e.a=a;var s=n(90)},function(t,e,n){"use strict";var a=n(0),s=n(1181),i=n(129);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o={kernelName:a._56,backendName:"webgl",kernelFunc:({inputs:t,attrs:e,backend:n})=>{const{x:o}=t,{keepDims:c,axis:u}=e,l=n,h=o.shape.length,p=a._408.parseAxisParam(u,o.shape);let f=p;const b=a._164.getAxesPermutation(f,h),m=null!=b,g=l.shouldExecuteOnCPU([o]),v=[];let w=o;if(m){if(g){const t=undefined,e=l.texData.get(w.dataId).values,n=new Array(h);for(let t=0;t<n.length;t++)n[t]=o.shape[b[t]];const a=Object(i.b)(e,o.shape,o.dtype,b,n);w=l.makeTensorInfo(n,o.dtype);const s=undefined;l.texData.get(w.dataId).values=a}else w=Object(i.a)(o,b,l);v.push(w),f=a._164.getInnerMostAxes(f.length,h)}a._164.assertAxesAreInnerMostDims("sum",f,h);const[y,O]=a._164.computeOutAndReduceShapes(w.shape,f);let x=y;c&&(x=a._164.expandShapeToKeepDim(y,p));const A=Object(s.a)(w,O,x,l);for(const t of v)l.disposeIntermediateTensorInfo(t);return A}};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e,n,a){const c=s._408.sizeFromShape(e),u=undefined,l=s._408.sizeFromShape(t.shape)/c,h=Object(o.a)({inputs:{x:t},attrs:{shape:[l,c]},backend:a}),p=Object(i.a)(h,"float32","mean",a),f=Object(o.a)({inputs:{x:p},attrs:{shape:n},backend:a});return a.disposeIntermediateTensorInfo(h),a.disposeIntermediateTensorInfo(p),f}e.a=a;var s=n(0),i=n(89),o=n(17)},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e,{axis:l,keepDims:h}=a,p=u.shape.length,f=s._408.parseAxisParam(l,u.shape);let b=f;const m=s._164.getAxesPermutation(b,p);let g=u;null!=m&&(g=Object(c.a)({inputs:{x:u},backend:n,attrs:{perm:m}}),b=s._164.getInnerMostAxes(b.length,u.shape.length)),s._164.assertAxesAreInnerMostDims("min",b,p);const[v,w]=s._164.computeOutAndReduceShapes(g.shape,b),y=s._408.sizeFromShape(w),O=Object(o.a)({inputs:{x:g},backend:n,attrs:{shape:[-1,y]}}),x=Object(i.a)(O,O.dtype,"min",n);let A;if(h){const t=s._164.expandShapeToKeepDim(v,f);A=Object(o.a)({inputs:{x:x},backend:n,attrs:{shape:t}})}else A=Object(o.a)({inputs:{x:x},backend:n,attrs:{shape:v}});return n.disposeIntermediateTensorInfo(O),n.disposeIntermediateTensorInfo(x),null!=m&&n.disposeIntermediateTensorInfo(g),A}var s=n(0),i=n(89),o=n(17),c=n(47);const u={kernelName:s._57,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(66),i=n(46),o=n(10),c=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u=s.b+"\n return min(a, b);\n",l="\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);\n "+i.b+"\n return result;\n",h=Object(o.b)({opSnippet:u,packedOpSnippet:l,cpuKernelImpl:c.v}),p={kernelName:a._58,backendName:"webgl",kernelFunc:h};e.a=p},function(t,e,n){"use strict";var a=n(0),s=n(1185),i=n(1186);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=({inputs:t,backend:e,attrs:n})=>{const{x:o}=t,{paddings:paddings,mode:c}=n,u=Object(a._222)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new i.a(o.shape,paddings,c):new s.a(o.shape,paddings,c),l=undefined;return e.runWebGLProgram(u,[o],o.dtype)},c={kernelName:a._59,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(28);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,paddings,e){this.variableNames=["x"],this.outputShape=paddings.map(((e,n)=>e[0]+t[n]+e[1]));const n=t.length,s=Object(a.a)(n),i=paddings.map((t=>t[0])).join(","),o=paddings.map(((e,n)=>e[0]+t[n])).join(","),c=["coords[0]","coords[1]","coords[2]","coords[3]"].slice(0,n),u="reflect"===e?0:1;if(1===n)return this.userCode=`\n int start = ${i};\n int end = ${o};\n\n void main() {\n int outC = getOutputCoords();\n if (outC < start) {\n outC = start * 2 - outC - ${u};\n } else if(outC >= end) {\n outC = (end - 1) * 2 - outC + ${u};\n }\n setOutput(getX(outC - start));\n }\n `,void 0;this.userCode=`\n ${s} start = ${s}(${i});\n ${s} end = ${s}(${o});\n\n void main() {\n ${s} outC = getOutputCoords();\n for (int i = 0; i < ${n}; i++) {\n if (outC[i] < start[i]) {\n outC[i] = start[i] * 2 - outC[i] - ${u};\n } else if(outC[i] >= end[i]) {\n outC[i] = (end[i] - 1) * 2 - outC[i] + ${u};\n }\n }\n ${s} coords = outC - start;\n setOutput(getX(${c}));\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(60),s=n(28);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,paddings,e){this.variableNames=["x"],this.packedInputs=true,this.packedOutput=true,this.outputShape=paddings.map(((e,n)=>e[0]+t[n]+e[1]));const n=t.length,i=Object(s.a)(n),o=paddings.map((t=>t[0])).join(","),c=paddings.map(((e,n)=>e[0]+t[n])).join(","),u=Object(a.a)("rc",n),l=Object(a.a)("source",n),h=`${u[n-1]} < ${this.outputShape[n-1]}`,p=1===n?"source":`vec2(${l.slice(-2).join()})`,f="reflect"===e?0:1;let b="";if(1===n){const t=`\n ${i} source = rc;\n if (source < start) {\n source = start * 2 - source - ${f};\n } else if (source >= end) {\n source = (end - 1) * 2 - source + ${f};\n }\n source -= start;\n `;b=`\n ${i} rc = outputLoc;\n ${t}\n result[0] = getChannel(getX(${l.join()}), ${p});\n ${u[n-1]} += 1;\n if(${h}) {\n ${t}\n result[1] = getChannel(getX(${l.join()}), ${p});\n }\n `}else{const t=`\n ${i} source = rc;\n ${i} lt = ${i}(lessThan(source, start));\n ${i} gte = ${i}(greaterThanEqual(source, end));\n ${i} orig = 1 - (lt + gte);\n source = orig * source +\n lt * (start * 2 - source - ${f}) +\n gte * ((end - 1) * 2 - source + ${f});\n source -= start;\n `;b=`\n ${i} rc = outputLoc;\n ${t}\n result[0] = getChannel(getX(${l.join()}), ${p});\n ${u[n-1]} += 1;\n if(${h}) {\n ${t}\n result[1] = getChannel(getX(${l.join()}), ${p});\n }\n rc = outputLoc;\n ${u[n-2]} += 1;\n if(${u[n-2]} < ${this.outputShape[n-2]}) {\n ${t}\n result[2] = getChannel(getX(${l.join()}), ${p});\n ${u[n-1]} += 1;\n if(${h}) {\n ${t}\n result[3] = getChannel(getX(${l.join()}), ${p});\n }\n }\n `}this.userCode=`\n const ${i} start = ${i}(${o});\n const ${i} end = ${i}(${c});\n\n void main() {\n ${i} outputLoc = getOutputCoords();\n vec4 result = vec4(0.);\n ${b}\n setOutput(result);\n }\n `}}e.a=i},function(t,e,n){"use strict";var a=n(0),s=n(46),i=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="if (b == 0.0) return NAN;\n return mod(a, b);",c="\n vec4 result = mod(a, b);\n bvec4 isNaN = equal(b, vec4(0.0));\n "+s.b+"\n return result;\n",u=Object(i.b)({opSnippet:o,packedOpSnippet:c}),l={kernelName:a._60,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{logits:s}=e,{numSamples:c,seed:u,normalized:l}=a,h=l?s:Object(o.a)({inputs:{logits:s},backend:n,attrs:{dim:s.shape.length-1}}),p=h.shape[0],f=h.shape[1],b=new i.a(p,f,c),m=[[u]],g=n.runWebGLProgram(b,[h],"int32",m);return l||n.disposeIntermediateTensorInfo(h),g}var s=n(0),i=n(1189),o=n(394);const c={kernelName:s._62,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n){this.variableNames=["probs"],this.customUniforms=[{name:"seed",type:"float"}],this.outputShape=[t,n],this.userCode=`\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n\n float r = random(seed);\n float cdf = 0.0;\n\n for (int i = 0; i < ${e-1}; i++) {\n cdf += getProbs(batch, i);\n\n if (r < cdf) {\n setOutput(float(i));\n return;\n }\n }\n\n // If no other event happened, last event happened.\n setOutput(float(${e-1}));\n }\n `}}e.a=a},function(t,e,n){"use strict";function a(t){const{inputs:e,backend:n}=t,{x:a}=e;if(n.shouldExecuteOnCPU([a])){const t=n.texData.get(a.dataId),[e,s]=Object(i.x)(t.values,a.shape,a.dtype);return n.makeTensorInfo(s,a.dtype,e)}let h;return h=Object(s._222)().getBool("WEBGL_PACK_UNARY_OPERATIONS")?new c.f(a.shape,l):new o.i(a.shape,u),n.runWebGLProgram(h,[a],a.dtype)}var s=n(0),i=n(12),o=n(41),c=n(106);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const u=o.b+"\n return -x;\n",l="\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",h={kernelName:s._64,backendName:"webgl",kernelFunc:a};e.a=h},function(t,e,n){"use strict";function a(t){s._164.warn("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");const{inputs:e,backend:n,attrs:a}=t,{boxes:o,scores:c}=e,{maxOutputSize:u,iouThreshold:l,scoreThreshold:h}=a,p=n.readSync(o.dataId),f=n.readSync(c.dataId),{selectedIndices:b}=i(p,f,u,l,h);return n.makeTensorInfo([b.length],"int32",new Int32Array(b))}var s=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const i=s._258.nonMaxSuppressionV3Impl,o={kernelName:s._65,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";function a(t){s._164.warn("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");const{inputs:e,backend:n,attrs:a}=t,{boxes:o,scores:c}=e,{maxOutputSize:u,iouThreshold:l,scoreThreshold:h,padToMaxOutputSize:p}=a,f=n.readSync(o.dataId),b=n.readSync(c.dataId),{selectedIndices:m,validOutputs:g}=i(f,b,u,l,h,p);return[n.makeTensorInfo([m.length],"int32",new Int32Array(m)),n.makeTensorInfo([],"int32",new Int32Array([g]))]}var s=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const i=s._258.nonMaxSuppressionV4Impl,o={kernelName:s._66,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";function a(t){s._164.warn("tf.nonMaxSuppression() in webgl locks the UI thread. Call tf.nonMaxSuppressionAsync() instead");const{inputs:e,backend:n,attrs:a}=t,{boxes:o,scores:c}=e,{maxOutputSize:u,iouThreshold:l,scoreThreshold:h,softNmsSigma:p}=a,f=n.readSync(o.dataId),b=n.readSync(c.dataId),m=u,g=l,v=h,w=p,{selectedIndices:y,selectedScores:O}=i(f,b,m,g,v,w);return[n.makeTensorInfo([y.length],"int32",new Int32Array(y)),n.makeTensorInfo([O.length],"float32",new Float32Array(O))]}var s=n(0);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/const i=s._258.nonMaxSuppressionV5Impl,o={kernelName:s._67,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(1195),i=n(17);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=t=>{const{inputs:e,backend:n,attrs:o}=t,{indices:c}=e,{dtype:u,depth:l,onValue:h,offValue:p}=o,f=a._408.sizeFromShape(c.shape),b=new s.a(f,l,h,p),m=Object(i.a)({inputs:{x:c},backend:n,attrs:{shape:[f]}}),g=n.runWebGLProgram(b,[m],u);n.disposeIntermediateTensorInfo(m);const v=[...c.shape,l],w=Object(i.a)({inputs:{x:g},backend:n,attrs:{shape:v}});return n.disposeIntermediateTensorInfo(g),w},c={kernelName:a._70,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a){this.variableNames=["indices"],this.outputShape=[t,e],this.userCode=`\n void main() {\n ivec2 coords = getOutputCoords();\n int index = round(getIndices(coords.x));\n setOutput(mix(float(${a}), float(${n}),\n float(index == coords.y)));\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{x:s}=e;if("string"===s.dtype)throw new Error("onesLike is not supported under string dtype");if("complex64"===s.dtype){const t=Object(u.a)({inputs:{input:s},backend:n}),r=a({inputs:{x:t},backend:n}),e=Object(c.a)({inputs:{input:s},backend:n}),o=Object(l.a)({inputs:{x:e},backend:n}),h=Object(i.a)({inputs:{real:r,imag:o},backend:n});return n.disposeIntermediateTensorInfo(t),n.disposeIntermediateTensorInfo(r),n.disposeIntermediateTensorInfo(e),n.disposeIntermediateTensorInfo(o),h}return Object(o.a)({attrs:{shape:s.shape,dtype:s.dtype,value:1},backend:n})}var s=n(0),i=n(77),o=n(131),c=n(169),u=n(130),l=n(397);const h={kernelName:s._71,backendName:"webgl",kernelFunc:a};e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{axis:c}=a;if(1===e.length)return Object(o.a)({inputs:{input:e[0]},backend:n,attrs:{dim:c}});const shape=e[0].shape,u=e[0].dtype;e.forEach((t=>{s._408.assertShapesMatch(shape,t.shape,"All tensors passed to stack must have matching shapes"),s._408.assert(u===t.dtype,(()=>"All tensors passed to stack must have matching dtypes"))}));const l=[],h=e.map((t=>{const e=Object(o.a)({inputs:{input:t},backend:n,attrs:{dim:c}});return l.push(e),e})),p=Object(i.a)({inputs:h,backend:n,attrs:{axis:c}});return l.forEach((t=>n.disposeIntermediateTensorInfo(t))),p}var s=n(0),i=n(381),o=n(389);const c={kernelName:s._74,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";var a=n(28);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,paddings,e){this.variableNames=["x"],this.customUniforms=[{name:"value",type:"float"}],this.outputShape=paddings.map(((e,n)=>e[0]+t[n]+e[1]));const n=t.length,type=Object(a.a)(n),s=paddings.map((t=>t[0])).join(","),i=paddings.map(((e,n)=>e[0]+t[n])).join(","),o=["coords[0]","coords[1]","coords[2]","coords[3]"].slice(0,n);if(1===n)return this.userCode=`\n int start = ${s};\n int end = ${i};\n\n void main() {\n int outC = getOutputCoords();\n if (outC < start || outC >= end) {\n setOutput(value);\n } else {\n setOutput(getX(outC - start));\n }\n }\n `,void 0;this.userCode=`\n ${type} start = ${type}(${s});\n ${type} end = ${type}(${i});\n\n void main() {\n ${type} outC = getOutputCoords();\n if (any(lessThan(outC, start)) || any(greaterThanEqual(outC, end))) {\n setOutput(value);\n } else {\n ${type} coords = outC - start;\n setOutput(getX(${o}));\n }\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(60),s=n(28);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,paddings,e){this.variableNames=["x"],this.packedInputs=true,this.packedOutput=true,this.customUniforms=[{name:"value",type:"float"}],this.outputShape=paddings.map(((e,n)=>e[0]+t[n]+e[1]));const n=t.length,i=Object(s.a)(n),o=paddings.map((t=>t[0])).join(","),c=paddings.map(((e,n)=>e[0]+t[n])).join(","),u=Object(a.a)("rc",n),l=Object(a.a)("source",n),h=`${u[n-1]} < ${this.outputShape[n-1]}`,p=1===n?"source":`vec2(${l.slice(-2).join()})`,f=[`${i} rc = outputLoc;`,`${u[n-1]} += 1;\n if(${h}) {\n `,1===n?"":`}\n rc = outputLoc;\n ${u[n-2]} += 1;\n if(${u[n-2]} < ${this.outputShape[n-2]}) {`,1===n?"":` ${u[n-1]} += 1;\n if(${h}) {`],b=1===n?"rc < start || rc >= end":"any(lessThan(rc, start)) || any(greaterThanEqual(rc, end))";let m="";for(let t=0,e=1===n?2:4;t<e;t++)m+=`\n ${f[t]}\n if (${b}) {\n result[${t}] = float(value);\n } else {\n ${i} source = rc - start;\n result[${t}] = getChannel(getX(${l.join()}), ${p});\n }\n `;m+=1===n?"} ":"}}",this.userCode=`\n const ${i} start = ${i}(${o});\n const ${i} end = ${i}(${c});\n\n void main() {\n ${i} outputLoc = getOutputCoords();\n vec4 result = vec4(0.);\n ${m}\n setOutput(result);\n }\n `}}e.a=i},function(t,e,n){"use strict";var a=n(0),s=n(46),i=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="\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",c="\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 "+s.b+"\n return result;\n",u=Object(i.b)({opSnippet:o,packedOpSnippet:c}),l={kernelName:a._77,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:l}=e,{axis:h,keepDims:p}=a,f=l.shape.length,b=[],m=s._408.parseAxisParam(h,l.shape);let g=m;const v=s._164.getAxesPermutation(g,f);let w=l,y;if(null!=v&&(w=Object(u.a)({inputs:{x:l},backend:n,attrs:{perm:v}}),g=s._164.getInnerMostAxes(g.length,f),b.push(w)),s._164.assertAxesAreInnerMostDims("prod",g,f),n.shouldExecuteOnCPU([w])){const t=n.texData.get(w.dataId).values,{outVals:e,outShape:a,outDtype:s}=Object(o.z)(w.shape,w.dtype,t,g);y=n.makeTensorInfo(a,s,e)}else{const[t,e]=s._164.computeOutAndReduceShapes(w.shape,g),a=s._408.sizeFromShape(e),o=Object(c.a)({inputs:{x:w},backend:n,attrs:{shape:[-1,a]}}),u=Object(s._381)(l.dtype),h=Object(i.a)(o,u,"prod",n);y=Object(c.a)({inputs:{x:h},backend:n,attrs:{shape:t}}),b.push(o),b.push(h)}if(p){b.push(y);const t=s._164.expandShapeToKeepDim(y.shape,m);y=Object(c.a)({inputs:{x:y},backend:n,attrs:{shape:t}})}return b.forEach((t=>n.disposeIntermediateTensorInfo(t))),y}var s=n(0),i=n(89),o=n(12),c=n(17),u=n(47);const l={kernelName:s._79,backendName:"webgl",kernelFunc:a};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{paramsNestedSplits:s,paramsDenseValues:o,indices:c}=e,{outputRaggedRank:u}=a,l=s.map((t=>n.readSync(t.dataId))),h=s.map((t=>t.shape)),p=n.readSync(o.dataId),f=n.readSync(c.dataId),[b,m,g]=Object(i.A)(l,h,p,o.shape,o.dtype,f,c.shape,u),v=b.map((t=>n.makeTensorInfo([t.length],"int32",t))),w=n.makeTensorInfo(g,o.dtype,m);return v.concat([w])}var s=n(0),i=n(12);const o={kernelName:s._81,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{starts:a,limits:s,deltas:o}=e,c=n.readSync(a.dataId),u=n.readSync(s.dataId),l=n.readSync(o.dataId),[h,p]=Object(i.B)(c,a.shape,a.dtype,u,s.shape,l,o.shape),f=undefined,b=undefined;return[n.makeTensorInfo([h.length],"int32",h),n.makeTensorInfo([p.length],a.dtype,p)]}var s=n(0),i=n(12);const o={kernelName:s._82,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{shape:shape,values:s,defaultValue:o,rowPartitionTensors:c}=e,{rowPartitionTypes:u}=a,l=n.readSync(shape.dataId),h=n.readSync(s.dataId),p=n.readSync(o.dataId),f=c.map((t=>n.readSync(t.dataId))),b=c.map((t=>t.shape)),[m,g]=Object(i.C)(l,shape.shape,h,s.shape,s.dtype,p,o.shape,f,b,u);return n.makeTensorInfo(m,s.dtype,g)}var s=n(0),i=n(12);const o={kernelName:s._83,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return 1.0 / x;",o=Object(s.d)({opSnippet:i}),c={kernelName:a._88,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10),i;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=n(41).b+"\n return (x < 0.0) ? 0.0 : x;\n",c="\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",u=Object(s.d)({opSnippet:o,packedOpSnippet:c}),l={kernelName:a._90,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10),i;
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=n(41).b+"\n return (x < 0.0) ? 0.0 : min(6.0, x);\n",c="\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",u=Object(s.d)({opSnippet:o,packedOpSnippet:c}),l={kernelName:a._91,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{images:c}=e,{alignCorners:u,halfPixelCenters:l,size:size}=a,[h,p]=size,f=Object(s._222)().getBool("WEBGL_PACK_IMAGE_OPERATIONS")?new o.a(c.shape,h,p,u,l):new i.a(c.shape,h,p,u,l);return n.runWebGLProgram(f,[c],"float32")}var s=n(0),i=n(1209),o=n(1210);const c={kernelName:s._93,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s){this.variableNames=["A"],this.outputShape=[];const[i,o,c,u]=t;this.outputShape=[i,e,n,u];const l=[a&&e>1?o-1:o,a&&n>1?c-1:c],h=[a&&e>1?e-1:e,a&&n>1?n-1:n];let p;p=s?"(vec2(yRC) + vec2(0.5)) * effectiveInputOverOutputRatioRC - vec2(0.5)":"vec2(yRC) * effectiveInputOverOutputRatioRC",this.userCode=`\n const vec2 effectiveInputOverOutputRatioRC = vec2(\n ${l[0]/h[0]},\n ${l[1]/h[1]});\n const vec2 inputShapeRC = vec2(${o}.0, ${c}.0);\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n ivec2 yRC = coords.yz;\n\n // Fractional source index.\n vec2 sourceFracIndexRC = ${p};\n\n // Compute the four integer indices.\n ivec2 sourceFloorRC = ivec2(max(sourceFracIndexRC, vec2(0.0)));\n ivec2 sourceCeilRC = ivec2(\n min(inputShapeRC - 1.0, ceil(sourceFracIndexRC)));\n\n float topLeft = getA(b, sourceFloorRC.x, sourceFloorRC.y, d);\n float bottomLeft = getA(b, sourceCeilRC.x, sourceFloorRC.y, d);\n float topRight = getA(b, sourceFloorRC.x, sourceCeilRC.y, d);\n float bottomRight = getA(b, sourceCeilRC.x, sourceCeilRC.y, d);\n\n vec2 fracRC = sourceFracIndexRC - vec2(sourceFloorRC);\n\n float top = topLeft + (topRight - topLeft) * fracRC.y;\n float bottom = bottomLeft + (bottomRight - bottomLeft) * fracRC.y;\n float newValue = top + (bottom - top) * fracRC.x;\n\n setOutput(newValue);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true,this.outputShape=[];const[i,o,c,u]=t;this.outputShape=[i,e,n,u];const l=[a&&e>1?o-1:o,a&&n>1?c-1:c],h=[a&&e>1?e-1:e,a&&n>1?n-1:n];let p;p=s?"(vec3(yRC) + vec3(0.5)) * effectiveInputOverOutputRatioRC - vec3(0.5)":"vec3(yRC) * effectiveInputOverOutputRatioRC",this.userCode=`\n const vec3 effectiveInputOverOutputRatioRC = vec3(\n ${l[0]/h[0]},\n ${l[1]/h[1]},\n ${l[1]/h[1]});\n const vec3 inputShapeRC = vec3(${o}.0, ${c}.0,\n ${c}.0);\n\n float getAValue(int b, int r, int c, int d) {\n return getChannel(getA(b, r, c, d), vec2(c, d));\n }\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n // Calculate values for next column in yRC.z.\n ivec3 yRC = coords.yzz + ivec3(0, 0, 1);\n\n // Fractional source index.\n vec3 sourceFracIndexRC = ${p};\n\n // Compute the four integer indices.\n ivec3 sourceFloorRC = ivec3(max(sourceFracIndexRC, vec3(0.0)));\n ivec3 sourceCeilRC = ivec3(\n min(inputShapeRC - 1.0, ceil(sourceFracIndexRC)));\n\n // Should we calculate next column and row elements in 2x2 packed cell.\n bool hasNextCol = d < ${u-1};\n bool hasNextRow = coords.z < ${n-1};\n\n // In parallel, construct four corners for all four components in\n // packed 2x2 cell.\n vec4 topLeft = vec4(\n getAValue(b, sourceFloorRC.x, sourceFloorRC.y, d),\n hasNextCol ? getAValue(b, sourceFloorRC.x, sourceFloorRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceFloorRC.x, sourceFloorRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceFloorRC.x, sourceFloorRC.z, d + 1) : 0.0);\n\n vec4 bottomLeft = vec4(\n getAValue(b, sourceCeilRC.x, sourceFloorRC.y, d),\n hasNextCol ? getAValue(b, sourceCeilRC.x, sourceFloorRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceCeilRC.x, sourceFloorRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceCeilRC.x, sourceFloorRC.z, d + 1) : 0.0);\n\n vec4 topRight = vec4(\n getAValue(b, sourceFloorRC.x, sourceCeilRC.y, d),\n hasNextCol ? getAValue(b, sourceFloorRC.x, sourceCeilRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceFloorRC.x, sourceCeilRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceFloorRC.x, sourceCeilRC.z, d + 1) : 0.0);\n\n vec4 bottomRight = vec4(\n getAValue(b, sourceCeilRC.x, sourceCeilRC.y, d),\n hasNextCol ? getAValue(b, sourceCeilRC.x, sourceCeilRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceCeilRC.x, sourceCeilRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceCeilRC.x, sourceCeilRC.z, d + 1) : 0.0);\n\n vec3 fracRC = sourceFracIndexRC - vec3(sourceFloorRC);\n\n vec4 top = mix(topLeft, topRight, fracRC.yyzz);\n vec4 bottom = mix(bottomLeft, bottomRight, fracRC.yyzz);\n vec4 newValue = mix(top, bottom, fracRC.x);\n\n setOutput(newValue);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{images:s,dy:o}=e,{alignCorners:c}=a,u=new i.a(o.shape,s.shape,c);return n.runWebGLProgram(u,[o],o.dtype)}var s=n(0),i=n(1212);const o={kernelName:s._94,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n){this.variableNames=["dy"],this.outputShape=[],this.outputShape=e;const[,a,s]=e,[,i,o]=t,c=[n&&i>1?a-1:a,n&&o>1?s-1:s],u=[n&&i>1?i-1:i,n&&o>1?o-1:o],l=c[0]/u[0],h=c[1]/u[1],p=1/l,f=1/h,b=2*Math.ceil(p)+2,m=2*Math.ceil(f)+2;this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n int r = coords[1];\n int c = coords[2];\n\n float accumulator = 0.0;\n\n const float heightScale = float(${l});\n const float widthScale = float(${h});\n\n const float invHeightScale = float(${p});\n const float invWidthScale = float(${f});\n\n const int winHeight = int(${b});\n const int winWidth = int(${m});\n\n // Compute bounds for where in dy we will look\n float startRLerp = floor(float(r) * invHeightScale);\n int startDyR = int(startRLerp - float(winHeight / 2));\n\n float startCLerp = floor(float(c) * invWidthScale);\n int startDyC = int(startCLerp - float(winWidth / 2));\n\n // Loop over dy\n for (int dyROffset = 0; dyROffset < winHeight; dyROffset++) {\n int dyR = dyROffset + startDyR;\n\n // Guard against the window exceeding the bounds of dy\n if (dyR < 0 || dyR >= ${i}) {\n continue;\n }\n\n for (int dyCOffset = 0; dyCOffset < winWidth; dyCOffset++) {\n int dyC = dyCOffset + startDyC;\n\n // Guard against the window exceeding the bounds of dy\n if (dyC < 0 || dyC >= ${o}) {\n continue;\n }\n\n float dxR = float(dyR) * heightScale;\n int topDxRIndex = int(floor(dxR));\n int bottomDxRIndex = int(min(ceil(dxR), ${a-1}.0));\n float dxRLerp = dxR - float(topDxRIndex);\n float inverseDxRLerp = 1.0 - dxRLerp;\n\n float dxC = float(dyC) * widthScale;\n int leftDxCIndex = int(floor(dxC));\n int rightDxCIndex = int(min(ceil(dxC), ${s-1}.0));\n float dxCLerp = dxC - float(leftDxCIndex);\n float inverseDxCLerp = 1.0 - dxCLerp;\n\n if (r == topDxRIndex && c == leftDxCIndex) {\n // topLeft\n accumulator +=\n getDy(b, dyR, dyC, d) * inverseDxRLerp * inverseDxCLerp;\n }\n\n if (r == topDxRIndex && c == rightDxCIndex) {\n // topRight\n accumulator += getDy(b, dyR, dyC, d) * inverseDxRLerp * dxCLerp;\n }\n\n if (r == bottomDxRIndex && c == leftDxCIndex) {\n // bottomLeft\n accumulator += getDy(b, dyR, dyC, d) * dxRLerp * inverseDxCLerp;\n }\n\n if (r == bottomDxRIndex && c == rightDxCIndex) {\n // bottomRight\n accumulator += getDy(b, dyR, dyC, d) * dxRLerp * dxCLerp;\n }\n }\n }\n // End loop over dy\n\n setOutput(accumulator);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{images:c}=e,{alignCorners:u,halfPixelCenters:l,size:size}=a,[h,p]=size,f=Object(s._222)().getBool("WEBGL_PACK_IMAGE_OPERATIONS")?new o.a(c.shape,h,p,u,l):new i.a(c.shape,h,p,u,l);return n.runWebGLProgram(f,[c],c.dtype)}var s=n(0),i=n(1214),o=n(1215);const c={kernelName:s._95,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s){this.variableNames=["A"],this.outputShape=[];const[i,o,c,u]=t;this.outputShape=[i,e,n,u];const l=[a&&e>1?o-1:o,a&&n>1?c-1:c],h=[a&&e>1?e-1:e,a&&n>1?n-1:n],p=a?"0.5":"0.0";let f;f=s?"max((vec2(yRC) + vec2(0.5)) * effectiveInputOverOutputRatioRC, vec2(0.0))":"vec2(yRC) * effectiveInputOverOutputRatioRC",this.userCode=`\n const vec2 effectiveInputOverOutputRatioRC = vec2(\n ${l[0]/h[0]},\n ${l[1]/h[1]});\n const vec2 inputShapeRC = vec2(${o}.0, ${c}.0);\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n ivec2 yRC = coords.yz;\n\n // Fractional source index.\n vec2 sourceFracIndexRC = ${f};\n\n // Compute the coordinators of nearest neighbor point.\n ivec2 sourceNearestRC = ivec2(\n min(inputShapeRC - 1.0, floor(sourceFracIndexRC + ${p})));\n float newValue = getA(b, sourceNearestRC.x, sourceNearestRC.y, d);\n\n setOutput(newValue);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s){this.variableNames=["A"],this.packedInputs=true,this.packedOutput=true,this.outputShape=[];const[i,o,c,u]=t;this.outputShape=[i,e,n,u];const l=[a&&e>1?o-1:o,a&&n>1?c-1:c],h=[a&&e>1?e-1:e,a&&n>1?n-1:n],p=a?"0.5":"0.0";let f;f=s?"max((vec3(yRC) + vec3(0.5)) * effectiveInputOverOutputRatioRC, vec3(0.0))":"vec3(yRC) * effectiveInputOverOutputRatioRC",this.userCode=`\n const vec3 effectiveInputOverOutputRatioRC = vec3(\n ${l[0]/h[0]},\n ${l[1]/h[1]},\n ${l[1]/h[1]});\n const vec3 inputShapeRC = vec3(${o}.0, ${c}.0,\n ${c}.0);\n\n float getAValue(int b, int r, int c, int d) {\n return getChannel(getA(b, r, c, d), vec2(c, d));\n }\n\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n // Calculate values for next column in yRC.z.\n ivec3 yRC = coords.yzz + ivec3(0, 0, 1);\n\n // Fractional source index.\n vec3 sourceFracIndexRC = ${f};\n\n // Compute the coordinators of nearest neighbor point.\n ivec3 sourceNearestRC = ivec3(\n min(inputShapeRC - 1.0, floor(sourceFracIndexRC + ${p})));\n\n // Should we calculate next column and row elements in 2x2 packed cell.\n bool hasNextCol = d < ${u-1};\n bool hasNextRow = coords.z < ${n-1};\n\n vec4 newValue = vec4(\n getAValue(b, sourceNearestRC.x, sourceNearestRC.y, d),\n hasNextCol ? getAValue(b, sourceNearestRC.x, sourceNearestRC.y, d + 1)\n : 0.0,\n hasNextRow ? getAValue(b, sourceNearestRC.x, sourceNearestRC.z, d)\n : 0.0,\n (hasNextRow && hasNextCol) ?\n getAValue(b, sourceNearestRC.x, sourceNearestRC.z, d + 1) : 0.0);\n\n setOutput(newValue);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{images:s,dy:o}=e,{alignCorners:c}=a,u=new i.a(o.shape,s.shape,c);return n.runWebGLProgram(u,[o],o.dtype)}var s=n(0),i=n(1217);const o={kernelName:s._96,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n){this.variableNames=["dy"],this.outputShape=[],this.outputShape=e;const[,a,s]=e,[,i,o]=t,c=[n&&i>1?a-1:a,n&&o>1?s-1:s],u=[n&&i>1?i-1:i,n&&o>1?o-1:o],l=c[0]/u[0],h=c[1]/u[1],p=1/l,f=1/h,b=2*Math.ceil(p)+2,m=2*Math.ceil(f)+2;this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int b = coords[0];\n int d = coords[3];\n int r = coords[1];\n int c = coords[2];\n\n float accumulator = 0.0;\n\n const float heightScale = float(${l});\n const float widthScale = float(${h});\n\n const float invHeightScale = float(${p});\n const float invWidthScale = float(${f});\n\n const int winHeight = int(${b});\n const int winWidth = int(${m});\n\n // Compute bounds for where in dy we will look\n float startRLerp = floor(float(r) * invHeightScale);\n int startDyR = int(floor(startRLerp - float(winHeight / 2)));\n\n float startCLerp = floor(float(c) * invWidthScale);\n int startDyC = int(floor(startCLerp - float(winWidth / 2)));\n\n // Loop over dy\n for (int dyROffset = 0; dyROffset < winHeight; dyROffset++) {\n int dyR = dyROffset + startDyR;\n\n // Guard against the window exceeding the bounds of dy\n if (dyR < 0 || dyR >= ${i}) {\n continue;\n }\n\n for (int dyCOffset = 0; dyCOffset < winWidth; dyCOffset++) {\n int dyC = dyCOffset + startDyC;\n\n // Guard against the window exceeding the bounds of dy\n if (dyC < 0 || dyC >= ${o}) {\n continue;\n }\n\n float sourceFracRow =\n float(${c[0]}) *\n (float(dyR) / float(${u[0]}));\n\n float sourceFracCol =\n float(${c[1]}) *\n (float(dyC) / float(${u[1]}));\n\n int sourceNearestRow = int(min(\n float(int(${a}) - 1),\n ${n} ? float(round(sourceFracRow)) :\n float(floor(sourceFracRow))));\n\n int sourceNearestCol = int(min(\n float(int(${s}) - 1),\n ${n} ? float(round(sourceFracCol)) :\n float(floor(sourceFracCol))));\n\n if (r == sourceNearestRow && c == sourceNearestCol) {\n accumulator += getDy(b, dyR, dyC, d);\n }\n }\n }\n // End loop over dy\n\n setOutput(accumulator);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:u}=e,{dims:l}=a,h=u.shape.length,p=s._408.parseAxisParam(l,u.shape);if(0===h)return Object(c.a)({inputs:{x:u},backend:n});const f=Object(s._222)().getBool("WEBGL_PACK_ARRAY_OPERATIONS")?new o.a(u.shape,p):new i.a(u.shape,p);return n.runWebGLProgram(f,[u],u.dtype)}var s=n(0),i=n(1219),o=n(1220),c=n(50);const u={kernelName:s._97,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";var a=n(28);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e){this.variableNames=["x"];const n=t.length;if(n>4)throw new Error(`WebGL backend: Reverse of rank-${n} tensor is not yet supported`);if(this.outputShape=t,1===n)return this.userCode=`\n void main() {\n int coord = getOutputCoords();\n setOutput(getX(${t[0]} - coord - 1));\n }\n `,void 0;const s=n=>-1!==e.indexOf(n)&&1!==t[n]?`${t[n]} - coords[${n}] - 1`:`coords[${n}]`,i=t.map(((t,e)=>s(e))).join(","),type=Object(a.a)(n);this.userCode=`\n void main() {\n ${type} coords = getOutputCoords();\n setOutput(getX(${i}));\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(60),s=n(28);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
class i{constructor(t,e){function n(t){return u(t)}function i(t){return t[h-1]="("+t[h-1]+" + 1)",u(t)}function o(t){return t[h-2]="("+t[h-2]+" + 1)",u(t)}function c(t){return t[h-1]="("+t[h-1]+" + 1)",t[h-2]="("+t[h-2]+" + 1)",u(t)}function u(e){const n=t.map(((t,n)=>l(n,e))),a=undefined,s=undefined;return`getChannel(getX(${n.join(",")}), vec2(${n.slice(-2).join(",")}))`}function l(n,a){return-1!==e.indexOf(n)&&1!==t[n]?`${t[n]} - ${a[n]} - 1`:`${a[n]}`}this.variableNames=["x"],this.packedInputs=true,this.packedOutput=true;const h=t.length;if(h>4)throw new Error(`WebGL backend: Reverse of rank-${h} tensor is not yet supported`);this.outputShape=t;const p=Object(a.a)("rc",h),f=`${p[h-1]} + 1 < ${this.outputShape[h-1]}`,b=`${p[h-2]} + 1 < ${this.outputShape[h-2]}`,type=Object(s.a)(h);this.userCode=1===h?`\n void main(){\n int rc = getOutputCoords();\n vec4 result = vec4(0.);\n result.r = getChannel(getX(${t[0]} - rc - 1),\n ${t[0]} - rc - 1);\n if(${f}){\n result.g = getChannel(getX(${t[0]} - (rc + 1) - 1),\n ${t[0]} - (rc + 1) - 1);\n }\n setOutput(result);\n }\n `:`\n void main() {\n ${type} rc = getOutputCoords();\n vec4 result = vec4(0.);\n result.r = ${n(p.slice())};\n if(${f}){\n result.g = ${i(p.slice())};\n }\n if(${b}) {\n result.b = ${o(p.slice())};\n if(${f}) {\n result.a = ${c(p.slice())};\n }\n }\n setOutput(result);\n }\n `}}e.a=i},function(t,e,n){"use strict";var a=n(0),s=n(1222);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i={kernelName:a._98,backendName:"webgl",kernelFunc:({inputs:t,attrs:e,backend:n})=>{const{image:image}=t,{radians:i,fillValue:o,center:c}=e,u=n,l=new s.a(image.shape,o),[h,p]=a._164.getImageCenter(c,image.shape[1],image.shape[2]),f=[[h,p,Math.sin(i),Math.cos(i)]],b=undefined;return u.runWebGLProgram(l,[image],image.dtype,f)}};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e){this.variableNames=["Image"],this.outputShape=[],this.customUniforms=[{name:"params",type:"vec4"}];const n=t[1],a=t[2];this.outputShape=t;let s="";s="number"==typeof e?`float outputValue = ${e.toFixed(2)};`:`\n vec3 fill = vec3(${e.join(",")});\n float outputValue = fill[coords[3]];`,this.userCode=`\n void main() {\n ivec4 coords = getOutputCoords();\n int x = coords[2];\n int y = coords[1];\n float coordXFloat = (float(x) - params[0]) * params[3] -\n (float(y) - params[1]) * params[2];\n float coordYFloat = (float(x) - params[0]) * params[2] +\n (float(y) - params[1]) * params[3];\n int coordX = int(round(coordXFloat + params[0]));\n int coordY = int(round(coordYFloat + params[1]));\n ${s}\n if(coordX >= 0 && coordX < ${a} && coordY >= 0 && coordY < ${n}) {\n outputValue = getImage(coords[0], coordY, coordX, coords[3]);\n }\n setOutput(outputValue);\n }\n `}}e.a=a},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\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",o=Object(s.d)({opSnippet:i}),c={kernelName:a._99,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return inversesqrt(x);",c=Object(s.d)({opSnippet:o,cpuKernelImpl:i.E}),u={kernelName:a._100,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{indices:u,updates:l}=e,{shape:shape}=a,{sliceRank:h,numUpdates:p,sliceSize:f,strides:b,outputSize:m}=s._164.calculateShapes(l,u,shape),g=[m/f,f];if(0===m)return n.makeTensorInfo(shape,u.dtype);const v=Object(c.a)({inputs:{x:u},backend:n,attrs:{shape:[p,h]}}),w=Object(c.a)({inputs:{x:l},backend:n,attrs:{shape:[p,f]}}),y=n.makeTensorInfo([],"float32",new Float32Array([0]));let O;O=Object(s._222)().getBool("WEBGL_PACK")?new o.a(p,h,v.shape.length,w.shape.length,b,g):new i.a(p,h,v.shape.length,w.shape.length,b,g);const x=n.runWebGLProgram(O,[w,v,y],w.dtype),A=Object(c.a)({inputs:{x:x},backend:n,attrs:{shape:shape}});return n.disposeIntermediateTensorInfo(v),n.disposeIntermediateTensorInfo(w),n.disposeIntermediateTensorInfo(x),n.disposeIntermediateTensorInfo(y),A}var s=n(0),i=n(231),o=n(1226),c=n(17);const u={kernelName:s._102,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";var a=n(28);
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e,n,s,i,shape,o=true,c=false){this.variableNames=["updates","indices","defaultValue"],this.packedInputs=true,this.packedOutput=true,this.outputShape=shape;const u=Object(a.a)(i.length),l=Object(a.a)(shape.length);let h="";1===n?h="i":2===n&&(h="i, j");const p=`getIndices(${h})`;let f="";1===s?f="i":2===s&&(f="i, coords[1]");const b=`getUpdates(${f})`;let m="";c&&(m="coords[0], coords[1]");const g=`getDefaultValue(${m})`,v=e>1?"strides[j]":"strides",w=e>1?"strides[j + 1]":"strides";this.userCode=`\n ${u} strides = ${u}(${i});\n\n void main() {\n ${l} coords = getOutputCoords();\n vec4 sum = vec4(0.);\n vec4 found = vec4(0.);\n for (int i = 0; i < ${t}; i+=2) {\n ivec2 flattenedIndex = ivec2(0);\n for (int j = 0; j < ${e}; j+=2) {\n ivec4 index = round(${p});\n flattenedIndex += index.xz * ${v};\n if (j + 1 < ${e}) {\n flattenedIndex += index.yw * ${w};\n }\n }\n if (flattenedIndex[0] == coords[0] || flattenedIndex[1] == coords[0] ||\n flattenedIndex[0] == coords[0] + 1 || flattenedIndex[1] == coords[0] + 1) {\n vec4 updVals = ${b};\n if (flattenedIndex[0] == coords[0]) {\n sum.xy += updVals.xy;\n found.xy = vec2(1.);\n } else if (flattenedIndex[0] == coords[0] + 1) {\n sum.zw += updVals.xy;\n found.zw = vec2(1.);\n }\n if (flattenedIndex[1] == coords[0]) {\n sum.xy += updVals.zw;\n found.xy = vec2(1.);\n } else if (flattenedIndex[1] == coords[0] + 1) {\n sum.zw += updVals.zw;\n found.zw = vec2(1.);\n }\n }\n }\n setOutput(mix(${g}, sum, found));\n }\n `}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{sortedSequence:s,values:o}=e,{side:c}=a,u=new i.a(s.shape[0],s.shape[1],o.shape[1],c),l=[[s.shape[1]]];return n.runWebGLProgram(u,[s,o],"int32",l)}var s=n(0),i=n(1228);const o={kernelName:s._103,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0);
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e,n,s){this.variableNames=["sortedSequence","values"],this.customUniforms=[{name:"numInputs",type:"int"}],this.outputShape=[t,n];const i="while (left < right) {",o=`for (int i = 0; i < ${Math.ceil(Math.log2(e+1))}; ++i) { if (left >= right) break;`,c=2===Object(a._222)().getNumber("WEBGL_VERSION")?i:o,u="left"===s?"<":"<=";this.userCode=`\n int findBound(int batch, float value) {\n int left = 0;\n int right = numInputs;\n int mid;\n ${c}\n mid = (left + right) / 2;\n if (getSortedSequence(batch, mid) ${u} value) {\n left = mid + 1;\n } else {\n right = mid;\n }\n }\n return right;\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int valueIndex = coords[1];\n\n float value = getValues(batch, valueIndex);\n\n setOutput(float(findBound(batch, value)));\n }\n `}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function select(t){const{inputs:e,backend:n}=t,{condition:i,t:o,e:c}=e,u=new s.a(i.shape.length,o.shape,o.shape.length);return n.runWebGLProgram(u,[i,o,c],Object(a._406)(o.dtype,c.dtype))}var a=n(0),s=n(1230);const i={kernelName:a._104,backendName:"webgl",kernelFunc:select};e.a=i},function(t,e,n){"use strict";var a=n(28);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,shape,e){let n,s;if(this.variableNames=["c","a","b"],this.outputShape=shape,e>4)throw Error(`Where for rank ${e} is not yet supported`);if(1===e)s="resRC",n="resRC";else{const e=["resRC.x","resRC.y","resRC.z","resRC.w"],a=[],i=[];for(let n=0;n<shape.length;n++)i.push(`${e[n]}`),n<t&&a.push(`${e[n]}`);n=a.join(),s=i.join()}const i=Object(a.a)(e);this.userCode=`\n void main() {\n ${i} resRC = getOutputCoords();\n float cVal = getC(${n});\n if (cVal >= 1.0) {\n setOutput(getA(${s}));\n } else {\n setOutput(getB(${s}));\n }\n }\n `}}e.a=s},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i=`\n // Stable and Attracting Fixed Point (0, 1) for Normalized Weights.\n // see: https://arxiv.org/abs/1706.02515\n float scaleAlpha = ${a._164.SELU_SCALEALPHA};\n float scale = ${a._164.SELU_SCALE};\n return (x >= 0.0) ? scale * x : scaleAlpha * (exp(x) - 1.0);\n`,o=Object(s.d)({opSnippet:i}),c={kernelName:a._105,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=s.a+"\n return 1.0 / (1.0 + exp(-1.0 * x));\n",c="\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",u=Object(s.d)({opSnippet:o,packedOpSnippet:c,cpuKernelImpl:i.G}),l={kernelName:a._106,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\n if (isnan(x)) { return 0.0; }\n return sign(x);\n",o=Object(s.d)({opSnippet:i}),c={kernelName:a._107,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(46),i=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o=i.a+"\n return sin(x);\n",c=`\n vec4 result = sin(x);\n bvec4 isNaN = isnan(x);\n ${s.b}\n return result;\n`,u=Object(i.d)({opSnippet:o,packedOpSnippet:c}),l={kernelName:a._108,backendName:"webgl",kernelFunc:u};e.a=l},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\n float e2x = exp(x);\n return (e2x - 1.0 / e2x) / 2.0;\n",o=Object(s.d)({opSnippet:i}),c={kernelName:a._109,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\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",o=Object(s.d)({opSnippet:i}),c={kernelName:a._112,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(398),i=n(17),o=n(47);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const c=t=>{const{inputs:e,backend:n,attrs:c}=t,{x:u}=e,{blockShape:blockShape,paddings:paddings}=c;a._408.assert(u.shape.length<=4,(()=>"spaceToBatchND for rank > 4 with a WebGL backend not implemented yet"));const l=blockShape.reduce(((t,e)=>t*e)),h=[[0,0]];h.push(...paddings);for(let t=1+blockShape.length;t<u.shape.length;++t)h.push([0,0]);const p=[],f=Object(s.a)({inputs:{x:u},backend:n,attrs:{paddings:h,constantValue:0}}),b=a._164.getReshaped(f.shape,blockShape,l,false),m=a._164.getPermuted(b.length,blockShape.length,false),g=a._164.getReshapedPermuted(f.shape,blockShape,l,false),v=Object(i.a)({inputs:{x:f},backend:n,attrs:{shape:b}}),w=Object(o.a)({inputs:{x:v},backend:n,attrs:{perm:m}}),y=Object(i.a)({inputs:{x:w},backend:n,attrs:{shape:g}});return p.push(f),p.push(v),p.push(w),p.forEach((t=>n.disposeIntermediateTensorInfo(t))),y},u={kernelName:a._113,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{indices:a,values:s,denseShape:o,defaultValue:c}=e;if(1!==o.shape.length)throw new Error(`Dense shape must be a vector, saw:\n ${o.shape}`);if(2!==a.shape.length)throw new Error(`Indices must be a matrix, saw:\n ${a.shape}`);if(1!==s.shape.length)throw new Error(`Values must be a vector, saw:\n ${s.shape}`);if(0!==c.shape.length)throw new Error(`Default value must be a scalar, saw:\n ${c.shape}`);const u=n.readSync(a.dataId),l=n.readSync(s.dataId),h=n.readSync(o.dataId),p=n.readSync(c.dataId)[0],[f,b,m,g,v]=Object(i.J)(u,a.shape,a.dtype,l,s.dtype,h,p);return[n.makeTensorInfo(b,a.dtype,f),n.makeTensorInfo([b[0]],s.dtype,m),n.makeTensorInfo([g.length],"bool",new Uint8Array(g.map((t=>Number(t))))),n.makeTensorInfo([v.length],a.dtype,new Int32Array(v))]}var s=n(0),i=n(12);const o={kernelName:s._114,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{inputIndices:a,inputShape:s,newShape:o}=e;if(2!==a.shape.length)throw new Error(`Input indices should be a matrix but received shape ${a.shape}`);if(1!==s.shape.length)throw new Error(`Input shape should be a vector but received shape ${s.shape}`);if(1!==o.shape.length)throw new Error(`Target shape should be a vector but received shape ${o.shape}`);const c=Array.from(n.readSync(s.dataId)),u=n.readSync(a.dataId),l=Array.from(n.readSync(o.dataId)),[h,p,f]=Object(i.K)(u,a.shape,a.dtype,c,l);return[n.makeTensorInfo(p,a.dtype,h),n.makeTensorInfo([f.length],o.dtype,new Int32Array(f))]}var s=n(0),i=n(12);const o={kernelName:s._115,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{data:data,indices:a,segmentIds:s}=e;if(data.shape.length<1)throw new Error("Data should be at least 1 dimensional but received scalar");if(1!==a.shape.length)throw new Error(`Indices should be a vector but received shape\n ${a.shape}`);if(1!==s.shape.length)throw new Error(`Segment ids should be a vector but received shape\n ${s.shape}`);const o=n.readSync(data.dataId),c=n.readSync(a.dataId),u=n.readSync(s.dataId),[l,h]=Object(i.L)(o,data.shape,data.dtype,c,u,true);return n.makeTensorInfo(h,data.dtype,l)}var s=n(0),i=n(12);const o={kernelName:s._116,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n}=t,{data:data,indices:a,segmentIds:s}=e;if(data.shape.length<1)throw new Error("Data should be at least 1 dimensional but received scalar");if(1!==a.shape.length)throw new Error(`Indices should be a vector but received shape\n ${a.shape}`);if(1!==s.shape.length)throw new Error(`Segment ids should be a vector but received shape\n ${s.shape}`);const o=n.readSync(data.dataId),c=n.readSync(a.dataId),u=n.readSync(s.dataId),[l,h]=Object(i.L)(o,data.shape,data.dtype,c,u);return n.makeTensorInfo(h,data.dtype,l)}var s=n(0),i=n(12);const o={kernelName:s._117,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{sparseIndices:u,sparseValues:l,defaultValue:h}=e,{outputShape:p}=a,{sliceRank:f,numUpdates:b,sliceSize:m,strides:g,outputSize:v}=s._164.calculateShapes(l,u,p),w=false;if("string"===l.dtype){const t=n.bufferSync(u),e=n.bufferSync(l),a=s._408.decodeString(n.readSync(h.dataId)[0]),o=Object(i.F)(t,e,p,v,m,b,f,g,a,w);return n.makeTensorInfo(p,o.dtype,o.values)}const y=new o.a(b,f,u.shape.length,l.shape.length,g,[v,1],w),O=n.runWebGLProgram(y,[l,u,h],l.dtype),x=Object(c.a)({inputs:{x:O},backend:n,attrs:{shape:p}});return n.disposeIntermediateTensorInfo(O),x}var s=n(0),i=n(12),o=n(231),c=n(17);const u={kernelName:s._118,backendName:"webgl",kernelFunc:a};e.a=u},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o}=e,{numOrSizeSplits:c,axis:u}=a,l=s._408.parseAxisParam(u,o.shape)[0],h=s._164.prepareSplitSize(o,c,l),p=o.shape.length,f=new Array(p).fill(0),size=o.shape.slice();return h.map((t=>{const e=[...size];e[l]=t;const a=Object(i.a)({inputs:{x:o},backend:n,attrs:{begin:f,size:e}});return f[l]+=t,a}))}var s=n(0),i=n(107);const o={kernelName:s._119,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(10),i=n(12);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const o="return sqrt(x);",c=Object(s.d)({opSnippet:o,packedOpSnippet:o,cpuKernelImpl:i.M}),u={kernelName:a._120,backendName:"webgl",kernelFunc:c};e.a=u},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return x * x;",o=Object(s.d)({opSnippet:i}),c={kernelName:a._121,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return (a - b) * (a - b);",o=Object(s.b)({opSnippet:i,packedOpSnippet:i}),c={kernelName:a._122,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:o}=e;if("string"!==o.dtype)throw new Error("Input must be of datatype string");const c=n.readSync(o.dataId),u=s._164.fromUint8ToStringArray(c),l=Object(i.N)(u,"string",a);return n.makeTensorInfo(o.shape,"string",l)}var s=n(0),i=n(12);const o={kernelName:s._123,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a({inputs:t,attrs:e,backend:n}){const{x:a}=t,s=i.b+`\n return x > 0.0 ? 1.0 : float(${e.alpha});\n `,o=new i.i(a.shape,s);return n.runWebGLProgram(o,[a],a.dtype)}var s=n(0),i=n(41);const o={kernelName:s._124,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:l}=e,{begin:h,end:p,strides:f,beginMask:b,endMask:m,ellipsisMask:g,newAxisMask:v,shrinkAxisMask:w}=a,{finalShapeSparse:y,finalShape:O,isIdentity:x,sliceDim0:A,isSimpleSlice:I,begin:j,end:C,strides:_}=s._363.sliceInfo(l.shape,h,p,f,b,m,g,v,w);let k;if(x)k=Object(c.a)({inputs:{x:l},backend:n,attrs:{shape:O}});else if(A||I){s._408.assert(l.shape.length>=1,(()=>`Input must have rank at least 1, got: ${l.shape.length}`));const size=s._363.computeOutShape(j,C,_),t=Object(u.a)({inputs:{x:l},backend:n,attrs:{begin:j,size:size}});k=Object(c.a)({inputs:{x:t},backend:n,attrs:{shape:O}}),n.disposeIntermediateTensorInfo(t)}else{const t=undefined;if(n.shouldExecuteOnCPU([l])){const t=n.readSync(l.dataId),e=Object(s._178)(l.shape,l.dtype,t),a=Object(i.O)(y,e,_,j);k=n.makeTensorInfo(O,l.dtype,a.values)}else{const t=new o.a(j,_,y);k=n.runWebGLProgram(t,[l],l.dtype)}}const S=Object(c.a)({inputs:{x:k},backend:n,attrs:{shape:O}});return n.disposeIntermediateTensorInfo(k),S}var s=n(0),i=n(12),o=n(1250),c=n(17),u=n(107);const l={kernelName:s._125,backendName:"webgl",kernelFunc:a};e.a=l},function(t,e,n){"use strict";var a=n(28);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class s{constructor(t,e,size){this.variableNames=["x"],this.outputShape=size;const n=size.length,s=Object(a.a)(size.length),i=Object(a.a)(size.length);let o="";if(1===n)o="coords * strides + begin";else{let t=0;o=size.map(((e,n)=>(t++,1===size.length?`coords * strides[${n}] + begin[${n}]`:`coords[${t-1}] * strides[${n}] + begin[${n}]`))).join(",")}this.userCode=`\n ${s} begin = ${s}(${t});\n ${s} strides = ${s}(${e});\n\n void main() {\n ${i} coords = getOutputCoords();\n setOutput(getX(${o}));\n }\n `}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{separator:s,nGramWidths:o,leftPad:c,rightPad:u,padWidth:l,preserveShortSequences:h}=a,{data:data,dataSplits:p}=e,f=n.readSync(data.dataId),b=n.readSync(p.dataId),[m,g]=Object(i.P)(f,b,s,o,c,u,l,h);return[n.makeTensorInfo([m.length],"string",m),n.makeTensorInfo(p.shape,"int32",g)]}var s=n(0),i=n(12);const o={kernelName:s._126,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{skipEmpty:s}=a,{input:input,delimiter:o}=e;if("string"!==input.dtype)throw new Error("Input must be of datatype string");if(1!==input.shape.length)throw new Error(`Input must be a vector, got shape: ${input.shape}`);if(0!==o.shape.length)throw new Error(`Delimiter must be a scalar, got shape: ${o.shape}`);const c=n.readSync(input.dataId),u=n.readSync(o.dataId)[0],[l,h,shape]=Object(i.Q)(c,u,s),p=h.length;return[n.makeTensorInfo([p,2],"int32",l),n.makeTensorInfo([p],"string",h),n.makeTensorInfo([2],"int32",new Int32Array(shape))]}var s=n(0),i=n(12);const o={kernelName:s._127,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{numBuckets:s}=a,{input:input}=e;if("string"!==input.dtype)throw new Error("Input must be of datatype string");if(s<=0)throw new Error("Number of buckets must be at least 1");const o=n.readSync(input.dataId),c=Object(i.R)(o,s);return n.makeTensorInfo(input.shape,"int32",c)}var s=n(0),i=n(12);const o={kernelName:s._128,backendName:"webgl",kernelFunc:a};e.a=o},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="return tan(x);",o=Object(s.d)({opSnippet:i}),c={kernelName:a._131,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";var a=n(0),s=n(10);
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
const i="\n float e2x = exp(-2.0 * abs(x));\n return sign(x) * (1.0 - e2x) / (1.0 + e2x);\n",o=Object(s.d)({opSnippet:i}),c={kernelName:a._132,backendName:"webgl",kernelFunc:o};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2022 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{tensor:c,indices:u,updates:l}=e,{}=a,{sliceRank:h,numUpdates:p,sliceSize:f,strides:b,outputSize:m}=s._164.calculateShapes(l,u,c.shape),g=[m/f,f];if(0===m)return n.makeTensorInfo(c.shape,u.dtype);const v=Object(o.a)({inputs:{x:u},backend:n,attrs:{shape:[p,h]}}),w=Object(o.a)({inputs:{x:l},backend:n,attrs:{shape:[p,f]}}),y=Object(o.a)({inputs:{x:c},backend:n,attrs:{shape:g}}),O=new i.a(p,h,v.shape.length,w.shape.length,b,g,false,true),x=n.runWebGLProgram(O,[w,v,y],y.dtype),A=Object(o.a)({inputs:{x:x},backend:n,attrs:{shape:c.shape}});return n.disposeIntermediateTensorInfo(v),n.disposeIntermediateTensorInfo(w),n.disposeIntermediateTensorInfo(y),n.disposeIntermediateTensorInfo(x),A}var s=n(0),i=n(231),o=n(17);const c={kernelName:s._135,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";function a(t){const e=t.length;if(e>5)throw Error(`Tile for rank ${e} is not yet supported`);if(1===e)return`imod(resRC, ${t[0]})`;const n=["resRC.x","resRC.y","resRC.z","resRC.w","resRC.u"],a=[];for(let e=0;e<t.length;e++)a.push(`imod(${n[e]}, ${t[e]})`);return a.join()}var s=n(28);
/**
* @license
* Copyright 2017 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class i{constructor(t,e){this.variableNames=["A"];const n=new Array(t.length);for(let a=0;a<n.length;a++)n[a]=t[a]*e[a];this.outputShape=n,this.rank=n.length;const i=Object(s.a)(this.rank),o=a(t);this.userCode=`\n void main() {\n ${i} resRC = getOutputCoords();\n setOutput(getA(${o}));\n }\n `}}e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t,e){null!==e&&t.disposeIntermediateTensorInfo(e)}function s(t){let e=1;for(;e<t;)e*=2;return e}function i(t){const{inputs:e,backend:n,attrs:i}=t,{x:b}=e,{k:m,sorted:g}=i,v=Object(o._222)().getNumber("TOPK_LAST_DIM_CPU_HANDOFF_SIZE_THRESHOLD"),w=Object(o._222)().getNumber("TOPK_K_CPU_HANDOFF_THRESHOLD"),y=b.shape,O=y[y.length-1];if(n.shouldExecuteOnCPU([b])||O<v||m>w){const t=n.readSync(b.dataId),[e,a]=Object(c.U)(t,y,b.dtype,m,g);return[n.makeTensorInfo(e.shape,e.dtype,e.values),n.makeTensorInfo(a.shape,a.dtype,a.values)]}if(0===m)return y[y.length-1]=0,[n.makeTensorInfo(y,b.dtype,[]),n.makeTensorInfo(y,"int32",[])];if(1===O)return[b,Object(l.a)({attrs:{shape:y,dtype:"int32",value:0},backend:n})];const x=n.texData.get(b.dataId),A=null!==x&&x.isPacked,I=A?n.unpackTensor(b):b,j=undefined,C=o._408.sizeFromShape(y)/O,_=Object(p.a)({inputs:{x:I},attrs:{shape:[C,O]},backend:n});A&&a(n,I);const k=s(m),S=s(O);let T=null;const L=()=>null===T?[_,_]:[_,T],B=(t,e,shape)=>{const s=L(),i=new u.b(shape),o=undefined,c=[[O],[null===T?1:0],[Number.NEGATIVE_INFINITY],[t],[e]],l=T;T=n.runWebGLProgram(i,s,"int32",c),a(n,l)};for(let t=1;t<k;t*=2){const e=2*t;for(let n=t;n>=1;n/=2)B(e,n,[C,S])}for(let t=S;t>k;t/=2){const e=L(),s=new u.a([C,t/2]),i=undefined,o=[[O],[null===T?1:0],[k]],c=T;T=n.runWebGLProgram(s,e,"int32",o),a(n,c);const l=k/2,h=2*l;for(let t=l;t>=1;t/=2)B(h,t,T.shape)}let N=T;T=Object(f.a)({inputs:{x:T},backend:n,attrs:{begin:0,size:[C,m]}}),a(n,N);let E=Object(h.a)({inputs:{x:_,indices:T},backend:n,attrs:{axis:1,batchDims:1}});a(n,_);const M=y.slice(0,-1);M.push(m),N=T,T=Object(p.a)({inputs:{x:T},attrs:{shape:M},backend:n}),a(n,N);const F=E;return E=Object(p.a)({inputs:{x:E},attrs:{shape:M},backend:n}),a(n,F),[E,T]}var o=n(0),c=n(12),u=n(1259),l=n(131),h=n(391),p=n(17),f=n(107);const b={kernelName:o._137,backendName:"webgl",kernelFunc:i};e.a=b},function(t,e,n){"use strict";class a{constructor(shape){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=shape,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 "}}e.b=a;class s{constructor(shape){this.variableNames=["x","indices"],this.customUniforms=[{name:"n",type:"int"},{name:"firstPass",type:"int"},{name:"k",type:"int"}],this.outputShape=shape,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\n // 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 "}}e.a=s},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function transform(t){const{inputs:e,backend:n,attrs:a}=t,{image:image,transforms:i}=e,{interpolation:o,fillMode:c,fillValue:u,outputShape:l}=a,[h,p,f,b]=image.shape,[m,g]=null!=l?l:[p,f],v=[h,m,g,b],w=new s.a(p,f,o,c,u,v);return n.runWebGLProgram(w,[image,i],"float32")}var a=n(0),s=n(1261);const i={kernelName:a._138,backendName:"webgl",kernelFunc:transform};e.a=i},function(t,e,n){"use strict";
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e,n,a,s,i){this.variableNames=["Image","Transforms"],this.outputShape=i;const o="nearest"===n?1:2;let c;switch(a){default:c=1;break;case"reflect":c=2;break;case"wrap":c=3;break;case"nearest":c=4}this.userCode=`\n float mapCoord(float outCoord, float len) {\n float inCoord = outCoord;\n if(${c} == 2) {\n if (inCoord < 0.0) {\n if (len <= 1.0) {\n inCoord = 0.0;\n } else {\n float sz2 = 2.0 * len;\n if (inCoord < sz2) {\n inCoord = sz2 * float(int(float(-inCoord / sz2))) +\n inCoord;\n }\n inCoord = inCoord < -len ? inCoord + sz2 : -inCoord - 1.0;\n }\n } else if (inCoord > len - 1.0) {\n if (len <= 1.0) {\n inCoord = 0.0;\n } else {\n float sz2 = 2.0 * len;\n inCoord -= sz2 * float(int(float(inCoord / sz2)));\n if (inCoord >= len) {\n inCoord = sz2 - inCoord - 1.0;\n }\n }\n }\n return clamp(inCoord, 0.0, len - 1.0);\n } else if (${c} == 3) {\n if (inCoord < 0.0) {\n if (len <= 1.0) {\n inCoord = 0.0;\n } else {\n float sz = len - 1.0;\n inCoord += len * (float(int(float(-inCoord / sz))) + 1.0);\n }\n } else if (inCoord > len - 1.0) {\n if (len <= 1.0) {\n inCoord = 0.0;\n } else {\n float sz = len - 1.0;\n inCoord -= len * float(int(float(inCoord / sz)));\n }\n }\n return clamp(inCoord, 0.0, len - 1.0);\n } else if (${c} == 4) {\n return clamp(outCoord, 0.0, len - 1.0);\n } else {\n return outCoord;\n }\n }\n\n float readWithFillValue(int batch, int coordY, int coordX,\n int channel) {\n float outputValue;\n if (0 <= coordY && coordY < ${t} && 0 <= coordX && coordX < ${e}) {\n outputValue = getImage(batch, coordY, coordX, channel);\n } else {\n outputValue = float(${s});\n }\n return outputValue;\n }\n\n void main() {\n ivec4 coords = getOutputCoords();\n float outputValue;\n int batch = coords[0];\n int x = coords[2];\n int y = coords[1];\n int channel = coords[3];\n float xf = float(x);\n float yf = float(y);\n float a1 = getTransforms(batch, 0);\n float a2 = getTransforms(batch, 1);\n float a3 = getTransforms(batch, 2);\n float b1 = getTransforms(batch, 3);\n float b2 = getTransforms(batch, 4);\n float b3 = getTransforms(batch, 5);\n float c1 = getTransforms(batch, 6);\n float c2 = getTransforms(batch, 7);\n float projection = c1 * xf + c2 * yf + 1.0;\n if (projection == 0.0) {\n outputValue = float(${s});\n } else {\n float inX = (a1 * xf + a2 * yf + a3) / projection;\n float inY = (b1 * xf + b2 * yf + b3) / projection;\n float mapX = mapCoord(inX, float(${e}));\n float mapY = mapCoord(inY, float(${t}));\n\n if (${o} == 1) {\n int coordY = int(round(mapY));\n int coordX = int(round(mapX));\n outputValue = readWithFillValue(batch, coordY, coordX,\n channel);\n } else {\n float yFloor = floor(mapY);\n float xFloor = floor(mapX);\n float yCeil = yFloor + 1.0;\n float xCeil = xFloor + 1.0;\n float valueYFloor = (xCeil - mapX) *\n readWithFillValue(batch, int(yFloor), int(xFloor), channel) +\n (mapX - xFloor) *\n readWithFillValue(batch, int(yFloor), int(xCeil), channel);\n float valueYCeil = (xCeil - mapX) *\n readWithFillValue(batch, int(yCeil), int(xFloor), channel) +\n (mapX - xFloor) *\n readWithFillValue(batch, int(yCeil), int(xCeil), channel);\n outputValue = (yCeil - mapY) * valueYFloor +\n (mapY - yFloor) * valueYCeil;\n }\n }\n setOutput(outputValue);\n }\n `}}e.a=a},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,attrs:n,backend:a}=t,{axis:s}=n,{x:c}=e;Object(o.assertNotComplex)(c,"unique"),console.warn("WARNING: ","UI might be locked temporarily as data is being downloaded");const u=a.readSync(c.dataId),{outputValues:l,outputShape:h,indices:p}=Object(i.W)(u,s,c.shape,c.dtype);return[a.makeTensorInfo(h,c.dtype,l),a.makeTensorInfo([p.length],"int32",p)]}var s=n(0),i=n(12),o=n(43);const c={kernelName:s._140,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{value:s}=e;let{axis:c}=a;c<0&&(c+=s.shape.length);const u=s,l=u.shape.length,h=s.shape[c],p=new Array(l-1);let f=0;for(let t=0;t<l;t++)t!==c&&(p[f++]=u.shape[t]);const b=[],m=new Array(l).fill(0),size=u.shape.slice();size[c]=1;const g=new Array(h);for(let t=0;t<g.length;t++){m[c]=t;const e=Object(o.a)({inputs:{x:u},backend:n,attrs:{begin:m,size:size}}),a=Object(i.a)({inputs:{x:e},backend:n,attrs:{shape:p}});g[t]=a,b.push(e)}return b.forEach((t=>n.disposeIntermediateTensorInfo(t))),g}var s=n(0),i=n(17),o=n(107);const c={kernelName:s._141,backendName:"webgl",kernelFunc:a};e.a=c},function(t,e,n){"use strict";
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/
function a(t){const{inputs:e,backend:n,attrs:a}=t,{x:h,segmentIds:p}=e,{numSegments:f}=a,b=h.shape.length,m=[];let g=0;const v=s._164.getAxesPermutation([g],b);let w=h;null!=v&&(w=Object(l.a)({inputs:{x:h},backend:n,attrs:{perm:v}}),m.push(w),g=s._164.getInnerMostAxes(1,b)[0]);const y=s._164.segment_util.computeOutShape(w.shape,g,f),O=s._408.sizeFromShape([w.shape[g]]),x=Object(c.a)({inputs:{x:w},backend:n,attrs:{shape:[-1,O]}});m.push(x);const A=Object(s._381)(h.dtype),I=(t,e,a,c,l)=>{const h=t.shape[0],p=t.shape[1],f=s._164.segment_util.segOpComputeOptimalWindowSize(p,l),b={windowSize:f,inSize:p,batchSize:h,numSegments:l},g=new i.a(b,e),v=n.compileAndRun(g,[t,a],c);if(m.push(v),v.shape[1]===l)return v;const w=Object(o.a)({backend:n,attrs:{start:0,stop:l,step:1,dtype:"float32"}}),y=Object(u.a)({inputs:{x:w},backend:n,attrs:{reps:[p/f]}});m.push(w),m.push(y);const O=undefined;return I(v,e,y,c,l)},j=I(x,"unsortedSegmentSum",p,A,f),C=Object(c.a)({inputs:{x:j},backend:n,attrs:{shape:y}});let _=C;if(null!=v){m.push(C);const t=s._164.getUndoAxesPermutation(v);_=Object(l.a)({inputs:{x:_},backend:n,attrs:{perm:t}})}return m.forEach((t=>n.disposeIntermediateTensorInfo(t))),_}var s=n(0),i=n(1265),o=n(399),c=n(17),u=n(400),l=n(47);const h={kernelName:s._142,backendName:"webgl",kernelFunc:a};e.a=h},function(t,e,n){"use strict";
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =============================================================================
*/class a{constructor(t,e){this.variableNames=["x","segmentIds"];const n=t.windowSize,a=t.batchSize,s=t.inSize,i=t.numSegments,o=i*Math.ceil(s/n);this.outputShape=[a,o];const c="0.0",u="sumValue",l=4*Math.floor(n/4),h=n%4,p="\n sumValue += dot(values, segFilter);\n ";let f="";s%n>0&&(f=`\n if (inIdx < 0 || inIdx >= ${s}) {\n return initializationValue;\n }\n `);let b="";s%n>0&&(b=`\n if (inIdx < 0 || inIdx >= ${s}) {\n return -1.0;\n }\n `),this.userCode=`\n const float initializationValue = 0.0;\n\n float getValue(int batch, int inIdx) {\n ${f}\n return getX(batch, inIdx);\n }\n\n float getSegmentIdAtIndex(int inIdx) {\n ${b}\n return getSegmentIds(inIdx);\n }\n\n void main() {\n ivec2 coords = getOutputCoords();\n int batch = coords[0];\n int outIdx = coords[1];\n int inOffset = int(floor(float(outIdx) / float(\n ${i})) * float(${n}));\n int currentSeg = int(mod(float(outIdx), float(${i})));\n\n float sumValue = 0.0;\n\n for (int i = 0; i < ${l}; i += 4) {\n int inIdx = inOffset + i;\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n getValue(batch, inIdx + 3)\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 2)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 3)) == currentSeg ? 1 : 0\n );\n\n ${p}\n }\n\n int inIdx = inOffset + ${l};\n if (${1===h}) {\n vec4 values = vec4(\n getValue(batch, inIdx),\n initializationValue,\n initializationValue,\n initializationValue\n );\n\n int inIdxSeg = int(getSegmentIdAtIndex(inIdx));\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n 0,\n 0,\n 0\n );\n\n ${p}\n } else if (${2===h}) {\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n initializationValue,\n initializationValue\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n 0,\n 0\n );\n\n ${p}\n } else if (${3===h}) {\n vec4 values = vec4(\n getValue(batch, inIdx),\n getValue(batch, inIdx + 1),\n getValue(batch, inIdx + 2),\n initializationValue\n );\n\n vec4 segFilter = vec4(\n int(getSegmentIdAtIndex(inIdx)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 1)) == currentSeg ? 1 : 0,\n int(getSegmentIdAtIndex(inIdx + 2)) == currentSeg ? 1 : 0,\n 0\n );\n\n ${p}\n }\n setOutput(sumValue);\n }\n `}}e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));
/** @license See the LICENSE file. */
const a="4.15.0"},function(t,e,n){"use strict";const a=n(1268);t.exports=function fetchFunc(t,...e){return t=t.replace("./model_js/","./"),fetch(a(t),...e)}},function(t,e,n){function a(t){return n(s(t))}function s(t){var id=map[t];if(!(id+1))throw new Error("Cannot find module '"+t+"'.");return id}var map={"./category_names.json":1269,"./group1-shard1of1.bin":1270,"./model.json":1271};a.keys=function t(){return Object.keys(map)},a.resolve=s,t.exports=a,a.id=1268},function(t,e){t.exports="data:application/json;base64,WyIxLWltYWdlLTEtdGV4dC1uZXciLCAiMS1pbWFnZS0yLXRleHRzLXdpZGUiLCAiMS1pbWFnZS0yLXRleHRzLXdpZGUtZml4IiwgIjEtaW1hZ2UtdGV4dC0yLWltYWdlcy1uZXciLCAiMi0yLWZlYXR1cmVzLW9uLWJnLWltYWdlLXciLCAiMi1jZWxscy1iZy10ZXh0cy1uZXciLCAiMi1jZWxscy1zcXVhcmUtYmctaW1hZ2VzLW5ldyIsICIyLWNvbHMtaDItbGluZS10ZXh0LWltZy1iZyIsICIyLWNvbHMtbGluZS1oMi10ZXh0LWJ1dHRvbi1sb2dvIiwgIjItY29scy1yZWMtb3Zlci1pbWFnZSIsICIyLWNvbHMtdGV4dHMtaW1hZ2UtbmV3IiwgIjItaW1hZ2UtaW1hZ2UiLCAiMi1pbWFnZXMtMi10ZXh0cy1uZXciLCAiMi1pbWFnZXMtZ3JpZC1yZXBlYXRlci1oZWFkbGluZS0yIiwgIjItaW1hZ2VzLWdyb3VwLW92ZXJsYXAiLCAiMi1pbWFnZXMtaGlnaHQtbGlzdC1uZXciLCA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