scanbot-web-sdk 5.1.3-dev.1 → 5.1.3-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/scanbot-sdk.d.ts +8 -0
- package/@types/worker/worker-bridge.d.ts +1 -0
- package/bundle/ScanbotSDK.min.js +2 -2
- package/bundle/ScanbotSDK.ui2.min.js +2 -2
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
- package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see ScanbotSDK.ui2.min.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}([function(t,e,n){"use strict";n.r(e),n.d(e,"Component",(function(){return s.a})),n.d(e,"Fragment",(function(){return s.b})),n.d(e,"createContext",(function(){return s.d})),n.d(e,"createElement",(function(){return s.e})),n.d(e,"createRef",(function(){return s.f})),n.d(e,"useCallback",(function(){return E})),n.d(e,"useContext",(function(){return j})),n.d(e,"useDebugValue",(function(){return L})),n.d(e,"useEffect",(function(){return S})),n.d(e,"useErrorBoundary",(function(){return k})),n.d(e,"useId",(function(){return _})),n.d(e,"useImperativeHandle",(function(){return w})),n.d(e,"useLayoutEffect",(function(){return C})),n.d(e,"useMemo",(function(){return O})),n.d(e,"useReducer",(function(){return A})),n.d(e,"useRef",(function(){return x})),n.d(e,"useState",(function(){return y})),n.d(e,"Children",(function(){return G})),n.d(e,"PureComponent",(function(){return z})),n.d(e,"StrictMode",(function(){return Pt})),n.d(e,"Suspense",(function(){return q})),n.d(e,"SuspenseList",(function(){return tt})),n.d(e,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return Ct})),n.d(e,"cloneElement",(function(){return jt})),n.d(e,"createFactory",(function(){return wt})),n.d(e,"createPortal",(function(){return rt})),n.d(e,"default",(function(){return zt})),n.d(e,"findDOMNode",(function(){return kt})),n.d(e,"flushSync",(function(){return Tt})),n.d(e,"forwardRef",(function(){return U})),n.d(e,"hydrate",(function(){return pt})),n.d(e,"isElement",(function(){return Mt})),n.d(e,"isFragment",(function(){return Et})),n.d(e,"isValidElement",(function(){return Ot})),n.d(e,"lazy",(function(){return J})),n.d(e,"memo",(function(){return N})),n.d(e,"render",(function(){return dt})),n.d(e,"startTransition",(function(){return Rt})),n.d(e,"unmountComponentAtNode",(function(){return Lt})),n.d(e,"unstable_batchedUpdates",(function(){return _t})),n.d(e,"useDeferredValue",(function(){return Bt})),n.d(e,"useInsertionEffect",(function(){return It})),n.d(e,"useSyncExternalStore",(function(){return Dt})),n.d(e,"useTransition",(function(){return Wt})),n.d(e,"version",(function(){return xt}));var o,r,i,a,s=n(8),l=0,c=[],u=[],d=s.h,p=d.__b,h=d.__r,f=d.diffed,m=d.__c,g=d.unmount,v=d.__;function b(t,e){d.__h&&d.__h(r,t,l||e),l=0;var n=r.__H||(r.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:u}),n.__[t]}function y(t){return l=1,A(M,t)}function A(t,e,n){var i=b(o++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):M(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=r,!r.u)){var a=function(t,e,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!s||s.call(this,t,e,n);var r=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}})),!(!r&&i.__c.props===t)&&(!s||s.call(this,t,e,n))};r.u=!0;var s=r.shouldComponentUpdate,l=r.componentWillUpdate;r.componentWillUpdate=function(t,e,n){if(this.__e){var o=s;s=void 0,a(t,e,n),s=o}l&&l.call(this,t,e,n)},r.shouldComponentUpdate=a}return i.__N||i.__}function S(t,e){var n=b(o++,3);!d.__s&&I(n.__H,e)&&(n.__=t,n.i=e,r.__H.__h.push(n))}function C(t,e){var n=b(o++,4);!d.__s&&I(n.__H,e)&&(n.__=t,n.i=e,r.__h.push(n))}function x(t){return l=5,O((function(){return{current:t}}),[])}function w(t,e,n){l=6,C((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function O(t,e){var n=b(o++,7);return I(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function E(t,e){return l=8,O((function(){return t}),e)}function j(t){var e=r.context[t.__c],n=b(o++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(r)),e.props.value):t.__}function L(t,e){d.useDebugValue&&d.useDebugValue(e?e(t):t)}function k(t){var e=b(o++,10),n=y();return e.__=t,r.componentDidCatch||(r.componentDidCatch=function(t,o){e.__&&e.__(t,o),n[1](t)}),[n[0],function(){n[1](void 0)}]}function _(){var t=b(o++,11);if(!t.__){for(var e=r.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function T(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(B),t.__H.__h.forEach(W),t.__H.__h=[]}catch(e){t.__H.__h=[],d.__e(e,t.__v)}}d.__b=function(t){r=null,p&&p(t)},d.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),v&&v(t,e)},d.__r=function(t){h&&h(t),o=0;var e=(r=t.__c).__H;e&&(i===r?(e.__h=[],r.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=u,t.__N=t.i=void 0}))):(e.__h.forEach(B),e.__h.forEach(W),e.__h=[],o=0)),i=r},d.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==c.push(e)&&a===d.requestAnimationFrame||((a=d.requestAnimationFrame)||R)(T)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==u&&(t.__=t.__V),t.i=void 0,t.__V=u}))),i=r=null},d.__c=function(t,e){e.some((function(t){try{t.__h.forEach(B),t.__h=t.__h.filter((function(t){return!t.__||W(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],d.__e(n,t.__v)}})),m&&m(t,e)},d.unmount=function(t){g&&g(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{B(t)}catch(t){e=t}})),n.__H=void 0,e&&d.__e(e,n.__v))};var P="function"==typeof requestAnimationFrame;function R(t){var e,n=function(){clearTimeout(o),P&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);P&&(e=requestAnimationFrame(n))}function B(t){var e=r,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),r=e}function W(t){var e=r;t.__c=t.__(),r=e}function I(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function M(t,e){return"function"==typeof e?e(t):e}function D(t,e){for(var n in e)t[n]=e[n];return t}function F(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var o in e)if("__source"!==o&&t[o]!==e[o])return!0;return!1}function z(t,e){this.props=t,this.context=e}function N(t,e){function n(t){var n=this.props.ref,o=n==t.ref;return!o&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!o:F(this.props,t)}function o(e){return this.shouldComponentUpdate=n,Object(s.e)(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(z.prototype=new s.a).isPureReactComponent=!0,z.prototype.shouldComponentUpdate=function(t,e){return F(this.props,t)||F(this.state,e)};var V=s.h.__b;s.h.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),V&&V(t)};var $="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function U(t){function e(e){var n=D({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=$,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var H=function(t,e){return null==t?null:Object(s.j)(Object(s.j)(t).map(e))},G={map:H,forEach:H,count:function(t){return t?Object(s.j)(t).length:0},only:function(t){var e=Object(s.j)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:s.j},Y=s.h.__e;s.h.__e=function(t,e,n,o){if(t.then)for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);Y(t,e,n,o)};var X=s.h.unmount;function K(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=D({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return K(t,e,n)}))),t}function Q(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return Q(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function q(){this.__u=0,this.t=null,this.__b=null}function Z(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function J(t){var e,n,o;function r(r){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return Object(s.e)(n,r)}return r.displayName="Lazy",r.__f=!0,r}function tt(){this.u=null,this.o=null}s.h.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),X&&X(t)},(q.prototype=new s.a).__c=function(t,e){var n=e.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Z(o.__v),i=!1,a=function(){i||(i=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Q(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.t.pop();)e.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(a,a)},q.prototype.componentWillUnmount=function(){this.t=[]},q.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=K(this.__b,n,o.__O=o.__P)}this.__b=null}var r=e.__a&&Object(s.e)(s.b,null,t.fallback);return r&&(r.__u&=-33),[Object(s.e)(s.b,null,e.__a?null:t.children),r]};var et=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function nt(t){return this.getChildContext=function(){return t.context},t.children}function ot(t){var e=this,n=t.i;e.componentWillUnmount=function(){Object(s.i)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),Object(s.i)(Object(s.e)(nt,{context:e.context},t.__v),e.l)}function rt(t,e){var n=Object(s.e)(ot,{__v:t,i:e});return n.containerInfo=e,n}(tt.prototype=new s.a).__a=function(t){var e=this,n=Z(e.__v),o=e.o.get(t);return o[0]++,function(r){var i=function(){e.props.revealOrder?(o.push(r),et(e,t,o)):r()};n?n(i):i()}},tt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Object(s.j)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},tt.prototype.componentDidUpdate=tt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){et(t,n,e)}))};var it="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,at=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,st=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,lt=/[A-Z0-9]/g,ct="undefined"!=typeof document,ut=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function dt(t,e,n){return null==e.__k&&(e.textContent=""),Object(s.i)(t,e),"function"==typeof n&&n(),t?t.__c:null}function pt(t,e,n){return Object(s.g)(t,e),"function"==typeof n&&n(),t?t.__c:null}s.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(s.a.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var ht=s.h.event;function ft(){}function mt(){return this.cancelBubble}function gt(){return this.defaultPrevented}s.h.event=function(t){return ht&&(t=ht(t)),t.persist=ft,t.isPropagationStopped=mt,t.isDefaultPrevented=gt,t.nativeEvent=t};var vt,bt={enumerable:!1,configurable:!0,get:function(){return this.class}},yt=s.h.vnode;s.h.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,o={};for(var r in e){var i=e[r];if(!("value"===r&&"defaultValue"in e&&null==i||ct&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||ut(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":st.test(r)?r=a:-1===n.indexOf("-")&&at.test(r)?r=r.replace(lt,"-$&").toLowerCase():null===i&&(i=void 0):a=r="oninput","oninput"===a&&o[r=a]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=Object(s.j)(e.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=Object(s.j)(e.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),e.class&&!e.className?(o.class=e.class,Object.defineProperty(o,"className",bt)):(e.className&&!e.class||e.class&&e.className)&&(o.class=o.className=e.className),t.props=o}(t),t.$$typeof=it,yt&&yt(t)};var At=s.h.__r;s.h.__r=function(t){At&&At(t),vt=t.__c};var St=s.h.diffed;s.h.diffed=function(t){St&&St(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),vt=null};var Ct={ReactCurrentDispatcher:{current:{readContext:function(t){return vt.__n[t.__c].props.value}}}},xt="17.0.2";function wt(t){return s.e.bind(null,t)}function Ot(t){return!!t&&t.$$typeof===it}function Et(t){return Ot(t)&&t.type===s.b}function jt(t){return Ot(t)?s.c.apply(null,arguments):t}function Lt(t){return!!t.__k&&(Object(s.i)(null,t),!0)}function kt(t){return t&&(t.base||1===t.nodeType&&t)||null}var _t=function(t,e){return t(e)},Tt=function(t,e){return t(e)},Pt=s.b;function Rt(t){t()}function Bt(t){return t}function Wt(){return[!1,Rt]}var It=C,Mt=Ot;function Dt(t,e){var n=e(),o=y({h:{__:n,v:e}}),r=o[0].h,i=o[1];return C((function(){r.__=n,r.v=e,Ft(r)&&i({h:r})}),[t,n,e]),S((function(){return Ft(r)&&i({h:r}),t((function(){Ft(r)&&i({h:r})}))}),[t]),n}function Ft(t){var e,n,o=t.v,r=t.__;try{var i=o();return!((e=r)===(n=i)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(t){return!0}}var zt={useState:y,useId:_,useReducer:A,useEffect:S,useLayoutEffect:C,useInsertionEffect:It,useTransition:Wt,useDeferredValue:Bt,useSyncExternalStore:Dt,startTransition:Rt,useRef:x,useImperativeHandle:w,useMemo:O,useCallback:E,useContext:j,useDebugValue:L,version:"17.0.2",Children:G,render:dt,hydrate:pt,unmountComponentAtNode:Lt,createPortal:rt,createElement:s.e,createContext:s.d,createFactory:wt,cloneElement:jt,createRef:s.f,Fragment:s.b,isValidElement:Ot,isElement:Mt,isFragment:Et,findDOMNode:kt,Component:s.a,PureComponent:z,memo:N,forwardRef:U,flushSync:Tt,unstable_batchedUpdates:_t,StrictMode:Pt,Suspense:q,SuspenseList:tt,lazy:J,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ct}},function(t,e,n){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},o.apply(this,arguments)}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return l}));var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}Object.create;function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function l(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}Object.create},function(t,e,n){n(0),t.exports=n(92)},function(t,e,n){"use strict";function o(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var o=n(57);e.a=o.a},function(t,e,n){"use strict";function o(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=o(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}e.a=function(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=o(t))&&(r&&(r+=" "),r+=e);return r}},function(t,e,n){"use strict";n.d(e,"b",(function(){return A}));var o=n(1),r=n(4),i=n(32),a=n(83),s=n(104),l=n(69);const c=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}const h=Object(s.a)(),f=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function m({defaultTheme:t,theme:e,themeId:n}){return o=e,0===Object.keys(o).length?t:e[n]||e;var o}function g(t){return t?(e,n)=>n[t]:null}function v(t,e){let{ownerState:n}=e,i=Object(r.a)(e,c);const a="function"==typeof t?t(Object(o.a)({ownerState:n},i)):t;if(Array.isArray(a))return a.flatMap((t=>v(t,Object(o.a)({ownerState:n},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:t=[]}=a;let e=Object(r.a)(a,u);return t.forEach((t=>{let r=!0;"function"==typeof t.props?r=t.props(Object(o.a)({ownerState:n},i)):Object.keys(t.props).forEach((e=>{(null==n?void 0:n[e])!==t.props[e]&&i[e]!==t.props[e]&&(r=!1)})),r&&(Array.isArray(e)||(e=[e]),e.push("function"==typeof t.style?t.style(Object(o.a)({ownerState:n},i)):t.style))})),e}return a}var b=n(36),y=n(24);const A=t=>p(t)&&"classes"!==t,S=function(t={}){const{themeId:e,defaultTheme:n=h,rootShouldForwardProp:s=p,slotShouldForwardProp:c=p}=t,u=t=>Object(l.a)(Object(o.a)({},t,{theme:m(Object(o.a)({},t,{defaultTheme:n,themeId:e}))}));return u.__mui_systemSx=!0,(t,l={})=>{Object(i.b)(t,(t=>t.filter((t=>!(null!=t&&t.__mui_systemSx)))));const{name:h,slot:b,skipVariantsResolver:y,skipSx:A,overridesResolver:S=g(f(b))}=l,C=Object(r.a)(l,d),x=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,w=A||!1;let O=p;"Root"===b||"root"===b?O=s:b?O=c:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(O=void 0);const E=Object(i.a)(t,Object(o.a)({shouldForwardProp:O,label:undefined},C)),j=t=>"function"==typeof t&&t.__emotion_real!==t||Object(a.b)(t)?r=>v(t,Object(o.a)({},r,{theme:m({theme:r.theme,defaultTheme:n,themeId:e})})):t,L=(r,...i)=>{let a=j(r);const s=i?i.map(j):[];h&&S&&s.push((t=>{const r=m(Object(o.a)({},t,{defaultTheme:n,themeId:e}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const i=r.components[h].styleOverrides,a={};return Object.entries(i).forEach((([e,n])=>{a[e]=v(n,Object(o.a)({},t,{theme:r}))})),S(t,a)})),h&&!x&&s.push((t=>{var r;const i=m(Object(o.a)({},t,{defaultTheme:n,themeId:e}));return v({variants:null==i||null==(r=i.components)||null==(r=r[h])?void 0:r.variants},Object(o.a)({},t,{theme:i}))})),w||s.push(u);const l=s.length-i.length;if(Array.isArray(r)&&l>0){const t=new Array(l).fill("");a=[...r,...t],a.raw=[...r.raw,...t]}const c=E(a,...s);return t.muiName&&(c.muiName=t.muiName),c};return E.withConfig&&(L.withConfig=E.withConfig),L}}({themeId:y.a,defaultTheme:b.a,rootShouldForwardProp:A});e.a=S},function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return U})),n.d(e,"d",(function(){return H})),n.d(e,"e",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"g",(function(){return $})),n.d(e,"h",(function(){return r})),n.d(e,"i",(function(){return V})),n.d(e,"j",(function(){return _}));var o,r,i,a,s,l,c,u,d={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=Array.isArray;function m(t,e){for(var n in e)t[n]=e[n];return t}function g(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,i,a,s={};for(a in e)"key"==a?r=e[a]:"ref"==a?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return b(t,s,r,i,null)}function b(t,e,n,o,a){var s={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(s),s}function y(){return{current:null}}function A(t){return t.children}function S(t,e){this.props=t,this.context=e}function C(t,e){if(null==e)return t.__?C(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?C(t):null}function x(t,e,n){var o,i=t.__v,a=i.__e,s=t.__P;if(s)return(o=m({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),I(s,o,i,t.__n,void 0!==s.ownerSVGElement,32&i.__u?[a]:null,e,null==a?C(i):a,!!(32&i.__u),n),o.__v=i.__v,o.__.__k[o.__i]=o,o.__d=void 0,o.__e!=a&&w(o),o}function w(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return w(t)}}function O(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||l)(E)}function E(){var t,e,n,o=[],i=[];for(a.sort(c);t=a.shift();)t.__d&&(n=a.length,e=x(t,o,i)||e,0===n||a.length>n?(M(o,e,i),i.length=o.length=0,e=void 0,a.sort(c)):e&&r.__c&&r.__c(e,p));e&&M(o,e,i),E.__r=0}function j(t,e,n,o,r,i,a,s,l,c,u){var h,f,m,g,v,b=o&&o.__k||p,y=e.length;for(n.__d=l,L(n,e,b),l=n.__d,h=0;h<y;h++)null!=(m=n.__k[h])&&"boolean"!=typeof m&&"function"!=typeof m&&(f=-1===m.__i?d:b[m.__i]||d,m.__i=h,I(t,m,f,r,i,a,s,l,c,u),g=m.__e,m.ref&&f.ref!=m.ref&&(f.ref&&F(f.ref,null,m),u.push(m.ref,m.__c||g,m)),null==v&&null!=g&&(v=g),65536&m.__u||f.__k===m.__k?l=k(m,l,t):"function"==typeof m.type&&void 0!==m.__d?l=m.__d:g&&(l=g.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=v}function L(t,e,n){var o,r,i,a,s,l=e.length,c=n.length,u=c,d=0;for(t.__k=[],o=0;o<l;o++)null!=(r=t.__k[o]=null==(r=e[o])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?b(null,r,null,null,r):f(r)?b(A,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?b(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=t,r.__b=t.__b+1,s=T(r,n,a=o+d,u),r.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==o+d&&(r.__u|=65536))):(i=n[o])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),z(i,i,!1),n[o]=null,u--);if(u)for(o=0;o<c;o++)null!=(i=n[o])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),z(i,i))}function k(t,e,n){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=k(o[r],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function _(t,e){return e=e||[],null==t||"boolean"==typeof t||(f(t)?t.some((function(t){_(t,e)})):e.push(t)),e}function T(t,e,n,o){var r=t.key,i=t.type,a=n-1,s=n+1,l=e[n];if(null===l||l&&r==l.key&&i===l.type)return n;if(o>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<e.length;){if(a>=0){if((l=e[a])&&0==(131072&l.__u)&&r==l.key&&i===l.type)return a;a--}if(s<e.length){if((l=e[s])&&0==(131072&l.__u)&&r==l.key&&i===l.type)return s;s++}}return-1}function P(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||h.test(e)?n:n+"px"}function R(t,e,n,o,r){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||P(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||P(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n.u=o.u:(n.u=Date.now(),t.addEventListener(e,i?W:B,i)):t.removeEventListener(e,i?W:B,i);else{if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function B(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(r.event?r.event(t):t)}}function W(t){if(this.l)return this.l[t.type+!0](r.event?r.event(t):t)}function I(t,e,n,o,i,a,s,l,c,u){var d,p,h,g,v,b,y,C,x,w,O,E,L,k,_,T=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),a=[l=e.__e=n.__e]),(d=r.__b)&&d(e);t:if("function"==typeof T)try{if(C=e.props,x=(d=T.contextType)&&o[d.__c],w=d?x?x.props.value:d.__:o,n.__c?y=(p=e.__c=n.__c).__=p.__E:("prototype"in T&&T.prototype.render?e.__c=p=new T(C,w):(e.__c=p=new S(C,w),p.constructor=T,p.render=N),x&&x.sub(p),p.props=C,p.state||(p.state={}),p.context=w,p.__n=o,h=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=T.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=m({},p.__s)),m(p.__s,T.getDerivedStateFromProps(C,p.__s))),g=p.props,v=p.state,p.__v=e,h)null==T.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==T.getDerivedStateFromProps&&C!==g&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(C,w),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(C,p.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(p.props=C,p.state=p.__s,p.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[],p.__h.length&&s.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(C,p.__s,w),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(g,v,b)}))}if(p.context=w,p.props=C,p.__P=t,p.__e=!1,E=r.__r,L=0,"prototype"in T&&T.prototype.render){for(p.state=p.__s,p.__d=!1,E&&E(e),d=p.render(p.props,p.state,p.context),k=0;k<p._sb.length;k++)p.__h.push(p._sb[k]);p._sb=[]}else do{p.__d=!1,E&&E(e),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++L<25);p.state=p.__s,null!=p.getChildContext&&(o=m(m({},o),p.getChildContext())),h||null==p.getSnapshotBeforeUpdate||(b=p.getSnapshotBeforeUpdate(g,v)),j(t,f(_=null!=d&&d.type===A&&null==d.key?d.props.children:d)?_:[_],e,n,o,i,a,s,l,c,u),p.base=e.__e,e.__u&=-161,p.__h.length&&s.push(p),y&&(p.__E=p.__=null)}catch(t){e.__v=null,c||null!=a?(e.__e=l,e.__u|=c?160:32,a[a.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),r.__e(t,e,n)}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=D(n.__e,e,n,o,i,a,s,c,u);(d=r.diffed)&&d(e)}function M(t,e,n){for(var o=0;o<n.length;o++)F(n[o],n[++o],n[++o]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function D(t,e,n,r,i,a,s,l,c){var u,p,h,m,v,b,y,A=n.props,S=e.props,x=e.type;if("svg"===x&&(i=!0),null!=a)for(u=0;u<a.length;u++)if((v=a[u])&&"setAttribute"in v==!!x&&(x?v.localName===x:3===v.nodeType)){t=v,a[u]=null;break}if(null==t){if(null===x)return document.createTextNode(S);t=i?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,S.is&&S),a=null,l=!1}if(null===x)A===S||l&&t.data===S||(t.data=S);else{if(a=a&&o.call(t.childNodes),A=n.props||d,!l&&null!=a)for(A={},u=0;u<t.attributes.length;u++)A[(v=t.attributes[u]).name]=v.value;for(u in A)v=A[u],"children"==u||("dangerouslySetInnerHTML"==u?h=v:"key"===u||u in S||R(t,u,null,v,i));for(u in S)v=S[u],"children"==u?m=v:"dangerouslySetInnerHTML"==u?p=v:"value"==u?b=v:"checked"==u?y=v:"key"===u||l&&"function"!=typeof v||A[u]===v||R(t,u,v,A[u],i);if(p)l||h&&(p.__html===h.__html||p.__html===t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(h&&(t.innerHTML=""),j(t,f(m)?m:[m],e,n,r,i&&"foreignObject"!==x,a,s,a?a[0]:n.__k&&C(n,0),l,c),null!=a)for(u=a.length;u--;)null!=a[u]&&g(a[u]);l||(u="value",void 0!==b&&(b!==t[u]||"progress"===x&&!b||"option"===x&&b!==A[u])&&R(t,u,b,A[u],!1),u="checked",void 0!==y&&y!==t[u]&&R(t,u,y,A[u],!1))}return t}function F(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function z(t,e,n){var o,i;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||F(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&z(o[i],e,n||"function"!=typeof t.type);n||null==t.__e||g(t.__e),t.__=t.__e=t.__d=void 0}function N(t,e,n){return this.constructor(t,n)}function V(t,e,n){var i,a,s,l;r.__&&r.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],l=[],I(e,t=(!i&&n||e).__k=v(A,null,[t]),a||d,d,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?o.call(e.childNodes):null,s,!i&&n?n:a?a.__e:e.firstChild,i,l),t.__d=void 0,M(s,t,l)}function $(t,e){V(t,e,$)}function U(t,e,n){var r,i,a,s,l=m({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)"key"==a?r=e[a]:"ref"==a?i=e[a]:l[a]=void 0===e[a]&&void 0!==s?s[a]:e[a];return arguments.length>2&&(l.children=arguments.length>3?o.call(arguments,2):n),b(t.type,l,r||t.key,i||t.ref,null)}function H(t,e){var n={__c:e="__cC"+u++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,o;return this.getChildContext||(n=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,O(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}o=p.slice,r={__e:function(t,e,n,o){for(var r,i,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),a=r.__d),a)return r.__E=r}catch(e){t=e}throw t}},i=0,S.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof t&&(t=t(m({},n),this.props)),t&&m(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),O(this))},S.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},S.prototype.render=A,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},E.__r=0,u=0},function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return y}));var o=n(20),r=n(13),i=n(26);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(t){const e={};return n=>(void 0===e[n]&&(e[n]=t(n)),e[n])}((t=>{if(t.length>2){if(!l[t])return[t];t=l[t]}const[e,n]=t.split(""),o=a[e],r=s[n]||"";return Array.isArray(r)?r.map((t=>o+t)):[o+r]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(t,e,n,o){var i;const a=null!=(i=Object(r.b)(t,e,!1))?i:n;return"number"==typeof a?t=>"string"==typeof t?t:a*t:Array.isArray(a)?t=>"string"==typeof t?t:a[t]:"function"==typeof a?a:()=>{}}function f(t){return h(t,"spacing",8)}function m(t,e){if("string"==typeof e||null==e)return e;const n=t(Math.abs(e));return e>=0?n:"number"==typeof n?-n:`-${n}`}function g(t,e,n,r){if(-1===e.indexOf(n))return null;const i=function(t,e){return n=>t.reduce(((t,o)=>(t[o]=m(e,n),t)),{})}(c(n),r),a=t[n];return Object(o.b)(t,a,i)}function v(t,e){const n=f(t.theme);return Object.keys(t).map((o=>g(t,e,o,n))).reduce(i.a,{})}function b(t){return v(t,u)}function y(t){return v(t,d)}function A(t){return v(t,p)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,A.propTypes={},A.filterProps=p},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n(98),r=n(36),i=n(24);function a({props:t,name:e}){return Object(o.a)({props:t,name:e,defaultTheme:r.a,themeId:i.a})}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a}));var o=n(57),r=n(20);function i(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){const n=`vars.${e}`.split(".").reduce(((t,e)=>t&&t[e]?t[e]:null),t);if(null!=n)return n}return e.split(".").reduce(((t,e)=>t&&null!=t[e]?t[e]:null),t)}function a(t,e,n,o=n){let r;return r="function"==typeof t?t(n):Array.isArray(t)?t[n]||o:i(t,n)||o,e&&(r=e(r,o,t)),r}e.a=function(t){const{prop:e,cssProperty:n=t.prop,themeKey:s,transform:l}=t,c=t=>{if(null==t[e])return null;const c=t[e],u=i(t.theme,s)||{};return Object(r.b)(t,c,(t=>{let r=a(u,l,t);return t===r&&"string"==typeof t&&(r=a(u,l,`${e}${"default"===t?"":Object(o.a)(t)}`,t)),!1===n?r:{[n]:r}}))};return c.propTypes={},c.filterProps=[e],c}},,,,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return Dt})),n.d(e,"b",(function(){return $t})),n.d(e,"c",(function(){return Gt})),n.d(e,"d",(function(){return Yt}));var o=n(2),r=(n(82),n(0)),i=n(70),a=n.n(i),s=n(31),l=n(71),c="undefined"!=typeof t&&void 0!==t.env&&(t.env.REACT_APP_SC_ATTR||t.env.SC_ATTR)||"data-styled",u="active",d="data-styled-version",p="6.1.8",h="/*!sc*/\n",f="undefined"!=typeof window&&"HTMLElement"in window,m=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==t.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&t.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.SC_DISABLE_SPEEDY&&""!==t.env.SC_DISABLE_SPEEDY&&("false"!==t.env.SC_DISABLE_SPEEDY&&t.env.SC_DISABLE_SPEEDY)),g=(new Set,Object.freeze([])),v=Object.freeze({});function b(t,e,n){return void 0===n&&(n=v),t.theme!==n.theme&&t.theme||e||n.theme}var y=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,S=/(^-|-$)/g;function C(t){return t.replace(A,"-").replace(S,"")}var x=/(a)(d)/gi,w=function(t){return String.fromCharCode(t+(t>25?39:97))};function O(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=w(e%52)+n;return(w(e%52)+n).replace(x,"$1-$2")}var E,j=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},L=function(t){return j(5381,t)};function k(t){return O(L(t)>>>0)}function _(t){return t.displayName||t.name||"Component"}function T(t){return"string"==typeof t&&!0}var P="function"==typeof Symbol&&Symbol.for,R=P?Symbol.for("react.memo"):60115,B=P?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},I={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},D=((E={})[B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E[R]=M,E);function F(t){return("type"in(e=t)&&e.type.$$typeof)===R?M:"$$typeof"in t?D[t.$$typeof]:W;var e}var z=Object.defineProperty,N=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,U=Object.getPrototypeOf,H=Object.prototype;function G(t,e,n){if("string"!=typeof e){if(H){var o=U(e);o&&o!==H&&G(t,o,n)}var r=N(e);V&&(r=r.concat(V(e)));for(var i=F(t),a=F(e),s=0;s<r.length;++s){var l=r[s];if(!(l in I||n&&n[l]||a&&l in a||i&&l in i)){var c=$(e,l);try{z(t,l,c)}catch(t){}}}}return t}function Y(t){return"function"==typeof t}function X(t){return"object"==typeof t&&"styledComponentId"in t}function K(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function Q(t,e){if(0===t.length)return"";for(var n=t[0],o=1;o<t.length;o++)n+=e?e+t[o]:t[o];return n}function q(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function Z(t,e,n){if(void 0===n&&(n=!1),!n&&!q(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var o=0;o<e.length;o++)t[o]=Z(t[o],e[o]);else if(q(e))for(var o in e)t[o]=Z(t[o],e[o]);return t}function J(t,e){Object.defineProperty(t,"toString",{value:e})}function tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var et=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;t>=r;)if((r<<=1)<0)throw tt(16,"".concat(t));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),s=(i=0,e.length);i<s;i++)this.tag.insertRule(a,e[i])&&(this.groupSizes[t]++,a++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),o=n+e;this.groupSizes[t]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),r=o+n,i=o;i<r;i++)e+="".concat(this.tag.getRule(i)).concat(h);return e},t}(),nt=new Map,ot=new Map,rt=1,it=function(t){if(nt.has(t))return nt.get(t);for(;ot.has(rt);)rt++;var e=rt++;return nt.set(t,e),ot.set(e,t),e},at=function(t,e){rt=e+1,nt.set(t,e),ot.set(e,t)},st="style[".concat(c,"][").concat(d,'="').concat(p,'"]'),lt=new RegExp("^".concat(c,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ct=function(t,e,n){for(var o,r=n.split(","),i=0,a=r.length;i<a;i++)(o=r[i])&&t.registerName(e,o)},ut=function(t,e){for(var n,o=(null!==(n=e.textContent)&&void 0!==n?n:"").split(h),r=[],i=0,a=o.length;i<a;i++){var s=o[i].trim();if(s){var l=s.match(lt);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(at(u,c),ct(t,u,l[3]),t.getTag().insertRules(c,r)),r.length=0}else r.push(s)}}};function dt(){return n.nc}var pt=function(t){var e=document.head,n=t||e,o=document.createElement("style"),r=function(t){var e=Array.from(t.querySelectorAll("style[".concat(c,"]")));return e[e.length-1]}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(c,u),o.setAttribute(d,p);var a=dt();return a&&o.setAttribute("nonce",a),n.insertBefore(o,i),o},ht=function(){function t(t){this.element=pt(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,o=e.length;n<o;n++){var r=e[n];if(r.ownerNode===t)return r}throw tt(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),ft=function(){function t(t){this.element=pt(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),mt=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),gt=f,vt={isServer:!f,useCSSOMInjection:!m},bt=function(){function t(t,e,n){void 0===t&&(t=v),void 0===e&&(e={});var r=this;this.options=Object(o.a)(Object(o.a)({},vt),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&f&>&&(gt=!1,function(t){for(var e=document.querySelectorAll(st),n=0,o=e.length;n<o;n++){var r=e[n];r&&r.getAttribute(c)!==u&&(ut(t,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),J(this,(function(){return function(t){for(var e=t.getTag(),n=e.length,o="",r=function(n){var r=function(t){return ot.get(t)}(n);if(void 0===r)return"continue";var i=t.names.get(r),a=e.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(c,".g").concat(n,'[id="').concat(r,'"]'),l="";void 0!==i&&i.forEach((function(t){t.length>0&&(l+="".concat(t,","))})),o+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(h)},i=0;i<n;i++)r(i);return o}(r)}))}return t.registerId=function(t){return it(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(Object(o.a)(Object(o.a)({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.useCSSOMInjection,n=t.target;return t.isServer?new mt(n):e?new ht(n):new ft(n)}(this.options),new et(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(it(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(it(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(it(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),yt=/&/g,At=/^\s*\/\/.*$/gm;function St(t,e){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map((function(t){return"".concat(e," ").concat(t)}))),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=St(t.children,e)),t}))}function Ct(t){var e,n,o,r=void 0===t?v:t,i=r.options,a=void 0===i?v:i,l=r.plugins,c=void 0===l?g:l,u=function(t,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(e):t},d=c.slice();d.push((function(t){t.type===s.a&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(yt,n).replace(o,u))})),a.prefix&&d.push(s.d),d.push(s.g);var p=function(t,r,i,l){void 0===r&&(r=""),void 0===i&&(i=""),void 0===l&&(l="&"),e=l,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=t.replace(At,""),u=s.b(i||r?"".concat(i," ").concat(r," { ").concat(c," }"):c);a.namespace&&(u=St(u,a.namespace));var p=[];return s.f(u,s.c(d.concat(s.e((function(t){return p.push(t)}))))),p};return p.hash=c.length?c.reduce((function(t,e){return e.name||tt(15),j(t,e.name)}),5381).toString():"",p}var xt=new bt,wt=Ct(),Ot=r.default.createContext({shouldForwardProp:void 0,styleSheet:xt,stylis:wt}),Et=(Ot.Consumer,r.default.createContext(void 0));function jt(){return Object(r.useContext)(Ot)}function Lt(t){var e=Object(r.useState)(t.stylisPlugins),n=e[0],o=e[1],i=jt().styleSheet,s=Object(r.useMemo)((function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,i]),l=Object(r.useMemo)((function(){return Ct({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})}),[t.enableVendorPrefixes,t.namespace,n]);Object(r.useEffect)((function(){a()(n,t.stylisPlugins)||o(t.stylisPlugins)}),[t.stylisPlugins]);var c=Object(r.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:s,stylis:l}}),[t.shouldForwardProp,s,l]);return r.default.createElement(Ot.Provider,{value:c},r.default.createElement(Et.Provider,{value:l},t.children))}var kt=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=wt);var o=n.name+e.hash;t.hasNameForId(n.id,o)||t.insertRules(n.id,o,e(n.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,J(this,(function(){throw tt(12,String(n.name))}))}return t.prototype.getName=function(t){return void 0===t&&(t=wt),this.name+t.hash},t}(),_t=function(t){return t>="A"&&t<="Z"};function Tt(t){for(var e="",n=0;n<t.length;n++){var o=t[n];if(1===n&&"-"===o&&"-"===t[0])return t;_t(o)?e+="-"+o.toLowerCase():e+=o}return e.startsWith("ms-")?"-"+e:e}var Pt=function(t){return null==t||!1===t||""===t},Rt=function(t){var e,n,r=[];for(var i in t){var a=t[i];t.hasOwnProperty(i)&&!Pt(a)&&(Array.isArray(a)&&a.isCss||Y(a)?r.push("".concat(Tt(i),":"),a,";"):q(a)?r.push.apply(r,Object(o.e)(Object(o.e)(["".concat(i," {")],Rt(a),!1),["}"],!1)):r.push("".concat(Tt(i),": ").concat((e=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||e in l.a||e.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Bt(t,e,n,o){return Pt(t)?[]:X(t)?[".".concat(t.styledComponentId)]:Y(t)?!Y(r=t)||r.prototype&&r.prototype.isReactComponent||!e?[t]:Bt(t(e),e,n,o):t instanceof kt?n?(t.inject(n,o),[t.getName(o)]):[t]:q(t)?Rt(t):Array.isArray(t)?Array.prototype.concat.apply(g,t.map((function(t){return Bt(t,e,n,o)}))):[t.toString()];var r}function Wt(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Y(n)&&!X(n))return!1}return!0}var It=L(p),Mt=function(){function t(t,e,n){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Wt(t),this.componentId=e,this.baseHash=j(It,e),this.baseStyle=n,bt.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))o=K(o,this.staticRulesId);else{var r=Q(Bt(this.rules,t,e,n)),i=O(j(this.baseHash,r)>>>0);if(!e.hasNameForId(this.componentId,i)){var a=n(r,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}o=K(o,i),this.staticRulesId=i}else{for(var s=j(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=Q(Bt(u,t,e,n));s=j(s,d+c),l+=d}}if(l){var p=O(s>>>0);e.hasNameForId(this.componentId,p)||e.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),o=K(o,p)}}return o},t}(),Dt=r.default.createContext(void 0);Dt.Consumer;var Ft={};new Set;function zt(t,e,n){var i=X(t),a=t,s=!T(t),l=e.attrs,c=void 0===l?g:l,u=e.componentId,d=void 0===u?function(t,e){var n="string"!=typeof t?"sc":C(t);Ft[n]=(Ft[n]||0)+1;var o="".concat(n,"-").concat(k(p+n+Ft[n]));return e?"".concat(e,"-").concat(o):o}(e.displayName,e.parentComponentId):u,h=e.displayName,f=void 0===h?function(t){return T(t)?"styled.".concat(t):"Styled(".concat(_(t),")")}(t):h,m=e.displayName&&e.componentId?"".concat(C(e.displayName),"-").concat(e.componentId):e.componentId||d,A=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,S=e.shouldForwardProp;if(i&&a.shouldForwardProp){var x=a.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;S=function(t,e){return x(t,e)&&w(t,e)}}else S=x}var O=new Mt(n,m,i?a.componentStyle:void 0);function E(t,e){return function(t,e,n){var i=t.attrs,a=t.componentStyle,s=t.defaultProps,l=t.foldedComponentIds,c=t.styledComponentId,u=t.target,d=r.default.useContext(Dt),p=jt(),h=t.shouldForwardProp||p.shouldForwardProp,f=b(e,d,s)||v,m=function(t,e,n){for(var r,i=Object(o.a)(Object(o.a)({},e),{className:void 0,theme:n}),a=0;a<t.length;a+=1){var s=Y(r=t[a])?r(i):r;for(var l in s)i[l]="className"===l?K(i[l],s[l]):"style"===l?Object(o.a)(Object(o.a)({},i[l]),s[l]):s[l]}return e.className&&(i.className=K(i.className,e.className)),i}(i,e,f),g=m.as||u,A={};for(var S in m)void 0===m[S]||"$"===S[0]||"as"===S||"theme"===S&&m.theme===f||("forwardedAs"===S?A.as=m.forwardedAs:h&&!h(S,g)||(A[S]=m[S]));var C=function(t,e){var n=jt();return t.generateAndInjectStyles(e,n.styleSheet,n.stylis)}(a,m),x=K(l,c);return C&&(x+=" "+C),m.className&&(x+=" "+m.className),A[T(g)&&!y.has(g)?"class":"className"]=x,A.ref=n,Object(r.createElement)(g,A)}(j,t,e)}E.displayName=f;var j=r.default.forwardRef(E);return j.attrs=A,j.componentStyle=O,j.displayName=f,j.shouldForwardProp=S,j.foldedComponentIds=i?K(a.foldedComponentIds,a.styledComponentId):"",j.styledComponentId=m,j.target=i?a.target:t,Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var o=0,r=e;o<r.length;o++)Z(t,r[o],!0);return t}({},a.defaultProps,t):t}}),J(j,(function(){return".".concat(j.styledComponentId)})),s&&G(j,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),j}function Nt(t,e){for(var n=[t[0]],o=0,r=e.length;o<r;o+=1)n.push(e[o],t[o+1]);return n}var Vt=function(t){return Object.assign(t,{isCss:!0})};function $t(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Y(t)||q(t))return Vt(Bt(Nt(g,Object(o.e)([t],e,!0))));var r=t;return 0===e.length&&1===r.length&&"string"==typeof r[0]?Bt(r):Vt(Bt(Nt(r,e)))}function Ut(t,e,n){if(void 0===n&&(n=v),!e)throw tt(1,e);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return t(e,n,$t.apply(void 0,Object(o.e)([r],i,!1)))};return r.attrs=function(r){return Ut(t,e,Object(o.a)(Object(o.a)({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Ut(t,e,Object(o.a)(Object(o.a)({},n),r))},r}var Ht=function(t){return Ut(zt,t)},Gt=Ht;y.forEach((function(t){Gt[t]=Ht(t)}));!function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=Wt(t),bt.registerId(this.componentId+1)}t.prototype.createStyles=function(t,e,n,o){var r=o(Q(Bt(this.rules,e,n,o)),""),i=this.componentId+t;n.insertRules(i,i,r)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,n,o){t>2&&bt.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,o)}}();function Yt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Q($t.apply(void 0,Object(o.e)([t],e,!1))),i=k(r);return new kt(i,r)}(function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=dt(),o=Q([n&&'nonce="'.concat(n,'"'),"".concat(c,'="true"'),"".concat(d,'="').concat(p,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw tt(2);return t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)throw tt(2);var n=((e={})[c]="",e[d]=p,e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),i=dt();return i&&(n.nonce=i),[r.default.createElement("style",Object(o.a)({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new bt({isServer:!0}),this.sealed=!1}t.prototype.collectStyles=function(t){if(this.sealed)throw tt(2);return r.default.createElement(Lt,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw tt(3)}})(),"__sc-".concat(c,"__")}).call(this,n(64))},function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l}));n(1),n(83),n(26);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},r={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${o[t]}px)`};function i(t,e,n){const i=t.theme||{};if(Array.isArray(e)){const t=i.breakpoints||r;return e.reduce(((o,r,i)=>(o[t.up(t.keys[i])]=n(e[i]),o)),{})}if("object"==typeof e){const t=i.breakpoints||r;return Object.keys(e).reduce(((r,i)=>{if(-1!==Object.keys(t.values||o).indexOf(i)){r[t.up(i)]=n(e[i],i)}else{const t=i;r[t]=e[t]}return r}),{})}return n(e)}function a(t={}){var e;return(null==(e=t.keys)?void 0:e.reduce(((e,n)=>(e[t.up(n)]={},e)),{}))||{}}function s(t,e){return t.reduce(((t,e)=>{const n=t[e];return(!n||0===Object.keys(n).length)&&delete t[e],t}),e)}function l({values:t,breakpoints:e,base:n}){const o=n||function(t,e){if("object"!=typeof t)return{};const n={},o=Object.keys(e);return Array.isArray(t)?o.forEach(((e,o)=>{o<t.length&&(n[e]=!0)})):o.forEach((e=>{null!=t[e]&&(n[e]=!0)})),n}(t,e),r=Object.keys(o);if(0===r.length)return t;let i;return r.reduce(((e,n,o)=>(Array.isArray(t)?(e[n]=null!=t[o]?t[o]:t[i],i=o):"object"==typeof t?(e[n]=null!=t[n]?t[n]:t[i],i=n):e[n]=t,e)),{})}},,function(t,e,n){"use strict";var o=n(100);e.a=o.a},,function(t,e,n){"use strict";e.a="$$material"},function(t,e,n){"use strict";var o=n(102);e.a=o.a},function(t,e,n){"use strict";var o=n(83);e.a=function(t,e){return e?Object(o.a)(t,e,{clone:!1}):t}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=n(65)},function(t,e,n){"use strict";var o=n(84);e.a=o.a},function(t,e,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var i=typeof o;if("string"===i||"number"===i)t.push(o);else if(Array.isArray(o)){if(o.length){var a=r.apply(null,o);a&&t.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)n.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(o=function(){return r}.apply(e,[]))||(t.exports=o)}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return G})),n.d(e,"c",(function(){return tt})),n.d(e,"d",(function(){return nt})),n.d(e,"e",(function(){return et})),n.d(e,"f",(function(){return Z})),n.d(e,"g",(function(){return J}));var o="-ms-",r="-moz-",i="-webkit-",a="comm",s="rule",l="decl",c="@keyframes",u=Math.abs,d=String.fromCharCode,p=Object.assign;function h(t){return t.trim()}function f(t,e){return(t=e.exec(t))?t[0]:t}function m(t,e,n){return t.replace(e,n)}function g(t,e,n){return t.indexOf(e,n)}function v(t,e){return 0|t.charCodeAt(e)}function b(t,e,n){return t.slice(e,n)}function y(t){return t.length}function A(t){return t.length}function S(t,e){return e.push(t),t}function C(t,e){return t.map(e).join("")}function x(t,e){return t.filter((function(t){return!f(t,e)}))}var w=1,O=1,E=0,j=0,L=0,k="";function _(t,e,n,o,r,i,a,s){return{value:t,root:e,parent:n,type:o,props:r,children:i,line:w,column:O,length:a,return:"",siblings:s}}function T(t,e){return p(_("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function P(t){for(;t.root;)t=T(t.root,{children:[t]});S(t,t.siblings)}function R(){return L=j<E?v(k,j++):0,O++,10===L&&(O=1,w++),L}function B(){return v(k,j)}function W(){return j}function I(t,e){return b(k,t,e)}function M(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D(t){return w=O=1,E=y(k=t),j=0,[]}function F(t){return k="",t}function z(t){return h(I(j-1,$(91===t?t+2:40===t?t+1:t)))}function N(t){for(;(L=B())&&L<33;)R();return M(t)>2||M(L)>3?"":" "}function V(t,e){for(;--e&&R()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return I(t,W()+(e<6&&32==B()&&32==R()))}function $(t){for(;R();)switch(L){case t:return j;case 34:case 39:34!==t&&39!==t&&$(L);break;case 40:41===t&&$(t);break;case 92:R()}return j}function U(t,e){for(;R()&&t+L!==57&&(t+L!==84||47!==B()););return"/*"+I(e,j-1)+"*"+d(47===t?t:R())}function H(t){for(;!M(B());)R();return I(t,j)}function G(t){return F(Y("",null,null,null,[""],t=D(t),0,[0],t))}function Y(t,e,n,o,r,i,a,s,l){for(var c=0,p=0,h=a,f=0,b=0,A=0,C=1,x=1,E=1,_=0,T="",P=r,I=i,M=o,D=T;x;)switch(A=_,_=R()){case 40:if(108!=A&&58==v(D,h-1)){-1!=g(D+=m(z(_),"&","&\f"),"&\f",u(c?s[c-1]:0))&&(E=-1);break}case 34:case 39:case 91:D+=z(_);break;case 9:case 10:case 13:case 32:D+=N(A);break;case 92:D+=V(W()-1,7);continue;case 47:switch(B()){case 42:case 47:S(K(U(R(),W()),e,n,l),l);break;default:D+="/"}break;case 123*C:s[c++]=y(D)*E;case 125*C:case 59:case 0:switch(_){case 0:case 125:x=0;case 59+p:-1==E&&(D=m(D,/\f/g,"")),b>0&&y(D)-h&&S(b>32?Q(D+";",o,n,h-1,l):Q(m(D," ","")+";",o,n,h-2,l),l);break;case 59:D+=";";default:if(S(M=X(D,e,n,c,p,r,s,T,P=[],I=[],h,i),i),123===_)if(0===p)Y(D,e,M,M,P,i,h,s,I);else switch(99===f&&110===v(D,3)?100:f){case 100:case 108:case 109:case 115:Y(t,M,M,o&&S(X(t,M,M,0,0,r,s,T,r,P=[],h,I),I),r,I,h,s,o?P:I);break;default:Y(D,M,M,M,[""],I,0,s,I)}}c=p=b=0,C=E=1,T=D="",h=a;break;case 58:h=1+y(D),b=A;default:if(C<1)if(123==_)--C;else if(125==_&&0==C++&&125==(L=j>0?v(k,--j):0,O--,10===L&&(O=1,w--),L))continue;switch(D+=d(_),_*C){case 38:E=p>0?1:(D+="\f",-1);break;case 44:s[c++]=(y(D)-1)*E,E=1;break;case 64:45===B()&&(D+=z(R())),f=B(),p=h=y(T=D+=H(W())),_++;break;case 45:45===A&&2==y(D)&&(C=0)}}return i}function X(t,e,n,o,r,i,a,l,c,d,p,f){for(var g=r-1,v=0===r?i:[""],y=A(v),S=0,C=0,x=0;S<o;++S)for(var w=0,O=b(t,g+1,g=u(C=a[S])),E=t;w<y;++w)(E=h(C>0?v[w]+" "+O:m(O,/&\f/g,v[w])))&&(c[x++]=E);return _(t,e,n,0===r?s:l,c,d,p,f)}function K(t,e,n,o){return _(t,e,n,a,d(L),b(t,2,-2),0,o)}function Q(t,e,n,o,r){return _(t,e,n,l,b(t,0,o),b(t,o+1,-1),o,r)}function q(t,e,n){switch(function(t,e){return 45^v(t,0)?(((e<<2^v(t,0))<<2^v(t,1))<<2^v(t,2))<<2^v(t,3):0}(t,e)){case 5103:return i+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i+t+t;case 4789:return r+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i+t+r+t+o+t+t;case 5936:switch(v(t,e+11)){case 114:return i+t+o+m(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i+t+o+m(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i+t+o+m(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return i+t+o+t+t;case 6165:return i+t+o+"flex-"+t+t;case 5187:return i+t+m(t,/(\w+).+(:[^]+)/,i+"box-$1$2"+o+"flex-$1$2")+t;case 5443:return i+t+o+"flex-item-"+m(t,/flex-|-self/g,"")+(f(t,/flex-|baseline/)?"":o+"grid-row-"+m(t,/flex-|-self/g,""))+t;case 4675:return i+t+o+"flex-line-pack"+m(t,/align-content|flex-|-self/g,"")+t;case 5548:return i+t+o+m(t,"shrink","negative")+t;case 5292:return i+t+o+m(t,"basis","preferred-size")+t;case 6060:return i+"box-"+m(t,"-grow","")+i+t+o+m(t,"grow","positive")+t;case 4554:return i+m(t,/([^-])(transform)/g,"$1"+i+"$2")+t;case 6187:return m(m(m(t,/(zoom-|grab)/,i+"$1"),/(image-set)/,i+"$1"),t,"")+t;case 5495:case 3959:return m(t,/(image-set\([^]*)/,i+"$1$`$1");case 4968:return m(m(t,/(.+:)(flex-)?(.*)/,i+"box-pack:$3"+o+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i+t+t;case 4200:if(!f(t,/flex-|baseline/))return o+"grid-column-align"+b(t,e)+t;break;case 2592:case 3360:return o+m(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,f(t.props,/grid-\w+-end/)}))?~g(t+(n=n[e].value),"span",0)?t:o+m(t,"-start","")+t+o+"grid-row-span:"+(~g(n,"span",0)?f(n,/\d+/):+f(n,/\d+/)-+f(t,/\d+/))+";":o+m(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return f(t.props,/grid-\w+-start/)}))?t:o+m(m(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return m(t,/(.+)-inline(.+)/,i+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(y(t)-1-e>6)switch(v(t,e+1)){case 109:if(45!==v(t,e+4))break;case 102:return m(t,/(.+:)(.+)-([^]+)/,"$1"+i+"$2-$3$1"+r+(108==v(t,e+3)?"$3":"$2-$3"))+t;case 115:return~g(t,"stretch",0)?q(m(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return m(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,i,a,s,l){return o+n+":"+r+l+(i?o+n+"-span:"+(a?s:+s-+r)+l:"")+t}));case 4949:if(121===v(t,e+6))return m(t,":",":"+i)+t;break;case 6444:switch(v(t,45===v(t,14)?18:11)){case 120:return m(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+i+(45===v(t,14)?"inline-":"")+"box$3$1"+i+"$2$3$1"+o+"$2box$3")+t;case 100:return m(t,":",":"+o)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return m(t,"scroll-","scroll-snap-")+t}return t}function Z(t,e){for(var n="",o=0;o<t.length;o++)n+=e(t[o],o,t,e)||"";return n}function J(t,e,n,o){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case l:return t.return=t.return||t.value;case a:return"";case c:return t.return=t.value+"{"+Z(t.children,o)+"}";case s:if(!y(t.value=t.props.join(",")))return""}return y(n=Z(t.children,o))?t.return=t.value+"{"+n+"}":""}function tt(t){var e=A(t);return function(n,o,r,i){for(var a="",s=0;s<e;s++)a+=t[s](n,o,r,i)||"";return a}}function et(t){return function(e){e.root||(e=e.return)&&t(e)}}function nt(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case l:return void(t.return=q(t.value,t.length,n));case c:return Z([T(t,{value:m(t.value,"@","@"+i)})],r);case s:if(t.length)return C(n=t.props,(function(e){switch(f(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":P(T(t,{props:[m(e,/:(read-\w+)/,":-moz-$1")]})),P(T(t,{props:[e]})),p(t,{props:x(n,r)});break;case"::placeholder":P(T(t,{props:[m(e,/:(plac\w+)/,":"+i+"input-$1")]})),P(T(t,{props:[m(e,/:(plac\w+)/,":-moz-$1")]})),P(T(t,{props:[m(e,/:(plac\w+)/,o+"input-$1")]})),P(T(t,{props:[e]})),p(t,{props:x(n,r)})}return""}))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var o=n(19);function r(t,e){let n;return n=e?Object(o.c)(t).withConfig({displayName:e.label,shouldForwardProp:e.shouldForwardProp}):Object(o.c)(t),n}const i=(t,e)=>{t.componentStyle&&(t.componentStyle.rules=e(t.componentStyle.rules))}},function(t,e,n){"use strict";var o=n(85);e.a=o.a},function(t,e,n){"use strict";var o=n(103);e.a=o.a},,function(t,e,n){"use strict";var o=n(80);const r=Object(o.a)();e.a=r},function(t,e,n){"use strict";var o=n(9),r=n(13),i=n(26);var a=function(...t){const e=t.reduce(((t,e)=>(e.filterProps.forEach((n=>{t[n]=e})),t)),{}),n=t=>Object.keys(t).reduce(((n,o)=>e[o]?Object(i.a)(n,e[o](t)):n),{});return n.propTypes={},n.filterProps=t.reduce(((t,e)=>t.concat(e.filterProps)),[]),n},s=n(20);function l(t){return"number"!=typeof t?t:`${t}px solid`}function c(t,e){return Object(r.a)({prop:t,themeKey:"borders",transform:e})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),b=c("borderBottomColor"),y=c("borderLeftColor"),A=c("outline",l),S=c("outlineColor"),C=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const e=Object(o.b)(t.theme,"shape.borderRadius",4,"borderRadius"),n=t=>({borderRadius:Object(o.c)(e,t)});return Object(s.b)(t,t.borderRadius,n)}return null};C.propTypes={},C.filterProps=["borderRadius"];a(u,d,p,h,f,m,g,v,b,y,C,A,S);const x=t=>{if(void 0!==t.gap&&null!==t.gap){const e=Object(o.b)(t.theme,"spacing",8,"gap"),n=t=>({gap:Object(o.c)(e,t)});return Object(s.b)(t,t.gap,n)}return null};x.propTypes={},x.filterProps=["gap"];const w=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const e=Object(o.b)(t.theme,"spacing",8,"columnGap"),n=t=>({columnGap:Object(o.c)(e,t)});return Object(s.b)(t,t.columnGap,n)}return null};w.propTypes={},w.filterProps=["columnGap"];const O=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const e=Object(o.b)(t.theme,"spacing",8,"rowGap"),n=t=>({rowGap:Object(o.c)(e,t)});return Object(s.b)(t,t.rowGap,n)}return null};O.propTypes={},O.filterProps=["rowGap"];a(x,w,O,Object(r.a)({prop:"gridColumn"}),Object(r.a)({prop:"gridRow"}),Object(r.a)({prop:"gridAutoFlow"}),Object(r.a)({prop:"gridAutoColumns"}),Object(r.a)({prop:"gridAutoRows"}),Object(r.a)({prop:"gridTemplateColumns"}),Object(r.a)({prop:"gridTemplateRows"}),Object(r.a)({prop:"gridTemplateAreas"}),Object(r.a)({prop:"gridArea"}));function E(t,e){return"grey"===e?e:t}a(Object(r.a)({prop:"color",themeKey:"palette",transform:E}),Object(r.a)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),Object(r.a)({prop:"backgroundColor",themeKey:"palette",transform:E}));function j(t){return t<=1&&0!==t?100*t+"%":t}const L=Object(r.a)({prop:"width",transform:j}),k=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const e=e=>{var n,o;const r=(null==(n=t.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[e])||s.e[e];return r?"px"!==(null==(o=t.theme)||null==(o=o.breakpoints)?void 0:o.unit)?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:j(e)}};return Object(s.b)(t,t.maxWidth,e)}return null};k.filterProps=["maxWidth"];const _=Object(r.a)({prop:"minWidth",transform:j}),T=Object(r.a)({prop:"height",transform:j}),P=Object(r.a)({prop:"maxHeight",transform:j}),R=Object(r.a)({prop:"minHeight",transform:j});Object(r.a)({prop:"size",cssProperty:"width",transform:j}),Object(r.a)({prop:"size",cssProperty:"height",transform:j});a(L,k,_,T,P,R,Object(r.a)({prop:"boxSizing"}));const B={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:o.e},pt:{style:o.e},pr:{style:o.e},pb:{style:o.e},pl:{style:o.e},px:{style:o.e},py:{style:o.e},padding:{style:o.e},paddingTop:{style:o.e},paddingRight:{style:o.e},paddingBottom:{style:o.e},paddingLeft:{style:o.e},paddingX:{style:o.e},paddingY:{style:o.e},paddingInline:{style:o.e},paddingInlineStart:{style:o.e},paddingInlineEnd:{style:o.e},paddingBlock:{style:o.e},paddingBlockStart:{style:o.e},paddingBlockEnd:{style:o.e},m:{style:o.d},mt:{style:o.d},mr:{style:o.d},mb:{style:o.d},ml:{style:o.d},mx:{style:o.d},my:{style:o.d},margin:{style:o.d},marginTop:{style:o.d},marginRight:{style:o.d},marginBottom:{style:o.d},marginLeft:{style:o.d},marginX:{style:o.d},marginY:{style:o.d},marginInline:{style:o.d},marginInlineStart:{style:o.d},marginInlineEnd:{style:o.d},marginBlock:{style:o.d},marginBlockStart:{style:o.d},marginBlockEnd:{style:o.d},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:O},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:j},maxWidth:{style:k},minWidth:{transform:j},height:{transform:j},maxHeight:{transform:j},minHeight:{transform:j},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};e.a=B},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var o=n(1),r=n(0),i=n(4),a=n(6),s=n(131),l=n(5),c=n(11),u=n(7),d=n(130),p=n(96);function h(t){return Object(p.a)("MuiSvgIcon",t)}Object(d.a)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(3);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=Object(u.a)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${Object(l.a)(n.color)}`],e[`fontSize${Object(l.a)(n.fontSize)}`]]}})((({theme:t,ownerState:e})=>{var n,o,r,i,a,s,l,c,u,d,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(r=t.transitions)||null==(r=r.duration)?void 0:r.shorter}),fontSize:{inherit:"inherit",small:(null==(i=t.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=t.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(d=null==(p=(t.vars||t).palette)||null==(p=p[e.color])?void 0:p.main)?d:{action:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[e.color]}})),v=r.forwardRef((function(t,e){const n=Object(c.a)({props:t,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:v="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:A=!1,titleAccess:S,viewBox:C="0 0 24 24"}=n,x=Object(i.a)(n,m),w=r.isValidElement(u)&&"svg"===u.type,O=Object(o.a)({},n,{color:p,component:v,fontSize:b,instanceFontSize:t.fontSize,inheritViewBox:A,viewBox:C,hasSvgAsChild:w}),E={};A||(E.viewBox=C);const j=(t=>{const{color:e,fontSize:n,classes:o}=t,r={root:["root","inherit"!==e&&`color${Object(l.a)(e)}`,`fontSize${Object(l.a)(n)}`]};return Object(s.a)(r,h,o)})(O);return Object(f.jsxs)(g,Object(o.a)({as:v,className:Object(a.a)(j.root,d),focusable:"false",color:y,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:e},E,x,w&&u.props,{ownerState:O,children:[w?u.props.children:u,S?Object(f.jsx)("title",{children:S}):null]}))}));v.muiName="SvgIcon";var b=v;function y(t,e){function n(n,r){return Object(f.jsx)(b,Object(o.a)({"data-testid":`${e}Icon`,ref:r},n,{children:t}))}return n.muiName=b.muiName,r.memo(r.forwardRef(n))}},function(t,e,n){"use strict";var o=n(0),r=n(81);let i=!0,a=!1;const s=new r.a,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(t){t.metaKey||t.altKey||t.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function p(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(t){}return i||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!l[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}e.a=function(){const t=o.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",c,!0),e.addEventListener("mousedown",u,!0),e.addEventListener("pointerdown",u,!0),e.addEventListener("touchstart",u,!0),e.addEventListener("visibilitychange",d,!0))}),[]),e=o.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!p(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(a=!0,s.start(100,(()=>{a=!1})),e.current=!1,!0)},ref:t}}},function(t,e,n){"use strict";e.a=function(t,e=166){let n;function o(...o){clearTimeout(n),n=setTimeout((()=>{t.apply(this,o)}),e)}return o.clear=()=>{clearTimeout(n)},o}},function(t,e,n){"use strict";var o=n(0);e.a=function(t,e){var n,r;return o.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}},function(t,e,n){"use strict";var o=n(104),r=n(43);const i=Object(o.a)();e.a=function(t=i){return Object(r.a)(t)}},function(t,e,n){"use strict";var o=n(0),r=n(19);e.a=function(t=null){const e=o.useContext(r.a);return e&&(n=e,0!==Object.keys(n).length)?e:t;var n}},function(t,e,n){"use strict";var o,r=function(){return"undefined"==typeof o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if("undefined"==typeof t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},o=[],r=0;r<t.length;r++){var i=t[r],l=e.base?i[0]+e.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:u,updater:g(p,e),references:1}),o.push(u)}return o}function c(t){var e=document.createElement("style"),o=t.attributes||{};if("undefined"==typeof o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function h(t,e,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var f=null,m=0;function g(t,e){var n,o,r;if(e.singleton){var i=m++;n=f||(f=c(e)),o=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=c(e),o=h.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var r=s(n[o]);a[r].references--}for(var i=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);o&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},,,,,,,function(t,e,n){"use strict";n(1);e.a=function(t,e){return()=>null}},function(t,e,n){"use strict";(function(t){function n(){if("undefined"!=typeof t&&"undefined"!=typeof t.versions&&"undefined"!=typeof t.versions.node)return!1;if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent))return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(t){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.gatherTransferables=function(t,e){const n=[];return function t(o){if(!o)return;if(o.constructor===ImageData){const t={data:o.data.slice(),width:o.width,height:o.height};return n.push(t.data.buffer),t}if(o.constructor===ArrayBuffer){const t=e?o.slice(0):o;if(n.push(t),e)return o}else if(ArrayBuffer.isView(o)){let t;if(e){t=new(0,o.constructor)(o.buffer.slice(0))}else t=o;if(n.push(t.buffer),e)return o}else if(Array.isArray(o))for(let e=0;e<o.length;++e){const n=t(o[e]);n&&(o[e]=n)}else if(o.constructor===Object)for(const e in o)if(o.hasOwnProperty(e)){const n=t(o[e]);n&&(o[e]=n)}}(t),n},e.isRemote=function(t){return t.startsWith("http:")||t.startsWith("https:")},e.areThreadsAvailable=n,e.getBuildType=function(t){const{allowSimd:e=!0,allowThreads:o=!0}=t||{};let r="";if(e&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))}catch(t){return!1}}()){r+="-simd";o&&n()&&(r+="-threads")}return r}}).call(this,n(64))},function(t,e,n){"use strict";var o=n(45),r=n.n(o)()((function(t){return t[1]}));r.push([t.i,"\n.scanbot-shutter-fade-in {\n opacity: 1;\n}\n\n.scanbot-shutter-fade-out {\n opacity: 0;\n}\n\n.scanbot-shutter-rotate {\n animation: scanbot-shutter-rotating linear infinite;\n}\n\n.scanbot-shutter-pulse-fast {\n animation: scanbot-shutter-pulsing 1s ease-in-out infinite;\n}\n\n.scanbot-shutter-button {\n position: relative;\n width: 64px;\n height: 64px;\n left: 50%;\n bottom: 12px;\n transform: translate(-50%, -100%);\n}\n\n.scanbot-shutter-button-part {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.5s ease-in-out;\n}\n\n@keyframes scanbot-shutter-rotating {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes scanbot-shutter-pulsing {\n 0% {\n opacity: 0.25;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.25;\n }\n}\n",""]),e.a=r},function(t,e,n){"use strict";var o=n(45),r=n.n(o)()((function(t){return t[1]}));r.push([t.i,".scanbot-document-hint-text {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n background-color: rgba(0, 0, 0, 0.4);\n color: white;\n border-radius: 0.25em;\n padding: 0.05em 0.3em 0.05em 0.3em;\n font-family: sans-serif;\n font-size: 0.9em;\n font-weight: 300;\n}\n",""]),e.a=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(95);function r(t){if("string"!=typeof t)throw new Error(Object(o.a)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},,,,,,,function(t,e){var n,o,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var t=s(p);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";n.r(e),n.d(e,"capitalize",(function(){return r.a})),n.d(e,"createChainedFunction",(function(){return i})),n.d(e,"createSvgIcon",(function(){return a.a})),n.d(e,"debounce",(function(){return s.a})),n.d(e,"deprecatedPropType",(function(){return l})),n.d(e,"isMuiElement",(function(){return c.a})),n.d(e,"ownerDocument",(function(){return u.a})),n.d(e,"ownerWindow",(function(){return d.a})),n.d(e,"requirePropFactory",(function(){return p.a})),n.d(e,"setRef",(function(){return h})),n.d(e,"unstable_useEnhancedEffect",(function(){return f.a})),n.d(e,"unstable_useId",(function(){return m})),n.d(e,"unsupportedProp",(function(){return g})),n.d(e,"useControlled",(function(){return b})),n.d(e,"useEventCallback",(function(){return y.a})),n.d(e,"useForkRef",(function(){return A.a})),n.d(e,"useIsFocusVisible",(function(){return S.a})),n.d(e,"unstable_ClassNameGenerator",(function(){return C}));var o=n(97),r=n(5),i=n(132).a,a=n(38),s=n(40);var l=function(t,e){return()=>null},c=n(41),u=n(33),d=n(34),p=n(53),h=n(101).a,f=n(29),m=n(133).a;var g=function(t,e,n,o,r){return null},v=n(0);var b=function({controlled:t,default:e,name:n,state:o="value"}){const{current:r}=v.useRef(void 0!==t),[i,a]=v.useState(e);return[r?t:i,v.useCallback((t=>{r||a(t)}),[])]},y=n(25),A=n(22),S=n(39);const C={configure:t=>{o.a.configure(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBridge=void 0;var o=n(54);e.WorkerBridge=class{constructor(t,e){const{requestSuffix:n=""}=e||{},r=(0,o.getBuildType)(e),i=`${t}${t.endsWith("/")?"":"/"}ScanbotSDK.Core${r}.js${n}`;if((0,o.isRemote)(i)){const t=new Blob([`importScripts("${i}")`]);this.instance=new Worker(URL.createObjectURL(t))}else this.instance=new Worker(i);this.continuations={},this.nextTicketId=1,this.instance.onmessage=t=>{const{log:e,logError:n}=t.data;if(e)return void console.log(...e);if(n)return void console.error(...n);const{ticket:o,result:r,error:i}=t.data,{resolve:a,reject:s}=this.continuations[o];delete this.continuations[o],i?s(i):a(r)}}post(t,e,n){return new Promise(((r,i)=>{const a=(0,o.gatherTransferables)(e,n),s=this.nextTicketId++;this.continuations[s]={resolve:r,reject:i},this.instance.postMessage({command:t,args:e,ticket:s},a)}))}postByCopyingArgs(t,e){return this.post(t,e,!0)}postByTransferringArgs(t,e){return this.post(t,e,!1)}destroy(){this.instance.terminate()}}},function(t,e,n){const{render:o,hydrate:r,unmountComponentAtNode:i}=n(0);function a(t){return{render(e){o(e,t)},unmount(){i(t)}}}e.createRoot=a,e.hydrateRoot=function(t,e){return r(e,t),a(t)}},function(t,e,n){"use strict";e.a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},function(t,e,n){"use strict";var o=n(57),r=n(26),i=n(13),a=n(20),s=n(37);const l=function(){function t(t,e,n,r){const s={[t]:e,theme:n},l=r[t];if(!l)return{[t]:e};const{cssProperty:c=t,themeKey:u,transform:d,style:p}=l;if(null==e)return null;if("typography"===u&&"inherit"===e)return{[t]:e};const h=Object(i.b)(n,u)||{};if(p)return p(s);return Object(a.b)(s,e,(e=>{let n=Object(i.c)(h,d,e);return e===n&&"string"==typeof e&&(n=Object(i.c)(h,d,`${t}${"default"===e?"":Object(o.a)(e)}`,e)),!1===c?n:{[c]:n}}))}return function e(n){var o;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(o=l.unstable_sxConfig)?o:s.a;function u(n){let o=n;if("function"==typeof n)o=n(l);else if("object"!=typeof n)return n;if(!o)return null;const i=Object(a.a)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(o).forEach((n=>{const i=(s=o[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=i)if("object"==typeof i)if(c[n])u=Object(r.a)(u,t(n,i,l,c));else{const t=Object(a.b)({theme:l},i,(t=>({[n]:t})));!function(...t){const e=t.reduce(((t,e)=>t.concat(Object.keys(e))),[]),n=new Set(e);return t.every((t=>n.size===Object.keys(t).length))}(t,i)?u=Object(r.a)(u,t):u[n]=e({sx:i,theme:l})}else u=Object(r.a)(u,t(n,i,l,c))})),Object(a.c)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}();l.filterProps=["sx"],e.a=l},function(t,e){t.exports=function(t,e,n,o){var r=n?n.call(o,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=t[c],d=e[c];if(!1===(r=n?n.call(o,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},function(t,e,n){"use strict";e.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(99);function r(t){const{theme:e,name:n,props:r}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?Object(o.a)(e.components[n].defaultProps,r):r}},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M8.9 6.07 7.48 4.66 9 3h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 .05-.01.1-.02.16L20 17.17V7h-4.05l-1.83-2H9.88zm11.59 17.24L18.17 21H4c-1.1 0-2-.9-2-2V7c0-.59.27-1.12.68-1.49l-2-2L2.1 2.1l19.8 19.8zM9.19 12.02c-.11.31-.19.63-.19.98 0 1.66 1.34 3 3 3 .35 0 .67-.08.98-.19zM16.17 19l-1.68-1.68c-.73.43-1.58.68-2.49.68-2.76 0-5-2.24-5-5 0-.91.25-1.76.68-2.49L4.17 7H4v12zm-1.36-7.02 2.07 2.07c.08-.34.12-.69.12-1.05 0-2.76-2.24-5-5-5-.36 0-.71.04-1.06.12l2.07 2.07c.84.3 1.5.96 1.8 1.79"}),"NoPhotographyOutlined")},function(t,e,n){"use strict";var o=n(1),r=n(4),i=n(95),a=n(83),s=n(104),l=n(37),c=n(69);var u=n(134);var d={black:"#000",white:"#fff"},p=n(68);var h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const y=["mode","contrastThreshold","tonalOffset"],A={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(t,e,n,o){const r=o.light||o,i=o.dark||1.5*o;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=Object(u.d)(t.main,r):"dark"===e&&(t.dark=Object(u.b)(t.main,i)))}function x(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:s=.2}=t,l=Object(r.a)(t,y),c=t.primary||function(t="light"){return"dark"===t?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(e),x=t.secondary||function(t="light"){return"dark"===t?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(e),w=t.error||function(t="light"){return"dark"===t?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(e),O=t.info||function(t="light"){return"dark"===t?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(e),E=t.success||function(t="light"){return"dark"===t?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(e),j=t.warning||function(t="light"){return"dark"===t?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(e);function L(t){return Object(u.c)(t,S.text.primary)>=n?S.text.primary:A.text.primary}const k=({color:t,name:e,mainShade:n=500,lightShade:r=300,darkShade:a=700})=>{if(!(t=Object(o.a)({},t)).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw new Error(Object(i.a)(11,e?` (${e})`:"",n));if("string"!=typeof t.main)throw new Error(Object(i.a)(12,e?` (${e})`:"",JSON.stringify(t.main)));return C(t,"light",r,s),C(t,"dark",a,s),t.contrastText||(t.contrastText=L(t.main)),t},_={dark:S,light:A};return Object(a.a)(Object(o.a)({common:Object(o.a)({},d),mode:e,primary:k({color:c,name:"primary"}),secondary:k({color:x,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:k({color:w,name:"error"}),warning:k({color:j,name:"warning"}),info:k({color:O,name:"info"}),success:k({color:E,name:"success"}),grey:p.a,contrastThreshold:n,getContrastText:L,augmentColor:k,tonalOffset:s},_[e]),l)}const w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const O={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function j(t,e){const n="function"==typeof e?e(t):e,{fontFamily:i=E,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=n,m=Object(r.a)(n,w);const g=s/14,v=f||(t=>t/p*g+"rem"),b=(t,e,n,r,a)=>{return Object(o.a)({fontFamily:i,fontWeight:t,fontSize:v(e),lineHeight:n},i===E?{letterSpacing:(s=r/e,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(u,14,1.75,.4,O),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,O),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Object(a.a)(Object(o.a)({htmlFontSize:p,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},y),m,{clone:!1})}function L(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}var k=["none",L(0,2,1,-1,0,1,1,0,0,1,3,0),L(0,3,1,-2,0,2,2,0,0,1,5,0),L(0,3,3,-2,0,3,4,0,0,1,8,0),L(0,2,4,-1,0,4,5,0,0,1,10,0),L(0,3,5,-1,0,5,8,0,0,1,14,0),L(0,3,5,-1,0,6,10,0,0,1,18,0),L(0,4,5,-2,0,7,10,1,0,2,16,1),L(0,5,5,-3,0,8,10,1,0,3,14,2),L(0,5,6,-3,0,9,12,1,0,3,16,2),L(0,6,6,-3,0,10,14,1,0,4,18,3),L(0,6,7,-4,0,11,15,1,0,4,20,3),L(0,7,8,-4,0,12,17,2,0,5,22,4),L(0,7,8,-4,0,13,19,2,0,5,24,4),L(0,7,9,-4,0,14,21,2,0,5,26,4),L(0,8,9,-5,0,15,22,2,0,6,28,5),L(0,8,10,-5,0,16,24,2,0,6,30,5),L(0,8,11,-5,0,17,26,2,0,6,32,5),L(0,9,11,-5,0,18,28,2,0,7,34,6),L(0,9,12,-6,0,19,29,2,0,7,36,6),L(0,10,13,-6,0,20,31,3,0,8,38,7),L(0,10,13,-6,0,21,33,3,0,8,40,7),L(0,10,14,-6,0,22,35,3,0,8,42,7),L(0,11,14,-7,0,23,36,3,0,9,44,8),L(0,11,15,-7,0,24,38,3,0,9,46,8)];const _=["duration","easing","delay"],T={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R(t){return`${Math.round(t)}ms`}function B(t){if(!t)return 0;const e=t/36;return Math.round(10*(4+15*e**.25+e/5))}function W(t){const e=Object(o.a)({},T,t.easing),n=Object(o.a)({},P,t.duration);return Object(o.a)({getAutoHeightDuration:B,create:(t=["all"],o={})=>{const{duration:i=n.standard,easing:a=e.easeInOut,delay:s=0}=o;Object(r.a)(o,_);return(Array.isArray(t)?t:[t]).map((t=>`${t} ${"string"==typeof i?i:R(i)} ${a} ${"string"==typeof s?s:R(s)}`)).join(",")}},t,{easing:e,duration:n})}var I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(t={},...e){const{mixins:n={},palette:u={},transitions:d={},typography:p={}}=t,h=Object(r.a)(t,M);if(t.vars)throw new Error(Object(i.a)(18));const f=x(u),m=Object(s.a)(t);let g=Object(a.a)(m,{mixins:(v=m.breakpoints,b=n,Object(o.a)({toolbar:{minHeight:56,[v.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[v.up("sm")]:{minHeight:64}}},b)),palette:f,shadows:k.slice(),typography:j(f,p),transitions:W(d),zIndex:Object(o.a)({},I)});var v,b;return g=Object(a.a)(g,h),g=e.reduce(((t,e)=>Object(a.a)(t,e)),g),g.unstable_sxConfig=Object(o.a)({},l.a,null==h?void 0:h.unstable_sxConfig),g.unstable_sx=function(t){return Object(c.a)({sx:t,theme:this})},g}e.a=D},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var o=n(0);const r={};const i=[];class a{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new a}start(t,e){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,e()}),t)}}function s(){const t=function(t,e){const n=o.useRef(r);return n.current===r&&(n.current=t(e)),n}(a.create).current;var e;return e=t.disposeEffect,o.useEffect(e,i),t}},function(t,e,n){"use strict";function o(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,"a",(function(){return i}));var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=o((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var o=n(1);function r(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function i(t){if(!r(t))return t;const e={};return Object.keys(t).forEach((n=>{e[n]=i(t[n])})),e}function a(t,e,n={clone:!0}){const s=n.clone?Object(o.a)({},t):t;return r(t)&&r(e)&&Object.keys(e).forEach((o=>{"__proto__"!==o&&(r(e[o])&&o in t&&r(t[o])?s[o]=a(t[o],e[o],n):n.clone?s[o]=r(e[o])?i(e[o]):e[o]:s[o]=e[o])})),s}},function(t,e,n){"use strict";var o=n(0);const r="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;e.a=r},function(t,e,n){"use strict";function o(t){return t&&t.ownerDocument||document}n.d(e,"a",(function(){return o}))},,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"jsx",(function(){return c})),n.d(e,"jsxAttr",(function(){return h})),n.d(e,"jsxDEV",(function(){return c})),n.d(e,"jsxEscape",(function(){return f})),n.d(e,"jsxTemplate",(function(){return u})),n.d(e,"jsxs",(function(){return c}));var o=n(8);n.d(e,"Fragment",(function(){return o.b}));var r=/["&<]/;function i(t){if(0===t.length||!1===r.test(t))return t;for(var e=0,n=0,o="",i="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:i=""";break;case 38:i="&";break;case 60:i="<";break;default:continue}n!==e&&(o+=t.slice(e,n)),o+=i,e=n+1}return n!==e&&(o+=t.slice(e,n)),o}var a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,s=0,l=Array.isArray;function c(t,e,n,r,i,a){var l,c,u={};for(c in e)"ref"==c?l=e[c]:u[c]=e[c];var d={type:t,props:u,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--s,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof t&&(l=t.defaultProps))for(c in l)void 0===u[c]&&(u[c]=l[c]);return o.h.vnode&&o.h.vnode(d),d}function u(t){var e=c(o.b,{tpl:t,exprs:[].slice.call(arguments,1)});return e.key=e.__v,e}var d={},p=/[A-Z]/g;function h(t,e){if(o.h.attr){var n=o.h.attr(t,e);if("string"==typeof n)return n}if("ref"===t||"key"===t)return"";if("style"===t&&"object"==typeof e){var r="";for(var s in e){var l=e[s];if(null!=l&&""!==l){var c="-"==s[0]?s:d[s]||(d[s]=s.replace(p,"-$&").toLowerCase()),u=";";"number"!=typeof l||c.startsWith("--")||a.test(c)||(u="px;"),r=r+c+":"+l+u}}return t+'="'+r+'"'}return null==e||!1===e||"function"==typeof e||"object"==typeof e?"":!0===e?t:t+'="'+i(e)+'"'}function f(t){if(null==t||"boolean"==typeof t||"function"==typeof t)return null;if("object"==typeof t){if(void 0===t.constructor)return t;if(l(t)){for(var e=0;e<t.length;e++)t[e]=f(t[e]);return t}}return i(""+t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ScanbotSDK",(function(){return Av}));var o={};n.r(o),n.d(o,"SingleScanningMode",(function(){return St})),n.d(o,"Resolution",(function(){return Ct})),n.d(o,"CameraConfiguration",(function(){return xt})),n.d(o,"TopBarConfiguration",(function(){return wt})),n.d(o,"ActionBarConfiguration",(function(){return Ot})),n.d(o,"BarcodeUseCase",(function(){return Y})),n.d(o,"Palette",(function(){return Z})),n.d(o,"StyledText",(function(){return J})),n.d(o,"IconStyle",(function(){return tt})),n.d(o,"PolygonStyle",(function(){return et})),n.d(o,"BackgroundStyle",(function(){return nt})),n.d(o,"ForegroundStyle",(function(){return ot})),n.d(o,"AspectRatio",(function(){return rt})),n.d(o,"RoundButton",(function(){return it})),n.d(o,"BadgedButton",(function(){return at})),n.d(o,"ButtonConfiguration",(function(){return st})),n.d(o,"Sound",(function(){return lt})),n.d(o,"Vibration",(function(){return ct})),n.d(o,"Timeouts",(function(){return ut})),n.d(o,"ViewFinderConfiguration",(function(){return Tt})),n.d(o,"FinderStyle",(function(){return X})),n.d(o,"FinderCorneredStyle",(function(){return Pt})),n.d(o,"FinderStrokedStyle",(function(){return Rt})),n.d(o,"UserGuidanceConfiguration",(function(){return Bt})),n.d(o,"BarcodeItemErrorState",(function(){return bt})),n.d(o,"BarcodeMappedData",(function(){return yt})),n.d(o,"BarcodeInfoMapping",(function(){return At})),n.d(o,"ExpectedBarcode",(function(){return Wt})),n.d(o,"BarcodeTextLocalization",(function(){return It})),n.d(o,"BarcodeRecognizerConfiguration",(function(){return Mt})),n.d(o,"ArOverlayPolygonConfiguration",(function(){return dt})),n.d(o,"BarcodeItemConfiguration",(function(){return pt})),n.d(o,"BadgeStyle",(function(){return ht})),n.d(o,"ArOverlayGeneralConfiguration",(function(){return ft})),n.d(o,"FindAndPickArOverlayPolygonConfiguration",(function(){return mt})),n.d(o,"FindAndPickBadgeConfiguration",(function(){return gt})),n.d(o,"ArOverlayFindAndPickConfiguration",(function(){return vt})),n.d(o,"BarcodeScannerConfiguration",(function(){return Ft})),n.d(o,"BarcodeItem",(function(){return zt})),n.d(o,"BarcodeScannerResult",(function(){return Nt})),n.d(o,"Sheet",(function(){return Et})),n.d(o,"SwipeToDelete",(function(){return jt})),n.d(o,"ManualCountEditDialog",(function(){return Lt})),n.d(o,"SheetContent",(function(){return kt})),n.d(o,"MultipleScanningMode",(function(){return _t})),n.d(o,"ScanbotAlertDialog",(function(){return Vt})),n.d(o,"CameraPermissionScreen",(function(){return Dt}));var r={};n.r(r),n.d(r,"ParametricFilter",(function(){return Xt})),n.d(r,"ScanbotBinarizationFilter",(function(){return Zt})),n.d(r,"CustomBinarizationFilter",(function(){return Jt})),n.d(r,"ColorDocumentFilter",(function(){return te})),n.d(r,"BrightnessFilter",(function(){return ee})),n.d(r,"ContrastFilter",(function(){return ne})),n.d(r,"GrayscaleFilter",(function(){return oe})),n.d(r,"LegacyFilter",(function(){return re})),n.d(r,"WhiteBlackPointFilter",(function(){return ie}));var i="5.1.3-dev.1";class a{}a.VERSION=i,a.CDN_PATH="https://cdn.jsdelivr.net/npm/scanbot-web-sdk@5.1.3-dev.1/bundle/",a.DEFAULT_WASM_FOLDER="bin/complete/",a.BUILD_WITH_UI=!0;var s=n(66),l=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class c{constructor(t,e,n){t||(t=a.CDN_PATH+a.DEFAULT_WASM_FOLDER),this.core=new s.WorkerBridge(t,e),this.coreInitializationSuccessful=this.core.postByCopyingArgs("initialize",n)}awaitInitialized(){return l(this,void 0,void 0,(function*(){yield this.getCoreForCommand()}))}postByCopyingArgs(t,e){return l(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand(t)).postByCopyingArgs(t,e)}))}postByTransferringArgs(t,e){return l(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand(t)).postByTransferringArgs(t,e)}))}getCoreForCommand(t=""){return l(this,void 0,void 0,(function*(){const e=yield this.coreInitializationSuccessful;if("getLicenseInfo"===t||e)return this.core;throw new Error("WASM not initialized successfully. This can be due to an invalid license or problems loading the WASM file. Please check the console for more information.")}))}}c.ASM_JS="ScanbotSDK.Core.js";var u=n(54);class d{constructor(){this.container=void 0,this.containerId=void 0}static mapValues(t,e,n){Object.keys(t).forEach((o=>{(null==n?void 0:n.includes(o))||(e[o]=t[o])}))}static mapValuesDeep(t,e){const n=t=>t&&"object"==typeof t&&!Array.isArray(t);Object.keys(t).forEach((o=>{o in e&&n(t[o])&&n(e[o])?d.mapValuesDeep(t[o],e[o]):e[o]=t[o]}))}static _fromJson(t,e){return this.mapValuesDeep(e,t),t}}class p extends d{constructor(t){super(),this.mirrored=!1,this.spinnerColor="black",this.backgroundColor="black",this.videoConstraints={width:{ideal:t.width},height:{ideal:t.height},facingMode:"environment",resizeMode:"none",experimental:{focusMode:"continous",focusDistance:0}}}static mapVideoConstraints(t,e){t.videoConstraints&&this.mapValues(t.videoConstraints,e.videoConstraints)}}p.DEFAULT_VIDEO_RESOLUTION_4K={width:3840,height:2160},p.DEFAULT_VIDEO_RESOLUTION_HD={width:1920,height:1080},p.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE=0,p.DEFAULT_ACCEPTED_ANGLE_SCORE=75,p.DEFAULT_ACCEPTED_SIZE_SCORE=75;const h={OK:"Capturing your document... Please do not move the camera.",OK_SmallSize:"The document is too small. Try moving closer.",OK_BadAngles:"This is a bad camera angle. Hold the device straight over the document.",OK_BadAspectRatio:"Rotate the device sideways, so that the document fits better into the screen.",OK_OffCenter:"Try holding the device at the center of the document.",Error_NothingDetected:"Please hold the device over a document to start scanning.",Error_Brightness:"It is too dark. Try turning on a light.",Error_Noise:"Please move the document to a clear surface."};class f{constructor(t){this.hint=t}}class m{constructor(){this.outline=new g,this.captureButton=new A}}class g{constructor(){this.polygon=new v,this.path=new b,this.label=new y}}class v{constructor(){this.strokeCapturing="green",this.strokeSearching="yellow",this.fillCapturing="transparent",this.fillSearching="transparent"}}class b{constructor(){this.stroke="green",this.strokeWidth=4}}class y{}class A{constructor(){this.color="#FFF"}}class S extends p{constructor(){super(p.DEFAULT_VIDEO_RESOLUTION_4K),this.acceptedBrightnessThreshold=S.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE,this.acceptedAngleScore=S.DEFAULT_ACCEPTED_ANGLE_SCORE,this.acceptedSizeScore=S.DEFAULT_ACCEPTED_SIZE_SCORE,this.autoCaptureEnabled=!0,this.autoCaptureSensitivity=.66,this.autoCaptureDelay=1e3,this.ignoreBadAspectRatio=!0,this.useImageCaptureAPI=!1,this.text=new f(h),this.style=new m,this.onDocumentDetected=function(t){}}static fromJson(t){const e=new S;if(this.mapValues(t,e,["text","style","videoConstraints"]),t.text&&t.text.hint&&this.mapValues(t.text.hint,e.text.hint),t.style){this.mapValues(t.style,e.style,["outline","captureButton"]);const n=t.style.outline;if(n){this.mapValues(n,e.style.outline,["polygon","path","label"]);const t=n.polygon;t&&this.mapValues(t,e.style.outline.polygon);const o=n.path;o&&this.mapValues(o,e.style.outline.path);const r=n.label;r&&this.mapValues(r,e.style.outline.label)}const o=t.style.captureButton;o&&this.mapValues(o,e.style.captureButton)}return this.mapVideoConstraints(t,e),e}}class C{isValid(){return"Okay"===this.status||"Trial"===this.status}static fromJson(t){const e=new C;return e.status=t.licenseStatus,e.description=t.description,e}}var x=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class w{constructor(t,e){this._sdk=t,this._pdfOperation=e}addPage(t){return x(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByCopyingArgs("addPageToPdf",[this._pdfOperation,t])}))}complete(){return x(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("completePdf",[this._pdfOperation])}))}}var O=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};const E=["ROTATION_NONE","ROTATION_90_CLOCKWISE","ROTATION_180","ROTATION_90_COUNTERCLOCKWISE"];class j{constructor(t,e){this._sdk=t,this._token=e}copy(){return O(this,void 0,void 0,(function*(){const t=yield this._sdk.bridge.postByCopyingArgs("imageProcessorCopy",[this._token]);return new j(this._sdk,t)}))}applyFilter(t){return O(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorApplyFilter",[this._token,t])}))}crop(t){return O(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorCrop",[this._token,t])}))}resize(t){return O(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorResize",[this._token,t])}))}rotate(t){return O(this,void 0,void 0,(function*(){if(!E.includes(t))return Promise.reject("Invalid rotation value! It should be one of "+E.join(", "));yield this._sdk.bridge.postByTransferringArgs("imageProcessorRotate",[this._token,t])}))}processedImage(){return O(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("imageProcessorEncodedProcessedImage",[this._token,".jpg"])}))}release(){return O(this,void 0,void 0,(function*(){yield this._sdk.release(this._token,"ImageProcessor"),this._token=null,this._sdk=null}))}get __token(){return this._token}}var L=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class k{constructor(t,e){this._sdk=t,this._tiffOperation=e}addPage(t){return L(this,void 0,void 0,(function*(){let e;e=t instanceof j?t.__token:t,yield this._sdk.bridge.postByCopyingArgs("addPageToTiff",[this._tiffOperation,e])}))}complete(){return L(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("completeTiff",[this._tiffOperation])}))}}class _{constructor(t,e,n,o){this.x=t,this.y=e,this.width=n,this.height=o}scaleDown(t){return new _(this.x/t,this.y/t,this.width/t,this.height/t)}bottom(){return this.y+this.height}static withSize(t,e){return new _(0,0,t,e)}static empty(){return new _(0,0,0,0)}static fromRect(t){return t?new _(t.x,t.y,t.width,t.height):_.empty()}static fromPoint(t,e){return new _(t.x-e/2,t.y-e/2,e,e)}static fromDOMRect(t){return new _(t.x,t.y,t.width,t.height)}}class T{static toPixelSize(t){return t+"px"}static containsString(t,e){return!!t&&-1!==t.indexOf(e)}static copy(t){return JSON.parse(JSON.stringify(t))}static getProperty(t,e){let n;return t&&t.hasOwnProperty(e)&&(n=t[e]),n}static uuid(){let t="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e.length;for(let o=0;o<5;o++)t+=e.charAt(Math.floor(Math.random()*n));return t}}var P=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class R{static toDataUrl(t){return new Promise(((e,n)=>{const o=new Blob([t],{type:"image/jpeg"}),r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(o)}))}static getObjectFitSize(t,e,n=!0){const o=e.width/e.height,r=t.width/t.height;let i=0,a=0;(n?o>r:o<r)?(i=t.width,a=i/o):(a=t.height,i=a*o);const s=(t.width-i)/2,l=(t.height-a)/2;return new _(s,l,i,a)}static loadFromUrl(t){return new Promise(((e,n)=>{const o=document.createElement("img");o.src=t,o.onload=()=>P(this,void 0,void 0,(function*(){const t=document.createElement("canvas");t.width=o.width,t.height=o.height;const n=t.getContext("2d");n.drawImage(o,0,0);const r=n.getImageData(0,0,o.width,o.height);e(r)})),o.onerror=n}))}static saveImageData(t){const e=this.createImageDataCanvas(t),n=" ("+t.width+"x"+t.height+")";e.toBlob((t=>this.saveBlob(t,T.uuid()+n+".png")))}static createImageDataCanvas(t){const e=document.createElement("canvas");return e.className="scanbot-sdk-canvas-element",e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t,0,0),e}static saveBlob(t,e){let n=document.createElement("a");n.setAttribute("download",e);let o=URL.createObjectURL(t);n.setAttribute("href",o),n.click()}static convertImageDataWrapperToImageData(t){if(t)return new ImageData(t.data,t.width,t.height)}static wrapperToBase64(t){return R.createImageDataCanvas(R.convertImageDataWrapperToImageData(t)).toDataURL("image/png")}static toBase64(t){return P(this,void 0,void 0,(function*(){const e=yield new Promise((e=>{const n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(new Blob([t]))}));return e.slice(e.indexOf(",")+1)}))}}class B{saveImageAsJpeg(t,e){if(!t||0===t.length)return void console.log("Data cannot be null or empty");e||(e=T.uuid()+".jpeg");let n=new Blob([t],{type:"image/jpeg"});R.saveBlob(n,e)}isCameraSupported(){return!!navigator.mediaDevices}flash(){let t=this.findFlashElement();t.style.display="block",this.animateFlashOpacity("0.5",(()=>{this.animateFlashOpacity("0.0",(()=>{t.style.opacity="1.0",t.style.display="none"}))}))}findFlashElement(){return this.getOrCreateElement("flash",{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"#fff",display:"none","z-index":"5000"})}animateFlashOpacity(t,e){const n=this.getElementByClassName("flash");setTimeout((()=>{n.style.opacity=t,e()}),150)}getOrCreateElement(t,e){let n=this.getElementByClassName(t);return n||(this.createElement(t,e),n=this.getElementByClassName(t)),n}createElement(t,e){let n=document.createElement("div");n.className=t,n.style.cssText=this.cssToString(e),document.body.append(n)}cssToString(t){let e="";return Object.keys(t).forEach((n=>{e+=n+":"+t[n]+";"})),e}getElementByClassName(t){const e=document.getElementsByClassName(t);if(0!==e.length)return e[0]}}function W(t,e,n){return Math.min(Math.max(t,e),n)}class I{constructor(t,e){this.x=t,this.y=e}static toPolygon(t,e){return[I.scaleDownTo(t[0],e),I.scaleDownTo(t[1],e),I.scaleDownTo(t[2],e),I.scaleDownTo(t[3],e)]}static scaleToPoint(t,e,n,o){return new I(o*(t.x-e),o*(t.y-n))}static scaleListToHtmlElement(t,e,n){return t.map((t=>I.scaleToHtmlElement(t,e,n)))}static scaleToHtmlElement(t,e,n){return new I(t.x*(n.clientWidth/e.width),t.y*(n.clientHeight/e.height))}static scaleUpTo(t,e){return new I(t.x*e.width,t.y*e.height)}static scaleDownTo(t,e){return new I(t.x/e.width,t.y/e.height)}static fromHtmlElement(t){return new I(t.offsetLeft,t.offsetTop)}static withScale(t,e,n){return new I(t/n,e/n)}static fromCoordinates(t,e,n,o){if(!t||!e)return new I(0,0);const r=new I(t,e);return o=null!=o?o:1,1===(n=n?n%4:0)?I.withScale(r.y,-r.x,o):2===n?I.withScale(-r.x,-r.y,o):3===n?I.withScale(-r.y,r.x,o):I.withScale(r.x,r.y,o)}static centerOf(t){const e=t.reduce(((t,e)=>t+e.x),0)/t.length,n=t.reduce(((t,e)=>t+e.y),0)/t.length;return new I(e,n)}static smallerSizeOfQuad(t){const e=Math.max(...t.map((t=>t.x)))-Math.min(...t.map((t=>t.x))),n=Math.max(...t.map((t=>t.y)))-Math.min(...t.map((t=>t.y)));return Math.min(e,n)}static empty(){return new I(0,0)}static centerX(t){if(t)return(I.highestX(t)+I.lowestX(t))/2}static highestX(t){if(t)return Math.max(...t.map((t=>t.x)))}static lowestX(t){if(t)return Math.min(...t.map((t=>t.x)))}static lowestY(t){if(t)return Math.min(...t.map((t=>t.y)))}static highestY(t){if(t)return Math.max(...t.map((t=>t.y)))}static width(t){if(t)return I.highestX(t)-I.lowestX(t)}static left(t){if(t)return t.reduce(((t,e)=>t.x<e.x?t:e))}static right(t){if(t)return t.reduce(((t,e)=>t.x>e.x?t:e))}static toSvgString(t){if(void 0!==t)return t.map((t=>`${t.x.toFixed(2)},${t.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(t,e=0){if(void 0===t)return;function n(t,e,n){const o=Math.atan2(t.y-e.y,t.x-e.x);return{x:t.x-n*Math.cos(o),y:t.y-n*Math.sin(o)}}let o="";const r=n(t[0],t[1],I.distance(t[0],t[1])/2);o+=`M ${r.x} ${r.y}`;for(let r=0;r<t.length;r++){const i=t[r],a=t[(r+1)%t.length],s=t[(r+2)%t.length],l=n(a,s,I.distance(a,s)/2),c=Math.abs(Math.atan2(a.y-i.y,a.x-i.x)-Math.atan2(a.y-s.y,a.x-s.x)),u=c>Math.PI?2*Math.PI-c:c,d=Math.min(Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),Math.sqrt(Math.pow(a.x-s.x,2)+Math.pow(a.y-s.y,2))),p=Math.min(e,d*Math.tan(u/2)/2),h=Math.abs(p/Math.tan(u/2)),f=(a.x-i.x)*(a.y-s.y)-(a.x-s.x)*(a.y-i.y)<0?1:0,m=n(a,i,h),g=n(a,s,h);o+=` L${m.x} ${m.y}`,o+=` A${p} ${p} 0 0 ${f} ${g.x} ${g.y}`,o+=` L${l.x} ${l.y}`}return o+" Z"}static distance(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}static subtract(t,e){return new I(t.x-e.x,t.y-e.y)}static add(t,e){return new I(t.x+e.x,t.y+e.y)}static multiply(t,e){return new I(t.x*e,t.y*e)}static cross(t,e){return t.x*e.y-t.y*e.x}static clamp(t,e){return new I(W(t.x,0,e.width),W(t.y,0,e.height))}}class M{constructor(t,e,n,o,r,i){this.format=t,this.text=e,this.parsedDocument=n,this.rawBytes=o,this.points=r,this.barcodeImage=i}id(){return this.text+this.format}equals(t){return this.format===t.format&&this.text===t.text}static fromWorker(t){const e=t.quad.map((t=>new I(t[0],t[1])));return new M(t.format,t.text,t.parsedDocument,t.rawBytes,e,t.barcodeImage)}}class D{constructor(t,e){this.barcodes=t,this.imageData=e}static fromWorker(t,e){const n=[];t&&t.forEach((t=>{n.push(M.fromWorker(t))}));const o=R.convertImageDataWrapperToImageData(e);return new D(n,o)}isEmpty(){return 0===this.barcodes.length}}class F{constructor(t,e,n,o){this.value=e,this.confidence=n,this.validated=o,this.name=t}}class z{}class N{static fromWorker(t){let e=new N;e.verificationSuccessful=t.verificationSuccessful;const n=new z,o=t.recognitionSuccessful;return(t.fields||[]).forEach((t=>{switch(t.name){case"DocumentNumber":e.documentNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"IssuingAuthority":e.issuingAuthority=new F(t.name,t.text,t.confidence,t.validated);break;case"DepartmentOfIssuance":e.departmentOfIssuance=new F(t.name,t.text,t.confidence,t.validated);break;case"GivenNames":e.givenNames=new F(t.name,t.text,t.confidence,t.validated);break;case"Surname":e.surname=new F(t.name,t.text,t.confidence,t.validated);break;case"Nationality":e.nationality=new F(t.name,t.text,t.confidence,t.validated);break;case"BirthDate":e.birthDate=new F(t.name,t.text,t.confidence,t.validated);break;case"Gender":e.gender=new F(t.name,t.text,t.confidence,t.validated);break;case"ExpiryDate":e.expiryDate=new F(t.name,t.text,t.confidence,t.validated);break;case"PersonalNumber":e.personalNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"TravelDocType":e.travelDocType=new F(t.name,t.text,t.confidence,t.validated);break;case"TravelDocTypeVariant":e.travelDocTypeVariant=new F(t.name,t.text,t.confidence,t.validated);break;case"DiscreetIssuingStateOrOrganization":e.discreetIssuingStateOrOrganization=new F(t.name,t.text,t.confidence,t.validated);break;case"DocumentTypeCode":e.kindOfDocumentField=new F(t.name,t.text,t.confidence,t.validated);break;case"DocumentType":e.documentType=new F(t.name,t.text,t.confidence,t.validated);break;case"Format":e.format=new F(t.name,t.text,t.confidence,t.validated);break;case"PINCode":e.pinCode=new F(t.name,t.text,t.confidence,t.validated);break;case"LanguageCode":e.languageCode=new F(t.name,t.text,t.confidence,t.validated);break;case"VersionNumber":e.versionNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitGeneral":n.general=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitDocumentNumber":n.documentNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitBirthDate":n.birthDate=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitExpiryDate":n.expiryDate=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitPersonalNumber":n.personalNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"Optional1":e.optional1=new F(t.name,t.text,t.confidence,t.validated);break;case"Optional2":e.optional2=new F(t.name,t.text,t.confidence,t.validated)}})),e.documentType||(e.documentType=new F("DocumentType",t.documentType)),o?e.checkDigits=n:e=void 0,e}}var V=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class ${constructor(t,e,n){this._sdk=t,this._mrzRecognizerToken=e,this.enableFrameAccumulation=n}recognize(t){return V(this,void 0,void 0,(function*(){try{let e=yield this._sdk.bridge.postByTransferringArgs("recognizeMRZ",[yield this._mrzRecognizerToken,t]);if(null===e)return;const n=N.fromWorker(e);return!this.enableFrameAccumulation&&n&&delete n.verificationSuccessful,n}catch(t){return void console.warn(t)}}))}recognizeURL(t){return V(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),o=document.createElement("img");o.src=t,o.onload=()=>V(this,void 0,void 0,(function*(){n.width=o.width,n.height=o.height;const t=n.getContext("2d");t.drawImage(o,0,0);const r=t.getImageData(0,0,o.width,o.height),i=yield this.recognize(r);e(i||void 0)}))}))}))}release(){return V(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[yield this._mrzRecognizerToken])}))}}var U=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class H{constructor(t,e){this._sdk=t,this._OcrEngineToken=e}performOcr(t){return U(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("performOcr",[this._OcrEngineToken,t])}))}recognizeURL(t){return U(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),o=document.createElement("img");o.src=t,o.onload=()=>U(this,void 0,void 0,(function*(){n.width=o.width,n.height=o.height;const t=n.getContext("2d");t.drawImage(o,0,0);const r=t.getImageData(0,0,o.width,o.height),i=yield this.performOcr(r);e(i)}))}))}))}release(){return U(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[this._OcrEngineToken])}))}}class G{static fromWorker(t){if(!t)return;const e=new G;return e.text=t.rawText,e.confidence=t.confidence,e.validated=t.validationSuccessful,e}}var Y,X,K=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class Q{constructor(t,e){this._sdk=t,this._textDataScannerToken=e}recognize(t){return K(this,void 0,void 0,(function*(){try{let e=yield this._sdk.bridge.postByTransferringArgs("recognizeTextLine",[yield this._textDataScannerToken,t]);if(null===e)return;return G.fromWorker(e)}catch(t){return void console.warn(t)}}))}cleanRecognitionQueue(){return K(this,void 0,void 0,(function*(){try{yield this._sdk.bridge.postByTransferringArgs("cleanTextLineRecognitionQueue",[yield this._textDataScannerToken])}catch(t){return void console.warn(t)}}))}recognizeURL(t){return K(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),o=document.createElement("img");o.src=t,o.onload=()=>K(this,void 0,void 0,(function*(){n.width=o.width,n.height=o.height;const t=n.getContext("2d");t.drawImage(o,0,0);const r=t.getImageData(0,0,o.width,o.height),i=yield this.recognize(r);i&&e(i)}))}))}))}release(){return K(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[yield this._textDataScannerToken])}))}}class q{}class Z extends q{constructor(t={}){super(),this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==t.sbColorPrimary&&(this.sbColorPrimary=t.sbColorPrimary),void 0!==t.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=t.sbColorPrimaryDisabled),void 0!==t.sbColorNegative&&(this.sbColorNegative=t.sbColorNegative),void 0!==t.sbColorPositive&&(this.sbColorPositive=t.sbColorPositive),void 0!==t.sbColorWarning&&(this.sbColorWarning=t.sbColorWarning),void 0!==t.sbColorSecondary&&(this.sbColorSecondary=t.sbColorSecondary),void 0!==t.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=t.sbColorSecondaryDisabled),void 0!==t.sbColorOnPrimary&&(this.sbColorOnPrimary=t.sbColorOnPrimary),void 0!==t.sbColorOnSecondary&&(this.sbColorOnSecondary=t.sbColorOnSecondary),void 0!==t.sbColorSurface&&(this.sbColorSurface=t.sbColorSurface),void 0!==t.sbColorOutline&&(this.sbColorOutline=t.sbColorOutline),void 0!==t.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=t.sbColorOnSurfaceVariant),void 0!==t.sbColorOnSurface&&(this.sbColorOnSurface=t.sbColorOnSurface),void 0!==t.sbColorSurfaceLow&&(this.sbColorSurfaceLow=t.sbColorSurfaceLow),void 0!==t.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=t.sbColorSurfaceHigh),void 0!==t.sbColorModalOverlay&&(this.sbColorModalOverlay=t.sbColorModalOverlay)}}class J extends q{constructor(t={}){super(),this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}class tt extends q{constructor(t={}){super(),this.visible=!0,this.color="#FFFFFF",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.color&&(this.color=t.color)}}class et extends q{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#30FFFFFF",this.strokeWidth=2,this.cornerRadius=0,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class nt extends q{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth)}}class ot extends q{constructor(t={}){super(),this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==t.iconVisible&&(this.iconVisible=t.iconVisible),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}class rt extends q{constructor(t={}){super(),this.width=1,this.height=1,void 0!==t.width&&(this.width=t.width),void 0!==t.height&&(this.height=t.height)}}class it extends q{constructor(t={}){super(),this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}class at extends q{constructor(t={}){super(),this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.badgeBackgroundColor&&(this.badgeBackgroundColor=t.badgeBackgroundColor),void 0!==t.badgeForegroundColor&&(this.badgeForegroundColor=t.badgeForegroundColor),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}class st extends q{constructor(t={}){super(),this.visible=!0,this.text="",this.background=new nt({}),this.foreground=new ot({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.background&&(this.background=new nt(t.background)),void 0!==t.foreground&&(this.foreground=new ot(t.foreground))}}class lt extends q{constructor(t={}){super(),this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==t.successBeepEnabled&&(this.successBeepEnabled=t.successBeepEnabled),void 0!==t.soundType&&(this.soundType=t.soundType)}}class ct extends q{constructor(t={}){super(),this.enabled=!1,void 0!==t.enabled&&(this.enabled=t.enabled)}}class ut extends q{constructor(t={}){super(),this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==t.autoCancelTimeout&&(this.autoCancelTimeout=t.autoCancelTimeout),void 0!==t.initialScanDelay&&(this.initialScanDelay=t.initialScanDelay)}}class dt extends q{constructor(t={}){super(),this.visible=!0,this.deselected=new et({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new et({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.deselected&&(this.deselected=new et(t.deselected)),void 0!==t.selected&&(this.selected=new et(t.selected))}}class pt extends q{constructor(t={}){super(),this.imageVisible=!0,this.titleSelected=new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new et({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new et({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==t.imageVisible&&(this.imageVisible=t.imageVisible),void 0!==t.titleSelected&&(this.titleSelected=new J(t.titleSelected)),void 0!==t.subtitleSelected&&(this.subtitleSelected=new J(t.subtitleSelected)),void 0!==t.titleDeselected&&(this.titleDeselected=new J(t.titleDeselected)),void 0!==t.subtitleDeselected&&(this.subtitleDeselected=new J(t.subtitleDeselected)),void 0!==t.backgroundSelected&&(this.backgroundSelected=new et(t.backgroundSelected)),void 0!==t.backgroundDeselected&&(this.backgroundDeselected=new et(t.backgroundDeselected))}}class ht extends q{constructor(t={}){if(super(),this.visible=!0,this.foregroundColor="?sbColorOnSurface",void 0!==t.visible&&(this.visible=t.visible),void 0===t.background)throw new Error("background must be present in constructor argument");this.background=new nt(t.background),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor)}}class ft extends q{constructor(t={}){super(),this.visible=!1,this.counterBadge=new ht({background:new nt({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="BELOW",this.polygon=new dt({visible:!0,deselected:new et({}),selected:new et({})}),this.barcodeItemConfiguration=new pt({imageVisible:!0,titleSelected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new et({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new et({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.counterBadge&&(this.counterBadge=new ht(t.counterBadge)),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=t.barcodeItemInfoPosition),void 0!==t.polygon&&(this.polygon=new dt(t.polygon)),void 0!==t.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new pt(t.barcodeItemConfiguration))}}class mt extends q{constructor(t={}){super(),this.visible=!0,this.partiallyScanned=new et({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new et({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new et({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.partiallyScanned&&(this.partiallyScanned=new et(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new et(t.rejected)),void 0!==t.completed&&(this.completed=new et(t.completed))}}class gt extends q{constructor(t={}){super(),this.partiallyScanned=new ht({visible:!0,background:new nt({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new ht({visible:!0,background:new nt({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new ht({visible:!0,background:new nt({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==t.partiallyScanned&&(this.partiallyScanned=new ht(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new ht(t.rejected)),void 0!==t.completed&&(this.completed=new ht(t.completed))}}class vt extends q{constructor(t={}){super(),this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new mt({}),this.badge=new gt({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.polygon&&(this.polygon=new mt(t.polygon)),void 0!==t.badge&&(this.badge=new gt(t.badge))}}class bt extends q{constructor(t={}){super(),this.title=new J({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new J({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new st({}),this.cancelButton=new st({}),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.subtitle&&(this.subtitle=new J(t.subtitle)),void 0!==t.retryButton&&(this.retryButton=new st(t.retryButton)),void 0!==t.cancelButton&&(this.cancelButton=new st(t.cancelButton))}}class yt extends q{constructor(t={}){if(super(),void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=t.title,void 0===t.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=t.subtitle,void 0===t.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=t.barcodeImage}}class At extends q{constructor(t={}){super(),this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new J({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new bt({}),void 0!==t.barcodeItemMapper&&(this.barcodeItemMapper=null!=t.barcodeItemMapper?t.barcodeItemMapper:null),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.loadingMessage&&(this.loadingMessage=new J(t.loadingMessage)),void 0!==t.errorState&&(this.errorState=new bt(t.errorState))}}class St extends q{constructor(t={}){super(),this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new st({visible:!0,text:"?sheetSubmitButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new st({visible:!0,text:"?singleModeConfirmationCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new At({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new J({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new bt({title:new J({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new J({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new st({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new st({text:"?barcodeInfoMappingErrorStateCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new ft({visible:!1,counterBadge:new ht({visible:!0,background:new nt({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new dt({visible:!0,deselected:new et({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new et({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new pt({imageVisible:!0,titleSelected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new J({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new et({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new et({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.confirmationSheetEnabled&&(this.confirmationSheetEnabled=t.confirmationSheetEnabled),void 0!==t.barcodeImageVisible&&(this.barcodeImageVisible=t.barcodeImageVisible),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.barcodeTitle&&(this.barcodeTitle=new J(t.barcodeTitle)),void 0!==t.barcodeSubtitle&&(this.barcodeSubtitle=new J(t.barcodeSubtitle)),void 0!==t.submitButton&&(this.submitButton=new st(t.submitButton)),void 0!==t.cancelButton&&(this.cancelButton=new st(t.cancelButton)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new At(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new ft(t.arOverlay))}}class Ct extends q{constructor(t={}){if(super(),void 0===t.width)throw new Error("width must be present in constructor argument");if(this.width=t.width,void 0===t.height)throw new Error("height must be present in constructor argument");this.height=t.height}}class xt extends q{constructor(t={}){super(),this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,this.idealPreviewResolution=new Ct({width:1920,height:1080}),void 0!==t.cameraModule&&(this.cameraModule=t.cameraModule),void 0!==t.zoomSteps&&(this.zoomSteps=t.zoomSteps.map((t=>t))),void 0!==t.defaultZoomFactor&&(this.defaultZoomFactor=t.defaultZoomFactor),void 0!==t.flashEnabled&&(this.flashEnabled=t.flashEnabled),void 0!==t.idealPreviewResolution&&(this.idealPreviewResolution=new Ct(t.idealPreviewResolution))}}class wt extends q{constructor(t={}){super(),this.title=new J({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new st({text:"Cancel",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ot({color:"?sbColorOnPrimary"})}),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.cancelButton&&(this.cancelButton=new st(t.cancelButton))}}class Ot extends q{constructor(t={}){super(),this.flashButton=new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),void 0!==t.flashButton&&(this.flashButton=new it(t.flashButton)),void 0!==t.zoomButton&&(this.zoomButton=new it(t.zoomButton)),void 0!==t.flipCameraButton&&(this.flipCameraButton=new it(t.flipCameraButton))}}class Et extends q{constructor(t={}){super(),this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new at({}),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.collapsedVisibleHeight&&(this.collapsedVisibleHeight=t.collapsedVisibleHeight),void 0!==t.listButton&&(this.listButton=new at(t.listButton))}}class jt extends q{constructor(t={}){super(),this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.iconColor&&(this.iconColor=t.iconColor)}}class Lt extends q{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new J({text:"Update count",color:"?sbColorOnSurface"}),this.info=new J({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new st({visible:!0,text:"Update",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new st({visible:!0,text:"Cancel",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new tt({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.info&&(this.info=new J(t.info)),void 0!==t.updateButton&&(this.updateButton=new st(t.updateButton)),void 0!==t.cancelButton&&(this.cancelButton=new st(t.cancelButton)),void 0!==t.clearTextButton&&(this.clearTextButton=new tt(t.clearTextButton))}}class kt extends q{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new J({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new st({visible:!0,text:"Clear all",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new J({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new st({visible:!0,text:"Submit",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new st({visible:!0,text:"Start scanning",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new J({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new J({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new tt({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new jt({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.manualCountChangeEnabled&&(this.manualCountChangeEnabled=t.manualCountChangeEnabled),void 0!==t.manualCountOutlineColor&&(this.manualCountOutlineColor=t.manualCountOutlineColor),void 0!==t.manualCountChangeColor&&(this.manualCountChangeColor=t.manualCountChangeColor),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.clearAllButton&&(this.clearAllButton=new st(t.clearAllButton)),void 0!==t.barcodeItemTitle&&(this.barcodeItemTitle=new J(t.barcodeItemTitle)),void 0!==t.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new J(t.barcodeItemSubtitle)),void 0!==t.barcodeItemImageVisible&&(this.barcodeItemImageVisible=t.barcodeItemImageVisible),void 0!==t.submitButton&&(this.submitButton=new st(t.submitButton)),void 0!==t.startScanningButton&&(this.startScanningButton=new st(t.startScanningButton)),void 0!==t.placeholderTitle&&(this.placeholderTitle=new J(t.placeholderTitle)),void 0!==t.placeholderSubtitle&&(this.placeholderSubtitle=new J(t.placeholderSubtitle)),void 0!==t.placeholderIconBackground&&(this.placeholderIconBackground=t.placeholderIconBackground),void 0!==t.placeholderIcon&&(this.placeholderIcon=new tt(t.placeholderIcon)),void 0!==t.swipeToDelete&&(this.swipeToDelete=new jt(t.swipeToDelete))}}class _t extends q{constructor(t={}){super(),this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.mode="COUNTING",this.sheet=new Et({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new at({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new kt({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new J({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new st({visible:!0,text:"?sheetClearAllButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new J({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new J({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new st({visible:!0,text:"?sheetSubmitButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new st({visible:!0,text:"?sheetStartScanningButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new J({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new J({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new tt({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new jt({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new Lt({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new J({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new J({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new st({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new st({visible:!0,text:"?manualCountEditDialogCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new tt({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new At({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new J({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new bt({title:new J({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new J({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new st({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new st({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new ft({visible:!1,counterBadge:new ht({visible:!0,background:new nt({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new dt({visible:!0,deselected:new et({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new et({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new pt({imageVisible:!0,titleSelected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new J({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new J({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new et({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new et({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.countingRepeatDelay&&(this.countingRepeatDelay=t.countingRepeatDelay),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.sheet&&(this.sheet=new Et(t.sheet)),void 0!==t.sheetContent&&(this.sheetContent=new kt(t.sheetContent)),void 0!==t.manualCountEditDialog&&(this.manualCountEditDialog=new Lt(t.manualCountEditDialog)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new At(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new ft(t.arOverlay))}}(Y||(Y={})).From=function(t){const e=t._type;switch(e){case"SingleScanningMode":return new St(t);case"MultipleScanningMode":return new _t(t);default:throw`Unknown child class name: ${e}`}};class Tt extends q{constructor(t={}){super(),this.visible=!0,this.style=new Pt({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new rt({width:1,height:1}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.style&&(this.style=X.From(t.style)),void 0!==t.overlayColor&&(this.overlayColor=t.overlayColor),void 0!==t.aspectRatio&&(this.aspectRatio=new rt(t.aspectRatio))}}!function(t){t.From=function(t){const e=t._type;switch(e){case"FinderCorneredStyle":return new Pt(t);case"FinderStrokedStyle":return new Rt(t);default:throw`Unknown child class name: ${e}`}}}(X||(X={}));class Pt extends q{constructor(t={}){super(),this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class Rt extends q{constructor(t={}){super(),this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class Bt extends q{constructor(t={}){super(),this.visible=!0,this.title=new J({color:"?sbColorOnPrimary"}),this.background=new nt({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.background&&(this.background=new nt(t.background))}}class Wt extends q{constructor(t={}){if(super(),this.count=1,void 0===t.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");if(this.barcodeValue=t.barcodeValue,void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=null!=t.title?t.title:null,void 0===t.image)throw new Error("image must be present in constructor argument");this.image=null!=t.image?t.image:null,void 0!==t.count&&(this.count=t.count)}}class It extends q{constructor(t={}){super(),this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionCloseButton="Close",this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",void 0!==t.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=t.cameraPermissionEnableCameraTitle),void 0!==t.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=t.cameraPermissionEnableCameraExplanation),void 0!==t.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=t.cameraPermissionCloseButton),void 0!==t.topBarCancelButton&&(this.topBarCancelButton=t.topBarCancelButton),void 0!==t.topBarTitle&&(this.topBarTitle=t.topBarTitle),void 0!==t.userGuidance&&(this.userGuidance=t.userGuidance),void 0!==t.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=t.barcodeInfoMappingLoadingMessage),void 0!==t.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=t.barcodeInfoMappingErrorStateTitle),void 0!==t.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=t.barcodeInfoMappingErrorStateSubtitle),void 0!==t.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=t.barcodeInfoMappingErrorStateRetryButton),void 0!==t.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=t.barcodeInfoMappingErrorStateCancelButton),void 0!==t.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=t.manualCountEditDialogTitle),void 0!==t.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=t.manualCountEditDialogInfo),void 0!==t.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=t.manualCountEditDialogUpdateButton),void 0!==t.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=t.manualCountEditDialogCancelButton),void 0!==t.sheetClearAllButton&&(this.sheetClearAllButton=t.sheetClearAllButton),void 0!==t.sheetSubmitButton&&(this.sheetSubmitButton=t.sheetSubmitButton),void 0!==t.sheetStartScanningButton&&(this.sheetStartScanningButton=t.sheetStartScanningButton),void 0!==t.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=t.sheetPlaceholderTitle),void 0!==t.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=t.sheetPlaceholderSubtitle),void 0!==t.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=t.singleModeConfirmationCancelButton),void 0!==t.multipleModeSheetTitle&&(this.multipleModeSheetTitle=t.multipleModeSheetTitle)}}class Mt extends q{constructor(t={}){super(),this.barcodesRegexFilter="",this.barcodeFormats=[],this.gs1Handling="PARSE",this.engineMode="ML_LOW_POWER",this.maximumRecognizerResolution=600,void 0!==t.barcodesRegexFilter&&(this.barcodesRegexFilter=t.barcodesRegexFilter),void 0!==t.barcodeFormats&&(this.barcodeFormats=t.barcodeFormats.map((t=>t))),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.engineMode&&(this.engineMode=t.engineMode),void 0!==t.maximumRecognizerResolution&&(this.maximumRecognizerResolution=t.maximumRecognizerResolution)}}class Dt extends q{constructor(t={}){super(),this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new tt({visible:!0,color:"?sbColorOnSurface"}),this.closeButton=new st({text:"Close",background:new nt({}),foreground:new ot({})}),this.enableCameraTitle=new J({text:"Camera permission denied!",color:"?colorOnSurface"}),this.enableCameraExplanation=new J({text:"Please allow the usage of the camera to start the scanning process.",color:"?sbColorOnSurfaceVariant"}),void 0!==t.background&&(this.background=t.background),void 0!==t.iconBackground&&(this.iconBackground=t.iconBackground),void 0!==t.icon&&(this.icon=new tt(t.icon)),void 0!==t.closeButton&&(this.closeButton=new st(t.closeButton)),void 0!==t.enableCameraTitle&&(this.enableCameraTitle=new J(t.enableCameraTitle)),void 0!==t.enableCameraExplanation&&(this.enableCameraExplanation=new J(t.enableCameraExplanation))}}class Ft extends q{constructor(t={}){super(),this.version="1.0",this.screen="BarcodeScanner",this.palette=new Z({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new It({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new wt({title:new J({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",backgroundColor:"?sbColorPrimary",cancelButton:new st({visible:!0,text:"?topBarCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new Ot({flashButton:new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.viewFinder=new Tt({visible:!0,style:new Pt({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new rt({width:1,height:1})}),this.userGuidance=new Bt({visible:!0,title:new J({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new nt({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new Dt({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new tt({visible:!0,color:"?sbColorOnSurface"}),closeButton:new st({visible:!0,text:"?cameraPermissionCloseButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new J({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new J({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new xt({}),this.recognizerConfiguration=new Mt({}),this.useCase=new St({}),this.sound=new lt({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new ct({enabled:!0}),this.timeouts=new ut({autoCancelTimeout:0,initialScanDelay:0}),void 0!==t.version&&(this.version=t.version),void 0!==t.screen&&(this.screen=t.screen),void 0!==t.palette&&(this.palette=new Z(t.palette)),void 0!==t.localization&&(this.localization=new It(t.localization)),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.topBar&&(this.topBar=new wt(t.topBar)),void 0!==t.actionBar&&(this.actionBar=new Ot(t.actionBar)),void 0!==t.viewFinder&&(this.viewFinder=new Tt(t.viewFinder)),void 0!==t.userGuidance&&(this.userGuidance=new Bt(t.userGuidance)),void 0!==t.cameraPermission&&(this.cameraPermission=new Dt(t.cameraPermission)),void 0!==t.cameraConfiguration&&(this.cameraConfiguration=new xt(t.cameraConfiguration)),void 0!==t.recognizerConfiguration&&(this.recognizerConfiguration=new Mt(t.recognizerConfiguration)),void 0!==t.useCase&&(this.useCase=Y.From(t.useCase)),void 0!==t.sound&&(this.sound=new lt(t.sound)),void 0!==t.vibration&&(this.vibration=new ct(t.vibration)),void 0!==t.timeouts&&(this.timeouts=new ut(t.timeouts))}}class zt extends q{constructor(t={}){if(super(),void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=t.type,void 0===t.count)throw new Error("count must be present in constructor argument");if(this.count=t.count,void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=t.rawBytes,void 0===t.parsedDocument)throw new Error("parsedDocument must be present in constructor argument");this.parsedDocument=null!=t.parsedDocument?t.parsedDocument:null}}class Nt extends q{constructor(t={}){super(),this.items=[],void 0!==t.items&&(this.items=t.items.map((t=>new zt(t))))}}class Vt extends q{constructor(t={}){if(super(),this.title=new J({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new J({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.subtitle&&(this.subtitle=new J(t.subtitle)),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0===t.okButton)throw new Error("okButton must be present in constructor argument");if(this.okButton=new st(t.okButton),void 0===t.cancelButton)throw new Error("cancelButton must be present in constructor argument");this.cancelButton=new st(t.cancelButton)}}class $t extends p{constructor(t){super(t);const e=new Ft;this.finder=e.viewFinder,this.userGuidance=e.userGuidance}static mapFinderConfiguration(t,e){var n,o;p.mapValuesDeep(null!==(n=e.finder)&&void 0!==n?n:{},t.finder),p.mapValuesDeep(null!==(o=e.userGuidance)&&void 0!==o?o:{},t.userGuidance)}}class Ut extends $t{constructor(){super(p.DEFAULT_VIDEO_RESOLUTION_HD),this.matchSubstring=!1,this.onTextDetected=function(t){},this.finder.aspectRatio.width=6,this.userGuidance.title.text="Please hold the device over the text to start scanning"}static fromJson(t){const e=new Ut;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}class Ht extends $t{constructor(){super(p.DEFAULT_VIDEO_RESOLUTION_HD),this.onTextDetected=function(t){},this.finder.aspectRatio.width=6,this.userGuidance.title.text="Please hold the device over the vehicle identification number to start scanning"}static fromJson(t){const e=new Ht;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}class Gt extends Error{constructor(t){super(t.description),this.name="LicenseError"}}class Yt{static throwIfMissingBuffer(t){Yt.throwIfMissing(t,"ImageBuffer may not be null")}static throwIfMissing(t,e){if(!t)throw new Error(e)}}var Xt,Kt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class Qt{constructor(t,e){this._sdk=t,this._token=e}analyze(t){return Kt(this,void 0,void 0,(function*(){Yt.throwIfMissingBuffer(t);return yield this._sdk.bridge.postByCopyingArgs("documentQualityAnalyzerAnalyze",[this._token,t])}))}release(){return Kt(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[this._token])}))}}class qt{_marker(){}}!function(t){t.From=function(t){const e=t._type;switch(e){case"ScanbotBinarizationFilter":return new Zt(t);case"CustomBinarizationFilter":return new Jt(t);case"ColorDocumentFilter":return new te(t);case"BrightnessFilter":return new ee(t);case"ContrastFilter":return new ne(t);case"GrayscaleFilter":return new oe(t);case"LegacyFilter":return new re(t);case"WhiteBlackPointFilter":return new ie(t);default:throw`Unknown child class name: ${e}`}}}(Xt||(Xt={}));class Zt extends qt{constructor(t={}){super(),this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==t.outputMode&&(this.outputMode=t.outputMode)}}class Jt extends qt{constructor(t={}){super(),this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==t.outputMode&&(this.outputMode=t.outputMode),void 0!==t.denoise&&(this.denoise=t.denoise),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.preset&&(this.preset=t.preset)}}class te extends qt{constructor(t={}){super(),this._type="ColorDocumentFilter"}}class ee extends qt{constructor(t={}){super(),this._type="BrightnessFilter",this.brightness=0,void 0!==t.brightness&&(this.brightness=t.brightness)}}class ne extends qt{constructor(t={}){super(),this._type="ContrastFilter",this.contrast=0,void 0!==t.contrast&&(this.contrast=t.contrast)}}class oe extends qt{constructor(t={}){super(),this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==t.borderWidthFraction&&(this.borderWidthFraction=t.borderWidthFraction),void 0!==t.blackOutliersFraction&&(this.blackOutliersFraction=t.blackOutliersFraction),void 0!==t.whiteOutliersFraction&&(this.whiteOutliersFraction=t.whiteOutliersFraction)}}class re extends qt{constructor(t={}){super(),this._type="LegacyFilter",this.filterType=0,void 0!==t.filterType&&(this.filterType=t.filterType)}}class ie extends qt{constructor(t={}){super(),this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==t.blackPoint&&(this.blackPoint=t.blackPoint),void 0!==t.whitePoint&&(this.whitePoint=t.whitePoint)}}class ae{static initialize(t=!1){this.verbose=t}static debug(t){this.verbose&&console.log("ScanbotSDK:",t)}static debugWarn(t){this.verbose&&console.warn("ScanbotSDK:",t)}}var se=n(0),le=n(67),ce=n(1),ue=n(4);var de=se.createContext(null);function pe(){return se.useContext(de)}var he="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",fe=n(3);var me=function(t){const{children:e,theme:n}=t,o=pe(),r=se.useMemo((()=>{const t=null===o?n:function(t,e){if("function"==typeof e)return e(t);return Object(ce.a)({},t,e)}(o,n);return null!=t&&(t[he]=null!==o),t}),[n,o]);return Object(fe.jsx)(de.Provider,{value:r,children:e})},ge=n(19),ve=n(43);const be={};function ye(t,e,n,o=!1){return se.useMemo((()=>{const r=t&&e[t]||e;if("function"==typeof n){const i=n(r),a=t?Object(ce.a)({},e,{[t]:i}):i;return o?()=>a:a}return t?Object(ce.a)({},e,{[t]:n}):Object(ce.a)({},e,n)}),[t,e,n,o])}var Ae=function(t){const{children:e,theme:n,themeId:o}=t,r=Object(ve.a)(be),i=pe()||be,a=ye(o,r,n),s=ye(o,i,n,!0);return Object(fe.jsx)(me,{theme:s,children:Object(fe.jsx)(ge.a.Provider,{value:a,children:e})})},Se=n(24);const Ce=["theme"];function xe(t){let{theme:e}=t,n=Object(ue.a)(t,Ce);const o=e[Se.a];return Object(fe.jsx)(Ae,Object(ce.a)({},n,{themeId:o?Se.a:void 0,theme:o||e}))}var we=n(6),Oe=n(32),Ee=n(69),je=n(83),Le=n(37);const ke=["sx"];function _e(t){const{sx:e}=t,n=Object(ue.a)(t,ke),{systemProps:o,otherProps:r}=(t=>{var e,n;const o={systemProps:{},otherProps:{}},r=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:Le.a;return Object.keys(t).forEach((e=>{r[e]?o.systemProps[e]=t[e]:o.otherProps[e]=t[e]})),o})(n);let i;return i=Array.isArray(e)?[o,...e]:"function"==typeof e?(...t)=>{const n=e(...t);return Object(je.b)(n)?Object(ce.a)({},o,n):o}:Object(ce.a)({},o,e),Object(ce.a)({},r,{sx:i})}var Te=n(42);const Pe=["className","component"];var Re=n(97),Be=n(80),We=n(130);var Ie=Object(We.a)("MuiBox",["root"]);const Me=Object(Be.a)();var De=function(t={}){const{themeId:e,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=t,i=Object(Oe.a)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(Ee.a);return se.forwardRef((function(t,a){const s=Object(Te.a)(n),l=_e(t),{className:c,component:u="div"}=l,d=Object(ue.a)(l,Pe);return Object(fe.jsx)(i,Object(ce.a)({as:u,ref:a,className:Object(we.a)(c,r?r(o):o),theme:e&&s[e]||s},d))}))}({themeId:Se.a,defaultTheme:Me,defaultClassName:Ie.root,generateClassName:Re.a.generate});const Fe=Object(se.createContext)(null);function ze(t){return{getColorValue:e=>{if(e){if(e.startsWith("?")){const n=e.slice(1);if(n in t)return t[n];ae.debugWarn(`Color ${n} not found in palette`)}return e}ae.debugWarn("Color is missing")}}}class Ne{static setPalette(t){this.palette=t}static setBarcodeTextLocalization(t){this.barcodeTextLocalization=t}static getColorValue(t){return ze(Ne.palette).getColorValue(t)}static getLocalizedBarcodeText(t){if(t.startsWith("?")){const e=t.slice(1);if(e in Ne.barcodeTextLocalization)return Ne.barcodeTextLocalization[e];ae.debugWarn(`Barcode text localization key ${e} not found in localization`)}return t}}Ne.palette=(new Ft).palette,Ne.barcodeTextLocalization=(new Ft).localization;var Ve=n(131),$e=n(7),Ue=n(11),He=n(5),Ge=n(134);var Ye=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)},Xe=n(96);function Ke(t){return Object(Xe.a)("MuiPaper",t)}Object(We.a)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Qe=["className","component","elevation","square","variant"],qe=Object($e.a)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e[`elevation${n.elevation}`]]}})((({theme:t,ownerState:e})=>{var n;return Object(ce.a)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===e.variant&&Object(ce.a)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${Object(Ge.a)("#fff",Ye(e.elevation))}, ${Object(Ge.a)("#fff",Ye(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))}));var Ze=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiPaper"}),{className:o,component:r="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Object(ue.a)(n,Qe),c=Object(ce.a)({},n,{component:r,elevation:i,square:a,variant:s}),u=(t=>{const{square:e,elevation:n,variant:o,classes:r}=t,i={root:["root",o,!e&&"rounded","elevation"===o&&`elevation${n}`]};return Object(Ve.a)(i,Ke,r)})(c);return Object(fe.jsx)(qe,Object(ce.a)({as:r,ownerState:c,className:Object(we.a)(u.root,o),ref:e},l))}));function Je(t){return Object(Xe.a)("MuiAppBar",t)}Object(We.a)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const tn=["className","color","enableColorOnDark","position"],en=(t,e)=>t?`${null==t?void 0:t.replace(")","")}, ${e})`:e,nn=Object($e.a)(Ze,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${Object(He.a)(n.position)}`],e[`color${Object(He.a)(n.color)}`]]}})((({theme:t,ownerState:e})=>{const n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return Object(ce.a)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===e.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===e.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===e.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===e.position&&{position:"static"},"relative"===e.position&&{position:"relative"},!t.vars&&Object(ce.a)({},"default"===e.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},e.color&&"default"!==e.color&&"inherit"!==e.color&&"transparent"!==e.color&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},"inherit"===e.color&&{color:"inherit"},"dark"===t.palette.mode&&!e.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===e.color&&Object(ce.a)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&Object(ce.a)({},"default"===e.color&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:en(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:en(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:en(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:en(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===e.color?"inherit":"var(--AppBar-color)"},"transparent"===e.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}));var on=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiAppBar"}),{className:o,color:r="primary",enableColorOnDark:i=!1,position:a="fixed"}=n,s=Object(ue.a)(n,tn),l=Object(ce.a)({},n,{color:r,position:a,enableColorOnDark:i}),c=(t=>{const{color:e,position:n,classes:o}=t,r={root:["root",`color${Object(He.a)(e)}`,`position${Object(He.a)(n)}`]};return Object(Ve.a)(r,Je,o)})(l);return Object(fe.jsx)(nn,Object(ce.a)({square:!0,component:"header",ownerState:l,elevation:4,className:Object(we.a)(c.root,o,"fixed"===a&&"mui-fixed"),ref:e},s))}));function rn(t){return Object(Xe.a)("MuiToolbar",t)}Object(We.a)("MuiToolbar",["root","gutters","regular","dense"]);const an=["className","component","disableGutters","variant"],sn=Object($e.a)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableGutters&&e.gutters,e[n.variant]]}})((({theme:t,ownerState:e})=>Object(ce.a)({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===e.variant&&{minHeight:48})),(({theme:t,ownerState:e})=>"regular"===e.variant&&t.mixins.toolbar));var ln=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiToolbar"}),{className:o,component:r="div",disableGutters:i=!1,variant:a="regular"}=n,s=Object(ue.a)(n,an),l=Object(ce.a)({},n,{component:r,disableGutters:i,variant:a}),c=(t=>{const{classes:e,disableGutters:n,variant:o}=t,r={root:["root",!n&&"gutters",o]};return Object(Ve.a)(r,rn,e)})(l);return Object(fe.jsx)(sn,Object(ce.a)({as:r,className:Object(we.a)(c.root,o),ref:e,ownerState:l},s))}));function cn(t){return Object(Xe.a)("MuiTypography",t)}Object(We.a)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const un=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dn=Object($e.a)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e[`align${Object(He.a)(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})((({theme:t,ownerState:e})=>Object(ce.a)({margin:0},"inherit"===e.variant&&{font:"inherit"},"inherit"!==e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16}))),pn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hn={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var fn=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiTypography"}),o=(t=>hn[t]||t)(n.color),r=_e(Object(ce.a)({},n,{color:o})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=pn}=r,h=Object(ue.a)(r,un),f=Object(ce.a)({},r,{align:i,color:o,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||pn[d])||"span",g=(t=>{const{align:e,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=t,s={root:["root",i,"inherit"!==t.align&&`align${Object(He.a)(e)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Object(Ve.a)(s,cn,a)})(f);return Object(fe.jsx)(dn,Object(ce.a)({as:m,ref:e,ownerState:f,className:Object(we.a)(g.root,a)},h))})),mn=n(73),gn=n.n(mn);const vn="var(--1-sb-dvh, 1vh)";function bn(){const t=Object(se.useMemo)((()=>{var t,e;return null===(e=null===(t=null===window||void 0===window?void 0:window.CSS)||void 0===t?void 0:t.supports)||void 0===e?void 0:e.call(t,"height: 100dvh")}),[]),e=()=>{var e=t?"1dvh":window.innerHeight/100+"px";document.documentElement.style.setProperty("--1-sb-dvh",e)};return Object(se.useEffect)((()=>{if(e(),!t)return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),null}function yn(t){return{color:Ne.getColorValue(t.color),textShadow:t.useShadow?"1px 1px 2px":""}}function An(t){return t.config.visible?se.default.createElement("span",{ref:t.innerRef,style:Object.assign(Object.assign({},t.style),yn(t.config))},Ne.getLocalizedBarcodeText(t.config.text)):null}var Sn=n(99),Cn=n(22),xn=n(25),wn=n(39);function On(t,e){return On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},On(t,e)}function En(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,On(t,e)}var jn=se.default.createContext(null);function Ln(t,e){var n=Object.create(null);return t&&se.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&Object(se.isValidElement)(t)?e(t):t}(t)})),n}function kn(t,e,n){return null!=n[e]?n[e]:t.props[e]}function _n(t,e,n){var o=Ln(t.children),r=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var o,r=Object.create(null),i=[];for(var a in t)a in e?i.length&&(r[a]=i,i=[]):i.push(a);var s={};for(var l in e){if(r[l])for(o=0;o<r[l].length;o++){var c=r[l][o];s[r[l][o]]=n(c)}s[l]=n(l)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}(e,o);return Object.keys(r).forEach((function(i){var a=r[i];if(Object(se.isValidElement)(a)){var s=i in e,l=i in o,c=e[i],u=Object(se.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&Object(se.isValidElement)(c)&&(r[i]=Object(se.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:kn(a,"exit",t),enter:kn(a,"enter",t)})):r[i]=Object(se.cloneElement)(a,{in:!1}):r[i]=Object(se.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:kn(a,"exit",t),enter:kn(a,"enter",t)})}})),r}var Tn=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},Pn=function(t){function e(e,n){var o,r=(o=t.call(this,e,n)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}En(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,o,r=e.children,i=e.handleExited;return{children:e.firstRender?(n=t,o=i,Ln(n.children,(function(t){return Object(se.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:kn(t,"appear",n),enter:kn(t,"enter",n),exit:kn(t,"exit",n)})}))):_n(t,r,i),firstRender:!1}},n.handleExited=function(t,e){var n=Ln(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=Object(ce.a)({},e.children);return delete n[t.key],{children:n}})))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,o=Object(ue.a)(t,["component","childFactory"]),r=this.state.contextValue,i=Tn(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===e?se.default.createElement(jn.Provider,{value:r},i):se.default.createElement(jn.Provider,{value:r},se.default.createElement(e,o,i))},e}(se.default.Component);Pn.propTypes={},Pn.defaultProps={component:"div",childFactory:function(t){return t}};var Rn=Pn,Bn=n(81);var Wn=function(t){const{className:e,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=t,[u,d]=se.useState(!1),p=Object(we.a)(e,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+r},f=Object(we.a)(n.child,u&&n.childLeaving,o&&n.childPulsate);return s||u||d(!0),se.useEffect((()=>{if(!s&&null!=l){const t=setTimeout(l,c);return()=>{clearTimeout(t)}}}),[l,s,c]),Object(fe.jsx)("span",{className:p,style:h,children:Object(fe.jsx)("span",{className:f})})};var In=Object(We.a)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Mn=["center","classes","className"];let Dn,Fn,zn,Nn,Vn=t=>t;const $n=Object(ge.d)(Dn||(Dn=Vn`
|
|
2
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}([function(t,e,n){"use strict";n.r(e),n.d(e,"Component",(function(){return s.a})),n.d(e,"Fragment",(function(){return s.b})),n.d(e,"createContext",(function(){return s.d})),n.d(e,"createElement",(function(){return s.e})),n.d(e,"createRef",(function(){return s.f})),n.d(e,"useCallback",(function(){return E})),n.d(e,"useContext",(function(){return j})),n.d(e,"useDebugValue",(function(){return L})),n.d(e,"useEffect",(function(){return S})),n.d(e,"useErrorBoundary",(function(){return k})),n.d(e,"useId",(function(){return _})),n.d(e,"useImperativeHandle",(function(){return w})),n.d(e,"useLayoutEffect",(function(){return C})),n.d(e,"useMemo",(function(){return O})),n.d(e,"useReducer",(function(){return A})),n.d(e,"useRef",(function(){return x})),n.d(e,"useState",(function(){return y})),n.d(e,"Children",(function(){return G})),n.d(e,"PureComponent",(function(){return z})),n.d(e,"StrictMode",(function(){return Pt})),n.d(e,"Suspense",(function(){return q})),n.d(e,"SuspenseList",(function(){return tt})),n.d(e,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return Ct})),n.d(e,"cloneElement",(function(){return jt})),n.d(e,"createFactory",(function(){return wt})),n.d(e,"createPortal",(function(){return rt})),n.d(e,"default",(function(){return zt})),n.d(e,"findDOMNode",(function(){return kt})),n.d(e,"flushSync",(function(){return Tt})),n.d(e,"forwardRef",(function(){return U})),n.d(e,"hydrate",(function(){return pt})),n.d(e,"isElement",(function(){return Mt})),n.d(e,"isFragment",(function(){return Et})),n.d(e,"isValidElement",(function(){return Ot})),n.d(e,"lazy",(function(){return J})),n.d(e,"memo",(function(){return N})),n.d(e,"render",(function(){return dt})),n.d(e,"startTransition",(function(){return Rt})),n.d(e,"unmountComponentAtNode",(function(){return Lt})),n.d(e,"unstable_batchedUpdates",(function(){return _t})),n.d(e,"useDeferredValue",(function(){return Bt})),n.d(e,"useInsertionEffect",(function(){return It})),n.d(e,"useSyncExternalStore",(function(){return Dt})),n.d(e,"useTransition",(function(){return Wt})),n.d(e,"version",(function(){return xt}));var o,r,i,a,s=n(8),l=0,c=[],u=[],d=s.h,p=d.__b,h=d.__r,f=d.diffed,m=d.__c,g=d.unmount,v=d.__;function b(t,e){d.__h&&d.__h(r,t,l||e),l=0;var n=r.__H||(r.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:u}),n.__[t]}function y(t){return l=1,A(M,t)}function A(t,e,n){var i=b(o++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):M(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=r,!r.u)){var a=function(t,e,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!s||s.call(this,t,e,n);var r=!1;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}})),!(!r&&i.__c.props===t)&&(!s||s.call(this,t,e,n))};r.u=!0;var s=r.shouldComponentUpdate,l=r.componentWillUpdate;r.componentWillUpdate=function(t,e,n){if(this.__e){var o=s;s=void 0,a(t,e,n),s=o}l&&l.call(this,t,e,n)},r.shouldComponentUpdate=a}return i.__N||i.__}function S(t,e){var n=b(o++,3);!d.__s&&I(n.__H,e)&&(n.__=t,n.i=e,r.__H.__h.push(n))}function C(t,e){var n=b(o++,4);!d.__s&&I(n.__H,e)&&(n.__=t,n.i=e,r.__h.push(n))}function x(t){return l=5,O((function(){return{current:t}}),[])}function w(t,e,n){l=6,C((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function O(t,e){var n=b(o++,7);return I(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function E(t,e){return l=8,O((function(){return t}),e)}function j(t){var e=r.context[t.__c],n=b(o++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(r)),e.props.value):t.__}function L(t,e){d.useDebugValue&&d.useDebugValue(e?e(t):t)}function k(t){var e=b(o++,10),n=y();return e.__=t,r.componentDidCatch||(r.componentDidCatch=function(t,o){e.__&&e.__(t,o),n[1](t)}),[n[0],function(){n[1](void 0)}]}function _(){var t=b(o++,11);if(!t.__){for(var e=r.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function T(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(B),t.__H.__h.forEach(W),t.__H.__h=[]}catch(e){t.__H.__h=[],d.__e(e,t.__v)}}d.__b=function(t){r=null,p&&p(t)},d.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),v&&v(t,e)},d.__r=function(t){h&&h(t),o=0;var e=(r=t.__c).__H;e&&(i===r?(e.__h=[],r.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=u,t.__N=t.i=void 0}))):(e.__h.forEach(B),e.__h.forEach(W),e.__h=[],o=0)),i=r},d.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==c.push(e)&&a===d.requestAnimationFrame||((a=d.requestAnimationFrame)||R)(T)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==u&&(t.__=t.__V),t.i=void 0,t.__V=u}))),i=r=null},d.__c=function(t,e){e.some((function(t){try{t.__h.forEach(B),t.__h=t.__h.filter((function(t){return!t.__||W(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],d.__e(n,t.__v)}})),m&&m(t,e)},d.unmount=function(t){g&&g(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{B(t)}catch(t){e=t}})),n.__H=void 0,e&&d.__e(e,n.__v))};var P="function"==typeof requestAnimationFrame;function R(t){var e,n=function(){clearTimeout(o),P&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);P&&(e=requestAnimationFrame(n))}function B(t){var e=r,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),r=e}function W(t){var e=r;t.__c=t.__(),r=e}function I(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function M(t,e){return"function"==typeof e?e(t):e}function D(t,e){for(var n in e)t[n]=e[n];return t}function F(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var o in e)if("__source"!==o&&t[o]!==e[o])return!0;return!1}function z(t,e){this.props=t,this.context=e}function N(t,e){function n(t){var n=this.props.ref,o=n==t.ref;return!o&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!o:F(this.props,t)}function o(e){return this.shouldComponentUpdate=n,Object(s.e)(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(z.prototype=new s.a).isPureReactComponent=!0,z.prototype.shouldComponentUpdate=function(t,e){return F(this.props,t)||F(this.state,e)};var V=s.h.__b;s.h.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),V&&V(t)};var $="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function U(t){function e(e){var n=D({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=$,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var H=function(t,e){return null==t?null:Object(s.j)(Object(s.j)(t).map(e))},G={map:H,forEach:H,count:function(t){return t?Object(s.j)(t).length:0},only:function(t){var e=Object(s.j)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:s.j},Y=s.h.__e;s.h.__e=function(t,e,n,o){if(t.then)for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);Y(t,e,n,o)};var X=s.h.unmount;function K(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=D({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return K(t,e,n)}))),t}function Q(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return Q(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function q(){this.__u=0,this.t=null,this.__b=null}function Z(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function J(t){var e,n,o;function r(r){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return Object(s.e)(n,r)}return r.displayName="Lazy",r.__f=!0,r}function tt(){this.u=null,this.o=null}s.h.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),X&&X(t)},(q.prototype=new s.a).__c=function(t,e){var n=e.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Z(o.__v),i=!1,a=function(){i||(i=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Q(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.t.pop();)e.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(a,a)},q.prototype.componentWillUnmount=function(){this.t=[]},q.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=K(this.__b,n,o.__O=o.__P)}this.__b=null}var r=e.__a&&Object(s.e)(s.b,null,t.fallback);return r&&(r.__u&=-33),[Object(s.e)(s.b,null,e.__a?null:t.children),r]};var et=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function nt(t){return this.getChildContext=function(){return t.context},t.children}function ot(t){var e=this,n=t.i;e.componentWillUnmount=function(){Object(s.i)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),Object(s.i)(Object(s.e)(nt,{context:e.context},t.__v),e.l)}function rt(t,e){var n=Object(s.e)(ot,{__v:t,i:e});return n.containerInfo=e,n}(tt.prototype=new s.a).__a=function(t){var e=this,n=Z(e.__v),o=e.o.get(t);return o[0]++,function(r){var i=function(){e.props.revealOrder?(o.push(r),et(e,t,o)):r()};n?n(i):i()}},tt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Object(s.j)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},tt.prototype.componentDidUpdate=tt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){et(t,n,e)}))};var it="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,at=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,st=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,lt=/[A-Z0-9]/g,ct="undefined"!=typeof document,ut=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function dt(t,e,n){return null==e.__k&&(e.textContent=""),Object(s.i)(t,e),"function"==typeof n&&n(),t?t.__c:null}function pt(t,e,n){return Object(s.g)(t,e),"function"==typeof n&&n(),t?t.__c:null}s.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(s.a.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var ht=s.h.event;function ft(){}function mt(){return this.cancelBubble}function gt(){return this.defaultPrevented}s.h.event=function(t){return ht&&(t=ht(t)),t.persist=ft,t.isPropagationStopped=mt,t.isDefaultPrevented=gt,t.nativeEvent=t};var vt,bt={enumerable:!1,configurable:!0,get:function(){return this.class}},yt=s.h.vnode;s.h.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,o={};for(var r in e){var i=e[r];if(!("value"===r&&"defaultValue"in e&&null==i||ct&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||ut(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":st.test(r)?r=a:-1===n.indexOf("-")&&at.test(r)?r=r.replace(lt,"-$&").toLowerCase():null===i&&(i=void 0):a=r="oninput","oninput"===a&&o[r=a]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=Object(s.j)(e.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=Object(s.j)(e.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),e.class&&!e.className?(o.class=e.class,Object.defineProperty(o,"className",bt)):(e.className&&!e.class||e.class&&e.className)&&(o.class=o.className=e.className),t.props=o}(t),t.$$typeof=it,yt&&yt(t)};var At=s.h.__r;s.h.__r=function(t){At&&At(t),vt=t.__c};var St=s.h.diffed;s.h.diffed=function(t){St&&St(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),vt=null};var Ct={ReactCurrentDispatcher:{current:{readContext:function(t){return vt.__n[t.__c].props.value}}}},xt="17.0.2";function wt(t){return s.e.bind(null,t)}function Ot(t){return!!t&&t.$$typeof===it}function Et(t){return Ot(t)&&t.type===s.b}function jt(t){return Ot(t)?s.c.apply(null,arguments):t}function Lt(t){return!!t.__k&&(Object(s.i)(null,t),!0)}function kt(t){return t&&(t.base||1===t.nodeType&&t)||null}var _t=function(t,e){return t(e)},Tt=function(t,e){return t(e)},Pt=s.b;function Rt(t){t()}function Bt(t){return t}function Wt(){return[!1,Rt]}var It=C,Mt=Ot;function Dt(t,e){var n=e(),o=y({h:{__:n,v:e}}),r=o[0].h,i=o[1];return C((function(){r.__=n,r.v=e,Ft(r)&&i({h:r})}),[t,n,e]),S((function(){return Ft(r)&&i({h:r}),t((function(){Ft(r)&&i({h:r})}))}),[t]),n}function Ft(t){var e,n,o=t.v,r=t.__;try{var i=o();return!((e=r)===(n=i)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(t){return!0}}var zt={useState:y,useId:_,useReducer:A,useEffect:S,useLayoutEffect:C,useInsertionEffect:It,useTransition:Wt,useDeferredValue:Bt,useSyncExternalStore:Dt,startTransition:Rt,useRef:x,useImperativeHandle:w,useMemo:O,useCallback:E,useContext:j,useDebugValue:L,version:"17.0.2",Children:G,render:dt,hydrate:pt,unmountComponentAtNode:Lt,createPortal:rt,createElement:s.e,createContext:s.d,createFactory:wt,cloneElement:jt,createRef:s.f,Fragment:s.b,isValidElement:Ot,isElement:Mt,isFragment:Et,findDOMNode:kt,Component:s.a,PureComponent:z,memo:N,forwardRef:U,flushSync:Tt,unstable_batchedUpdates:_t,StrictMode:Pt,Suspense:q,SuspenseList:tt,lazy:J,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ct}},function(t,e,n){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},o.apply(this,arguments)}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return l}));var o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},o(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n}Object.create;function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function l(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}Object.create},function(t,e,n){n(0),t.exports=n(92)},function(t,e,n){"use strict";function o(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var o=n(57);e.a=o.a},function(t,e,n){"use strict";function o(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=o(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}e.a=function(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=o(t))&&(r&&(r+=" "),r+=e);return r}},function(t,e,n){"use strict";n.d(e,"b",(function(){return A}));var o=n(1),r=n(4),i=n(32),a=n(83),s=n(104),l=n(69);const c=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}const h=Object(s.a)(),f=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function m({defaultTheme:t,theme:e,themeId:n}){return o=e,0===Object.keys(o).length?t:e[n]||e;var o}function g(t){return t?(e,n)=>n[t]:null}function v(t,e){let{ownerState:n}=e,i=Object(r.a)(e,c);const a="function"==typeof t?t(Object(o.a)({ownerState:n},i)):t;if(Array.isArray(a))return a.flatMap((t=>v(t,Object(o.a)({ownerState:n},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:t=[]}=a;let e=Object(r.a)(a,u);return t.forEach((t=>{let r=!0;"function"==typeof t.props?r=t.props(Object(o.a)({ownerState:n},i)):Object.keys(t.props).forEach((e=>{(null==n?void 0:n[e])!==t.props[e]&&i[e]!==t.props[e]&&(r=!1)})),r&&(Array.isArray(e)||(e=[e]),e.push("function"==typeof t.style?t.style(Object(o.a)({ownerState:n},i)):t.style))})),e}return a}var b=n(36),y=n(24);const A=t=>p(t)&&"classes"!==t,S=function(t={}){const{themeId:e,defaultTheme:n=h,rootShouldForwardProp:s=p,slotShouldForwardProp:c=p}=t,u=t=>Object(l.a)(Object(o.a)({},t,{theme:m(Object(o.a)({},t,{defaultTheme:n,themeId:e}))}));return u.__mui_systemSx=!0,(t,l={})=>{Object(i.b)(t,(t=>t.filter((t=>!(null!=t&&t.__mui_systemSx)))));const{name:h,slot:b,skipVariantsResolver:y,skipSx:A,overridesResolver:S=g(f(b))}=l,C=Object(r.a)(l,d),x=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,w=A||!1;let O=p;"Root"===b||"root"===b?O=s:b?O=c:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(O=void 0);const E=Object(i.a)(t,Object(o.a)({shouldForwardProp:O,label:undefined},C)),j=t=>"function"==typeof t&&t.__emotion_real!==t||Object(a.b)(t)?r=>v(t,Object(o.a)({},r,{theme:m({theme:r.theme,defaultTheme:n,themeId:e})})):t,L=(r,...i)=>{let a=j(r);const s=i?i.map(j):[];h&&S&&s.push((t=>{const r=m(Object(o.a)({},t,{defaultTheme:n,themeId:e}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const i=r.components[h].styleOverrides,a={};return Object.entries(i).forEach((([e,n])=>{a[e]=v(n,Object(o.a)({},t,{theme:r}))})),S(t,a)})),h&&!x&&s.push((t=>{var r;const i=m(Object(o.a)({},t,{defaultTheme:n,themeId:e}));return v({variants:null==i||null==(r=i.components)||null==(r=r[h])?void 0:r.variants},Object(o.a)({},t,{theme:i}))})),w||s.push(u);const l=s.length-i.length;if(Array.isArray(r)&&l>0){const t=new Array(l).fill("");a=[...r,...t],a.raw=[...r.raw,...t]}const c=E(a,...s);return t.muiName&&(c.muiName=t.muiName),c};return E.withConfig&&(L.withConfig=E.withConfig),L}}({themeId:y.a,defaultTheme:b.a,rootShouldForwardProp:A});e.a=S},function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return U})),n.d(e,"d",(function(){return H})),n.d(e,"e",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"g",(function(){return $})),n.d(e,"h",(function(){return r})),n.d(e,"i",(function(){return V})),n.d(e,"j",(function(){return _}));var o,r,i,a,s,l,c,u,d={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=Array.isArray;function m(t,e){for(var n in e)t[n]=e[n];return t}function g(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,i,a,s={};for(a in e)"key"==a?r=e[a]:"ref"==a?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return b(t,s,r,i,null)}function b(t,e,n,o,a){var s={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(s),s}function y(){return{current:null}}function A(t){return t.children}function S(t,e){this.props=t,this.context=e}function C(t,e){if(null==e)return t.__?C(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?C(t):null}function x(t,e,n){var o,i=t.__v,a=i.__e,s=t.__P;if(s)return(o=m({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),I(s,o,i,t.__n,void 0!==s.ownerSVGElement,32&i.__u?[a]:null,e,null==a?C(i):a,!!(32&i.__u),n),o.__v=i.__v,o.__.__k[o.__i]=o,o.__d=void 0,o.__e!=a&&w(o),o}function w(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return w(t)}}function O(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||l)(E)}function E(){var t,e,n,o=[],i=[];for(a.sort(c);t=a.shift();)t.__d&&(n=a.length,e=x(t,o,i)||e,0===n||a.length>n?(M(o,e,i),i.length=o.length=0,e=void 0,a.sort(c)):e&&r.__c&&r.__c(e,p));e&&M(o,e,i),E.__r=0}function j(t,e,n,o,r,i,a,s,l,c,u){var h,f,m,g,v,b=o&&o.__k||p,y=e.length;for(n.__d=l,L(n,e,b),l=n.__d,h=0;h<y;h++)null!=(m=n.__k[h])&&"boolean"!=typeof m&&"function"!=typeof m&&(f=-1===m.__i?d:b[m.__i]||d,m.__i=h,I(t,m,f,r,i,a,s,l,c,u),g=m.__e,m.ref&&f.ref!=m.ref&&(f.ref&&F(f.ref,null,m),u.push(m.ref,m.__c||g,m)),null==v&&null!=g&&(v=g),65536&m.__u||f.__k===m.__k?l=k(m,l,t):"function"==typeof m.type&&void 0!==m.__d?l=m.__d:g&&(l=g.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=v}function L(t,e,n){var o,r,i,a,s,l=e.length,c=n.length,u=c,d=0;for(t.__k=[],o=0;o<l;o++)null!=(r=t.__k[o]=null==(r=e[o])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?b(null,r,null,null,r):f(r)?b(A,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?b(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=t,r.__b=t.__b+1,s=T(r,n,a=o+d,u),r.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==o+d&&(r.__u|=65536))):(i=n[o])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),z(i,i,!1),n[o]=null,u--);if(u)for(o=0;o<c;o++)null!=(i=n[o])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=C(i)),z(i,i))}function k(t,e,n){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=k(o[r],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function _(t,e){return e=e||[],null==t||"boolean"==typeof t||(f(t)?t.some((function(t){_(t,e)})):e.push(t)),e}function T(t,e,n,o){var r=t.key,i=t.type,a=n-1,s=n+1,l=e[n];if(null===l||l&&r==l.key&&i===l.type)return n;if(o>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<e.length;){if(a>=0){if((l=e[a])&&0==(131072&l.__u)&&r==l.key&&i===l.type)return a;a--}if(s<e.length){if((l=e[s])&&0==(131072&l.__u)&&r==l.key&&i===l.type)return s;s++}}return-1}function P(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||h.test(e)?n:n+"px"}function R(t,e,n,o,r){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||P(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||P(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n.u=o.u:(n.u=Date.now(),t.addEventListener(e,i?W:B,i)):t.removeEventListener(e,i?W:B,i);else{if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function B(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(r.event?r.event(t):t)}}function W(t){if(this.l)return this.l[t.type+!0](r.event?r.event(t):t)}function I(t,e,n,o,i,a,s,l,c,u){var d,p,h,g,v,b,y,C,x,w,O,E,L,k,_,T=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),a=[l=e.__e=n.__e]),(d=r.__b)&&d(e);t:if("function"==typeof T)try{if(C=e.props,x=(d=T.contextType)&&o[d.__c],w=d?x?x.props.value:d.__:o,n.__c?y=(p=e.__c=n.__c).__=p.__E:("prototype"in T&&T.prototype.render?e.__c=p=new T(C,w):(e.__c=p=new S(C,w),p.constructor=T,p.render=N),x&&x.sub(p),p.props=C,p.state||(p.state={}),p.context=w,p.__n=o,h=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=T.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=m({},p.__s)),m(p.__s,T.getDerivedStateFromProps(C,p.__s))),g=p.props,v=p.state,p.__v=e,h)null==T.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==T.getDerivedStateFromProps&&C!==g&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(C,w),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(C,p.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(p.props=C,p.state=p.__s,p.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[],p.__h.length&&s.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(C,p.__s,w),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(g,v,b)}))}if(p.context=w,p.props=C,p.__P=t,p.__e=!1,E=r.__r,L=0,"prototype"in T&&T.prototype.render){for(p.state=p.__s,p.__d=!1,E&&E(e),d=p.render(p.props,p.state,p.context),k=0;k<p._sb.length;k++)p.__h.push(p._sb[k]);p._sb=[]}else do{p.__d=!1,E&&E(e),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++L<25);p.state=p.__s,null!=p.getChildContext&&(o=m(m({},o),p.getChildContext())),h||null==p.getSnapshotBeforeUpdate||(b=p.getSnapshotBeforeUpdate(g,v)),j(t,f(_=null!=d&&d.type===A&&null==d.key?d.props.children:d)?_:[_],e,n,o,i,a,s,l,c,u),p.base=e.__e,e.__u&=-161,p.__h.length&&s.push(p),y&&(p.__E=p.__=null)}catch(t){e.__v=null,c||null!=a?(e.__e=l,e.__u|=c?160:32,a[a.indexOf(l)]=null):(e.__e=n.__e,e.__k=n.__k),r.__e(t,e,n)}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=D(n.__e,e,n,o,i,a,s,c,u);(d=r.diffed)&&d(e)}function M(t,e,n){for(var o=0;o<n.length;o++)F(n[o],n[++o],n[++o]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function D(t,e,n,r,i,a,s,l,c){var u,p,h,m,v,b,y,A=n.props,S=e.props,x=e.type;if("svg"===x&&(i=!0),null!=a)for(u=0;u<a.length;u++)if((v=a[u])&&"setAttribute"in v==!!x&&(x?v.localName===x:3===v.nodeType)){t=v,a[u]=null;break}if(null==t){if(null===x)return document.createTextNode(S);t=i?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,S.is&&S),a=null,l=!1}if(null===x)A===S||l&&t.data===S||(t.data=S);else{if(a=a&&o.call(t.childNodes),A=n.props||d,!l&&null!=a)for(A={},u=0;u<t.attributes.length;u++)A[(v=t.attributes[u]).name]=v.value;for(u in A)v=A[u],"children"==u||("dangerouslySetInnerHTML"==u?h=v:"key"===u||u in S||R(t,u,null,v,i));for(u in S)v=S[u],"children"==u?m=v:"dangerouslySetInnerHTML"==u?p=v:"value"==u?b=v:"checked"==u?y=v:"key"===u||l&&"function"!=typeof v||A[u]===v||R(t,u,v,A[u],i);if(p)l||h&&(p.__html===h.__html||p.__html===t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(h&&(t.innerHTML=""),j(t,f(m)?m:[m],e,n,r,i&&"foreignObject"!==x,a,s,a?a[0]:n.__k&&C(n,0),l,c),null!=a)for(u=a.length;u--;)null!=a[u]&&g(a[u]);l||(u="value",void 0!==b&&(b!==t[u]||"progress"===x&&!b||"option"===x&&b!==A[u])&&R(t,u,b,A[u],!1),u="checked",void 0!==y&&y!==t[u]&&R(t,u,y,A[u],!1))}return t}function F(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function z(t,e,n){var o,i;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||F(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&z(o[i],e,n||"function"!=typeof t.type);n||null==t.__e||g(t.__e),t.__=t.__e=t.__d=void 0}function N(t,e,n){return this.constructor(t,n)}function V(t,e,n){var i,a,s,l;r.__&&r.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,s=[],l=[],I(e,t=(!i&&n||e).__k=v(A,null,[t]),a||d,d,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?o.call(e.childNodes):null,s,!i&&n?n:a?a.__e:e.firstChild,i,l),t.__d=void 0,M(s,t,l)}function $(t,e){V(t,e,$)}function U(t,e,n){var r,i,a,s,l=m({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),e)"key"==a?r=e[a]:"ref"==a?i=e[a]:l[a]=void 0===e[a]&&void 0!==s?s[a]:e[a];return arguments.length>2&&(l.children=arguments.length>3?o.call(arguments,2):n),b(t.type,l,r||t.key,i||t.ref,null)}function H(t,e){var n={__c:e="__cC"+u++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,o;return this.getChildContext||(n=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,O(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}o=p.slice,r={__e:function(t,e,n,o){for(var r,i,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),a=r.__d),a)return r.__E=r}catch(e){t=e}throw t}},i=0,S.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof t&&(t=t(m({},n),this.props)),t&&m(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),O(this))},S.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},S.prototype.render=A,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},E.__r=0,u=0},function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return y}));var o=n(20),r=n(13),i=n(26);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(t){const e={};return n=>(void 0===e[n]&&(e[n]=t(n)),e[n])}((t=>{if(t.length>2){if(!l[t])return[t];t=l[t]}const[e,n]=t.split(""),o=a[e],r=s[n]||"";return Array.isArray(r)?r.map((t=>o+t)):[o+r]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(t,e,n,o){var i;const a=null!=(i=Object(r.b)(t,e,!1))?i:n;return"number"==typeof a?t=>"string"==typeof t?t:a*t:Array.isArray(a)?t=>"string"==typeof t?t:a[t]:"function"==typeof a?a:()=>{}}function f(t){return h(t,"spacing",8)}function m(t,e){if("string"==typeof e||null==e)return e;const n=t(Math.abs(e));return e>=0?n:"number"==typeof n?-n:`-${n}`}function g(t,e,n,r){if(-1===e.indexOf(n))return null;const i=function(t,e){return n=>t.reduce(((t,o)=>(t[o]=m(e,n),t)),{})}(c(n),r),a=t[n];return Object(o.b)(t,a,i)}function v(t,e){const n=f(t.theme);return Object.keys(t).map((o=>g(t,e,o,n))).reduce(i.a,{})}function b(t){return v(t,u)}function y(t){return v(t,d)}function A(t){return v(t,p)}b.propTypes={},b.filterProps=u,y.propTypes={},y.filterProps=d,A.propTypes={},A.filterProps=p},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n(98),r=n(36),i=n(24);function a({props:t,name:e}){return Object(o.a)({props:t,name:e,defaultTheme:r.a,themeId:i.a})}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a}));var o=n(57),r=n(20);function i(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){const n=`vars.${e}`.split(".").reduce(((t,e)=>t&&t[e]?t[e]:null),t);if(null!=n)return n}return e.split(".").reduce(((t,e)=>t&&null!=t[e]?t[e]:null),t)}function a(t,e,n,o=n){let r;return r="function"==typeof t?t(n):Array.isArray(t)?t[n]||o:i(t,n)||o,e&&(r=e(r,o,t)),r}e.a=function(t){const{prop:e,cssProperty:n=t.prop,themeKey:s,transform:l}=t,c=t=>{if(null==t[e])return null;const c=t[e],u=i(t.theme,s)||{};return Object(r.b)(t,c,(t=>{let r=a(u,l,t);return t===r&&"string"==typeof t&&(r=a(u,l,`${e}${"default"===t?"":Object(o.a)(t)}`,t)),!1===n?r:{[n]:r}}))};return c.propTypes={},c.filterProps=[e],c}},,,,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return Dt})),n.d(e,"b",(function(){return $t})),n.d(e,"c",(function(){return Gt})),n.d(e,"d",(function(){return Yt}));var o=n(2),r=(n(82),n(0)),i=n(70),a=n.n(i),s=n(31),l=n(71),c="undefined"!=typeof t&&void 0!==t.env&&(t.env.REACT_APP_SC_ATTR||t.env.SC_ATTR)||"data-styled",u="active",d="data-styled-version",p="6.1.8",h="/*!sc*/\n",f="undefined"!=typeof window&&"HTMLElement"in window,m=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==t.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==t.env.REACT_APP_SC_DISABLE_SPEEDY&&t.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof t&&void 0!==t.env&&void 0!==t.env.SC_DISABLE_SPEEDY&&""!==t.env.SC_DISABLE_SPEEDY&&("false"!==t.env.SC_DISABLE_SPEEDY&&t.env.SC_DISABLE_SPEEDY)),g=(new Set,Object.freeze([])),v=Object.freeze({});function b(t,e,n){return void 0===n&&(n=v),t.theme!==n.theme&&t.theme||e||n.theme}var y=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,S=/(^-|-$)/g;function C(t){return t.replace(A,"-").replace(S,"")}var x=/(a)(d)/gi,w=function(t){return String.fromCharCode(t+(t>25?39:97))};function O(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=w(e%52)+n;return(w(e%52)+n).replace(x,"$1-$2")}var E,j=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},L=function(t){return j(5381,t)};function k(t){return O(L(t)>>>0)}function _(t){return t.displayName||t.name||"Component"}function T(t){return"string"==typeof t&&!0}var P="function"==typeof Symbol&&Symbol.for,R=P?Symbol.for("react.memo"):60115,B=P?Symbol.for("react.forward_ref"):60112,W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},I={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},D=((E={})[B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E[R]=M,E);function F(t){return("type"in(e=t)&&e.type.$$typeof)===R?M:"$$typeof"in t?D[t.$$typeof]:W;var e}var z=Object.defineProperty,N=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,U=Object.getPrototypeOf,H=Object.prototype;function G(t,e,n){if("string"!=typeof e){if(H){var o=U(e);o&&o!==H&&G(t,o,n)}var r=N(e);V&&(r=r.concat(V(e)));for(var i=F(t),a=F(e),s=0;s<r.length;++s){var l=r[s];if(!(l in I||n&&n[l]||a&&l in a||i&&l in i)){var c=$(e,l);try{z(t,l,c)}catch(t){}}}}return t}function Y(t){return"function"==typeof t}function X(t){return"object"==typeof t&&"styledComponentId"in t}function K(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function Q(t,e){if(0===t.length)return"";for(var n=t[0],o=1;o<t.length;o++)n+=e?e+t[o]:t[o];return n}function q(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function Z(t,e,n){if(void 0===n&&(n=!1),!n&&!q(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var o=0;o<e.length;o++)t[o]=Z(t[o],e[o]);else if(q(e))for(var o in e)t[o]=Z(t[o],e[o]);return t}function J(t,e){Object.defineProperty(t,"toString",{value:e})}function tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var et=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;t>=r;)if((r<<=1)<0)throw tt(16,"".concat(t));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),s=(i=0,e.length);i<s;i++)this.tag.insertRule(a,e[i])&&(this.groupSizes[t]++,a++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),o=n+e;this.groupSizes[t]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),r=o+n,i=o;i<r;i++)e+="".concat(this.tag.getRule(i)).concat(h);return e},t}(),nt=new Map,ot=new Map,rt=1,it=function(t){if(nt.has(t))return nt.get(t);for(;ot.has(rt);)rt++;var e=rt++;return nt.set(t,e),ot.set(e,t),e},at=function(t,e){rt=e+1,nt.set(t,e),ot.set(e,t)},st="style[".concat(c,"][").concat(d,'="').concat(p,'"]'),lt=new RegExp("^".concat(c,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ct=function(t,e,n){for(var o,r=n.split(","),i=0,a=r.length;i<a;i++)(o=r[i])&&t.registerName(e,o)},ut=function(t,e){for(var n,o=(null!==(n=e.textContent)&&void 0!==n?n:"").split(h),r=[],i=0,a=o.length;i<a;i++){var s=o[i].trim();if(s){var l=s.match(lt);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(at(u,c),ct(t,u,l[3]),t.getTag().insertRules(c,r)),r.length=0}else r.push(s)}}};function dt(){return n.nc}var pt=function(t){var e=document.head,n=t||e,o=document.createElement("style"),r=function(t){var e=Array.from(t.querySelectorAll("style[".concat(c,"]")));return e[e.length-1]}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(c,u),o.setAttribute(d,p);var a=dt();return a&&o.setAttribute("nonce",a),n.insertBefore(o,i),o},ht=function(){function t(t){this.element=pt(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,o=e.length;n<o;n++){var r=e[n];if(r.ownerNode===t)return r}throw tt(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),ft=function(){function t(t){this.element=pt(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),mt=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),gt=f,vt={isServer:!f,useCSSOMInjection:!m},bt=function(){function t(t,e,n){void 0===t&&(t=v),void 0===e&&(e={});var r=this;this.options=Object(o.a)(Object(o.a)({},vt),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&f&>&&(gt=!1,function(t){for(var e=document.querySelectorAll(st),n=0,o=e.length;n<o;n++){var r=e[n];r&&r.getAttribute(c)!==u&&(ut(t,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),J(this,(function(){return function(t){for(var e=t.getTag(),n=e.length,o="",r=function(n){var r=function(t){return ot.get(t)}(n);if(void 0===r)return"continue";var i=t.names.get(r),a=e.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(c,".g").concat(n,'[id="').concat(r,'"]'),l="";void 0!==i&&i.forEach((function(t){t.length>0&&(l+="".concat(t,","))})),o+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(h)},i=0;i<n;i++)r(i);return o}(r)}))}return t.registerId=function(t){return it(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(Object(o.a)(Object(o.a)({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.useCSSOMInjection,n=t.target;return t.isServer?new mt(n):e?new ht(n):new ft(n)}(this.options),new et(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(it(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(it(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(it(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),yt=/&/g,At=/^\s*\/\/.*$/gm;function St(t,e){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map((function(t){return"".concat(e," ").concat(t)}))),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=St(t.children,e)),t}))}function Ct(t){var e,n,o,r=void 0===t?v:t,i=r.options,a=void 0===i?v:i,l=r.plugins,c=void 0===l?g:l,u=function(t,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(e):t},d=c.slice();d.push((function(t){t.type===s.a&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(yt,n).replace(o,u))})),a.prefix&&d.push(s.d),d.push(s.g);var p=function(t,r,i,l){void 0===r&&(r=""),void 0===i&&(i=""),void 0===l&&(l="&"),e=l,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=t.replace(At,""),u=s.b(i||r?"".concat(i," ").concat(r," { ").concat(c," }"):c);a.namespace&&(u=St(u,a.namespace));var p=[];return s.f(u,s.c(d.concat(s.e((function(t){return p.push(t)}))))),p};return p.hash=c.length?c.reduce((function(t,e){return e.name||tt(15),j(t,e.name)}),5381).toString():"",p}var xt=new bt,wt=Ct(),Ot=r.default.createContext({shouldForwardProp:void 0,styleSheet:xt,stylis:wt}),Et=(Ot.Consumer,r.default.createContext(void 0));function jt(){return Object(r.useContext)(Ot)}function Lt(t){var e=Object(r.useState)(t.stylisPlugins),n=e[0],o=e[1],i=jt().styleSheet,s=Object(r.useMemo)((function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target,i]),l=Object(r.useMemo)((function(){return Ct({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})}),[t.enableVendorPrefixes,t.namespace,n]);Object(r.useEffect)((function(){a()(n,t.stylisPlugins)||o(t.stylisPlugins)}),[t.stylisPlugins]);var c=Object(r.useMemo)((function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:s,stylis:l}}),[t.shouldForwardProp,s,l]);return r.default.createElement(Ot.Provider,{value:c},r.default.createElement(Et.Provider,{value:l},t.children))}var kt=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=wt);var o=n.name+e.hash;t.hasNameForId(n.id,o)||t.insertRules(n.id,o,e(n.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,J(this,(function(){throw tt(12,String(n.name))}))}return t.prototype.getName=function(t){return void 0===t&&(t=wt),this.name+t.hash},t}(),_t=function(t){return t>="A"&&t<="Z"};function Tt(t){for(var e="",n=0;n<t.length;n++){var o=t[n];if(1===n&&"-"===o&&"-"===t[0])return t;_t(o)?e+="-"+o.toLowerCase():e+=o}return e.startsWith("ms-")?"-"+e:e}var Pt=function(t){return null==t||!1===t||""===t},Rt=function(t){var e,n,r=[];for(var i in t){var a=t[i];t.hasOwnProperty(i)&&!Pt(a)&&(Array.isArray(a)&&a.isCss||Y(a)?r.push("".concat(Tt(i),":"),a,";"):q(a)?r.push.apply(r,Object(o.e)(Object(o.e)(["".concat(i," {")],Rt(a),!1),["}"],!1)):r.push("".concat(Tt(i),": ").concat((e=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||e in l.a||e.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Bt(t,e,n,o){return Pt(t)?[]:X(t)?[".".concat(t.styledComponentId)]:Y(t)?!Y(r=t)||r.prototype&&r.prototype.isReactComponent||!e?[t]:Bt(t(e),e,n,o):t instanceof kt?n?(t.inject(n,o),[t.getName(o)]):[t]:q(t)?Rt(t):Array.isArray(t)?Array.prototype.concat.apply(g,t.map((function(t){return Bt(t,e,n,o)}))):[t.toString()];var r}function Wt(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Y(n)&&!X(n))return!1}return!0}var It=L(p),Mt=function(){function t(t,e,n){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Wt(t),this.componentId=e,this.baseHash=j(It,e),this.baseStyle=n,bt.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))o=K(o,this.staticRulesId);else{var r=Q(Bt(this.rules,t,e,n)),i=O(j(this.baseHash,r)>>>0);if(!e.hasNameForId(this.componentId,i)){var a=n(r,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}o=K(o,i),this.staticRulesId=i}else{for(var s=j(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=Q(Bt(u,t,e,n));s=j(s,d+c),l+=d}}if(l){var p=O(s>>>0);e.hasNameForId(this.componentId,p)||e.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),o=K(o,p)}}return o},t}(),Dt=r.default.createContext(void 0);Dt.Consumer;var Ft={};new Set;function zt(t,e,n){var i=X(t),a=t,s=!T(t),l=e.attrs,c=void 0===l?g:l,u=e.componentId,d=void 0===u?function(t,e){var n="string"!=typeof t?"sc":C(t);Ft[n]=(Ft[n]||0)+1;var o="".concat(n,"-").concat(k(p+n+Ft[n]));return e?"".concat(e,"-").concat(o):o}(e.displayName,e.parentComponentId):u,h=e.displayName,f=void 0===h?function(t){return T(t)?"styled.".concat(t):"Styled(".concat(_(t),")")}(t):h,m=e.displayName&&e.componentId?"".concat(C(e.displayName),"-").concat(e.componentId):e.componentId||d,A=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,S=e.shouldForwardProp;if(i&&a.shouldForwardProp){var x=a.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;S=function(t,e){return x(t,e)&&w(t,e)}}else S=x}var O=new Mt(n,m,i?a.componentStyle:void 0);function E(t,e){return function(t,e,n){var i=t.attrs,a=t.componentStyle,s=t.defaultProps,l=t.foldedComponentIds,c=t.styledComponentId,u=t.target,d=r.default.useContext(Dt),p=jt(),h=t.shouldForwardProp||p.shouldForwardProp,f=b(e,d,s)||v,m=function(t,e,n){for(var r,i=Object(o.a)(Object(o.a)({},e),{className:void 0,theme:n}),a=0;a<t.length;a+=1){var s=Y(r=t[a])?r(i):r;for(var l in s)i[l]="className"===l?K(i[l],s[l]):"style"===l?Object(o.a)(Object(o.a)({},i[l]),s[l]):s[l]}return e.className&&(i.className=K(i.className,e.className)),i}(i,e,f),g=m.as||u,A={};for(var S in m)void 0===m[S]||"$"===S[0]||"as"===S||"theme"===S&&m.theme===f||("forwardedAs"===S?A.as=m.forwardedAs:h&&!h(S,g)||(A[S]=m[S]));var C=function(t,e){var n=jt();return t.generateAndInjectStyles(e,n.styleSheet,n.stylis)}(a,m),x=K(l,c);return C&&(x+=" "+C),m.className&&(x+=" "+m.className),A[T(g)&&!y.has(g)?"class":"className"]=x,A.ref=n,Object(r.createElement)(g,A)}(j,t,e)}E.displayName=f;var j=r.default.forwardRef(E);return j.attrs=A,j.componentStyle=O,j.displayName=f,j.shouldForwardProp=S,j.foldedComponentIds=i?K(a.foldedComponentIds,a.styledComponentId):"",j.styledComponentId=m,j.target=i?a.target:t,Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var o=0,r=e;o<r.length;o++)Z(t,r[o],!0);return t}({},a.defaultProps,t):t}}),J(j,(function(){return".".concat(j.styledComponentId)})),s&&G(j,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),j}function Nt(t,e){for(var n=[t[0]],o=0,r=e.length;o<r;o+=1)n.push(e[o],t[o+1]);return n}var Vt=function(t){return Object.assign(t,{isCss:!0})};function $t(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Y(t)||q(t))return Vt(Bt(Nt(g,Object(o.e)([t],e,!0))));var r=t;return 0===e.length&&1===r.length&&"string"==typeof r[0]?Bt(r):Vt(Bt(Nt(r,e)))}function Ut(t,e,n){if(void 0===n&&(n=v),!e)throw tt(1,e);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return t(e,n,$t.apply(void 0,Object(o.e)([r],i,!1)))};return r.attrs=function(r){return Ut(t,e,Object(o.a)(Object(o.a)({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Ut(t,e,Object(o.a)(Object(o.a)({},n),r))},r}var Ht=function(t){return Ut(zt,t)},Gt=Ht;y.forEach((function(t){Gt[t]=Ht(t)}));!function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=Wt(t),bt.registerId(this.componentId+1)}t.prototype.createStyles=function(t,e,n,o){var r=o(Q(Bt(this.rules,e,n,o)),""),i=this.componentId+t;n.insertRules(i,i,r)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,n,o){t>2&&bt.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,o)}}();function Yt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Q($t.apply(void 0,Object(o.e)([t],e,!1))),i=k(r);return new kt(i,r)}(function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=dt(),o=Q([n&&'nonce="'.concat(n,'"'),"".concat(c,'="true"'),"".concat(d,'="').concat(p,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw tt(2);return t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)throw tt(2);var n=((e={})[c]="",e[d]=p,e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),i=dt();return i&&(n.nonce=i),[r.default.createElement("style",Object(o.a)({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new bt({isServer:!0}),this.sealed=!1}t.prototype.collectStyles=function(t){if(this.sealed)throw tt(2);return r.default.createElement(Lt,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw tt(3)}})(),"__sc-".concat(c,"__")}).call(this,n(64))},function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l}));n(1),n(83),n(26);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},r={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${o[t]}px)`};function i(t,e,n){const i=t.theme||{};if(Array.isArray(e)){const t=i.breakpoints||r;return e.reduce(((o,r,i)=>(o[t.up(t.keys[i])]=n(e[i]),o)),{})}if("object"==typeof e){const t=i.breakpoints||r;return Object.keys(e).reduce(((r,i)=>{if(-1!==Object.keys(t.values||o).indexOf(i)){r[t.up(i)]=n(e[i],i)}else{const t=i;r[t]=e[t]}return r}),{})}return n(e)}function a(t={}){var e;return(null==(e=t.keys)?void 0:e.reduce(((e,n)=>(e[t.up(n)]={},e)),{}))||{}}function s(t,e){return t.reduce(((t,e)=>{const n=t[e];return(!n||0===Object.keys(n).length)&&delete t[e],t}),e)}function l({values:t,breakpoints:e,base:n}){const o=n||function(t,e){if("object"!=typeof t)return{};const n={},o=Object.keys(e);return Array.isArray(t)?o.forEach(((e,o)=>{o<t.length&&(n[e]=!0)})):o.forEach((e=>{null!=t[e]&&(n[e]=!0)})),n}(t,e),r=Object.keys(o);if(0===r.length)return t;let i;return r.reduce(((e,n,o)=>(Array.isArray(t)?(e[n]=null!=t[o]?t[o]:t[i],i=o):"object"==typeof t?(e[n]=null!=t[n]?t[n]:t[i],i=n):e[n]=t,e)),{})}},,function(t,e,n){"use strict";var o=n(100);e.a=o.a},,function(t,e,n){"use strict";e.a="$$material"},function(t,e,n){"use strict";var o=n(102);e.a=o.a},function(t,e,n){"use strict";var o=n(83);e.a=function(t,e){return e?Object(o.a)(t,e,{clone:!1}):t}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=n(65)},function(t,e,n){"use strict";var o=n(84);e.a=o.a},function(t,e,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var i=typeof o;if("string"===i||"number"===i)t.push(o);else if(Array.isArray(o)){if(o.length){var a=r.apply(null,o);a&&t.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)n.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}t.exports?(r.default=r,t.exports=r):void 0===(o=function(){return r}.apply(e,[]))||(t.exports=o)}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return G})),n.d(e,"c",(function(){return tt})),n.d(e,"d",(function(){return nt})),n.d(e,"e",(function(){return et})),n.d(e,"f",(function(){return Z})),n.d(e,"g",(function(){return J}));var o="-ms-",r="-moz-",i="-webkit-",a="comm",s="rule",l="decl",c="@keyframes",u=Math.abs,d=String.fromCharCode,p=Object.assign;function h(t){return t.trim()}function f(t,e){return(t=e.exec(t))?t[0]:t}function m(t,e,n){return t.replace(e,n)}function g(t,e,n){return t.indexOf(e,n)}function v(t,e){return 0|t.charCodeAt(e)}function b(t,e,n){return t.slice(e,n)}function y(t){return t.length}function A(t){return t.length}function S(t,e){return e.push(t),t}function C(t,e){return t.map(e).join("")}function x(t,e){return t.filter((function(t){return!f(t,e)}))}var w=1,O=1,E=0,j=0,L=0,k="";function _(t,e,n,o,r,i,a,s){return{value:t,root:e,parent:n,type:o,props:r,children:i,line:w,column:O,length:a,return:"",siblings:s}}function T(t,e){return p(_("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function P(t){for(;t.root;)t=T(t.root,{children:[t]});S(t,t.siblings)}function R(){return L=j<E?v(k,j++):0,O++,10===L&&(O=1,w++),L}function B(){return v(k,j)}function W(){return j}function I(t,e){return b(k,t,e)}function M(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D(t){return w=O=1,E=y(k=t),j=0,[]}function F(t){return k="",t}function z(t){return h(I(j-1,$(91===t?t+2:40===t?t+1:t)))}function N(t){for(;(L=B())&&L<33;)R();return M(t)>2||M(L)>3?"":" "}function V(t,e){for(;--e&&R()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return I(t,W()+(e<6&&32==B()&&32==R()))}function $(t){for(;R();)switch(L){case t:return j;case 34:case 39:34!==t&&39!==t&&$(L);break;case 40:41===t&&$(t);break;case 92:R()}return j}function U(t,e){for(;R()&&t+L!==57&&(t+L!==84||47!==B()););return"/*"+I(e,j-1)+"*"+d(47===t?t:R())}function H(t){for(;!M(B());)R();return I(t,j)}function G(t){return F(Y("",null,null,null,[""],t=D(t),0,[0],t))}function Y(t,e,n,o,r,i,a,s,l){for(var c=0,p=0,h=a,f=0,b=0,A=0,C=1,x=1,E=1,_=0,T="",P=r,I=i,M=o,D=T;x;)switch(A=_,_=R()){case 40:if(108!=A&&58==v(D,h-1)){-1!=g(D+=m(z(_),"&","&\f"),"&\f",u(c?s[c-1]:0))&&(E=-1);break}case 34:case 39:case 91:D+=z(_);break;case 9:case 10:case 13:case 32:D+=N(A);break;case 92:D+=V(W()-1,7);continue;case 47:switch(B()){case 42:case 47:S(K(U(R(),W()),e,n,l),l);break;default:D+="/"}break;case 123*C:s[c++]=y(D)*E;case 125*C:case 59:case 0:switch(_){case 0:case 125:x=0;case 59+p:-1==E&&(D=m(D,/\f/g,"")),b>0&&y(D)-h&&S(b>32?Q(D+";",o,n,h-1,l):Q(m(D," ","")+";",o,n,h-2,l),l);break;case 59:D+=";";default:if(S(M=X(D,e,n,c,p,r,s,T,P=[],I=[],h,i),i),123===_)if(0===p)Y(D,e,M,M,P,i,h,s,I);else switch(99===f&&110===v(D,3)?100:f){case 100:case 108:case 109:case 115:Y(t,M,M,o&&S(X(t,M,M,0,0,r,s,T,r,P=[],h,I),I),r,I,h,s,o?P:I);break;default:Y(D,M,M,M,[""],I,0,s,I)}}c=p=b=0,C=E=1,T=D="",h=a;break;case 58:h=1+y(D),b=A;default:if(C<1)if(123==_)--C;else if(125==_&&0==C++&&125==(L=j>0?v(k,--j):0,O--,10===L&&(O=1,w--),L))continue;switch(D+=d(_),_*C){case 38:E=p>0?1:(D+="\f",-1);break;case 44:s[c++]=(y(D)-1)*E,E=1;break;case 64:45===B()&&(D+=z(R())),f=B(),p=h=y(T=D+=H(W())),_++;break;case 45:45===A&&2==y(D)&&(C=0)}}return i}function X(t,e,n,o,r,i,a,l,c,d,p,f){for(var g=r-1,v=0===r?i:[""],y=A(v),S=0,C=0,x=0;S<o;++S)for(var w=0,O=b(t,g+1,g=u(C=a[S])),E=t;w<y;++w)(E=h(C>0?v[w]+" "+O:m(O,/&\f/g,v[w])))&&(c[x++]=E);return _(t,e,n,0===r?s:l,c,d,p,f)}function K(t,e,n,o){return _(t,e,n,a,d(L),b(t,2,-2),0,o)}function Q(t,e,n,o,r){return _(t,e,n,l,b(t,0,o),b(t,o+1,-1),o,r)}function q(t,e,n){switch(function(t,e){return 45^v(t,0)?(((e<<2^v(t,0))<<2^v(t,1))<<2^v(t,2))<<2^v(t,3):0}(t,e)){case 5103:return i+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i+t+t;case 4789:return r+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i+t+r+t+o+t+t;case 5936:switch(v(t,e+11)){case 114:return i+t+o+m(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i+t+o+m(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i+t+o+m(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return i+t+o+t+t;case 6165:return i+t+o+"flex-"+t+t;case 5187:return i+t+m(t,/(\w+).+(:[^]+)/,i+"box-$1$2"+o+"flex-$1$2")+t;case 5443:return i+t+o+"flex-item-"+m(t,/flex-|-self/g,"")+(f(t,/flex-|baseline/)?"":o+"grid-row-"+m(t,/flex-|-self/g,""))+t;case 4675:return i+t+o+"flex-line-pack"+m(t,/align-content|flex-|-self/g,"")+t;case 5548:return i+t+o+m(t,"shrink","negative")+t;case 5292:return i+t+o+m(t,"basis","preferred-size")+t;case 6060:return i+"box-"+m(t,"-grow","")+i+t+o+m(t,"grow","positive")+t;case 4554:return i+m(t,/([^-])(transform)/g,"$1"+i+"$2")+t;case 6187:return m(m(m(t,/(zoom-|grab)/,i+"$1"),/(image-set)/,i+"$1"),t,"")+t;case 5495:case 3959:return m(t,/(image-set\([^]*)/,i+"$1$`$1");case 4968:return m(m(t,/(.+:)(flex-)?(.*)/,i+"box-pack:$3"+o+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i+t+t;case 4200:if(!f(t,/flex-|baseline/))return o+"grid-column-align"+b(t,e)+t;break;case 2592:case 3360:return o+m(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,f(t.props,/grid-\w+-end/)}))?~g(t+(n=n[e].value),"span",0)?t:o+m(t,"-start","")+t+o+"grid-row-span:"+(~g(n,"span",0)?f(n,/\d+/):+f(n,/\d+/)-+f(t,/\d+/))+";":o+m(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return f(t.props,/grid-\w+-start/)}))?t:o+m(m(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return m(t,/(.+)-inline(.+)/,i+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(y(t)-1-e>6)switch(v(t,e+1)){case 109:if(45!==v(t,e+4))break;case 102:return m(t,/(.+:)(.+)-([^]+)/,"$1"+i+"$2-$3$1"+r+(108==v(t,e+3)?"$3":"$2-$3"))+t;case 115:return~g(t,"stretch",0)?q(m(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return m(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,i,a,s,l){return o+n+":"+r+l+(i?o+n+"-span:"+(a?s:+s-+r)+l:"")+t}));case 4949:if(121===v(t,e+6))return m(t,":",":"+i)+t;break;case 6444:switch(v(t,45===v(t,14)?18:11)){case 120:return m(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+i+(45===v(t,14)?"inline-":"")+"box$3$1"+i+"$2$3$1"+o+"$2box$3")+t;case 100:return m(t,":",":"+o)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return m(t,"scroll-","scroll-snap-")+t}return t}function Z(t,e){for(var n="",o=0;o<t.length;o++)n+=e(t[o],o,t,e)||"";return n}function J(t,e,n,o){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case l:return t.return=t.return||t.value;case a:return"";case c:return t.return=t.value+"{"+Z(t.children,o)+"}";case s:if(!y(t.value=t.props.join(",")))return""}return y(n=Z(t.children,o))?t.return=t.value+"{"+n+"}":""}function tt(t){var e=A(t);return function(n,o,r,i){for(var a="",s=0;s<e;s++)a+=t[s](n,o,r,i)||"";return a}}function et(t){return function(e){e.root||(e=e.return)&&t(e)}}function nt(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case l:return void(t.return=q(t.value,t.length,n));case c:return Z([T(t,{value:m(t.value,"@","@"+i)})],r);case s:if(t.length)return C(n=t.props,(function(e){switch(f(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":P(T(t,{props:[m(e,/:(read-\w+)/,":-moz-$1")]})),P(T(t,{props:[e]})),p(t,{props:x(n,r)});break;case"::placeholder":P(T(t,{props:[m(e,/:(plac\w+)/,":"+i+"input-$1")]})),P(T(t,{props:[m(e,/:(plac\w+)/,":-moz-$1")]})),P(T(t,{props:[m(e,/:(plac\w+)/,o+"input-$1")]})),P(T(t,{props:[e]})),p(t,{props:x(n,r)})}return""}))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var o=n(19);function r(t,e){let n;return n=e?Object(o.c)(t).withConfig({displayName:e.label,shouldForwardProp:e.shouldForwardProp}):Object(o.c)(t),n}const i=(t,e)=>{t.componentStyle&&(t.componentStyle.rules=e(t.componentStyle.rules))}},function(t,e,n){"use strict";var o=n(85);e.a=o.a},function(t,e,n){"use strict";var o=n(103);e.a=o.a},,function(t,e,n){"use strict";var o=n(80);const r=Object(o.a)();e.a=r},function(t,e,n){"use strict";var o=n(9),r=n(13),i=n(26);var a=function(...t){const e=t.reduce(((t,e)=>(e.filterProps.forEach((n=>{t[n]=e})),t)),{}),n=t=>Object.keys(t).reduce(((n,o)=>e[o]?Object(i.a)(n,e[o](t)):n),{});return n.propTypes={},n.filterProps=t.reduce(((t,e)=>t.concat(e.filterProps)),[]),n},s=n(20);function l(t){return"number"!=typeof t?t:`${t}px solid`}function c(t,e){return Object(r.a)({prop:t,themeKey:"borders",transform:e})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),b=c("borderBottomColor"),y=c("borderLeftColor"),A=c("outline",l),S=c("outlineColor"),C=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const e=Object(o.b)(t.theme,"shape.borderRadius",4,"borderRadius"),n=t=>({borderRadius:Object(o.c)(e,t)});return Object(s.b)(t,t.borderRadius,n)}return null};C.propTypes={},C.filterProps=["borderRadius"];a(u,d,p,h,f,m,g,v,b,y,C,A,S);const x=t=>{if(void 0!==t.gap&&null!==t.gap){const e=Object(o.b)(t.theme,"spacing",8,"gap"),n=t=>({gap:Object(o.c)(e,t)});return Object(s.b)(t,t.gap,n)}return null};x.propTypes={},x.filterProps=["gap"];const w=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const e=Object(o.b)(t.theme,"spacing",8,"columnGap"),n=t=>({columnGap:Object(o.c)(e,t)});return Object(s.b)(t,t.columnGap,n)}return null};w.propTypes={},w.filterProps=["columnGap"];const O=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const e=Object(o.b)(t.theme,"spacing",8,"rowGap"),n=t=>({rowGap:Object(o.c)(e,t)});return Object(s.b)(t,t.rowGap,n)}return null};O.propTypes={},O.filterProps=["rowGap"];a(x,w,O,Object(r.a)({prop:"gridColumn"}),Object(r.a)({prop:"gridRow"}),Object(r.a)({prop:"gridAutoFlow"}),Object(r.a)({prop:"gridAutoColumns"}),Object(r.a)({prop:"gridAutoRows"}),Object(r.a)({prop:"gridTemplateColumns"}),Object(r.a)({prop:"gridTemplateRows"}),Object(r.a)({prop:"gridTemplateAreas"}),Object(r.a)({prop:"gridArea"}));function E(t,e){return"grey"===e?e:t}a(Object(r.a)({prop:"color",themeKey:"palette",transform:E}),Object(r.a)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),Object(r.a)({prop:"backgroundColor",themeKey:"palette",transform:E}));function j(t){return t<=1&&0!==t?100*t+"%":t}const L=Object(r.a)({prop:"width",transform:j}),k=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const e=e=>{var n,o;const r=(null==(n=t.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[e])||s.e[e];return r?"px"!==(null==(o=t.theme)||null==(o=o.breakpoints)?void 0:o.unit)?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:j(e)}};return Object(s.b)(t,t.maxWidth,e)}return null};k.filterProps=["maxWidth"];const _=Object(r.a)({prop:"minWidth",transform:j}),T=Object(r.a)({prop:"height",transform:j}),P=Object(r.a)({prop:"maxHeight",transform:j}),R=Object(r.a)({prop:"minHeight",transform:j});Object(r.a)({prop:"size",cssProperty:"width",transform:j}),Object(r.a)({prop:"size",cssProperty:"height",transform:j});a(L,k,_,T,P,R,Object(r.a)({prop:"boxSizing"}));const B={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:o.e},pt:{style:o.e},pr:{style:o.e},pb:{style:o.e},pl:{style:o.e},px:{style:o.e},py:{style:o.e},padding:{style:o.e},paddingTop:{style:o.e},paddingRight:{style:o.e},paddingBottom:{style:o.e},paddingLeft:{style:o.e},paddingX:{style:o.e},paddingY:{style:o.e},paddingInline:{style:o.e},paddingInlineStart:{style:o.e},paddingInlineEnd:{style:o.e},paddingBlock:{style:o.e},paddingBlockStart:{style:o.e},paddingBlockEnd:{style:o.e},m:{style:o.d},mt:{style:o.d},mr:{style:o.d},mb:{style:o.d},ml:{style:o.d},mx:{style:o.d},my:{style:o.d},margin:{style:o.d},marginTop:{style:o.d},marginRight:{style:o.d},marginBottom:{style:o.d},marginLeft:{style:o.d},marginX:{style:o.d},marginY:{style:o.d},marginInline:{style:o.d},marginInlineStart:{style:o.d},marginInlineEnd:{style:o.d},marginBlock:{style:o.d},marginBlockStart:{style:o.d},marginBlockEnd:{style:o.d},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:O},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:j},maxWidth:{style:k},minWidth:{transform:j},height:{transform:j},maxHeight:{transform:j},minHeight:{transform:j},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};e.a=B},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var o=n(1),r=n(0),i=n(4),a=n(6),s=n(131),l=n(5),c=n(11),u=n(7),d=n(130),p=n(96);function h(t){return Object(p.a)("MuiSvgIcon",t)}Object(d.a)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var f=n(3);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=Object(u.a)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${Object(l.a)(n.color)}`],e[`fontSize${Object(l.a)(n.fontSize)}`]]}})((({theme:t,ownerState:e})=>{var n,o,r,i,a,s,l,c,u,d,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(r=t.transitions)||null==(r=r.duration)?void 0:r.shorter}),fontSize:{inherit:"inherit",small:(null==(i=t.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=t.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=t.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(d=null==(p=(t.vars||t).palette)||null==(p=p[e.color])?void 0:p.main)?d:{action:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(t.vars||t).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[e.color]}})),v=r.forwardRef((function(t,e){const n=Object(c.a)({props:t,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:v="svg",fontSize:b="medium",htmlColor:y,inheritViewBox:A=!1,titleAccess:S,viewBox:C="0 0 24 24"}=n,x=Object(i.a)(n,m),w=r.isValidElement(u)&&"svg"===u.type,O=Object(o.a)({},n,{color:p,component:v,fontSize:b,instanceFontSize:t.fontSize,inheritViewBox:A,viewBox:C,hasSvgAsChild:w}),E={};A||(E.viewBox=C);const j=(t=>{const{color:e,fontSize:n,classes:o}=t,r={root:["root","inherit"!==e&&`color${Object(l.a)(e)}`,`fontSize${Object(l.a)(n)}`]};return Object(s.a)(r,h,o)})(O);return Object(f.jsxs)(g,Object(o.a)({as:v,className:Object(a.a)(j.root,d),focusable:"false",color:y,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:e},E,x,w&&u.props,{ownerState:O,children:[w?u.props.children:u,S?Object(f.jsx)("title",{children:S}):null]}))}));v.muiName="SvgIcon";var b=v;function y(t,e){function n(n,r){return Object(f.jsx)(b,Object(o.a)({"data-testid":`${e}Icon`,ref:r},n,{children:t}))}return n.muiName=b.muiName,r.memo(r.forwardRef(n))}},function(t,e,n){"use strict";var o=n(0),r=n(81);let i=!0,a=!1;const s=new r.a,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(t){t.metaKey||t.altKey||t.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function p(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(t){}return i||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!l[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}e.a=function(){const t=o.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",c,!0),e.addEventListener("mousedown",u,!0),e.addEventListener("pointerdown",u,!0),e.addEventListener("touchstart",u,!0),e.addEventListener("visibilitychange",d,!0))}),[]),e=o.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!p(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(a=!0,s.start(100,(()=>{a=!1})),e.current=!1,!0)},ref:t}}},function(t,e,n){"use strict";e.a=function(t,e=166){let n;function o(...o){clearTimeout(n),n=setTimeout((()=>{t.apply(this,o)}),e)}return o.clear=()=>{clearTimeout(n)},o}},function(t,e,n){"use strict";var o=n(0);e.a=function(t,e){var n,r;return o.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}},function(t,e,n){"use strict";var o=n(104),r=n(43);const i=Object(o.a)();e.a=function(t=i){return Object(r.a)(t)}},function(t,e,n){"use strict";var o=n(0),r=n(19);e.a=function(t=null){const e=o.useContext(r.a);return e&&(n=e,0!==Object.keys(n).length)?e:t;var n}},function(t,e,n){"use strict";var o,r=function(){return"undefined"==typeof o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if("undefined"==typeof t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},o=[],r=0;r<t.length;r++){var i=t[r],l=e.base?i[0]+e.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:u,updater:g(p,e),references:1}),o.push(u)}return o}function c(t){var e=document.createElement("style"),o=t.attributes||{};if("undefined"==typeof o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function h(t,e,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var f=null,m=0;function g(t,e){var n,o,r;if(e.singleton){var i=m++;n=f||(f=c(e)),o=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=c(e),o=h.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var r=s(n[o]);a[r].references--}for(var i=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);o&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},,,,,,,function(t,e,n){"use strict";n(1);e.a=function(t,e){return()=>null}},function(t,e,n){"use strict";(function(t){function n(){if("undefined"!=typeof t&&"undefined"!=typeof t.versions&&"undefined"!=typeof t.versions.node)return!1;if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent))return!1;try{return(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))}catch(t){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.gatherTransferables=function(t,e){const n=[];return function t(o){if(!o)return;if(o.constructor===ImageData){const t={data:o.data.slice(),width:o.width,height:o.height};return n.push(t.data.buffer),t}if(o.constructor===ArrayBuffer){const t=e?o.slice(0):o;if(n.push(t),e)return o}else if(ArrayBuffer.isView(o)){let t;if(e){t=new(0,o.constructor)(o.buffer.slice(0))}else t=o;if(n.push(t.buffer),e)return o}else if(Array.isArray(o))for(let e=0;e<o.length;++e){const n=t(o[e]);n&&(o[e]=n)}else if(o.constructor===Object)for(const e in o)if(o.hasOwnProperty(e)){const n=t(o[e]);n&&(o[e]=n)}}(t),n},e.isRemote=function(t){return t.startsWith("http:")||t.startsWith("https:")},e.areThreadsAvailable=n,e.getBuildType=function(t){const{allowSimd:e=!0,allowThreads:o=!0}=t||{};let r="";if(e&&function(){try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]))}catch(t){return!1}}()){r+="-simd";o&&n()&&(r+="-threads")}return r}}).call(this,n(64))},function(t,e,n){"use strict";var o=n(45),r=n.n(o)()((function(t){return t[1]}));r.push([t.i,"\n.scanbot-shutter-fade-in {\n opacity: 1;\n}\n\n.scanbot-shutter-fade-out {\n opacity: 0;\n}\n\n.scanbot-shutter-rotate {\n animation: scanbot-shutter-rotating linear infinite;\n}\n\n.scanbot-shutter-pulse-fast {\n animation: scanbot-shutter-pulsing 1s ease-in-out infinite;\n}\n\n.scanbot-shutter-button {\n position: relative;\n width: 64px;\n height: 64px;\n left: 50%;\n bottom: 12px;\n transform: translate(-50%, -100%);\n}\n\n.scanbot-shutter-button-part {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.5s ease-in-out;\n}\n\n@keyframes scanbot-shutter-rotating {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes scanbot-shutter-pulsing {\n 0% {\n opacity: 0.25;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.25;\n }\n}\n",""]),e.a=r},function(t,e,n){"use strict";var o=n(45),r=n.n(o)()((function(t){return t[1]}));r.push([t.i,".scanbot-document-hint-text {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n background-color: rgba(0, 0, 0, 0.4);\n color: white;\n border-radius: 0.25em;\n padding: 0.05em 0.3em 0.05em 0.3em;\n font-family: sans-serif;\n font-size: 0.9em;\n font-weight: 300;\n}\n",""]),e.a=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(95);function r(t){if("string"!=typeof t)throw new Error(Object(o.a)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},,,,,,,function(t,e){var n,o,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var t=s(p);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||u||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";n.r(e),n.d(e,"capitalize",(function(){return r.a})),n.d(e,"createChainedFunction",(function(){return i})),n.d(e,"createSvgIcon",(function(){return a.a})),n.d(e,"debounce",(function(){return s.a})),n.d(e,"deprecatedPropType",(function(){return l})),n.d(e,"isMuiElement",(function(){return c.a})),n.d(e,"ownerDocument",(function(){return u.a})),n.d(e,"ownerWindow",(function(){return d.a})),n.d(e,"requirePropFactory",(function(){return p.a})),n.d(e,"setRef",(function(){return h})),n.d(e,"unstable_useEnhancedEffect",(function(){return f.a})),n.d(e,"unstable_useId",(function(){return m})),n.d(e,"unsupportedProp",(function(){return g})),n.d(e,"useControlled",(function(){return b})),n.d(e,"useEventCallback",(function(){return y.a})),n.d(e,"useForkRef",(function(){return A.a})),n.d(e,"useIsFocusVisible",(function(){return S.a})),n.d(e,"unstable_ClassNameGenerator",(function(){return C}));var o=n(97),r=n(5),i=n(132).a,a=n(38),s=n(40);var l=function(t,e){return()=>null},c=n(41),u=n(33),d=n(34),p=n(53),h=n(101).a,f=n(29),m=n(133).a;var g=function(t,e,n,o,r){return null},v=n(0);var b=function({controlled:t,default:e,name:n,state:o="value"}){const{current:r}=v.useRef(void 0!==t),[i,a]=v.useState(e);return[r?t:i,v.useCallback((t=>{r||a(t)}),[])]},y=n(25),A=n(22),S=n(39);const C={configure:t=>{o.a.configure(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerBridge=void 0;var o=n(54);e.WorkerBridge=class{constructor(t,e){const{requestSuffix:n=""}=e||{},r=(0,o.getBuildType)(e),i=`${t}${t.endsWith("/")?"":"/"}ScanbotSDK.Core${r}.js${n}`;if((0,o.isRemote)(i)){const t=new Blob([`importScripts("${i}")`]);this.instance=new Worker(URL.createObjectURL(t))}else this.instance=new Worker(i);this.continuations={},this.nextTicketId=1,this.instance.onmessage=t=>{const{log:e,logError:n}=t.data;if(e)return void console.log(...e);if(n)return void console.error(...n);const{ticket:o,result:r,error:i}=t.data,{resolve:a,reject:s}=this.continuations[o];delete this.continuations[o],i?s(i):a(r)}}post(t,e,n){return new Promise(((r,i)=>{const a=(0,o.gatherTransferables)(e,n),s=this.nextTicketId++;this.continuations[s]={resolve:r,reject:i},this.instance.postMessage({command:t,args:e,ticket:s},a)}))}postByCopyingArgs(t,e){return this.post(t,e,!0)}postByTransferringArgs(t,e){return this.post(t,e,!1)}destroy(){this.instance.terminate()}}},function(t,e,n){const{render:o,hydrate:r,unmountComponentAtNode:i}=n(0);function a(t){return{render(e){o(e,t)},unmount(){i(t)}}}e.createRoot=a,e.hydrateRoot=function(t,e){return r(e,t),a(t)}},function(t,e,n){"use strict";e.a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},function(t,e,n){"use strict";var o=n(57),r=n(26),i=n(13),a=n(20),s=n(37);const l=function(){function t(t,e,n,r){const s={[t]:e,theme:n},l=r[t];if(!l)return{[t]:e};const{cssProperty:c=t,themeKey:u,transform:d,style:p}=l;if(null==e)return null;if("typography"===u&&"inherit"===e)return{[t]:e};const h=Object(i.b)(n,u)||{};if(p)return p(s);return Object(a.b)(s,e,(e=>{let n=Object(i.c)(h,d,e);return e===n&&"string"==typeof e&&(n=Object(i.c)(h,d,`${t}${"default"===e?"":Object(o.a)(e)}`,e)),!1===c?n:{[c]:n}}))}return function e(n){var o;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(o=l.unstable_sxConfig)?o:s.a;function u(n){let o=n;if("function"==typeof n)o=n(l);else if("object"!=typeof n)return n;if(!o)return null;const i=Object(a.a)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(o).forEach((n=>{const i=(s=o[n],d=l,"function"==typeof s?s(d):s);var s,d;if(null!=i)if("object"==typeof i)if(c[n])u=Object(r.a)(u,t(n,i,l,c));else{const t=Object(a.b)({theme:l},i,(t=>({[n]:t})));!function(...t){const e=t.reduce(((t,e)=>t.concat(Object.keys(e))),[]),n=new Set(e);return t.every((t=>n.size===Object.keys(t).length))}(t,i)?u=Object(r.a)(u,t):u[n]=e({sx:i,theme:l})}else u=Object(r.a)(u,t(n,i,l,c))})),Object(a.c)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}();l.filterProps=["sx"],e.a=l},function(t,e){t.exports=function(t,e,n,o){var r=n?n.call(o,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=t[c],d=e[c];if(!1===(r=n?n.call(o,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},function(t,e,n){"use strict";e.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(99);function r(t){const{theme:e,name:n,props:r}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?Object(o.a)(e.components[n].defaultProps,r):r}},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},function(t,e,n){"use strict";var o=n(27);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n(28)),i=n(3);e.default=(0,r.default)((0,i.jsx)("path",{d:"M8.9 6.07 7.48 4.66 9 3h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 .05-.01.1-.02.16L20 17.17V7h-4.05l-1.83-2H9.88zm11.59 17.24L18.17 21H4c-1.1 0-2-.9-2-2V7c0-.59.27-1.12.68-1.49l-2-2L2.1 2.1l19.8 19.8zM9.19 12.02c-.11.31-.19.63-.19.98 0 1.66 1.34 3 3 3 .35 0 .67-.08.98-.19zM16.17 19l-1.68-1.68c-.73.43-1.58.68-2.49.68-2.76 0-5-2.24-5-5 0-.91.25-1.76.68-2.49L4.17 7H4v12zm-1.36-7.02 2.07 2.07c.08-.34.12-.69.12-1.05 0-2.76-2.24-5-5-5-.36 0-.71.04-1.06.12l2.07 2.07c.84.3 1.5.96 1.8 1.79"}),"NoPhotographyOutlined")},function(t,e,n){"use strict";var o=n(1),r=n(4),i=n(95),a=n(83),s=n(104),l=n(37),c=n(69);var u=n(134);var d={black:"#000",white:"#fff"},p=n(68);var h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const y=["mode","contrastThreshold","tonalOffset"],A={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(t,e,n,o){const r=o.light||o,i=o.dark||1.5*o;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=Object(u.d)(t.main,r):"dark"===e&&(t.dark=Object(u.b)(t.main,i)))}function x(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:s=.2}=t,l=Object(r.a)(t,y),c=t.primary||function(t="light"){return"dark"===t?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(e),x=t.secondary||function(t="light"){return"dark"===t?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(e),w=t.error||function(t="light"){return"dark"===t?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(e),O=t.info||function(t="light"){return"dark"===t?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(e),E=t.success||function(t="light"){return"dark"===t?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(e),j=t.warning||function(t="light"){return"dark"===t?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(e);function L(t){return Object(u.c)(t,S.text.primary)>=n?S.text.primary:A.text.primary}const k=({color:t,name:e,mainShade:n=500,lightShade:r=300,darkShade:a=700})=>{if(!(t=Object(o.a)({},t)).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw new Error(Object(i.a)(11,e?` (${e})`:"",n));if("string"!=typeof t.main)throw new Error(Object(i.a)(12,e?` (${e})`:"",JSON.stringify(t.main)));return C(t,"light",r,s),C(t,"dark",a,s),t.contrastText||(t.contrastText=L(t.main)),t},_={dark:S,light:A};return Object(a.a)(Object(o.a)({common:Object(o.a)({},d),mode:e,primary:k({color:c,name:"primary"}),secondary:k({color:x,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:k({color:w,name:"error"}),warning:k({color:j,name:"warning"}),info:k({color:O,name:"info"}),success:k({color:E,name:"success"}),grey:p.a,contrastThreshold:n,getContrastText:L,augmentColor:k,tonalOffset:s},_[e]),l)}const w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const O={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function j(t,e){const n="function"==typeof e?e(t):e,{fontFamily:i=E,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:f}=n,m=Object(r.a)(n,w);const g=s/14,v=f||(t=>t/p*g+"rem"),b=(t,e,n,r,a)=>{return Object(o.a)({fontFamily:i,fontWeight:t,fontSize:v(e),lineHeight:n},i===E?{letterSpacing:(s=r/e,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},y={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(u,14,1.75,.4,O),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,O),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Object(a.a)(Object(o.a)({htmlFontSize:p,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},y),m,{clone:!1})}function L(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}var k=["none",L(0,2,1,-1,0,1,1,0,0,1,3,0),L(0,3,1,-2,0,2,2,0,0,1,5,0),L(0,3,3,-2,0,3,4,0,0,1,8,0),L(0,2,4,-1,0,4,5,0,0,1,10,0),L(0,3,5,-1,0,5,8,0,0,1,14,0),L(0,3,5,-1,0,6,10,0,0,1,18,0),L(0,4,5,-2,0,7,10,1,0,2,16,1),L(0,5,5,-3,0,8,10,1,0,3,14,2),L(0,5,6,-3,0,9,12,1,0,3,16,2),L(0,6,6,-3,0,10,14,1,0,4,18,3),L(0,6,7,-4,0,11,15,1,0,4,20,3),L(0,7,8,-4,0,12,17,2,0,5,22,4),L(0,7,8,-4,0,13,19,2,0,5,24,4),L(0,7,9,-4,0,14,21,2,0,5,26,4),L(0,8,9,-5,0,15,22,2,0,6,28,5),L(0,8,10,-5,0,16,24,2,0,6,30,5),L(0,8,11,-5,0,17,26,2,0,6,32,5),L(0,9,11,-5,0,18,28,2,0,7,34,6),L(0,9,12,-6,0,19,29,2,0,7,36,6),L(0,10,13,-6,0,20,31,3,0,8,38,7),L(0,10,13,-6,0,21,33,3,0,8,40,7),L(0,10,14,-6,0,22,35,3,0,8,42,7),L(0,11,14,-7,0,23,36,3,0,9,44,8),L(0,11,15,-7,0,24,38,3,0,9,46,8)];const _=["duration","easing","delay"],T={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R(t){return`${Math.round(t)}ms`}function B(t){if(!t)return 0;const e=t/36;return Math.round(10*(4+15*e**.25+e/5))}function W(t){const e=Object(o.a)({},T,t.easing),n=Object(o.a)({},P,t.duration);return Object(o.a)({getAutoHeightDuration:B,create:(t=["all"],o={})=>{const{duration:i=n.standard,easing:a=e.easeInOut,delay:s=0}=o;Object(r.a)(o,_);return(Array.isArray(t)?t:[t]).map((t=>`${t} ${"string"==typeof i?i:R(i)} ${a} ${"string"==typeof s?s:R(s)}`)).join(",")}},t,{easing:e,duration:n})}var I={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(t={},...e){const{mixins:n={},palette:u={},transitions:d={},typography:p={}}=t,h=Object(r.a)(t,M);if(t.vars)throw new Error(Object(i.a)(18));const f=x(u),m=Object(s.a)(t);let g=Object(a.a)(m,{mixins:(v=m.breakpoints,b=n,Object(o.a)({toolbar:{minHeight:56,[v.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[v.up("sm")]:{minHeight:64}}},b)),palette:f,shadows:k.slice(),typography:j(f,p),transitions:W(d),zIndex:Object(o.a)({},I)});var v,b;return g=Object(a.a)(g,h),g=e.reduce(((t,e)=>Object(a.a)(t,e)),g),g.unstable_sxConfig=Object(o.a)({},l.a,null==h?void 0:h.unstable_sxConfig),g.unstable_sx=function(t){return Object(c.a)({sx:t,theme:this})},g}e.a=D},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var o=n(0);const r={};const i=[];class a{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new a}start(t,e){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,e()}),t)}}function s(){const t=function(t,e){const n=o.useRef(r);return n.current===r&&(n.current=t(e)),n}(a.create).current;var e;return e=t.disposeEffect,o.useEffect(e,i),t}},function(t,e,n){"use strict";function o(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}n.d(e,"a",(function(){return i}));var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=o((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var o=n(1);function r(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function i(t){if(!r(t))return t;const e={};return Object.keys(t).forEach((n=>{e[n]=i(t[n])})),e}function a(t,e,n={clone:!0}){const s=n.clone?Object(o.a)({},t):t;return r(t)&&r(e)&&Object.keys(e).forEach((o=>{"__proto__"!==o&&(r(e[o])&&o in t&&r(t[o])?s[o]=a(t[o],e[o],n):n.clone?s[o]=r(e[o])?i(e[o]):e[o]:s[o]=e[o])})),s}},function(t,e,n){"use strict";var o=n(0);const r="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;e.a=r},function(t,e,n){"use strict";function o(t){return t&&t.ownerDocument||document}n.d(e,"a",(function(){return o}))},,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"jsx",(function(){return c})),n.d(e,"jsxAttr",(function(){return h})),n.d(e,"jsxDEV",(function(){return c})),n.d(e,"jsxEscape",(function(){return f})),n.d(e,"jsxTemplate",(function(){return u})),n.d(e,"jsxs",(function(){return c}));var o=n(8);n.d(e,"Fragment",(function(){return o.b}));var r=/["&<]/;function i(t){if(0===t.length||!1===r.test(t))return t;for(var e=0,n=0,o="",i="";n<t.length;n++){switch(t.charCodeAt(n)){case 34:i=""";break;case 38:i="&";break;case 60:i="<";break;default:continue}n!==e&&(o+=t.slice(e,n)),o+=i,e=n+1}return n!==e&&(o+=t.slice(e,n)),o}var a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,s=0,l=Array.isArray;function c(t,e,n,r,i,a){var l,c,u={};for(c in e)"ref"==c?l=e[c]:u[c]=e[c];var d={type:t,props:u,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--s,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof t&&(l=t.defaultProps))for(c in l)void 0===u[c]&&(u[c]=l[c]);return o.h.vnode&&o.h.vnode(d),d}function u(t){var e=c(o.b,{tpl:t,exprs:[].slice.call(arguments,1)});return e.key=e.__v,e}var d={},p=/[A-Z]/g;function h(t,e){if(o.h.attr){var n=o.h.attr(t,e);if("string"==typeof n)return n}if("ref"===t||"key"===t)return"";if("style"===t&&"object"==typeof e){var r="";for(var s in e){var l=e[s];if(null!=l&&""!==l){var c="-"==s[0]?s:d[s]||(d[s]=s.replace(p,"-$&").toLowerCase()),u=";";"number"!=typeof l||c.startsWith("--")||a.test(c)||(u="px;"),r=r+c+":"+l+u}}return t+'="'+r+'"'}return null==e||!1===e||"function"==typeof e||"object"==typeof e?"":!0===e?t:t+'="'+i(e)+'"'}function f(t){if(null==t||"boolean"==typeof t||"function"==typeof t)return null;if("object"==typeof t){if(void 0===t.constructor)return t;if(l(t)){for(var e=0;e<t.length;e++)t[e]=f(t[e]);return t}}return i(""+t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ScanbotSDK",(function(){return Av}));var o={};n.r(o),n.d(o,"SingleScanningMode",(function(){return St})),n.d(o,"Resolution",(function(){return Ct})),n.d(o,"CameraConfiguration",(function(){return xt})),n.d(o,"TopBarConfiguration",(function(){return wt})),n.d(o,"ActionBarConfiguration",(function(){return Ot})),n.d(o,"BarcodeUseCase",(function(){return Y})),n.d(o,"Palette",(function(){return Z})),n.d(o,"StyledText",(function(){return J})),n.d(o,"IconStyle",(function(){return tt})),n.d(o,"PolygonStyle",(function(){return et})),n.d(o,"BackgroundStyle",(function(){return nt})),n.d(o,"ForegroundStyle",(function(){return ot})),n.d(o,"AspectRatio",(function(){return rt})),n.d(o,"RoundButton",(function(){return it})),n.d(o,"BadgedButton",(function(){return at})),n.d(o,"ButtonConfiguration",(function(){return st})),n.d(o,"Sound",(function(){return lt})),n.d(o,"Vibration",(function(){return ct})),n.d(o,"Timeouts",(function(){return ut})),n.d(o,"ViewFinderConfiguration",(function(){return Tt})),n.d(o,"FinderStyle",(function(){return X})),n.d(o,"FinderCorneredStyle",(function(){return Pt})),n.d(o,"FinderStrokedStyle",(function(){return Rt})),n.d(o,"UserGuidanceConfiguration",(function(){return Bt})),n.d(o,"BarcodeItemErrorState",(function(){return bt})),n.d(o,"BarcodeMappedData",(function(){return yt})),n.d(o,"BarcodeInfoMapping",(function(){return At})),n.d(o,"ExpectedBarcode",(function(){return Wt})),n.d(o,"BarcodeTextLocalization",(function(){return It})),n.d(o,"BarcodeRecognizerConfiguration",(function(){return Mt})),n.d(o,"ArOverlayPolygonConfiguration",(function(){return dt})),n.d(o,"BarcodeItemConfiguration",(function(){return pt})),n.d(o,"BadgeStyle",(function(){return ht})),n.d(o,"ArOverlayGeneralConfiguration",(function(){return ft})),n.d(o,"FindAndPickArOverlayPolygonConfiguration",(function(){return mt})),n.d(o,"FindAndPickBadgeConfiguration",(function(){return gt})),n.d(o,"ArOverlayFindAndPickConfiguration",(function(){return vt})),n.d(o,"BarcodeScannerConfiguration",(function(){return Ft})),n.d(o,"BarcodeItem",(function(){return zt})),n.d(o,"BarcodeScannerResult",(function(){return Nt})),n.d(o,"Sheet",(function(){return Et})),n.d(o,"SwipeToDelete",(function(){return jt})),n.d(o,"ManualCountEditDialog",(function(){return Lt})),n.d(o,"SheetContent",(function(){return kt})),n.d(o,"MultipleScanningMode",(function(){return _t})),n.d(o,"ScanbotAlertDialog",(function(){return Vt})),n.d(o,"CameraPermissionScreen",(function(){return Dt}));var r={};n.r(r),n.d(r,"ParametricFilter",(function(){return Xt})),n.d(r,"ScanbotBinarizationFilter",(function(){return Zt})),n.d(r,"CustomBinarizationFilter",(function(){return Jt})),n.d(r,"ColorDocumentFilter",(function(){return te})),n.d(r,"BrightnessFilter",(function(){return ee})),n.d(r,"ContrastFilter",(function(){return ne})),n.d(r,"GrayscaleFilter",(function(){return oe})),n.d(r,"LegacyFilter",(function(){return re})),n.d(r,"WhiteBlackPointFilter",(function(){return ie}));var i="5.1.3-dev.2";class a{}a.VERSION=i,a.CDN_PATH="https://cdn.jsdelivr.net/npm/scanbot-web-sdk@5.1.3-dev.2/bundle/",a.DEFAULT_WASM_FOLDER="bin/complete/",a.BUILD_WITH_UI=!0;var s=n(66),l=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class c{constructor(t,e,n){t||(t=a.CDN_PATH+a.DEFAULT_WASM_FOLDER),this.core=new s.WorkerBridge(t,e),this.coreInitializationSuccessful=this.core.postByCopyingArgs("initialize",n)}awaitInitialized(){return l(this,void 0,void 0,(function*(){yield this.getCoreForCommand()}))}postByCopyingArgs(t,e){return l(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand(t)).postByCopyingArgs(t,e)}))}postByTransferringArgs(t,e){return l(this,void 0,void 0,(function*(){return(yield this.getCoreForCommand(t)).postByTransferringArgs(t,e)}))}getCoreForCommand(t=""){return l(this,void 0,void 0,(function*(){const e=yield this.coreInitializationSuccessful;if("getLicenseInfo"===t||e)return this.core;throw new Error("WASM not initialized successfully. This can be due to an invalid license or problems loading the WASM file. Please check the console for more information.")}))}destroy(){this.core.destroy(),this.core=void 0}}c.ASM_JS="ScanbotSDK.Core.js";var u=n(54);class d{constructor(){this.container=void 0,this.containerId=void 0}static mapValues(t,e,n){Object.keys(t).forEach((o=>{(null==n?void 0:n.includes(o))||(e[o]=t[o])}))}static mapValuesDeep(t,e){const n=t=>t&&"object"==typeof t&&!Array.isArray(t);Object.keys(t).forEach((o=>{o in e&&n(t[o])&&n(e[o])?d.mapValuesDeep(t[o],e[o]):e[o]=t[o]}))}static _fromJson(t,e){return this.mapValuesDeep(e,t),t}}class p extends d{constructor(t){super(),this.mirrored=!1,this.spinnerColor="black",this.backgroundColor="black",this.videoConstraints={width:{ideal:t.width},height:{ideal:t.height},facingMode:"environment",resizeMode:"none",experimental:{focusMode:"continous",focusDistance:0}}}static mapVideoConstraints(t,e){t.videoConstraints&&this.mapValues(t.videoConstraints,e.videoConstraints)}}p.DEFAULT_VIDEO_RESOLUTION_4K={width:3840,height:2160},p.DEFAULT_VIDEO_RESOLUTION_HD={width:1920,height:1080},p.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE=0,p.DEFAULT_ACCEPTED_ANGLE_SCORE=75,p.DEFAULT_ACCEPTED_SIZE_SCORE=75;const h={OK:"Capturing your document... Please do not move the camera.",OK_SmallSize:"The document is too small. Try moving closer.",OK_BadAngles:"This is a bad camera angle. Hold the device straight over the document.",OK_BadAspectRatio:"Rotate the device sideways, so that the document fits better into the screen.",OK_OffCenter:"Try holding the device at the center of the document.",Error_NothingDetected:"Please hold the device over a document to start scanning.",Error_Brightness:"It is too dark. Try turning on a light.",Error_Noise:"Please move the document to a clear surface."};class f{constructor(t){this.hint=t}}class m{constructor(){this.outline=new g,this.captureButton=new A}}class g{constructor(){this.polygon=new v,this.path=new b,this.label=new y}}class v{constructor(){this.strokeCapturing="green",this.strokeSearching="yellow",this.fillCapturing="transparent",this.fillSearching="transparent"}}class b{constructor(){this.stroke="green",this.strokeWidth=4}}class y{}class A{constructor(){this.color="#FFF"}}class S extends p{constructor(){super(p.DEFAULT_VIDEO_RESOLUTION_4K),this.acceptedBrightnessThreshold=S.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE,this.acceptedAngleScore=S.DEFAULT_ACCEPTED_ANGLE_SCORE,this.acceptedSizeScore=S.DEFAULT_ACCEPTED_SIZE_SCORE,this.autoCaptureEnabled=!0,this.autoCaptureSensitivity=.66,this.autoCaptureDelay=1e3,this.ignoreBadAspectRatio=!0,this.useImageCaptureAPI=!1,this.text=new f(h),this.style=new m,this.onDocumentDetected=function(t){}}static fromJson(t){const e=new S;if(this.mapValues(t,e,["text","style","videoConstraints"]),t.text&&t.text.hint&&this.mapValues(t.text.hint,e.text.hint),t.style){this.mapValues(t.style,e.style,["outline","captureButton"]);const n=t.style.outline;if(n){this.mapValues(n,e.style.outline,["polygon","path","label"]);const t=n.polygon;t&&this.mapValues(t,e.style.outline.polygon);const o=n.path;o&&this.mapValues(o,e.style.outline.path);const r=n.label;r&&this.mapValues(r,e.style.outline.label)}const o=t.style.captureButton;o&&this.mapValues(o,e.style.captureButton)}return this.mapVideoConstraints(t,e),e}}class C{isValid(){return"Okay"===this.status||"Trial"===this.status}static fromJson(t){const e=new C;return e.status=t.licenseStatus,e.description=t.description,e}}var x=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class w{constructor(t,e){this._sdk=t,this._pdfOperation=e}addPage(t){return x(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByCopyingArgs("addPageToPdf",[this._pdfOperation,t])}))}complete(){return x(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("completePdf",[this._pdfOperation])}))}}var O=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};const E=["ROTATION_NONE","ROTATION_90_CLOCKWISE","ROTATION_180","ROTATION_90_COUNTERCLOCKWISE"];class j{constructor(t,e){this._sdk=t,this._token=e}copy(){return O(this,void 0,void 0,(function*(){const t=yield this._sdk.bridge.postByCopyingArgs("imageProcessorCopy",[this._token]);return new j(this._sdk,t)}))}applyFilter(t){return O(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorApplyFilter",[this._token,t])}))}crop(t){return O(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorCrop",[this._token,t])}))}resize(t){return O(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("imageProcessorResize",[this._token,t])}))}rotate(t){return O(this,void 0,void 0,(function*(){if(!E.includes(t))return Promise.reject("Invalid rotation value! It should be one of "+E.join(", "));yield this._sdk.bridge.postByTransferringArgs("imageProcessorRotate",[this._token,t])}))}processedImage(){return O(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("imageProcessorEncodedProcessedImage",[this._token,".jpg"])}))}release(){return O(this,void 0,void 0,(function*(){yield this._sdk.release(this._token,"ImageProcessor"),this._token=null,this._sdk=null}))}get __token(){return this._token}}var L=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class k{constructor(t,e){this._sdk=t,this._tiffOperation=e}addPage(t){return L(this,void 0,void 0,(function*(){let e;e=t instanceof j?t.__token:t,yield this._sdk.bridge.postByCopyingArgs("addPageToTiff",[this._tiffOperation,e])}))}complete(){return L(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("completeTiff",[this._tiffOperation])}))}}class _{constructor(t,e,n,o){this.x=t,this.y=e,this.width=n,this.height=o}scaleDown(t){return new _(this.x/t,this.y/t,this.width/t,this.height/t)}bottom(){return this.y+this.height}static withSize(t,e){return new _(0,0,t,e)}static empty(){return new _(0,0,0,0)}static fromRect(t){return t?new _(t.x,t.y,t.width,t.height):_.empty()}static fromPoint(t,e){return new _(t.x-e/2,t.y-e/2,e,e)}static fromDOMRect(t){return new _(t.x,t.y,t.width,t.height)}}class T{static toPixelSize(t){return t+"px"}static containsString(t,e){return!!t&&-1!==t.indexOf(e)}static copy(t){return JSON.parse(JSON.stringify(t))}static getProperty(t,e){let n;return t&&t.hasOwnProperty(e)&&(n=t[e]),n}static uuid(){let t="";const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=e.length;for(let o=0;o<5;o++)t+=e.charAt(Math.floor(Math.random()*n));return t}}var P=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class R{static toDataUrl(t){return new Promise(((e,n)=>{const o=new Blob([t],{type:"image/jpeg"}),r=new FileReader;r.onload=()=>e(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(o)}))}static getObjectFitSize(t,e,n=!0){const o=e.width/e.height,r=t.width/t.height;let i=0,a=0;(n?o>r:o<r)?(i=t.width,a=i/o):(a=t.height,i=a*o);const s=(t.width-i)/2,l=(t.height-a)/2;return new _(s,l,i,a)}static loadFromUrl(t){return new Promise(((e,n)=>{const o=document.createElement("img");o.src=t,o.onload=()=>P(this,void 0,void 0,(function*(){const t=document.createElement("canvas");t.width=o.width,t.height=o.height;const n=t.getContext("2d");n.drawImage(o,0,0);const r=n.getImageData(0,0,o.width,o.height);e(r)})),o.onerror=n}))}static saveImageData(t){const e=this.createImageDataCanvas(t),n=" ("+t.width+"x"+t.height+")";e.toBlob((t=>this.saveBlob(t,T.uuid()+n+".png")))}static createImageDataCanvas(t){const e=document.createElement("canvas");return e.className="scanbot-sdk-canvas-element",e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t,0,0),e}static saveBlob(t,e){let n=document.createElement("a");n.setAttribute("download",e);let o=URL.createObjectURL(t);n.setAttribute("href",o),n.click()}static convertImageDataWrapperToImageData(t){if(t)return new ImageData(t.data,t.width,t.height)}static wrapperToBase64(t){return R.createImageDataCanvas(R.convertImageDataWrapperToImageData(t)).toDataURL("image/png")}static toBase64(t){return P(this,void 0,void 0,(function*(){const e=yield new Promise((e=>{const n=new FileReader;n.onload=()=>e(n.result),n.readAsDataURL(new Blob([t]))}));return e.slice(e.indexOf(",")+1)}))}}class B{saveImageAsJpeg(t,e){if(!t||0===t.length)return void console.log("Data cannot be null or empty");e||(e=T.uuid()+".jpeg");let n=new Blob([t],{type:"image/jpeg"});R.saveBlob(n,e)}isCameraSupported(){return!!navigator.mediaDevices}flash(){let t=this.findFlashElement();t.style.display="block",this.animateFlashOpacity("0.5",(()=>{this.animateFlashOpacity("0.0",(()=>{t.style.opacity="1.0",t.style.display="none"}))}))}findFlashElement(){return this.getOrCreateElement("flash",{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","background-color":"#fff",display:"none","z-index":"5000"})}animateFlashOpacity(t,e){const n=this.getElementByClassName("flash");setTimeout((()=>{n.style.opacity=t,e()}),150)}getOrCreateElement(t,e){let n=this.getElementByClassName(t);return n||(this.createElement(t,e),n=this.getElementByClassName(t)),n}createElement(t,e){let n=document.createElement("div");n.className=t,n.style.cssText=this.cssToString(e),document.body.append(n)}cssToString(t){let e="";return Object.keys(t).forEach((n=>{e+=n+":"+t[n]+";"})),e}getElementByClassName(t){const e=document.getElementsByClassName(t);if(0!==e.length)return e[0]}}function W(t,e,n){return Math.min(Math.max(t,e),n)}class I{constructor(t,e){this.x=t,this.y=e}static toPolygon(t,e){return[I.scaleDownTo(t[0],e),I.scaleDownTo(t[1],e),I.scaleDownTo(t[2],e),I.scaleDownTo(t[3],e)]}static scaleToPoint(t,e,n,o){return new I(o*(t.x-e),o*(t.y-n))}static scaleListToHtmlElement(t,e,n){return t.map((t=>I.scaleToHtmlElement(t,e,n)))}static scaleToHtmlElement(t,e,n){return new I(t.x*(n.clientWidth/e.width),t.y*(n.clientHeight/e.height))}static scaleUpTo(t,e){return new I(t.x*e.width,t.y*e.height)}static scaleDownTo(t,e){return new I(t.x/e.width,t.y/e.height)}static fromHtmlElement(t){return new I(t.offsetLeft,t.offsetTop)}static withScale(t,e,n){return new I(t/n,e/n)}static fromCoordinates(t,e,n,o){if(!t||!e)return new I(0,0);const r=new I(t,e);return o=null!=o?o:1,1===(n=n?n%4:0)?I.withScale(r.y,-r.x,o):2===n?I.withScale(-r.x,-r.y,o):3===n?I.withScale(-r.y,r.x,o):I.withScale(r.x,r.y,o)}static centerOf(t){const e=t.reduce(((t,e)=>t+e.x),0)/t.length,n=t.reduce(((t,e)=>t+e.y),0)/t.length;return new I(e,n)}static smallerSizeOfQuad(t){const e=Math.max(...t.map((t=>t.x)))-Math.min(...t.map((t=>t.x))),n=Math.max(...t.map((t=>t.y)))-Math.min(...t.map((t=>t.y)));return Math.min(e,n)}static empty(){return new I(0,0)}static centerX(t){if(t)return(I.highestX(t)+I.lowestX(t))/2}static highestX(t){if(t)return Math.max(...t.map((t=>t.x)))}static lowestX(t){if(t)return Math.min(...t.map((t=>t.x)))}static lowestY(t){if(t)return Math.min(...t.map((t=>t.y)))}static highestY(t){if(t)return Math.max(...t.map((t=>t.y)))}static width(t){if(t)return I.highestX(t)-I.lowestX(t)}static left(t){if(t)return t.reduce(((t,e)=>t.x<e.x?t:e))}static right(t){if(t)return t.reduce(((t,e)=>t.x>e.x?t:e))}static toSvgString(t){if(void 0!==t)return t.map((t=>`${t.x.toFixed(2)},${t.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(t,e=0){if(void 0===t)return;function n(t,e,n){const o=Math.atan2(t.y-e.y,t.x-e.x);return{x:t.x-n*Math.cos(o),y:t.y-n*Math.sin(o)}}let o="";const r=n(t[0],t[1],I.distance(t[0],t[1])/2);o+=`M ${r.x} ${r.y}`;for(let r=0;r<t.length;r++){const i=t[r],a=t[(r+1)%t.length],s=t[(r+2)%t.length],l=n(a,s,I.distance(a,s)/2),c=Math.abs(Math.atan2(a.y-i.y,a.x-i.x)-Math.atan2(a.y-s.y,a.x-s.x)),u=c>Math.PI?2*Math.PI-c:c,d=Math.min(Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),Math.sqrt(Math.pow(a.x-s.x,2)+Math.pow(a.y-s.y,2))),p=Math.min(e,d*Math.tan(u/2)/2),h=Math.abs(p/Math.tan(u/2)),f=(a.x-i.x)*(a.y-s.y)-(a.x-s.x)*(a.y-i.y)<0?1:0,m=n(a,i,h),g=n(a,s,h);o+=` L${m.x} ${m.y}`,o+=` A${p} ${p} 0 0 ${f} ${g.x} ${g.y}`,o+=` L${l.x} ${l.y}`}return o+" Z"}static distance(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}static subtract(t,e){return new I(t.x-e.x,t.y-e.y)}static add(t,e){return new I(t.x+e.x,t.y+e.y)}static multiply(t,e){return new I(t.x*e,t.y*e)}static cross(t,e){return t.x*e.y-t.y*e.x}static clamp(t,e){return new I(W(t.x,0,e.width),W(t.y,0,e.height))}}class M{constructor(t,e,n,o,r,i){this.format=t,this.text=e,this.parsedDocument=n,this.rawBytes=o,this.points=r,this.barcodeImage=i}id(){return this.text+this.format}equals(t){return this.format===t.format&&this.text===t.text}static fromWorker(t){const e=t.quad.map((t=>new I(t[0],t[1])));return new M(t.format,t.text,t.parsedDocument,t.rawBytes,e,t.barcodeImage)}}class D{constructor(t,e){this.barcodes=t,this.imageData=e}static fromWorker(t,e){const n=[];t&&t.forEach((t=>{n.push(M.fromWorker(t))}));const o=R.convertImageDataWrapperToImageData(e);return new D(n,o)}isEmpty(){return 0===this.barcodes.length}}class F{constructor(t,e,n,o){this.value=e,this.confidence=n,this.validated=o,this.name=t}}class z{}class N{static fromWorker(t){let e=new N;e.verificationSuccessful=t.verificationSuccessful;const n=new z,o=t.recognitionSuccessful;return(t.fields||[]).forEach((t=>{switch(t.name){case"DocumentNumber":e.documentNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"IssuingAuthority":e.issuingAuthority=new F(t.name,t.text,t.confidence,t.validated);break;case"DepartmentOfIssuance":e.departmentOfIssuance=new F(t.name,t.text,t.confidence,t.validated);break;case"GivenNames":e.givenNames=new F(t.name,t.text,t.confidence,t.validated);break;case"Surname":e.surname=new F(t.name,t.text,t.confidence,t.validated);break;case"Nationality":e.nationality=new F(t.name,t.text,t.confidence,t.validated);break;case"BirthDate":e.birthDate=new F(t.name,t.text,t.confidence,t.validated);break;case"Gender":e.gender=new F(t.name,t.text,t.confidence,t.validated);break;case"ExpiryDate":e.expiryDate=new F(t.name,t.text,t.confidence,t.validated);break;case"PersonalNumber":e.personalNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"TravelDocType":e.travelDocType=new F(t.name,t.text,t.confidence,t.validated);break;case"TravelDocTypeVariant":e.travelDocTypeVariant=new F(t.name,t.text,t.confidence,t.validated);break;case"DiscreetIssuingStateOrOrganization":e.discreetIssuingStateOrOrganization=new F(t.name,t.text,t.confidence,t.validated);break;case"DocumentTypeCode":e.kindOfDocumentField=new F(t.name,t.text,t.confidence,t.validated);break;case"DocumentType":e.documentType=new F(t.name,t.text,t.confidence,t.validated);break;case"Format":e.format=new F(t.name,t.text,t.confidence,t.validated);break;case"PINCode":e.pinCode=new F(t.name,t.text,t.confidence,t.validated);break;case"LanguageCode":e.languageCode=new F(t.name,t.text,t.confidence,t.validated);break;case"VersionNumber":e.versionNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitGeneral":n.general=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitDocumentNumber":n.documentNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitBirthDate":n.birthDate=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitExpiryDate":n.expiryDate=new F(t.name,t.text,t.confidence,t.validated);break;case"CheckDigitPersonalNumber":n.personalNumber=new F(t.name,t.text,t.confidence,t.validated);break;case"Optional1":e.optional1=new F(t.name,t.text,t.confidence,t.validated);break;case"Optional2":e.optional2=new F(t.name,t.text,t.confidence,t.validated)}})),e.documentType||(e.documentType=new F("DocumentType",t.documentType)),o?e.checkDigits=n:e=void 0,e}}var V=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class ${constructor(t,e,n){this._sdk=t,this._mrzRecognizerToken=e,this.enableFrameAccumulation=n}recognize(t){return V(this,void 0,void 0,(function*(){try{let e=yield this._sdk.bridge.postByTransferringArgs("recognizeMRZ",[yield this._mrzRecognizerToken,t]);if(null===e)return;const n=N.fromWorker(e);return!this.enableFrameAccumulation&&n&&delete n.verificationSuccessful,n}catch(t){return void console.warn(t)}}))}recognizeURL(t){return V(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),o=document.createElement("img");o.src=t,o.onload=()=>V(this,void 0,void 0,(function*(){n.width=o.width,n.height=o.height;const t=n.getContext("2d");t.drawImage(o,0,0);const r=t.getImageData(0,0,o.width,o.height),i=yield this.recognize(r);e(i||void 0)}))}))}))}release(){return V(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[yield this._mrzRecognizerToken])}))}}var U=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class H{constructor(t,e){this._sdk=t,this._OcrEngineToken=e}performOcr(t){return U(this,void 0,void 0,(function*(){return yield this._sdk.bridge.postByCopyingArgs("performOcr",[this._OcrEngineToken,t])}))}recognizeURL(t){return U(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),o=document.createElement("img");o.src=t,o.onload=()=>U(this,void 0,void 0,(function*(){n.width=o.width,n.height=o.height;const t=n.getContext("2d");t.drawImage(o,0,0);const r=t.getImageData(0,0,o.width,o.height),i=yield this.performOcr(r);e(i)}))}))}))}release(){return U(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[this._OcrEngineToken])}))}}class G{static fromWorker(t){if(!t)return;const e=new G;return e.text=t.rawText,e.confidence=t.confidence,e.validated=t.validationSuccessful,e}}var Y,X,K=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class Q{constructor(t,e){this._sdk=t,this._textDataScannerToken=e}recognize(t){return K(this,void 0,void 0,(function*(){try{let e=yield this._sdk.bridge.postByTransferringArgs("recognizeTextLine",[yield this._textDataScannerToken,t]);if(null===e)return;return G.fromWorker(e)}catch(t){return void console.warn(t)}}))}cleanRecognitionQueue(){return K(this,void 0,void 0,(function*(){try{yield this._sdk.bridge.postByTransferringArgs("cleanTextLineRecognitionQueue",[yield this._textDataScannerToken])}catch(t){return void console.warn(t)}}))}recognizeURL(t){return K(this,void 0,void 0,(function*(){return new Promise((e=>{const n=document.createElement("canvas"),o=document.createElement("img");o.src=t,o.onload=()=>K(this,void 0,void 0,(function*(){n.width=o.width,n.height=o.height;const t=n.getContext("2d");t.drawImage(o,0,0);const r=t.getImageData(0,0,o.width,o.height),i=yield this.recognize(r);i&&e(i)}))}))}))}release(){return K(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[yield this._textDataScannerToken])}))}}class q{}class Z extends q{constructor(t={}){super(),this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==t.sbColorPrimary&&(this.sbColorPrimary=t.sbColorPrimary),void 0!==t.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=t.sbColorPrimaryDisabled),void 0!==t.sbColorNegative&&(this.sbColorNegative=t.sbColorNegative),void 0!==t.sbColorPositive&&(this.sbColorPositive=t.sbColorPositive),void 0!==t.sbColorWarning&&(this.sbColorWarning=t.sbColorWarning),void 0!==t.sbColorSecondary&&(this.sbColorSecondary=t.sbColorSecondary),void 0!==t.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=t.sbColorSecondaryDisabled),void 0!==t.sbColorOnPrimary&&(this.sbColorOnPrimary=t.sbColorOnPrimary),void 0!==t.sbColorOnSecondary&&(this.sbColorOnSecondary=t.sbColorOnSecondary),void 0!==t.sbColorSurface&&(this.sbColorSurface=t.sbColorSurface),void 0!==t.sbColorOutline&&(this.sbColorOutline=t.sbColorOutline),void 0!==t.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=t.sbColorOnSurfaceVariant),void 0!==t.sbColorOnSurface&&(this.sbColorOnSurface=t.sbColorOnSurface),void 0!==t.sbColorSurfaceLow&&(this.sbColorSurfaceLow=t.sbColorSurfaceLow),void 0!==t.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=t.sbColorSurfaceHigh),void 0!==t.sbColorModalOverlay&&(this.sbColorModalOverlay=t.sbColorModalOverlay)}}class J extends q{constructor(t={}){super(),this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}class tt extends q{constructor(t={}){super(),this.visible=!0,this.color="#FFFFFF",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.color&&(this.color=t.color)}}class et extends q{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#30FFFFFF",this.strokeWidth=2,this.cornerRadius=0,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class nt extends q{constructor(t={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.fillColor&&(this.fillColor=t.fillColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth)}}class ot extends q{constructor(t={}){super(),this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==t.iconVisible&&(this.iconVisible=t.iconVisible),void 0!==t.color&&(this.color=t.color),void 0!==t.useShadow&&(this.useShadow=t.useShadow)}}class rt extends q{constructor(t={}){super(),this.width=1,this.height=1,void 0!==t.width&&(this.width=t.width),void 0!==t.height&&(this.height=t.height)}}class it extends q{constructor(t={}){super(),this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}class at extends q{constructor(t={}){super(),this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==t.badgeBackgroundColor&&(this.badgeBackgroundColor=t.badgeBackgroundColor),void 0!==t.badgeForegroundColor&&(this.badgeForegroundColor=t.badgeForegroundColor),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor),void 0!==t.activeBackgroundColor&&(this.activeBackgroundColor=t.activeBackgroundColor),void 0!==t.activeForegroundColor&&(this.activeForegroundColor=t.activeForegroundColor)}}class st extends q{constructor(t={}){super(),this.visible=!0,this.text="",this.background=new nt({}),this.foreground=new ot({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.text&&(this.text=t.text),void 0!==t.background&&(this.background=new nt(t.background)),void 0!==t.foreground&&(this.foreground=new ot(t.foreground))}}class lt extends q{constructor(t={}){super(),this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==t.successBeepEnabled&&(this.successBeepEnabled=t.successBeepEnabled),void 0!==t.soundType&&(this.soundType=t.soundType)}}class ct extends q{constructor(t={}){super(),this.enabled=!1,void 0!==t.enabled&&(this.enabled=t.enabled)}}class ut extends q{constructor(t={}){super(),this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==t.autoCancelTimeout&&(this.autoCancelTimeout=t.autoCancelTimeout),void 0!==t.initialScanDelay&&(this.initialScanDelay=t.initialScanDelay)}}class dt extends q{constructor(t={}){super(),this.visible=!0,this.deselected=new et({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new et({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.deselected&&(this.deselected=new et(t.deselected)),void 0!==t.selected&&(this.selected=new et(t.selected))}}class pt extends q{constructor(t={}){super(),this.imageVisible=!0,this.titleSelected=new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new et({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new et({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==t.imageVisible&&(this.imageVisible=t.imageVisible),void 0!==t.titleSelected&&(this.titleSelected=new J(t.titleSelected)),void 0!==t.subtitleSelected&&(this.subtitleSelected=new J(t.subtitleSelected)),void 0!==t.titleDeselected&&(this.titleDeselected=new J(t.titleDeselected)),void 0!==t.subtitleDeselected&&(this.subtitleDeselected=new J(t.subtitleDeselected)),void 0!==t.backgroundSelected&&(this.backgroundSelected=new et(t.backgroundSelected)),void 0!==t.backgroundDeselected&&(this.backgroundDeselected=new et(t.backgroundDeselected))}}class ht extends q{constructor(t={}){if(super(),this.visible=!0,this.foregroundColor="?sbColorOnSurface",void 0!==t.visible&&(this.visible=t.visible),void 0===t.background)throw new Error("background must be present in constructor argument");this.background=new nt(t.background),void 0!==t.foregroundColor&&(this.foregroundColor=t.foregroundColor)}}class ft extends q{constructor(t={}){super(),this.visible=!1,this.counterBadge=new ht({background:new nt({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="BELOW",this.polygon=new dt({visible:!0,deselected:new et({}),selected:new et({})}),this.barcodeItemConfiguration=new pt({imageVisible:!0,titleSelected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new et({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new et({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.counterBadge&&(this.counterBadge=new ht(t.counterBadge)),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=t.barcodeItemInfoPosition),void 0!==t.polygon&&(this.polygon=new dt(t.polygon)),void 0!==t.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new pt(t.barcodeItemConfiguration))}}class mt extends q{constructor(t={}){super(),this.visible=!0,this.partiallyScanned=new et({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new et({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new et({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.partiallyScanned&&(this.partiallyScanned=new et(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new et(t.rejected)),void 0!==t.completed&&(this.completed=new et(t.completed))}}class gt extends q{constructor(t={}){super(),this.partiallyScanned=new ht({visible:!0,background:new nt({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new ht({visible:!0,background:new nt({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new ht({visible:!0,background:new nt({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==t.partiallyScanned&&(this.partiallyScanned=new ht(t.partiallyScanned)),void 0!==t.rejected&&(this.rejected=new ht(t.rejected)),void 0!==t.completed&&(this.completed=new ht(t.completed))}}class vt extends q{constructor(t={}){super(),this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new mt({}),this.badge=new gt({}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.automaticSelectionEnabled&&(this.automaticSelectionEnabled=t.automaticSelectionEnabled),void 0!==t.polygon&&(this.polygon=new mt(t.polygon)),void 0!==t.badge&&(this.badge=new gt(t.badge))}}class bt extends q{constructor(t={}){super(),this.title=new J({text:"Connection Error!",color:"?sbColorOnSurface"}),this.subtitle=new J({text:"There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",color:"?sbColorOnSurfaceVariant"}),this.retryButton=new st({}),this.cancelButton=new st({}),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.subtitle&&(this.subtitle=new J(t.subtitle)),void 0!==t.retryButton&&(this.retryButton=new st(t.retryButton)),void 0!==t.cancelButton&&(this.cancelButton=new st(t.cancelButton))}}class yt extends q{constructor(t={}){if(super(),void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=t.title,void 0===t.subtitle)throw new Error("subtitle must be present in constructor argument");if(this.subtitle=t.subtitle,void 0===t.barcodeImage)throw new Error("barcodeImage must be present in constructor argument");this.barcodeImage=t.barcodeImage}}class At extends q{constructor(t={}){super(),this.barcodeItemMapper=null,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.loadingMessage=new J({text:"Loading message for barcode info mapping.",color:"?sbColorPrimary"}),this.errorState=new bt({}),void 0!==t.barcodeItemMapper&&(this.barcodeItemMapper=null!=t.barcodeItemMapper?t.barcodeItemMapper:null),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.loadingMessage&&(this.loadingMessage=new J(t.loadingMessage)),void 0!==t.errorState&&(this.errorState=new bt(t.errorState))}}class St extends q{constructor(t={}){super(),this._type="SingleScanningMode",this.confirmationSheetEnabled=!1,this.barcodeImageVisible=!0,this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.barcodeTitle=new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.barcodeSubtitle=new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.submitButton=new st({visible:!0,text:"?sheetSubmitButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary"})}),this.cancelButton=new st({visible:!0,text:"?singleModeConfirmationCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary"})}),this.barcodeInfoMapping=new At({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new J({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new bt({title:new J({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new J({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new st({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary"})}),cancelButton:new st({text:"?barcodeInfoMappingErrorStateCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary"})})})}),this.arOverlay=new ft({visible:!1,counterBadge:new ht({visible:!0,background:new nt({strokeColor:"#000000FF",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new dt({visible:!0,deselected:new et({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new et({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new pt({imageVisible:!0,titleSelected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new J({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),backgroundSelected:new et({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new et({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.confirmationSheetEnabled&&(this.confirmationSheetEnabled=t.confirmationSheetEnabled),void 0!==t.barcodeImageVisible&&(this.barcodeImageVisible=t.barcodeImageVisible),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.barcodeTitle&&(this.barcodeTitle=new J(t.barcodeTitle)),void 0!==t.barcodeSubtitle&&(this.barcodeSubtitle=new J(t.barcodeSubtitle)),void 0!==t.submitButton&&(this.submitButton=new st(t.submitButton)),void 0!==t.cancelButton&&(this.cancelButton=new st(t.cancelButton)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new At(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new ft(t.arOverlay))}}class Ct extends q{constructor(t={}){if(super(),void 0===t.width)throw new Error("width must be present in constructor argument");if(this.width=t.width,void 0===t.height)throw new Error("height must be present in constructor argument");this.height=t.height}}class xt extends q{constructor(t={}){super(),this.cameraModule="BACK",this.zoomSteps=[1,2,5],this.defaultZoomFactor=1,this.flashEnabled=!1,this.idealPreviewResolution=new Ct({width:1920,height:1080}),void 0!==t.cameraModule&&(this.cameraModule=t.cameraModule),void 0!==t.zoomSteps&&(this.zoomSteps=t.zoomSteps.map((t=>t))),void 0!==t.defaultZoomFactor&&(this.defaultZoomFactor=t.defaultZoomFactor),void 0!==t.flashEnabled&&(this.flashEnabled=t.flashEnabled),void 0!==t.idealPreviewResolution&&(this.idealPreviewResolution=new Ct(t.idealPreviewResolution))}}class wt extends q{constructor(t={}){super(),this.title=new J({visible:!1,text:"Scan Item",color:"?sbColorOnPrimary"}),this.mode="SOLID",this.backgroundColor="?sbColorPrimary",this.cancelButton=new st({text:"Cancel",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ot({color:"?sbColorOnPrimary"})}),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.cancelButton&&(this.cancelButton=new st(t.cancelButton))}}class Ot extends q{constructor(t={}){super(),this.flashButton=new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),this.zoomButton=new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),this.flipCameraButton=new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),void 0!==t.flashButton&&(this.flashButton=new it(t.flashButton)),void 0!==t.zoomButton&&(this.zoomButton=new it(t.zoomButton)),void 0!==t.flipCameraButton&&(this.flipCameraButton=new it(t.flipCameraButton))}}class Et extends q{constructor(t={}){super(),this.mode="COLLAPSED_SHEET",this.collapsedVisibleHeight="SMALL",this.listButton=new at({}),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.collapsedVisibleHeight&&(this.collapsedVisibleHeight=t.collapsedVisibleHeight),void 0!==t.listButton&&(this.listButton=new at(t.listButton))}}class jt extends q{constructor(t={}){super(),this.enabled=!0,this.backgroundColor="?sbColorNegative",this.iconColor="?sbColorOnPrimary",void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.iconColor&&(this.iconColor=t.iconColor)}}class Lt extends q{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.modalOverlayColor="?sbColorModalOverlay",this.title=new J({text:"Update count",color:"?sbColorOnSurface"}),this.info=new J({text:"Adjust the number of items you scanned.",color:"?sbColorOnSurfaceVariant"}),this.updateButton=new st({visible:!0,text:"Update",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),this.cancelButton=new st({visible:!0,text:"Cancel",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),this.clearTextButton=new tt({visible:!0,color:"?sbColorOnSurfaceVariant"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.info&&(this.info=new J(t.info)),void 0!==t.updateButton&&(this.updateButton=new st(t.updateButton)),void 0!==t.cancelButton&&(this.cancelButton=new st(t.cancelButton)),void 0!==t.clearTextButton&&(this.clearTextButton=new tt(t.clearTextButton))}}class kt extends q{constructor(t={}){super(),this.sheetColor="?sbColorSurface",this.dividerColor="?sbColorOutline",this.manualCountChangeEnabled=!0,this.manualCountOutlineColor="?sbColorOutline",this.manualCountChangeColor="?sbColorPrimary",this.title=new J({text:"%d items",color:"?sbColorOnSurface"}),this.clearAllButton=new st({visible:!0,text:"Clear all",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.barcodeItemTitle=new J({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),this.barcodeItemSubtitle=new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.barcodeItemImageVisible=!0,this.submitButton=new st({visible:!0,text:"Submit",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),this.startScanningButton=new st({visible:!0,text:"Start scanning",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),this.placeholderTitle=new J({text:"No barcodes here!",color:"?sbColorOnSurface"}),this.placeholderSubtitle=new J({text:"The barcode list is currently empty. Close this sheet and scan your items to add them.",color:"?sbColorOnSurfaceVariant"}),this.placeholderIconBackground="?sbColorOutline",this.placeholderIcon=new tt({visible:!0,color:"?sbColorOnSurface"}),this.swipeToDelete=new jt({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"}),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0!==t.manualCountChangeEnabled&&(this.manualCountChangeEnabled=t.manualCountChangeEnabled),void 0!==t.manualCountOutlineColor&&(this.manualCountOutlineColor=t.manualCountOutlineColor),void 0!==t.manualCountChangeColor&&(this.manualCountChangeColor=t.manualCountChangeColor),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.clearAllButton&&(this.clearAllButton=new st(t.clearAllButton)),void 0!==t.barcodeItemTitle&&(this.barcodeItemTitle=new J(t.barcodeItemTitle)),void 0!==t.barcodeItemSubtitle&&(this.barcodeItemSubtitle=new J(t.barcodeItemSubtitle)),void 0!==t.barcodeItemImageVisible&&(this.barcodeItemImageVisible=t.barcodeItemImageVisible),void 0!==t.submitButton&&(this.submitButton=new st(t.submitButton)),void 0!==t.startScanningButton&&(this.startScanningButton=new st(t.startScanningButton)),void 0!==t.placeholderTitle&&(this.placeholderTitle=new J(t.placeholderTitle)),void 0!==t.placeholderSubtitle&&(this.placeholderSubtitle=new J(t.placeholderSubtitle)),void 0!==t.placeholderIconBackground&&(this.placeholderIconBackground=t.placeholderIconBackground),void 0!==t.placeholderIcon&&(this.placeholderIcon=new tt(t.placeholderIcon)),void 0!==t.swipeToDelete&&(this.swipeToDelete=new jt(t.swipeToDelete))}}class _t extends q{constructor(t={}){super(),this._type="MultipleScanningMode",this.countingRepeatDelay=1e3,this.mode="COUNTING",this.sheet=new Et({mode:"COLLAPSED_SHEET",collapsedVisibleHeight:"SMALL",listButton:new at({badgeBackgroundColor:"?sbColorSurface",badgeForegroundColor:"?sbColorPrimary",visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.sheetContent=new kt({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",manualCountChangeEnabled:!0,manualCountOutlineColor:"?sbColorOutline",manualCountChangeColor:"?sbColorPrimary",title:new J({text:"?multipleModeSheetTitle",color:"?sbColorOnSurface"}),clearAllButton:new st({visible:!0,text:"?sheetClearAllButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),barcodeItemTitle:new J({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),barcodeItemSubtitle:new J({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),barcodeItemImageVisible:!0,submitButton:new st({visible:!0,text:"?sheetSubmitButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnSurface",useShadow:!1})}),startScanningButton:new st({visible:!0,text:"?sheetStartScanningButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),placeholderTitle:new J({visible:!0,text:"?sheetPlaceholderTitle",color:"?sbColorOnSurface",useShadow:!1}),placeholderSubtitle:new J({visible:!0,text:"?sheetPlaceholderSubtitle",color:"?sbColorOnSurfaceVariant",useShadow:!1}),placeholderIconBackground:"?sbColorOutline",placeholderIcon:new tt({visible:!0,color:"?sbColorOnSurface"}),swipeToDelete:new jt({enabled:!0,backgroundColor:"?sbColorNegative",iconColor:"?sbColorOnPrimary"})}),this.manualCountEditDialog=new Lt({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",title:new J({text:"?manualCountEditDialogTitle",color:"?sbColorOnSurface"}),info:new J({text:"?manualCountEditDialogInfo",color:"?sbColorOnSurfaceVariant"}),updateButton:new st({visible:!0,text:"?manualCountEditDialogUpdateButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new st({visible:!0,text:"?manualCountEditDialogCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),clearTextButton:new tt({visible:!0,color:"?sbColorOnSurfaceVariant"})}),this.barcodeInfoMapping=new At({sheetColor:"?sbColorSurface",dividerColor:"?sbColorOutline",modalOverlayColor:"?sbColorModalOverlay",loadingMessage:new J({text:"?barcodeInfoMappingLoadingMessage",color:"?sbColorPrimary"}),errorState:new bt({title:new J({text:"?barcodeInfoMappingErrorStateTitle",color:"?sbColorOnSurface"}),subtitle:new J({text:"?barcodeInfoMappingErrorStateSubtitle",color:"?sbColorOnSurfaceVariant"}),retryButton:new st({visible:!0,text:"?barcodeInfoMappingErrorStateRetryButton",background:new nt({strokeColor:"?sbColorPrimary",fillColor:"?sbColorPrimary",strokeWidth:1}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})}),cancelButton:new st({visible:!0,text:"?barcodeInfoMappingErrorStateCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:1}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})})})}),this.arOverlay=new ft({visible:!1,counterBadge:new ht({visible:!0,background:new nt({strokeColor:"#FF000000",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),automaticSelectionEnabled:!1,barcodeItemInfoPosition:"BELOW",polygon:new dt({visible:!0,deselected:new et({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),selected:new et({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5})}),barcodeItemConfiguration:new pt({imageVisible:!0,titleSelected:new J({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new J({visible:!0,text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant",useShadow:!1}),titleDeselected:new J({visible:!0,text:"BARCODE_TITLE",color:"?sbColorOnSurface",useShadow:!1}),subtitleDeselected:new J({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new et({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new et({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})})}),void 0!==t.countingRepeatDelay&&(this.countingRepeatDelay=t.countingRepeatDelay),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.sheet&&(this.sheet=new Et(t.sheet)),void 0!==t.sheetContent&&(this.sheetContent=new kt(t.sheetContent)),void 0!==t.manualCountEditDialog&&(this.manualCountEditDialog=new Lt(t.manualCountEditDialog)),void 0!==t.barcodeInfoMapping&&(this.barcodeInfoMapping=new At(t.barcodeInfoMapping)),void 0!==t.arOverlay&&(this.arOverlay=new ft(t.arOverlay))}}(Y||(Y={})).From=function(t){const e=t._type;switch(e){case"SingleScanningMode":return new St(t);case"MultipleScanningMode":return new _t(t);default:throw`Unknown child class name: ${e}`}};class Tt extends q{constructor(t={}){super(),this.visible=!0,this.style=new Pt({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),this.overlayColor="?sbColorSurfaceLow",this.aspectRatio=new rt({width:1,height:1}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.style&&(this.style=X.From(t.style)),void 0!==t.overlayColor&&(this.overlayColor=t.overlayColor),void 0!==t.aspectRatio&&(this.aspectRatio=new rt(t.aspectRatio))}}!function(t){t.From=function(t){const e=t._type;switch(e){case"FinderCorneredStyle":return new Pt(t);case"FinderStrokedStyle":return new Rt(t);default:throw`Unknown child class name: ${e}`}}}(X||(X={}));class Pt extends q{constructor(t={}){super(),this._type="FinderCorneredStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class Rt extends q{constructor(t={}){super(),this._type="FinderStrokedStyle",this.strokeColor="#FFFFFFFF",this.strokeWidth=3,this.cornerRadius=10,void 0!==t.strokeColor&&(this.strokeColor=t.strokeColor),void 0!==t.strokeWidth&&(this.strokeWidth=t.strokeWidth),void 0!==t.cornerRadius&&(this.cornerRadius=t.cornerRadius)}}class Bt extends q{constructor(t={}){super(),this.visible=!0,this.title=new J({color:"?sbColorOnPrimary"}),this.background=new nt({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow"}),void 0!==t.visible&&(this.visible=t.visible),void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.background&&(this.background=new nt(t.background))}}class Wt extends q{constructor(t={}){if(super(),this.count=1,void 0===t.barcodeValue)throw new Error("barcodeValue must be present in constructor argument");if(this.barcodeValue=t.barcodeValue,void 0===t.title)throw new Error("title must be present in constructor argument");if(this.title=null!=t.title?t.title:null,void 0===t.image)throw new Error("image must be present in constructor argument");this.image=null!=t.image?t.image:null,void 0!==t.count&&(this.count=t.count)}}class It extends q{constructor(t={}){super(),this.cameraPermissionEnableCameraTitle="Camera permission denied!",this.cameraPermissionEnableCameraExplanation="Please allow the usage of the camera to start the scanning process.",this.cameraPermissionCloseButton="Close",this.topBarCancelButton="Cancel",this.topBarTitle="Scan Item",this.userGuidance="Move the finder over a barcode",this.barcodeInfoMappingLoadingMessage="Loading details...",this.barcodeInfoMappingErrorStateTitle="Connection Error!",this.barcodeInfoMappingErrorStateSubtitle="There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",this.barcodeInfoMappingErrorStateRetryButton="Retry",this.barcodeInfoMappingErrorStateCancelButton="Cancel",this.manualCountEditDialogTitle="Update count",this.manualCountEditDialogInfo="Adjust the number of items you scanned.",this.manualCountEditDialogUpdateButton="Update",this.manualCountEditDialogCancelButton="Cancel",this.sheetClearAllButton="Clear all",this.sheetSubmitButton="Submit",this.sheetStartScanningButton="Start scanning",this.sheetPlaceholderTitle="No barcodes here!",this.sheetPlaceholderSubtitle="The barcode list is currently empty. Close this sheet and scan your items to add them.",this.singleModeConfirmationCancelButton="Close",this.multipleModeSheetTitle="%d items",void 0!==t.cameraPermissionEnableCameraTitle&&(this.cameraPermissionEnableCameraTitle=t.cameraPermissionEnableCameraTitle),void 0!==t.cameraPermissionEnableCameraExplanation&&(this.cameraPermissionEnableCameraExplanation=t.cameraPermissionEnableCameraExplanation),void 0!==t.cameraPermissionCloseButton&&(this.cameraPermissionCloseButton=t.cameraPermissionCloseButton),void 0!==t.topBarCancelButton&&(this.topBarCancelButton=t.topBarCancelButton),void 0!==t.topBarTitle&&(this.topBarTitle=t.topBarTitle),void 0!==t.userGuidance&&(this.userGuidance=t.userGuidance),void 0!==t.barcodeInfoMappingLoadingMessage&&(this.barcodeInfoMappingLoadingMessage=t.barcodeInfoMappingLoadingMessage),void 0!==t.barcodeInfoMappingErrorStateTitle&&(this.barcodeInfoMappingErrorStateTitle=t.barcodeInfoMappingErrorStateTitle),void 0!==t.barcodeInfoMappingErrorStateSubtitle&&(this.barcodeInfoMappingErrorStateSubtitle=t.barcodeInfoMappingErrorStateSubtitle),void 0!==t.barcodeInfoMappingErrorStateRetryButton&&(this.barcodeInfoMappingErrorStateRetryButton=t.barcodeInfoMappingErrorStateRetryButton),void 0!==t.barcodeInfoMappingErrorStateCancelButton&&(this.barcodeInfoMappingErrorStateCancelButton=t.barcodeInfoMappingErrorStateCancelButton),void 0!==t.manualCountEditDialogTitle&&(this.manualCountEditDialogTitle=t.manualCountEditDialogTitle),void 0!==t.manualCountEditDialogInfo&&(this.manualCountEditDialogInfo=t.manualCountEditDialogInfo),void 0!==t.manualCountEditDialogUpdateButton&&(this.manualCountEditDialogUpdateButton=t.manualCountEditDialogUpdateButton),void 0!==t.manualCountEditDialogCancelButton&&(this.manualCountEditDialogCancelButton=t.manualCountEditDialogCancelButton),void 0!==t.sheetClearAllButton&&(this.sheetClearAllButton=t.sheetClearAllButton),void 0!==t.sheetSubmitButton&&(this.sheetSubmitButton=t.sheetSubmitButton),void 0!==t.sheetStartScanningButton&&(this.sheetStartScanningButton=t.sheetStartScanningButton),void 0!==t.sheetPlaceholderTitle&&(this.sheetPlaceholderTitle=t.sheetPlaceholderTitle),void 0!==t.sheetPlaceholderSubtitle&&(this.sheetPlaceholderSubtitle=t.sheetPlaceholderSubtitle),void 0!==t.singleModeConfirmationCancelButton&&(this.singleModeConfirmationCancelButton=t.singleModeConfirmationCancelButton),void 0!==t.multipleModeSheetTitle&&(this.multipleModeSheetTitle=t.multipleModeSheetTitle)}}class Mt extends q{constructor(t={}){super(),this.barcodesRegexFilter="",this.barcodeFormats=[],this.gs1Handling="PARSE",this.engineMode="ML_LOW_POWER",this.maximumRecognizerResolution=600,void 0!==t.barcodesRegexFilter&&(this.barcodesRegexFilter=t.barcodesRegexFilter),void 0!==t.barcodeFormats&&(this.barcodeFormats=t.barcodeFormats.map((t=>t))),void 0!==t.gs1Handling&&(this.gs1Handling=t.gs1Handling),void 0!==t.engineMode&&(this.engineMode=t.engineMode),void 0!==t.maximumRecognizerResolution&&(this.maximumRecognizerResolution=t.maximumRecognizerResolution)}}class Dt extends q{constructor(t={}){super(),this.background="?sbColorSurface",this.iconBackground="?sbColorOutline",this.icon=new tt({visible:!0,color:"?sbColorOnSurface"}),this.closeButton=new st({text:"Close",background:new nt({}),foreground:new ot({})}),this.enableCameraTitle=new J({text:"Camera permission denied!",color:"?colorOnSurface"}),this.enableCameraExplanation=new J({text:"Please allow the usage of the camera to start the scanning process.",color:"?sbColorOnSurfaceVariant"}),void 0!==t.background&&(this.background=t.background),void 0!==t.iconBackground&&(this.iconBackground=t.iconBackground),void 0!==t.icon&&(this.icon=new tt(t.icon)),void 0!==t.closeButton&&(this.closeButton=new st(t.closeButton)),void 0!==t.enableCameraTitle&&(this.enableCameraTitle=new J(t.enableCameraTitle)),void 0!==t.enableCameraExplanation&&(this.enableCameraExplanation=new J(t.enableCameraExplanation))}}class Ft extends q{constructor(t={}){super(),this.version="1.0",this.screen="BarcodeScanner",this.palette=new Z({sbColorPrimary:"#C8193C",sbColorPrimaryDisabled:"#F5F5F5",sbColorNegative:"#FF3737",sbColorPositive:"#4EFFB4",sbColorWarning:"#FFCE5C",sbColorSecondary:"#FFEDEE",sbColorSecondaryDisabled:"#F5F5F5",sbColorOnPrimary:"#FFFFFF",sbColorOnSecondary:"#C8193C",sbColorSurface:"#FFFFFF",sbColorOutline:"#EFEFEF",sbColorOnSurfaceVariant:"#707070",sbColorOnSurface:"#000000",sbColorSurfaceLow:"#00000026",sbColorSurfaceHigh:"#0000007A",sbColorModalOverlay:"#000000A3"}),this.localization=new It({}),this.backgroundColor="?sbColorSurfaceLow",this.topBar=new wt({title:new J({text:"?topBarTitle",color:"?sbColorOnPrimary"}),mode:"SOLID",backgroundColor:"?sbColorPrimary",cancelButton:new st({visible:!0,text:"?topBarCancelButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ot({iconVisible:!0,color:"?sbColorOnPrimary",useShadow:!1})})}),this.actionBar=new Ot({flashButton:new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorWarning",activeForegroundColor:"#1C1B1F"}),zoomButton:new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"}),flipCameraButton:new it({visible:!0,backgroundColor:"?sbColorSurfaceHigh",foregroundColor:"?sbColorOnPrimary",activeBackgroundColor:"?sbColorSurfaceHigh",activeForegroundColor:"?sbColorOnPrimary"})}),this.viewFinder=new Tt({visible:!0,style:new Pt({strokeColor:"?sbColorSurface",strokeWidth:2,cornerRadius:10}),overlayColor:"?sbColorSurfaceLow",aspectRatio:new rt({width:1,height:1})}),this.userGuidance=new Bt({visible:!0,title:new J({text:"?userGuidance",color:"?sbColorOnPrimary"}),background:new nt({strokeColor:"#00000000",fillColor:"?sbColorSurfaceLow",strokeWidth:0})}),this.cameraPermission=new Dt({background:"?sbColorSurface",iconBackground:"?sbColorOutline",icon:new tt({visible:!0,color:"?sbColorOnSurface"}),closeButton:new st({visible:!0,text:"?cameraPermissionCloseButton",background:new nt({strokeColor:"#00000000",fillColor:"#00000000",strokeWidth:0}),foreground:new ot({iconVisible:!1,color:"?sbColorPrimary",useShadow:!1})}),enableCameraTitle:new J({text:"?cameraPermissionEnableCameraTitle",color:"?sbColorOnSurface"}),enableCameraExplanation:new J({text:"?cameraPermissionEnableCameraExplanation",color:"?sbColorOnSurfaceVariant"})}),this.cameraConfiguration=new xt({}),this.recognizerConfiguration=new Mt({}),this.useCase=new St({}),this.sound=new lt({successBeepEnabled:!0,soundType:"MODERN_BEEP"}),this.vibration=new ct({enabled:!0}),this.timeouts=new ut({autoCancelTimeout:0,initialScanDelay:0}),void 0!==t.version&&(this.version=t.version),void 0!==t.screen&&(this.screen=t.screen),void 0!==t.palette&&(this.palette=new Z(t.palette)),void 0!==t.localization&&(this.localization=new It(t.localization)),void 0!==t.backgroundColor&&(this.backgroundColor=t.backgroundColor),void 0!==t.topBar&&(this.topBar=new wt(t.topBar)),void 0!==t.actionBar&&(this.actionBar=new Ot(t.actionBar)),void 0!==t.viewFinder&&(this.viewFinder=new Tt(t.viewFinder)),void 0!==t.userGuidance&&(this.userGuidance=new Bt(t.userGuidance)),void 0!==t.cameraPermission&&(this.cameraPermission=new Dt(t.cameraPermission)),void 0!==t.cameraConfiguration&&(this.cameraConfiguration=new xt(t.cameraConfiguration)),void 0!==t.recognizerConfiguration&&(this.recognizerConfiguration=new Mt(t.recognizerConfiguration)),void 0!==t.useCase&&(this.useCase=Y.From(t.useCase)),void 0!==t.sound&&(this.sound=new lt(t.sound)),void 0!==t.vibration&&(this.vibration=new ct(t.vibration)),void 0!==t.timeouts&&(this.timeouts=new ut(t.timeouts))}}class zt extends q{constructor(t={}){if(super(),void 0===t.type)throw new Error("type must be present in constructor argument");if(this.type=t.type,void 0===t.count)throw new Error("count must be present in constructor argument");if(this.count=t.count,void 0===t.text)throw new Error("text must be present in constructor argument");if(this.text=t.text,void 0===t.rawBytes)throw new Error("rawBytes must be present in constructor argument");if(this.rawBytes=t.rawBytes,void 0===t.parsedDocument)throw new Error("parsedDocument must be present in constructor argument");this.parsedDocument=null!=t.parsedDocument?t.parsedDocument:null}}class Nt extends q{constructor(t={}){super(),this.items=[],void 0!==t.items&&(this.items=t.items.map((t=>new zt(t))))}}class Vt extends q{constructor(t={}){if(super(),this.title=new J({text:"Title",color:"?sbColorOnSurface"}),this.subtitle=new J({text:"Standard explanation message text.",color:"?sbColorOnSurfaceVariant"}),this.sheetColor="?sbColorSurface",this.modalOverlayColor="?sbColorModalOverlay",this.dividerColor="?sbColorOutline",void 0!==t.title&&(this.title=new J(t.title)),void 0!==t.subtitle&&(this.subtitle=new J(t.subtitle)),void 0!==t.sheetColor&&(this.sheetColor=t.sheetColor),void 0!==t.modalOverlayColor&&(this.modalOverlayColor=t.modalOverlayColor),void 0!==t.dividerColor&&(this.dividerColor=t.dividerColor),void 0===t.okButton)throw new Error("okButton must be present in constructor argument");if(this.okButton=new st(t.okButton),void 0===t.cancelButton)throw new Error("cancelButton must be present in constructor argument");this.cancelButton=new st(t.cancelButton)}}class $t extends p{constructor(t){super(t);const e=new Ft;this.finder=e.viewFinder,this.userGuidance=e.userGuidance}static mapFinderConfiguration(t,e){var n,o;p.mapValuesDeep(null!==(n=e.finder)&&void 0!==n?n:{},t.finder),p.mapValuesDeep(null!==(o=e.userGuidance)&&void 0!==o?o:{},t.userGuidance)}}class Ut extends $t{constructor(){super(p.DEFAULT_VIDEO_RESOLUTION_HD),this.matchSubstring=!1,this.onTextDetected=function(t){},this.finder.aspectRatio.width=6,this.userGuidance.title.text="Please hold the device over the text to start scanning"}static fromJson(t){const e=new Ut;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}class Ht extends $t{constructor(){super(p.DEFAULT_VIDEO_RESOLUTION_HD),this.onTextDetected=function(t){},this.finder.aspectRatio.width=6,this.userGuidance.title.text="Please hold the device over the vehicle identification number to start scanning"}static fromJson(t){const e=new Ht;return this.mapFinderConfiguration(e,t),this._fromJson(e,t)}}class Gt extends Error{constructor(t){super(t.description),this.name="LicenseError"}}class Yt{static throwIfMissingBuffer(t){Yt.throwIfMissing(t,"ImageBuffer may not be null")}static throwIfMissing(t,e){if(!t)throw new Error(e)}}var Xt,Kt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class Qt{constructor(t,e){this._sdk=t,this._token=e}analyze(t){return Kt(this,void 0,void 0,(function*(){Yt.throwIfMissingBuffer(t);return yield this._sdk.bridge.postByCopyingArgs("documentQualityAnalyzerAnalyze",[this._token,t])}))}release(){return Kt(this,void 0,void 0,(function*(){yield this._sdk.bridge.postByTransferringArgs("releaseObject",[this._token])}))}}class qt{_marker(){}}!function(t){t.From=function(t){const e=t._type;switch(e){case"ScanbotBinarizationFilter":return new Zt(t);case"CustomBinarizationFilter":return new Jt(t);case"ColorDocumentFilter":return new te(t);case"BrightnessFilter":return new ee(t);case"ContrastFilter":return new ne(t);case"GrayscaleFilter":return new oe(t);case"LegacyFilter":return new re(t);case"WhiteBlackPointFilter":return new ie(t);default:throw`Unknown child class name: ${e}`}}}(Xt||(Xt={}));class Zt extends qt{constructor(t={}){super(),this._type="ScanbotBinarizationFilter",this.outputMode="BINARY",void 0!==t.outputMode&&(this.outputMode=t.outputMode)}}class Jt extends qt{constructor(t={}){super(),this._type="CustomBinarizationFilter",this.outputMode="BINARY",this.denoise=.5,this.radius=32,this.preset="PRESET_4",void 0!==t.outputMode&&(this.outputMode=t.outputMode),void 0!==t.denoise&&(this.denoise=t.denoise),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.preset&&(this.preset=t.preset)}}class te extends qt{constructor(t={}){super(),this._type="ColorDocumentFilter"}}class ee extends qt{constructor(t={}){super(),this._type="BrightnessFilter",this.brightness=0,void 0!==t.brightness&&(this.brightness=t.brightness)}}class ne extends qt{constructor(t={}){super(),this._type="ContrastFilter",this.contrast=0,void 0!==t.contrast&&(this.contrast=t.contrast)}}class oe extends qt{constructor(t={}){super(),this._type="GrayscaleFilter",this.borderWidthFraction=.06,this.blackOutliersFraction=0,this.whiteOutliersFraction=.02,void 0!==t.borderWidthFraction&&(this.borderWidthFraction=t.borderWidthFraction),void 0!==t.blackOutliersFraction&&(this.blackOutliersFraction=t.blackOutliersFraction),void 0!==t.whiteOutliersFraction&&(this.whiteOutliersFraction=t.whiteOutliersFraction)}}class re extends qt{constructor(t={}){super(),this._type="LegacyFilter",this.filterType=0,void 0!==t.filterType&&(this.filterType=t.filterType)}}class ie extends qt{constructor(t={}){super(),this._type="WhiteBlackPointFilter",this.blackPoint=0,this.whitePoint=1,void 0!==t.blackPoint&&(this.blackPoint=t.blackPoint),void 0!==t.whitePoint&&(this.whitePoint=t.whitePoint)}}class ae{static initialize(t=!1){this.verbose=t}static debug(t){this.verbose&&console.log("ScanbotSDK:",t)}static debugWarn(t){this.verbose&&console.warn("ScanbotSDK:",t)}}var se=n(0),le=n(67),ce=n(1),ue=n(4);var de=se.createContext(null);function pe(){return se.useContext(de)}var he="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",fe=n(3);var me=function(t){const{children:e,theme:n}=t,o=pe(),r=se.useMemo((()=>{const t=null===o?n:function(t,e){if("function"==typeof e)return e(t);return Object(ce.a)({},t,e)}(o,n);return null!=t&&(t[he]=null!==o),t}),[n,o]);return Object(fe.jsx)(de.Provider,{value:r,children:e})},ge=n(19),ve=n(43);const be={};function ye(t,e,n,o=!1){return se.useMemo((()=>{const r=t&&e[t]||e;if("function"==typeof n){const i=n(r),a=t?Object(ce.a)({},e,{[t]:i}):i;return o?()=>a:a}return t?Object(ce.a)({},e,{[t]:n}):Object(ce.a)({},e,n)}),[t,e,n,o])}var Ae=function(t){const{children:e,theme:n,themeId:o}=t,r=Object(ve.a)(be),i=pe()||be,a=ye(o,r,n),s=ye(o,i,n,!0);return Object(fe.jsx)(me,{theme:s,children:Object(fe.jsx)(ge.a.Provider,{value:a,children:e})})},Se=n(24);const Ce=["theme"];function xe(t){let{theme:e}=t,n=Object(ue.a)(t,Ce);const o=e[Se.a];return Object(fe.jsx)(Ae,Object(ce.a)({},n,{themeId:o?Se.a:void 0,theme:o||e}))}var we=n(6),Oe=n(32),Ee=n(69),je=n(83),Le=n(37);const ke=["sx"];function _e(t){const{sx:e}=t,n=Object(ue.a)(t,ke),{systemProps:o,otherProps:r}=(t=>{var e,n;const o={systemProps:{},otherProps:{}},r=null!=(e=null==t||null==(n=t.theme)?void 0:n.unstable_sxConfig)?e:Le.a;return Object.keys(t).forEach((e=>{r[e]?o.systemProps[e]=t[e]:o.otherProps[e]=t[e]})),o})(n);let i;return i=Array.isArray(e)?[o,...e]:"function"==typeof e?(...t)=>{const n=e(...t);return Object(je.b)(n)?Object(ce.a)({},o,n):o}:Object(ce.a)({},o,e),Object(ce.a)({},r,{sx:i})}var Te=n(42);const Pe=["className","component"];var Re=n(97),Be=n(80),We=n(130);var Ie=Object(We.a)("MuiBox",["root"]);const Me=Object(Be.a)();var De=function(t={}){const{themeId:e,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=t,i=Object(Oe.a)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(Ee.a);return se.forwardRef((function(t,a){const s=Object(Te.a)(n),l=_e(t),{className:c,component:u="div"}=l,d=Object(ue.a)(l,Pe);return Object(fe.jsx)(i,Object(ce.a)({as:u,ref:a,className:Object(we.a)(c,r?r(o):o),theme:e&&s[e]||s},d))}))}({themeId:Se.a,defaultTheme:Me,defaultClassName:Ie.root,generateClassName:Re.a.generate});const Fe=Object(se.createContext)(null);function ze(t){return{getColorValue:e=>{if(e){if(e.startsWith("?")){const n=e.slice(1);if(n in t)return t[n];ae.debugWarn(`Color ${n} not found in palette`)}return e}ae.debugWarn("Color is missing")}}}class Ne{static setPalette(t){this.palette=t}static setBarcodeTextLocalization(t){this.barcodeTextLocalization=t}static getColorValue(t){return ze(Ne.palette).getColorValue(t)}static getLocalizedBarcodeText(t){if(t.startsWith("?")){const e=t.slice(1);if(e in Ne.barcodeTextLocalization)return Ne.barcodeTextLocalization[e];ae.debugWarn(`Barcode text localization key ${e} not found in localization`)}return t}}Ne.palette=(new Ft).palette,Ne.barcodeTextLocalization=(new Ft).localization;var Ve=n(131),$e=n(7),Ue=n(11),He=n(5),Ge=n(134);var Ye=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)},Xe=n(96);function Ke(t){return Object(Xe.a)("MuiPaper",t)}Object(We.a)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Qe=["className","component","elevation","square","variant"],qe=Object($e.a)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e[`elevation${n.elevation}`]]}})((({theme:t,ownerState:e})=>{var n;return Object(ce.a)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===e.variant&&Object(ce.a)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${Object(Ge.a)("#fff",Ye(e.elevation))}, ${Object(Ge.a)("#fff",Ye(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))}));var Ze=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiPaper"}),{className:o,component:r="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Object(ue.a)(n,Qe),c=Object(ce.a)({},n,{component:r,elevation:i,square:a,variant:s}),u=(t=>{const{square:e,elevation:n,variant:o,classes:r}=t,i={root:["root",o,!e&&"rounded","elevation"===o&&`elevation${n}`]};return Object(Ve.a)(i,Ke,r)})(c);return Object(fe.jsx)(qe,Object(ce.a)({as:r,ownerState:c,className:Object(we.a)(u.root,o),ref:e},l))}));function Je(t){return Object(Xe.a)("MuiAppBar",t)}Object(We.a)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const tn=["className","color","enableColorOnDark","position"],en=(t,e)=>t?`${null==t?void 0:t.replace(")","")}, ${e})`:e,nn=Object($e.a)(Ze,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${Object(He.a)(n.position)}`],e[`color${Object(He.a)(n.color)}`]]}})((({theme:t,ownerState:e})=>{const n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return Object(ce.a)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===e.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===e.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===e.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===e.position&&{position:"static"},"relative"===e.position&&{position:"relative"},!t.vars&&Object(ce.a)({},"default"===e.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},e.color&&"default"!==e.color&&"inherit"!==e.color&&"transparent"!==e.color&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},"inherit"===e.color&&{color:"inherit"},"dark"===t.palette.mode&&!e.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===e.color&&Object(ce.a)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&Object(ce.a)({},"default"===e.color&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:en(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:en(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:en(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:en(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===e.color?"inherit":"var(--AppBar-color)"},"transparent"===e.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}));var on=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiAppBar"}),{className:o,color:r="primary",enableColorOnDark:i=!1,position:a="fixed"}=n,s=Object(ue.a)(n,tn),l=Object(ce.a)({},n,{color:r,position:a,enableColorOnDark:i}),c=(t=>{const{color:e,position:n,classes:o}=t,r={root:["root",`color${Object(He.a)(e)}`,`position${Object(He.a)(n)}`]};return Object(Ve.a)(r,Je,o)})(l);return Object(fe.jsx)(nn,Object(ce.a)({square:!0,component:"header",ownerState:l,elevation:4,className:Object(we.a)(c.root,o,"fixed"===a&&"mui-fixed"),ref:e},s))}));function rn(t){return Object(Xe.a)("MuiToolbar",t)}Object(We.a)("MuiToolbar",["root","gutters","regular","dense"]);const an=["className","component","disableGutters","variant"],sn=Object($e.a)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableGutters&&e.gutters,e[n.variant]]}})((({theme:t,ownerState:e})=>Object(ce.a)({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===e.variant&&{minHeight:48})),(({theme:t,ownerState:e})=>"regular"===e.variant&&t.mixins.toolbar));var ln=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiToolbar"}),{className:o,component:r="div",disableGutters:i=!1,variant:a="regular"}=n,s=Object(ue.a)(n,an),l=Object(ce.a)({},n,{component:r,disableGutters:i,variant:a}),c=(t=>{const{classes:e,disableGutters:n,variant:o}=t,r={root:["root",!n&&"gutters",o]};return Object(Ve.a)(r,rn,e)})(l);return Object(fe.jsx)(sn,Object(ce.a)({as:r,className:Object(we.a)(c.root,o),ref:e,ownerState:l},s))}));function cn(t){return Object(Xe.a)("MuiTypography",t)}Object(We.a)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const un=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dn=Object($e.a)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e[`align${Object(He.a)(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})((({theme:t,ownerState:e})=>Object(ce.a)({margin:0},"inherit"===e.variant&&{font:"inherit"},"inherit"!==e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16}))),pn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hn={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var fn=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiTypography"}),o=(t=>hn[t]||t)(n.color),r=_e(Object(ce.a)({},n,{color:o})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=pn}=r,h=Object(ue.a)(r,un),f=Object(ce.a)({},r,{align:i,color:o,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||pn[d])||"span",g=(t=>{const{align:e,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=t,s={root:["root",i,"inherit"!==t.align&&`align${Object(He.a)(e)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Object(Ve.a)(s,cn,a)})(f);return Object(fe.jsx)(dn,Object(ce.a)({as:m,ref:e,ownerState:f,className:Object(we.a)(g.root,a)},h))})),mn=n(73),gn=n.n(mn);const vn="var(--1-sb-dvh, 1vh)";function bn(){const t=Object(se.useMemo)((()=>{var t,e;return null===(e=null===(t=null===window||void 0===window?void 0:window.CSS)||void 0===t?void 0:t.supports)||void 0===e?void 0:e.call(t,"height: 100dvh")}),[]),e=()=>{var e=t?"1dvh":window.innerHeight/100+"px";document.documentElement.style.setProperty("--1-sb-dvh",e)};return Object(se.useEffect)((()=>{if(e(),!t)return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),null}function yn(t){return{color:Ne.getColorValue(t.color),textShadow:t.useShadow?"1px 1px 2px":""}}function An(t){return t.config.visible?se.default.createElement("span",{ref:t.innerRef,style:Object.assign(Object.assign({},t.style),yn(t.config))},Ne.getLocalizedBarcodeText(t.config.text)):null}var Sn=n(99),Cn=n(22),xn=n(25),wn=n(39);function On(t,e){return On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},On(t,e)}function En(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,On(t,e)}var jn=se.default.createContext(null);function Ln(t,e){var n=Object.create(null);return t&&se.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&Object(se.isValidElement)(t)?e(t):t}(t)})),n}function kn(t,e,n){return null!=n[e]?n[e]:t.props[e]}function _n(t,e,n){var o=Ln(t.children),r=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var o,r=Object.create(null),i=[];for(var a in t)a in e?i.length&&(r[a]=i,i=[]):i.push(a);var s={};for(var l in e){if(r[l])for(o=0;o<r[l].length;o++){var c=r[l][o];s[r[l][o]]=n(c)}s[l]=n(l)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}(e,o);return Object.keys(r).forEach((function(i){var a=r[i];if(Object(se.isValidElement)(a)){var s=i in e,l=i in o,c=e[i],u=Object(se.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&Object(se.isValidElement)(c)&&(r[i]=Object(se.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:kn(a,"exit",t),enter:kn(a,"enter",t)})):r[i]=Object(se.cloneElement)(a,{in:!1}):r[i]=Object(se.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:kn(a,"exit",t),enter:kn(a,"enter",t)})}})),r}var Tn=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},Pn=function(t){function e(e,n){var o,r=(o=t.call(this,e,n)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}En(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,o,r=e.children,i=e.handleExited;return{children:e.firstRender?(n=t,o=i,Ln(n.children,(function(t){return Object(se.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:kn(t,"appear",n),enter:kn(t,"enter",n),exit:kn(t,"exit",n)})}))):_n(t,r,i),firstRender:!1}},n.handleExited=function(t,e){var n=Ln(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=Object(ce.a)({},e.children);return delete n[t.key],{children:n}})))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,o=Object(ue.a)(t,["component","childFactory"]),r=this.state.contextValue,i=Tn(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===e?se.default.createElement(jn.Provider,{value:r},i):se.default.createElement(jn.Provider,{value:r},se.default.createElement(e,o,i))},e}(se.default.Component);Pn.propTypes={},Pn.defaultProps={component:"div",childFactory:function(t){return t}};var Rn=Pn,Bn=n(81);var Wn=function(t){const{className:e,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=t,[u,d]=se.useState(!1),p=Object(we.a)(e,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+r},f=Object(we.a)(n.child,u&&n.childLeaving,o&&n.childPulsate);return s||u||d(!0),se.useEffect((()=>{if(!s&&null!=l){const t=setTimeout(l,c);return()=>{clearTimeout(t)}}}),[l,s,c]),Object(fe.jsx)("span",{className:p,style:h,children:Object(fe.jsx)("span",{className:f})})};var In=Object(We.a)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Mn=["center","classes","className"];let Dn,Fn,zn,Nn,Vn=t=>t;const $n=Object(ge.d)(Dn||(Dn=Vn`
|
|
3
3
|
0% {
|
|
4
4
|
transform: scale(0);
|
|
5
5
|
opacity: 0.1;
|
|
@@ -184,4 +184,4 @@
|
|
|
184
184
|
`;return se.default.createElement("div",{style:{top:0,left:0,width:"100%",height:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:100}},se.default.createElement(t,{width:"101",height:"100",viewBox:"0 0 101 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},se.default.createElement("circle",{cx:"50.5",cy:"50",r:"50",fill:"#3E3E3E","fill-opacity":"0.35"}),se.default.createElement("path",{d:"M90.5153 49.6094C91.715 49.6094 92.6933 50.5827 92.6321 51.7808C92.1218 61.7815 88.0988 71.3096 81.2342 78.6635C73.8743 86.548 63.7963 91.3454 53.036 92.0868C42.2757 92.8282 31.6351 89.4582 23.2634 82.6576C15.455 76.3147 10.1633 67.4283 8.28624 57.5922C8.06135 56.4138 8.89694 55.3155 10.0853 55.1509C11.2737 54.9864 12.3642 55.8183 12.5959 56.9954C14.3176 65.7412 19.0487 73.6367 26.0026 79.2856C33.5201 85.3922 43.0751 88.4183 52.7374 87.7526C62.3998 87.0869 71.4494 82.7789 78.0584 75.699C84.1719 69.1497 87.7754 60.68 88.2814 51.7807C88.3495 50.5829 89.3156 49.6094 90.5153 49.6094Z",fill:"white"}),se.default.createElement("path",{d:"M40.7013 23.4514C40.2751 22.2667 40.8885 20.9518 42.1022 20.6166C45.5928 19.6526 49.2351 19.3251 52.8537 19.6567C57.2305 20.0577 61.4662 21.4131 65.2628 23.6273C69.0594 25.8416 72.3246 28.861 74.8286 32.4731C77.3326 36.0851 79.0146 40.2021 79.7562 44.5341C80.4978 48.8662 80.281 53.3082 79.121 57.5475C77.9611 61.7868 75.8862 65.7204 73.0423 69.0714C70.1985 72.4225 66.6548 75.1095 62.6606 76.9436C59.3583 78.4599 55.8145 79.3627 52.202 79.6146C50.9459 79.7022 49.9301 78.6662 49.9379 77.4072C49.9457 76.1481 50.9746 75.1443 52.2293 75.0398C55.1749 74.7942 58.0613 74.0382 60.758 72.8C64.1467 71.244 67.1532 68.9642 69.5659 66.1212C71.9787 63.2781 73.7391 59.9408 74.7232 56.3442C75.7073 52.7475 75.8912 48.9789 75.262 45.3035C74.6328 41.6281 73.2058 38.1353 71.0814 35.0708C68.957 32.0062 66.1867 29.4445 62.9657 27.5659C59.7446 25.6873 56.151 24.5374 52.4377 24.1972C49.4828 23.9265 46.5092 24.1737 43.6497 24.9219C42.4316 25.2406 41.1274 24.6362 40.7013 23.4514Z",fill:"white"}),se.default.createElement("path",{d:"M39.9232 61.6554C39.1643 62.5529 37.8105 62.673 37.0094 61.813C35.7171 60.4259 34.6502 58.8388 33.8523 57.1092C32.7564 54.7336 32.1944 52.1468 32.206 49.5307C32.2175 46.9146 32.8022 44.3328 33.9189 41.967C35.0356 39.6011 36.6573 37.5088 38.6697 35.8372C40.6822 34.1656 43.0365 32.9554 45.567 32.2916C48.0975 31.6279 50.7428 31.5268 53.3166 31.9954C55.8904 32.464 58.3303 33.4911 60.4644 35.0042C62.0183 36.1059 63.3827 37.4458 64.5093 38.9707C65.2077 39.916 64.8412 41.2247 63.8197 41.8061C62.7982 42.3875 61.5108 42.0174 60.7778 41.0986C59.9824 40.1015 59.0489 39.2181 58.0027 38.4763C56.3759 37.3229 54.5161 36.5401 52.5541 36.1828C50.5922 35.8256 48.5758 35.9027 46.6469 36.4086C44.7179 36.9146 42.9233 37.8371 41.3893 39.1113C39.8553 40.3855 38.6192 41.9804 37.7679 43.7838C36.9167 45.5872 36.471 47.5552 36.4622 49.5494C36.4534 51.5436 36.8818 53.5154 37.7172 55.3262C38.2544 56.4908 38.9515 57.5705 39.7858 58.5353C40.5545 59.4244 40.6821 60.7579 39.9232 61.6554Z",fill:"white"})))}}class Vh extends se.default.Component{render(){return this.props.text?se.default.createElement("div",{style:{position:"absolute",top:this.props.top,bottom:this.props.bottom,display:"flex",width:"100%",justifyContent:"center"}},se.default.createElement("div",{style:{padding:"5px 10px",borderRadius:5,backgroundColor:ba.TransparentGray,color:ba.White,fontWeight:500,fontSize:13}},this.props.text)):null}}class $h extends se.default.Component{constructor(t){super(t),this.state={element:t.element}}style(t){this.customStyle=t,this.forceUpdate()}update(t){this.setState({element:t})}formatText(t,e){if("None"!==e)return"Text"===e?t.text:t.format+" ("+t.text+")"}render(){var t,e,n,o,r;const i=this.state.element,a=this.props.configuration.style,s=this.formatText(i.code,this.props.configuration.textFormat),l=I.width(null!==(t=this.props.animateToPoints)&&void 0!==t?t:i.points);if(!s)return null;if(!i.points)return null;const c=null!==(n=null===(e=this.customStyle)||void 0===e?void 0:e.backgroundColor)&&void 0!==n?n:i.highlighted?a.highlightedTextBackgroundColor:a.textBackgroundColor,u=null!==(r=null===(o=this.customStyle)||void 0===o?void 0:o.textColor)&&void 0!==r?r:i.highlighted?a.highlightedTextColor:a.textColor;return se.default.createElement(mh.div,{ref:t=>this.label=t,onClick:()=>{this.props.onClick&&this.props.onClick(i)},style:{x:I.lowestX(i.points),y:I.highestY(i.points)+3,backgroundColor:c,fontSize:12,width:l,overflow:"hidden",color:u,borderRadius:5,position:"absolute",padding:"3px 7px",textAlign:"center",maxHeight:50,lineBreak:"anywhere",lineHeight:"22px",WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical"},animate:this.props.animateToPoints?{x:I.lowestX(this.props.animateToPoints),y:I.highestY(this.props.animateToPoints)+30}:{}},s)}}class Uh{constructor(){this.defaultFillColor="rgba(255, 0, 0, 0.3)",this.defaultHighlightedFillColor="rgba(0, 255, 0, 0.3)",this.polygonStrokeColor="rgba(255, 0, 0, 1)",this.polygonFillColor=this.defaultFillColor,this.polygonStrokeWidth=1,this.polygonCornerRadius=0,this.highlightedPolygonStrokeColor="rgba(0, 255, 0, 1)",this.highlightedPolygonFillColor=this.defaultHighlightedFillColor,this.highlightedPolygonStrokeWidth=2,this.highlightedPolygonCornerRadius=0,this.textColor="white",this.textBackgroundColor="rgba(255, 0, 0, 0.9)",this.highlightedTextColor="white",this.highlightedTextBackgroundColor="rgba(0, 255, 0, 0.9)"}}class Hh{constructor(){this.visible=!1,this.textFormat="Text",this.automaticSelectionEnabled=!1,this.style=new Uh}}class Gh{constructor(){this.topLabelTop=20,this.sheetHeight="95%",this.sheetTopMargin="10%"}}class Yh{constructor(){this.enabled=!1,this.style=new Gh}}class Xh extends $t{constructor(){super(p.DEFAULT_VIDEO_RESOLUTION_HD),this.captureDelay=1e3,this.overlay=new Hh,this.scanAndCount=new Yh,this.gs1Handling="PARSE",this.onBarcodesDetected=function(t){}}static fromJson(t){const e=new Xh;return this.mapValues(t,e,["style","videoConstraints","overlay","scanAndCount","finder","userGuidance"]),this.mapFinderConfiguration(e,t),t.overlay&&(this.mapValues(t.overlay,e.overlay,["style"]),t.overlay.style&&this.mapValues(t.overlay.style,e.overlay.style)),t.scanAndCount&&(this.mapValues(t.scanAndCount,e.scanAndCount,["style"]),t.scanAndCount.style&&this.mapValues(t.scanAndCount.style,e.scanAndCount.style)),this.mapVideoConstraints(t,e),e}}class Kh{static warn(t){console.warn("[ScanbotSDK]",t)}}class Qh{constructor(t,e){this.p1=t,this.p2=e}}class qh{static convertLinesToViewportLines(t,e){if(e&&t)return e.map((e=>new Qh(new I(e.p1.x*t.width,e.p1.y*t.height),new I(e.p2.x*t.width,e.p2.y*t.height))))}static convertToViewportPointsFromParentSize(t,e){return e?ua.isEmpty(t)?void 0:e.map((e=>I.scaleUpTo(e,t))):ua.toPolygon(t)}static calculateScale(t){let e,n=0,o=0;return 1>t.width/t.height?(e=t.height/1,n=(1-t.width/e)/2):(e=t.width/1,o=(1-t.height/e)/2),{x:n,y:o,containerScale:e}}static findScale(t,e){let n,o=0,r=0;return e.ratio(!0)>t.ratio(!0)?(n=t.width/e.width,r=(e.height-t.height/n)/2):(n=t.height/e.height,o=(e.width-t.width/n)/2),{x:o,y:r,scale:n}}static preventDefaultCallback(t){t.preventDefault()}static disableScreenMovement(){document.addEventListener("touchmove",qh.preventDefaultCallback,{passive:!1}),document.body.scrollTop=document.documentElement.scrollTop=0,document.documentElement.style.overflow="hidden"}static enableScreenMovement(){document.removeEventListener("touchmove",qh.preventDefaultCallback),document.documentElement.style.overflow="auto"}static findContainerOrThrow(t){var e;const n=null!==(e=t.container)&&void 0!==e?e:document.getElementById(t.containerId);if(!n)throw Error("Unable to initialize scanner: Cannot find container element either from 'container' property or with the containerId property provided.");return n}}var Zh=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class Jh{static postBlob(t,e){return Zh(this,void 0,void 0,(function*(){const n=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:e});return yield n.json()}))}static postImage(t,e){return Zh(this,void 0,void 0,(function*(){const n=R.convertImageDataWrapperToImageData(e),o=R.createImageDataCanvas(n),r=yield new Promise((t=>o.toBlob((e=>t(e)))));return yield Jh.postBlob(t,r)}))}static recognizeBarcodes(t,e){return Zh(this,void 0,void 0,(function*(){const n=yield Jh.postImage(t,e);return D.fromWorker(n,e)}))}}var tf=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class ef extends sa{constructor(t){var e;super(t),this.shouldComputeSize=!0,this.paused=!1,this.barcodes=[],this.detectionRunning=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),this.backendurl=void 0,this.desiredRecognitionResolution=void 0,this.desiredRecognitionResolution=this.configuration.desiredRecognitionResolution,Object.assign(this.state,{isFinderVisible:null===(e=this.configuration.finder.visible)||void 0===e||e,zoom:void 0,action:"manual",image:void 0,bottomHintText:void 0})}get configuration(){return this._configuration||(this._configuration=Xh.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(t){return tf(this,void 0,void 0,(function*(){const e=qh.findContainerOrThrow(t);return new Promise(((n,o)=>{Object(se.render)(se.default.createElement(ef,{container:e,configuration:t,onSuccess:n,onFailure:o}),e)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return tf(this,void 0,void 0,(function*(){Kh.warn("Barcode detection resumed"),yield this.resume()}))}pauseDetection(){Kh.warn("Barcode detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return tf(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return tf(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return tf(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.paused=!0}detect(){var t,e,n,o,r,i;return tf(this,void 0,void 0,(function*(){if(!this.enabled)return;if(this.paused)return;if(null===(t=this.configuration.scanAndCount)||void 0===t?void 0:t.enabled)return;if(this.detectionRunning)return;let a=!1;try{this.detectionRunning=!0;const t=yield this.recognizeBarcodes(!0,this.shouldComputeSize,this.configuration.returnBarcodeImage);if(this.shouldComputeSize=!1,!t)return;const s=t.barcodeResult;s.isEmpty()?this.configuration._onDetectionFailed&&(null===(e=this.configuration)||void 0===e||e._onDetectionFailed(null==s?void 0:s.imageData)):(a=!0,this.configuration.overlay.visible||this.configuration.onBarcodesDetected(s)),null===(n=this.overlay)||void 0===n||n.update(null===(o=this.finder)||void 0===o?void 0:o.holeRect,this.camera,t.barcodeResult.imageData,null!==(r=this.configuration.container)&&void 0!==r?r:this.configuration.containerId,t.barcodeResult.barcodes)}catch(t){console.log(t)}finally{this.detectionRunning=!1;const t=()=>requestAnimationFrame(this.detect.bind(this)),e=(null===(i=this.configuration.overlay)||void 0===i?void 0:i.visible)?0:this.configuration.captureDelay;a&&0!=e?setTimeout(t,e):t()}}))}setUseBackendService(t){console.log("Now using backend service for recognition: ",t),this.backendurl=t}recognizeBarcodes(t,e,n){var o,r,i,a,s,l;return tf(this,void 0,void 0,(function*(){window&&window.__SB_DEBUG_BARCODESCANNER_FORCE_DETERMINISTIC_MODE&&(t=!1);const c=t?sa.DEFAULT_DETECTION_RESOLUTION:sa.DETECTION_RESULTION_4K,u=null!==(o=this.desiredRecognitionResolution)&&void 0!==o?o:c;this.camera.finderFrame=null===(r=this.finder)||void 0===r?void 0:r.holeRect;const d=yield null===(i=this.camera)||void 0===i?void 0:i.createImageData(u);if(!d)return;e&&this.forceUpdate(),(null===(a=this.configuration.scanAndCount)||void 0===a?void 0:a.enabled)&&(this.setState({image:R.wrapperToBase64(d)}),void 0!==this.desiredRecognitionResolution?console.log("Recognizing barcodes with custom resolution:",this.desiredRecognitionResolution):console.log("Recognizing barcodes with max resolution:",sa.DETECTION_RESULTION_4K,"(the actual resolution depends on your device and may be lower)"));const p=this.configuration.engineMode,h=this.configuration.barcodeFormats;let f;if(this.backendurl&&this.backendurl.length>0)f=yield Jh.recognizeBarcodes(this.backendurl,d);else{const e=yield this.bridge.postByTransferringArgs("recognizeBarcodes",[d,{live:t,engineMode:p,barcodeFormats:h,returnBarcodeImage:n,gs1Handling:this.configuration.gs1Handling}]);if(!this.enabled)return;if(null===e)return void(null===(l=(s=this.props).onLicenseError)||void 0===l||l.call(s));f=D.fromWorker(e.result,e.originalImage)}return this.configuration.barcodesRegexFilter&&(f.barcodes=f.barcodes.filter((t=>{var e;return null===(e=t.text)||void 0===e?void 0:e.match(this.configuration.barcodesRegexFilter)}))),{imageData:d,originalImage:undefined,barcodeResult:f}}))}setRecognitionResolution(t){this.desiredRecognitionResolution=t}getResolution(){return tf(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=this.camera.videoSize();n.width>0&&n.height>0?t(ua.fromJson(n)):this.camera.didLoadVideo=()=>{const e=this.camera.videoSize();t(ua.fromJson(e))}}))}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(t){this.setState({isFinderVisible:t})}setZoom(t){this.setState({zoom:t})}setCameraDirection(t){this.camera.setDirection(t)}updateTorch(t){this.camera.videoStream.updateTorch(t)}getCapabilities(){return this.camera.videoStream.getCapabilities()}render(){var t,e,n,o,r,i,a;const s=(null===(t=this.configuration.scanAndCount)||void 0===t?void 0:t.enabled)?"Tap the shutter button to scan":void 0;return se.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"black"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),se.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},se.default.createElement(pa,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,zoom:null!==(n=this.state.zoom)&&void 0!==n?n:this.configuration.zoom,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),se.default.createElement(Vh,{top:null===(o=this.configuration.scanAndCount)||void 0===o?void 0:o.style.topLabelTop,text:s}),se.default.createElement(zh,{ref:t=>this.scannedImage=t,image:this.state.image}),this.state.isFinderVisible&&se.default.createElement(ha,{ref:t=>{this.finder=t},padding:this.props.viewFinderPadding,guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}),se.default.createElement(Vh,{bottom:100,text:this.state.bottomHintText}),se.default.createElement(Nh,{visible:"processing"===this.state.action}),(null===(r=this.configuration.overlay)||void 0===r?void 0:r.visible)&&se.default.createElement(jh,{ref:t=>{t&&(this.overlay=t)},configuration:this.configuration.overlay,onPolygonSelected:t=>{const e=new D([t],void 0);this.configuration.onBarcodesDetected(e)},onBarcodeFound:(t,e,n)=>{var o;(null===(o=this.configuration.overlay)||void 0===o?void 0:o.onBarcodeFound)&&this.configuration.overlay.onBarcodeFound(t,e,n)},LabelComponent:$h,labelComponentConfig:{}}),(null===(i=this.configuration.scanAndCount)||void 0===i?void 0:i.enabled)&&se.default.createElement(Dh,{ref:t=>this.bottomActionBar=t,action:this.state.action,isShowingImage:void 0!==this.state.image,onBurgerClick:()=>{this.popup.push(va.PushBottom,this.barcodes)},onShutterButtonClick:()=>tf(this,void 0,void 0,(function*(){(new B).flash(),this.setState({action:"processing"});const t=(new Date).getTime(),e=yield this.recognizeBarcodes(!1,!1,!0);console.log("Recognition took:",((new Date).getTime()-t)/1e3),this.recognition=e;const n=this.countLabelText(e.barcodeResult.barcodes);this.setState({action:"manual",bottomHintText:n}),this.scannedImage.update(e.barcodeResult),this.barcodes.push(...e.barcodeResult.barcodes),this.bottomActionBar.update(this.barcodes),e.barcodeResult.barcodes.length>0&&this.configuration.onBarcodesDetected(e.barcodeResult)})),onScanMoreClick:()=>{this.resetCountImage()}}),se.default.createElement(ya,{ref:t=>this.popup=t,style:null===(a=this.configuration.scanAndCount)||void 0===a?void 0:a.style,onDeleteClick:()=>{if(confirm("Are you sure you want to delete all scanned barcodes?")){for(;this.barcodes.length>0;)this.barcodes.pop();console.log("Cleared barcodes",this.barcodes.length),this.popup.update(this.barcodes),this.bottomActionBar.update(void 0),this.resetCountImage(),this.popup.reset()}}}))}resetCountImage(){this.scannedImage.reset(),this.setState({image:void 0,bottomHintText:void 0})}countLabelText(t){return 0==t.length?"No codes scanned. Try again?":1==t.length?"1 Code Scanned":`${t.length} Codes Scanned`}}var nf=n(38),of=Object(nf.a)(Object(fe.jsx)("path",{d:"M6 2h12v3H6zm0 5v1l2 3v11h8V11l2-3V7zm6 8.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"FlashlightOn"),rf=Object(nf.a)(Object(fe.jsx)("path",{d:"M18 5V2H6v1.17L7.83 5zm-2 6 2-3V7H9.83L16 13.17zM2.81 2.81 1.39 4.22 8 10.83V22h8v-3.17l3.78 3.78 1.41-1.41z"}),"FlashlightOff"),af=Object(nf.a)(Object(fe.jsx)("path",{d:"M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-8 13c-2.76 0-5-2.24-5-5H5l2.5-2.5L10 13H8c0 2.21 1.79 4 4 4 .58 0 1.13-.13 1.62-.35l.74.74c-.71.37-1.5.61-2.36.61m4.5-2.5L14 13h2c0-2.21-1.79-4-4-4-.58 0-1.13.13-1.62.35l-.74-.73C10.35 8.24 11.14 8 12 8c2.76 0 5 2.24 5 5h2z"}),"FlipCameraIos");function sf(t,e){return t&&(t.hasFacingOptions&&e.flipCameraButton.visible||t.isTorchAvailable&&e.flashButton.visible)||e.zoomButton.visible}function lf(t){const e=t.zoomSteps.findIndex((e=>e==t.defaultZoomFactor)),[n,o]=Object(se.useState)(t.torchEnabledInitially),[r,i]=Object(se.useState)(e),a=t.zoomSteps[r],[s,l]=Object(se.useState)("BACK"==t.initialCameraModule?"environment":"user"),c=function(t){var e,n;const o=null===(n=null===(e=null==t?void 0:t.camera)||void 0===e?void 0:e.video)||void 0===n?void 0:n.parentElement,r=()=>o?o.getBoundingClientRect():null,[i,a]=Object(se.useState)(r());return Object(se.useEffect)((()=>{if(o){const t=()=>a(r());t();const e=new ResizeObserver(t);return e.observe(o),()=>{e.disconnect()}}}),[o]),i}(t.scanner),u=!!c;if(Object(se.useEffect)((()=>{var e;(null===(e=t.capabilities)||void 0===e?void 0:e.isTorchAvailable)&&u&&t.scanner.setTorchState(n)}),[t.capabilities,u,n]),Object(se.useEffect)((()=>{var e;u&&(null===(e=t.scanner)||void 0===e||e.setZoom(a))}),[u,a]),!t.capabilities||!c)return null;if(!sf(t.capabilities,t.config))return null;const d=c.height-t.bottomPadding-48;return se.default.createElement(De,{style:{position:"absolute",marginTop:d,marginLeft:c.width/2,transform:"translateX(-50%)",display:"flex",justifyContent:"center",zIndex:1e3}},se.default.createElement(Ki,Object.assign({},t.config.flashButton,{visible:t.capabilities.isTorchAvailable&&t.config.flashButton.visible,icon:n?of:rf,active:n,onClick:()=>o(!n)})),se.default.createElement("div",{style:{width:20}}),se.default.createElement(Ki,Object.assign({},t.config.zoomButton,{text:`${a.toFixed(1)}x`,active:r!==e,onClick:()=>i((r+1)%t.zoomSteps.length)})),se.default.createElement("div",{style:{width:20}}),se.default.createElement(Ki,Object.assign({},t.config.flipCameraButton,{visible:t.capabilities.hasFacingOptions&&t.config.flipCameraButton.visible,active:"user"===s,icon:af,onClick:()=>{var e;const n="environment"===s?"user":"environment";l(n),null===(e=t.scanner)||void 0===e||e.setCameraDirection(n)}})))}var cf=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};class uf extends $h{constructor(){super(...arguments),this.count=0,this.setCount=t=>{this.count=t,this.forceUpdate()}}render(){var t;const{barcodeItemConfiguration:e,barcodeItemInfoPosition:n,counterBadge:o}=this.props,r=this.state.element,i=null!==(t=this.props.animateToPoints)&&void 0!==t?t:r.points,a=r.code,s=r.highlighted,l=10,c=(I.lowestY(i)+I.highestY(i))/2,u=(I.lowestX(i)+I.highestX(i))/2,d=(()=>{const t={badgeY:c,badgeStyle:{transform:"translateX(-50%) translateY(-50%)"}};return"BELOW"===n?Object.assign(Object.assign({},t),{labelY:Math.max(I.highestY(i)+l,o?c-24-l:-1/0),labelStyle:{transform:"translateX(-50%)"}}):"ABOVE"===n?Object.assign(Object.assign({},t),{labelY:Math.min(I.lowestY(i)-l,o.visible?c+24+l:1/0),labelStyle:{transform:"translateX(-50%) translateY(-100%)"}}):"STACKED"===n?{badgeY:c,badgeStyle:{transform:"translateX(-50%) translateY(calc(-100% - 5px))"},labelY:c,labelStyle:{transform:o.visible?"translateX(-50%) translateY(5px)":"translateX(-50%) translateY(-50%)"}}:"DISABLED"===n?Object.assign(Object.assign({},t),{labelY:0,labelStyle:{display:"none"}}):void 0})(),p=!1===e.titleDeselected.visible&&!1===e.subtitleDeselected.visible,h={x:u,y:Math.round(d.labelY)},f={x:u,y:Math.round(d.badgeY)},m={duration:.25,easing:"linear"};return se.default.createElement(se.default.Fragment,null,se.default.createElement(mh.div,{ref:t=>this.label=t,style:Object.assign(Object.assign({},h),{position:"absolute",width:"100%",zIndex:100}),animate:this.props.animateToPoints?h:{},transition:m},se.default.createElement(po,{sx:Object.assign({p:1,maxWidth:232,cursor:"pointer",display:p?"inline-block":"block",zIndex:1500},d.labelStyle),styleConfig:s?e.backgroundSelected:e.backgroundDeselected,"data-sb-ar-barcode-info":"1",onClick:()=>{var t;return null===(t=this.props)||void 0===t?void 0:t.onClick(r)}},se.default.createElement(df,{barcode:a,barcodeImageVisible:e.imageVisible,maxNumberOfTitleLines:1,maxNumberOfSubtitleLines:1,imageSize:42,displayRightArrow:!0,barcodeTitle:s?e.titleSelected:e.titleDeselected,barcodeSubtitle:s?e.subtitleSelected:e.subtitleDeselected}))),o.visible&&this.count>0&&se.default.createElement(mh.div,{style:Object.assign({position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",zIndex:100},f),animate:this.props.animateToPoints?f:{},transition:m},se.default.createElement(po,{styleConfig:Object.assign(Object.assign({},o.background),{cornerRadius:24+o.background.strokeWidth}),style:Object.assign(Object.assign({},d.badgeStyle),{width:48,height:48,color:Ne.getColorValue(o.foregroundColor),display:"flex",justifyContent:"center",alignItems:"center",zIndex:1500,cursor:"pointer"}),onClick:()=>{var t;return null===(t=this.props)||void 0===t?void 0:t.onClick(r)}},se.default.createElement(fn,{fontSize:16,fontWeight:"500"},"x",this.count))))}}function df(t){var{barcode:e}=t,n=cf(t,["barcode"]);const o=Object(se.useContext)(Vi).useBarcodeMappedData(e);return se.default.createElement(ur,Object.assign({barcodeMappedData:o},n))}function pf(t){const e=Object(se.useRef)(),n=Object(se.useRef)(null),[o,r]=(Object(se.useContext)(fo),Object(se.useState)(void 0)),[i,a]=Object(se.useState)(!1);Object(se.useEffect)((()=>{var n,o;t.scanningPaused?null===(n=e.current)||void 0===n||n.pause():null===(o=e.current)||void 0===o||o.resume()}),[t.scanningPaused]);const s=function(t){const e=new Hh;return e.visible=t.visible,t.polygon.visible?(e.style.highlightedPolygonFillColor=Ne.getColorValue(t.polygon.selected.fillColor),e.style.highlightedPolygonStrokeColor=Ne.getColorValue(t.polygon.selected.strokeColor),e.style.highlightedPolygonStrokeWidth=t.polygon.selected.strokeWidth,e.style.highlightedPolygonCornerRadius=t.polygon.selected.cornerRadius,e.style.polygonFillColor=Ne.getColorValue(t.polygon.deselected.fillColor),e.style.polygonStrokeColor=Ne.getColorValue(t.polygon.deselected.strokeColor),e.style.polygonStrokeWidth=t.polygon.deselected.strokeWidth,e.style.polygonCornerRadius=t.polygon.deselected.cornerRadius):(e.style.highlightedPolygonFillColor="transparent",e.style.highlightedPolygonStrokeColor="transparent",e.style.polygonFillColor="transparent",e.style.polygonStrokeColor="transparent"),e.automaticSelectionEnabled=!1,e}(t.arOverlay),l=Object.assign(Object.assign({},t.barcodeScannerViewConfig),{onBarcodesDetected:o=>{var r,i,a,s,l,c;null===(r=n.current)||void 0===r||r.update(null===(a=null===(i=e.current)||void 0===i?void 0:i.finder)||void 0===a?void 0:a.holeRect,null===(s=e.current)||void 0===s?void 0:s.camera,o.imageData,t.containerId,o.barcodes),null===(c=(l=t.barcodeScannerViewConfig).onBarcodesDetected)||void 0===c||c.call(l,o)},_onDetectionFailed:o=>{var r,i,a,s,l,c;null===(r=n.current)||void 0===r||r.update(null===(a=null===(i=e.current)||void 0===i?void 0:i.finder)||void 0===a?void 0:a.holeRect,null===(s=e.current)||void 0===s?void 0:s.camera,o,t.containerId,[]),null===(c=(l=t.barcodeScannerViewConfig)._onDetectionFailed)||void 0===c||c.call(l,o)}});return Object(se.useEffect)((()=>{const e=sf(o,t.actionBarConfig);t.setActionButtonsVisible(e),a(e)}),[o,t.actionBarConfig]),se.default.createElement(se.default.Fragment,null,t.arOverlay.visible&&se.default.createElement(jh,{style:{zIndex:1e3,position:"absolute"},ref:n,LabelComponent:uf,labelComponentConfig:t.arOverlay,onBarcodeFound:t.arOnBarcodeEnter,onPolygonClick:t.arOnBarcodeClick,configuration:s}),se.default.createElement(lf,{config:t.actionBarConfig,scanner:e.current,capabilities:o,bottomPadding:t.actionBarBottomPadding,torchEnabledInitially:t.cameraConfiguration.flashEnabled,zoomSteps:t.cameraConfiguration.zoomSteps,defaultZoomFactor:t.cameraConfiguration.defaultZoomFactor,initialCameraModule:t.cameraConfiguration.cameraModule}),se.default.createElement(ef,{ref:e,viewFinderPadding:t.viewFinderPadding,configuration:l,onSuccess:()=>class{static setFromScanner(t,e){var n;if(!t.current)return;const o=t.current.getCapabilities();e({hasFacingOptions:o.facingMode&&o.facingMode.length>0,isTorchAvailable:null!==(n=t.current.getActiveCameraInfo().supportsTorchControl)&&void 0!==n&&n})}}.setFromScanner(e,r),onFailure:t.onCameraPermissionDenied,onLicenseError:t.onLicenseError}))}function hf(t){return Object(se.useMemo)((()=>{const e=(new Xh).videoConstraints;return e.facingMode="FRONT"===t.cameraConfiguration.cameraModule?"user":"environment",e.width={ideal:t.cameraConfiguration.idealPreviewResolution.width},e.height={ideal:t.cameraConfiguration.idealPreviewResolution.height},{videoConstraints:e,backgroundColor:Ne.getColorValue(t.backgroundColor),userGuidance:t.userGuidance,finder:t.viewFinder,barcodesRegexFilter:new RegExp(t.recognizerConfiguration.barcodesRegexFilter),desiredRecognitionResolution:t.recognizerConfiguration.maximumRecognizerResolution,engineMode:t.recognizerConfiguration.engineMode,barcodeFormats:t.recognizerConfiguration.barcodeFormats,gs1Handling:t.recognizerConfiguration.gs1Handling}}),[t])}var ff=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};function mf(t){const[e,n]=Object(se.useState)(null),[o,r]=Object(se.useState)(!0),i=Object(se.useMemo)((()=>"__sb_"+Math.random()),[]),a=Object(se.useContext)(Vi),s=t.configuration.useCase,l=Object.assign(Object.assign({},hf(t.configuration)),{onBarcodesDetected:e=>{e.barcodes.length>0&&!s.arOverlay.visible&&t.scanningEnabled.current&&n(e.barcodes[0])},onError:t.onError,returnBarcodeImage:!s.barcodeInfoMapping.barcodeItemMapper,containerId:i,captureDelay:0}),c=n=>ff(this,void 0,void 0,(function*(){let o;o=null===e?[]:[yield a.mapBarcodeToBarcodeItem(n,1)];const r={items:o};t.onSubmit(r)}));Object(se.useEffect)((()=>{e&&(Zi.INSTANCE.beep(t.configuration.sound),ta.INSTANCE.vibrate(t.configuration.vibration))}),[e]),Object(se.useEffect)((()=>{null===e||s.confirmationSheetEnabled||c(e)}),[e,s.confirmationSheetEnabled]);const u=a.useBarcodeMappedData(e);Object(se.useEffect)((()=>{"FAILED"===(null==u?void 0:u.state)&&n(null)}),[null==u?void 0:u.state]);const d=Object(se.useContext)(fo);return se.default.createElement(se.default.Fragment,null,se.default.createElement(Fi,Object.assign({open:!!u&&["LOADED","LOADING"].includes(u.state)&&s.confirmationSheetEnabled,handleCancel:()=>{n(null)},handleSubmit:()=>{c(e)},barcodeMappedData:u},{sheetColorLoaded:(p=s).sheetColor,sheetColorLoading:p.barcodeInfoMapping.sheetColor,barcodeImageVisible:p.barcodeImageVisible,barcodeTitle:p.barcodeTitle,barcodeSubtitle:p.barcodeSubtitle,cancelButton:p.cancelButton,submitButton:p.submitButton,dividerColor:p.dividerColor,loadingMessage:p.barcodeInfoMapping.loadingMessage},{displayRightArrow:!1,modalOverlayColor:s.modalOverlayColor})),se.default.createElement(De,{id:i,sx:{width:"100%",height:d.remainingVisibleBodyHeight}},se.default.createElement(pf,{cameraConfiguration:t.configuration.cameraConfiguration,scanningPaused:null!==e,setActionButtonsVisible:r,viewFinderPadding:{minTopPadding:d.minTopPaddingForViewFinder,minBottomPadding:o?80:0},barcodeScannerViewConfig:l,arOnBarcodeClick:t=>n(t),arOnBarcodeEnter:e=>{s.arOverlay.automaticSelectionEnabled&&t.scanningEnabled.current&&n(e)},arOverlay:Object.assign(Object.assign({},s.arOverlay),{counterBadge:Object.assign(Object.assign({},s.arOverlay.counterBadge),{visible:!1})}),containerId:i,actionBarConfig:t.configuration.actionBar,actionBarBottomPadding:16,onCameraPermissionDenied:t.onCameraPermissionDenied,onLicenseError:t.onError})));var p}var gf=n(98);function vf(t){const{children:e,defer:n=!1,fallback:o=null}=t,[r,i]=se.useState(!1);return Object(ni.a)((()=>{n||i(!0)}),[n]),se.useEffect((()=>{n&&i(!0)}),[n]),Object(fe.jsx)(se.Fragment,{children:r?e:o})}var bf=n(40),yf=n(34);const Af=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Sf(t,e,n){var o;const r=function(t,e,n){const o=e.getBoundingClientRect(),r=n&&n.getBoundingClientRect(),i=Object(yf.a)(e);let a;if(e.fakeTransform)a=e.fakeTransform;else{const t=i.getComputedStyle(e);a=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const t=a.split("(")[1].split(")")[0].split(",");s=parseInt(t[4],10),l=parseInt(t[5],10)}return"left"===t?r?`translateX(${r.right+s-o.left}px)`:`translateX(${i.innerWidth+s-o.left}px)`:"right"===t?r?`translateX(-${o.right-r.left-s}px)`:`translateX(-${o.left+o.width-s}px)`:"up"===t?r?`translateY(${r.bottom+l-o.top}px)`:`translateY(${i.innerHeight+l-o.top}px)`:r?`translateY(-${o.top-r.top+o.height-l}px)`:`translateY(-${o.top+o.height-l}px)`}(t,e,"function"==typeof(o=n)?o():o);r&&(e.style.webkitTransform=r,e.style.transform=r)}var Cf=se.forwardRef((function(t,e){const n=hr(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,container:l,direction:c="down",easing:u=o,in:d,onEnter:p,onEntered:h,onEntering:f,onExit:m,onExited:g,onExiting:v,style:b,timeout:y=r,TransitionComponent:A=hi}=t,S=Object(ue.a)(t,Af),C=se.useRef(null),x=Object(Cn.a)(s.ref,C,e),w=t=>e=>{t&&(void 0===e?t(C.current):t(C.current,e))},O=w(((t,e)=>{Sf(c,t,l),fi(t),p&&p(t,e)})),E=w(((t,e)=>{const o=mi({timeout:y,style:b,easing:u},{mode:"enter"});t.style.webkitTransition=n.transitions.create("-webkit-transform",Object(ce.a)({},o)),t.style.transition=n.transitions.create("transform",Object(ce.a)({},o)),t.style.webkitTransform="none",t.style.transform="none",f&&f(t,e)})),j=w(h),L=w(v),k=w((t=>{const e=mi({timeout:y,style:b,easing:u},{mode:"exit"});t.style.webkitTransition=n.transitions.create("-webkit-transform",e),t.style.transition=n.transitions.create("transform",e),Sf(c,t,l),m&&m(t)})),_=w((t=>{t.style.webkitTransition="",t.style.transition="",g&&g(t)})),T=se.useCallback((()=>{C.current&&Sf(c,C.current,l)}),[c,l]);return se.useEffect((()=>{if(d||"down"===c||"right"===c)return;const t=Object(bf.a)((()=>{C.current&&Sf(c,C.current,l)})),e=Object(yf.a)(C.current);return e.addEventListener("resize",t),()=>{t.clear(),e.removeEventListener("resize",t)}}),[c,d,l]),se.useEffect((()=>{d||T()}),[d,T]),Object(fe.jsx)(A,Object(ce.a)({nodeRef:C,onEnter:O,onEntered:j,onEntering:E,onExit:k,onExited:_,onExiting:L,addEndListener:t=>{i&&i(C.current,t)},appear:a,in:d,timeout:y},S,{children:(t,e)=>se.cloneElement(s,Object(ce.a)({ref:x,style:Object(ce.a)({visibility:"exited"!==t||d?void 0:"hidden"},b,s.props.style)},e))}))}));function xf(t){return Object(Xe.a)("MuiDrawer",t)}Object(We.a)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const wf=["BackdropProps"],Of=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Ef=(t,e)=>{const{ownerState:n}=t;return[e.root,("permanent"===n.variant||"persistent"===n.variant)&&e.docked,e.modal]},jf=Object($e.a)(ji,{name:"MuiDrawer",slot:"Root",overridesResolver:Ef})((({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer}))),Lf=Object($e.a)("div",{shouldForwardProp:$e.b,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Ef})({flex:"0 0 auto"}),kf=Object($e.a)(Ze,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`paperAnchor${Object(He.a)(n.anchor)}`],"temporary"!==n.variant&&e[`paperAnchorDocked${Object(He.a)(n.anchor)}`]]}})((({theme:t,ownerState:e})=>Object(ce.a)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===e.anchor&&{left:0},"top"===e.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===e.anchor&&{right:0},"bottom"===e.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===e.anchor&&"temporary"!==e.variant&&{borderRight:`1px solid ${(t.vars||t).palette.divider}`},"top"===e.anchor&&"temporary"!==e.variant&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},"right"===e.anchor&&"temporary"!==e.variant&&{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},"bottom"===e.anchor&&"temporary"!==e.variant&&{borderTop:`1px solid ${(t.vars||t).palette.divider}`}))),_f={left:"right",right:"left",top:"down",bottom:"up"};function Tf(t){return-1!==["left","right"].indexOf(t)}function Pf(t,e){return"rtl"===t.direction&&Tf(e)?_f[e]:e}var Rf=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiDrawer"}),o=hr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:a,children:s,className:l,elevation:c=16,hideBackdrop:u=!1,ModalProps:{BackdropProps:d}={},onClose:p,open:h=!1,PaperProps:f={},SlideProps:m,TransitionComponent:g=Cf,transitionDuration:v=r,variant:b="temporary"}=n,y=Object(ue.a)(n.ModalProps,wf),A=Object(ue.a)(n,Of),S=se.useRef(!1);se.useEffect((()=>{S.current=!0}),[]);const C=Pf(o,i),x=i,w=Object(ce.a)({},n,{anchor:x,elevation:c,open:h,variant:b},A),O=(t=>{const{classes:e,anchor:n,variant:o}=t,r={root:["root"],docked:[("permanent"===o||"persistent"===o)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Object(He.a)(n)}`,"temporary"!==o&&`paperAnchorDocked${Object(He.a)(n)}`]};return Object(Ve.a)(r,xf,e)})(w),E=Object(fe.jsx)(kf,Object(ce.a)({elevation:"temporary"===b?c:0,square:!0},f,{className:Object(we.a)(O.paper,f.className),ownerState:w,children:s}));if("permanent"===b)return Object(fe.jsx)(Lf,Object(ce.a)({className:Object(we.a)(O.root,O.docked,l),ownerState:w,ref:e},A,{children:E}));const j=Object(fe.jsx)(g,Object(ce.a)({in:h,direction:_f[C],timeout:v,appear:S.current},m,{children:E}));return"persistent"===b?Object(fe.jsx)(Lf,Object(ce.a)({className:Object(we.a)(O.root,O.docked,l),ownerState:w,ref:e},A,{children:j})):Object(fe.jsx)(jf,Object(ce.a)({BackdropProps:Object(ce.a)({},a,d,{transitionDuration:v}),className:Object(we.a)(O.root,O.modal,l),open:h,ownerState:w,onClose:p,hideBackdrop:u,ref:e},A,y,{children:j}))})),Bf=n(33),Wf=n(29);const If=["anchor","classes","className","width","style"],Mf=Object($e.a)("div",{shouldForwardProp:$e.b})((({theme:t,ownerState:e})=>Object(ce.a)({position:"fixed",top:0,left:0,bottom:0,zIndex:t.zIndex.drawer-1},"left"===e.anchor&&{right:"auto"},"right"===e.anchor&&{left:"auto",right:0},"top"===e.anchor&&{bottom:"auto",right:0},"bottom"===e.anchor&&{top:"auto",bottom:0,right:0})));var Df=se.forwardRef((function(t,e){const{anchor:n,classes:o={},className:r,width:i,style:a}=t,s=Object(ue.a)(t,If),l=t;return Object(fe.jsx)(Mf,Object(ce.a)({className:Object(we.a)("PrivateSwipeArea-root",o.root,o[`anchor${Object(He.a)(n)}`],r),ref:e,style:Object(ce.a)({[Tf(n)?"width":"height"]:i},a),ownerState:l},s))}));const Ff=["BackdropProps"],zf=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let Nf=null;function Vf(t,e,n){return"right"===t?n.body.offsetWidth-e[0].pageX:e[0].pageX}function $f(t,e,n){return"bottom"===t?n.innerHeight-e[0].clientY:e[0].clientY}function Uf(t,e){return t?e.clientWidth:e.clientHeight}function Hf(t,e,n,o){return Math.min(Math.max(n?e-t:o+e-t,0),o)}const Gf="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent);var Yf=se.forwardRef((function(t,e){const n=Object(gf.a)({name:"MuiSwipeableDrawer",props:t}),o=hr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",disableBackdropTransition:a=!1,disableDiscovery:s=!1,disableSwipeToOpen:l=Gf,hideBackdrop:c,hysteresis:u=.52,allowSwipeInChildren:d=!1,minFlingVelocity:p=450,ModalProps:{BackdropProps:h}={},onClose:f,onOpen:m,open:g=!1,PaperProps:v={},SwipeAreaProps:b,swipeAreaWidth:y=20,transitionDuration:A=r,variant:S="temporary"}=n,C=Object(ue.a)(n.ModalProps,Ff),x=Object(ue.a)(n,zf),[w,O]=se.useState(!1),E=se.useRef({isSwiping:null}),j=se.useRef(),L=se.useRef(),k=se.useRef(),_=Object(Cn.a)(v.ref,k),T=se.useRef(!1),P=se.useRef();Object(Wf.a)((()=>{P.current=null}),[g]);const R=se.useCallback(((t,e={})=>{const{mode:n=null,changeTransition:r=!0}=e,s=Pf(o,i),l=-1!==["right","bottom"].indexOf(s)?1:-1,u=Tf(i),d=u?`translate(${l*t}px, 0)`:`translate(0, ${l*t}px)`,p=k.current.style;p.webkitTransform=d,p.transform=d;let h="";if(n&&(h=o.transitions.create("all",mi({easing:void 0,style:void 0,timeout:A},{mode:n}))),r&&(p.webkitTransition=h,p.transition=h),!a&&!c){const e=L.current.style;e.opacity=1-t/Uf(u,k.current),r&&(e.webkitTransition=h,e.transition=h)}}),[i,a,c,o,A]),B=Object(xn.a)((t=>{if(!T.current)return;if(Nf=null,T.current=!1,se.flushSync((()=>{O(!1)})),!E.current.isSwiping)return void(E.current.isSwiping=null);E.current.isSwiping=null;const e=Pf(o,i),n=Tf(i);let r;r=n?Vf(e,t.changedTouches,Object(Bf.a)(t.currentTarget)):$f(e,t.changedTouches,Object(yf.a)(t.currentTarget));const a=n?E.current.startX:E.current.startY,s=Uf(n,k.current),l=Hf(r,a,g,s),c=l/s;Math.abs(E.current.velocity)>p&&(P.current=1e3*Math.abs((s-l)/E.current.velocity)),g?E.current.velocity>p||c>u?f():R(0,{mode:"exit"}):E.current.velocity<-p||1-c>u?m():R(Uf(n,k.current),{mode:"enter"})})),W=(t=!1)=>{if(!w){!t&&s&&d||se.flushSync((()=>{O(!0)}));const e=Tf(i);!g&&k.current&&R(Uf(e,k.current)+(s?15:-20),{changeTransition:!1}),E.current.velocity=0,E.current.lastTime=null,E.current.lastTranslate=null,E.current.paperHit=!1,T.current=!0}},I=Object(xn.a)((t=>{if(!k.current||!T.current)return;if(null!==Nf&&Nf!==E.current)return;W(!0);const e=Pf(o,i),n=Tf(i),r=Vf(e,t.touches,Object(Bf.a)(t.currentTarget)),a=$f(e,t.touches,Object(yf.a)(t.currentTarget));if(g&&k.current.contains(t.target)&&null===Nf){const e=function({domTreeShapes:t,start:e,current:n,anchor:o}){const r={x:"scrollLeft",y:"scrollTop"},i={x:"scrollWidth",y:"scrollHeight"},a={x:"clientWidth",y:"clientHeight"};return t.some((t=>{let s=n>=e;"top"!==o&&"left"!==o||(s=!s);const l="left"===o||"right"===o?"x":"y",c=Math.round(t[r[l]]),u=c>0,d=c+t[a[l]]<t[i[l]];return!!(s&&d||!s&&u)}))}({domTreeShapes:function(t,e){const n=[];for(;t&&t!==e.parentElement;){const o=Object(yf.a)(e).getComputedStyle(t);"absolute"===o.getPropertyValue("position")||"hidden"===o.getPropertyValue("overflow-x")||(t.clientWidth>0&&t.scrollWidth>t.clientWidth||t.clientHeight>0&&t.scrollHeight>t.clientHeight)&&n.push(t),t=t.parentElement}return n}(t.target,k.current),start:n?E.current.startX:E.current.startY,current:n?r:a,anchor:i});if(e)return void(Nf=!0);Nf=E.current}if(null==E.current.isSwiping){const e=Math.abs(r-E.current.startX),o=Math.abs(a-E.current.startY),i=n?e>o&&e>3:o>e&&o>3;if(i&&t.cancelable&&t.preventDefault(),!0===i||(n?o>3:e>3)){if(E.current.isSwiping=i,!i)return void B(t);E.current.startX=r,E.current.startY=a,s||g||(n?E.current.startX-=20:E.current.startY-=20)}}if(!E.current.isSwiping)return;const l=Uf(n,k.current);let c=n?E.current.startX:E.current.startY;g&&!E.current.paperHit&&(c=Math.min(c,l));const u=Hf(n?r:a,c,g,l);if(g)if(E.current.paperHit)0===u&&(E.current.startX=r,E.current.startY=a);else{if(!(n?r<l:a<l))return;E.current.paperHit=!0,E.current.startX=r,E.current.startY=a}null===E.current.lastTranslate&&(E.current.lastTranslate=u,E.current.lastTime=performance.now()+1);const d=(u-E.current.lastTranslate)/(performance.now()-E.current.lastTime)*1e3;E.current.velocity=.4*E.current.velocity+.6*d,E.current.lastTranslate=u,E.current.lastTime=performance.now(),t.cancelable&&t.preventDefault(),R(u)})),M=Object(xn.a)((t=>{if(t.defaultPrevented)return;if(t.defaultMuiPrevented)return;if(g&&(c||!L.current.contains(t.target))&&!k.current.contains(t.target))return;const e=Pf(o,i),n=Tf(i),r=Vf(e,t.touches,Object(Bf.a)(t.currentTarget)),a=$f(e,t.touches,Object(yf.a)(t.currentTarget));if(!g){var s;if(l||!(t.target===j.current||null!=(s=k.current)&&s.contains(t.target)&&("function"==typeof d?d(t,j.current,k.current):d)))return;if(n){if(r>y)return}else if(a>y)return}t.defaultMuiPrevented=!0,Nf=null,E.current.startX=r,E.current.startY=a,W()}));return se.useEffect((()=>{if("temporary"===S){const t=Object(Bf.a)(k.current);return t.addEventListener("touchstart",M),t.addEventListener("touchmove",I,{passive:!g}),t.addEventListener("touchend",B),()=>{t.removeEventListener("touchstart",M),t.removeEventListener("touchmove",I,{passive:!g}),t.removeEventListener("touchend",B)}}}),[S,g,M,I,B]),se.useEffect((()=>()=>{Nf===E.current&&(Nf=null)}),[]),se.useEffect((()=>{g||O(!1)}),[g]),Object(fe.jsxs)(se.Fragment,{children:[Object(fe.jsx)(Rf,Object(ce.a)({open:!("temporary"!==S||!w)||g,variant:S,ModalProps:Object(ce.a)({BackdropProps:Object(ce.a)({},h,{ref:L})},"temporary"===S&&{keepMounted:!0},C),hideBackdrop:c,PaperProps:Object(ce.a)({},v,{style:Object(ce.a)({pointerEvents:"temporary"!==S||g||d?"":"none"},v.style),ref:_}),anchor:i,transitionDuration:P.current||A,onClose:f,ref:e},x)),!l&&"temporary"===S&&Object(fe.jsx)(vf,{children:Object(fe.jsx)(Df,Object(ce.a)({anchor:i,ref:j,width:y},b))})]})})),Xf=n(68);function Kf(t){const e=Object.assign(Object.assign({},t.title),{text:Ne.getLocalizedBarcodeText(t.title.text).replace("%d",t.numBarcodes.toString())});return se.default.createElement(se.default.Fragment,null,se.default.createElement(ho,Object.assign({},t.leftButton)),se.default.createElement(fn,{sx:{flex:2,textAlign:"center",fontWeight:600,fontSize:18}},se.default.createElement(An,{config:e})),se.default.createElement(ho,Object.assign({},t.rightButton)))}function Qf(){return se.default.createElement("div",{style:{width:30,height:6,backgroundColor:Xf.a[300],borderRadius:3,position:"absolute",top:8,left:"calc(50% - 15px)"},"data-sb-drawer-puller":"1"})}function qf(t){return se.default.createElement(De,Object.assign({sx:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center",paddingTop:2,paddingBottom:1,touchAction:"none"},ref:t.innerRef},t.dragProps),se.default.createElement(Qf,null),se.default.createElement(Kf,Object.assign({},t.drawerHeaderContentProps)))}var Zf=Object(nf.a)(Object(fe.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Jf(t){return Object(Xe.a)("MuiAvatar",t)}Object(We.a)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const tm=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],em=["component","slots","slotProps"],nm=["component"];const om=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],rm=Object($e.a)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],n.colorDefault&&e.colorDefault]}})((({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:Object(ce.a)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:Object(ce.a)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}))),im=Object($e.a)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(t,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),am=Object($e.a)(Zf,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(t,e)=>e.fallback})({width:"75%",height:"75%"});var sm=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiAvatar"}),{alt:o,children:r,className:i,component:a="div",slots:s={},slotProps:l={},imgProps:c,sizes:u,src:d,srcSet:p,variant:h="circular"}=n,f=Object(ue.a)(n,om);let m=null;const g=function({crossOrigin:t,referrerPolicy:e,src:n,srcSet:o}){const[r,i]=se.useState(!1);return se.useEffect((()=>{if(!n&&!o)return;i(!1);let r=!0;const a=new Image;return a.onload=()=>{r&&i("loaded")},a.onerror=()=>{r&&i("error")},a.crossOrigin=t,a.referrerPolicy=e,a.src=n,o&&(a.srcset=o),()=>{r=!1}}),[t,e,n,o]),r}(Object(ce.a)({},c,{src:d,srcSet:p})),v=d||p,b=v&&"error"!==g,y=Object(ce.a)({},n,{colorDefault:!b,component:a,variant:h}),A=(t=>{const{classes:e,variant:n,colorDefault:o}=t,r={root:["root",n,o&&"colorDefault"],img:["img"],fallback:["fallback"]};return Object(Ve.a)(r,Jf,e)})(y),[S,C]=function(t,e){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=e,l=Object(ue.a)(e,tm),{component:c,slots:u={[t]:void 0},slotProps:d={[t]:void 0}}=i,p=Object(ue.a)(i,em),h=u[t]||o,f=Dr(d[t],r),m=Mr(Object(ce.a)({className:n},l,{externalForwardedProps:"root"===t?p:void 0,externalSlotProps:f})),{props:{component:g},internalRef:v}=m,b=Object(ue.a)(m.props,nm),y=Object(Pr.a)(v,null==f?void 0:f.ref,e.ref),A=a?a(b):{},S=Object(ce.a)({},r,A),C="root"===t?g||c:g,x=Br(h,Object(ce.a)({},"root"===t&&!c&&!u[t]&&s,"root"!==t&&!u[t]&&s,b,C&&{as:C},{ref:y}),S);return Object.keys(A).forEach((t=>{delete x[t]})),[h,x]}("img",{className:A.img,elementType:im,externalForwardedProps:{slots:s,slotProps:{img:Object(ce.a)({},c,l.img)}},additionalProps:{alt:o,src:d,srcSet:p,sizes:u},ownerState:y});return m=b?Object(fe.jsx)(S,Object(ce.a)({},C)):r||0===r?r:v&&o?o[0]:Object(fe.jsx)(am,{ownerState:y,className:A.fallback}),Object(fe.jsx)(rm,Object(ce.a)({as:a,ownerState:y,className:Object(we.a)(A.root,i),ref:e},f,{children:m}))}));function lm(t){return se.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"38",viewBox:"0 0 41 38",fill:"none"},se.default.createElement("path",{d:"M4.09514 37.0902V10.6304L0.019043 1.87823L3.18969 0.348877L7.76144 10.6304H32.6886L37.2484 0.348877L40.419 1.87823L36.3549 10.6304V37.0902H4.09514ZM15.994 22.013H24.494C24.9461 22.013 25.3211 21.8632 25.619 21.5637C25.9169 21.2641 26.0658 20.8871 26.0658 20.4325C26.0658 19.9779 25.9169 19.6038 25.619 19.3101C25.3211 19.0164 24.9461 18.8695 24.494 18.8695H15.994C15.5419 18.8695 15.167 19.0193 14.8691 19.3189C14.5712 19.6184 14.4223 19.9955 14.4223 20.45C14.4223 20.9046 14.5712 21.2788 14.8691 21.5725C15.167 21.8662 15.5419 22.013 15.994 22.013ZM7.50164 33.6837H32.9364V14.0489H7.50164V33.6837Z",fill:t.color}))}function cm(t){return 0!==t.numBarcodes?null:se.default.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"column",marginTop:"auto",marginBottom:"auto",overflowY:"scroll"}},t.style.placeholderIcon.visible&&se.default.createElement(sm,{style:{backgroundColor:Ne.getColorValue(t.style.placeholderIconBackground),width:100,height:100}},se.default.createElement(lm,{color:Ne.getColorValue(t.style.placeholderIcon.color)})),se.default.createElement(fn,{style:{marginTop:20},variant:"h6"},se.default.createElement(An,{config:t.style.placeholderTitle})),se.default.createElement(fn,{style:{marginTop:20,paddingLeft:"10%",paddingRight:"10%",maxWidth:400,textAlign:"center"},variant:"body2"},se.default.createElement(An,{config:t.style.placeholderSubtitle})),t.onStartClick&&t.style.startScanningButton.visible&&se.default.createElement(_r,Object.assign({style:{width:"60%",marginTop:20}},t.style.startScanningButton,{visible:!0,onClick:t.onStartClick})))}function um(t,e,n){const o=Object(se.useRef)(),r=Object(se.useRef)(null),[i,a]=Object(se.useState)(),[s,l]=Object(se.useState)(!1),c=Object(se.useRef)([]),u=t=>{let n="none";if(c.current.length>0){const e=200,o=((t,e)=>{let n=t[0],o=Math.abs(n.time-e);for(let r=1;r<t.length;r++){const i=Math.abs(t[r].time-e);i<o&&(n=t[r],o=i)}return n})(c.current,t.timeStamp-e),r=o.y-t.clientY,i=100;r>i?n="up":r<-i&&(n="down")}c.current.splice(0,c.current.length),e(new I(t.clientX,t.clientY),n)},d={onPointerDown:t=>{t.target.setPointerCapture(t.pointerId),l(!0),r.current=new I(t.clientX,t.clientY),a(I.empty()),t.stopPropagation()},onPointerMove:e=>{if(!s)return;const n=new I(e.clientX,e.clientY);o.current=e,a(n),t(n),c.current.push({x:e.clientX,y:e.clientY,time:e.timeStamp})},onPointerUp:t=>{t.target.releasePointerCapture(t.pointerId),l(!1),u(t)},onPointerCancel:t=>{t.target.releasePointerCapture(t.pointerId),l(!1),n()}};return{startPoint:r,currentPoint:i,props:d,stop:()=>{o.current.stopPropagation()},dragOngoing:s}}function dm(t){const[e,n]=Object(se.useState)(0),[o,r]=Object(se.useState)(!1),i=Object(se.useRef)(null),a=Object(se.useContext)(fo).height,s=t=>{n(t),r(!0),setTimeout((()=>{r(!1)}),500)},l=e=>{const n=e-c.startPoint.current.y;return W((t.isOpen?100:0)-100*n/(window.innerHeight-a-t.closedSheetVisibleHeight),0,100)},c=um((t=>{n(l(t.y))}),((e,n)=>{if(e.y===c.startPoint.current.y)return;let o;o=l(e.y)<50?"swipe-to-close":"swipe-to-open","up"===n&&(o="swipe-to-open"),"down"===n&&(o="swipe-to-close"),t.onSwipe(o)}),(()=>{}));return Object(se.useEffect)((()=>{o||c.dragOngoing||!i||(t.isOpen||0===e?t.isOpen&&100!==e&&s(100):s(0))}),[t.isOpen,e,c.dragOngoing]),se.createElement("div",null,se.createElement(Yf,{variant:"persistent",anchor:"bottom",open:!0,onClose:()=>{},onOpen:()=>{},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0},PaperProps:{style:{height:`calc((100 * ${vn} - ${a}px - ${t.closedSheetVisibleHeight}px) * ${e} / 100 + ${t.closedSheetVisibleHeight}px)`,overflow:"hidden",borderRadius:10,borderBottomLeftRadius:0,borderBottomRightRadius:0,transition:o?"height 500ms":void 0,backgroundColor:Ne.getColorValue(t.contentStyle.sheetColor)},elevation:24}},se.createElement(qf,{innerRef:t=>{i.current=t},drawerHeaderContentProps:t.drawerHeaderContentProps,dragProps:c.props}),t.children,se.createElement(cm,{numBarcodes:t.numBarcodes,style:t.contentStyle,onStartClick:()=>t.onSwipe("swipe-to-close")})))}var pm=n(77),hm=n.n(pm),fm=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};function mm(t){var{inputRef:e}=t,n=fm(t,["inputRef"]);const o=Object.assign(Object.assign({},n),{style:Object.assign(Object.assign({},n.style||{}),{border:"none",display:"block",outlineWidth:0,width:"100%"})});return se.default.createElement("input",Object.assign({},o,{ref:e}))}var gm=Object(nf.a)(Object(fe.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");function vm(t){const e=!!t.barcode,[n,o]=se.default.useState(""),r=se.default.useRef(null),i={backgroundColor:Ne.getColorValue(t.dialogStyling.sheetColor)};return Object(se.useEffect)((()=>{e&&o(String(t.barcode.count))}),[e]),se.default.createElement(se.default.Fragment,null,se.default.createElement(Di,{open:e,modalOverlayColor:t.dialogStyling.modalOverlayColor,TransitionProps:{onEnter:()=>{var t;return null===(t=r.current)||void 0===t?void 0:t.focus()}},onClose:t.onCancel,PaperProps:{component:"form",onSubmit:e=>{e.preventDefault(),t.setCounter({type:"setCount",barcodes:[t.barcode.barcode],computeNewCount:()=>parseInt(n)||0})}}},se.default.createElement(Ao,{style:i},se.default.createElement(fn,{fontSize:16,fontWeight:500,textAlign:"center"},se.default.createElement(An,{config:t.dialogStyling.title})),se.default.createElement(fn,{fontSize:14,textAlign:"center"},se.default.createElement(An,{config:t.dialogStyling.info})),se.default.createElement(De,{sx:{display:"flex",border:"2px solid",borderColor:Ne.getColorValue(t.dialogStyling.dividerColor),mh:2,mb:0,p:1,borderRadius:1}},se.default.createElement(mm,{inputRef:r,value:n,onChange:t=>{const e=parseInt(t.target.value.replaceAll(/[^0-9]/g,""));o(e>=0?e.toString():"")},type:"text",pattern:"[0-9]*"}),t.dialogStyling.clearTextButton.visible&&se.default.createElement(hm.a,{sx:{marginLeft:"auto",paddingLeft:1},onClick:()=>o(""),htmlColor:Ne.getColorValue(t.dialogStyling.clearTextButton.color)}))),se.default.createElement(wo,{sx:Object.assign(Object.assign({},i),{pt:0})},se.default.createElement(xr,{container:!0,spacing:2},se.default.createElement(xr,{item:!0,xs:12},se.default.createElement(kr,{color:Ne.getColorValue(t.dialogStyling.dividerColor)})),se.default.createElement(xr,{item:!0,xs:6},se.default.createElement(_r,Object.assign({style:{width:"100%"},onClick:t.onCancel},t.dialogStyling.cancelButton))),se.default.createElement(xr,{item:!0,xs:6},se.default.createElement(_r,Object.assign({icon:gm,style:{width:"100%"},onClick:()=>{},type:"submit"},t.dialogStyling.updateButton)))))))}var bm=se.createContext({});function ym(t){return Object(Xe.a)("MuiList",t)}Object(We.a)("MuiList",["root","padding","dense","subheader"]);const Am=["children","className","component","dense","disablePadding","subheader"],Sm=Object($e.a)("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})((({ownerState:t})=>Object(ce.a)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})));var Cm=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiList"}),{children:o,className:r,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=Object(ue.a)(n,Am),u=se.useMemo((()=>({dense:a})),[a]),d=Object(ce.a)({},n,{component:i,dense:a,disablePadding:s}),p=(t=>{const{classes:e,disablePadding:n,dense:o,subheader:r}=t,i={root:["root",!n&&"padding",o&&"dense",r&&"subheader"]};return Object(Ve.a)(i,ym,e)})(d);return Object(fe.jsx)(bm.Provider,{value:u,children:Object(fe.jsxs)(Sm,Object(ce.a)({as:i,className:Object(we.a)(p.root,r),ref:e,ownerState:d},c,{children:[l,o]}))})})),xm=n(41);function wm(t){return Object(Xe.a)("MuiListItem",t)}var Om=Object(We.a)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var Em=Object(We.a)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function jm(t){return Object(Xe.a)("MuiListItemSecondaryAction",t)}Object(We.a)("MuiListItemSecondaryAction",["root","disableGutters"]);const Lm=["className"],km=Object($e.a)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})((({ownerState:t})=>Object(ce.a)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0}))),_m=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=n,r=Object(ue.a)(n,Lm),i=se.useContext(bm),a=Object(ce.a)({},n,{disableGutters:i.disableGutters}),s=(t=>{const{disableGutters:e,classes:n}=t,o={root:["root",e&&"disableGutters"]};return Object(Ve.a)(o,jm,n)})(a);return Object(fe.jsx)(km,Object(ce.a)({className:Object(we.a)(s.root,o),ownerState:a,ref:e},r))}));_m.muiName="ListItemSecondaryAction";var Tm=_m;const Pm=["className"],Rm=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Bm=Object($e.a)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,"flex-start"===n.alignItems&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.button&&e.button,n.hasSecondaryAction&&e.secondaryAction]}})((({theme:t,ownerState:e})=>Object(ce.a)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&Object(ce.a)({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{[`& > .${Em.root}`]:{paddingRight:48}},{[`&.${Om.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Om.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(Ge.a)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Om.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(Ge.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Om.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===e.alignItems&&{alignItems:"flex-start"},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Om.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(Ge.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(Ge.a)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48}))),Wm=Object($e.a)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"});var Im=se.forwardRef((function(t,e){const n=Object(Ue.a)({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:r=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:A=!1,slotProps:S={},slots:C={}}=n,x=Object(ue.a)(n.ContainerProps,Pm),w=Object(ue.a)(n,Rm),O=se.useContext(bm),E=se.useMemo((()=>({dense:h||O.dense||!1,alignItems:o,disableGutters:m})),[o,O.dense,h,m]),j=se.useRef(null);Object(Wf.a)((()=>{r&&j.current&&j.current.focus()}),[r]);const L=se.Children.toArray(a),k=L.length&&Object(xm.a)(L[L.length-1],["ListItemSecondaryAction"]),_=Object(ce.a)({},n,{alignItems:o,autoFocus:r,button:i,dense:E.dense,disabled:f,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:k,selected:A}),T=(t=>{const{alignItems:e,button:n,classes:o,dense:r,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=t,d={root:["root",r&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===e&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return Object(Ve.a)(d,wm,o)})(_),P=Object(Cn.a)(j,e),R=C.root||c.Root||Bm,B=S.root||u.root||{},W=Object(ce.a)({className:Object(we.a)(T.root,B.className,s),disabled:f},w);let I=l||"li";return i&&(W.component=l||"div",W.focusVisibleClassName=Object(we.a)(Om.focusVisible,b),I=Jn),k?(I=W.component||l?I:"div","li"===d&&("li"===I?I="div":"li"===W.component&&(W.component="div")),Object(fe.jsx)(bm.Provider,{value:E,children:Object(fe.jsxs)(Wm,Object(ce.a)({as:d,className:Object(we.a)(T.container,p),ref:P,ownerState:_},x,{children:[Object(fe.jsx)(R,Object(ce.a)({},B,!Rr(R)&&{as:I,ownerState:Object(ce.a)({},_,B.ownerState)},W,{children:L})),L.pop()]}))})):Object(fe.jsx)(bm.Provider,{value:E,children:Object(fe.jsxs)(R,Object(ce.a)({},B,{as:I,ref:P},!Rr(R)&&{ownerState:Object(ce.a)({},_,B.ownerState)},W,{children:[L,y&&Object(fe.jsx)(Tm,{children:y})]}))})})),Mm=n(46),Dm=n.n(Mm);function Fm(t){return se.default.createElement("div",{style:{top:0,width:"100%",marginTop:"1px",marginLeft:"1px",height:"calc(100% - 2px)",position:"absolute",backgroundColor:Ne.getColorValue(t.config.backgroundColor),display:"flex",alignItems:"right",justifyContent:"right"}},se.default.createElement(Dm.a,{style:{height:"100%",color:Ne.getColorValue(t.config.iconColor),paddingRight:t.visibleOffset/2,cursor:"pointer"}}))}var zm=n(72);function Nm(t,e,n,o,r){const[i,a]=se.useState((()=>r&&n?n(t).matches:o?o(t).matches:e));return Object(Wf.a)((()=>{let e=!0;if(!n)return;const o=n(t),r=()=>{e&&a(o.matches)};return r(),o.addListener(r),()=>{e=!1,o.removeListener(r)}}),[t,n]),i}const Vm=se.useSyncExternalStore;function $m(t,e,n,o,r){const i=se.useCallback((()=>e),[e]),a=se.useMemo((()=>{if(r&&n)return()=>n(t).matches;if(null!==o){const{matches:e}=o(t);return()=>e}return i}),[i,t,o,r,n]),[s,l]=se.useMemo((()=>{if(null===n)return[i,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[i,n,t]);return Vm(l,s,a)}function Um(t,e={}){const n=Object(ve.a)(),o="undefined"!=typeof window&&"undefined"!=typeof window.matchMedia,{defaultMatches:r=!1,matchMedia:i=(o?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=Object(zm.a)({name:"MuiUseMediaQuery",props:e,theme:n});let l="function"==typeof t?t(n):t;l=l.replace(/^@media( ?)/m,"");return(void 0!==Vm?$m:Nm)(l,r,i,a,s)}const Hm=0,Gm=800,Ym=1200;function Xm(t){switch(t){case"mobile":return Um("(min-width:"+Hm+"px) and (max-width:"+(Gm-1)+"px)");case"tablet":return Um("(min-width:"+Gm+"px) and (max-width:"+(Ym-1)+"px)");case"desktop":return Um("(min-width:"+Ym+"px)")}}const Km=150;function Qm(t){const[e,n]=Object(se.useState)(0),[o,r]=Object(se.useState)(!1);let i;const a=um((t=>{let e=a.startPoint.current.x-t.x;e<0?a.stop():n(-e)}),(t=>{if(t.x===a.startPoint.current.x)return;const e=a.startPoint.current.x-t.x;c(e>75?Km:0)}),(()=>{c(0)})),s=Object(se.useContext)(Vi),l=s.useBarcodeMappedData(t.barcode);Object(se.useEffect)((()=>{const e={barcode:t.barcode,callback:()=>t.onDelete(t.barcode)};return s.addOnEvictionListener(e),()=>{s.removeOnEvictionListener(e)}}),[]);const c=e=>{const o=e>=Km,a=-i.getBoundingClientRect().width;n(o?a:0),r(!0),setTimeout((()=>{r(!1),o&&t.onDelete(t.barcode)}),200)},u=Xm("desktop")&&t.swipeToDeleteConfig.enabled,d=!u&&t.swipeToDeleteConfig.enabled;return Object(se.useEffect)((()=>{d||c(0)}),[d]),se.default.createElement(De,{sx:{px:2},style:{width:"100%",paddingRight:0},ref:t=>i=t},se.default.createElement(Fm,{config:t.swipeToDeleteConfig,visibleOffset:Km}),se.default.createElement(De,Object.assign({sx:{width:"100%",backgroundColor:Ne.getColorValue(t.sheetColor),transform:`translateX(${e}px)`,transition:o?"transform 200ms ease-in-out":void 0,touchAction:"pan-y",display:"flex",alignItems:"center",paddingTop:"16px",paddingBottom:"16px",columnGap:"16px"}},d?a.props:{}),se.default.createElement(ur,Object.assign({barcodeMappedData:l},t)),null!==t.readonlyCount&&se.default.createElement(De,{sx:{fontSize:18,marginTop:"auto",flex:1,textAlign:"right",color:Ne.getColorValue("?sbColorOnSurfaceVariant")}},"x",t.readonlyCount),u&&se.default.createElement(Dm.a,{sx:{height:"100%",marginLeft:"auto",cursor:"pointer",color:Ne.getColorValue("?sbColorOnSurface")},onClick:()=>t.onDelete(t.barcode)}),se.default.createElement(De,{sx:{width:"0px"}})))}function qm(t){const e=Ne.getColorValue(t.sheetContent.dividerColor),n=t.sheetContent.manualCountChangeEnabled&&"COUNTING"===t.mode;return se.default.createElement(se.default.Fragment,null,se.default.createElement(kr,{style:{borderColor:e}}),t.barcodes.length>0&&se.default.createElement(De,{sx:{width:"auto",flex:1,overflowY:"auto",overflowX:"hidden"},role:"presentation"},se.default.createElement(Cm,{sx:{p:0}},t.barcodes.map((({barcode:o,count:r})=>se.default.createElement(Im,{key:o.format+o.text,sx:{padding:0,borderBottom:`1px solid ${e}`}},se.default.createElement(Qm,{barcode:o,onDelete:()=>t.onBarcodeChange({type:"remove",barcode:o}),counterForm:n&&{counter:r,manualCountChangeColor:t.sheetContent.manualCountChangeColor,manualCountOutlineColor:t.sheetContent.manualCountOutlineColor,setCounter:e=>{t.onBarcodeChange({type:"setCount",barcodes:[o],computeNewCount:()=>e})},onNumberClick:()=>t.onNumberClick({barcode:o,count:r})},readonlyCount:"COUNTING"!==t.mode||t.sheetContent.manualCountChangeEnabled?null:r,maxNumberOfTitleLines:1,maxNumberOfSubtitleLines:1,displayRightArrow:!1,imageSize:n?84:40,barcodeImageVisible:t.sheetContent.barcodeItemImageVisible,barcodeTitle:t.sheetContent.barcodeItemTitle,barcodeSubtitle:t.sheetContent.barcodeItemSubtitle,swipeToDeleteConfig:t.sheetContent.swipeToDelete,sheetColor:t.sheetContent.sheetColor})))))))}var Zm=n(78),Jm=n.n(Zm);var tg=t=>{const e=se.useRef({});return se.useEffect((()=>{e.current=t})),e.current};function eg(t){return Object(Xe.a)("MuiBadge",t)}var ng=Object(We.a)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const og=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],rg=Ue.a,ig=Object($e.a)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,e)=>e.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ag=Object($e.a)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.badge,e[n.variant],e[`anchorOrigin${Object(He.a)(n.anchorOrigin.vertical)}${Object(He.a)(n.anchorOrigin.horizontal)}${Object(He.a)(n.overlap)}`],"default"!==n.color&&e[`color${Object(He.a)(n.color)}`],n.invisible&&e.invisible]}})((({theme:t})=>{var e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(e=t.vars)?e:t).palette).filter((e=>{var n,o;return(null!=(n=t.vars)?n:t).palette[e].main&&(null!=(o=t.vars)?o:t).palette[e].contrastText})).map((e=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:t})=>"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ng.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ng.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ng.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ng.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ng.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ng.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ng.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ng.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}}));var sg=se.forwardRef((function(t,e){var n,o,r,i,a,s;const l=rg({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:h={},children:f,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:A,slotProps:S,showZero:C=!1,variant:x="standard"}=l,w=Object(ue.a)(l,og),{badgeContent:O,invisible:E,max:j,displayValue:L}=function(t){const{badgeContent:e,invisible:n=!1,max:o=99,showZero:r=!1}=t,i=tg({badgeContent:e,max:o});let a=n;!1!==n||0!==e||r||(a=!0);const{badgeContent:s,max:l=o}=a?i:t;return{badgeContent:s,invisible:a,max:l,displayValue:s&&Number(s)>l?`${l}+`:s}}({max:b,invisible:v,badgeContent:y,showZero:C}),k=tg({anchorOrigin:c,color:g,overlap:m,variant:x,badgeContent:y}),_=E||null==O&&"dot"!==x,{color:T=g,overlap:P=m,anchorOrigin:R=c,variant:B=x}=_?k:l,W="dot"!==B?L:void 0,I=Object(ce.a)({},l,{badgeContent:O,invisible:_,max:j,displayValue:W,showZero:C,anchorOrigin:R,color:T,overlap:P,variant:B}),M=(t=>{const{color:e,anchorOrigin:n,invisible:o,overlap:r,variant:i,classes:a={}}=t,s={root:["root"],badge:["badge",i,o&&"invisible",`anchorOrigin${Object(He.a)(n.vertical)}${Object(He.a)(n.horizontal)}`,`anchorOrigin${Object(He.a)(n.vertical)}${Object(He.a)(n.horizontal)}${Object(He.a)(r)}`,`overlap${Object(He.a)(r)}`,"default"!==e&&`color${Object(He.a)(e)}`]};return Object(Ve.a)(s,eg,a)})(I),D=null!=(n=null!=(o=null==A?void 0:A.root)?o:p.Root)?n:ig,F=null!=(r=null!=(i=null==A?void 0:A.badge)?i:p.Badge)?r:ag,z=null!=(a=null==S?void 0:S.root)?a:h.root,N=null!=(s=null==S?void 0:S.badge)?s:h.badge,V=zr({elementType:D,externalSlotProps:z,externalForwardedProps:w,additionalProps:{ref:e,as:d},ownerState:I,className:Object(we.a)(null==z?void 0:z.className,M.root,u)}),$=zr({elementType:F,externalSlotProps:N,ownerState:I,className:Object(we.a)(M.badge,null==N?void 0:N.className)});return Object(fe.jsxs)(D,Object(ce.a)({},V,{children:[f,Object(fe.jsx)(F,Object(ce.a)({},$,{children:W}))]}))}));function lg(t){return se.default.createElement(sg,{anchorOrigin:{vertical:"top",horizontal:"left"},badgeContent:t.count,showZero:!0,color:"primary",overlap:"circular",slotProps:{badge:{style:{backgroundColor:t.backgroundColor,color:t.foregroundColor,fontWeight:"bold"}}}},t.children)}function cg(t){if(!t.buttonStyling.visible)return null;return se.default.createElement(De,{style:t.style},se.default.createElement(lg,{count:t.count,backgroundColor:Ne.getColorValue(t.buttonStyling.badgeBackgroundColor),foregroundColor:Ne.getColorValue(t.buttonStyling.badgeForegroundColor)},se.default.createElement(Xi,{sx:{backgroundColor:Ne.getColorValue(t.buttonStyling.backgroundColor),width:60,height:60,"&:hover, &:focus":{backgroundColor:Ne.getColorValue(t.buttonStyling.activeBackgroundColor),outline:"none"}},onClick:t.onClick,disableRipple:!0,disableFocusRipple:!0},se.default.createElement(Jm.a,{sx:{color:Ne.getColorValue(t.buttonStyling.foregroundColor),fontSize:"24pt","&:hover, &:focus":{color:Ne.getColorValue(t.buttonStyling.activeForegroundColor)}}}))))}const ug=(t,e)=>t.format===e.format&&t.text===e.text;function dg(t,e){switch(e.type){case"setCount":{let n=[...t];for(const t of e.barcodes){const o=n.findIndex((e=>ug(e.barcode,t)));if(-1===o)n.push({barcode:t,count:e.computeNewCount(0)});else{const t=n[o];n[o]=Object.assign(Object.assign({},t),{count:e.computeNewCount(t.count)})}}return n}case"remove":return t.map((t=>Object.assign(Object.assign({},t),{count:ug(t.barcode,e.barcode)?0:t.count})));case"clear":return t.map((t=>Object.assign(Object.assign({},t),{count:0})));case"setHtmlElements":let n=!1;const o=t.map((t=>ug(t.barcode,e.barcode)?(n=!0,Object.assign(Object.assign({},t),{polygonElement:e.polygonElement,labelElement:e.labelElement})):t));return n||o.push({barcode:e.barcode,count:0,labelElement:e.labelElement,polygonElement:e.polygonElement}),o}}var pg=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};function hg(t){const e=Object(se.useRef)(),[n,o]=Object(se.useReducer)(dg,[]),[r,i]=Object(se.useState)(),a=Object(se.useRef)(new Date("2001-01-01")),[s,l]=se.default.useState(null),[c,u]=Object(se.useState)(!1),d=Object(se.useMemo)((()=>"__sb_"+Math.random()),[]),[p,h]=Object(se.useState)(!0),f=Object(se.useContext)(Vi),m=t.configuration.useCase,g=Object(se.useRef)(Object.assign(Object.assign({},hf(t.configuration)),{onBarcodesDetected:e=>{if(!((new Date).getTime()-a.current.getTime()<m.countingRepeatDelay)&&t.scanningEnabled.current)if(!m.arOverlay.visible||m.arOverlay.automaticSelectionEnabled){let n=!1;o({type:"setCount",barcodes:e.barcodes,computeNewCount:e=>{let o="COUNTING"===m.mode?e+1:1;return o===e||n||(a.current=new Date,Zi.INSTANCE.beep(t.configuration.sound),ta.INSTANCE.vibrate(t.configuration.vibration)),o}})}else o({type:"setCount",barcodes:e.barcodes,computeNewCount:t=>t})},_onDetectionFailed(t){},onError:t.onError,returnBarcodeImage:!0,captureDelay:1e3/60}));Object(se.useEffect)((()=>{g.current.container=e.current}),[e]),Object(se.useEffect)((()=>{for(const t of n){if(t.polygonElement){const e=t.count>0?m.arOverlay.polygon.selected:m.arOverlay.polygon.deselected;t.polygonElement.style({fill:m.arOverlay.polygon.visible?Ne.getColorValue(e.fillColor):"transparent",stroke:m.arOverlay.polygon.visible?Ne.getColorValue(e.strokeColor):"transparent",strokeWidth:e.strokeWidth,cornerRadius:e.cornerRadius})}t.labelElement&&(t.labelElement.update(Object.assign(Object.assign({},t.labelElement.state.element),{highlighted:t.count>0})),t.labelElement.setCount(t.count))}}),[n]);const v=n.reduce(((t,e)=>t+e.count),0),b=se.default.createElement(qm,{barcodes:n.filter((t=>t.count>0)),onBarcodeChange:o,sheetContent:m.sheetContent,onNumberClick:t=>l(t),mode:m.mode}),y={numBarcodes:v,leftButton:Object.assign(Object.assign({},m.sheetContent.clearAllButton),{onClick:()=>o({type:"clear"})}),rightButton:Object.assign(Object.assign({},m.sheetContent.submitButton),{onClick:()=>pg(this,void 0,void 0,(function*(){const e=n.filter((t=>t.count>0)).map((t=>f.mapBarcodeToBarcodeItem(t.barcode,"COUNTING"===m.mode?t.count:1)));t.onSubmit({items:yield Promise.all(e)})}))}),title:m.sheetContent.title},A=Xm("mobile"),S="BUTTON"!==m.sheet.mode&&A?"SMALL"===m.sheet.collapsedVisibleHeight?69:128:0,C=A&&"BUTTON"===m.sheet.mode,x=C?76:0,w=(p?80:0)+x,O=Object(se.useContext)(fo);return se.default.createElement(se.default.Fragment,null,se.default.createElement(xr,{container:!0,sx:{display:"flex",flexDirection:A?"column":"row",height:`calc(${O.remainingVisibleBodyHeight} - ${S}px)`},alignItems:"stretch"},se.default.createElement(xr,{id:d,item:!0,ref:e,component:"div",xs:A?12:7,zIndex:100},C&&se.default.createElement(cg,{style:{position:"absolute",marginTop:`calc(${O.remainingVisibleBodyHeight} - 60px - 8px)`,width:"100%",display:"flex",justifyContent:"center",zIndex:1100},count:v,onClick:()=>u(!c),buttonStyling:m.sheet.listButton}),se.default.createElement(pf,{viewFinderPadding:{minTopPadding:O.minTopPaddingForContent,minBottomPadding:w},arOverlay:Object.assign(Object.assign({},m.arOverlay),{counterBadge:Object.assign(Object.assign({},m.arOverlay.counterBadge),{visible:m.arOverlay.counterBadge.visible&&"COUNTING"===m.mode})}),containerId:d,barcodeScannerViewConfig:g.current,onCameraPermissionDenied:t.onCameraPermissionDenied,actionBarConfig:t.configuration.actionBar,actionBarBottomPadding:16+x,setActionButtonsVisible:h,arOnBarcodeClick:e=>{o({type:"setCount",barcodes:[e],computeNewCount:e=>{const n="UNIQUE"===m.mode?1-e:e+1;return n>0&&(Zi.INSTANCE.beep(t.configuration.sound),ta.INSTANCE.vibrate(t.configuration.vibration)),n}})},arOnBarcodeEnter:(t,e,n)=>{n&&e&&o({type:"setHtmlElements",barcode:t,labelElement:n,polygonElement:e})},scanningPaused:c&&A,cameraConfiguration:t.configuration.cameraConfiguration,onLicenseError:t.onError}),A&&se.default.createElement(dm,{closedSheetVisibleHeight:S,sheetStyle:m.sheet,contentStyle:m.sheetContent,manualCountEditDialog:m.manualCountEditDialog,numBarcodes:v,onBarcodeChange:t=>o(t),drawerHeaderContentProps:y,isOpen:c,onSwipe:t=>{u("swipe-to-open"===t)}},b)),function(t){switch(t){case"mobile":return Um("(min-width:"+Hm+"px)");case"tablet":return Um("(min-width:"+Gm+"px)");case"desktop":return Um("(min-width:"+Ym+"px)")}}("tablet")&&se.default.createElement(xr,{item:!0,xs:A?12:5,component:"div",style:{paddingTop:O.minTopPaddingForContent,height:"100%",flexDirection:"column",display:"flex",backgroundColor:Ne.getColorValue(m.sheetContent.sheetColor)},zIndex:1050},se.default.createElement(De,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},zIndex:50},se.default.createElement(Kf,Object.assign({},y))),b,se.default.createElement(cm,{numBarcodes:v,style:m.sheetContent}))),se.default.createElement(vm,{barcode:s,dialogStyling:m.manualCountEditDialog,onCancel:()=>l(null),setCounter:t=>{o(t),l(null)}}))}const fg=Object(se.createContext)(null),mg={didCatch:!1,error:null};class gg extends se.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=mg}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(null!==t){for(var e,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:r,reason:"imperative-api"}),this.setState(mg)}}componentDidCatch(t,e){var n,o;null===(n=(o=this.props).onError)||void 0===n||n.call(o,t,e)}componentDidUpdate(t,e){const{didCatch:n}=this.state,{resetKeys:o}=this.props;var r,i;n&&null!==e.error&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some(((t,n)=>!Object.is(t,e[n])))}(t.resetKeys,o)&&(null===(r=(i=this.props).onReset)||void 0===r||r.call(i,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(mg))}render(){const{children:t,fallbackRender:e,FallbackComponent:n,fallback:o}=this.props,{didCatch:r,error:i}=this.state;let a=t;if(r){const t={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)a=e(t);else if(n)a=Object(se.createElement)(n,t);else{if(null!==o&&!Object(se.isValidElement)(o))throw i;a=o}}return Object(se.createElement)(fg.Provider,{value:{didCatch:r,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function vg(t){const e=Object(se.useContext)(Fe).getColorValue,n={backgroundColor:e(t.sheetColor)};return se.default.createElement(Di,{modalOverlayColor:t.modalOverlayColor,open:t.open},se.default.createElement(Ao,{sx:Object.assign(Object.assign({},n),{p:2,pb:1,textAlign:"center"})},se.default.createElement(fn,{sx:{fontSize:"16pt",fontWeight:"bold"}},se.default.createElement(An,{config:t.title})),se.default.createElement(fn,{sx:{fontSize:"14pt",lineHeight:"16pt"}},se.default.createElement(An,{config:t.subtitle}))),se.default.createElement(wo,{sx:Object.assign(Object.assign({},n),{pt:1})},se.default.createElement(xr,{container:!0,spacing:2},se.default.createElement(xr,{item:!0,xs:12},se.default.createElement(kr,{color:e(t.dividerColor)})),se.default.createElement(xr,{item:!0,xs:6},se.default.createElement(_r,Object.assign({style:{width:"100%"},onClick:t.handleCancel},t.cancelButton))),se.default.createElement(xr,{item:!0,xs:6},se.default.createElement(_r,Object.assign({icon:gm,style:{width:"100%"},onClick:t.handleRetry},t.retryButton))))))}var bg=n(79),yg=n.n(bg);function Ag(t){const e=Object(se.useContext)(fo);return se.default.createElement(De,{sx:{paddingTop:e.minTopPaddingForContent+"px",overflowY:"scroll",backgroundColor:Ne.getColorValue(t.config.background)}},se.default.createElement(De,{sx:{height:e.remainingVisibleBodyHeight,marginLeft:"auto",marginRight:"auto",maxWidth:280,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}},t.config.icon.visible&&se.default.createElement(De,null,se.default.createElement(sm,{sx:{width:100,height:100,backgroundColor:Ne.getColorValue(t.config.iconBackground),margin:"24px"}},se.default.createElement(yg.a,{sx:{fontSize:50,color:Ne.getColorValue(t.config.icon.color)}}))),se.default.createElement(fn,{sx:{fontSize:20,textAlign:"center"}},se.default.createElement(An,{config:t.config.enableCameraTitle})),se.default.createElement(fn,{sx:{fontSize:16,textAlign:"center",paddingTop:"12px"}},se.default.createElement(An,{config:t.config.enableCameraExplanation})),se.default.createElement(De,{sx:{paddingTop:"16px"}},se.default.createElement(ho,Object.assign({},t.config.closeButton,{onClick:t.onAppClose})))))}function Sg(t){const e=Object(se.useRef)(Object(Be.a)({palette:{primary:{main:ba.ScanbotPrimary},secondary:{main:ba.DarkGray}}})),[n,o]=Object(se.useState)(!1),[r,i]=Object(se.useState)(!1),[a,s]=Object(se.useState)(t.configuration.timeouts.initialScanDelay<=0),l=Object(se.useRef)(!1),c=Object(se.useRef)(),u=Object(se.useRef)(),d=Object(se.useMemo)((()=>new $i(t.configuration.useCase.barcodeInfoMapping.barcodeItemMapper,((t,e)=>{o(!0),c.current=()=>{o(!1),t()},u.current=()=>{o(!1),e()}}))),[]);let p;if(Object(se.useMemo)((()=>{Ne.setPalette(t.configuration.palette),Ne.setBarcodeTextLocalization(t.configuration.localization)}),[t.configuration]),Object(se.useEffect)((()=>{if(t.configuration.timeouts.autoCancelTimeout>0){const e=setTimeout((()=>{t.onClose()}),t.configuration.timeouts.autoCancelTimeout);return()=>{clearTimeout(e)}}}),[]),Object(se.useEffect)((()=>{if(t.configuration.timeouts.initialScanDelay>0){const e=setTimeout((()=>{s(!0)}),t.configuration.timeouts.initialScanDelay);return()=>{clearTimeout(e)}}}),[]),Object(se.useEffect)((()=>{l.current=!n&&a}),[n,a]),"SingleScanningMode"===t.configuration.useCase._type)p=se.default.createElement(mf,{configuration:t.configuration,onClose:t.onClose,onSubmit:t.onSubmit,onError:t.onError,onCameraPermissionDenied:()=>i(!0),scanningEnabled:l});else{if("MultipleScanningMode"!==t.configuration.useCase._type)throw new Error("Unsupported use case type");p=se.default.createElement(hg,{configuration:t.configuration,onSubmit:t.onSubmit,onError:t.onError,onCameraPermissionDenied:()=>i(!0),scanningEnabled:l})}return se.default.createElement(se.default.Fragment,null,se.default.createElement(bn,null),se.default.createElement(gg,{onError:t.onError,fallback:se.default.createElement("div",null,"Error")},se.default.createElement(Fe.Provider,{value:ze(t.configuration.palette)},se.default.createElement(Vi.Provider,{value:d},se.default.createElement(xe,{theme:e.current},se.default.createElement(vg,Object.assign({open:n,handleCancel:u.current,handleRetry:c.current,modalOverlayColor:t.configuration.useCase.barcodeInfoMapping.modalOverlayColor,dividerColor:t.configuration.useCase.barcodeInfoMapping.dividerColor,sheetColor:t.configuration.useCase.barcodeInfoMapping.sheetColor},t.configuration.useCase.barcodeInfoMapping.errorState)),se.default.createElement(De,{sx:{height:`100 * ${vn}`,width:"100vw",backgroundColor:Ne.getColorValue(t.configuration.backgroundColor)}},se.default.createElement(mo,Object.assign({onBackPress:t.onClose},t.configuration.topBar),!r&&p,r&&se.default.createElement(Ag,{onAppClose:t.onClose,config:t.configuration.cameraPermission}))))))))}var Cg=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class xg{static createBarcodeScanner(t){return new Promise(((e,n)=>{Zi.INSTANCE.initialize(t.sound);const o=xg.createContainer("barcode-scanner-controller"),r=Object(le.createRoot)(o),i=()=>Cg(this,void 0,void 0,(function*(){return new Promise((t=>{window.setTimeout((()=>{r.unmount(),document.body.removeChild(o),t()}),0)}))})),a=t=>Cg(this,void 0,void 0,(function*(){yield i(),n(t)}));r.render(se.default.createElement(Sg,{configuration:t,onClose:()=>Cg(this,void 0,void 0,(function*(){yield i(),e(null)})),onSubmit:t=>Cg(this,void 0,void 0,(function*(){yield i(),e(t)})),onError:a})),(()=>{Cg(this,void 0,void 0,(function*(){try{const t=yield yv.instance.getLicenseInfo();t.isValid()||(yield a(new Gt(t)))}catch(t){yield a(t)}}))})()}))}static createContainer(t){const e=document.createElement("div");return e.id=t,e.style.position="fixed",e.style.width="100%",e.style.height="100%",e.style.zIndex="1000",e.style.top="0",e.style.backgroundColor="rgba(0, 0, 0, 0.5)",document.body.appendChild(e),e}}xg.Config=o;var wg=xg,Og=n(56),Eg={insert:"head",singleton:!1};kh()(Og.a,Eg),Og.a.locals;class jg extends se.default.Component{constructor(){super(...arguments),this.LINE_COUNT=4}render(){return se.default.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible",fill:this.props.polygonStyle.fill}},this.fill())}fill(){if(!this.props.points||0===this.props.points.length)return null;const t=[];for(let e=0;e<this.LINE_COUNT;e++){const n=this.props.points[e],o=this.props.points[(e+1)%this.LINE_COUNT];t.push(se.default.createElement("line",{key:e,style:this.props.polygonStyle,className:this.props.polygonClasses,x1:n.x,y1:n.y,x2:o.x,y2:o.y}))}return t}setFrame(){window.requestAnimationFrame((()=>this.forceUpdate()))}}jg.CLASSNAME="scanbot-document-outline";class Lg extends se.default.Component{constructor(t){super(t),this.state={points:[],animatedPoints:[],isOk:!1,isVisible:!1}}update(t,e,n,o){const r={points:t,animatedPoints:e,isOk:n,isVisible:o};this.setState(r)}pointStringOrLatestValidPoints(t){return t&&t.length>0?I.toSvgString(t):I.toSvgString(this.latestValidPoints)}render(){var t;this.state.points&&(this.latestValidPoints=this.state.points);const e=null!==(t=this.props.style)&&void 0!==t?t:{},n=Rh()(jg.CLASSNAME,{[`${jg.CLASSNAME}-ok`]:this.state.isOk},{[`${jg.CLASSNAME}-visible`]:this.state.isVisible},{[`${jg.CLASSNAME}-hidden`]:!this.state.isVisible});return se.default.createElement(mh.polygon,{ref:t=>this.polygon=t,style:{strokeWidth:e.strokeWidth||2},animate:{points:this.pointStringOrLatestValidPoints(this.state.animatedPoints),opacity:this.state.isVisible?1:0,stroke:this.state.isOk?e.strokeCapturing:e.strokeSearching,fill:this.state.isOk?e.fillCapturing:e.fillSearching},onClick:()=>{},fill:"transparent",className:n})}}var kg=Lg;class _g extends se.default.Component{constructor(t){super(t),this.state={path:void 0}}render(){var t,e;return this.state.path?se.default.createElement(mh.path,{pathLength:"1",strokeDasharray:"1 1",initial:{strokeDashoffset:1},animate:{strokeDashoffset:0},transition:{duration:this.props.duration/1e3,ease:"easeInOut",repeat:0,repeatType:"loop",repeatDelay:1},stroke:(null===(t=this.props.style)||void 0===t?void 0:t.stroke)||"white",strokeWidth:(null===(e=this.props.style)||void 0===e?void 0:e.strokeWidth)||2,fill:"none",d:this.state.path,className:`${jg.CLASSNAME}-path`}):null}animate(t){const e="M"+I.toSvgString(t)+"z";this.setState({path:e})}clear(){this.setState({path:void 0})}}class Tg extends se.default.Component{render(){return se.default.createElement(mh.svg,{style:{width:"100%",height:"100%",position:"absolute",overflow:"visible"}},se.default.createElement(kg,{ref:t=>this.polygon=t,style:this.props.polygonStyle}),se.default.createElement(_g,{ref:t=>this.path=t,style:this.props.pathStyle,duration:this.props.autoCaptureSensitivity}))}update(t,e,n){var o;const r="processing"!==n&&!!t,i=null!==(o=this.previous)&&void 0!==o?o:t,a=this.previous?t:void 0;this.polygon.update(i,a,e,r),this.previous=t,this.previous&&"capturing"===n?this.animateCapturing():this.clearAnimation()}animateCapturing(){this.path.animate(this.previous)}clearAnimation(){this.path.clear()}}class Pg extends se.default.Component{constructor(){super(...arguments),this.hintLabelClassName="scanbot-document-hint-text",this.state={text:"Initializing...",ok:!1,validPoints:!1}}render(){const{ok:t,text:e,validPoints:n}=this.state,o="searching"===this.props.action||"capturing"===this.props.action,r="processing"!==this.props.action&&n,i=Rh()({[this.hintLabelClassName]:!0,[`${this.hintLabelClassName}-visible`]:r,[`${this.hintLabelClassName}-hidden`]:!r});return se.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",left:0,top:0}},se.default.createElement(Tg,{ref:t=>{this.polygon=t},action:this.props.action,style:{width:"100%",height:"100%"},polygonStyle:this.props.style.polygon,pathStyle:this.props.style.path,isOk:t,isVisible:r,autoCaptureSensitivity:this.props.autoCaptureSensitivity}),o&&se.default.createElement("label",{ref:t=>this.label=t,style:this.props.style.label,className:i,dangerouslySetInnerHTML:{__html:e}}))}update(t,e,n){this.polygon.update(e,t,this.props.action),this.label&&(this.label.innerHTML=n)}}class Rg{static isConvex(t){if(t.length<4)return!0;let e=!1,n=t.length;for(let o=0;o<n;o++){const r=t[(o+2)%n].x-t[(o+1)%n].x,i=t[(o+2)%n].y-t[(o+1)%n].y,a=t[o].x-t[(o+1)%n].x,s=r*(t[o].y-t[(o+1)%n].y)-i*a;if(0==o)e=s>0;else if(e!=s>0)return!1}return!0}static distanceBetweenPoints(t,e){return Math.pow(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2),.5)}static intersection(t,e){const n=t[0],o=I.subtract(t[1],n),r=e[0],i=I.subtract(e[1],r);if(0===I.cross(o,i))return;const a=I.cross(I.subtract(r,n),o)/I.cross(o,i);return I.add(r,I.multiply(i,a))}}class Bg{constructor(t,e=Bg.DEFAULT_SENSITIVITY){this.maxDistance=this.calculateMaxDistance(t),this.sensitivity=e}check(t){let e=!1;if(this.lastPolygon){for(var n=0;n<4;n++)if(this.isPointMoved(t[n],this.lastPolygon[n])){e=!0;break}}else e=!0;return e}reset(){this.lastPolygon=void 0}update(t){this.lastPolygon=t}isPointMoved(t,e){return Rg.distanceBetweenPoints(t,e)/this.maxDistance>this.sensitivity}calculateMaxDistance(t){let e=new I(0,0),n=new I(t.width,t.height);return Rg.distanceBetweenPoints(e,n)}}Bg.DEFAULT_SENSITIVITY=.5;var Wg=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class Ig extends sa{constructor(t){if(super(t),this.preventAutoCapture=!1,this.defaultCaptureButtonClick=()=>Wg(this,void 0,void 0,(function*(){const t=yield this.detectAndCrop();this.configuration.onDocumentDetected(t)})),Object.assign(this.state,{action:this.defaultAction}),!this.isSupported()){throw Error("Camera can only be accessed if the content is served via HTTPS, or on localhost. Check DocumentScannerView.isSupported() before creating the scanner.")}if(!yv.instance)throw Error("Initialize the SDK by calling ScanbotSDK.initialize() before using the document scanner.")}get defaultAction(){return this.isAutoCaptureEnabled()?"searching":"manual"}get enabled(){return("searching"==this.state.action||"capturing"==this.state.action||"manual"==this.state.action)&&!this.disposed}get configuration(){return this._configuration||(this._configuration=S.fromJson(this.props.configuration)),this._configuration}get autoCaptureSensitivity(){return 3e3*(1-this.configuration.autoCaptureSensitivity)}static create(t){return Wg(this,void 0,void 0,(function*(){const e=document.getElementById(t.containerId);if(!e)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((n,o)=>{Object(se.render)(se.default.createElement(Ig,{container:e,configuration:t,onSuccess:n,onFailure:o}),e)}))}))}detectAndCrop(){var t;return Wg(this,void 0,void 0,(function*(){try{if(this.enabled){this.setState({action:"processing"});const e=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(Ig.DETECT_AND_CROP_RESOLUTION,this.configuration.useImageCaptureAPI);if(!e)return;ae.debug("Detect & Crop document of size: "+e.height*e.width);const n=new ua(e.width,e.height),o=yield this.bridge.postByTransferringArgs("detectAndCropDocument",[e]);return o.videoSize=n,o}}finally{this.setState({action:this.defaultAction})}}))}enableAutoCapture(){this.updateAutoCapture(!0)}disableAutoCapture(){this.updateAutoCapture(!1)}updateAutoCapture(t){this._configuration?this._configuration.autoCaptureEnabled=t:this.props.configuration.autoCaptureEnabled=t,this.setState({action:this.defaultAction})}isAutoCaptureEnabled(){return this._configuration?this._configuration.autoCaptureEnabled:this.props.configuration.autoCaptureEnabled}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return Wg(this,void 0,void 0,(function*(){t.componentDidMount.call(this),this.detect(),this.recognizer=yield this.bridge.postByTransferringArgs("createDocumentDetector",[{useCombinedDetector:!1,acceptedBrightnessThreshold:this.configuration.acceptedBrightnessThreshold,acceptedAngleScore:this.configuration.acceptedAngleScore,acceptedSizeScore:this.configuration.acceptedSizeScore}])}))}componentWillUnmount(){const t=Object.create(null,{componentWillUnmount:{get:()=>super.componentWillUnmount}});return Wg(this,void 0,void 0,(function*(){t.componentWillUnmount.call(this),this.handleAutoCapture(!1),yield yv.instance.release(this.recognizer,"Document Scanner")}))}detect(){var t,e;return Wg(this,void 0,void 0,(function*(){try{if(!this.enabled)return;const t=yield this.detectInWebWorker();if(!t||!this.enabled)return;if(!this.outline)return;const e=this.getStatusString(t),n="OK"===e;let o=this.scalePolygonPointsToPixels(t.polygon);this.outline.update(n,o,T.getProperty(this.configuration.text.hint,e)),yield this.handleAutoCapture(n,o)}catch(n){null===(e=(t=this.configuration).onError)||void 0===e||e.call(t,n)}finally{requestAnimationFrame(this.detect.bind(this))}}))}getStatusString(t){return this.configuration.ignoreBadAspectRatio&&"OK_BadAspectRatio"===t.detectionStatus?"OK":t.detectionStatus}detectInWebWorker(){var t;return Wg(this,void 0,void 0,(function*(){const e=yield null===(t=this.camera)||void 0===t?void 0:t.createImageData(sa.DEFAULT_DETECTION_RESOLUTION);if(!e||!this.enabled)return;const n=[this.recognizer,e];return yield this.bridge.postByCopyingArgs("documentDetectorDetect",n)}))}handleAutoCapture(t,e){return Wg(this,void 0,void 0,(function*(){if(this.configuration.autoCaptureEnabled&&!this.preventAutoCapture)if(t&&!this.autoCaptureToken&&e){if(this.updateButton("capturing"),!this.polygonMovementPredicate){const t=this.getCameraFrameSize();this.polygonMovementPredicate=new Bg(t)}if(this.runMovementPredicate(e))return this.updateButton("searching"),clearTimeout(this.autoCaptureToken),void(this.autoCaptureToken=void 0);this.autoCaptureToken=setTimeout((()=>Wg(this,void 0,void 0,(function*(){if(this.autoCaptureToken=void 0,!this.enabled)return;if(!this.configuration.autoCaptureEnabled)return;const t=yield this.detectAndCrop();if(t.polygon){const e=this.scalePolygonPointsToPixels(t.polygon);if(this.runMovementPredicate(e))return}t.success&&this.configuration.onDocumentDetected&&(this.configuration.onDocumentDetected(t),this.preventAutoCapture=!0,setTimeout((()=>{this.preventAutoCapture=!1}),this.configuration.autoCaptureDelay))}))),this.autoCaptureSensitivity)}else!t&&this.autoCaptureToken&&(this.updateButton("searching"),clearTimeout(this.autoCaptureToken),this.autoCaptureToken=void 0)}))}updateButton(t){this.setState({action:t})}render(){var t,e,n;const{action:o}=this.state,{configuration:r}=this,i=null===(t=r.style)||void 0===t?void 0:t.captureButton;return se.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(e=this.configuration)||void 0===e?void 0:e.spinnerColor),se.default.createElement(pa,{configuration:this.configuration,videoConstraints:r.videoConstraints,mirrored:r.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}}),se.default.createElement(Pg,{ref:t=>{this.outline=t},style:null===(n=r.style)||void 0===n?void 0:n.outline,action:o,autoCaptureSensitivity:this.autoCaptureSensitivity}),se.default.createElement(Wh,{color:(null==i?void 0:i.color)?i.color:"FFF",action:o,onClick:this.enabled?r.onCaptureButtonClick||this.defaultCaptureButtonClick:()=>{}}))}scalePolygonPointsToPixels(t){if(t){const e=this.getCameraFrameSize(),n=ua.fromHtmlElement(this.camera.video),o=qh.findScale(n,e);t=(t=qh.convertToViewportPointsFromParentSize(e,t)).map((t=>I.scaleToPoint(t,o.x,o.y,o.scale)))}return t}runMovementPredicate(t){const e=this.polygonMovementPredicate.check(t);return this.polygonMovementPredicate.update(t),e}getCameraFrameSize(){return this.camera.calculateFrameSize(sa.DEFAULT_DETECTION_RESOLUTION,this.camera.videoSize().width,this.camera.videoSize().height)}}Ig.DETECT_AND_CROP_RESOLUTION=0;var Mg=Ig;class Dg extends $t{constructor(){super(p.DEFAULT_VIDEO_RESOLUTION_HD),this.onMrzDetected=function(t){},this.finder.aspectRatio.width=4,this.userGuidance.title.text="Please hold the device over the MRZ code to start scanning"}static fromJson(t){const e=new Dg;return this.mapValues(t,e,["style","videoConstraints","finder","userGuidance"]),this.mapFinderConfiguration(e,t),this.mapVideoConstraints(t,e),e}}var Fg=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class zg extends sa{constructor(t){super(t),this.shouldComputeSize=!0,this.paused=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),Object.assign(this.state,{isFinderVisible:!0})}get configuration(){return this._configuration||(this._configuration=Dg.fromJson(this.props.configuration)),this._configuration}get enabled(){return!this.disposed}static create(t,e){return Fg(this,void 0,void 0,(function*(){const n=document.getElementById(t.containerId);if(!n)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((o,r)=>{Object(se.render)(se.default.createElement(zg,{container:n,configuration:t,onSuccess:o,onFailure:r,mrzRecognizer:e}),n)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return Fg(this,void 0,void 0,(function*(){Kh.warn("Mrz detection resumed"),yield this.resume()}))}pauseDetection(){Kh.warn("Mrz detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return Fg(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),this.props.mrzRecognizer.release(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return Fg(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return Fg(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.paused=!0}detect(){var t,e,n;return Fg(this,void 0,void 0,(function*(){const o=this.shouldComputeSize;if(!this.enabled)return;if(this.paused)return;let r=!1;try{this.camera.finderFrame=null===(t=this.finder)||void 0===t?void 0:t.holeRect;const i=yield null===(e=this.camera)||void 0===e?void 0:e.createImageData(zg.FRAME_RESOLUTION);if(!i)return;o&&this.forceUpdate();const a=yield this.props.mrzRecognizer.recognize(i);if(!this.enabled)return;if(null===a)return;a?(r=!0,this.configuration.onMrzDetected(a)):this.configuration._onDetectionFailed&&(null===(n=this.configuration)||void 0===n||n._onDetectionFailed(i))}catch(t){console.log(t)}finally{r?setTimeout((()=>{requestAnimationFrame(this.detect.bind(this))}),200):requestAnimationFrame(this.detect.bind(this))}}))}saveExtractedImageData(){this.camera.saveExtractedData()}setFinderVisible(t){this.setState({isFinderVisible:t})}render(){var t;return se.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(t=this.configuration)||void 0===t?void 0:t.spinnerColor),se.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},se.default.createElement(pa,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),this.state.isFinderVisible&&se.default.createElement(ha,{ref:t=>{this.finder=t},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}))}}zg.FRAME_RESOLUTION=1200;var Ng=zg;class Vg{constructor(){this.disabled=!1,this.color="transparent"}}class $g{constructor(){this.color="white",this.border="1px solid lightgray",this.size=20}}class Ug{constructor(){this.color="#1ec31e",this.width=4}}class Hg{constructor(){this.padding=10}}class Gg{constructor(){this.margin=15,this.size=100,this.zoom=1.5}}class Yg{constructor(){this.width=2,this.color="white"}}class Xg{constructor(){this.size=20,this.color="white"}}class Kg extends d{constructor(){super(),this.disableScroll=!0,this.rotations=0,this.style=new Hg,this.style.magneticLines=new Vg,this.style.polygon=new Ug,this.style.polygon.handles=new $g,this.style.magnifier=new Gg,this.style.magnifier.border=new Yg,this.style.magnifier.crosshair=new Xg}static fromJson(t){const e=new Kg;return this.mapValues(t,e,["style"]),t.style&&(this.mapValues(t.style,e.style,["polygon","magneticLines","magnifier"]),t.style.polygon&&(this.mapValues(t.style.polygon,e.style.polygon,["handles"]),t.style.polygon.handles&&this.mapValues(t.style.polygon.handles,e.style.polygon.handles)),t.style.magneticLines&&this.mapValues(t.style.magneticLines,e.style.magneticLines,[]),t.style.magnifier&&(this.mapValues(t.style.magnifier,e.style.magnifier,["border","crosshair"]),t.style.magnifier.border&&this.mapValues(t.style.magnifier.border,e.style.magnifier.border,[]),t.style.magnifier.crosshair&&this.mapValues(t.style.magnifier.crosshair,e.style.magnifier.crosshair,[]))),e}}class Qg extends se.default.Component{constructor(){super(...arguments),this.BUFFER=4}fromPoint(t){return se.default.createElement("svg",{style:{width:"100%",height:"100%",position:"absolute"}},se.default.createElement("line",{x1:t.p1.x.toString(),y1:t.p1.y.toString(),x2:t.p2.x.toString(),y2:t.p2.y.toString(),style:{stroke:this.props.style.color,strokeWidth:2}}))}componentDidUpdate(t,e,n){this.props.style.disabled||this.snapToClosestIfAnyAreClose()}render(){var t,e,n,o,r,i;return se.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},null===(n=null===(e=null===(t=this.props.lines)||void 0===t?void 0:t.horizontal)||void 0===e?void 0:e.scaled)||void 0===n?void 0:n.map((t=>this.fromPoint(t))),null===(i=null===(r=null===(o=this.props.lines)||void 0===o?void 0:o.vertical)||void 0===r?void 0:r.scaled)||void 0===i?void 0:i.map((t=>this.fromPoint(t))))}snapToClosestIfAnyAreClose(){var t,e,n,o;const r=this.props.movingLine;let i=null===(e=null===(t=this.props.lines)||void 0===t?void 0:t.vertical)||void 0===e?void 0:e.scaled;if(r.isHorizontal&&(i=null===(o=null===(n=this.props.lines)||void 0===n?void 0:n.horizontal)||void 0===o?void 0:o.scaled),!i)return;const a=this.midPoint(r.points[0].coordinates,r.points[1].coordinates),s=i.map((t=>({distance:this.distanceToLine(t,a),mLine:t})));s.sort(((t,e)=>t.distance-e.distance)),s[0].distance<this.BUFFER&&this.props.snapTo({magneticLine:s[0].mLine,polygonLine:r})}distanceToLine(t,e){const n=e.x-t.p1.x,o=e.y-t.p1.y,r=t.p2.x-t.p1.x,i=t.p2.y-t.p1.y,a=r*r+i*i;if(0===a)return 1/0;const s=(n*r+o*i)/a;let l;return l=s<=0?t.p1:s>=1?t.p2:new I(t.p1.x+s*r,t.p1.y+s*i),I.distance(e,l)}midPoint(t,e){return new I((t.x+e.x)/2,(t.y+e.y)/2)}}class qg extends se.default.Component{constructor(){super(...arguments),this.POINT_COUNT=4,this.items=[],this.DRAG_BUFFER=5}get pointSize(){var t,e;return(null===(t=this.props.style)||void 0===t?void 0:t.size)?(null===(e=this.props)||void 0===e?void 0:e.scale)?this.props.style.size/this.props.scale:this.props.style.size:0}get pointStyle(){var t,e;return{width:this.pointSize+"px",height:this.pointSize+"px",border:null===(t=this.props.style)||void 0===t?void 0:t.border,borderRadius:this.pointSize/2+"px",backgroundColor:null===(e=this.props.style)||void 0===e?void 0:e.color,position:"absolute",cursor:"pointer",zIndex:500}}nextIndex(t){return(t+1)%this.POINT_COUNT}previousIndex(t){return(t-1+this.POINT_COUNT)%this.POINT_COUNT}isHorizontal(t){return t%2==0}isOutOfBounds(t,e){return t<-this.DRAG_BUFFER||t>e+this.DRAG_BUFFER}get invisibleHandleStyle(){return{width:"50px",height:"50px",opacity:0,position:"relative",top:this.pointSize/2-25+"px",left:this.pointSize/2-25+"px",borderRadius:"25px"}}}class Zg extends qg{create(){if(!this.props.points||4!==this.props.points.length)return null;const t=[];for(let e=0;e<this.POINT_COUNT;e++){const n=this.props.points[e],o=se.default.createElement("div",{style:Object.assign(Object.assign({},this.pointStyle),{left:n.x-this.pointSize/2+"px",top:n.y-this.pointSize/2+"px"}),key:e.toString(),ref:t=>this.items[e]=t,onPointerDown:t=>this.cornerTouchStart(t,e),onPointerUp:t=>this.cornerTouchEnd(t),onPointerMove:t=>this.cornerTouchMove(t,e),"data-sb-cropping-corner":e},se.default.createElement("div",{style:Object.assign({},this.invisibleHandleStyle)}));t.push(o)}return t}cornerTouchStart(t,e){t.target.setPointerCapture(t.pointerId);const n=I.fromCoordinates(t.clientX,t.clientY,this.props.rotations,this.props.scale),o=this.items[e],r=I.fromHtmlElement(o);this.parentOffset=new I(n.x-r.x,n.y-r.y),this.props.cornerMoveStart({index:e,point:this.props.points[e]})}cornerTouchMove(t,e){if(!this.parentOffset)return;const n=I.fromCoordinates(t.clientX,t.clientY,this.props.rotations,this.props.scale),{x:o,y:r}=(i={x:n.x-this.parentOffset.x,y:n.y-this.parentOffset.y},a=this.pointSize,s=this.props.containerSize,new I(W(i.x,-a/2,s.width-a/2),W(i.y,-a/2,s.height-a/2)));var i,a,s;const l=this.pointSize/2,c=this.props.points[e];this.props.points[e]=new I(o+l,r+l),Rg.isConvex(this.props.points)?this.props.cornerMoved({index:e,point:this.props.points[e]}):this.props.points[e]=c}cornerTouchEnd(t){t.target.releasePointerCapture(t.pointerId),this.parentOffset=null,this.props.cornerMoveEnd()}render(){return se.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",cursor:"pointer",zIndex:500,userSelect:"none",msUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none"}},this.create())}}class Jg extends qg{create(){if(!this.props.points||4!==this.props.points.length)return null;const t=[];for(let e=0;e<this.POINT_COUNT;e++){const n=this.props.points[e];let o=this.props.points[this.nextIndex(e)];const r=se.default.createElement("div",{style:Object.assign(Object.assign({},this.pointStyle),{left:n.x+(o.x-n.x)/2-this.pointSize/2+"px",top:n.y+(o.y-n.y)/2-this.pointSize/2+"px"}),key:e.toString(),ref:t=>this.items[e]=t,onPointerDown:t=>this.lineTouchStart(t,e),onPointerMove:t=>this.lineTouchMove(t,e),onPointerUp:t=>this.lineTouchEnd(t),"data-sb-cropping-side":e},se.default.createElement("div",{style:this.invisibleHandleStyle}));t.push(r)}return t}lineTouchStart(t,e){t.target.setPointerCapture(t.pointerId);const n=I.fromCoordinates(t.clientX,t.clientY,this.props.rotations,this.props.scale),o=this.items[e],r=I.fromHtmlElement(o),i=this.props.points[e],a=this.props.points[this.nextIndex(e)];this.point0Start=T.copy(this.props.points[this.previousIndex(e)]),this.point1Start=T.copy(i),this.point2Start=T.copy(a),this.point3Start=T.copy(this.props.points[this.nextIndex(this.nextIndex(e))]),this.point1Offset=new I(i.x-r.x,i.y-r.y),this.point2Offset=new I(a.x-r.x,a.y-r.y),this.parentOffset=new I(n.x-r.x,n.y-r.y)}lineTouchMove(t,e){if(!this.parentOffset)return;const n=I.fromCoordinates(t.clientX,t.clientY,this.props.rotations,this.props.scale),o=this.props.points[this.previousIndex(e)];let r=new I(null,null),i=new I(null,null);const a=this.props.points[this.nextIndex(e+1)],s=n.x-this.parentOffset.x,l=n.y-this.parentOffset.y;if(this.isHorizontal(e)){const t=l+this.point1Offset.y,e=l+this.point2Offset.y,n=t-this.point1Start.y;r.x=this.point1Start.x+(this.point1Start.x-this.point0Start.x)*(n/(this.point1Start.y-this.point0Start.y)),i.x=this.point2Start.x+(this.point2Start.x-this.point3Start.x)*(n/(this.point2Start.y-this.point3Start.y)),r.y=t,i.y=e}else{const t=s+this.point1Offset.x,e=s+this.point2Offset.x,n=t-this.point1Start.x;r.y=this.point1Start.y+(this.point1Start.y-this.point0Start.y)*(n/(this.point1Start.x-this.point0Start.x)),i.y=this.point2Start.y+(this.point2Start.y-this.point3Start.y)*(n/(this.point2Start.x-this.point3Start.x)),r.x=t,i.x=e}r=I.clamp(r,this.props.containerSize),i=I.clamp(i,this.props.containerSize),this.isNearOpposingPoint(this.point1Start,r,o,this.isHorizontal(e)?"y":"x")||this.isNearOpposingPoint(this.point1Start,i,a,this.isHorizontal(e)?"y":"x")||this.areEdgesCrossing(o,r,i,a)||Rg.isConvex([o,r,i,a])&&(this.props.points[e].x=r.x,this.props.points[e].y=r.y,this.props.points[this.nextIndex(e)].x=i.x,this.props.points[this.nextIndex(e)].y=i.y,this.props.lineMoved({points:[{index:e,coordinates:r},{index:this.nextIndex(e),coordinates:i}],previousPoint:o,nextPoint:a,isHorizontal:this.isHorizontal(e)}))}lineTouchEnd(t){t.target.releasePointerCapture(t.pointerId),this.parentOffset=null}isNearOpposingPoint(t,e,n,o){if(t[o]>n[o]){if(e[o]-10<n[o])return!0}else if(e[o]>n[o]-10)return!0;return!1}areEdgesCrossing(t,e,n,o){const r=t.x,i=t.y,a=e.x,s=e.y,l=n.x,c=n.y,u=o.x,d=o.y;return((r-l)*(s-c)-(i-c)*(a-l))*((r-u)*(s-d)-(i-d)*(a-u))<0&&((l-r)*(d-i)-(c-i)*(u-r))*((l-a)*(d-s)-(c-s)*(u-a))<0}render(){return se.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},this.create())}}class tv extends se.default.Component{render(){return se.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"}},se.default.createElement(Zg,{ref:t=>this.corners=t,style:this.props.style,containerSize:this.props.containerSize,scale:this.props.scale,rotations:this.props.rotations,points:this.props.coordinatePoints,cornerMoveStart:this.props.cornerMoveStart,cornerMoved:this.props.cornerMoved,cornerMoveEnd:this.props.cornerMoveEnd}),se.default.createElement(Jg,{ref:t=>this.lines=t,style:this.props.style,containerSize:this.props.containerSize,scale:this.props.scale,rotations:this.props.rotations,points:this.props.coordinatePoints,lineMoved:this.props.lineMoved}))}setFrame(){for(let t=0;t<this.corners.POINT_COUNT;t++){const e=this.props.coordinatePoints[t];this.corners.items[t]&&(this.corners.items[t].style.left=e.x-this.corners.pointSize/2+"px",this.corners.items[t].style.top=e.y-this.corners.pointSize/2+"px");let n=this.props.coordinatePoints[this.corners.nextIndex(t)];this.lines.items[t]&&(this.lines.items[t].style.left=e.x+(n.x-e.x)/2-this.corners.pointSize/2+"px",this.lines.items[t].style.top=e.y+(n.y-e.y)/2-this.corners.pointSize/2+"px")}}snapTo(t){const e=[t.polygonLine.previousPoint,t.polygonLine.points[0].coordinates],n=[t.polygonLine.points[1].coordinates,t.polygonLine.nextPoint],o=[t.magneticLine.p1,t.magneticLine.p2];this.props.coordinatePoints[t.polygonLine.points[0].index]=Rg.intersection(e,o),this.props.coordinatePoints[t.polygonLine.points[1].index]=Rg.intersection(n,o),this.props.cornerMoveEnd(),this.setFrame()}}class ev extends se.default.Component{constructor(t){super(t),this.state={movingLine:void 0}}render(){return se.default.createElement("div",null,se.default.createElement(tv,{ref:t=>this.handles=t,containerSize:this.props.size,coordinatePoints:this.props.points,rotations:this.props.rotations,scale:this.props.scale,style:this.props.handleStyle,cornerMoveStart:this.props.cornerMoveStart,cornerMoved:t=>{this.setFrame(),this.props.cornerMoved(t)},cornerMoveEnd:this.props.cornerMoveEnd,lineMoved:t=>{this.setFrame(),this.setState({movingLine:t})}}),se.default.createElement(Qg,{style:this.props.magneticLineStyle,lines:this.props.magneticLines,movingLine:this.state.movingLine,snapTo:t=>{var e,n;null===(e=this.handles)||void 0===e||e.snapTo(t),null===(n=this.polygon)||void 0===n||n.setFrame()}}),se.default.createElement(jg,{size:this.props.size,points:this.props.points,polygonStyle:this.props.polygonStyle,polygonClasses:this.props.polygonClasses,ref:t=>this.polygon=t}))}setFrame(){var t,e;null===(t=this.polygon)||void 0===t||t.setFrame(),null===(e=this.handles)||void 0===e||e.setFrame()}}class nv extends se.default.Component{render(){return se.default.createElement("img",{ref:t=>this.image=t,style:{width:"100%",height:"100%",objectFit:"cover",position:"absolute"},src:this.props.src,alt:".",onLoad:t=>{t.target&&this.props.onImageLoaded(t.target)}})}}class ov extends se.default.Component{constructor(){super(...arguments),this.animating=!1}width(){return this.container.offsetWidth-2*this.container.offsetLeft}height(){return this.container.offsetHeight-2*this.container.offsetTop}isAnimating(){return this.animating}render(){const{size:t,imageMargin:e,rotations:n,scale:o,duration:r}=this.props,i=90*(n-1),a=90*n;this.previousScale||(this.previousScale=1);const s=ge.d`
|
|
185
185
|
from {transform: rotate(${i}deg) scale(${this.previousScale}); }
|
|
186
186
|
to {transform: rotate(${a}deg) scale(${o});
|
|
187
|
-
}`,l=ge.c.div`position: absolute; animation: ${s} ${r}s;`;return this.previousScale=o,se.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"},ref:t=>this.container=t},se.default.createElement(l,{style:{width:this.calculate(t,"width"),height:this.calculate(t,"height"),transform:`rotate(${a}deg) scale(${o})`,marginTop:this.marginWithAspect(e,"y",t),marginLeft:this.marginWithAspect(e,"x",t)},onAnimationStart:()=>{this.animating=!0},onAnimationEnd:()=>{this.animating=!1}},this.props.children))}marginWithAspect(t,e,n){if(!t||!n)return 0;n.width,n.height;return t[e]}calculate(t,e){return t?t[e]:"100%"}}class rv extends se.default.Component{componentDidMount(){qh.disableScreenMovement()}componentWillUnmount(){qh.enableScreenMovement()}render(){return se.default.createElement("div",null)}}class iv{constructor(t,e){this.element=t,this.size=e}}class av{}class sv extends se.default.Component{render(){return se.default.createElement("div",{style:this.props.style},se.default.createElement("svg",null,this.vertical(),this.horizontal()))}half(){return this.props.size/2}vertical(){const t=this.half();return se.default.createElement("line",{x1:t,y1:0,x2:t,y2:this.props.size,stroke:this.props.color,strokeWidth:"2"})}horizontal(){const t=this.half();return se.default.createElement("line",{x1:0,y1:t,x2:this.props.size,y2:t,stroke:this.props.color,strokeWidth:"2"})}}class lv extends se.default.Component{get crosshairSize(){var t,e;return null===(e=null===(t=this.props.style)||void 0===t?void 0:t.crosshair)||void 0===e?void 0:e.size}constructor(t){super(t),this.MAX_ROTATIONS=4,this.state={frame:_.empty(),cropImageFitSize:ua.empty(),rotation:{count:0,scale:1},margin:{left:this.props.style.margin,top:this.props.style.margin},container:{width:0},scale:{width:1,height:1}}}style(){return{container:{marginLeft:this.state.margin.left,marginTop:this.state.margin.top,width:this.state.frame.width,height:this.state.frame.height,borderRadius:this.props.style.size/2,border:this.props.style.border.width+"px solid "+this.props.style.border.color,position:"absolute",overflow:"hidden",zIndex:50,transform:"rotate("+90*this.state.rotation.count+"deg)"},image:{width:this.state.cropImageFitSize.width*this.props.style.zoom,height:this.state.cropImageFitSize.height*this.props.style.zoom,marginLeft:-this.state.frame.x,marginTop:-this.state.frame.y,objectFit:"cover"},crosshair:{margin:"auto",position:"absolute",width:this.crosshairSize,height:this.crosshairSize,top:this.state.frame.height/2-this.crosshairSize/2,left:this.state.frame.width/2-this.crosshairSize/2}}}render(){return this.state.visible?se.default.createElement("div",{style:this.style().container},se.default.createElement("img",{style:this.style().image,ref:t=>this.destination=t,src:this.props.src,alt:"."}),se.default.createElement(sv,{style:this.style().crosshair,size:this.crosshairSize,color:this.props.style.crosshair.color})):null}update(t){if(!this.state.visible)return;this.destination.src=t.source.element.src;const e=_.fromPoint(I.scaleUpTo(t.origin,new ua(this.props.style.zoom,this.props.style.zoom)),this.props.style.size),n=t.container.width-(this.props.style.margin+this.props.style.size),o=this.isPointTopLeft(t.origin,t.source.size,t.rotations);this.setState({frame:e,cropImageFitSize:t.source.size,rotation:{count:t.rotations,scale:t.scale},margin:{left:o?n:this.props.style.margin},container:{width:t.container.width},scale:{width:t.source.size.width/t.container.width,height:t.source.size.height/t.container.height}})}isPointTopLeft(t,e,n){const o=t.x,r=t.y,i=this.normalizeRotations(n),a=this.state.container.width/4;return 0===i?o<a&&r<a:1===i?o<a&&r>e.height-a:2===i?o>e.width-a&&r>e.height-a:o>e.width-a&&r<a}setIsVisible(t,e){this.setState({visible:t},e)}normalizeRotations(t){return t%this.MAX_ROTATIONS}}var cv=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class uv extends se.default.Component{constructor(t){super(t),this.onResizeCallback=()=>{},this.MAX_ROTATIONS=4,this.BASE_SCALE=1,this.state={image:void 0,polygon:void 0,calculatedSize:ua.empty(),animation:{rotations:0,scale:1,duration:0},points:[],magneticLines:{horizontal:{original:[],scaled:[]},vertical:{original:[],scaled:[]}},imageMargin:I.empty()},this.onResizeCallback=this.onResize.bind(this)}static create(t){return cv(this,void 0,void 0,(function*(){const e=document.getElementById(t.containerId);if(!e)throw Error("Unable to initialize cropping component: Cannot find container element with the id provided.");return new Promise(((n,o)=>{Object(se.render)(se.default.createElement(uv,{onReady:n,onError:o,container:e,configuration:Kg.fromJson(t)}),e)}))}))}componentDidMount(){var t,e,n;return cv(this,void 0,void 0,(function*(){const o=null===(t=this.configuration)||void 0===t?void 0:t.image,r=yield this.detectContour(o);this.setState({image:yield R.toDataUrl(o),polygon:null!==(n=null===(e=this.configuration)||void 0===e?void 0:e.polygon)&&void 0!==n?n:r.polygon,magneticLines:{vertical:{original:r.verticalLines},horizontal:{original:r.horizontalLines}}}),this.props.onReady&&this.props.onReady(this),addEventListener("resize",this.onResizeCallback),addEventListener("orientationchange",this.onResizeCallback)}))}componentWillUnmount(){return cv(this,void 0,void 0,(function*(){removeEventListener("resize",this.onResizeCallback),removeEventListener("orientationchange",this.onResizeCallback)}))}onImageLoaded(t){return cv(this,void 0,void 0,(function*(){ua.isEmpty(this.state.calculatedSize)&&(this.htmlImage=t,this.initializeSizes())}))}onResize(){const t=this.state.points.map((t=>new I(t.x/this.state.calculatedSize.width,t.y/this.state.calculatedSize.height)));this.initializeSizes(t)}initializeSizes(t,e,n){const o=new ua(this.htmlImage.naturalWidth,this.htmlImage.naturalHeight),r=new ua(this.container.width(),this.container.height()),i=R.getObjectFitSize(r,o),a=new ua(i.width,i.height),s=null!=t?t:this.state.polygon,l=qh.convertToViewportPointsFromParentSize(a,s),c=null!=e?e:this.state.magneticLines.horizontal.original,u=null!=n?n:this.state.magneticLines.vertical.original,d=qh.convertLinesToViewportLines(a,c),p=qh.convertLinesToViewportLines(a,u);this.setState({calculatedSize:a,points:l,magneticLines:{horizontal:{original:c,scaled:d},vertical:{original:u,scaled:p}},animation:{duration:0,rotations:this.rotations,scale:this.calculateScale(0,this.rotations,a)},imageMargin:this.calculateMargin(a)})}render(){var t,e,n,o,r,i;const a=jg.CLASSNAME,s=Rh()({[a]:!0,[`${a}-visible`]:!0}),l=this.configuration.style.polygon.width,c=(null===(t=this.state.animation)||void 0===t?void 0:t.scale)?l/this.state.animation.scale:l,u=this.configuration.style.padding||0,d=`calc(100% - 2*${u}px)`;return se.default.createElement("div",{style:{position:"relative",width:d,height:d,padding:u}},se.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.configuration.disableScroll&&se.default.createElement(rv,null),se.default.createElement(lv,{ref:t=>this.magnifier=t,style:this.configuration.style.magnifier}),se.default.createElement(ov,{ref:t=>this.container=t,size:this.state.calculatedSize,rotations:null===(e=this.state.animation)||void 0===e?void 0:e.rotations,scale:null===(n=this.state.animation)||void 0===n?void 0:n.scale,duration:null===(o=this.state.animation)||void 0===o?void 0:o.duration,imageMargin:this.state.imageMargin},se.default.createElement(nv,{src:this.state.image,onImageLoaded:t=>this.onImageLoaded(t)}),se.default.createElement(ev,{style:{width:"100%",height:"100%",zIndex:500},size:this.state.calculatedSize,polygonStyle:{cursor:"pointer",stroke:this.configuration.style.polygon.color,strokeWidth:`${c}px`},handleStyle:this.configuration.style.polygon.handles,magneticLineStyle:this.configuration.style.magneticLines,polygonClasses:s,points:this.state.points,rotations:null===(r=this.state.animation)||void 0===r?void 0:r.rotations,scale:null===(i=this.state.animation)||void 0===i?void 0:i.scale,magneticLines:this.state.magneticLines,cornerMoveStart:this.showMagnifier.bind(this),cornerMoved:this.updateMagnifier.bind(this),cornerMoveEnd:this.hideMagnifier.bind(this)}))))}showMagnifier(t){var e;null===(e=this.magnifier)||void 0===e||e.setIsVisible(!0,(()=>{var e;null===(e=this.magnifier)||void 0===e||e.update(this.magnifierOptions(t))}))}updateMagnifier(t){var e;null===(e=this.magnifier)||void 0===e||e.update(this.magnifierOptions(t))}magnifierOptions(t){const e=new av;return e.source=new iv(this.htmlImage,this.state.calculatedSize),e.container=new ua(this.container.width(),this.container.height()),e.origin=t.point,e.rotations=this.state.animation.rotations,e.scale=this.state.animation.scale,e}hideMagnifier(){var t;null===(t=this.magnifier)||void 0===t||t.setIsVisible(!1)}apply(){var t;return cv(this,void 0,void 0,(function*(){const e=I.toPolygon(this.state.points,this.state.calculatedSize),n=this.toCcwRotations(this.rotations);return{image:yield yv.instance.cropAndRotateImageCcw(null===(t=this.configuration)||void 0===t?void 0:t.image,e,n),polygon:e,rotations:this.rotations}}))}toCcwRotations(t){return this.MAX_ROTATIONS-t%this.MAX_ROTATIONS}rotate(t){return cv(this,void 0,void 0,(function*(){if(this.container.isAnimating())return void console.warn("Unable to rotate: previous rotation animation in progress");const e=this.calculateScale(this.rotations,t,this.state.calculatedSize);this.setState({animation:{rotations:this.rotations+t,scale:e,duration:1}})}))}detect(){var t;return cv(this,void 0,void 0,(function*(){const e=yield this.detectContour(null===(t=this.configuration)||void 0===t?void 0:t.image);this.initializeSizes(e.polygon,e.horizontalLines,e.verticalLines)}))}dispose(){const{container:t}=this.props;if(!t)throw Error("Component wasn't created with openCroppingView. Remove component from render tree to dispose.");Object(se.render)(null,t)}get rotations(){var t,e;const n=null===(t=this.state.animation)||void 0===t?void 0:t.rotations;return n&&0!==n?n:null!==(e=this.configuration.rotations)&&void 0!==e?e:0}get configuration(){return this._configuration||(this._configuration=Kg.fromJson(this.props.configuration)),this._configuration}calculateScale(t,e,n){return e?(t+e)%2==0?this.BASE_SCALE:this.calculateRatio(n):this.BASE_SCALE}calculateRatio(t){return Math.min(this.container.width()/t.height,this.container.height()/t.width)}calculateMargin(t){return t.width>t.height?{x:0,y:this.container.height()/2-t.height/2}:{x:this.container.width()/2-t.width/2,y:0}}detectContour(t){return yv.instance.detectAndCropDocument(t)}}var dv=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class pv extends sa{constructor(t){super(t),this.shouldComputeSize=!0,this.paused=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),Object.assign(this.state,{isFinderVisible:!0})}get configuration(){return this.props.configuration}get enabled(){return!this.disposed}static create(t,e,n){return dv(this,void 0,void 0,(function*(){const o=document.getElementById(t.containerId);if(!o)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((r,i)=>{Object(se.render)(se.default.createElement(pv,{container:o,configuration:t,onTextDetected:e,onSuccess:r,onFailure:i,textDataScanner:n}),o)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return dv(this,void 0,void 0,(function*(){Kh.warn("TextData detection resumed"),yield this.resume()}))}pauseDetection(){Kh.warn("TextData detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return dv(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),this.props.textDataScanner.release(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return dv(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return dv(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.props.textDataScanner.cleanRecognitionQueue(),this.paused=!0}detect(){var t,e;return dv(this,void 0,void 0,(function*(){const n=this.shouldComputeSize;if(!this.enabled)return;if(this.paused)return;let o=!1;try{this.camera.finderFrame=null===(t=this.finder)||void 0===t?void 0:t.holeRect;const r=yield null===(e=this.camera)||void 0===e?void 0:e.createImageData(pv.FRAME_RESOLUTION);if(!r)return;n&&this.forceUpdate();const i=yield this.props.textDataScanner.recognize(r);if(!this.enabled)return;if(null===i)return;i&&(o=!0,this.props.onTextDetected(i))}catch(t){console.log(t)}finally{o?setTimeout((()=>{requestAnimationFrame(this.detect.bind(this))}),200):requestAnimationFrame(this.detect.bind(this))}}))}saveExtractedImageData(){this.camera.saveExtractedData()}render(){var t;return se.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(t=this.configuration)||void 0===t?void 0:t.spinnerColor),se.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},se.default.createElement(pa,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),this.state.isFinderVisible&&se.default.createElement(ha,{ref:t=>{this.finder=t},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}))}}pv.FRAME_RESOLUTION=1200;var hv=pv,fv=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},mv=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};const{ParametricFilter:gv}=r,vv=mv(r,["ParametricFilter"]);class bv{static get UI(){if(!a.BUILD_WITH_UI)throw new Error("UI components are not included in Scanbot.min.js. Please use ScanbotSDK.ui2.min.js instead.");return bv._ui2}static initialize(t){var e;return fv(this,void 0,void 0,(function*(){const n=new bv,o=t.engine||bv.defaultEnginePath,r=!!t.allowThreads,i=null!==(e=t.requestSuffix)&&void 0!==e?e:`?${n.version}`,s=[t.licenseKey,o,window.location.hostname,a.CDN_PATH+a.DEFAULT_WASM_FOLDER,{captureConsole:!1,allowThreads:r,profileTfjsKernels:!1,requestSuffix:i}];return n.bridge=new c(o,{allowSimd:!0,allowThreads:r,requestSuffix:i},s),bv.instance=n,window.scanbotSdk=n,ae.initialize(t.verboseLogging),t.allowThreads&&!Object(u.areThreadsAvailable)()&&(ae.debugWarn("Threads are not available in this environment. The SDK will run in single-threaded mode."),window.hasOwnProperty("crossOriginIsolated")&&!window.crossOriginIsolated&&ae.debugWarn("The site is not cross-origin isolated. This prevents multithreading in the ScanbotSDK. To enable multithreading, you need to set the 'Cross-Origin-Opener-Policy' and 'Cross-Origin-Embedder-Policy' http headers. See our documentation for details.")),n}))}createDocumentScanner(t){return fv(this,void 0,void 0,(function*(){let e;try{return e=yield Mg.create(t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createMrzScanner(t){return fv(this,void 0,void 0,(function*(){let e;try{const n=new $(this,this.bridge.postByTransferringArgs("createMRZRecognizer",[null==t?void 0:t.accumulatedFrameVerificationConfiguration]),!0);return e=yield Ng.create(t,n),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createBarcodeScanner(t){return fv(this,void 0,void 0,(function*(){let e;try{return e=yield ef.create(t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}openCroppingView(t){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),yield uv.create(t)}))}createTextDataScanner(t){return fv(this,void 0,void 0,(function*(){try{const e={languages:(t=Ut.fromJson(t)).supportedLanguages,ocrResolutionLimit:t.ocrResolutionLimit,validationPattern:t.validationPattern,matchSubstring:t.matchSubstring,allowedCharacters:t.allowedCharacters},n=yield this.createGenericTextLineScanner(t,t.onTextDetected,e,t.validatorPreset);return yield this.licenseCheck(),n}catch(t){throw t}}))}createVINScanner(t){return fv(this,void 0,void 0,(function*(){let e;try{t=Ht.fromJson(t);const n="VehicleIdentificationNumber",o={ocrResolutionLimit:t.ocrResolutionLimit},r=e=>{""!==e.text&&t.onTextDetected(e)};return e=yield this.createGenericTextLineScanner(t,r,o,n),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}toDataUrl(t){return fv(this,void 0,void 0,(function*(){return Yt.throwIfMissingBuffer(t),yield R.toDataUrl(t)}))}applyFilter(t,e){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),Yt.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("applyFilter",[t,e])}))}rotateImageCcw(t,e){return fv(this,void 0,void 0,(function*(){return Yt.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("rotateImageCcw",[t,e])}))}cropAndRotateImageCcw(t,e,n){return fv(this,void 0,void 0,(function*(){return Yt.throwIfMissingBuffer(t),Yt.throwIfMissing(e,"Polygon may not be null"),yield this.bridge.postByCopyingArgs("cropAndRotateImageCcw",[t,e,n])}))}detectDocument(t,e,n,o){return fv(this,void 0,void 0,(function*(){yield this.licenseCheck(),Yt.throwIfMissingBuffer(t);const r=yield this.bridge.postByTransferringArgs("createDocumentDetector",[{useCombinedDetector:!1,acceptedBrightnessThreshold:o||S.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE,acceptedAngleScore:e||S.DEFAULT_ACCEPTED_ANGLE_SCORE,acceptedSizeScore:n||S.DEFAULT_ACCEPTED_SIZE_SCORE}]);return yield this.bridge.postByCopyingArgs("documentDetectorDetect",[r,t])}))}detectAndCropDocument(t){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),Yt.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("detectAndCropDocument",[t])}))}detectBarcodes(t,e,n,o,r){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),Yt.throwIfMissingBuffer(t),new Promise((i=>{const a=document.createElement("canvas"),s=document.createElement("img");s.src=t,s.onload=()=>fv(this,void 0,void 0,(function*(){a.width=s.width,a.height=s.height;const t=a.getContext("2d");t.drawImage(s,0,0);const l=t.getImageData(0,0,s.width,s.height),{result:c,originalImage:u}=yield this.bridge.postByTransferringArgs("recognizeBarcodes",[l,{engineMode:e,barcodeFormats:n,returnBarcodeImage:o,gs1Handling:r}]);i(D.fromWorker(c,R.convertImageDataWrapperToImageData(u)))}))}))}))}createSimpleMRZRecognizer(){return fv(this,void 0,void 0,(function*(){return new $(this,yield this.bridge.postByTransferringArgs("createMRZRecognizer",[]),!1)}))}createOcrEngine(t){return fv(this,void 0,void 0,(function*(){return new H(this,yield this.bridge.postByCopyingArgs("createOcrEngine",[t]))}))}createDocumentQualityAnalyzer(t){return fv(this,void 0,void 0,(function*(){const e=yield this.bridge.postByTransferringArgs("createDocumentQualityAnalyzer",[null!=t?t:{}]);return new Qt(this,e)}))}createImageProcessor(t){return fv(this,void 0,void 0,(function*(){Yt.throwIfMissingBuffer(t);const e=yield this.bridge.postByCopyingArgs("imageProcessorCreate",[t]);return new j(this,e)}))}getLicenseInfo(){return fv(this,void 0,void 0,(function*(){const t=yield this.bridge.postByTransferringArgs("getLicenseInfo",[]);return C.fromJson(t)}))}beginPdf(t={}){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new w(this,yield this.bridge.postByCopyingArgs("beginPdf",[t]))}))}beginTiff(t={}){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new k(this,yield this.bridge.postByCopyingArgs("beginTiff",[t]))}))}get version(){return a.VERSION}get utils(){return this._utils||(this._utils=new B),this._utils}release(t,e){return fv(this,void 0,void 0,(function*(){t&&(console.log("Releasing object: "+e||!1),yield this.bridge.postByTransferringArgs("releaseObject",[t]))}))}licenseCheck(){return fv(this,void 0,void 0,(function*(){const t=yield this.getLicenseInfo();if(!t.isValid())throw console.error(`LicenseError: ${t.status}`),new Gt(t)}))}createGenericTextLineScanner(t,e,n,o){return fv(this,void 0,void 0,(function*(){o&&(n.validatorPreset=o);const r=this.bridge.postByCopyingArgs("createGenericTextLineScanner",[n]),i=new Q(this,r);return yield hv.create(t,e,i)}))}}bv.defaultEnginePath="",bv._ui2=a.BUILD_WITH_UI?wg:void 0,bv.imageFilters=vv;var yv=bv;const Av=bv},function(t,e,n){"use strict";n.r(e);var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return o.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.default=r},function(t,e,n){"use strict";function o(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t<arguments.length;t+=1)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n(97);const r={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(t,e,n="Mui"){const i=r[e];return i?`${n}-${i}`:`${o.a.generate(t)}-${e}`}},function(t,e,n){"use strict";const o=t=>t,r=(()=>{let t=o;return{configure(e){t=e},generate:e=>t(e),reset(){t=o}}})();e.a=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n(72),r=n(42);function i({props:t,name:e,defaultTheme:n,themeId:i}){let a=Object(r.a)(n);i&&(a=a[i]||a);return Object(o.a)({theme:a,name:e,props:t})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(1);function r(t,e){const n=Object(o.a)({},e);return Object.keys(t).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=Object(o.a)({},t[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=t[i]||{},s=e[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=Object(o.a)({},s),Object.keys(a).forEach((t=>{n[i][t]=r(a[t],s[t])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=t[i])})),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n(0),r=n(101);function i(...t){return o.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{Object(r.a)(t,e)}))}),t)}},function(t,e,n){"use strict";function o(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var o=n(0),r=n(84);e.a=function(t){const e=o.useRef(t);return Object(r.a)((()=>{e.current=t})),o.useRef(((...t)=>(0,e.current)(...t))).current}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(85);function r(t){return Object(o.a)(t).defaultView||window}},function(t,e,n){"use strict";var o=n(1),r=n(4),i=n(83);const a=["values","unit","step"];function s(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=t,s=Object(r.a)(t,a),l=(t=>{const e=Object.keys(t).map((e=>({key:e,val:t[e]})))||[];return e.sort(((t,e)=>t.val-e.val)),e.reduce(((t,e)=>Object(o.a)({},t,{[e.key]:e.val})),{})})(e),c=Object.keys(l);function u(t){return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n})`}function d(t){return`@media (max-width:${("number"==typeof e[t]?e[t]:t)-i/100}${n})`}function p(t,o){const r=c.indexOf(o);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==r&&"number"==typeof e[c[r]]?e[c[r]]:o)-i/100}${n})`}return Object(o.a)({keys:c,values:l,up:u,down:d,between:p,only:function(t){return c.indexOf(t)+1<c.length?p(t,c[c.indexOf(t)+1]):u(t)},not:function(t){const e=c.indexOf(t);return 0===e?u(c[1]):e===c.length-1?d(c[e]):p(t,c[c.indexOf(t)+1]).replace("@media","@media not all and")},unit:n},s)}var l={borderRadius:4},c=n(9);var u=n(69),d=n(37);function p(t,e){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)")]:e}}return n.palette.mode===t?e:{}}const h=["breakpoints","palette","spacing","shape"];e.a=function(t={},...e){const{breakpoints:n={},palette:a={},spacing:f,shape:m={}}=t,g=Object(r.a)(t,h),v=s(n),b=function(t=8){if(t.mui)return t;const e=Object(c.a)({spacing:t}),n=(...t)=>(0===t.length?[1]:t).map((t=>{const n=e(t);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let y=Object(i.a)({breakpoints:v,direction:"ltr",components:{},palette:Object(o.a)({mode:"light"},a),spacing:b,shape:Object(o.a)({},l,m)},g);return y.applyStyles=p,y=e.reduce(((t,e)=>Object(i.a)(t,e)),y),y.unstable_sxConfig=Object(o.a)({},d.a,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(t){return Object(u.a)({sx:t,theme:this})},y}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(96);function r(t,e,n="Mui"){const r={};return e.forEach((e=>{r[e]=Object(o.a)(t,e,n)})),r}},function(t,e,n){"use strict";function o(t,e,n){const o={};return Object.keys(t).forEach((r=>{o[r]=t[r].reduce(((t,o)=>{if(o){const r=e(o);""!==r&&t.push(r),n&&n[o]&&t.push(n[o])}return t}),[]).join(" ")})),o}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";function o(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n(0);let r=0;const i=o["useId".toString()];function a(t){if(void 0!==i){const e=i();return null!=t?t:e}return function(t){const[e,n]=o.useState(t),i=t||e;return o.useEffect((()=>{null==e&&(r+=1,n(`mui-${r}`))}),[e]),i}(t)}},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return p}));var o=n(95);var r=function(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))};function i(t,e=0,n=1){return r(t,e,n)}function a(t){if(t.type)return t;if("#"===t.charAt(0))return a(function(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&1===n[0].length&&(n=n.map((t=>t+t))),n?`rgb${4===n.length?"a":""}(${n.map(((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3)).join(", ")})`:""}(t));const e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Object(o.a)(9,t));let r,i=t.substring(e+1,t.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Object(o.a)(10,r))}else i=i.split(",");return i=i.map((t=>parseFloat(t))),{type:n,values:i,colorSpace:r}}function s(t){const{type:e,colorSpace:n}=t;let{values:o}=t;return-1!==e.indexOf("rgb")?o=o.map(((t,e)=>e<3?parseInt(t,10):t)):-1!==e.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==e.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${e}(${o})`}function l(t){let e="hsl"===(t=a(t)).type||"hsla"===t.type?a(function(t){t=a(t);const{values:e}=t,n=e[0],o=e[1]/100,r=e[2]/100,i=o*Math.min(r,1-r),l=(t,e=(t+n/30)%12)=>r-i*Math.max(Math.min(e-3,9-e,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===t.type&&(c+="a",u.push(e[3])),s({type:c,values:u})}(t)).values:t.values;return e=e.map((e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4))),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function c(t,e){const n=l(t),o=l(e);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function u(t,e){return t=a(t),e=i(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),"color"===t.type?t.values[3]=`/${e}`:t.values[3]=e,s(t)}function d(t,e){if(t=a(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return s(t)}function p(t,e){if(t=a(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return s(t)}}])}));
|
|
187
|
+
}`,l=ge.c.div`position: absolute; animation: ${s} ${r}s;`;return this.previousScale=o,se.default.createElement("div",{style:{width:"100%",height:"100%",position:"absolute"},ref:t=>this.container=t},se.default.createElement(l,{style:{width:this.calculate(t,"width"),height:this.calculate(t,"height"),transform:`rotate(${a}deg) scale(${o})`,marginTop:this.marginWithAspect(e,"y",t),marginLeft:this.marginWithAspect(e,"x",t)},onAnimationStart:()=>{this.animating=!0},onAnimationEnd:()=>{this.animating=!1}},this.props.children))}marginWithAspect(t,e,n){if(!t||!n)return 0;n.width,n.height;return t[e]}calculate(t,e){return t?t[e]:"100%"}}class rv extends se.default.Component{componentDidMount(){qh.disableScreenMovement()}componentWillUnmount(){qh.enableScreenMovement()}render(){return se.default.createElement("div",null)}}class iv{constructor(t,e){this.element=t,this.size=e}}class av{}class sv extends se.default.Component{render(){return se.default.createElement("div",{style:this.props.style},se.default.createElement("svg",null,this.vertical(),this.horizontal()))}half(){return this.props.size/2}vertical(){const t=this.half();return se.default.createElement("line",{x1:t,y1:0,x2:t,y2:this.props.size,stroke:this.props.color,strokeWidth:"2"})}horizontal(){const t=this.half();return se.default.createElement("line",{x1:0,y1:t,x2:this.props.size,y2:t,stroke:this.props.color,strokeWidth:"2"})}}class lv extends se.default.Component{get crosshairSize(){var t,e;return null===(e=null===(t=this.props.style)||void 0===t?void 0:t.crosshair)||void 0===e?void 0:e.size}constructor(t){super(t),this.MAX_ROTATIONS=4,this.state={frame:_.empty(),cropImageFitSize:ua.empty(),rotation:{count:0,scale:1},margin:{left:this.props.style.margin,top:this.props.style.margin},container:{width:0},scale:{width:1,height:1}}}style(){return{container:{marginLeft:this.state.margin.left,marginTop:this.state.margin.top,width:this.state.frame.width,height:this.state.frame.height,borderRadius:this.props.style.size/2,border:this.props.style.border.width+"px solid "+this.props.style.border.color,position:"absolute",overflow:"hidden",zIndex:50,transform:"rotate("+90*this.state.rotation.count+"deg)"},image:{width:this.state.cropImageFitSize.width*this.props.style.zoom,height:this.state.cropImageFitSize.height*this.props.style.zoom,marginLeft:-this.state.frame.x,marginTop:-this.state.frame.y,objectFit:"cover"},crosshair:{margin:"auto",position:"absolute",width:this.crosshairSize,height:this.crosshairSize,top:this.state.frame.height/2-this.crosshairSize/2,left:this.state.frame.width/2-this.crosshairSize/2}}}render(){return this.state.visible?se.default.createElement("div",{style:this.style().container},se.default.createElement("img",{style:this.style().image,ref:t=>this.destination=t,src:this.props.src,alt:"."}),se.default.createElement(sv,{style:this.style().crosshair,size:this.crosshairSize,color:this.props.style.crosshair.color})):null}update(t){if(!this.state.visible)return;this.destination.src=t.source.element.src;const e=_.fromPoint(I.scaleUpTo(t.origin,new ua(this.props.style.zoom,this.props.style.zoom)),this.props.style.size),n=t.container.width-(this.props.style.margin+this.props.style.size),o=this.isPointTopLeft(t.origin,t.source.size,t.rotations);this.setState({frame:e,cropImageFitSize:t.source.size,rotation:{count:t.rotations,scale:t.scale},margin:{left:o?n:this.props.style.margin},container:{width:t.container.width},scale:{width:t.source.size.width/t.container.width,height:t.source.size.height/t.container.height}})}isPointTopLeft(t,e,n){const o=t.x,r=t.y,i=this.normalizeRotations(n),a=this.state.container.width/4;return 0===i?o<a&&r<a:1===i?o<a&&r>e.height-a:2===i?o>e.width-a&&r>e.height-a:o>e.width-a&&r<a}setIsVisible(t,e){this.setState({visible:t},e)}normalizeRotations(t){return t%this.MAX_ROTATIONS}}var cv=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class uv extends se.default.Component{constructor(t){super(t),this.onResizeCallback=()=>{},this.MAX_ROTATIONS=4,this.BASE_SCALE=1,this.state={image:void 0,polygon:void 0,calculatedSize:ua.empty(),animation:{rotations:0,scale:1,duration:0},points:[],magneticLines:{horizontal:{original:[],scaled:[]},vertical:{original:[],scaled:[]}},imageMargin:I.empty()},this.onResizeCallback=this.onResize.bind(this)}static create(t){return cv(this,void 0,void 0,(function*(){const e=document.getElementById(t.containerId);if(!e)throw Error("Unable to initialize cropping component: Cannot find container element with the id provided.");return new Promise(((n,o)=>{Object(se.render)(se.default.createElement(uv,{onReady:n,onError:o,container:e,configuration:Kg.fromJson(t)}),e)}))}))}componentDidMount(){var t,e,n;return cv(this,void 0,void 0,(function*(){const o=null===(t=this.configuration)||void 0===t?void 0:t.image,r=yield this.detectContour(o);this.setState({image:yield R.toDataUrl(o),polygon:null!==(n=null===(e=this.configuration)||void 0===e?void 0:e.polygon)&&void 0!==n?n:r.polygon,magneticLines:{vertical:{original:r.verticalLines},horizontal:{original:r.horizontalLines}}}),this.props.onReady&&this.props.onReady(this),addEventListener("resize",this.onResizeCallback),addEventListener("orientationchange",this.onResizeCallback)}))}componentWillUnmount(){return cv(this,void 0,void 0,(function*(){removeEventListener("resize",this.onResizeCallback),removeEventListener("orientationchange",this.onResizeCallback)}))}onImageLoaded(t){return cv(this,void 0,void 0,(function*(){ua.isEmpty(this.state.calculatedSize)&&(this.htmlImage=t,this.initializeSizes())}))}onResize(){const t=this.state.points.map((t=>new I(t.x/this.state.calculatedSize.width,t.y/this.state.calculatedSize.height)));this.initializeSizes(t)}initializeSizes(t,e,n){const o=new ua(this.htmlImage.naturalWidth,this.htmlImage.naturalHeight),r=new ua(this.container.width(),this.container.height()),i=R.getObjectFitSize(r,o),a=new ua(i.width,i.height),s=null!=t?t:this.state.polygon,l=qh.convertToViewportPointsFromParentSize(a,s),c=null!=e?e:this.state.magneticLines.horizontal.original,u=null!=n?n:this.state.magneticLines.vertical.original,d=qh.convertLinesToViewportLines(a,c),p=qh.convertLinesToViewportLines(a,u);this.setState({calculatedSize:a,points:l,magneticLines:{horizontal:{original:c,scaled:d},vertical:{original:u,scaled:p}},animation:{duration:0,rotations:this.rotations,scale:this.calculateScale(0,this.rotations,a)},imageMargin:this.calculateMargin(a)})}render(){var t,e,n,o,r,i;const a=jg.CLASSNAME,s=Rh()({[a]:!0,[`${a}-visible`]:!0}),l=this.configuration.style.polygon.width,c=(null===(t=this.state.animation)||void 0===t?void 0:t.scale)?l/this.state.animation.scale:l,u=this.configuration.style.padding||0,d=`calc(100% - 2*${u}px)`;return se.default.createElement("div",{style:{position:"relative",width:d,height:d,padding:u}},se.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.configuration.disableScroll&&se.default.createElement(rv,null),se.default.createElement(lv,{ref:t=>this.magnifier=t,style:this.configuration.style.magnifier}),se.default.createElement(ov,{ref:t=>this.container=t,size:this.state.calculatedSize,rotations:null===(e=this.state.animation)||void 0===e?void 0:e.rotations,scale:null===(n=this.state.animation)||void 0===n?void 0:n.scale,duration:null===(o=this.state.animation)||void 0===o?void 0:o.duration,imageMargin:this.state.imageMargin},se.default.createElement(nv,{src:this.state.image,onImageLoaded:t=>this.onImageLoaded(t)}),se.default.createElement(ev,{style:{width:"100%",height:"100%",zIndex:500},size:this.state.calculatedSize,polygonStyle:{cursor:"pointer",stroke:this.configuration.style.polygon.color,strokeWidth:`${c}px`},handleStyle:this.configuration.style.polygon.handles,magneticLineStyle:this.configuration.style.magneticLines,polygonClasses:s,points:this.state.points,rotations:null===(r=this.state.animation)||void 0===r?void 0:r.rotations,scale:null===(i=this.state.animation)||void 0===i?void 0:i.scale,magneticLines:this.state.magneticLines,cornerMoveStart:this.showMagnifier.bind(this),cornerMoved:this.updateMagnifier.bind(this),cornerMoveEnd:this.hideMagnifier.bind(this)}))))}showMagnifier(t){var e;null===(e=this.magnifier)||void 0===e||e.setIsVisible(!0,(()=>{var e;null===(e=this.magnifier)||void 0===e||e.update(this.magnifierOptions(t))}))}updateMagnifier(t){var e;null===(e=this.magnifier)||void 0===e||e.update(this.magnifierOptions(t))}magnifierOptions(t){const e=new av;return e.source=new iv(this.htmlImage,this.state.calculatedSize),e.container=new ua(this.container.width(),this.container.height()),e.origin=t.point,e.rotations=this.state.animation.rotations,e.scale=this.state.animation.scale,e}hideMagnifier(){var t;null===(t=this.magnifier)||void 0===t||t.setIsVisible(!1)}apply(){var t;return cv(this,void 0,void 0,(function*(){const e=I.toPolygon(this.state.points,this.state.calculatedSize),n=this.toCcwRotations(this.rotations);return{image:yield yv.instance.cropAndRotateImageCcw(null===(t=this.configuration)||void 0===t?void 0:t.image,e,n),polygon:e,rotations:this.rotations}}))}toCcwRotations(t){return this.MAX_ROTATIONS-t%this.MAX_ROTATIONS}rotate(t){return cv(this,void 0,void 0,(function*(){if(this.container.isAnimating())return void console.warn("Unable to rotate: previous rotation animation in progress");const e=this.calculateScale(this.rotations,t,this.state.calculatedSize);this.setState({animation:{rotations:this.rotations+t,scale:e,duration:1}})}))}detect(){var t;return cv(this,void 0,void 0,(function*(){const e=yield this.detectContour(null===(t=this.configuration)||void 0===t?void 0:t.image);this.initializeSizes(e.polygon,e.horizontalLines,e.verticalLines)}))}dispose(){const{container:t}=this.props;if(!t)throw Error("Component wasn't created with openCroppingView. Remove component from render tree to dispose.");Object(se.render)(null,t)}get rotations(){var t,e;const n=null===(t=this.state.animation)||void 0===t?void 0:t.rotations;return n&&0!==n?n:null!==(e=this.configuration.rotations)&&void 0!==e?e:0}get configuration(){return this._configuration||(this._configuration=Kg.fromJson(this.props.configuration)),this._configuration}calculateScale(t,e,n){return e?(t+e)%2==0?this.BASE_SCALE:this.calculateRatio(n):this.BASE_SCALE}calculateRatio(t){return Math.min(this.container.width()/t.height,this.container.height()/t.width)}calculateMargin(t){return t.width>t.height?{x:0,y:this.container.height()/2-t.height/2}:{x:this.container.width()/2-t.width/2,y:0}}detectContour(t){return yv.instance.detectAndCropDocument(t)}}var dv=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))};class pv extends sa{constructor(t){super(t),this.shouldComputeSize=!0,this.paused=!1,this.updateDimensionsCallback=this.updateDimensions.bind(this),Object.assign(this.state,{isFinderVisible:!0})}get configuration(){return this.props.configuration}get enabled(){return!this.disposed}static create(t,e,n){return dv(this,void 0,void 0,(function*(){const o=document.getElementById(t.containerId);if(!o)throw Error("Unable to initialize ScanbotSDK: Cannot find container element with the id provided.");return new Promise(((r,i)=>{Object(se.render)(se.default.createElement(pv,{container:o,configuration:t,onTextDetected:e,onSuccess:r,onFailure:i,textDataScanner:n}),o)}))}))}isDetectionPaused(){return this.paused}resumeDetection(){return dv(this,void 0,void 0,(function*(){Kh.warn("TextData detection resumed"),yield this.resume()}))}pauseDetection(){Kh.warn("TextData detection paused"),this.pause()}componentDidMount(){const t=Object.create(null,{componentDidMount:{get:()=>super.componentDidMount}});return dv(this,void 0,void 0,(function*(){t.componentDidMount.call(this),window.addEventListener("resize",this.updateDimensionsCallback),yield this.resume()}))}componentWillUnmount(){super.componentWillUnmount(),this.pause(),this.props.textDataScanner.release(),window.removeEventListener("resize",this.updateDimensionsCallback)}updateDimensions(){return dv(this,void 0,void 0,(function*(){this.shouldComputeSize=!0,this.forceUpdate()}))}resume(){return dv(this,void 0,void 0,(function*(){this.paused=!1,yield this.detect()}))}pause(){this.props.textDataScanner.cleanRecognitionQueue(),this.paused=!0}detect(){var t,e;return dv(this,void 0,void 0,(function*(){const n=this.shouldComputeSize;if(!this.enabled)return;if(this.paused)return;let o=!1;try{this.camera.finderFrame=null===(t=this.finder)||void 0===t?void 0:t.holeRect;const r=yield null===(e=this.camera)||void 0===e?void 0:e.createImageData(pv.FRAME_RESOLUTION);if(!r)return;n&&this.forceUpdate();const i=yield this.props.textDataScanner.recognize(r);if(!this.enabled)return;if(null===i)return;i&&(o=!0,this.props.onTextDetected(i))}catch(t){console.log(t)}finally{o?setTimeout((()=>{requestAnimationFrame(this.detect.bind(this))}),200):requestAnimationFrame(this.detect.bind(this))}}))}saveExtractedImageData(){this.camera.saveExtractedData()}render(){var t;return se.default.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},this.renderSpinner(null===(t=this.configuration)||void 0===t?void 0:t.spinnerColor),se.default.createElement("div",{style:{position:"absolute",width:"100%",height:"100%"}},se.default.createElement(pa,{configuration:this.configuration,videoConstraints:this.configuration.videoConstraints,mirrored:this.configuration.mirrored,preferredCamera:this.configuration.preferredCamera,onReady:this.onVideoReady,onError:this.onVideoError,ref:t=>{this.camera=t}})),this.state.isFinderVisible&&se.default.createElement(ha,{ref:t=>{this.finder=t},guidanceConfiguration:this.configuration.userGuidance,configuration:this.configuration.finder}))}}pv.FRAME_RESOLUTION=1200;var hv=pv,fv=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))},mv=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n};const{ParametricFilter:gv}=r,vv=mv(r,["ParametricFilter"]);class bv{static get UI(){if(!a.BUILD_WITH_UI)throw new Error("UI components are not included in Scanbot.min.js. Please use ScanbotSDK.ui2.min.js instead.");return bv._ui2}static initialize(t){var e;return fv(this,void 0,void 0,(function*(){const n=new bv,o=t.engine||bv.defaultEnginePath,r=!!t.allowThreads,i=null!==(e=t.requestSuffix)&&void 0!==e?e:`?${n.version}`,s=[t.licenseKey,o,window.location.hostname,a.CDN_PATH+a.DEFAULT_WASM_FOLDER,{captureConsole:!1,allowThreads:r,profileTfjsKernels:!1,requestSuffix:i}];return n.bridge=new c(o,{allowSimd:!0,allowThreads:r,requestSuffix:i},s),bv.instance=n,window.scanbotSdk=n,ae.initialize(t.verboseLogging),t.allowThreads&&!Object(u.areThreadsAvailable)()&&(ae.debugWarn("Threads are not available in this environment. The SDK will run in single-threaded mode."),window.hasOwnProperty("crossOriginIsolated")&&!window.crossOriginIsolated&&ae.debugWarn("The site is not cross-origin isolated. This prevents multithreading in the ScanbotSDK. To enable multithreading, you need to set the 'Cross-Origin-Opener-Policy' and 'Cross-Origin-Embedder-Policy' http headers. See our documentation for details.")),n}))}createDocumentScanner(t){return fv(this,void 0,void 0,(function*(){let e;try{return e=yield Mg.create(t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createMrzScanner(t){return fv(this,void 0,void 0,(function*(){let e;try{const n=new $(this,this.bridge.postByTransferringArgs("createMRZRecognizer",[null==t?void 0:t.accumulatedFrameVerificationConfiguration]),!0);return e=yield Ng.create(t,n),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}createBarcodeScanner(t){return fv(this,void 0,void 0,(function*(){let e;try{return e=yield ef.create(t),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}openCroppingView(t){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),yield uv.create(t)}))}createTextDataScanner(t){return fv(this,void 0,void 0,(function*(){try{const e={languages:(t=Ut.fromJson(t)).supportedLanguages,ocrResolutionLimit:t.ocrResolutionLimit,validationPattern:t.validationPattern,matchSubstring:t.matchSubstring,allowedCharacters:t.allowedCharacters},n=yield this.createGenericTextLineScanner(t,t.onTextDetected,e,t.validatorPreset);return yield this.licenseCheck(),n}catch(t){throw t}}))}createVINScanner(t){return fv(this,void 0,void 0,(function*(){let e;try{t=Ht.fromJson(t);const n="VehicleIdentificationNumber",o={ocrResolutionLimit:t.ocrResolutionLimit},r=e=>{""!==e.text&&t.onTextDetected(e)};return e=yield this.createGenericTextLineScanner(t,r,o,n),yield this.licenseCheck(),e}catch(t){throw e&&e.dispose(),t}}))}toDataUrl(t){return fv(this,void 0,void 0,(function*(){return Yt.throwIfMissingBuffer(t),yield R.toDataUrl(t)}))}applyFilter(t,e){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),Yt.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("applyFilter",[t,e])}))}rotateImageCcw(t,e){return fv(this,void 0,void 0,(function*(){return Yt.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("rotateImageCcw",[t,e])}))}cropAndRotateImageCcw(t,e,n){return fv(this,void 0,void 0,(function*(){return Yt.throwIfMissingBuffer(t),Yt.throwIfMissing(e,"Polygon may not be null"),yield this.bridge.postByCopyingArgs("cropAndRotateImageCcw",[t,e,n])}))}detectDocument(t,e,n,o){return fv(this,void 0,void 0,(function*(){yield this.licenseCheck(),Yt.throwIfMissingBuffer(t);const r=yield this.bridge.postByTransferringArgs("createDocumentDetector",[{useCombinedDetector:!1,acceptedBrightnessThreshold:o||S.DEFAULT_ACCEPTED_BRIGHTNESS_SCORE,acceptedAngleScore:e||S.DEFAULT_ACCEPTED_ANGLE_SCORE,acceptedSizeScore:n||S.DEFAULT_ACCEPTED_SIZE_SCORE}]);return yield this.bridge.postByCopyingArgs("documentDetectorDetect",[r,t])}))}detectAndCropDocument(t){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),Yt.throwIfMissingBuffer(t),yield this.bridge.postByCopyingArgs("detectAndCropDocument",[t])}))}detectBarcodes(t,e,n,o,r){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),Yt.throwIfMissingBuffer(t),new Promise((i=>{const a=document.createElement("canvas"),s=document.createElement("img");s.src=t,s.onload=()=>fv(this,void 0,void 0,(function*(){a.width=s.width,a.height=s.height;const t=a.getContext("2d");t.drawImage(s,0,0);const l=t.getImageData(0,0,s.width,s.height),{result:c,originalImage:u}=yield this.bridge.postByTransferringArgs("recognizeBarcodes",[l,{engineMode:e,barcodeFormats:n,returnBarcodeImage:o,gs1Handling:r}]);i(D.fromWorker(c,R.convertImageDataWrapperToImageData(u)))}))}))}))}createSimpleMRZRecognizer(){return fv(this,void 0,void 0,(function*(){return new $(this,yield this.bridge.postByTransferringArgs("createMRZRecognizer",[]),!1)}))}createOcrEngine(t){return fv(this,void 0,void 0,(function*(){return new H(this,yield this.bridge.postByCopyingArgs("createOcrEngine",[t]))}))}createDocumentQualityAnalyzer(t){return fv(this,void 0,void 0,(function*(){const e=yield this.bridge.postByTransferringArgs("createDocumentQualityAnalyzer",[null!=t?t:{}]);return new Qt(this,e)}))}createImageProcessor(t){return fv(this,void 0,void 0,(function*(){Yt.throwIfMissingBuffer(t);const e=yield this.bridge.postByCopyingArgs("imageProcessorCreate",[t]);return new j(this,e)}))}getLicenseInfo(){return fv(this,void 0,void 0,(function*(){const t=yield this.bridge.postByTransferringArgs("getLicenseInfo",[]);return C.fromJson(t)}))}beginPdf(t={}){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new w(this,yield this.bridge.postByCopyingArgs("beginPdf",[t]))}))}beginTiff(t={}){return fv(this,void 0,void 0,(function*(){return yield this.licenseCheck(),new k(this,yield this.bridge.postByCopyingArgs("beginTiff",[t]))}))}get version(){return a.VERSION}get utils(){return this._utils||(this._utils=new B),this._utils}release(t,e){return fv(this,void 0,void 0,(function*(){t&&(console.log("Releasing object: "+e||!1),yield this.bridge.postByTransferringArgs("releaseObject",[t]))}))}licenseCheck(){return fv(this,void 0,void 0,(function*(){const t=yield this.getLicenseInfo();if(!t.isValid())throw console.error(`LicenseError: ${t.status}`),new Gt(t)}))}createGenericTextLineScanner(t,e,n,o){return fv(this,void 0,void 0,(function*(){o&&(n.validatorPreset=o);const r=this.bridge.postByCopyingArgs("createGenericTextLineScanner",[n]),i=new Q(this,r);return yield hv.create(t,e,i)}))}destroy(){this.bridge.destroy(),bv.instance=void 0}}bv.defaultEnginePath="",bv._ui2=a.BUILD_WITH_UI?wg:void 0,bv.imageFilters=vv;var yv=bv;const Av=bv},function(t,e,n){"use strict";n.r(e);var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return o.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.default=r},function(t,e,n){"use strict";function o(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t<arguments.length;t+=1)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n(97);const r={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(t,e,n="Mui"){const i=r[e];return i?`${n}-${i}`:`${o.a.generate(t)}-${e}`}},function(t,e,n){"use strict";const o=t=>t,r=(()=>{let t=o;return{configure(e){t=e},generate:e=>t(e),reset(){t=o}}})();e.a=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n(72),r=n(42);function i({props:t,name:e,defaultTheme:n,themeId:i}){let a=Object(r.a)(n);i&&(a=a[i]||a);return Object(o.a)({theme:a,name:e,props:t})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(1);function r(t,e){const n=Object(o.a)({},e);return Object.keys(t).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=Object(o.a)({},t[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=t[i]||{},s=e[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=Object(o.a)({},s),Object.keys(a).forEach((t=>{n[i][t]=r(a[t],s[t])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=t[i])})),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var o=n(0),r=n(101);function i(...t){return o.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{Object(r.a)(t,e)}))}),t)}},function(t,e,n){"use strict";function o(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var o=n(0),r=n(84);e.a=function(t){const e=o.useRef(t);return Object(r.a)((()=>{e.current=t})),o.useRef(((...t)=>(0,e.current)(...t))).current}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(85);function r(t){return Object(o.a)(t).defaultView||window}},function(t,e,n){"use strict";var o=n(1),r=n(4),i=n(83);const a=["values","unit","step"];function s(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=t,s=Object(r.a)(t,a),l=(t=>{const e=Object.keys(t).map((e=>({key:e,val:t[e]})))||[];return e.sort(((t,e)=>t.val-e.val)),e.reduce(((t,e)=>Object(o.a)({},t,{[e.key]:e.val})),{})})(e),c=Object.keys(l);function u(t){return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n})`}function d(t){return`@media (max-width:${("number"==typeof e[t]?e[t]:t)-i/100}${n})`}function p(t,o){const r=c.indexOf(o);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==r&&"number"==typeof e[c[r]]?e[c[r]]:o)-i/100}${n})`}return Object(o.a)({keys:c,values:l,up:u,down:d,between:p,only:function(t){return c.indexOf(t)+1<c.length?p(t,c[c.indexOf(t)+1]):u(t)},not:function(t){const e=c.indexOf(t);return 0===e?u(c[1]):e===c.length-1?d(c[e]):p(t,c[c.indexOf(t)+1]).replace("@media","@media not all and")},unit:n},s)}var l={borderRadius:4},c=n(9);var u=n(69),d=n(37);function p(t,e){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/,"*:where($1)")]:e}}return n.palette.mode===t?e:{}}const h=["breakpoints","palette","spacing","shape"];e.a=function(t={},...e){const{breakpoints:n={},palette:a={},spacing:f,shape:m={}}=t,g=Object(r.a)(t,h),v=s(n),b=function(t=8){if(t.mui)return t;const e=Object(c.a)({spacing:t}),n=(...t)=>(0===t.length?[1]:t).map((t=>{const n=e(t);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(f);let y=Object(i.a)({breakpoints:v,direction:"ltr",components:{},palette:Object(o.a)({mode:"light"},a),spacing:b,shape:Object(o.a)({},l,m)},g);return y.applyStyles=p,y=e.reduce(((t,e)=>Object(i.a)(t,e)),y),y.unstable_sxConfig=Object(o.a)({},d.a,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(t){return Object(u.a)({sx:t,theme:this})},y}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n(96);function r(t,e,n="Mui"){const r={};return e.forEach((e=>{r[e]=Object(o.a)(t,e,n)})),r}},function(t,e,n){"use strict";function o(t,e,n){const o={};return Object.keys(t).forEach((r=>{o[r]=t[r].reduce(((t,o)=>{if(o){const r=e(o);""!==r&&t.push(r),n&&n[o]&&t.push(n[o])}return t}),[]).join(" ")})),o}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";function o(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var o=n(0);let r=0;const i=o["useId".toString()];function a(t){if(void 0!==i){const e=i();return null!=t?t:e}return function(t){const[e,n]=o.useState(t),i=t||e;return o.useEffect((()=>{null==e&&(r+=1,n(`mui-${r}`))}),[e]),i}(t)}},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return p}));var o=n(95);var r=function(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))};function i(t,e=0,n=1){return r(t,e,n)}function a(t){if(t.type)return t;if("#"===t.charAt(0))return a(function(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&1===n[0].length&&(n=n.map((t=>t+t))),n?`rgb${4===n.length?"a":""}(${n.map(((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3)).join(", ")})`:""}(t));const e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Object(o.a)(9,t));let r,i=t.substring(e+1,t.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Object(o.a)(10,r))}else i=i.split(",");return i=i.map((t=>parseFloat(t))),{type:n,values:i,colorSpace:r}}function s(t){const{type:e,colorSpace:n}=t;let{values:o}=t;return-1!==e.indexOf("rgb")?o=o.map(((t,e)=>e<3?parseInt(t,10):t)):-1!==e.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==e.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${e}(${o})`}function l(t){let e="hsl"===(t=a(t)).type||"hsla"===t.type?a(function(t){t=a(t);const{values:e}=t,n=e[0],o=e[1]/100,r=e[2]/100,i=o*Math.min(r,1-r),l=(t,e=(t+n/30)%12)=>r-i*Math.max(Math.min(e-3,9-e,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===t.type&&(c+="a",u.push(e[3])),s({type:c,values:u})}(t)).values:t.values;return e=e.map((e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4))),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function c(t,e){const n=l(t),o=l(e);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function u(t,e){return t=a(t),e=i(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),"color"===t.type?t.values[3]=`/${e}`:t.values[3]=e,s(t)}function d(t,e){if(t=a(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return s(t)}function p(t,e){if(t=a(t),e=i(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return s(t)}}])}));
|