(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{325:function(e,t,o){"undefined"!=typeofself&&self,e.exports=function(e){vart={};functiono(n){if(t[n])returnt[n].exports;vari=t[n]={i:n,l:!1,exports:{}};returne[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}returno.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varn=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(variine)o.d(n,i,function(t){returne[t]}.bind(null,i));returnn},o.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returno.d(t,"a",t),t},o.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){"use strict";(function(t){varo=t.AudioContext||t.webkitAudioContext,n=functione(){vart=this,o=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};if(!e.isRecordingSupported())thrownewError("Recording is not supported in this browser");this.state="inactive",this.config=Object.assign({bufferLength:4096,encoderApplication:2049,encoderFrameSize:20,encoderPath:"encoderWorker.min.js",encoderSampleRate:48e3,maxFramesPerPage:40,mediaTrackConstraints:!0,monitorGain:0,numberOfChannels:1,recordingGain:1,resampleQuality:3,streamPages:!1,wavBitDepth:16,sourceNode:{context:null}},o),this.encodedSamplePosition=0,this.initAudioContext(),this.initialize=this.initWorklet().then((function(){returnt.initEncoder()}))};n.isRecordingSupported=function(){vare=t.navigator&&t.navigator.mediaDevices&&t.navigator.mediaDevices.getUserMedia;returno&&e&&t.WebAssembly},n.version="8.0.3",n.prototype.clearStream=function(){this.stream&&(this.stream.getTracks?this.stream.getTracks().forEach((function(e){returne.stop()})):this.stream.stop())},n.prototype.close=function(){returnthis.monitorGainNode.disconnect(),this.recordingGainNode.disconnect(),this.sourceNode&&this.sourceNode.disconnect(),this.clearStream(),this.encoder&&(this.encoderNode.disconnect(),this.encoder.postMessage({command:"close"})),this.config.sourceNode.context?Promise.resolve():this.audioContext.close()},n.prototype.encodeBuffers=function(e){if("recording"===this.state){for(vart=[],o=0;o<e.numberOfChannels;o++)t[o]=e.getChannelData(o);this.encoder.postMessage({command:"encode",buffers:t})}},n.prototype.initAudioContext=function(){this.audioContext=this.config.sourceNode.context?this.config.sourceNode.context:newo,this.monitorGainNode=this.audioContext.createGain(),this.setMonitorGain(this.config.monitorGain),this.recordingGainNode=this.audioContext.createGain(),this.setRecordingGain(this.config.recordingGain)},n.prototype.initEncoder=function(){vare=this;this.audioContext.audioWorklet?(this.encoderNode=newAudioWorkletNode(this.audioContext,"encoder-worklet",{numberOfOutputs:0}),this.encoder=this.encoderNode.port):(console.log("audioWorklet support not detected. Falling back to scriptProcessor"),this.encodeBuffers=function(){returndeletee.encodeBuffers},this.encoderNode=this.audioContext.createScriptProcessor(this.config.bufferLength,this.config.numberOfChannels,this.config.numberOfChannels),this.encoderNode.onaudioprocess=function(t){varo=t.inputBuffer;returne.encodeBuffers(o)},this.encoderNode.connect(this.audioContext.destination),this.encoder=newt.Worker(this.config.encoderPath))},n.prototype.initSourceNode=function(){vare=this;returnthis.config.sourceNode.context?(this.sourceNode=this.config.sourceNode,Promise.resolve()):t.navigator.mediaDevices.getUserMedia({audio:this.config.mediaTrackConstraints}).then((function(t){e.stream=t,e.sourceNode=e.audioContext.createMediaStreamSource(t)}))},n.prototype.initWorker=function(){vare=this,t=(this.config.streamPages?this.streamPage:this.storePage).bind(this);returnthis.recordedPages