recorder-preact-webpack-nd
Version:
Recorder component for Audio Intakes.
16 lines (14 loc) • 859 kB
JavaScript
!function(e){function t(t){for(var r,i,o=t[0],a=t[1],s=0,u=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&u.push(n[i][0]),n[i]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r]);for(c&&c(t);u.length;)u.shift()()}var r={},n={0:0};function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var o=new Promise((function(t,i){r=n[e]=[t,i]}));t.push(r[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+e+".index.js"}(e);var c=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(u);var r=n[e];if(0!==r){if(r){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,r[1](c)}n[e]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var c=a;i(i.s=314)}([function(e,t,r){"use strict";var n=r(181);r.o(n,"Fragment")&&r.d(t,"Fragment",(function(){return n.Fragment})),r.o(n,"jsx")&&r.d(t,"jsx",(function(){return n.jsx})),r.o(n,"jsxs")&&r.d(t,"jsxs",(function(){return n.jsxs}))},function(e,t,r){"use strict";r.r(t),r.d(t,"useState",(function(){return m})),r.d(t,"useReducer",(function(){return g})),r.d(t,"useEffect",(function(){return v})),r.d(t,"useLayoutEffect",(function(){return y})),r.d(t,"useRef",(function(){return b})),r.d(t,"useImperativeHandle",(function(){return w})),r.d(t,"useMemo",(function(){return _})),r.d(t,"useCallback",(function(){return x})),r.d(t,"useContext",(function(){return O})),r.d(t,"useDebugValue",(function(){return k})),r.d(t,"useErrorBoundary",(function(){return j})),r.d(t,"createElement",(function(){return a.createElement})),r.d(t,"createContext",(function(){return a.createContext})),r.d(t,"createRef",(function(){return a.createRef})),r.d(t,"Fragment",(function(){return a.Fragment})),r.d(t,"Component",(function(){return a.Component})),r.d(t,"version",(function(){return de})),r.d(t,"Children",(function(){return z})),r.d(t,"render",(function(){return te})),r.d(t,"hydrate",(function(){return re})),r.d(t,"unmountComponentAtNode",(function(){return ge})),r.d(t,"createPortal",(function(){return Z})),r.d(t,"createFactory",(function(){return pe})),r.d(t,"cloneElement",(function(){return me})),r.d(t,"isValidElement",(function(){return he})),r.d(t,"findDOMNode",(function(){return ve})),r.d(t,"PureComponent",(function(){return L})),r.d(t,"memo",(function(){return D})),r.d(t,"forwardRef",(function(){return B})),r.d(t,"flushSync",(function(){return be})),r.d(t,"unstable_batchedUpdates",(function(){return ye})),r.d(t,"StrictMode",(function(){return we})),r.d(t,"Suspense",(function(){return q})),r.d(t,"SuspenseList",(function(){return Y})),r.d(t,"lazy",(function(){return H})),r.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return fe}));var n,i,o,a=r(4),s=0,c=[],u=a.options.__b,l=a.options.__r,f=a.options.diffed,d=a.options.__c,p=a.options.unmount;function h(e,t){a.options.__h&&a.options.__h(i,e,s||t),s=0;var r=i.__H||(i.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function m(e){return s=1,g(R,e)}function g(e,t,r){var o=h(n++,2);return o.t=e,o.__c||(o.__=[r?r(t):R(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=i),o.__}function v(e,t){var r=h(n++,3);!a.options.__s&&P(r.__H,t)&&(r.__=e,r.__H=t,i.__H.__h.push(r))}function y(e,t){var r=h(n++,4);!a.options.__s&&P(r.__H,t)&&(r.__=e,r.__H=t,i.__h.push(r))}function b(e){return s=5,_((function(){return{current:e}}),[])}function w(e,t,r){s=6,y((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==r?r:r.concat(e))}function _(e,t){var r=h(n++,7);return P(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function x(e,t){return s=8,_((function(){return e}),t)}function O(e){var t=i.context[e.__c],r=h(n++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(i)),t.props.value):e.__}function k(e,t){a.options.useDebugValue&&a.options.useDebugValue(t?t(e):e)}function j(e){var t=h(n++,10),r=m();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e){t.__&&t.__(e),r[1](e)}),[r[0],function(){r[1](void 0)}]}function S(){for(var e;e=c.shift();)if(e.__P)try{e.__H.__h.forEach(E),e.__H.__h.forEach(A),e.__H.__h=[]}catch(t){e.__H.__h=[],a.options.__e(t,e.__v)}}a.options.__b=function(e){i=null,u&&u(e)},a.options.__r=function(e){l&&l(e),n=0;var t=(i=e.__c).__H;t&&(t.__h.forEach(E),t.__h.forEach(A),t.__h=[])},a.options.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==c.push(t)&&o===a.options.requestAnimationFrame||((o=a.options.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),C&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);C&&(t=requestAnimationFrame(r))})(S)),i=null},a.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(E),e.__h=e.__h.filter((function(e){return!e.__||A(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.options.__e(r,e.__v)}})),d&&d(e,t)},a.options.unmount=function(e){p&&p(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{E(e)}catch(e){t=e}})),t&&a.options.__e(t,r.__v))};var C="function"==typeof requestAnimationFrame;function E(e){var t=i,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),i=t}function A(e){var t=i;e.__c=e.__(),i=t}function P(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function R(e,t){return"function"==typeof t?t(e):t}function T(e,t){for(var r in t)e[r]=t[r];return e}function I(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function L(e){this.props=e}function D(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:I(this.props,e)}function n(t){return this.shouldComponentUpdate=r,Object(a.createElement)(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(L.prototype=new a.Component).isPureReactComponent=!0,L.prototype.shouldComponentUpdate=function(e,t){return I(this.props,e)||I(this.state,t)};var M=a.options.__b;a.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),M&&M(e)};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function B(e){function t(t,r){var n=T({},t);return delete n.ref,e(n,(r=t.ref||r)&&("object"!=typeof r||"current"in r)?r:null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var F=function(e,t){return null==e?null:Object(a.toChildArray)(Object(a.toChildArray)(e).map(t))},z={map:F,forEach:F,count:function(e){return e?Object(a.toChildArray)(e).length:0},only:function(e){var t=Object(a.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:a.toChildArray},W=a.options.__e;a.options.__e=function(e,t,r){if(e.then)for(var n,i=t;i=i.__;)if((n=i.__c)&&n.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),n.__c(e,t);W(e,t,r)};var U=a.options.unmount;function q(){this.__u=0,this.t=null,this.__b=null}function V(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function H(e){var t,r,n;function i(i){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return Object(a.createElement)(r,i)}return i.displayName="Lazy",i.__f=!0,i}function Y(){this.u=null,this.o=null}a.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),U&&U(e)},(q.prototype=new a.Component).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=V(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__e){var e=n.state.__e;n.__v.__k[0]=function e(t,r,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,r,n)})),t.__c&&t.__c.__P===r&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__e:n.__b=null});t=n.t.pop();)t.forceUpdate()}},c=!0===t.__h;n.__u++||c||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(a,a)},q.prototype.componentWillUnmount=function(){this.t=[]},q.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,r,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=T({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,r,n)}))),t}(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__e&&Object(a.createElement)(a.Fragment,null,e.fallback);return i&&(i.__h=null),[Object(a.createElement)(a.Fragment,null,t.__e?null:e.children),i]};var G=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function $(e){return this.getChildContext=function(){return e.context},e.children}function X(e){var t=this,r=e.i;t.componentWillUnmount=function(){Object(a.render)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),e.__v?(t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,r){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Object(a.render)(Object(a.createElement)($,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Z(e,t){return Object(a.createElement)(X,{__v:e,i:t})}(Y.prototype=new a.Component).__e=function(e){var t=this,r=V(t.__v),n=t.o.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),G(t,e,n)):i()};r?r(o):o()}},Y.prototype.render=function(e){this.u=null,this.o=new Map;var t=Object(a.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},Y.prototype.componentDidUpdate=Y.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){G(e,r,t)}))};var K="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,J=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Q="undefined"!=typeof document,ee=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function te(e,t,r){return null==t.__k&&(t.textContent=""),Object(a.render)(e,t),"function"==typeof r&&r(),e?e.__c:null}function re(e,t,r){return Object(a.hydrate)(e,t),"function"==typeof r&&r(),e?e.__c:null}a.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(a.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ne=a.options.event;function ie(){}function oe(){return this.cancelBubble}function ae(){return this.defaultPrevented}a.options.event=function(e){return ne&&(e=ne(e)),e.persist=ie,e.isPropagationStopped=oe,e.isDefaultPrevented=ae,e.nativeEvent=e};var se,ce={configurable:!0,get:function(){return this.class}},ue=a.options.vnode;a.options.vnode=function(e){var t=e.type,r=e.props,n=r;if("string"==typeof t){var i=-1===t.indexOf("-");for(var o in n={},r){var s=r[o];Q&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in r&&null==s||("defaultValue"===o&&"value"in r&&null==r.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!ee(r.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&J.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),n[o]=s)}"select"==t&&n.multiple&&Array.isArray(n.value)&&(n.value=Object(a.toChildArray)(r.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==t&&null!=n.defaultValue&&(n.value=Object(a.toChildArray)(r.children).forEach((function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),e.props=n,r.class!=r.className&&(ce.enumerable="className"in r,null!=r.className&&(n.class=r.className),Object.defineProperty(n,"className",ce))}e.$$typeof=K,ue&&ue(e)};var le=a.options.__r;a.options.__r=function(e){le&&le(e),se=e.__c};var fe={ReactCurrentDispatcher:{current:{readContext:function(e){return se.__n[e.__c].props.value}}}},de="17.0.2";function pe(e){return a.createElement.bind(null,e)}function he(e){return!!e&&e.$$typeof===K}function me(e){return he(e)?a.cloneElement.apply(null,arguments):e}function ge(e){return!!e.__k&&(Object(a.render)(null,e),!0)}function ve(e){return e&&(e.base||1===e.nodeType&&e)||null}var ye=function(e,t){return e(t)},be=function(e,t){return e(t)},we=a.Fragment;t.default={useState:m,useReducer:g,useEffect:v,useLayoutEffect:y,useRef:b,useImperativeHandle:w,useMemo:_,useCallback:x,useContext:O,useDebugValue:k,version:"17.0.2",Children:z,render:te,hydrate:re,unmountComponentAtNode:ge,createPortal:Z,createElement:a.createElement,createContext:a.createContext,createFactory:pe,cloneElement:me,createRef:a.createRef,Fragment:a.Fragment,isValidElement:he,findDOMNode:ve,Component:a.Component,PureComponent:L,memo:D,forwardRef:B,flushSync:be,unstable_batchedUpdates:ye,StrictMode:a.Fragment,Suspense:q,SuspenseList:Y,lazy:H,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fe}},function(e,t,r){e.exports=r(291)()},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"d",(function(){return a})),r.d(t,"f",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"e",(function(){return u}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}},function(e,t,r){"use strict";r.r(t),r.d(t,"render",(function(){return F})),r.d(t,"hydrate",(function(){return z})),r.d(t,"createElement",(function(){return g})),r.d(t,"h",(function(){return g})),r.d(t,"Fragment",(function(){return b})),r.d(t,"createRef",(function(){return y})),r.d(t,"isValidElement",(function(){return a})),r.d(t,"Component",(function(){return w})),r.d(t,"cloneElement",(function(){return W})),r.d(t,"createContext",(function(){return U})),r.d(t,"toChildArray",(function(){return C})),r.d(t,"options",(function(){return i}));var n,i,o,a,s,c,u,l,f={},d=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var r in t)e[r]=t[r];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var i,o,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return v(e,s,i,o,null)}function v(e,t,r,n,a){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function y(){return{current:null}}function b(e){return e.children}function w(e,t){this.props=e,this.context=t}function _(e,t){if(null==t)return e.__?_(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?_(e):null}function x(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return x(e)}}function O(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!k.__r++||u!==i.debounceRendering)&&((u=i.debounceRendering)||c)(k)}function k(){for(var e;k.__r=s.length;)e=s.sort((function(e,t){return e.__v.__b-t.__v.__b})),s=[],e.some((function(e){var t,r,n,i,o,a;e.__d&&(o=(i=(t=e).__v).__e,(a=t.__P)&&(r=[],(n=h({},i)).__v=i.__v+1,I(a,i,n,t.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,r,null==o?_(i):o,i.__h),L(r,i),i.__e!=o&&x(i)))}))}function j(e,t,r,n,i,o,a,s,c,u){var l,p,h,m,g,y,w,x=n&&n.__k||d,O=x.length;for(r.__k=[],l=0;l<t.length;l++)if(null!=(m=r.__k[l]=null==(m=t[l])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?v(null,m,null,null,m):Array.isArray(m)?v(b,{children:m},null,null,null):m.__b>0?v(m.type,m.props,m.key,null,m.__v):m)){if(m.__=r,m.__b=r.__b+1,null===(h=x[l])||h&&m.key==h.key&&m.type===h.type)x[l]=void 0;else for(p=0;p<O;p++){if((h=x[p])&&m.key==h.key&&m.type===h.type){x[p]=void 0;break}h=null}I(e,m,h=h||f,i,o,a,s,c,u),g=m.__e,(p=m.ref)&&h.ref!=p&&(w||(w=[]),h.ref&&w.push(h.ref,null,m),w.push(p,m.__c||g,m)),null!=g?(null==y&&(y=g),"function"==typeof m.type&&m.__k===h.__k?m.__d=c=S(m,c,e):c=E(e,m,h,x,g,c),"function"==typeof r.type&&(r.__d=c)):c&&h.__e==c&&c.parentNode!=e&&(c=_(h))}for(r.__e=y,l=O;l--;)null!=x[l]&&("function"==typeof r.type&&null!=x[l].__e&&x[l].__e==r.__d&&(r.__d=_(n,l+1)),N(x[l],x[l]));if(w)for(l=0;l<w.length;l++)M(w[l],w[++l],w[++l])}function S(e,t,r){for(var n,i=e.__k,o=0;i&&o<i.length;o++)(n=i[o])&&(n.__=e,t="function"==typeof n.type?S(n,t,r):E(r,n,n,i,n.__e,t));return t}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){C(e,t)})):t.push(e)),t}function E(e,t,r,n,i,o){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==r||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,c=0;(s=s.nextSibling)&&c<n.length;c+=2)if(s==i)break e;e.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function A(e,t,r){"-"===t[0]?e.setProperty(t,r):e[t]=null==r?"":"number"!=typeof r||p.test(t)?r:r+"px"}function P(e,t,r,n,i){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||A(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||A(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?T:R,o):e.removeEventListener(t,o?T:R,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null!=r&&(!1!==r||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,r):e.removeAttribute(t))}}function R(e){this.l[e.type+!1](i.event?i.event(e):e)}function T(e){this.l[e.type+!0](i.event?i.event(e):e)}function I(e,t,r,n,o,a,s,c,u){var l,f,d,p,m,g,v,y,_,x,O,k=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(u=r.__h,c=t.__e=r.__e,t.__h=null,a=[c]),(l=i.__b)&&l(t);try{e:if("function"==typeof k){if(y=t.props,_=(l=k.contextType)&&n[l.__c],x=l?_?_.props.value:l.__:n,r.__c?v=(f=t.__c=r.__c).__=f.__E:("prototype"in k&&k.prototype.render?t.__c=f=new k(y,x):(t.__c=f=new w(y,x),f.constructor=k,f.render=B),_&&_.sub(f),f.props=y,f.state||(f.state={}),f.context=x,f.__n=n,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=k.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,k.getDerivedStateFromProps(y,f.__s))),p=f.props,m=f.state,d)null==k.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==k.getDerivedStateFromProps&&y!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,x)||t.__v===r.__v){f.props=y,f.state=f.__s,t.__v!==r.__v&&(f.__d=!1),f.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,m,g)}))}f.context=x,f.props=y,f.state=f.__s,(l=i.__r)&&l(t),f.__d=!1,f.__v=t,f.__P=e,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(n=h(h({},n),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(p,m)),O=null!=l&&l.type===b&&null==l.key?l.props.children:l,j(e,Array.isArray(O)?O:[O],t,r,n,o,a,s,c,u),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),v&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=D(r.__e,t,r,n,o,a,s,u);(l=i.diffed)&&l(t)}catch(e){t.__v=null,(u||null!=a)&&(t.__e=c,t.__h=!!u,a[a.indexOf(c)]=null),i.__e(e,t,r)}}function L(e,t){i.__c&&i.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){i.__e(e,t.__v)}}))}function D(e,t,r,i,o,a,s,c){var u,l,d,p=r.props,h=t.props,g=t.type,v=0;if("svg"===g&&(o=!0),null!=a)for(;v<a.length;v++)if((u=a[v])&&"setAttribute"in u==!!g&&(g?u.localName===g:3===u.nodeType)){e=u,a[v]=null;break}if(null==e){if(null===g)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,h.is&&h),a=null,c=!1}if(null===g)p===h||c&&e.data===h||(e.data=h);else{if(a=a&&n.call(e.childNodes),l=(p=r.props||f).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!c){if(null!=a)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(d||l)&&(d&&(l&&d.__html==l.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,r,n,i){var o;for(o in r)"children"===o||"key"===o||o in t||P(e,o,null,r[o],n);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||r[o]===t[o]||P(e,o,t[o],r[o],n)}(e,h,p,o,c),d)t.__k=[];else if(v=t.props.children,j(e,Array.isArray(v)?v:[v],t,r,i,o&&"foreignObject"!==g,a,s,a?a[0]:r.__k&&_(r,0),c),null!=a)for(v=a.length;v--;)null!=a[v]&&m(a[v]);c||("value"in h&&void 0!==(v=h.value)&&(v!==p.value||v!==e.value||"progress"===g&&!v)&&P(e,"value",v,p.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==e.checked&&P(e,"checked",v,p.checked,!1))}return e}function M(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,r)}}function N(e,t,r){var n,o;if(i.unmount&&i.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||M(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){i.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&N(n[o],t,"function"!=typeof e.type);r||null==e.__e||m(e.__e),e.__e=e.__d=void 0}function B(e,t,r){return this.constructor(e,r)}function F(e,t,r){var o,a,s;i.__&&i.__(e,t),a=(o="function"==typeof r)?null:r&&r.__k||t.__k,s=[],I(t,e=(!o&&r||t).__k=g(b,null,[e]),a||f,f,void 0!==t.ownerSVGElement,!o&&r?[r]:a?null:t.firstChild?n.call(t.childNodes):null,s,!o&&r?r:a?a.__e:t.firstChild,o),L(s,e)}function z(e,t){F(e,t,z)}function W(e,t,r){var i,o,a,s=h({},e.props);for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),v(e.type,s,i||e.key,o||e.ref,null)}function U(e,t){var r={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=[],(n={})[t]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some(O)},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}n=d.slice,i={__e:function(e,t){for(var r,n,i;t=t.__;)if((r=t.__c)&&!r.__)try{if((n=r.constructor)&&null!=n.getDerivedStateFromError&&(r.setState(n.getDerivedStateFromError(e)),i=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e),i=r.__d),i)return r.__E=r}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&void 0===e.constructor},w.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},r),this.props)),e&&h(r,e),null!=e&&this.__v&&(t&&this.__h.push(t),O(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},w.prototype.render=b,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,k.__r=0,l=0},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,r(46))},,,function(e,t,r){var n=r(5),i=r(210),o=r(211),a=r(135),s=r(42),c=r(16),u=c("iterator"),l=c("toStringTag"),f=a.values,d=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(t){e[u]=f}if(e[l]||s(e,l,t),i[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var p in i)d(n[p]&&n[p].prototype,p);d(o,"DOMTokenList")},function(e,t,r){"use strict";r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u}));var n=r(58),i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(e){var t=Object(n.b)().getClient(),r=e||t&&t.getOptions();return!!r&&("tracesSampleRate"in r||"tracesSampler"in r)}function a(e){var t=e.match(i);if(t){var r=void 0;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}}function s(e){var t=(e||Object(n.b)()).getScope();return t&&t.getTransaction()}function c(e){return e/1e3}function u(e){return 1e3*e}},function(e,t,r){var n=r(84),i=Function.prototype,o=i.bind,a=i.call,s=n&&o.bind(a,a);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return c}));var n=r(20),i=Object(n.a)(),o="Sentry Logger ";function a(e){var t=Object(n.a)();if(!("console"in t))return e();var r=t.console,i={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&r[e].__sentry_original__&&(i[e]=r[e],r[e]=r[e].__sentry_original__)}));var o=e();return Object.keys(i).forEach((function(e){r[e]=i[e]})),o}var s=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&a((function(){i.console.log(o+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&a((function(){i.console.warn(o+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&a((function(){i.console.error(o+"[Error]: "+e.join(" "))}))},e}();i.__SENTRY__=i.__SENTRY__||{};var c=i.__SENTRY__.logger||(i.__SENTRY__.logger=new s)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=23)}([function(e,t){e.exports=r(1)},function(e,t){e.exports=r(8)},function(e,t){e.exports=r(221)},function(e,t){e.exports=r(124)},function(e,t){e.exports=r(75)},function(e,t){e.exports=r(36)},function(e,t){e.exports=r(253)},function(e,t){e.exports=r(260)},function(e,t){e.exports=r(79)},function(e,t){e.exports=r(261)},function(e,t){e.exports=r(262)},function(e,t){e.exports=r(263)},function(e,t){e.exports=r(264)},function(e,t){e.exports=r(265)},function(e,t){e.exports=r(266)},function(e,t){e.exports=r(267)},function(e,t){e.exports=r(171)},function(e,t){e.exports=r(270)},function(e,t){e.exports=r(174)},function(e,t){e.exports=r(175)},function(e,t){e.exports=r(177)},function(e,t){e.exports=r(178)},function(e,t){e.exports=r(179)},function(e,t,r){"use strict";r.r(t),r.d(t,"useScreenOrientation",(function(){return a})),r.d(t,"useDeviceDetect",(function(){return s})),r.d(t,"useBrowserStorage",(function(){return I})),r.d(t,"useIsMount",(function(){return L})),r.d(t,"useGeoLocation",(function(){return D})),r.d(t,"useMetaData",(function(){return M})),r.d(t,"useOnOutsideClick",(function(){return N})),r.d(t,"useResizeContainer",(function(){return F})),r.d(t,"useWaveSurfer",(function(){return $})),r.d(t,"supportedAudio",(function(){return _})),r.d(t,"supportedVideo",(function(){return x})),r.d(t,"downloadAnswers",(function(){return O})),r.d(t,"testIfDataURI",(function(){return c})),r.d(t,"dataURItoBlob",(function(){return u})),r.d(t,"convertSecondsToMinutes",(function(){return l})),r.d(t,"parseSeconds",(function(){return f})),r.d(t,"outputSources",(function(){return d})),r.d(t,"inputSources",(function(){return p})),r.d(t,"defaultWaveOptions",(function(){return m})),r.d(t,"validateToken",(function(){return P})),r.d(t,"validateID",(function(){return A})),r.d(t,"validateTheme",(function(){return R})),r.d(t,"validateLanguage",(function(){return T})),r.d(t,"supportedLanguages",(function(){return C})),r.d(t,"languageLocales",(function(){return E})),r.d(t,"themeNames",(function(){return S})),r.d(t,"partnerApi",(function(){return K})),r.d(t,"recPlayApi",(function(){return J})),r.d(t,"serverErrorsMapper",(function(){return ee})),r(1);var n=r(0);const i=()=>{var e;return(null===(e=window.screen.orientation)||void 0===e?void 0:e.type)||window.screen.mozOrientation||window.screen.msOrientation},o=e=>"landscape-primary"===e||"landscape-secondary"===e;var a=()=>{const[e,t]=Object(n.useState)(i()),[r,a]=Object(n.useState)(o(i())),s=()=>{t(i()),a(o(i()))};return Object(n.useEffect)(()=>(window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}),[]),{orientation:e,isLandScape:r}};r(4),r(11);var s=()=>{const[e,t]=Object(n.useState)(null),[r,i]=Object(n.useState)(!1),{isLandScape:o}=a();return Object(n.useEffect)(()=>{const e=void 0===window.navigator,r=e?"User agent not supported!":navigator.userAgent;if(e){const e=Boolean(r.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i));i(e)}t(r)},[]),{device:e,isMobile:r,isLandScape:o}};r(5),r(12),r(13),r(14),r(15),r(16),r(17),r(18),r(19),r(20);const c=e=>/^\s*data:([a-z]+\/[a-z0-9\-]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i.test(e),u=e=>{if(!e)return null;if(!c(e))return console.warn("No dataURI provided."),null;const t=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),i=new Uint8Array(n);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);const o=new DataView(n);return new Blob([o],{type:r})},l=e=>Math.floor(Math.round(e)/60),f=e=>{const t=(e=>Math.round(e)%60)(e);return t<10?"0".concat(t):t};let d=[{deviceId:"default",kind:"audiooutput",label:"Default - Speakers / Headphones"}],p=[{deviceId:"default",kind:"audioinput",label:"Default - Microphone"}];const h=async e=>{const t=await navigator.mediaDevices.enumerateDevices(),r=[];return t.forEach(t=>{t.kind===e&&r.push(t)}),r};(async()=>{try{if(navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices){const e=await h("audiooutput"),t=await h("audioinput");e.length&&(d=e),t.length&&(p=t)}}catch(e){console.warn("navigator.mediaDevices.enumerateDevices - Not Supported.")}})();const m={backend:"WebAudio",splitChannels:!0,scrollParent:!1,autoCenter:!0,barWidth:2,barHeight:1,barMinHeight:1,barGap:3,barRadius:3,cursorWidth:3,height:72,hideScrollBar:!0,minPxPerSec:10,forceDecode:!1,normalize:!1,interact:!0,responsive:!0};var g=r(6),v=r.n(g),y=r(2),b=r.n(y);const w=(e,t,r)=>{const n={mimeType:"",fileExt:""},i=["vp9","vp9.0","vp8","vp8.0","avc1","av1","h265","h.265","h264","h.264","opus"],o=t.length;let a=!1;for(let s=0;s<o;s++){const o=t[s];for(let t=0;t<i.length;t++){const c=i[t],u=["".concat(e,"/").concat(o,";codecs:").concat(c),"".concat(e,"/").concat(o,";codecs=").concat(c),"".concat(e,"/").concat(o,";codecs:").concat(c.toUpperCase()),"".concat(e,"/").concat(o,";codecs=").concat(c.toUpperCase()),"".concat(e,"/").concat(o)].filter(e=>{var t;return null===(t=window.MediaRecorder)||void 0===t?void 0:t.isTypeSupported(e)}),l=[...new Set(u)];if(l.length){n.mimeType=l[0],n.fileExt=r[s],a=!0;break}}if(!0===a)break}return n},_=w("audio",["webm","wav","ogg","opus","aac","mpeg"],[".weba",".wav",".oga",".opus",".aac",".mp3"]),x=w("video",["webm","ogg","mp4","mpeg"],[".webm",".ogv",".mp4",".mpeg"]),O=e=>{let{answers:t,isMobile:r=!1}=e;const n=t.map(e=>{let{audio_url:t,title:r,transcription:n}=e;return{audioUrl:t,name:r,transcription:n}});r&&n.forEach(e=>{let{name:t,audioUrl:r,transcription:n}=e;return function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"audio-submission".concat(_.fileExt);const n=new Blob([t],{type:"text/plain;charset=utf-8"});b.a.saveAs(e,"".concat(r).concat(_.fileExt)),b.a.saveAs(n,"".concat(r,".txt"))}(r,n,t)}),r||(e=>{const t=v()();e.forEach(e=>{let{name:r,audioUrl:n,transcription:i}=e;t.file("".concat(r).concat(_.fileExt),n),t.file("".concat(r,".txt"),i)}),t.generateAsync({type:"blob"}).then(e=>{const t=(new Date).getTime(),r="audio-intake-submsission-".concat(t,".zip");return b.a.saveAs(e,r)})})(n)};r(21);var k=r(7),j=r.n(k);const S=["light","dark"],C=[{locale:"en-gb",label:"English",path:"en-GB/translation.json"},{locale:"nl",label:"Dutch",path:"nl/translation.json"}],E=C.map(e=>e.locale),A=(e,t)=>{if(!e)throw new Error("No ".concat(t," provided."));if("string"!=typeof e)throw new Error("Wrong type: ".concat(t," should be a string."));return e},P=e=>{if(!e)throw new Error("No token provided.");if("string"!=typeof e)throw new Error("Wrong type: token should be a string.");const t=j()(e);if(!t)throw new Error("Wrong type: not a jwt token.");const r=(new Date).getTime(),n=new Date(1e3*t.iat);if(r>=(new Date).setDate(n.getDate()+1))throw new Error("Token expired: request a new token with your api credentials.");return e},R=e=>{if(e&&"string"!=typeof e)throw new Error("Wrong type: theme should be a string.");if(e&&!S.includes(e))throw new Error("Theme does not exist. The provided theme (".concat(e,") is not supported. Check supported themes in our docs."));return e},T=e=>{if(e&&"string"!=typeof e)throw new Error("Wrong type: language should be a string.");if(e&&!E.includes(e))throw new Error("Language not supported. The provided language (".concat(e,") is not supported. Check which languages are supported in our docs."));return e};var I=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=Object(n.useCallback)(()=>{if("undefined"==typeof window)return t;try{const n=r?window.localStorage.getItem(e):window.sessionStorage.getItem(e);return n?c(n)?u(n):JSON.parse(n):t}catch(r){return console.warn("Error reading storage key “".concat(e,"”:"),r),t}},[t,e]),[o,a]=Object(n.useState)(i()),s=n=>{const i="undefined"==typeof window;i&&console.warn("Tried setting storage key “".concat(e,"” even though environment is not a client"));try{void 0===n&&(n=t);const s=n instanceof Function?n(o):n,c=s instanceof Blob;new Promise((e,t)=>{if(c){const r=new FileReader;r.onloadend=()=>{e(r.result)},r.onerror=e=>t(e),s&&r.readAsDataURL(s)}else e(s)}).then(t=>{if(a(t),i)return;const n=c?t:JSON.stringify(t);r?window.localStorage.setItem(e,n):window.sessionStorage.setItem(e,n);const o=new CustomEvent(r?"local-storage":"session-storage",{detail:{dispatchKey:e}});window.dispatchEvent(o)})}catch(t){console.warn("Error setting localStorage itemKey “".concat(e,"”:"),t)}};return Object(n.useEffect)(()=>{let e=!0;return e&&s(i()),()=>e=!1},[]),Object(n.useEffect)(()=>{const t=t=>{t.detail&&t.detail.dispatchKey===e||a(i())};return window.addEventListener("storage",t),window.addEventListener(r?"local-storage":"session-storage",t),()=>{window.removeEventListener("storage",t),window.removeEventListener(r?"local-storage":"session-storage",t)}},[a,i]),[o,s]},L=()=>{const e=Object(n.useRef)(!0);return Object(n.useEffect)(()=>{e.current=!1},[]),e.current},D=()=>{const[e,t]=Object(n.useState)(null),r=e=>{let{coords:r}=e;t({latitude:r.latitude,longitude:r.longitude})},i=e=>{t(e.message)};return Object(n.useEffect)(()=>{const e=navigator.geolocation;if(!e)return void t("Geolocation is not supported!");const n=e.watchPosition(r,i);return()=>e.clearWatch(n)},[]),{location:e}},M=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const[t,r]=Object(n.useState)(),{location:i}=D(),{device:o}=s(),a="";return Object(n.useEffect)(()=>{let t=!0;return e&&t&&r({device:o,location:i,ip_address:a}),()=>t=!1},[o,i,a,r,e]),t},N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>null;Object(n.useEffect)(()=>{const r=r=>{e.current&&!e.current.contains(r.target)&&t()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e,t])};const B={height:null,width:null};var F=e=>{let{minWidth:t,minHeight:r}=e;const i=Object(n.useRef)(),o=Object(n.useRef)(0),[a,s]=Object(n.useState)(!0),[c,u]=Object(n.useState)(!1),[l,f]=Object(n.useState)(B),d=Object(n.useCallback)(()=>{const{width:e,height:t}=i.current.getBoundingClientRect();0!==e&&0!==t||(o.current=o.current+1,o.current<6&&setTimeout(()=>{d()},0)),f({width:e,height:t})});return Object(n.useLayoutEffect)(()=>{d()},[]),Object(n.useEffect)(()=>{if(i&&i.current)return window.addEventListener("resize",d,!1),function(){window.removeEventListener("resize",d,!1)}},[]),Object(n.useEffect)(()=>{const{width:e,height:n}=l;(e<t||n<r)&&s(!1),e>=t&&n>=r&&s(!0),e>n&&u(!0),e<=n&&u(!1)},[l]),[i,l,a,c]},z=r(8),W=r.n(z),U=(r(22),r(9)),q=r.n(U),V=r(10),H=r.n(V);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){W()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $=e=>{let{audioState:t,setAudioState:r,questionNumber:i}=e;const{src:o,canvasID:a,colors:s}=t;let c=Object(n.useRef)(null);const u=Object(n.useMemo)(()=>G(G({},m),{},{container:"#".concat(a),progressColor:s.progressColor,cursorColor:s.cursorColor,waveColor:s.waveColor}),[m,a]),l=Object(n.useCallback)(()=>{null!=c&&c.current&&c.current.destroy()},[c]);return Object(n.useEffect)(()=>(o&&a||l(),o&&a&&(c.current=q.a.create(G(G({},u),{},{plugins:[H.a.create({showTime:!0,opacity:.75,formatTimeCallback:e=>e.toFixed(3),customShowTimeStyle:{"background-color":"#000",color:"#fff",padding:"2px 4px 6px 4px","font-size":"16px"}})]})),c.current.load(o),c.current.on("loading",()=>{r({src:o,isLoading:!0})}),c.current.on("ready",()=>{r({isReady:!0,isLoading:!1,progress:c.current.backend?c.current.getCurrentTime():0,duration:c.current.backend?c.current.getDuration():0})}),c.current.on("error",e=>{console.warn("Error with playing question ".concat(i,": ").concat(e)),r({error:e})}),c.current.on("play",()=>{r({isPaused:!1})}),c.current.on("pause",()=>r({isPaused:!0})),c.current.on("stop",()=>r({isStopped:!0})),c.current.on("volume",e=>r({volume:e,isMuted:0===e})),c.current.on("mute",e=>r({isMuted:e,volume:e?0:.7})),c.current.on("audioprocess",e=>{r({progress:e})}),c.current.on("seek",e=>{r({progress:e*c.current.getDuration()})}),c.current.on("finish",()=>r({isPaused:!0})),c.current.on("destroy",()=>r({isDestroyed:!0}))),()=>l()),[a,o,s]),[c]},X=r(3),Z=r.n(X);const K=e=>Z.a.create({baseURL:"https://partner-api-development.onrender.com/v1",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}}),J=e=>Z.a.create({baseURL:"https://recandplay-api.onrender.com/v1",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)}}),Q={400:{title:"Bad request",description:"Your request header are wrong."},401:{title:"Unauthorized",description:"You token may be expired."},404:{title:"Not found",description:"endpoint does not exist"},422:{title:"Unprocessable entity",description:"wrong data send"},500:{title:"Server not available",description:"Our server is currently not available, try again later."}},ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:400;return Q[e].title}}])},function(e,t,r){"use strict";r.d(t,"d",(function(){return i})),r.d(t,"e",(function(){return a})),r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return c})),r.d(t,"k",(function(){return u})),r.d(t,"i",(function(){return l})),r.d(t,"h",(function(){return f})),r.d(t,"f",(function(){return d})),r.d(t,"c",(function(){return p})),r.d(t,"j",(function(){return h})),r.d(t,"m",(function(){return m})),r.d(t,"l",(function(){return g})),r.d(t,"g",(function(){return v}));var n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(e,Error)}}function o(e,t){return n.call(e)==="[object "+t+"]"}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function c(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&v(e,Event)}function p(e){return"undefined"!=typeof Element&&v(e,Element)}function h(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,r){var n=r(5),i=r(100),o=r(25),a=r(103),s=r(136),c=r(137),u=i("wks"),l=n.Symbol,f=l&&l.for,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(l,e)?u[e]=l[e]:u[e]=c&&f?f(t):d(t)}return u[e]}},function(e,t,r){var n=r(84),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return u}));var n=r(315),i=r(28),o=r(316),a=r(202);const s="development"===e.env.PREACT_APP_DEV_MODE?1:.2;n.a({dsn:"https://3d008b83c6534faba7f51bc869540975@o1124834.ingest.sentry.io/6180220",integrations:[new a.a],tracesSampleRate:s});const c=e=>{i.a(e)},u=e=>o.a(e)}).call(this,r(74))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(34),i={};function o(){return Object(n.b)()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}}).call(this,r(46))},function(e,t,r){var n=r(5),i=r(24),o=n.String,a=n.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},function(e,t,r){"use strict";var n=r(27),i=r(26),o=r(5),a=r(10),s=r(25),c=r(15),u=r(62),l=r(31),f=r(30).f,d=r(146),p=o.Symbol,h=p&&p.prototype;if(i&&c(p)&&(!("description"in h)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};d(g,p),g.prototype=h,h.constructor=g;var v="Symbol(test)"==String(p("test")),y=a(h.toString),b=a(h.valueOf),w=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),x=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=b(this),t=y(e);if(s(m,e))return"";var r=v?x(t,7,-1):_(t,w,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:g})}},function(e,t,r){"use strict";(function(e){r.d(t,"d",(function(){return u})),r.d(t,"a",(function(){return l})),r.d(t,"f",(function(){return f})),r.d(t,"e",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"h",(function(){return g})),r.d(t,"g",(function(){return b})),r.d(t,"c",(function(){return w})),r.d(t,"b",(function(){return _}));var n=r(3),i=r(125),o=r(14),a=r(193),s=r(97),c=r(57);function u(e,t,r){if(t in e){var n=e[t],i=r(n);if("function"==typeof i)try{f(i,n)}catch(e){}e[t]=i}}function l(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}function f(e,t){var r=t.prototype||{};e.prototype=t.prototype=r,l(e,"__sentry_original__",t)}function d(e){return e.__sentry_original__}function p(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function h(e){if(Object(o.d)(e)){var t=e,r={message:t.message,name:t.name,stack:t.stack};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}if(Object(o.f)(e)){var a=e,s={};s.type=a.type;try{s.target=Object(o.c)(a.target)?Object(i.b)(a.target):Object.prototype.toString.call(a.target)}catch(e){s.target="<unknown>"}try{s.currentTarget=Object(o.c)(a.currentTarget)?Object(i.b)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){s.currentTarget="<unknown>"}for(var c in"undefined"!=typeof CustomEvent&&Object(o.g)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=a[c]);return s}return e}function m(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function g(e,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var n=b(e,t);return m(n)>r?g(e,t-1,r):n}function v(t,r){return"domain"===r&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===r?"[DomainEmitter]":void 0!==e&&t=