diff --git "a/static/assets/index-49498a48.js" "b/static/assets/index-49498a48.js" new file mode 100644--- /dev/null +++ "b/static/assets/index-49498a48.js" @@ -0,0 +1 @@ +import{i as et,_ as kr,S as je,a as rr,o as Le,b as Yn,c as $e,d as vr,O as H,r as Hn,e as Jn,f as Gn,g as Xn,h as Zn,A as Vn,j as Qn,k as X,l as Or,C as ti,E as ri,m as Gt,n as ei,R as ni}from"./Experience-f42a3bd5.js";function ii(t){return et(t==null?void 0:t.lift)}function or(t){return function(r){if(ii(r))return r.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function er(t,r,e,n,i){return new oi(t,r,e,n,i)}var oi=function(t){kr(r,t);function r(e,n,i,o,u,a){var s=t.call(this,e)||this;return s.onFinalize=u,s.shouldUnsubscribe=a,s._next=n?function(f){try{n(f)}catch(c){e.error(c)}}:t.prototype._next,s._error=o?function(f){try{o(f)}catch(c){e.error(c)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=i?function(){try{i()}catch(f){e.error(f)}finally{this.unsubscribe()}}:t.prototype._complete,s}return r.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},r}(je),Ne={now:function(){return(Ne.delegate||Date).now()},delegate:void 0},dr=function(t){kr(r,t);function r(e,n,i){e===void 0&&(e=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Ne);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,n),o}return r.prototype.next=function(e){var n=this,i=n.isStopped,o=n._buffer,u=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;i||(o.push(e),!u&&o.push(a.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},r.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(e),i=this,o=i._infiniteTimeWindow,u=i._buffer,a=u.slice(),s=0;s{n.searchParams.append(i,o)}),new zi({url:n.toString(),serializer:i=>i,deserializer:i=>i})}function Ii(){return Ze("ws/teacher"+location.search,{})}const Mi={audio:!0,video:!1};async function Ai(){const t=new rr;let r=new AudioContext({latencyHint:"interactive"});await r.audioWorklet.addModule("recorderWorkletProcessor.js"),r.resume();const e=await navigator.mediaDevices.getUserMedia(Mi);let n=r.createMediaStreamSource(e),i=new window.AudioWorkletNode(r,"recorder.worklet");return i.connect(r.destination),r.resume(),n.connect(i),i.port.onmessage=o=>{const u=o.data;t.next(u)},t.subscribe({complete(){e.getTracks()[0].stop(),n.disconnect(i),i.disconnect(r.destination),r.close().then(function(){n=null,i=null,r=null}),console.log("Recording completed")}}),t}var Wt="delete",S=5,W=1<>>0;if(""+e!==r||e===4294967295)return NaN;r=e}return r<0?vt(t)+r:r}function Ve(){return!0}function ur(t,r,e){return(t===0&&!tn(t)||e!==void 0&&t<=-e)&&(r===void 0||e!==void 0&&r>=e)}function Ct(t,r){return Qe(t,r,0)}function ar(t,r){return Qe(t,r,r)}function Qe(t,r,e){return t===void 0?e:tn(t)?r===1/0?r:Math.max(0,r+t)|0:r===void 0||r===t?t:Math.min(r,t)|0}function tn(t){return t<0||t===0&&1/t===-1/0}var rn="@@__IMMUTABLE_ITERABLE__@@";function L(t){return Boolean(t&&t[rn])}var en="@@__IMMUTABLE_KEYED__@@";function O(t){return Boolean(t&&t[en])}var nn="@@__IMMUTABLE_INDEXED__@@";function j(t){return Boolean(t&&t[nn])}function sr(t){return O(t)||j(t)}var z=function(r){return L(r)?r:U(r)},F=function(t){function r(e){return O(e)?e:st(e)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r}(z),ht=function(t){function r(e){return j(e)?e:G(e)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r}(z),wt=function(t){function r(e){return L(e)&&!sr(e)?e:zt(e)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r}(z);z.Keyed=F;z.Indexed=ht;z.Set=wt;var on="@@__IMMUTABLE_SEQ__@@";function Lr(t){return Boolean(t&&t[on])}var un="@@__IMMUTABLE_RECORD__@@";function Ot(t){return Boolean(t&&t[un])}function V(t){return L(t)||Ot(t)}var Et="@@__IMMUTABLE_ORDERED__@@";function Y(t){return Boolean(t&&t[Et])}var xt=0,J=1,x=2,br=typeof Symbol=="function"&&Symbol.iterator,an="@@iterator",fr=br||an,y=function(r){this.next=r};y.prototype.toString=function(){return"[Iterator]"};y.KEYS=xt;y.VALUES=J;y.ENTRIES=x;y.prototype.inspect=y.prototype.toSource=function(){return this.toString()};y.prototype[fr]=function(){return this};function E(t,r,e,n){var i=t===0?r:t===1?e:[r,e];return n?n.value=i:n={value:i,done:!1},n}function $(){return{value:void 0,done:!0}}function sn(t){return Array.isArray(t)?!0:!!cr(t)}function se(t){return t&&typeof t.next=="function"}function zr(t){var r=cr(t);return r&&r.call(t)}function cr(t){var r=t&&(br&&t[br]||t[an]);if(typeof r=="function")return r}function qi(t){var r=cr(t);return r&&r===t.entries}function Ti(t){var r=cr(t);return r&&r===t.keys}var bt=Object.prototype.hasOwnProperty;function fn(t){return Array.isArray(t)||typeof t=="string"?!0:t&&typeof t=="object"&&Number.isInteger(t.length)&&t.length>=0&&(t.length===0?Object.keys(t).length===1:t.hasOwnProperty(t.length-1))}var U=function(t){function r(e){return e==null?Nr():V(e)?e.toSeq():ki(e)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.toSeq=function(){return this},r.prototype.toString=function(){return this.__toString("Seq {","}")},r.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},r.prototype.__iterate=function(n,i){var o=this._cache;if(o){for(var u=o.length,a=0;a!==u;){var s=o[i?u-++a:a++];if(n(s[1],s[0],this)===!1)break}return a}return this.__iterateUncached(n,i)},r.prototype.__iterator=function(n,i){var o=this._cache;if(o){var u=o.length,a=0;return new y(function(){if(a===u)return $();var s=o[i?u-++a:a++];return E(n,s[0],s[1])})}return this.__iteratorUncached(n,i)},r}(z),st=function(t){function r(e){return e==null?Nr().toKeyedSeq():L(e)?O(e)?e.toSeq():e.fromEntrySeq():Ot(e)?e.toSeq():Br(e)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.toKeyedSeq=function(){return this},r}(U),G=function(t){function r(e){return e==null?Nr():L(e)?O(e)?e.entrySeq():e.toIndexedSeq():Ot(e)?e.toSeq().entrySeq():cn(e)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){return r(arguments)},r.prototype.toIndexedSeq=function(){return this},r.prototype.toString=function(){return this.__toString("Seq [","]")},r}(U),zt=function(t){function r(e){return(L(e)&&!sr(e)?e:G(e)).toSetSeq()}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){return r(arguments)},r.prototype.toSetSeq=function(){return this},r}(U);U.isSeq=Lr;U.Keyed=st;U.Set=zt;U.Indexed=G;U.prototype[on]=!0;var ct=function(t){function r(e){this._array=e,this.size=e.length}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.get=function(n,i){return this.has(n)?this._array[ut(this,n)]:i},r.prototype.__iterate=function(n,i){for(var o=this._array,u=o.length,a=0;a!==u;){var s=i?u-++a:a++;if(n(o[s],s,this)===!1)break}return a},r.prototype.__iterator=function(n,i){var o=this._array,u=o.length,a=0;return new y(function(){if(a===u)return $();var s=i?u-++a:a++;return E(n,s,o[s])})},r}(G),$r=function(t){function r(e){var n=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=n,this.size=n.length}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.get=function(n,i){return i!==void 0&&!this.has(n)?i:this._object[n]},r.prototype.has=function(n){return bt.call(this._object,n)},r.prototype.__iterate=function(n,i){for(var o=this._object,u=this._keys,a=u.length,s=0;s!==a;){var f=u[i?a-++s:s++];if(n(o[f],f,this)===!1)break}return s},r.prototype.__iterator=function(n,i){var o=this._object,u=this._keys,a=u.length,s=0;return new y(function(){if(s===a)return $();var f=u[i?a-++s:s++];return E(n,f,o[f])})},r}(st);$r.prototype[Et]=!0;var Ri=function(t){function r(e){this._collection=e,this.size=e.length||e.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.__iterateUncached=function(n,i){if(i)return this.cacheResult().__iterate(n,i);var o=this._collection,u=zr(o),a=0;if(se(u))for(var s;!(s=u.next()).done&&n(s.value,a++,this)!==!1;);return a},r.prototype.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=this._collection,u=zr(o);if(!se(u))return new y($);var a=0;return new y(function(){var s=u.next();return s.done?s:E(n,a++,s.value)})},r}(G),fe;function Nr(){return fe||(fe=new ct([]))}function Br(t){var r=Pr(t);if(r)return r.fromEntrySeq();if(typeof t=="object")return new $r(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function cn(t){var r=Pr(t);if(r)return r;throw new TypeError("Expected Array or collection object of values: "+t)}function ki(t){var r=Pr(t);if(r)return qi(t)?r.fromEntrySeq():Ti(t)?r.toSetSeq():r;if(typeof t=="object")return new $r(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}function Pr(t){return fn(t)?new ct(t):sn(t)?new Ri(t):void 0}var hn="@@__IMMUTABLE_MAP__@@";function Ur(t){return Boolean(t&&t[hn])}function _n(t){return Ur(t)&&Y(t)}function ce(t){return Boolean(t&&typeof t.equals=="function"&&typeof t.hashCode=="function")}function P(t,r){if(t===r||t!==t&&r!==r)return!0;if(!t||!r)return!1;if(typeof t.valueOf=="function"&&typeof r.valueOf=="function"){if(t=t.valueOf(),r=r.valueOf(),t===r||t!==t&&r!==r)return!0;if(!t||!r)return!1}return!!(ce(t)&&ce(r)&&t.equals(r))}var qt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(r,e){r|=0,e|=0;var n=r&65535,i=e&65535;return n*i+((r>>>16)*i+n*(e>>>16)<<16>>>0)|0};function hr(t){return t>>>1&1073741824|t&3221225471}var ji=Object.prototype.valueOf;function N(t){if(t==null)return he(t);if(typeof t.hashCode=="function")return hr(t.hashCode(t));var r=Ui(t);if(r==null)return he(r);switch(typeof r){case"boolean":return r?1108378657:1108378656;case"number":return Li(r);case"string":return r.length>Di?$i(r):Ir(r);case"object":case"function":return Bi(r);case"symbol":return Ni(r);default:if(typeof r.toString=="function")return Ir(r.toString());throw new Error("Value type "+typeof r+" cannot be hashed.")}}function he(t){return t===null?1108378658:1108378659}function Li(t){if(t!==t||t===1/0)return 0;var r=t|0;for(r!==t&&(r^=t*4294967295);t>4294967295;)t/=4294967295,r^=t;return hr(r)}function $i(t){var r=gr[t];return r===void 0&&(r=Ir(t),yr===Wi&&(yr=0,gr={}),yr++,gr[t]=r),r}function Ir(t){for(var r=0,e=0;e0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function Ui(t){return t.valueOf!==ji&&typeof t.valueOf=="function"?t.valueOf(t):t}function pn(){var t=++lr;return lr&1073741824&&(lr=0),t}var Mr=typeof WeakMap=="function",Ar;Mr&&(Ar=new WeakMap);var ve=Object.create(null),lr=0,ft="__immutablehash__";typeof Symbol=="function"&&(ft=Symbol(ft));var Di=16,Wi=255,yr=0,gr={},_r=function(t){function r(e,n){this._iter=e,this._useKeys=n,this.size=e.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.get=function(n,i){return this._iter.get(n,i)},r.prototype.has=function(n){return this._iter.has(n)},r.prototype.valueSeq=function(){return this._iter.valueSeq()},r.prototype.reverse=function(){var n=this,i=Dr(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},r.prototype.map=function(n,i){var o=this,u=gn(this,n,i);return this._useKeys||(u.valueSeq=function(){return o._iter.toSeq().map(n,i)}),u},r.prototype.__iterate=function(n,i){var o=this;return this._iter.__iterate(function(u,a){return n(u,a,o)},i)},r.prototype.__iterator=function(n,i){return this._iter.__iterator(n,i)},r}(st);_r.prototype[Et]=!0;var vn=function(t){function r(e){this._iter=e,this.size=e.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.includes=function(n){return this._iter.includes(n)},r.prototype.__iterate=function(n,i){var o=this,u=0;return i&&vt(this),this._iter.__iterate(function(a){return n(a,i?o.size-++u:u++,o)},i)},r.prototype.__iterator=function(n,i){var o=this,u=this._iter.__iterator(J,i),a=0;return i&&vt(this),new y(function(){var s=u.next();return s.done?s:E(n,i?o.size-++a:a++,s.value,s)})},r}(G),dn=function(t){function r(e){this._iter=e,this.size=e.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.has=function(n){return this._iter.includes(n)},r.prototype.__iterate=function(n,i){var o=this;return this._iter.__iterate(function(u){return n(u,u,o)},i)},r.prototype.__iterator=function(n,i){var o=this._iter.__iterator(J,i);return new y(function(){var u=o.next();return u.done?u:E(n,u.value,u.value,u)})},r}(zt),ln=function(t){function r(e){this._iter=e,this.size=e.size}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.entrySeq=function(){return this._iter.toSeq()},r.prototype.__iterate=function(n,i){var o=this;return this._iter.__iterate(function(u){if(u){le(u);var a=L(u);return n(a?u.get(1):u[1],a?u.get(0):u[0],o)}},i)},r.prototype.__iterator=function(n,i){var o=this._iter.__iterator(J,i);return new y(function(){for(;;){var u=o.next();if(u.done)return u;var a=u.value;if(a){le(a);var s=L(a);return E(n,s?a.get(0):a[0],s?a.get(1):a[1],u)}}})},r}(st);vn.prototype.cacheResult=_r.prototype.cacheResult=dn.prototype.cacheResult=ln.prototype.cacheResult=xr;function yn(t){var r=Q(t);return r._iter=t,r.size=t.size,r.flip=function(){return t},r.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},r.has=function(e){return t.includes(e)},r.includes=function(e){return t.has(e)},r.cacheResult=xr,r.__iterateUncached=function(e,n){var i=this;return t.__iterate(function(o,u){return e(u,o,i)!==!1},n)},r.__iteratorUncached=function(e,n){if(e===x){var i=t.__iterator(e,n);return new y(function(){var o=i.next();if(!o.done){var u=o.value[0];o.value[0]=o.value[1],o.value[1]=u}return o})}return t.__iterator(e===J?xt:J,n)},r}function gn(t,r,e){var n=Q(t);return n.size=t.size,n.has=function(i){return t.has(i)},n.get=function(i,o){var u=t.get(i,l);return u===l?o:r.call(e,u,i,t)},n.__iterateUncached=function(i,o){var u=this;return t.__iterate(function(a,s,f){return i(r.call(e,a,s,f),s,u)!==!1},o)},n.__iteratorUncached=function(i,o){var u=t.__iterator(x,o);return new y(function(){var a=u.next();if(a.done)return a;var s=a.value,f=s[0];return E(i,f,r.call(e,s[1],f,t),a)})},n}function Dr(t,r){var e=this,n=Q(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var i=yn(t);return i.reverse=function(){return t.flip()},i}),n.get=function(i,o){return t.get(r?i:-1-i,o)},n.has=function(i){return t.has(r?i:-1-i)},n.includes=function(i){return t.includes(i)},n.cacheResult=xr,n.__iterate=function(i,o){var u=this,a=0;return o&&vt(t),t.__iterate(function(s,f){return i(s,r?f:o?u.size-++a:a++,u)},!o)},n.__iterator=function(i,o){var u=0;o&&vt(t);var a=t.__iterator(x,!o);return new y(function(){var s=a.next();if(s.done)return s;var f=s.value;return E(i,r?f[0]:o?e.size-++u:u++,f[1],s)})},n}function mn(t,r,e,n){var i=Q(t);return n&&(i.has=function(o){var u=t.get(o,l);return u!==l&&!!r.call(e,u,o,t)},i.get=function(o,u){var a=t.get(o,l);return a!==l&&r.call(e,a,o,t)?a:u}),i.__iterateUncached=function(o,u){var a=this,s=0;return t.__iterate(function(f,c,h){if(r.call(e,f,c,h))return s++,o(f,n?c:s-1,a)},u),s},i.__iteratorUncached=function(o,u){var a=t.__iterator(x,u),s=0;return new y(function(){for(;;){var f=a.next();if(f.done)return f;var c=f.value,h=c[0],_=c[1];if(r.call(e,_,h,t))return E(o,n?h:s++,_,f)}})},i}function Ci(t,r,e){var n=Mt().asMutable();return t.__iterate(function(i,o){n.update(r.call(e,i,o,t),0,function(u){return u+1})}),n.asImmutable()}function xi(t,r,e){var n=O(t),i=(Y(t)?rt():Mt()).asMutable();t.__iterate(function(u,a){i.update(r.call(e,u,a,t),function(s){return s=s||[],s.push(n?[a,u]:u),s})});var o=Cr(t);return i.map(function(u){return g(t,o(u))}).asImmutable()}function Fi(t,r,e){var n=O(t),i=[[],[]];t.__iterate(function(u,a){i[r.call(e,u,a,t)?1:0].push(n?[a,u]:u)});var o=Cr(t);return i.map(function(u){return g(t,o(u))})}function Wr(t,r,e,n){var i=t.size;if(ur(r,e,i))return t;var o=Ct(r,i),u=ar(e,i);if(o!==o||u!==u)return Wr(t.toSeq().cacheResult(),r,e,n);var a=u-o,s;a===a&&(s=a<0?0:a);var f=Q(t);return f.size=s===0?s:t.size&&s||void 0,!n&&Lr(t)&&s>=0&&(f.get=function(c,h){return c=ut(this,c),c>=0&&cs)return $();var d=_.next();return n||c===J||d.done?d:c===xt?E(c,v-1,void 0,d):E(c,v-1,d.value[1],d)})},f}function Ki(t,r,e){var n=Q(t);return n.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var a=0;return t.__iterate(function(s,f,c){return r.call(e,s,f,c)&&++a&&i(s,f,u)}),a},n.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(x,o),s=!0;return new y(function(){if(!s)return $();var f=a.next();if(f.done)return f;var c=f.value,h=c[0],_=c[1];return r.call(e,_,h,u)?i===x?f:E(i,h,_,f):(s=!1,$())})},n}function Sn(t,r,e,n){var i=Q(t);return i.__iterateUncached=function(o,u){var a=this;if(u)return this.cacheResult().__iterate(o,u);var s=!0,f=0;return t.__iterate(function(c,h,_){if(!(s&&(s=r.call(e,c,h,_))))return f++,o(c,n?h:f-1,a)}),f},i.__iteratorUncached=function(o,u){var a=this;if(u)return this.cacheResult().__iterator(o,u);var s=t.__iterator(x,u),f=!0,c=0;return new y(function(){var h,_,p;do{if(h=s.next(),h.done)return n||o===J?h:o===xt?E(o,c++,void 0,h):E(o,c++,h.value[1],h);var v=h.value;_=v[0],p=v[1],f&&(f=r.call(e,p,_,a))}while(f);return o===x?h:E(o,_,p,h)})},i}function Yi(t,r){var e=O(t),n=[t].concat(r).map(function(u){return L(u)?e&&(u=F(u)):u=e?Br(u):cn(Array.isArray(u)?u:[u]),u}).filter(function(u){return u.size!==0});if(n.length===0)return t;if(n.length===1){var i=n[0];if(i===t||e&&O(i)||j(t)&&j(i))return i}var o=new ct(n);return e?o=o.toKeyedSeq():j(t)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=n.reduce(function(u,a){if(u!==void 0){var s=a.size;if(s!==void 0)return u+s}},0),o}function wn(t,r,e){var n=Q(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var u=0,a=!1;function s(f,c){f.__iterate(function(h,_){return(!r||c0}function Zt(t,r,e,n){var i=Q(t),o=new ct(e).map(function(u){return u.size});return i.size=n?o.max():o.min(),i.__iterate=function(u,a){for(var s=this.__iterator(J,a),f,c=0;!(f=s.next()).done&&u(f.value,c++,this)!==!1;);return c},i.__iteratorUncached=function(u,a){var s=e.map(function(h){return h=z(h),zr(a?h.reverse():h)}),f=0,c=!1;return new y(function(){var h;return c||(h=s.map(function(_){return _.next()}),c=n?h.every(function(_){return _.done}):h.some(function(_){return _.done})),c?$():E(u,f++,r.apply(null,h.map(function(_){return _.value})))})},i}function g(t,r){return t===r?t:Lr(t)?r:t.constructor(r)}function le(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Cr(t){return O(t)?F:j(t)?ht:wt}function Q(t){return Object.create((O(t)?st:j(t)?G:zt).prototype)}function xr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):U.prototype.cacheResult.call(this)}function On(t,r){return t===void 0&&r===void 0?0:t===void 0?1:r===void 0?-1:t>r?1:t0;)r[e]=arguments[e+1];if(typeof t!="function")throw new TypeError("Invalid merger function: "+t);return qn(this,r,t)}function qn(t,r,e){for(var n=[],i=0;i0;)r[e]=arguments[e+1];return Gr(this,r,t)}function Zr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return It(this,t,K(),function(n){return Xr(n,r)})}function Vr(t){for(var r=[],e=arguments.length-1;e-- >0;)r[e]=arguments[e+1];return It(this,t,K(),function(n){return Gr(n,r)})}function Ft(t){var r=this.asMutable();return t(r),r.wasAltered()?r.__ensureOwner(this.__ownerID):this}function Kt(){return this.__ownerID?this:this.__ensureOwner(new jr)}function Yt(){return this.__ensureOwner()}function Qr(){return this.__altered}var Mt=function(t){function r(e){return e==null?K():Ur(e)&&!Y(e)?e:K().withMutations(function(n){var i=t(e);B(i.size),i.forEach(function(o,u){return n.set(u,o)})})}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return K().withMutations(function(o){for(var u=0;u=n.length)throw new Error("Missing value for key: "+n[u]);o.set(n[u],n[u+1])}})},r.prototype.toString=function(){return this.__toString("Map {","}")},r.prototype.get=function(n,i){return this._root?this._root.get(0,void 0,n,i):i},r.prototype.set=function(n,i){return me(this,n,i)},r.prototype.remove=function(n){return me(this,n,l)},r.prototype.deleteAll=function(n){var i=z(n);return i.size===0?this:this.withMutations(function(o){i.forEach(function(u){return o.remove(u)})})},r.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):K()},r.prototype.sort=function(n){return rt(dt(this,n))},r.prototype.sortBy=function(n,i){return rt(dt(this,i,n))},r.prototype.map=function(n,i){var o=this;return this.withMutations(function(u){u.forEach(function(a,s){u.set(s,n.call(i,a,s,o))})})},r.prototype.__iterator=function(n,i){return new io(this,n,i)},r.prototype.__iterate=function(n,i){var o=this,u=0;return this._root&&this._root.iterate(function(a){return u++,n(a[1],a[0],o)},i),u},r.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?te(this.size,this._root,n,this.__hash):this.size===0?K():(this.__ownerID=n,this.__altered=!1,this)},r}(F);Mt.isMap=Ur;var w=Mt.prototype;w[hn]=!0;w[Wt]=w.remove;w.removeAll=w.deleteAll;w.setIn=Kr;w.removeIn=w.deleteIn=Yr;w.update=Hr;w.updateIn=Jr;w.merge=w.concat=Mn;w.mergeWith=An;w.mergeDeep=Tn;w.mergeDeepWith=Rn;w.mergeIn=Zr;w.mergeDeepIn=Vr;w.withMutations=Ft;w.wasAltered=Qr;w.asImmutable=Yt;w["@@transducer/init"]=w.asMutable=Kt;w["@@transducer/step"]=function(t,r){return t.set(r[0],r[1])};w["@@transducer/result"]=function(t){return t.asImmutable()};var $t=function(r,e){this.ownerID=r,this.entries=e};$t.prototype.get=function(r,e,n,i){for(var o=this.entries,u=0,a=o.length;u=co)return oo(r,f,i,o);var p=r&&r===this.ownerID,v=p?f:Z(f);return _?s?c===h-1?v.pop():v[c]=v.pop():v[c]=[i,o]:v.push([i,o]),p?(this.entries=v,this):new $t(r,v)}};var lt=function(r,e,n){this.ownerID=r,this.bitmap=e,this.nodes=n};lt.prototype.get=function(r,e,n,i){e===void 0&&(e=N(n));var o=1<<((r===0?e:e>>>r)&R),u=this.bitmap;return u&o?this.nodes[kn(u&o-1)].get(r+S,e,n,i):i};lt.prototype.update=function(r,e,n,i,o,u,a){n===void 0&&(n=N(i));var s=(e===0?n:n>>>e)&R,f=1<=ho)return ao(r,p,c,s,d);if(h&&!d&&p.length===2&&Se(p[_^1]))return p[_^1];if(h&&d&&p.length===1&&Se(d))return d;var b=r&&r===this.ownerID,M=h?d?c:c^f:c|f,D=h?d?jn(p,_,d,b):fo(p,_,b):so(p,_,d,b);return b?(this.bitmap=M,this.nodes=D,this):new lt(r,M,D)};var Nt=function(r,e,n){this.ownerID=r,this.count=e,this.nodes=n};Nt.prototype.get=function(r,e,n,i){e===void 0&&(e=N(n));var o=(r===0?e:e>>>r)&R,u=this.nodes[o];return u?u.get(r+S,e,n,i):i};Nt.prototype.update=function(r,e,n,i,o,u,a){n===void 0&&(n=N(i));var s=(e===0?n:n>>>e)&R,f=o===l,c=this.nodes,h=c[s];if(f&&!h)return this;var _=re(h,r,e+S,n,i,o,u,a);if(_===h)return this;var p=this.count;if(!h)p++;else if(!_&&(p--,p<_o))return uo(r,c,p,s);var v=r&&r===this.ownerID,d=jn(c,s,_,v);return v?(this.count=p,this.nodes=d,this):new Nt(r,p,d)};var yt=function(r,e,n){this.ownerID=r,this.keyHash=e,this.entries=n};yt.prototype.get=function(r,e,n,i){for(var o=this.entries,u=0,a=o.length;u>>e)&R,u=(e===0?n:n>>>e)&R,a,s=o===u?[ee(t,r,e+S,n,i)]:(a=new tt(r,n,i),o>>=1)u[a]=e&1?r[o++]:void 0;return u[n]=i,new Nt(t,o+1,u)}function kn(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,t&127}function jn(t,r,e,n){var i=n?t:Z(t);return i[r]=e,i}function so(t,r,e,n){var i=t.length+1;if(n&&r+1===i)return t[r]=e,t;for(var o=new Array(i),u=0,a=0;a0&&o=0&&n>>e&R;if(i>=this.array.length)return new ot([],r);var o=i===0,u;if(e>0){var a=this.array[i];if(u=a&&a.removeBefore(r,e-S,n),u===a&&o)return this}if(o&&!u)return this;var s=gt(this,r);if(!o)for(var f=0;f>>e&R;if(i>=this.array.length)return this;var o;if(e>0){var u=this.array[i];if(o=u&&u.removeAfter(r,e-S,n),o===u&&i===this.array.length-1)return this}var a=gt(this,r);return a.array.splice(i+1),o&&(a.array[i]=o),a};var jt={};function we(t,r){var e=t._origin,n=t._capacity,i=Pt(n),o=t._tail;return u(t._root,t._level,0);function u(f,c,h){return c===0?a(f,h):s(f,c,h)}function a(f,c){var h=c===i?o&&o.array:f&&f.array,_=c>e?0:e-c,p=n-c;return p>W&&(p=W),function(){if(_===p)return jt;var v=r?--p:_++;return h&&h[v]}}function s(f,c,h){var _,p=f&&f.array,v=h>e?0:e-h>>c,d=(n-h>>c)+1;return d>W&&(d=W),function(){for(;;){if(_){var b=_();if(b!==jt)return b;_=null}if(v===d)return jt;var M=r?--d:v++;_=u(p&&p[M],c-S,h+(M<=t.size||r<0)return t.withMutations(function(u){r<0?nt(u,r).set(0,e):nt(u,0,r+1).set(r,e)});r+=t._origin;var n=t._tail,i=t._root,o=Er();return r>=Pt(t._capacity)?n=qr(n,t.__ownerID,0,r,e,o):i=qr(i,t.__ownerID,t._level,r,e,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Bt(t._origin,t._capacity,t._level,i,n):t}function qr(t,r,e,n,i,o){var u=n>>>e&R,a=t&&u0){var f=t&&t.array[u],c=qr(f,r,e-S,n,i,o);return c===f?t:(s=gt(t,r),s.array[u]=c,s)}return a&&t.array[u]===i?t:(o&&C(o),s=gt(t,r),i===void 0&&u===s.array.length-1?s.array.pop():s.array[u]=i,s)}function gt(t,r){return r&&t&&r===t.ownerID?t:new ot(t?t.array.slice():[],r)}function Nn(t,r){if(r>=Pt(t._capacity))return t._tail;if(r<1<0;)e=e.array[r>>>n&R],n-=S;return e}}function nt(t,r,e){r!==void 0&&(r|=0),e!==void 0&&(e|=0);var n=t.__ownerID||new jr,i=t._origin,o=t._capacity,u=i+r,a=e===void 0?o:e<0?o+e:i+e;if(u===i&&a===o)return t;if(u>=a)return t.clear();for(var s=t._level,f=t._root,c=0;u+c<0;)f=new ot(f&&f.array.length?[void 0,f]:[],n),s+=S,c+=1<=1<h?new ot([],n):p;if(p&&_>h&&uS;b-=S){var M=h>>>b&R;d=d.array[M]=gt(d.array[M],n)}d.array[h>>>S&R]=p}if(a=_)u-=_,a-=_,s=S,f=null,v=v&&v.removeBefore(n,0,u);else if(u>i||_>>s&R;if(D!==_>>>s&R)break;D&&(c+=(1<i&&(f=f.removeBefore(n,s,u-c)),f&&_>>S<=W&&i.size>=n.size*2?(s=i.filter(function(f,c){return f!==void 0&&o!==c}),a=s.toKeyedSeq().map(function(f){return f[0]}).flip().toMap(),t.__ownerID&&(a.__ownerID=s.__ownerID=t.__ownerID)):(a=n.remove(r),s=o===i.size-1?i.pop():i.set(o,void 0))}else if(u){if(e===i.get(o)[1])return t;a=n,s=i.set(o,[r,e])}else a=n.set(r,i.size),s=i.set(i.size,[r,e]);return t.__ownerID?(t.size=a.size,t._map=a,t._list=s,t.__hash=void 0,t.__altered=!0,t):ne(a,s)}var Bn="@@__IMMUTABLE_STACK__@@";function Tr(t){return Boolean(t&&t[Bn])}var ie=function(t){function r(e){return e==null?Vt():Tr(e)?e:Vt().pushAll(e)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){return this(arguments)},r.prototype.toString=function(){return this.__toString("Stack [","]")},r.prototype.get=function(n,i){var o=this._head;for(n=ut(this,n);o&&n--;)o=o.next;return o?o.value:i},r.prototype.peek=function(){return this._head&&this._head.value},r.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,o=this._head,u=arguments.length-1;u>=0;u--)o={value:n[u],next:o};return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Rt(i,o)},r.prototype.pushAll=function(n){if(n=t(n),n.size===0)return this;if(this.size===0&&Tr(n))return n;B(n.size);var i=this.size,o=this._head;return n.__iterate(function(u){i++,o={value:u,next:o}},!0),this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Rt(i,o)},r.prototype.pop=function(){return this.slice(1)},r.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Vt()},r.prototype.slice=function(n,i){if(ur(n,i,this.size))return this;var o=Ct(n,this.size),u=ar(i,this.size);if(u!==this.size)return t.prototype.slice.call(this,n,i);for(var a=this.size-o,s=this._head;o--;)s=s.next;return this.__ownerID?(this.size=a,this._head=s,this.__hash=void 0,this.__altered=!0,this):Rt(a,s)},r.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Rt(this.size,this._head,n,this.__hash):this.size===0?Vt():(this.__ownerID=n,this.__altered=!1,this)},r.prototype.__iterate=function(n,i){var o=this;if(i)return new ct(this.toArray()).__iterate(function(s,f){return n(s,f,o)},i);for(var u=0,a=this._head;a&&n(a.value,u++,this)!==!1;)a=a.next;return u},r.prototype.__iterator=function(n,i){if(i)return new ct(this.toArray()).__iterator(n,i);var o=0,u=this._head;return new y(function(){if(u){var a=u.value;return u=u.next,E(n,o++,a)}return $()})},r}(ht);ie.isStack=Tr;var k=ie.prototype;k[Bn]=!0;k.shift=k.pop;k.unshift=k.push;k.unshiftAll=k.pushAll;k.withMutations=Ft;k.wasAltered=Qr;k.asImmutable=Yt;k["@@transducer/init"]=k.asMutable=Kt;k["@@transducer/step"]=function(t,r){return t.unshift(r)};k["@@transducer/result"]=function(t){return t.asImmutable()};function Rt(t,r,e,n){var i=Object.create(k);return i.size=t,i._head=r,i.__ownerID=e,i.__hash=n,i.__altered=!1,i}var ze;function Vt(){return ze||(ze=Rt(0))}var Pn="@@__IMMUTABLE_SET__@@";function oe(t){return Boolean(t&&t[Pn])}function Un(t){return oe(t)&&Y(t)}function Dn(t,r){if(t===r)return!0;if(!L(r)||t.size!==void 0&&r.size!==void 0&&t.size!==r.size||t.__hash!==void 0&&r.__hash!==void 0&&t.__hash!==r.__hash||O(t)!==O(r)||j(t)!==j(r)||Y(t)!==Y(r))return!1;if(t.size===0&&r.size===0)return!0;var e=!sr(t);if(Y(t)){var n=t.entries();return r.every(function(s,f){var c=n.next().value;return c&&P(c[1],s)&&(e||P(c[0],f))})&&n.next().done}var i=!1;if(t.size===void 0)if(r.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{i=!0;var o=t;t=r,r=o}var u=!0,a=r.__iterate(function(s,f){if(e?!t.has(s):i?!P(s,t.get(f,l)):!P(t.get(f,l),s))return u=!1,!1});return u&&t.size===a}function _t(t,r){var e=function(n){t.prototype[n]=r[n]};return Object.keys(r).forEach(e),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(r).forEach(e),t}function ir(t){if(!t||typeof t!="object")return t;if(!L(t)){if(!at(t))return t;t=U(t)}if(O(t)){var r={};return t.__iterate(function(n,i){r[i]=ir(n)}),r}var e=[];return t.__iterate(function(n){e.push(ir(n))}),e}var pr=function(t){function r(e){return e==null?kt():oe(e)&&!Y(e)?e:kt().withMutations(function(n){var i=t(e);B(i.size),i.forEach(function(o){return n.add(o)})})}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){return this(arguments)},r.fromKeys=function(n){return this(F(n).keySeq())},r.intersect=function(n){return n=z(n).toArray(),n.length?q.intersect.apply(r(n.pop()),n):kt()},r.union=function(n){return n=z(n).toArray(),n.length?q.union.apply(r(n.pop()),n):kt()},r.prototype.toString=function(){return this.__toString("Set {","}")},r.prototype.has=function(n){return this._map.has(n)},r.prototype.add=function(n){return Qt(this,this._map.set(n,n))},r.prototype.remove=function(n){return Qt(this,this._map.remove(n))},r.prototype.clear=function(){return Qt(this,this._map.clear())},r.prototype.map=function(n,i){var o=this,u=!1,a=Qt(this,this._map.mapEntries(function(s){var f=s[1],c=n.call(i,f,f,o);return c!==f&&(u=!0),[c,c]},i));return u?a:this},r.prototype.union=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return n=n.filter(function(o){return o.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(o){for(var u=0;u=0&&i=0&&othis.size?e:this.find(function(n,i){return i===r},void 0,e)},has:function(r){return r=ut(this,r),r>=0&&(this.size!==void 0?this.size===1/0||rr?-1:0}function So(t){if(t.size===1/0)return 0;var r=Y(t),e=O(t),n=r?1:0,i=t.__iterate(e?r?function(o,u){n=31*n+Re(N(o),N(u))|0}:function(o,u){n=n+Re(N(o),N(u))|0}:r?function(o){n=31*n+N(o)|0}:function(o){n=n+N(o)|0});return wo(i,n)}function wo(t,r){return r=qt(r,3432918353),r=qt(r<<15|r>>>-15,461845907),r=qt(r<<13|r>>>-13,5),r=(r+3864292196|0)^t,r=qt(r^r>>>16,2246822507),r=qt(r^r>>>13,3266489909),r=hr(r^r>>>16),r}function Re(t,r){return t^r+2654435769+(t<<6)+(t>>2)|0}var Ut=function(t){function r(e){return e==null?Rr():Un(e)?e:Rr().withMutations(function(n){var i=wt(e);B(i.size),i.forEach(function(o){return n.add(o)})})}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.of=function(){return this(arguments)},r.fromKeys=function(n){return this(F(n).keySeq())},r.prototype.toString=function(){return this.__toString("OrderedSet {","}")},r}(pr);Ut.isOrderedSet=Un;var pt=Ut.prototype;pt[Et]=!0;pt.zip=At.zip;pt.zipWith=At.zipWith;pt.zipAll=At.zipAll;pt.__empty=Rr;pt.__make=Kn;function Kn(t,r){var e=Object.create(pt);return e.size=t?t.size:0,e._map=t,e.__ownerID=r,e}var ke;function Rr(){return ke||(ke=Kn(Tt()))}function Oo(t){if(Ot(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(V(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(t===null||typeof t!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var A=function(r,e){var n;Oo(r);var i=function(a){var s=this;if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!n){n=!0;var f=Object.keys(r),c=o._indices={};o._name=e,o._keys=f,o._defaultValues=r;for(var h=0;h{if(n){const f=Ii();return f.subscribe({next(h){const _=JSON.parse(h.data);_.type==="original"&&(_.isFinal?(u(p=>p.push(_.content)),s("")):s(_.content))}}),mi(Ai()).pipe(Xe(h=>h)).subscribe(h=>f.next(new Blob([h]))),()=>{recorder$.complete(),recorder$.unsubscribe(),f.unsubscribe()}}},[n]),Or("div",{children:[Or("button",{onClick:()=>i(!n),children:[n?"Stop":"Start"," Recording"]}),X("h2",{children:"History"}),X("div",{id:"history",style:{overflowY:"scroll",maxHeight:"300px"},children:o.map((f,c)=>X("p",{children:f},c))}),X("h2",{children:"Latest"}),X("div",{id:"partial",children:a})]})}ei.createRoot(document.getElementById("root")).render(X(ni.StrictMode,{children:X(zo,{})}));