"use strict";(self.webpackChunklernplattform_frontend=self.webpackChunklernplattform_frontend||[]).push([[76621],{163449:function(t,n,e){t.exports=a;var i,o=e(593610),r=o.LongBits,s=o.base64,h=o.utf8;function u(t,n,e){this.fn=t,this.len=n,this.next=void 0,this.val=e}function p(){}function l(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function a(){this.len=0,this.head=new u(p,0,0),this.tail=this.head,this.states=null}var f=function(){return o.Buffer?function(){return(a.create=function(){return new i})()}:function(){return new a}};function c(t,n,e){n[e]=255&t}function y(t,n){this.len=t,this.next=void 0,this.val=n}function d(t,n,e){for(;t.hi;)n[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)n[e++]=127&t.lo|128,t.lo=t.lo>>>7;n[e++]=t.lo}function _(t,n,e){n[e]=255&t,n[e+1]=t>>>8&255,n[e+2]=t>>>16&255,n[e+3]=t>>>24}a.create=f(),a.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(a.alloc=o.pool(a.alloc,o.Array.prototype.subarray)),a.prototype._push=function(t,n,e){return this.tail=this.tail.next=new u(t,n,e),this.len+=n,this},y.prototype=Object.create(u.prototype),y.prototype.fn=function(t,n,e){for(;t>127;)n[e++]=127&t|128,t>>>=7;n[e]=t},a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new y((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(d,10,r.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var n=r.from(t);return this._push(d,n.length(),n)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var n=r.from(t).zzEncode();return this._push(d,n.length(),n)},a.prototype.bool=function(t){return this._push(c,1,t?1:0)},a.prototype.fixed32=function(t){return this._push(_,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var n=r.from(t);return this._push(_,4,n.lo)._push(_,4,n.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var v=o.Array.prototype.set?function(t,n,e){n.set(t,e)}:function(t,n,e){for(var i=0;i<t.length;++i)n[e+i]=t[i]};a.prototype.bytes=function(t){var n=t.length>>>0;if(!n)return this._push(c,1,0);if(o.isString(t)){var e=a.alloc(n=s.length(t));s.decode(t,e,0),t=e}return this.uint32(n)._push(v,n,t)},a.prototype.string=function(t){var n=h.length(t);return n?this.uint32(n)._push(h.write,n,t):this._push(c,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(p,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(p,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,n=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=n,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,n=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,n,e),e+=t.len,t=t.next;return n},a._configure=function(t){i=t,a.create=f(),i._configure()}}}]);